@sis-cc/dotstatsuite-components 22.5.0 → 23.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index.js +4 -5
- package/dist/_virtual/index.js.map +1 -1
- package/dist/_virtual/index2.js +4 -5
- package/dist/_virtual/index2.js.map +1 -1
- package/dist/_virtual/index3.js +4 -4
- package/dist/_virtual/index4.js +2 -6
- package/dist/_virtual/index4.js.map +1 -1
- package/dist/_virtual/index5.js +3 -5
- package/dist/_virtual/index5.js.map +1 -1
- package/dist/_virtual/index6.js +2 -6
- package/dist/_virtual/index6.js.map +1 -1
- package/dist/_virtual/index7.js +2 -6
- package/dist/_virtual/index7.js.map +1 -1
- package/dist/bridge-d3-react/src/index.js +1 -2
- package/dist/bridge-d3-react/src/index.js.map +1 -1
- package/dist/node_modules/@mui/styles/StylesProvider/StylesProvider.js +1 -1
- package/dist/node_modules/@mui/system/colorManipulator.js +2 -2
- package/dist/node_modules/@mui/system/esm/responsivePropType.js +1 -1
- package/dist/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js +1 -1
- package/dist/node_modules/@mui/utils/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/date-fns/esm/_lib/defaultOptions/index.js +7 -0
- package/dist/node_modules/date-fns/esm/_lib/defaultOptions/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/_lib/isSameUTCWeek/index.js +12 -0
- package/dist/node_modules/date-fns/esm/_lib/isSameUTCWeek/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/_lib/requiredArgs/index.js +8 -0
- package/dist/node_modules/date-fns/esm/_lib/requiredArgs/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js +25 -0
- package/dist/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/_lib/toInteger/index.js +13 -0
- package/dist/node_modules/date-fns/esm/_lib/toInteger/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/getISOWeek/index.js +39 -0
- package/dist/node_modules/date-fns/esm/getISOWeek/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/getISOWeekYear/index.js +47 -0
- package/dist/node_modules/date-fns/esm/getISOWeekYear/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/getTime/index.js +29 -0
- package/dist/node_modules/date-fns/esm/getTime/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/isFriday/index.js +27 -0
- package/dist/node_modules/date-fns/esm/isFriday/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/isMonday/index.js +27 -0
- package/dist/node_modules/date-fns/esm/isMonday/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/isSaturday/index.js +27 -0
- package/dist/node_modules/date-fns/esm/isSaturday/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/isSunday/index.js +27 -0
- package/dist/node_modules/date-fns/esm/isSunday/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/isThursday/index.js +27 -0
- package/dist/node_modules/date-fns/esm/isThursday/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/isTuesday/index.js +27 -0
- package/dist/node_modules/date-fns/esm/isTuesday/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/isWednesday/index.js +27 -0
- package/dist/node_modules/date-fns/esm/isWednesday/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js +12 -0
- package/dist/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js +21 -0
- package/dist/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js +45 -0
- package/dist/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js +20 -0
- package/dist/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/ar/_lib/formatDistance/index.js +119 -0
- package/dist/node_modules/date-fns/esm/locale/ar/_lib/formatDistance/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/ar/_lib/formatLong/index.js +37 -0
- package/dist/node_modules/date-fns/esm/locale/ar/_lib/formatLong/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/ar/_lib/formatRelative/index.js +14 -0
- package/dist/node_modules/date-fns/esm/locale/ar/_lib/formatRelative/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/ar/_lib/localize/index.js +121 -0
- package/dist/node_modules/date-fns/esm/locale/ar/_lib/localize/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/ar/_lib/match/index.js +102 -0
- package/dist/node_modules/date-fns/esm/locale/ar/_lib/match/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/ar/index.js +30 -0
- package/dist/node_modules/date-fns/esm/locale/ar/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/de/_lib/formatDistance/index.js +178 -0
- package/dist/node_modules/date-fns/esm/locale/de/_lib/formatDistance/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/de/_lib/formatLong/index.js +42 -0
- package/dist/node_modules/date-fns/esm/locale/de/_lib/formatLong/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/de/_lib/formatRelative/index.js +14 -0
- package/dist/node_modules/date-fns/esm/locale/de/_lib/formatRelative/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/de/_lib/localize/index.js +137 -0
- package/dist/node_modules/date-fns/esm/locale/de/_lib/localize/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/de/_lib/match/index.js +103 -0
- package/dist/node_modules/date-fns/esm/locale/de/_lib/match/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/de/index.js +33 -0
- package/dist/node_modules/date-fns/esm/locale/de/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js +85 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js +37 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js +14 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js +146 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/match/index.js +101 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/match/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/index.js +30 -0
- package/dist/node_modules/date-fns/esm/locale/en-US/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/es/_lib/formatDistance/index.js +85 -0
- package/dist/node_modules/date-fns/esm/locale/es/_lib/formatDistance/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/es/_lib/formatLong/index.js +37 -0
- package/dist/node_modules/date-fns/esm/locale/es/_lib/formatLong/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/es/_lib/formatRelative/index.js +26 -0
- package/dist/node_modules/date-fns/esm/locale/es/_lib/formatRelative/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/es/_lib/localize/index.js +122 -0
- package/dist/node_modules/date-fns/esm/locale/es/_lib/localize/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/es/_lib/match/index.js +102 -0
- package/dist/node_modules/date-fns/esm/locale/es/_lib/match/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/es/index.js +33 -0
- package/dist/node_modules/date-fns/esm/locale/es/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/fr/_lib/formatDistance/index.js +85 -0
- package/dist/node_modules/date-fns/esm/locale/fr/_lib/formatDistance/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/fr/_lib/formatLong/index.js +37 -0
- package/dist/node_modules/date-fns/esm/locale/fr/_lib/formatLong/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/fr/_lib/formatRelative/index.js +14 -0
- package/dist/node_modules/date-fns/esm/locale/fr/_lib/formatRelative/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/fr/_lib/localize/index.js +97 -0
- package/dist/node_modules/date-fns/esm/locale/fr/_lib/localize/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/fr/_lib/match/index.js +101 -0
- package/dist/node_modules/date-fns/esm/locale/fr/_lib/match/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/fr/index.js +30 -0
- package/dist/node_modules/date-fns/esm/locale/fr/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/it/_lib/formatDistance/index.js +85 -0
- package/dist/node_modules/date-fns/esm/locale/it/_lib/formatDistance/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/it/_lib/formatLong/index.js +37 -0
- package/dist/node_modules/date-fns/esm/locale/it/_lib/formatLong/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/it/_lib/formatRelative/index.js +54 -0
- package/dist/node_modules/date-fns/esm/locale/it/_lib/formatRelative/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/it/_lib/localize/index.js +122 -0
- package/dist/node_modules/date-fns/esm/locale/it/_lib/localize/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/it/_lib/match/index.js +101 -0
- package/dist/node_modules/date-fns/esm/locale/it/_lib/match/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/it/index.js +31 -0
- package/dist/node_modules/date-fns/esm/locale/it/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/nl/_lib/formatDistance/index.js +85 -0
- package/dist/node_modules/date-fns/esm/locale/nl/_lib/formatDistance/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/nl/_lib/formatLong/index.js +37 -0
- package/dist/node_modules/date-fns/esm/locale/nl/_lib/formatLong/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/nl/_lib/formatRelative/index.js +14 -0
- package/dist/node_modules/date-fns/esm/locale/nl/_lib/formatRelative/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/nl/_lib/localize/index.js +88 -0
- package/dist/node_modules/date-fns/esm/locale/nl/_lib/localize/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/nl/_lib/match/index.js +100 -0
- package/dist/node_modules/date-fns/esm/locale/nl/_lib/match/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/nl/index.js +34 -0
- package/dist/node_modules/date-fns/esm/locale/nl/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/th/_lib/formatDistance/index.js +89 -0
- package/dist/node_modules/date-fns/esm/locale/th/_lib/formatDistance/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/th/_lib/formatLong/index.js +37 -0
- package/dist/node_modules/date-fns/esm/locale/th/_lib/formatLong/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/th/_lib/formatRelative/index.js +14 -0
- package/dist/node_modules/date-fns/esm/locale/th/_lib/formatRelative/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/th/_lib/localize/index.js +121 -0
- package/dist/node_modules/date-fns/esm/locale/th/_lib/localize/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/th/_lib/match/index.js +100 -0
- package/dist/node_modules/date-fns/esm/locale/th/_lib/match/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/locale/th/index.js +31 -0
- package/dist/node_modules/date-fns/esm/locale/th/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/startOfISOWeek/index.js +32 -0
- package/dist/node_modules/date-fns/esm/startOfISOWeek/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/startOfISOWeekYear/index.js +37 -0
- package/dist/node_modules/date-fns/esm/startOfISOWeekYear/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/startOfWeek/index.js +52 -0
- package/dist/node_modules/date-fns/esm/startOfWeek/index.js.map +1 -0
- package/dist/node_modules/date-fns/esm/toDate/index.js +56 -0
- package/dist/node_modules/date-fns/esm/toDate/index.js.map +1 -0
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/rules/src/chart/getAxisOptions.js +22 -22
- package/dist/rules/src/chart/getAxisOptions.js.map +1 -1
- package/dist/rules/src/chart/getChartOptions.js +1 -1
- package/dist/rules/src/chart/getChartOptions.js.map +1 -1
- package/dist/rules/src/constants.js +1 -35
- package/dist/rules/src/constants.js.map +1 -1
- package/dist/rules/src/date.js +40 -40
- package/dist/rules/src/date.js.map +1 -1
- package/dist/rules/src/dimension-utils.js +26 -24
- package/dist/rules/src/dimension-utils.js.map +1 -1
- package/dist/rules/src/factories/choro-series.js +43 -32
- package/dist/rules/src/factories/choro-series.js.map +1 -1
- package/dist/rules/src/factories/focus.js +20 -0
- package/dist/rules/src/factories/focus.js.map +1 -0
- package/dist/rules/src/factories/getChartSeries.js +11 -0
- package/dist/rules/src/factories/getChartSeries.js.map +1 -0
- package/dist/rules/src/factories/sample-focus.js +14 -18
- package/dist/rules/src/factories/sample-focus.js.map +1 -1
- package/dist/rules/src/factories/sample-series.js +20 -20
- package/dist/rules/src/factories/sample-series.js.map +1 -1
- package/dist/rules/src/factories/scatter-focus.js +21 -35
- package/dist/rules/src/factories/scatter-focus.js.map +1 -1
- package/dist/rules/src/factories/scatter-series.js +5 -5
- package/dist/rules/src/factories/scatter-series.js.map +1 -1
- package/dist/rules/src/factories/series.js +48 -0
- package/dist/rules/src/factories/series.js.map +1 -0
- package/dist/rules/src/factories/stacked-series.js +6 -7
- package/dist/rules/src/factories/stacked-series.js.map +1 -1
- package/dist/rules/src/factories/symbol-series.js +39 -46
- package/dist/rules/src/factories/symbol-series.js.map +1 -1
- package/dist/rules/src/factories/timeline-focus.js +10 -14
- package/dist/rules/src/factories/timeline-focus.js.map +1 -1
- package/dist/rules/src/factories/timeline-series.js +37 -41
- package/dist/rules/src/factories/timeline-series.js.map +1 -1
- package/dist/rules/src/get-values-enhanced.js +8 -2
- package/dist/rules/src/get-values-enhanced.js.map +1 -1
- package/dist/rules/src/index.js +6 -371
- package/dist/rules/src/index.js.map +1 -1
- package/dist/rules/src/layout.js +4 -2
- package/dist/rules/src/layout.js.map +1 -1
- package/dist/rules/src/observation-formater.js +8 -14
- package/dist/rules/src/observation-formater.js.map +1 -1
- package/dist/rules/src/properties/focus.js +51 -3
- package/dist/rules/src/properties/focus.js.map +1 -1
- package/dist/rules/src/properties/getHeaderProps.js +2 -53
- package/dist/rules/src/properties/getHeaderProps.js.map +1 -1
- package/dist/rules/src/properties/index.js +3 -94
- package/dist/rules/src/properties/index.js.map +1 -1
- package/dist/rules/src/properties/linear.js +4 -4
- package/dist/rules/src/properties/linear.js.map +1 -1
- package/dist/rules/src/properties/scatter.js +4 -4
- package/dist/rules/src/properties/scatter.js.map +1 -1
- package/dist/rules/src/properties/stacked.js +5 -7
- package/dist/rules/src/properties/stacked.js.map +1 -1
- package/dist/rules/src/properties/symbol.js.map +1 -1
- package/dist/rules/src/properties/utils.js +11 -12
- package/dist/rules/src/properties/utils.js.map +1 -1
- package/dist/rules/src/sdmx-data/index.js +2 -27
- package/dist/rules/src/sdmx-data/index.js.map +1 -1
- package/dist/rules2/src/combinedValuesDisplay.js +2 -2
- package/dist/rules2/src/combinedValuesDisplay.js.map +1 -1
- package/dist/rules2/src/getAttributes.js +37 -0
- package/dist/rules2/src/getAttributes.js.map +1 -0
- package/dist/rules2/src/getDataflowTooltipAttributesIds.js +2 -2
- package/dist/rules2/src/getDataflowTooltipAttributesIds.js.map +1 -1
- package/dist/rules2/src/getHeaderCombinations.js +1 -1
- package/dist/rules2/src/getHeaderCombinations.js.map +1 -1
- package/dist/rules2/src/getHeaderSubtitle.js +1 -1
- package/dist/rules2/src/getHeaderSubtitle.js.map +1 -1
- package/dist/rules2/src/getHeaderTitle.js +1 -1
- package/dist/rules2/src/getHeaderTitle.js.map +1 -1
- package/dist/rules2/src/getMetadataCoordinates.js +1 -1
- package/dist/rules2/src/getMetadataCoordinates.js.map +1 -1
- package/dist/rules2/src/getNotDisplayedIds.js +1 -1
- package/dist/rules2/src/getNotDisplayedIds.js.map +1 -1
- package/dist/rules2/src/index.js +1 -0
- package/dist/rules2/src/index.js.map +1 -1
- package/dist/rules2/src/parseAttributes.js +2 -2
- package/dist/rules2/src/parseAttributes.js.map +1 -1
- package/dist/rules2/src/parseHierarchicalCodelist.js +1 -1
- package/dist/rules2/src/parseHierarchicalCodelist.js.map +1 -1
- package/dist/rules2/src/parseMetadataSeries.js +1 -1
- package/dist/rules2/src/parseMetadataSeries.js.map +1 -1
- package/dist/rules2/src/prepareData.js +10 -3
- package/dist/rules2/src/prepareData.js.map +1 -1
- package/dist/rules2/src/refineDimensions.js +53 -8
- package/dist/rules2/src/refineDimensions.js.map +1 -1
- package/dist/rules2/src/refineTimePeriod.js +12 -16
- package/dist/rules2/src/refineTimePeriod.js.map +1 -1
- package/dist/rules2/src/table/getCells.js +1 -1
- package/dist/rules2/src/table/getCells.js.map +1 -1
- package/dist/rules2/src/table/getLayout.js +1 -1
- package/dist/rules2/src/table/getLayout.js.map +1 -1
- package/dist/rules2/src/table/getTableLayoutIds.js +1 -1
- package/dist/rules2/src/table/getTableLayoutIds.js.map +1 -1
- package/dist/rules2/src/table/getTableProps.js +0 -1
- package/dist/rules2/src/table/getTableProps.js.map +1 -1
- package/dist/rules2/src/table/parseValueHierarchy.js.map +1 -1
- package/dist/rules2/src/table/refineLayoutSize2.js +1 -1
- package/dist/rules2/src/table/refineLayoutSize2.js.map +1 -1
- package/dist/rules2/src/utils.js.map +1 -1
- package/dist/viewer/src/chart.js +13 -2
- package/dist/viewer/src/chart.js.map +1 -1
- package/dist/viewer/src/legends/FocusLegend.js +1 -1
- package/dist/viewer/src/legends/FocusLegend.js.map +1 -1
- package/package.json +7 -6
- package/src/bridge-d3-react/src/index.js +0 -1
- package/src/rules/src/chart/getAxisOptions.js +33 -21
- package/src/rules/src/chart/getChartOptions.js +2 -2
- package/src/rules/src/constants.js +0 -35
- package/src/rules/src/date.js +6 -12
- package/src/rules/src/dimension-utils.js +25 -23
- package/src/rules/src/factories/choro-series.js +41 -30
- package/src/rules/src/factories/focus.js +17 -0
- package/src/rules/src/factories/getChartSeries.js +8 -0
- package/src/rules/src/factories/sample-focus.js +14 -18
- package/src/rules/src/factories/sample-series.js +20 -20
- package/src/rules/src/factories/scatter-focus.js +22 -36
- package/src/rules/src/factories/scatter-series.js +8 -8
- package/src/rules/src/factories/series.js +45 -0
- package/src/rules/src/factories/stacked-series.js +4 -5
- package/src/rules/src/factories/symbol-series.js +37 -44
- package/src/rules/src/factories/timeline-focus.js +10 -14
- package/src/rules/src/factories/timeline-series.js +35 -39
- package/src/rules/src/get-values-enhanced.js +8 -2
- package/src/rules/src/index.js +7 -384
- package/src/rules/src/layout.js +4 -2
- package/src/rules/src/observation-formater.js +14 -20
- package/src/rules/src/properties/focus.js +50 -2
- package/src/rules/src/properties/getHeaderProps.js +1 -53
- package/src/rules/src/properties/index.js +2 -93
- package/src/rules/src/properties/linear.js +2 -2
- package/src/rules/src/properties/scatter.js +4 -4
- package/src/rules/src/properties/stacked.js +4 -6
- package/src/rules/src/properties/symbol.js +0 -1
- package/src/rules/src/properties/utils.js +11 -22
- package/src/rules/src/sdmx-data/index.js +2 -31
- package/src/rules2/src/combinedValuesDisplay.js +2 -2
- package/src/rules2/src/getAttributes.js +34 -0
- package/src/rules2/src/getDataflowTooltipAttributesIds.js +2 -2
- package/src/rules2/src/getHeaderCombinations.js +1 -1
- package/src/rules2/src/getHeaderSubtitle.js +2 -2
- package/src/rules2/src/getHeaderTitle.js +1 -1
- package/src/rules2/src/getMetadataCoordinates.js +1 -1
- package/src/rules2/src/getNotDisplayedIds.js +1 -1
- package/src/rules2/src/index.js +1 -0
- package/src/rules2/src/parseAttributes.js +2 -2
- package/src/rules2/src/parseHierarchicalCodelist.js +1 -1
- package/src/rules2/src/parseMetadataSeries.js +1 -1
- package/src/rules2/src/prepareData.js +10 -3
- package/src/rules2/src/refineDimensions.js +53 -8
- package/src/rules2/src/refineTimePeriod.js +12 -16
- package/src/rules2/src/table/getCells.js +2 -2
- package/src/rules2/src/table/getLayout.js +2 -2
- package/src/rules2/src/table/getTableLayoutIds.js +9 -9
- package/src/rules2/src/table/getTableProps.js +0 -1
- package/src/rules2/src/table/parseValueHierarchy.js +0 -7
- package/src/rules2/src/table/refineLayoutSize2.js +5 -5
- package/src/rules2/src/utils.js +0 -11
- package/src/viewer/src/app/leg.js +0 -1
- package/src/viewer/src/chart.jsx +23 -1
- package/src/viewer/src/legends/FocusLegend.jsx +1 -1
- package/dist/_virtual/index10.js +0 -8
- package/dist/_virtual/index10.js.map +0 -1
- package/dist/_virtual/index11.js +0 -8
- package/dist/_virtual/index11.js.map +0 -1
- package/dist/_virtual/index12.js +0 -8
- package/dist/_virtual/index12.js.map +0 -1
- package/dist/_virtual/index13.js +0 -8
- package/dist/_virtual/index13.js.map +0 -1
- package/dist/_virtual/index14.js +0 -8
- package/dist/_virtual/index14.js.map +0 -1
- package/dist/_virtual/index15.js +0 -8
- package/dist/_virtual/index15.js.map +0 -1
- package/dist/_virtual/index16.js +0 -8
- package/dist/_virtual/index16.js.map +0 -1
- package/dist/_virtual/index17.js +0 -7
- package/dist/_virtual/index17.js.map +0 -1
- package/dist/_virtual/index18.js +0 -7
- package/dist/_virtual/index18.js.map +0 -1
- package/dist/_virtual/index19.js +0 -8
- package/dist/_virtual/index19.js.map +0 -1
- package/dist/_virtual/index20.js +0 -4
- package/dist/_virtual/index20.js.map +0 -1
- package/dist/_virtual/index21.js +0 -6
- package/dist/_virtual/index21.js.map +0 -1
- package/dist/_virtual/index22.js +0 -4
- package/dist/_virtual/index22.js.map +0 -1
- package/dist/_virtual/index23.js +0 -4
- package/dist/_virtual/index23.js.map +0 -1
- package/dist/_virtual/index8.js +0 -8
- package/dist/_virtual/index8.js.map +0 -1
- package/dist/_virtual/index9.js +0 -8
- package/dist/_virtual/index9.js.map +0 -1
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds/index.js +0 -32
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds/index.js.map +0 -1
- package/dist/node_modules/date-fns/get_iso_week/index.js +0 -49
- package/dist/node_modules/date-fns/get_iso_week/index.js.map +0 -1
- package/dist/node_modules/date-fns/get_iso_year/index.js +0 -59
- package/dist/node_modules/date-fns/get_iso_year/index.js.map +0 -1
- package/dist/node_modules/date-fns/is_date/index.js +0 -32
- package/dist/node_modules/date-fns/is_date/index.js.map +0 -1
- package/dist/node_modules/date-fns/is_friday/index.js +0 -35
- package/dist/node_modules/date-fns/is_friday/index.js.map +0 -1
- package/dist/node_modules/date-fns/is_monday/index.js +0 -35
- package/dist/node_modules/date-fns/is_monday/index.js.map +0 -1
- package/dist/node_modules/date-fns/is_saturday/index.js +0 -35
- package/dist/node_modules/date-fns/is_saturday/index.js.map +0 -1
- package/dist/node_modules/date-fns/is_sunday/index.js +0 -35
- package/dist/node_modules/date-fns/is_sunday/index.js.map +0 -1
- package/dist/node_modules/date-fns/is_thursday/index.js +0 -35
- package/dist/node_modules/date-fns/is_thursday/index.js.map +0 -1
- package/dist/node_modules/date-fns/is_tuesday/index.js +0 -35
- package/dist/node_modules/date-fns/is_tuesday/index.js.map +0 -1
- package/dist/node_modules/date-fns/is_wednesday/index.js +0 -35
- package/dist/node_modules/date-fns/is_wednesday/index.js.map +0 -1
- package/dist/node_modules/date-fns/locale/_lib/build_formatting_tokens_reg_exp/index.js +0 -39
- package/dist/node_modules/date-fns/locale/_lib/build_formatting_tokens_reg_exp/index.js.map +0 -1
- package/dist/node_modules/date-fns/locale/ar/build_distance_in_words_locale/index.js +0 -110
- package/dist/node_modules/date-fns/locale/ar/build_distance_in_words_locale/index.js.map +0 -1
- package/dist/node_modules/date-fns/locale/ar/build_format_locale/index.js +0 -86
- package/dist/node_modules/date-fns/locale/ar/build_format_locale/index.js.map +0 -1
- package/dist/node_modules/date-fns/locale/ar/index.js +0 -26
- package/dist/node_modules/date-fns/locale/ar/index.js.map +0 -1
- package/dist/node_modules/date-fns/locale/de/build_distance_in_words_locale/index.js +0 -196
- package/dist/node_modules/date-fns/locale/de/build_distance_in_words_locale/index.js.map +0 -1
- package/dist/node_modules/date-fns/locale/de/build_format_locale/index.js +0 -90
- package/dist/node_modules/date-fns/locale/de/build_format_locale/index.js.map +0 -1
- package/dist/node_modules/date-fns/locale/de/index.js +0 -27
- package/dist/node_modules/date-fns/locale/de/index.js.map +0 -1
- package/dist/node_modules/date-fns/locale/en/build_distance_in_words_locale/index.js +0 -110
- package/dist/node_modules/date-fns/locale/en/build_distance_in_words_locale/index.js.map +0 -1
- package/dist/node_modules/date-fns/locale/en/build_format_locale/index.js +0 -101
- package/dist/node_modules/date-fns/locale/en/build_format_locale/index.js.map +0 -1
- package/dist/node_modules/date-fns/locale/en/index.js +0 -25
- package/dist/node_modules/date-fns/locale/en/index.js.map +0 -1
- package/dist/node_modules/date-fns/locale/es/build_distance_in_words_locale/index.js +0 -110
- package/dist/node_modules/date-fns/locale/es/build_distance_in_words_locale/index.js.map +0 -1
- package/dist/node_modules/date-fns/locale/es/build_format_locale/index.js +0 -86
- package/dist/node_modules/date-fns/locale/es/build_format_locale/index.js.map +0 -1
- package/dist/node_modules/date-fns/locale/es/index.js +0 -28
- package/dist/node_modules/date-fns/locale/es/index.js.map +0 -1
- package/dist/node_modules/date-fns/locale/fr/build_distance_in_words_locale/index.js +0 -110
- package/dist/node_modules/date-fns/locale/fr/build_distance_in_words_locale/index.js.map +0 -1
- package/dist/node_modules/date-fns/locale/fr/build_format_locale/index.js +0 -135
- package/dist/node_modules/date-fns/locale/fr/build_format_locale/index.js.map +0 -1
- package/dist/node_modules/date-fns/locale/fr/index.js +0 -27
- package/dist/node_modules/date-fns/locale/fr/index.js.map +0 -1
- package/dist/node_modules/date-fns/locale/it/build_distance_in_words_locale/index.js +0 -110
- package/dist/node_modules/date-fns/locale/it/build_distance_in_words_locale/index.js.map +0 -1
- package/dist/node_modules/date-fns/locale/it/build_format_locale/index.js +0 -86
- package/dist/node_modules/date-fns/locale/it/build_format_locale/index.js.map +0 -1
- package/dist/node_modules/date-fns/locale/it/index.js +0 -26
- package/dist/node_modules/date-fns/locale/it/index.js.map +0 -1
- package/dist/node_modules/date-fns/locale/nl/build_distance_in_words_locale/index.js +0 -110
- package/dist/node_modules/date-fns/locale/nl/build_distance_in_words_locale/index.js.map +0 -1
- package/dist/node_modules/date-fns/locale/nl/build_format_locale/index.js +0 -86
- package/dist/node_modules/date-fns/locale/nl/build_format_locale/index.js.map +0 -1
- package/dist/node_modules/date-fns/locale/nl/index.js +0 -27
- package/dist/node_modules/date-fns/locale/nl/index.js.map +0 -1
- package/dist/node_modules/date-fns/locale/th/build_distance_in_words_locale/index.js +0 -114
- package/dist/node_modules/date-fns/locale/th/build_distance_in_words_locale/index.js.map +0 -1
- package/dist/node_modules/date-fns/locale/th/build_format_locale/index.js +0 -74
- package/dist/node_modules/date-fns/locale/th/build_format_locale/index.js.map +0 -1
- package/dist/node_modules/date-fns/locale/th/index.js +0 -26
- package/dist/node_modules/date-fns/locale/th/index.js.map +0 -1
- package/dist/node_modules/date-fns/parse/index.js +0 -346
- package/dist/node_modules/date-fns/parse/index.js.map +0 -1
- package/dist/node_modules/date-fns/start_of_iso_week/index.js +0 -38
- package/dist/node_modules/date-fns/start_of_iso_week/index.js.map +0 -1
- package/dist/node_modules/date-fns/start_of_iso_year/index.js +0 -46
- package/dist/node_modules/date-fns/start_of_iso_year/index.js.map +0 -1
- package/dist/node_modules/date-fns/start_of_week/index.js +0 -51
- package/dist/node_modules/date-fns/start_of_week/index.js.map +0 -1
- package/dist/rules/src/factories/scatter-dimension.js +0 -35
- package/dist/rules/src/factories/scatter-dimension.js.map +0 -1
- package/dist/rules/src/factories/stacked-dimension.js +0 -32
- package/dist/rules/src/factories/stacked-dimension.js.map +0 -1
- package/dist/rules/src/factories/symbol-dimension.js +0 -32
- package/dist/rules/src/factories/symbol-dimension.js.map +0 -1
- package/dist/rules/src/header/getDefaultSubtitle.js +0 -44
- package/dist/rules/src/header/getDefaultSubtitle.js.map +0 -1
- package/dist/rules/src/header/getHeaderUnits.js +0 -21
- package/dist/rules/src/header/getHeaderUnits.js.map +0 -1
- package/dist/rules/src/header/getSubtitleFlags.js +0 -47
- package/dist/rules/src/header/getSubtitleFlags.js.map +0 -1
- package/dist/rules/src/header/getTitleFlags.js +0 -12
- package/dist/rules/src/header/getTitleFlags.js.map +0 -1
- package/dist/rules/src/properties/errors.js +0 -22
- package/dist/rules/src/properties/errors.js.map +0 -1
- package/dist/rules/src/properties/getInformationsStateFromNewProps.js +0 -50
- package/dist/rules/src/properties/getInformationsStateFromNewProps.js.map +0 -1
- package/dist/rules/src/v8-transformer.js +0 -174
- package/dist/rules/src/v8-transformer.js.map +0 -1
- package/src/bridge-d3-react/src/app.js +0 -64
- package/src/bridge-d3-react/src/mock-choro.js +0 -394
- package/src/rules/src/factories/scatter-dimension.js +0 -32
- package/src/rules/src/factories/stacked-dimension.js +0 -29
- package/src/rules/src/factories/symbol-dimension.js +0 -29
- package/src/rules/src/header/getDefaultSubtitle.js +0 -40
- package/src/rules/src/header/getHeaderUnits.js +0 -17
- package/src/rules/src/header/getSubtitleFlags.js +0 -43
- package/src/rules/src/header/getTitleFlags.js +0 -8
- package/src/rules/src/header/index.js +0 -4
- package/src/rules/src/preparators/enhanceObservations.js +0 -152
- package/src/rules/src/properties/errors.js +0 -19
- package/src/rules/src/properties/getInformationsStateFromNewProps.js +0 -47
- package/src/rules/src/properties/information.js +0 -84
- package/src/rules/src/v8-transformer.js +0 -177
- package/src/rules2/src/getAdvAttrSeriesAtCoordinates.js +0 -29
- package/src/rules2/src/getMetadataStructureFromData.js +0 -17
- package/src/rules2/src/refineMetadataCoordinates.js +0 -28
- package/src/rules2/src/table/getCombinationDimensionsData.js +0 -39
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as R from 'ramda';
|
|
2
|
-
import { getObservations } from '../../rules/src';
|
|
2
|
+
import { getObservations } from '../../rules/src/preparators/getObservations';
|
|
3
3
|
import { refineDimensions } from './refineDimensions';
|
|
4
4
|
import { enhanceObservations } from './enhanceObservations';
|
|
5
5
|
import { parseAttributes } from './parseAttributes';
|
|
@@ -18,12 +18,19 @@ import { getHeaderSubtitle } from './getHeaderSubtitle';
|
|
|
18
18
|
import { getHeaderCombinations } from './getHeaderCombinations';
|
|
19
19
|
import { getHeaderCoordinates } from './getHeaderCoordinates';
|
|
20
20
|
import { applyHierarchicalCodesToDim } from './applyHierarchicalCodesToDim';
|
|
21
|
+
import { getReportingYearStart } from '../../rules/src/preparators/getReportingYearStart';
|
|
22
|
+
import { getNotDisplayedIds } from './getNotDisplayedIds';
|
|
23
|
+
import { getAttributes } from './getAttributes';
|
|
21
24
|
|
|
22
25
|
export const prepareData = (sdmxJson, { customAttributes, locale, hierarchies, dataflow, display, defaultCombinations, dataquery }) => {
|
|
23
26
|
const dimensions = R.pathOr([], ['data', 'structure', 'dimensions', 'observation'], sdmxJson);
|
|
24
|
-
const refinedDimensions = refineDimensions(dimensions, dataquery);
|
|
25
|
-
const attributes = R.pathOr([], ['data', 'structure', 'attributes', 'observation'], sdmxJson);
|
|
26
27
|
const annotations = R.pathOr([], ['data', 'structure', 'annotations'], sdmxJson);
|
|
28
|
+
const reportYearStart = getReportingYearStart(sdmxJson);
|
|
29
|
+
const { hiddenValues, hiddenCombinations } = getNotDisplayedIds(annotations);
|
|
30
|
+
const options = { dataquery, hiddenCombinations, hiddenValues, locale, reportYearStart };
|
|
31
|
+
const refinedDimensions = refineDimensions({ annotations, dimensions, options });
|
|
32
|
+
const _attributes = R.pathOr([], ['data', 'structure', 'attributes'], sdmxJson);
|
|
33
|
+
const attributes = getAttributes({ attributes: _attributes, annotations, options });
|
|
27
34
|
const observations = getObservations(sdmxJson);
|
|
28
35
|
let combinations = getCombinationDefinitions(annotations, locale);
|
|
29
36
|
if (R.isEmpty(combinations) && !R.isEmpty(defaultCombinations)) {
|
|
@@ -1,18 +1,63 @@
|
|
|
1
1
|
import * as R from 'ramda';
|
|
2
|
+
import { isTimePeriodDimension } from '@sis-cc/dotstatsuite-sdmxjs';
|
|
3
|
+
import { getValuesEnhanced } from '../../rules/src/get-values-enhanced';
|
|
4
|
+
import { getIsHidden } from '../../rules/src/sdmx-data';
|
|
2
5
|
|
|
3
|
-
|
|
6
|
+
const TIME_PERIOD_ID = 'TIME_PERIOD';
|
|
7
|
+
|
|
8
|
+
export const refineDimensions = ({
|
|
9
|
+
annotations = [],
|
|
10
|
+
dimensions = [],
|
|
11
|
+
options = {},
|
|
12
|
+
}) => {
|
|
13
|
+
const {
|
|
14
|
+
dataquery = '',
|
|
15
|
+
hiddenCombinations = {},
|
|
16
|
+
hiddenValues = {},
|
|
17
|
+
locale = '',
|
|
18
|
+
reportYearStart,
|
|
19
|
+
...restOptions
|
|
20
|
+
} = options;
|
|
4
21
|
const selectionIds = R.pipe(R.split('.'), R.map(R.split('+')))(dataquery);
|
|
5
22
|
|
|
23
|
+
const getIsAllDimHidden = ({ id, values }) => {
|
|
24
|
+
if (!R.has(id, hiddenCombinations)) {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
const valuesIds = R.pluck('id', values);
|
|
28
|
+
return R.isEmpty(R.difference(valuesIds, hiddenCombinations[id]));
|
|
29
|
+
}
|
|
30
|
+
|
|
6
31
|
return R.addIndex(R.map)((dim, index) => {
|
|
7
32
|
const selection = R.nth(index, selectionIds);
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
33
|
+
const isEmptySelection = R.isNil(selection) || R.isEmpty(selection) || R.isEmpty(R.head(selection));
|
|
34
|
+
const isTimeDimension = isTimePeriodDimension(dim);
|
|
35
|
+
const dimAnnotations = R.props(dim.annotations || [], annotations);
|
|
36
|
+
const values = getValuesEnhanced({
|
|
37
|
+
annotations,
|
|
38
|
+
hiddenIds: hiddenValues,
|
|
39
|
+
isTimeDimension,
|
|
40
|
+
locale,
|
|
41
|
+
options: restOptions,
|
|
42
|
+
parent: dim.id,
|
|
43
|
+
reportYearStart,
|
|
44
|
+
selection
|
|
45
|
+
})(dim.values || []);
|
|
14
46
|
|
|
15
47
|
const size = R.length(values);
|
|
16
|
-
|
|
48
|
+
const isAllDimHidden = getIsAllDimHidden({ id: dim.id, values });
|
|
49
|
+
const isHidden = isAllDimHidden || R.has(dim.id, hiddenValues)
|
|
50
|
+
|| getIsHidden(dimAnnotations);
|
|
51
|
+
return ({
|
|
52
|
+
...dim,
|
|
53
|
+
display: !isHidden,
|
|
54
|
+
header: size === 1 || (size > 1 && R.length(selection) === 1 && !isEmptySelection),
|
|
55
|
+
__index: index,
|
|
56
|
+
rejected: isAllDimHidden || !size,
|
|
57
|
+
role: isTimeDimension
|
|
58
|
+
? TIME_PERIOD_ID
|
|
59
|
+
: R.head(dim.roles || []),
|
|
60
|
+
values,
|
|
61
|
+
});
|
|
17
62
|
}, dimensions);
|
|
18
63
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as R from 'ramda';
|
|
2
2
|
import * as dateFns from 'date-fns';
|
|
3
|
-
import { getLocale
|
|
3
|
+
import { getLocale } from '../../rules/src/date';
|
|
4
4
|
|
|
5
5
|
const computeDisplayFreq = (start, duration) => {
|
|
6
6
|
const startMinute = dateFns.startOfMinute(start);
|
|
@@ -13,7 +13,7 @@ const computeDisplayFreq = (start, duration) => {
|
|
|
13
13
|
|| duration === 'H' || duration === 'm') {
|
|
14
14
|
return 'm';
|
|
15
15
|
}
|
|
16
|
-
else if (
|
|
16
|
+
else if (dateFns.getDate(start) !== 1 || duration === 'D') {
|
|
17
17
|
return 'D';
|
|
18
18
|
}
|
|
19
19
|
else if (dateFns.getMonth(start) !== 0 || duration === 'M') {
|
|
@@ -38,16 +38,16 @@ const getAdder = (duration) => {
|
|
|
38
38
|
|
|
39
39
|
const getFormat = (freqDisplay) => {
|
|
40
40
|
if (freqDisplay === 'Y')
|
|
41
|
-
return '
|
|
41
|
+
return 'yyyy';
|
|
42
42
|
if (freqDisplay === 'D')
|
|
43
|
-
return '
|
|
43
|
+
return 'yyyy-MM-dd';
|
|
44
44
|
if (freqDisplay === 'H' || freqDisplay === 'm') {
|
|
45
45
|
return 'HH:mm';
|
|
46
46
|
}
|
|
47
47
|
if (freqDisplay === 'S') {
|
|
48
48
|
return 'HH:mm:ss';
|
|
49
49
|
}
|
|
50
|
-
return '
|
|
50
|
+
return 'yyyy-MMM';
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
const getEndDate = (start, mult, duration) => {
|
|
@@ -64,14 +64,15 @@ const computeName = (start, end, freqDisplay, locale, format) => {
|
|
|
64
64
|
const dayFormat = getFormat('D');
|
|
65
65
|
if (isSameDay)
|
|
66
66
|
return `${dateFns.format(start, dayFormat, opts)} ${dateFns.format(start, format, opts)} - ${dateFns.format(end, format, opts)}`;
|
|
67
|
-
return `${dateFns.format(start,
|
|
67
|
+
return `${dateFns.format(start, dayFormat, opts)} ${dateFns.format(start, format, opts)} - `
|
|
68
|
+
+ `${dateFns.format(end, dayFormat, opts)} ${dateFns.format(end, format, opts)}`;
|
|
68
69
|
}
|
|
69
70
|
if (freqDisplay !== 'M') {
|
|
70
71
|
return `${dateFns.format(start, format, opts)} - ${dateFns.format(end, format, opts)}`;
|
|
71
72
|
}
|
|
72
73
|
|
|
73
74
|
if (isSameYear && !R.includes('-', format)) {
|
|
74
|
-
const yearFormatMatch = R.match(/([
|
|
75
|
+
const yearFormatMatch = R.match(/([y]+)/, format);
|
|
75
76
|
const monthFormatMatch = R.match(/([M]+|Mo)/, format);
|
|
76
77
|
const yearFormat = R.length(yearFormatMatch) >= 2 ? R.nth(1, yearFormatMatch) : null;
|
|
77
78
|
const monthFormat = R.length(monthFormatMatch) >= 2 ? R.nth(1, monthFormatMatch) : null;
|
|
@@ -87,16 +88,11 @@ const computeName = (start, end, freqDisplay, locale, format) => {
|
|
|
87
88
|
return `${dateFns.format(start, format, opts)} - ${dateFns.format(end, format, opts)}`;
|
|
88
89
|
};
|
|
89
90
|
|
|
90
|
-
export const getStartDate =
|
|
91
|
-
|
|
92
|
-
return dateWithoutTZ(new Date(start));
|
|
93
|
-
}
|
|
94
|
-
return new Date(start);
|
|
95
|
-
};
|
|
96
|
-
|
|
91
|
+
export const getStartDate = value =>
|
|
92
|
+
typeof value === 'string' ? dateFns.parseISO(value) : new Date(value);
|
|
97
93
|
const dateWithTZ = date => dateFns.addMinutes(date, -date.getTimezoneOffset());
|
|
98
94
|
|
|
99
|
-
export const refineTimePeriod = (timePeriod, { locale, monthlyFormat='
|
|
95
|
+
export const refineTimePeriod = (timePeriod, { locale, monthlyFormat = 'yyyy-MMM' }) => {
|
|
100
96
|
const { id } = timePeriod;
|
|
101
97
|
const split = R.split('/', id);
|
|
102
98
|
if (R.length(split) !== 2) {
|
|
@@ -113,7 +109,7 @@ export const refineTimePeriod = (timePeriod, { locale, monthlyFormat='YYYY-MMM'
|
|
|
113
109
|
const [timeIndicator, mult, _duration] = R.tail(match);
|
|
114
110
|
const duration = !R.isEmpty(timeIndicator) && _duration === 'M' ? 'm' : _duration;
|
|
115
111
|
const endDate = getEndDate(startDate, mult, duration);
|
|
116
|
-
const freqDisplay = computeDisplayFreq(
|
|
112
|
+
const freqDisplay = computeDisplayFreq(startDate, duration);
|
|
117
113
|
const format = freqDisplay === 'M' ? monthlyFormat : getFormat(freqDisplay);
|
|
118
114
|
const name = computeName(startDate, endDate, freqDisplay, locale, format);
|
|
119
115
|
|
|
@@ -2,7 +2,7 @@ import * as R from 'ramda';
|
|
|
2
2
|
import { getFlagsAndNotes } from './getFlagsAndNotes';
|
|
3
3
|
import { hasCellMetadata } from '../hasCellMetadata';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const getCellRelevantAttributes = (attributes, attributesSeries, cellAttributeIds) => R.filter(
|
|
6
6
|
(attr) => {
|
|
7
7
|
if (R.isNil(attr.value)) {
|
|
8
8
|
return false;
|
|
@@ -16,7 +16,7 @@ export const getCellRelevantAttributes = (attributes, attributesSeries, cellAttr
|
|
|
16
16
|
attributes
|
|
17
17
|
);
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
const getCellCombinedSeries = (attributes, combinations) => R.reduce(
|
|
20
20
|
(acc, comb) => {
|
|
21
21
|
const values = R.reduce(
|
|
22
22
|
(acc, concept) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as R from 'ramda';
|
|
2
2
|
import { isTimePeriodDimension } from '@sis-cc/dotstatsuite-sdmxjs';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const getConceptsSet = (ids, indexedCombinations, _upper) => {
|
|
5
5
|
const upper = R.isNil(_upper) ? new Set([]) : _upper;
|
|
6
6
|
const res = new Set([]);
|
|
7
7
|
R.forEach(id => {
|
|
@@ -20,7 +20,7 @@ export const getConceptsSet = (ids, indexedCombinations, _upper) => {
|
|
|
20
20
|
return res;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
const parseCombination = (_upperIds, _excludedIds) => (comb, indexedDimensions) => {
|
|
24
24
|
const upperIds = R.isNil(_upperIds) ? new Set([]) : _upperIds;
|
|
25
25
|
const excludedIds = R.isNil(_excludedIds) ? new Set([]) : _excludedIds;
|
|
26
26
|
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import * as R from 'ramda';
|
|
2
2
|
import { isTimePeriodDimension, isRefAreaDimension } from '@sis-cc/dotstatsuite-sdmxjs';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const getCombinationsNotInLayout = (combinations, layoutIds) => {
|
|
5
5
|
const { header=[], sections=[], rows=[] } = layoutIds;
|
|
6
6
|
const idsInLayout = new Set([...header, ...sections, ...rows]);
|
|
7
7
|
return R.reject(comb => idsInLayout.has(comb.id), combinations);
|
|
8
8
|
};
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
const indexCombsRelationships = (combinations) => R.reduce((acc, comb) => {
|
|
11
11
|
const { id, relationship=[] } = comb;
|
|
12
12
|
return R.assoc(id, relationship, acc);
|
|
13
13
|
}, {}, combinations);
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
const getLayoutLevelRelationship = indexedRelationships => ids => R.reduce((acc, id) => {
|
|
16
16
|
if (R.has(id, indexedRelationships)) {
|
|
17
17
|
return R.concat(acc, R.prop(id, indexedRelationships));
|
|
18
18
|
}
|
|
19
19
|
return R.append(id, acc);
|
|
20
20
|
}, [], ids);
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
const getLayoutRelationships = (indexedRelationships, layoutIds) => R.map(
|
|
23
23
|
getLayoutLevelRelationship(indexedRelationships),
|
|
24
24
|
layoutIds
|
|
25
25
|
);
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
const injectCombination = combination => ids => {
|
|
28
28
|
const { id, concepts=[] } = combination;
|
|
29
29
|
const conceptsSet = new Set(concepts);
|
|
30
30
|
let inject = true;
|
|
@@ -41,7 +41,7 @@ export const injectCombination = combination => ids => {
|
|
|
41
41
|
return inject ? R.append(id, refined) : refined;
|
|
42
42
|
};
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
const getCombinationLevelCompatibility = (layoutRelationships, combination) => {
|
|
45
45
|
const { relationship=[] } = combination;
|
|
46
46
|
const idsInHeaderSet = new Set(layoutRelationships.header);
|
|
47
47
|
const idsInSectionsSet = new Set(layoutRelationships.sections);
|
|
@@ -132,13 +132,13 @@ export const injectCombinationsInLayout = (combinations, layoutIds, defaultLayou
|
|
|
132
132
|
}, layoutIds, notInLayoutCombs);
|
|
133
133
|
};
|
|
134
134
|
|
|
135
|
-
|
|
135
|
+
const getLayoutDimsIds = dimensions => R.reduce(
|
|
136
136
|
(acc, d) => (d.header ? acc : acc.add(d.id)),
|
|
137
137
|
new Set([]),
|
|
138
138
|
dimensions,
|
|
139
139
|
);
|
|
140
140
|
|
|
141
|
-
|
|
141
|
+
const getLayoutCombinations = (combinations, layoutDimsIds, attributes) => {
|
|
142
142
|
const indexedAttributes = R.indexBy(R.prop('id'), attributes);
|
|
143
143
|
return R.reduce(
|
|
144
144
|
(acc, comb) => {
|
|
@@ -203,7 +203,7 @@ const extractConcepts = (ids, indexedCombinations, layoutDimsIds) => {
|
|
|
203
203
|
return R.partition(id => set.has(id), ids);
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
|
|
206
|
+
const injectRemainingDimensionsInLayout = (layoutIds, remainingDims, indexedCombinations, layoutDimsIds) => {
|
|
207
207
|
let _layout = layoutIds;
|
|
208
208
|
let _remaining = remainingDims;
|
|
209
209
|
|
|
@@ -72,7 +72,6 @@ export const getTableProps = ({ data, layoutIds, customAttributes, limit, isTime
|
|
|
72
72
|
const indexedCombinations = getIndexedCombinationsByDisplay(layout, seriesCombinations);
|
|
73
73
|
const cellsMetadataCoordinates = getCellsMetadataCoordinates(metadataCoordinates, oneValueDimensions, layoutDimsIds);
|
|
74
74
|
const cells = getCells(customAttributes, cellsAttributesIds, indexedCombinations, attributesSeries, cellsMetadataCoordinates)(dupObs);
|
|
75
|
-
//console.log({ cellsAttributesIds, customAttributes, indexedCombinations });
|
|
76
75
|
|
|
77
76
|
return ({
|
|
78
77
|
...layoutData,
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import * as R from 'ramda';
|
|
2
2
|
|
|
3
|
-
export const isSameValueAsPrevious = (value, previousValue) => {
|
|
4
|
-
const valueHierarchicalPath = R.append(value.id, R.propOr([], 'parents', value));
|
|
5
|
-
const previousValueHierarchicalPath = R.append(previousValue.id, R.propOr([], 'parents', previousValue));
|
|
6
|
-
|
|
7
|
-
return R.equals(valueHierarchicalPath, previousValueHierarchicalPath);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
3
|
export const parseValueHierarchy = (value, previousValue, indexedValues) => {
|
|
11
4
|
const parentsIds = R.propOr([], 'parents', value);
|
|
12
5
|
if (R.isEmpty(parentsIds)) {
|
|
@@ -45,7 +45,7 @@ const indexWithPivots = (pivots, observations) => R.pipe(
|
|
|
45
45
|
)
|
|
46
46
|
)(observations);
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
const getCuratedCells = ({ layout, observations, shape }) => {
|
|
49
49
|
const pivots = getPivots(layout, shape);
|
|
50
50
|
return indexWithPivots(pivots, observations);
|
|
51
51
|
};
|
|
@@ -86,7 +86,7 @@ const filterSeries = (series, getHasStillData) => {
|
|
|
86
86
|
}, [], series);
|
|
87
87
|
};
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
const refineSections = (sections, extractedKeys, curatedObs) => R.pipe(
|
|
90
90
|
R.map(
|
|
91
91
|
(section) => {
|
|
92
92
|
const sectionKey = toKey(R.propOr([], 'indexes', R.head(section)));
|
|
@@ -110,7 +110,7 @@ export const refineSections = (sections, extractedKeys, curatedObs) => R.pipe(
|
|
|
110
110
|
)
|
|
111
111
|
)(sections);
|
|
112
112
|
|
|
113
|
-
|
|
113
|
+
const refineHeader = (headers, extractedKeys, curatedObs) => {
|
|
114
114
|
const getHasHeaderStillData = (header) => {
|
|
115
115
|
const headerKey = toKey(R.prop('indexes', header));
|
|
116
116
|
return R.pipe(
|
|
@@ -138,7 +138,7 @@ const getSerieLinesCount = serie => {
|
|
|
138
138
|
return missingParentsRowsCount + 1;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
|
|
141
|
+
const truncateSectionRows = (n, sectionsData) => {
|
|
142
142
|
let truncated = sectionsData;
|
|
143
143
|
let extractedKeys = {};
|
|
144
144
|
let _n = n;
|
|
@@ -170,7 +170,7 @@ export const truncateSectionRows = (n, sectionsData) => {
|
|
|
170
170
|
return ({ truncated, extractedKeys });
|
|
171
171
|
};
|
|
172
172
|
|
|
173
|
-
|
|
173
|
+
const truncateHeader = (n, headerData) => {
|
|
174
174
|
let { truncated, extractedKeys } = { truncated: headerData, extractedKeys: [] };
|
|
175
175
|
let _n = n;
|
|
176
176
|
while (_n > 0) {
|
package/src/rules2/src/utils.js
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
import * as R from 'ramda';
|
|
2
2
|
|
|
3
|
-
export const trimedProps = (properties, obj) => R.reduce(
|
|
4
|
-
(acc, prop) => {
|
|
5
|
-
if (R.isNil(R.prop(prop, obj))) {
|
|
6
|
-
return acc;
|
|
7
|
-
}
|
|
8
|
-
return R.append(obj[prop], acc);
|
|
9
|
-
},
|
|
10
|
-
[],
|
|
11
|
-
properties,
|
|
12
|
-
);
|
|
13
|
-
|
|
14
3
|
export const getLayoutCoordinatesValidator = (layoutCoordinates, topCoordinates={}) => (coordinates) => {
|
|
15
4
|
if (R.isEmpty(coordinates)) {
|
|
16
5
|
return false;
|
package/src/viewer/src/chart.jsx
CHANGED
|
@@ -1,11 +1,33 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as R from 'ramda';
|
|
3
3
|
import { NoData } from '@sis-cc/dotstatsuite-visions';
|
|
4
|
-
import
|
|
4
|
+
import {
|
|
5
|
+
BarChart,
|
|
6
|
+
RowChart,
|
|
7
|
+
ScatterChart,
|
|
8
|
+
TimelineChart,
|
|
9
|
+
HorizontalSymbolChart,
|
|
10
|
+
VerticalSymbolChart,
|
|
11
|
+
StackedBarChart,
|
|
12
|
+
StackedRowChart,
|
|
13
|
+
ChoroplethChart,
|
|
14
|
+
} from '../../bridge-d3-react/src';
|
|
5
15
|
import filterSeriesRegardingDimensions from './chartUtils/series';
|
|
6
16
|
import AxisLegend from './legends/AxisLegend.jsx';
|
|
7
17
|
import { isChartNoData } from './utils';
|
|
8
18
|
|
|
19
|
+
const charts = {
|
|
20
|
+
BarChart,
|
|
21
|
+
RowChart,
|
|
22
|
+
ScatterChart,
|
|
23
|
+
TimelineChart,
|
|
24
|
+
HorizontalSymbolChart,
|
|
25
|
+
VerticalSymbolChart,
|
|
26
|
+
StackedBarChart,
|
|
27
|
+
StackedRowChart,
|
|
28
|
+
ChoroplethChart,
|
|
29
|
+
};
|
|
30
|
+
|
|
9
31
|
const Chart = ({ options, series, type, width, getAxisOptions }) => {
|
|
10
32
|
const ChartClass = charts[type];
|
|
11
33
|
return (
|
|
@@ -3,7 +3,7 @@ import * as R from 'ramda';
|
|
|
3
3
|
import Legend from './Legend.jsx';
|
|
4
4
|
import { SCATTER, TIMELINE } from '../../../rules/src/constants';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
const REDUCED_THRESHOLD = 160;
|
|
7
7
|
|
|
8
8
|
const scatterRenderer = ({ color }) => (
|
|
9
9
|
<svg width='12' height='14'>
|
package/dist/_virtual/index10.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs } from './_commonjsHelpers.js';
|
|
2
|
-
import { __require as requireIs_tuesday } from '../node_modules/date-fns/is_tuesday/index.js';
|
|
3
|
-
|
|
4
|
-
var is_tuesdayExports = requireIs_tuesday();
|
|
5
|
-
var isTuesday = /*@__PURE__*/getDefaultExportFromCjs(is_tuesdayExports);
|
|
6
|
-
|
|
7
|
-
export { isTuesday as default };
|
|
8
|
-
//# sourceMappingURL=index10.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index10.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/_virtual/index11.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs } from './_commonjsHelpers.js';
|
|
2
|
-
import { __require as requireIs_wednesday } from '../node_modules/date-fns/is_wednesday/index.js';
|
|
3
|
-
|
|
4
|
-
var is_wednesdayExports = requireIs_wednesday();
|
|
5
|
-
var isWednesday = /*@__PURE__*/getDefaultExportFromCjs(is_wednesdayExports);
|
|
6
|
-
|
|
7
|
-
export { isWednesday as default };
|
|
8
|
-
//# sourceMappingURL=index11.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index11.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/_virtual/index12.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs } from './_commonjsHelpers.js';
|
|
2
|
-
import { __require as requireIs_thursday } from '../node_modules/date-fns/is_thursday/index.js';
|
|
3
|
-
|
|
4
|
-
var is_thursdayExports = requireIs_thursday();
|
|
5
|
-
var isThursday = /*@__PURE__*/getDefaultExportFromCjs(is_thursdayExports);
|
|
6
|
-
|
|
7
|
-
export { isThursday as default };
|
|
8
|
-
//# sourceMappingURL=index12.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index12.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/_virtual/index13.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs } from './_commonjsHelpers.js';
|
|
2
|
-
import { __require as requireIs_friday } from '../node_modules/date-fns/is_friday/index.js';
|
|
3
|
-
|
|
4
|
-
var is_fridayExports = requireIs_friday();
|
|
5
|
-
var isFriday = /*@__PURE__*/getDefaultExportFromCjs(is_fridayExports);
|
|
6
|
-
|
|
7
|
-
export { isFriday as default };
|
|
8
|
-
//# sourceMappingURL=index13.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index13.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/_virtual/index14.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs } from './_commonjsHelpers.js';
|
|
2
|
-
import { __require as requireIs_saturday } from '../node_modules/date-fns/is_saturday/index.js';
|
|
3
|
-
|
|
4
|
-
var is_saturdayExports = requireIs_saturday();
|
|
5
|
-
var isSaturday = /*@__PURE__*/getDefaultExportFromCjs(is_saturdayExports);
|
|
6
|
-
|
|
7
|
-
export { isSaturday as default };
|
|
8
|
-
//# sourceMappingURL=index14.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index14.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/_virtual/index15.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs } from './_commonjsHelpers.js';
|
|
2
|
-
import { __require as requireIs_sunday } from '../node_modules/date-fns/is_sunday/index.js';
|
|
3
|
-
|
|
4
|
-
var is_sundayExports = requireIs_sunday();
|
|
5
|
-
var isSunday = /*@__PURE__*/getDefaultExportFromCjs(is_sundayExports);
|
|
6
|
-
|
|
7
|
-
export { isSunday as default };
|
|
8
|
-
//# sourceMappingURL=index15.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index15.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/_virtual/index16.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs } from './_commonjsHelpers.js';
|
|
2
|
-
import { __require as requireGet_iso_week } from '../node_modules/date-fns/get_iso_week/index.js';
|
|
3
|
-
|
|
4
|
-
var get_iso_weekExports = requireGet_iso_week();
|
|
5
|
-
var getISOWeek = /*@__PURE__*/getDefaultExportFromCjs(get_iso_weekExports);
|
|
6
|
-
|
|
7
|
-
export { getISOWeek as default };
|
|
8
|
-
//# sourceMappingURL=index16.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index16.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/_virtual/index17.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { getAugmentedNamespace } from './_commonjsHelpers.js';
|
|
2
|
-
import * as index from '../node_modules/@mui/utils/esm/formatMuiErrorMessage/index.js';
|
|
3
|
-
|
|
4
|
-
var require$$1 = /*@__PURE__*/getAugmentedNamespace(index);
|
|
5
|
-
|
|
6
|
-
export { require$$1 as default };
|
|
7
|
-
//# sourceMappingURL=index17.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index17.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
package/dist/_virtual/index18.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { getAugmentedNamespace } from './_commonjsHelpers.js';
|
|
2
|
-
import * as index from '../node_modules/@mui/utils/esm/clamp/index.js';
|
|
3
|
-
|
|
4
|
-
var require$$2 = /*@__PURE__*/getAugmentedNamespace(index);
|
|
5
|
-
|
|
6
|
-
export { require$$2 as default };
|
|
7
|
-
//# sourceMappingURL=index18.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index18.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
package/dist/_virtual/index19.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs } from './_commonjsHelpers.js';
|
|
2
|
-
import { __require as requirePropTypes } from '../node_modules/prop-types/index.js';
|
|
3
|
-
|
|
4
|
-
var propTypesExports = /*@__PURE__*/ requirePropTypes();
|
|
5
|
-
var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
|
|
6
|
-
|
|
7
|
-
export { PropTypes as default };
|
|
8
|
-
//# sourceMappingURL=index19.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index19.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/_virtual/index20.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index20.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/_virtual/index21.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index21.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/dist/_virtual/index22.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index22.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/_virtual/index23.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index23.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/_virtual/index8.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs } from './_commonjsHelpers.js';
|
|
2
|
-
import { __require as requireTh } from '../node_modules/date-fns/locale/th/index.js';
|
|
3
|
-
|
|
4
|
-
var thExports = requireTh();
|
|
5
|
-
var th = /*@__PURE__*/getDefaultExportFromCjs(thExports);
|
|
6
|
-
|
|
7
|
-
export { th as default };
|
|
8
|
-
//# sourceMappingURL=index8.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index8.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/_virtual/index9.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs } from './_commonjsHelpers.js';
|
|
2
|
-
import { __require as requireIs_monday } from '../node_modules/date-fns/is_monday/index.js';
|
|
3
|
-
|
|
4
|
-
var is_mondayExports = requireIs_monday();
|
|
5
|
-
var isMonday = /*@__PURE__*/getDefaultExportFromCjs(is_mondayExports);
|
|
6
|
-
|
|
7
|
-
export { isMonday as default };
|
|
8
|
-
//# sourceMappingURL=index9.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index9.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|