Skip to content

Commit

Permalink
ISO 8601 weeks numbering option (#81)
Browse files Browse the repository at this point in the history
* ISO 8601 weeks numbering option

* Extended comments + some refactoring after review

Co-authored-by: Nikita Grachev <[email protected]>
  • Loading branch information
EugeneElkin and uve authored Feb 10, 2021
1 parent 4329956 commit d0cf9c8
Show file tree
Hide file tree
Showing 21 changed files with 566 additions and 258 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 2.3.0
* A new option group "Weeks Determination Standards" containing a list of two items where the first one enables US weeks numbering (default) and the second one enables ISO 8601 weeks numbering

## 2.2.0
* API was updated to 3.2.0
* Packages update
Expand Down
81 changes: 57 additions & 24 deletions capabilities.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,33 @@
{
"dataRoles": [{
"name": "Time",
"kind": "Grouping",
"displayName": "Time",
"displayNameKey": "Role_Time"
}],
"dataViewMappings": [{
"conditions": [{
"Time": {
"max": 1
}
}],
"categorical": {
"categories": {
"for": {
"in": "Time"
},
"dataReductionAlgorithm": {
"sample": {}
"dataRoles": [
{
"name": "Time",
"kind": "Grouping",
"displayName": "Time",
"displayNameKey": "Role_Time"
}
],
"dataViewMappings": [
{
"conditions": [
{
"Time": {
"max": 1
}
}
],
"categorical": {
"categories": {
"for": {
"in": "Time"
},
"dataReductionAlgorithm": {
"sample": {}
}
}
}
}
}],
],
"objects": {
"general": {
"displayName": "General",
Expand Down Expand Up @@ -59,6 +65,30 @@
}
}
},
"weeksDetermintaionStandards": {
"displayName": "Weeks Determination Standards",
"displayNameKey": "Visual_Weeks_Determination_Standards",
"properties": {
"weekStandard": {
"displayName": "Standard",
"displayNameKey": "Visual_Week_Standard",
"type": {
"enumeration": [
{
"value": "0",
"displayName": "-- none --",
"displayNameKey": "Visual_Week_Standard_None"
},
{
"value": "1",
"displayName": "ISO 8601",
"displayNameKey": "Visual_Week_Standard_ISO8601"
}
]
}
}
}
},
"calendar": {
"displayName": "Fiscal Year",
"displayNameKey": "Visual_FiscalYear",
Expand All @@ -67,7 +97,8 @@
"displayName": "Month",
"displayNameKey": "Visual_Month",
"type": {
"enumeration": [{
"enumeration": [
{
"value": "0",
"displayName": "January",
"displayNameKey": "Visual_Month_January"
Expand Down Expand Up @@ -154,7 +185,8 @@
"displayName": "Day",
"displayNameKey": "Visual_Day",
"type": {
"enumeration": [{
"enumeration": [
{
"value": "0",
"displayName": "Sunday",
"displayNameKey": "Visual_Day_Sunday"
Expand Down Expand Up @@ -292,7 +324,8 @@
"displayName": "Granularity",
"displayNameKey": "Visual_Granularity",
"type": {
"enumeration": [{
"enumeration": [
{
"value": "0",
"displayName": "Year",
"displayNameKey": "Visual_Granularity_Year"
Expand Down Expand Up @@ -412,4 +445,4 @@
},
"supportsHighlight": true,
"supportsSynchronizingFilterState": true
}
}
Loading

0 comments on commit d0cf9c8

Please sign in to comment.