@sis-cc/dotstatsuite-components 23.1.0 → 24.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/index.js +1 -5
- package/dist/index.js.map +1 -1
- package/package.json +31 -31
- package/dist/_virtual/_commonjsHelpers.js +0 -35
- package/dist/_virtual/_commonjsHelpers.js.map +0 -1
- package/dist/_virtual/_rollupPluginBabelHelpers.js +0 -12
- package/dist/_virtual/_rollupPluginBabelHelpers.js.map +0 -1
- package/dist/_virtual/colorManipulator.js +0 -6
- package/dist/_virtual/colorManipulator.js.map +0 -1
- package/dist/_virtual/colorManipulator2.js +0 -4
- package/dist/_virtual/colorManipulator2.js.map +0 -1
- package/dist/_virtual/index.js +0 -7
- package/dist/_virtual/index.js.map +0 -1
- package/dist/_virtual/index2.js +0 -7
- package/dist/_virtual/index2.js.map +0 -1
- package/dist/_virtual/index3.js +0 -8
- package/dist/_virtual/index3.js.map +0 -1
- package/dist/_virtual/index4.js +0 -4
- package/dist/_virtual/index4.js.map +0 -1
- package/dist/_virtual/index5.js +0 -6
- package/dist/_virtual/index5.js.map +0 -1
- package/dist/_virtual/index6.js +0 -4
- package/dist/_virtual/index6.js.map +0 -1
- package/dist/_virtual/index7.js +0 -4
- package/dist/_virtual/index7.js.map +0 -1
- package/dist/_virtual/interopRequireDefault.js +0 -4
- package/dist/_virtual/interopRequireDefault.js.map +0 -1
- package/dist/_virtual/jsx-runtime.js +0 -4
- package/dist/_virtual/jsx-runtime.js.map +0 -1
- package/dist/_virtual/jsx-runtime2.js +0 -6
- package/dist/_virtual/jsx-runtime2.js.map +0 -1
- package/dist/_virtual/react-is.development.js +0 -4
- package/dist/_virtual/react-is.development.js.map +0 -1
- package/dist/_virtual/react-is.development2.js +0 -4
- package/dist/_virtual/react-is.development2.js.map +0 -1
- package/dist/_virtual/react-is.production.js +0 -4
- package/dist/_virtual/react-is.production.js.map +0 -1
- package/dist/_virtual/react-is.production.min.js +0 -4
- package/dist/_virtual/react-is.production.min.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.development.js +0 -4
- package/dist/_virtual/react-jsx-runtime.development.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.production.min.js +0 -4
- package/dist/_virtual/react-jsx-runtime.production.min.js.map +0 -1
- package/dist/bridge-d3-react/src/index.js +0 -17
- package/dist/bridge-d3-react/src/index.js.map +0 -1
- package/dist/bridge-d3-react/src/react-chart-factory.js +0 -44
- package/dist/bridge-d3-react/src/react-chart-factory.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -8
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -8
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -7
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -16
- package/dist/node_modules/@babel/runtime/helpers/esm/createClass.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +0 -12
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -8
- package/dist/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -6
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -6
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -12
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -8
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -11
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -15
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -10
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -12
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -12
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js.map +0 -1
- package/dist/node_modules/@babel/runtime/helpers/interopRequireDefault.js +0 -20
- package/dist/node_modules/@babel/runtime/helpers/interopRequireDefault.js.map +0 -1
- package/dist/node_modules/@mui/material/colors/blue.js +0 -9
- package/dist/node_modules/@mui/material/colors/blue.js.map +0 -1
- package/dist/node_modules/@mui/material/colors/common.js +0 -7
- package/dist/node_modules/@mui/material/colors/common.js.map +0 -1
- package/dist/node_modules/@mui/material/colors/green.js +0 -10
- package/dist/node_modules/@mui/material/colors/green.js.map +0 -1
- package/dist/node_modules/@mui/material/colors/grey.js +0 -19
- package/dist/node_modules/@mui/material/colors/grey.js.map +0 -1
- package/dist/node_modules/@mui/material/colors/lightBlue.js +0 -9
- package/dist/node_modules/@mui/material/colors/lightBlue.js.map +0 -1
- package/dist/node_modules/@mui/material/colors/orange.js +0 -9
- package/dist/node_modules/@mui/material/colors/orange.js.map +0 -1
- package/dist/node_modules/@mui/material/colors/purple.js +0 -10
- package/dist/node_modules/@mui/material/colors/purple.js.map +0 -1
- package/dist/node_modules/@mui/material/colors/red.js +0 -9
- package/dist/node_modules/@mui/material/colors/red.js.map +0 -1
- package/dist/node_modules/@mui/material/styles/createMixins.js +0 -20
- package/dist/node_modules/@mui/material/styles/createMixins.js.map +0 -1
- package/dist/node_modules/@mui/material/styles/createPalette.js +0 -309
- package/dist/node_modules/@mui/material/styles/createPalette.js.map +0 -1
- package/dist/node_modules/@mui/material/styles/createTheme.js +0 -86
- package/dist/node_modules/@mui/material/styles/createTheme.js.map +0 -1
- package/dist/node_modules/@mui/material/styles/createTransitions.js +0 -92
- package/dist/node_modules/@mui/material/styles/createTransitions.js.map +0 -1
- package/dist/node_modules/@mui/material/styles/createTypography.js +0 -94
- package/dist/node_modules/@mui/material/styles/createTypography.js.map +0 -1
- package/dist/node_modules/@mui/material/styles/defaultTheme.js +0 -6
- package/dist/node_modules/@mui/material/styles/defaultTheme.js.map +0 -1
- package/dist/node_modules/@mui/material/styles/identifier.js +0 -4
- package/dist/node_modules/@mui/material/styles/identifier.js.map +0 -1
- package/dist/node_modules/@mui/material/styles/shadows.js +0 -12
- package/dist/node_modules/@mui/material/styles/shadows.js.map +0 -1
- package/dist/node_modules/@mui/material/styles/useTheme.js +0 -16
- package/dist/node_modules/@mui/material/styles/useTheme.js.map +0 -1
- package/dist/node_modules/@mui/material/styles/zIndex.js +0 -15
- package/dist/node_modules/@mui/material/styles/zIndex.js.map +0 -1
- package/dist/node_modules/@mui/private-theming/ThemeProvider/nested.js +0 -5
- package/dist/node_modules/@mui/private-theming/ThemeProvider/nested.js.map +0 -1
- package/dist/node_modules/@mui/private-theming/useTheme/ThemeContext.js +0 -9
- package/dist/node_modules/@mui/private-theming/useTheme/ThemeContext.js.map +0 -1
- package/dist/node_modules/@mui/private-theming/useTheme/useTheme.js +0 -14
- package/dist/node_modules/@mui/private-theming/useTheme/useTheme.js.map +0 -1
- package/dist/node_modules/@mui/styles/StylesProvider/StylesProvider.js +0 -151
- package/dist/node_modules/@mui/styles/StylesProvider/StylesProvider.js.map +0 -1
- package/dist/node_modules/@mui/styles/createGenerateClassName/createGenerateClassName.js +0 -66
- package/dist/node_modules/@mui/styles/createGenerateClassName/createGenerateClassName.js.map +0 -1
- package/dist/node_modules/@mui/styles/getStylesCreator/getStylesCreator.js +0 -52
- package/dist/node_modules/@mui/styles/getStylesCreator/getStylesCreator.js.map +0 -1
- package/dist/node_modules/@mui/styles/getStylesCreator/noopTheme.js +0 -5
- package/dist/node_modules/@mui/styles/getStylesCreator/noopTheme.js.map +0 -1
- package/dist/node_modules/@mui/styles/jssPreset/jssPreset.js +0 -21
- package/dist/node_modules/@mui/styles/jssPreset/jssPreset.js.map +0 -1
- package/dist/node_modules/@mui/styles/makeStyles/indexCounter.js +0 -22
- package/dist/node_modules/@mui/styles/makeStyles/indexCounter.js.map +0 -1
- package/dist/node_modules/@mui/styles/makeStyles/makeStyles.js +0 -230
- package/dist/node_modules/@mui/styles/makeStyles/makeStyles.js.map +0 -1
- package/dist/node_modules/@mui/styles/makeStyles/multiKeyStore.js +0 -23
- package/dist/node_modules/@mui/styles/makeStyles/multiKeyStore.js.map +0 -1
- package/dist/node_modules/@mui/styles/mergeClasses/mergeClasses.js +0 -37
- package/dist/node_modules/@mui/styles/mergeClasses/mergeClasses.js.map +0 -1
- package/dist/node_modules/@mui/styles/propsToClassKey/propsToClassKey.js +0 -31
- package/dist/node_modules/@mui/styles/propsToClassKey/propsToClassKey.js.map +0 -1
- package/dist/node_modules/@mui/styles/useTheme/index.js +0 -10
- package/dist/node_modules/@mui/styles/useTheme/index.js.map +0 -1
- package/dist/node_modules/@mui/system/colorManipulator.js +0 -386
- package/dist/node_modules/@mui/system/colorManipulator.js.map +0 -1
- package/dist/node_modules/@mui/system/esm/borders.js +0 -52
- package/dist/node_modules/@mui/system/esm/borders.js.map +0 -1
- package/dist/node_modules/@mui/system/esm/breakpoints.js +0 -67
- package/dist/node_modules/@mui/system/esm/breakpoints.js.map +0 -1
- package/dist/node_modules/@mui/system/esm/compose.js +0 -27
- package/dist/node_modules/@mui/system/esm/compose.js.map +0 -1
- package/dist/node_modules/@mui/system/esm/createTheme/applyStyles.js +0 -77
- package/dist/node_modules/@mui/system/esm/createTheme/applyStyles.js.map +0 -1
- package/dist/node_modules/@mui/system/esm/createTheme/createBreakpoints.js +0 -83
- package/dist/node_modules/@mui/system/esm/createTheme/createBreakpoints.js.map +0 -1
- package/dist/node_modules/@mui/system/esm/createTheme/createSpacing.js +0 -35
- package/dist/node_modules/@mui/system/esm/createTheme/createSpacing.js.map +0 -1
- package/dist/node_modules/@mui/system/esm/createTheme/createTheme.js +0 -46
- package/dist/node_modules/@mui/system/esm/createTheme/createTheme.js.map +0 -1
- package/dist/node_modules/@mui/system/esm/createTheme/shape.js +0 -6
- package/dist/node_modules/@mui/system/esm/createTheme/shape.js.map +0 -1
- package/dist/node_modules/@mui/system/esm/cssGrid.js +0 -87
- package/dist/node_modules/@mui/system/esm/cssGrid.js.map +0 -1
- package/dist/node_modules/@mui/system/esm/memoize.js +0 -12
- package/dist/node_modules/@mui/system/esm/memoize.js.map +0 -1
- package/dist/node_modules/@mui/system/esm/merge.js +0 -13
- package/dist/node_modules/@mui/system/esm/merge.js.map +0 -1
- package/dist/node_modules/@mui/system/esm/palette.js +0 -29
- package/dist/node_modules/@mui/system/esm/palette.js.map +0 -1
- package/dist/node_modules/@mui/system/esm/responsivePropType.js +0 -6
- package/dist/node_modules/@mui/system/esm/responsivePropType.js.map +0 -1
- package/dist/node_modules/@mui/system/esm/sizing.js +0 -68
- package/dist/node_modules/@mui/system/esm/sizing.js.map +0 -1
- package/dist/node_modules/@mui/system/esm/spacing.js +0 -145
- package/dist/node_modules/@mui/system/esm/spacing.js.map +0 -1
- package/dist/node_modules/@mui/system/esm/style.js +0 -78
- package/dist/node_modules/@mui/system/esm/style.js.map +0 -1
- package/dist/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +0 -294
- package/dist/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js.map +0 -1
- package/dist/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +0 -137
- package/dist/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js.map +0 -1
- package/dist/node_modules/@mui/system/esm/useTheme.js +0 -10
- package/dist/node_modules/@mui/system/esm/useTheme.js.map +0 -1
- package/dist/node_modules/@mui/system/esm/useThemeWithoutDefault.js +0 -13
- package/dist/node_modules/@mui/system/esm/useThemeWithoutDefault.js.map +0 -1
- package/dist/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js +0 -19
- package/dist/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js.map +0 -1
- package/dist/node_modules/@mui/utils/esm/capitalize/capitalize.js +0 -15
- package/dist/node_modules/@mui/utils/esm/capitalize/capitalize.js.map +0 -1
- package/dist/node_modules/@mui/utils/esm/clamp/clamp.js +0 -6
- package/dist/node_modules/@mui/utils/esm/clamp/clamp.js.map +0 -1
- package/dist/node_modules/@mui/utils/esm/clamp/index.js +0 -2
- package/dist/node_modules/@mui/utils/esm/clamp/index.js.map +0 -1
- package/dist/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +0 -46
- package/dist/node_modules/@mui/utils/esm/deepmerge/deepmerge.js.map +0 -1
- package/dist/node_modules/@mui/utils/esm/exactProp/exactProp.js +0 -24
- package/dist/node_modules/@mui/utils/esm/exactProp/exactProp.js.map +0 -1
- package/dist/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js +0 -22
- package/dist/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js.map +0 -1
- package/dist/node_modules/@mui/utils/esm/formatMuiErrorMessage/index.js +0 -2
- package/dist/node_modules/@mui/utils/esm/formatMuiErrorMessage/index.js.map +0 -1
- package/dist/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js +0 -23
- package/dist/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js.map +0 -1
- package/dist/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js +0 -50
- package/dist/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js.map +0 -1
- package/dist/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.development.js +0 -143
- package/dist/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.development.js.map +0 -1
- package/dist/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.production.js +0 -140
- package/dist/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.production.js.map +0 -1
- package/dist/node_modules/@mui/utils/node_modules/react-is/index.js +0 -20
- package/dist/node_modules/@mui/utils/node_modules/react-is/index.js.map +0 -1
- package/dist/node_modules/css-vendor/dist/css-vendor.esm.js +0 -574
- package/dist/node_modules/css-vendor/dist/css-vendor.esm.js.map +0 -1
- package/dist/node_modules/date-fns/esm/_lib/defaultOptions/index.js +0 -7
- package/dist/node_modules/date-fns/esm/_lib/defaultOptions/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/_lib/isSameUTCWeek/index.js +0 -12
- package/dist/node_modules/date-fns/esm/_lib/isSameUTCWeek/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/_lib/requiredArgs/index.js +0 -8
- package/dist/node_modules/date-fns/esm/_lib/requiredArgs/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js +0 -25
- package/dist/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/_lib/toInteger/index.js +0 -13
- package/dist/node_modules/date-fns/esm/_lib/toInteger/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/getISOWeek/index.js +0 -39
- package/dist/node_modules/date-fns/esm/getISOWeek/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/getISOWeekYear/index.js +0 -47
- package/dist/node_modules/date-fns/esm/getISOWeekYear/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/getTime/index.js +0 -29
- package/dist/node_modules/date-fns/esm/getTime/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/isFriday/index.js +0 -27
- package/dist/node_modules/date-fns/esm/isFriday/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/isMonday/index.js +0 -27
- package/dist/node_modules/date-fns/esm/isMonday/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/isSaturday/index.js +0 -27
- package/dist/node_modules/date-fns/esm/isSaturday/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/isSunday/index.js +0 -27
- package/dist/node_modules/date-fns/esm/isSunday/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/isThursday/index.js +0 -27
- package/dist/node_modules/date-fns/esm/isThursday/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/isTuesday/index.js +0 -27
- package/dist/node_modules/date-fns/esm/isTuesday/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/isWednesday/index.js +0 -27
- package/dist/node_modules/date-fns/esm/isWednesday/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js +0 -12
- package/dist/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js +0 -21
- package/dist/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js +0 -45
- package/dist/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js +0 -20
- package/dist/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/ar/_lib/formatDistance/index.js +0 -119
- package/dist/node_modules/date-fns/esm/locale/ar/_lib/formatDistance/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/ar/_lib/formatLong/index.js +0 -37
- package/dist/node_modules/date-fns/esm/locale/ar/_lib/formatLong/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/ar/_lib/formatRelative/index.js +0 -14
- package/dist/node_modules/date-fns/esm/locale/ar/_lib/formatRelative/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/ar/_lib/localize/index.js +0 -121
- package/dist/node_modules/date-fns/esm/locale/ar/_lib/localize/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/ar/_lib/match/index.js +0 -102
- package/dist/node_modules/date-fns/esm/locale/ar/_lib/match/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/ar/index.js +0 -30
- package/dist/node_modules/date-fns/esm/locale/ar/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/de/_lib/formatDistance/index.js +0 -178
- package/dist/node_modules/date-fns/esm/locale/de/_lib/formatDistance/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/de/_lib/formatLong/index.js +0 -42
- package/dist/node_modules/date-fns/esm/locale/de/_lib/formatLong/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/de/_lib/formatRelative/index.js +0 -14
- package/dist/node_modules/date-fns/esm/locale/de/_lib/formatRelative/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/de/_lib/localize/index.js +0 -137
- package/dist/node_modules/date-fns/esm/locale/de/_lib/localize/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/de/_lib/match/index.js +0 -103
- package/dist/node_modules/date-fns/esm/locale/de/_lib/match/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/de/index.js +0 -33
- package/dist/node_modules/date-fns/esm/locale/de/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js +0 -85
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js +0 -37
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js +0 -14
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js +0 -146
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/match/index.js +0 -101
- package/dist/node_modules/date-fns/esm/locale/en-US/_lib/match/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/en-US/index.js +0 -30
- package/dist/node_modules/date-fns/esm/locale/en-US/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/es/_lib/formatDistance/index.js +0 -85
- package/dist/node_modules/date-fns/esm/locale/es/_lib/formatDistance/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/es/_lib/formatLong/index.js +0 -37
- package/dist/node_modules/date-fns/esm/locale/es/_lib/formatLong/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/es/_lib/formatRelative/index.js +0 -26
- package/dist/node_modules/date-fns/esm/locale/es/_lib/formatRelative/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/es/_lib/localize/index.js +0 -122
- package/dist/node_modules/date-fns/esm/locale/es/_lib/localize/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/es/_lib/match/index.js +0 -102
- package/dist/node_modules/date-fns/esm/locale/es/_lib/match/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/es/index.js +0 -33
- package/dist/node_modules/date-fns/esm/locale/es/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/fr/_lib/formatDistance/index.js +0 -85
- package/dist/node_modules/date-fns/esm/locale/fr/_lib/formatDistance/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/fr/_lib/formatLong/index.js +0 -37
- package/dist/node_modules/date-fns/esm/locale/fr/_lib/formatLong/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/fr/_lib/formatRelative/index.js +0 -14
- package/dist/node_modules/date-fns/esm/locale/fr/_lib/formatRelative/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/fr/_lib/localize/index.js +0 -97
- package/dist/node_modules/date-fns/esm/locale/fr/_lib/localize/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/fr/_lib/match/index.js +0 -101
- package/dist/node_modules/date-fns/esm/locale/fr/_lib/match/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/fr/index.js +0 -30
- package/dist/node_modules/date-fns/esm/locale/fr/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/it/_lib/formatDistance/index.js +0 -85
- package/dist/node_modules/date-fns/esm/locale/it/_lib/formatDistance/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/it/_lib/formatLong/index.js +0 -37
- package/dist/node_modules/date-fns/esm/locale/it/_lib/formatLong/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/it/_lib/formatRelative/index.js +0 -54
- package/dist/node_modules/date-fns/esm/locale/it/_lib/formatRelative/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/it/_lib/localize/index.js +0 -122
- package/dist/node_modules/date-fns/esm/locale/it/_lib/localize/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/it/_lib/match/index.js +0 -101
- package/dist/node_modules/date-fns/esm/locale/it/_lib/match/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/it/index.js +0 -31
- package/dist/node_modules/date-fns/esm/locale/it/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/nl/_lib/formatDistance/index.js +0 -85
- package/dist/node_modules/date-fns/esm/locale/nl/_lib/formatDistance/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/nl/_lib/formatLong/index.js +0 -37
- package/dist/node_modules/date-fns/esm/locale/nl/_lib/formatLong/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/nl/_lib/formatRelative/index.js +0 -14
- package/dist/node_modules/date-fns/esm/locale/nl/_lib/formatRelative/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/nl/_lib/localize/index.js +0 -88
- package/dist/node_modules/date-fns/esm/locale/nl/_lib/localize/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/nl/_lib/match/index.js +0 -100
- package/dist/node_modules/date-fns/esm/locale/nl/_lib/match/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/nl/index.js +0 -34
- package/dist/node_modules/date-fns/esm/locale/nl/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/th/_lib/formatDistance/index.js +0 -89
- package/dist/node_modules/date-fns/esm/locale/th/_lib/formatDistance/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/th/_lib/formatLong/index.js +0 -37
- package/dist/node_modules/date-fns/esm/locale/th/_lib/formatLong/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/th/_lib/formatRelative/index.js +0 -14
- package/dist/node_modules/date-fns/esm/locale/th/_lib/formatRelative/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/th/_lib/localize/index.js +0 -121
- package/dist/node_modules/date-fns/esm/locale/th/_lib/localize/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/th/_lib/match/index.js +0 -100
- package/dist/node_modules/date-fns/esm/locale/th/_lib/match/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/locale/th/index.js +0 -31
- package/dist/node_modules/date-fns/esm/locale/th/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/startOfISOWeek/index.js +0 -32
- package/dist/node_modules/date-fns/esm/startOfISOWeek/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/startOfISOWeekYear/index.js +0 -37
- package/dist/node_modules/date-fns/esm/startOfISOWeekYear/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/startOfWeek/index.js +0 -52
- package/dist/node_modules/date-fns/esm/startOfWeek/index.js.map +0 -1
- package/dist/node_modules/date-fns/esm/toDate/index.js +0 -56
- package/dist/node_modules/date-fns/esm/toDate/index.js.map +0 -1
- package/dist/node_modules/hyphenate-style-name/index.js +0 -20
- package/dist/node_modules/hyphenate-style-name/index.js.map +0 -1
- package/dist/node_modules/is-in-browser/dist/module.js +0 -6
- package/dist/node_modules/is-in-browser/dist/module.js.map +0 -1
- package/dist/node_modules/jss/dist/jss.esm.js +0 -2220
- package/dist/node_modules/jss/dist/jss.esm.js.map +0 -1
- package/dist/node_modules/jss-plugin-camel-case/dist/jss-plugin-camel-case.esm.js +0 -60
- package/dist/node_modules/jss-plugin-camel-case/dist/jss-plugin-camel-case.esm.js.map +0 -1
- package/dist/node_modules/jss-plugin-default-unit/dist/jss-plugin-default-unit.esm.js +0 -252
- package/dist/node_modules/jss-plugin-default-unit/dist/jss-plugin-default-unit.esm.js.map +0 -1
- package/dist/node_modules/jss-plugin-global/dist/jss-plugin-global.esm.js +0 -187
- package/dist/node_modules/jss-plugin-global/dist/jss-plugin-global.esm.js.map +0 -1
- package/dist/node_modules/jss-plugin-nested/dist/jss-plugin-nested.esm.js +0 -114
- package/dist/node_modules/jss-plugin-nested/dist/jss-plugin-nested.esm.js.map +0 -1
- package/dist/node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.esm.js +0 -29
- package/dist/node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.esm.js.map +0 -1
- package/dist/node_modules/jss-plugin-rule-value-function/dist/jss-plugin-rule-value-function.esm.js +0 -66
- package/dist/node_modules/jss-plugin-rule-value-function/dist/jss-plugin-rule-value-function.esm.js.map +0 -1
- package/dist/node_modules/jss-plugin-vendor-prefixer/dist/jss-plugin-vendor-prefixer.esm.js +0 -58
- package/dist/node_modules/jss-plugin-vendor-prefixer/dist/jss-plugin-vendor-prefixer.esm.js.map +0 -1
- package/dist/node_modules/object-assign/index.js +0 -100
- package/dist/node_modules/object-assign/index.js.map +0 -1
- package/dist/node_modules/prop-types/checkPropTypes.js +0 -116
- package/dist/node_modules/prop-types/checkPropTypes.js.map +0 -1
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -75
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js.map +0 -1
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -626
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js.map +0 -1
- package/dist/node_modules/prop-types/index.js +0 -34
- package/dist/node_modules/prop-types/index.js.map +0 -1
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -22
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +0 -1
- package/dist/node_modules/prop-types/lib/has.js +0 -12
- package/dist/node_modules/prop-types/lib/has.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -1326
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -25
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +0 -1
- package/dist/node_modules/react/jsx-runtime.js +0 -20
- package/dist/node_modules/react/jsx-runtime.js.map +0 -1
- package/dist/node_modules/react-is/cjs/react-is.development.js +0 -191
- package/dist/node_modules/react-is/cjs/react-is.development.js.map +0 -1
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +0 -27
- package/dist/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
- package/dist/node_modules/react-is/index.js +0 -20
- package/dist/node_modules/react-is/index.js.map +0 -1
- package/dist/node_modules/tiny-warning/dist/tiny-warning.esm.js +0 -18
- package/dist/node_modules/tiny-warning/dist/tiny-warning.esm.js.map +0 -1
- package/dist/rules/src/chart/getAxisOptions.js +0 -256
- package/dist/rules/src/chart/getAxisOptions.js.map +0 -1
- package/dist/rules/src/chart/getBaseOptions.js +0 -77
- package/dist/rules/src/chart/getBaseOptions.js.map +0 -1
- package/dist/rules/src/chart/getChartOptions.js +0 -120
- package/dist/rules/src/chart/getChartOptions.js.map +0 -1
- package/dist/rules/src/chart/getGridOptions.js +0 -46
- package/dist/rules/src/chart/getGridOptions.js.map +0 -1
- package/dist/rules/src/chart/getTooltipOptions.js +0 -223
- package/dist/rules/src/chart/getTooltipOptions.js.map +0 -1
- package/dist/rules/src/constants.js +0 -31
- package/dist/rules/src/constants.js.map +0 -1
- package/dist/rules/src/date.js +0 -121
- package/dist/rules/src/date.js.map +0 -1
- package/dist/rules/src/dimension-utils.js +0 -59
- package/dist/rules/src/dimension-utils.js.map +0 -1
- package/dist/rules/src/factories/choro-series.js +0 -79
- package/dist/rules/src/factories/choro-series.js.map +0 -1
- package/dist/rules/src/factories/focus.js +0 -20
- package/dist/rules/src/factories/focus.js.map +0 -1
- package/dist/rules/src/factories/getChartSeries.js +0 -11
- package/dist/rules/src/factories/getChartSeries.js.map +0 -1
- package/dist/rules/src/factories/sample-focus.js +0 -21
- package/dist/rules/src/factories/sample-focus.js.map +0 -1
- package/dist/rules/src/factories/sample-series.js +0 -54
- package/dist/rules/src/factories/sample-series.js.map +0 -1
- package/dist/rules/src/factories/scatter-focus.js +0 -28
- package/dist/rules/src/factories/scatter-focus.js.map +0 -1
- package/dist/rules/src/factories/scatter-series.js +0 -91
- package/dist/rules/src/factories/scatter-series.js.map +0 -1
- package/dist/rules/src/factories/series.js +0 -48
- package/dist/rules/src/factories/series.js.map +0 -1
- package/dist/rules/src/factories/stacked-series.js +0 -187
- package/dist/rules/src/factories/stacked-series.js.map +0 -1
- package/dist/rules/src/factories/symbol-series.js +0 -58
- package/dist/rules/src/factories/symbol-series.js.map +0 -1
- package/dist/rules/src/factories/timeline-focus.js +0 -17
- package/dist/rules/src/factories/timeline-focus.js.map +0 -1
- package/dist/rules/src/factories/timeline-series.js +0 -90
- package/dist/rules/src/factories/timeline-series.js.map +0 -1
- package/dist/rules/src/get-values-enhanced.js +0 -139
- package/dist/rules/src/get-values-enhanced.js.map +0 -1
- package/dist/rules/src/index.js +0 -14
- package/dist/rules/src/index.js.map +0 -1
- package/dist/rules/src/layout.js +0 -109
- package/dist/rules/src/layout.js.map +0 -1
- package/dist/rules/src/observation-formater.js +0 -80
- package/dist/rules/src/observation-formater.js.map +0 -1
- package/dist/rules/src/preparators/formatValue.js +0 -97
- package/dist/rules/src/preparators/formatValue.js.map +0 -1
- package/dist/rules/src/preparators/getObservations.js +0 -22
- package/dist/rules/src/preparators/getObservations.js.map +0 -1
- package/dist/rules/src/preparators/getReportingYearStart.js +0 -19
- package/dist/rules/src/preparators/getReportingYearStart.js.map +0 -1
- package/dist/rules/src/properties/focus.js +0 -120
- package/dist/rules/src/properties/focus.js.map +0 -1
- package/dist/rules/src/properties/getAvailableChartTypes.js +0 -31
- package/dist/rules/src/properties/getAvailableChartTypes.js.map +0 -1
- package/dist/rules/src/properties/getHeaderProps.js +0 -25
- package/dist/rules/src/properties/getHeaderProps.js.map +0 -1
- package/dist/rules/src/properties/getObservationsType.js +0 -28
- package/dist/rules/src/properties/getObservationsType.js.map +0 -1
- package/dist/rules/src/properties/getStringifiedSubtitle.js +0 -9
- package/dist/rules/src/properties/getStringifiedSubtitle.js.map +0 -1
- package/dist/rules/src/properties/index.js +0 -293
- package/dist/rules/src/properties/index.js.map +0 -1
- package/dist/rules/src/properties/linear.js +0 -123
- package/dist/rules/src/properties/linear.js.map +0 -1
- package/dist/rules/src/properties/scatter.js +0 -156
- package/dist/rules/src/properties/scatter.js.map +0 -1
- package/dist/rules/src/properties/stacked.js +0 -94
- package/dist/rules/src/properties/stacked.js.map +0 -1
- package/dist/rules/src/properties/symbol.js +0 -76
- package/dist/rules/src/properties/symbol.js.map +0 -1
- package/dist/rules/src/properties/utils.js +0 -85
- package/dist/rules/src/properties/utils.js.map +0 -1
- package/dist/rules/src/sdmx-data/index.js +0 -13
- package/dist/rules/src/sdmx-data/index.js.map +0 -1
- package/dist/rules/src/table/factories/getCellValue.js +0 -53
- package/dist/rules/src/table/factories/getCellValue.js.map +0 -1
- package/dist/rules2/src/applyHierarchicalCodesToDim.js +0 -126
- package/dist/rules2/src/applyHierarchicalCodesToDim.js.map +0 -1
- package/dist/rules2/src/combinedValuesDisplay.js +0 -77
- package/dist/rules2/src/combinedValuesDisplay.js.map +0 -1
- package/dist/rules2/src/constants.js +0 -9
- package/dist/rules2/src/constants.js.map +0 -1
- package/dist/rules2/src/duplicateObservations.js +0 -38
- package/dist/rules2/src/duplicateObservations.js.map +0 -1
- package/dist/rules2/src/enhanceObservations.js +0 -98
- package/dist/rules2/src/enhanceObservations.js.map +0 -1
- package/dist/rules2/src/getAttributes.js +0 -37
- package/dist/rules2/src/getAttributes.js.map +0 -1
- package/dist/rules2/src/getAttributesSeries.js +0 -39
- package/dist/rules2/src/getAttributesSeries.js.map +0 -1
- package/dist/rules2/src/getCombinationDefinitions.js +0 -50
- package/dist/rules2/src/getCombinationDefinitions.js.map +0 -1
- package/dist/rules2/src/getDataflowAttributes.js +0 -25
- package/dist/rules2/src/getDataflowAttributes.js.map +0 -1
- package/dist/rules2/src/getDataflowTooltipAttributesIds.js +0 -33
- package/dist/rules2/src/getDataflowTooltipAttributesIds.js.map +0 -1
- package/dist/rules2/src/getDimensionValuesIndexes.js +0 -16
- package/dist/rules2/src/getDimensionValuesIndexes.js.map +0 -1
- package/dist/rules2/src/getHCodelistsRefsInData.js +0 -35
- package/dist/rules2/src/getHCodelistsRefsInData.js.map +0 -1
- package/dist/rules2/src/getHeaderCombinations.js +0 -51
- package/dist/rules2/src/getHeaderCombinations.js.map +0 -1
- package/dist/rules2/src/getHeaderCoordinates.js +0 -10
- package/dist/rules2/src/getHeaderCoordinates.js.map +0 -1
- package/dist/rules2/src/getHeaderSubtitle.js +0 -37
- package/dist/rules2/src/getHeaderSubtitle.js.map +0 -1
- package/dist/rules2/src/getHeaderTitle.js +0 -18
- package/dist/rules2/src/getHeaderTitle.js.map +0 -1
- package/dist/rules2/src/getMSDInformations.js +0 -26
- package/dist/rules2/src/getMSDInformations.js.map +0 -1
- package/dist/rules2/src/getManyValuesDimensions.js +0 -37
- package/dist/rules2/src/getManyValuesDimensions.js.map +0 -1
- package/dist/rules2/src/getMetadataCoordinates.js +0 -40
- package/dist/rules2/src/getMetadataCoordinates.js.map +0 -1
- package/dist/rules2/src/getNotDisplayedIds.js +0 -56
- package/dist/rules2/src/getNotDisplayedIds.js.map +0 -1
- package/dist/rules2/src/getOneValueDimensions.js +0 -37
- package/dist/rules2/src/getOneValueDimensions.js.map +0 -1
- package/dist/rules2/src/getSeriesCombinations.js +0 -27
- package/dist/rules2/src/getSeriesCombinations.js.map +0 -1
- package/dist/rules2/src/hasCellMetadata.js +0 -17
- package/dist/rules2/src/hasCellMetadata.js.map +0 -1
- package/dist/rules2/src/hierarchiseDimensionWithAdvancedHierarchy2.js +0 -60
- package/dist/rules2/src/hierarchiseDimensionWithAdvancedHierarchy2.js.map +0 -1
- package/dist/rules2/src/hierarchiseDimensionWithNativeHierarchy2.js +0 -38
- package/dist/rules2/src/hierarchiseDimensionWithNativeHierarchy2.js.map +0 -1
- package/dist/rules2/src/index.js +0 -48
- package/dist/rules2/src/index.js.map +0 -1
- package/dist/rules2/src/parseAttributes.js +0 -44
- package/dist/rules2/src/parseAttributes.js.map +0 -1
- package/dist/rules2/src/parseCombinations.js +0 -105
- package/dist/rules2/src/parseCombinations.js.map +0 -1
- package/dist/rules2/src/parseHierarchicalCodelist.js +0 -34
- package/dist/rules2/src/parseHierarchicalCodelist.js.map +0 -1
- package/dist/rules2/src/parseMetadataSeries.js +0 -124
- package/dist/rules2/src/parseMetadataSeries.js.map +0 -1
- package/dist/rules2/src/prepareData.js +0 -85
- package/dist/rules2/src/prepareData.js.map +0 -1
- package/dist/rules2/src/refineAttributes.js +0 -19
- package/dist/rules2/src/refineAttributes.js.map +0 -1
- package/dist/rules2/src/refineDimensions.js +0 -66
- package/dist/rules2/src/refineDimensions.js.map +0 -1
- package/dist/rules2/src/refineTimePeriod.js +0 -126
- package/dist/rules2/src/refineTimePeriod.js.map +0 -1
- package/dist/rules2/src/sdmx3.0DataFormatPatch.js +0 -12
- package/dist/rules2/src/sdmx3.0DataFormatPatch.js.map +0 -1
- package/dist/rules2/src/table/declineObservationsOverAttributes.js +0 -35
- package/dist/rules2/src/table/declineObservationsOverAttributes.js.map +0 -1
- package/dist/rules2/src/table/getCells.js +0 -96
- package/dist/rules2/src/table/getCells.js.map +0 -1
- package/dist/rules2/src/table/getCellsAttributesIds.js +0 -41
- package/dist/rules2/src/table/getCellsAttributesIds.js.map +0 -1
- package/dist/rules2/src/table/getCellsMetadataCoordinates.js +0 -16
- package/dist/rules2/src/table/getCellsMetadataCoordinates.js.map +0 -1
- package/dist/rules2/src/table/getCuratedCells.js +0 -36
- package/dist/rules2/src/table/getCuratedCells.js.map +0 -1
- package/dist/rules2/src/table/getFlagsAndNotes.js +0 -26
- package/dist/rules2/src/table/getFlagsAndNotes.js.map +0 -1
- package/dist/rules2/src/table/getIndexedCombinationsByDisplay.js +0 -19
- package/dist/rules2/src/table/getIndexedCombinationsByDisplay.js.map +0 -1
- package/dist/rules2/src/table/getLayout.js +0 -87
- package/dist/rules2/src/table/getLayout.js.map +0 -1
- package/dist/rules2/src/table/getLayoutData2.js +0 -206
- package/dist/rules2/src/table/getLayoutData2.js.map +0 -1
- package/dist/rules2/src/table/getSortedLayoutIndexes.js +0 -141
- package/dist/rules2/src/table/getSortedLayoutIndexes.js.map +0 -1
- package/dist/rules2/src/table/getTableLabelAccessor.js +0 -11
- package/dist/rules2/src/table/getTableLabelAccessor.js.map +0 -1
- package/dist/rules2/src/table/getTableLayoutIds.js +0 -317
- package/dist/rules2/src/table/getTableLayoutIds.js.map +0 -1
- package/dist/rules2/src/table/getTableProps.js +0 -85
- package/dist/rules2/src/table/getTableProps.js.map +0 -1
- package/dist/rules2/src/table/parseSeriesIndexesHierarchies.js +0 -82
- package/dist/rules2/src/table/parseSeriesIndexesHierarchies.js.map +0 -1
- package/dist/rules2/src/table/parseValueHierarchy.js +0 -29
- package/dist/rules2/src/table/parseValueHierarchy.js.map +0 -1
- package/dist/rules2/src/table/refineLayoutSize2.js +0 -324
- package/dist/rules2/src/table/refineLayoutSize2.js.map +0 -1
- package/dist/rules2/src/utils.js +0 -29
- package/dist/rules2/src/utils.js.map +0 -1
- package/dist/viewer/src/chart.js +0 -61
- package/dist/viewer/src/chart.js.map +0 -1
- package/dist/viewer/src/chartUtils/options.js +0 -33
- package/dist/viewer/src/chartUtils/options.js.map +0 -1
- package/dist/viewer/src/chartUtils/series.js +0 -54
- package/dist/viewer/src/chartUtils/series.js.map +0 -1
- package/dist/viewer/src/footer.js +0 -39
- package/dist/viewer/src/footer.js.map +0 -1
- package/dist/viewer/src/header.js +0 -12
- package/dist/viewer/src/header.js.map +0 -1
- package/dist/viewer/src/index.js +0 -160
- package/dist/viewer/src/index.js.map +0 -1
- package/dist/viewer/src/legends/AxisLegend.js +0 -42
- package/dist/viewer/src/legends/AxisLegend.js.map +0 -1
- package/dist/viewer/src/legends/ChartLegends.js +0 -80
- package/dist/viewer/src/legends/ChartLegends.js.map +0 -1
- package/dist/viewer/src/legends/FocusLegend.js +0 -67
- package/dist/viewer/src/legends/FocusLegend.js.map +0 -1
- package/dist/viewer/src/legends/Legend.js +0 -51
- package/dist/viewer/src/legends/Legend.js.map +0 -1
- package/dist/viewer/src/legends/SeriesLegend.js +0 -77
- package/dist/viewer/src/legends/SeriesLegend.js.map +0 -1
- package/dist/viewer/src/utils.js +0 -24
- package/dist/viewer/src/utils.js.map +0 -1
- package/src/app.js +0 -13
- package/src/bridge-d3-react/README.md +0 -42
- package/src/bridge-d3-react/src/index.js +0 -15
- package/src/bridge-d3-react/src/react-chart-factory.jsx +0 -65
- package/src/index.js +0 -10
- package/src/rules/README.md +0 -23
- package/src/rules/src/chart/getAxisOptions.js +0 -275
- package/src/rules/src/chart/getBaseOptions.js +0 -84
- package/src/rules/src/chart/getChartOptions.js +0 -118
- package/src/rules/src/chart/getGridOptions.js +0 -52
- package/src/rules/src/chart/getTooltipOptions.js +0 -230
- package/src/rules/src/constants.js +0 -29
- package/src/rules/src/date.js +0 -112
- package/src/rules/src/dimension-utils.js +0 -56
- package/src/rules/src/factories/choro-series.js +0 -76
- package/src/rules/src/factories/focus.js +0 -17
- package/src/rules/src/factories/getChartSeries.js +0 -8
- package/src/rules/src/factories/sample-focus.js +0 -18
- package/src/rules/src/factories/sample-series.js +0 -51
- package/src/rules/src/factories/scatter-focus.js +0 -25
- package/src/rules/src/factories/scatter-series.js +0 -92
- package/src/rules/src/factories/series.js +0 -45
- package/src/rules/src/factories/stacked-series.js +0 -184
- package/src/rules/src/factories/symbol-series.js +0 -55
- package/src/rules/src/factories/timeline-focus.js +0 -14
- package/src/rules/src/factories/timeline-series.js +0 -87
- package/src/rules/src/get-values-enhanced.js +0 -140
- package/src/rules/src/index.js +0 -23
- package/src/rules/src/layout.js +0 -115
- package/src/rules/src/observation-formater.js +0 -77
- package/src/rules/src/preparators/formatValue.js +0 -94
- package/src/rules/src/preparators/getObservations.js +0 -19
- package/src/rules/src/preparators/getReportingYearStart.js +0 -16
- package/src/rules/src/properties/focus.js +0 -117
- package/src/rules/src/properties/getAvailableChartTypes.js +0 -34
- package/src/rules/src/properties/getHeaderProps.js +0 -22
- package/src/rules/src/properties/getObservationsType.js +0 -29
- package/src/rules/src/properties/getStringifiedSubtitle.js +0 -6
- package/src/rules/src/properties/index.js +0 -333
- package/src/rules/src/properties/linear.js +0 -129
- package/src/rules/src/properties/scatter.js +0 -158
- package/src/rules/src/properties/stacked.js +0 -96
- package/src/rules/src/properties/symbol.js +0 -78
- package/src/rules/src/properties/utils.js +0 -100
- package/src/rules/src/sdmx-data/index.js +0 -10
- package/src/rules/src/table/factories/getCellValue.js +0 -50
- package/src/rules/src/table/index.js +0 -1
- package/src/rules2/src/applyHierarchicalCodesToDim.js +0 -123
- package/src/rules2/src/combinedValuesDisplay.js +0 -74
- package/src/rules2/src/constants.js +0 -6
- package/src/rules2/src/duplicateObservations.js +0 -35
- package/src/rules2/src/enhanceObservations.js +0 -95
- package/src/rules2/src/getAttributes.js +0 -34
- package/src/rules2/src/getAttributesSeries.js +0 -36
- package/src/rules2/src/getCombinationDefinitions.js +0 -47
- package/src/rules2/src/getDataflowAttributes.js +0 -23
- package/src/rules2/src/getDataflowTooltipAttributesIds.js +0 -31
- package/src/rules2/src/getDimensionValuesIndexes.js +0 -13
- package/src/rules2/src/getHCodelistsRefsInData.js +0 -32
- package/src/rules2/src/getHeaderCombinations.js +0 -48
- package/src/rules2/src/getHeaderCoordinates.js +0 -7
- package/src/rules2/src/getHeaderSubtitle.js +0 -34
- package/src/rules2/src/getHeaderTitle.js +0 -15
- package/src/rules2/src/getMSDInformations.js +0 -23
- package/src/rules2/src/getManyValuesDimensions.js +0 -34
- package/src/rules2/src/getMetadataCoordinates.js +0 -37
- package/src/rules2/src/getNotDisplayedIds.js +0 -53
- package/src/rules2/src/getOneValueDimensions.js +0 -34
- package/src/rules2/src/getSeriesCombinations.js +0 -24
- package/src/rules2/src/hasCellMetadata.js +0 -14
- package/src/rules2/src/hierarchiseDimensionWithAdvancedHierarchy2.js +0 -57
- package/src/rules2/src/hierarchiseDimensionWithNativeHierarchy2.js +0 -35
- package/src/rules2/src/index.js +0 -51
- package/src/rules2/src/parseAttributes.js +0 -41
- package/src/rules2/src/parseCombinations.js +0 -102
- package/src/rules2/src/parseHierarchicalCodelist.js +0 -48
- package/src/rules2/src/parseMetadataSeries.js +0 -121
- package/src/rules2/src/prepareData.js +0 -82
- package/src/rules2/src/refineAttributes.js +0 -16
- package/src/rules2/src/refineDimensions.js +0 -63
- package/src/rules2/src/refineTimePeriod.js +0 -123
- package/src/rules2/src/sdmx3.0DataFormatPatch.js +0 -9
- package/src/rules2/src/table/declineObservationsOverAttributes.js +0 -32
- package/src/rules2/src/table/getCells.js +0 -93
- package/src/rules2/src/table/getCellsAttributesIds.js +0 -38
- package/src/rules2/src/table/getCellsMetadataCoordinates.js +0 -13
- package/src/rules2/src/table/getCuratedCells.js +0 -33
- package/src/rules2/src/table/getFlagsAndNotes.js +0 -23
- package/src/rules2/src/table/getIndexedCombinationsByDisplay.js +0 -16
- package/src/rules2/src/table/getLayout.js +0 -84
- package/src/rules2/src/table/getLayoutData2.js +0 -203
- package/src/rules2/src/table/getSortedLayoutIndexes.js +0 -138
- package/src/rules2/src/table/getTableLabelAccessor.js +0 -9
- package/src/rules2/src/table/getTableLayoutIds.js +0 -314
- package/src/rules2/src/table/getTableProps.js +0 -82
- package/src/rules2/src/table/parseSeriesIndexesHierarchies.js +0 -79
- package/src/rules2/src/table/parseValueHierarchy.js +0 -26
- package/src/rules2/src/table/refineLayoutSize2.js +0 -321
- package/src/rules2/src/utils.js +0 -26
- package/src/viewer/mocks/bar.js +0 -33
- package/src/viewer/mocks/gpp-symbol.js +0 -93
- package/src/viewer/mocks/gpp-time.js +0 -1103
- package/src/viewer/mocks/row.js +0 -39
- package/src/viewer/mocks/scatter.js +0 -93
- package/src/viewer/mocks/stack.js +0 -161
- package/src/viewer/src/app/leg.js +0 -35
- package/src/viewer/src/app/nodata-res.js +0 -22
- package/src/viewer/src/app/nodata-sized.js +0 -23
- package/src/viewer/src/app/one-table-cell.js +0 -70
- package/src/viewer/src/app/table.js +0 -423
- package/src/viewer/src/app/use-case-1.js +0 -33
- package/src/viewer/src/app/use-case-2.js +0 -38
- package/src/viewer/src/app/use-case-3.js +0 -18
- package/src/viewer/src/app.js +0 -116
- package/src/viewer/src/chart.jsx +0 -74
- package/src/viewer/src/chartUtils/options.js +0 -30
- package/src/viewer/src/chartUtils/series.js +0 -51
- package/src/viewer/src/footer.jsx +0 -23
- package/src/viewer/src/header.jsx +0 -10
- package/src/viewer/src/index.jsx +0 -158
- package/src/viewer/src/legends/AxisLegend.jsx +0 -41
- package/src/viewer/src/legends/ChartLegends.jsx +0 -66
- package/src/viewer/src/legends/FocusLegend.jsx +0 -63
- package/src/viewer/src/legends/Legend.jsx +0 -46
- package/src/viewer/src/legends/SeriesLegend.jsx +0 -78
- package/src/viewer/src/utils.js +0 -21
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import * as R from 'ramda';
|
|
2
|
-
|
|
3
|
-
const uniq = R.pipe(
|
|
4
|
-
R.reduce(
|
|
5
|
-
({ ids, list }, id) => {
|
|
6
|
-
if (R.has(id, list)) {
|
|
7
|
-
return ({ ids, list });
|
|
8
|
-
}
|
|
9
|
-
return ({ ids: R.append(id, ids), list: R.assoc(id, id, list) });
|
|
10
|
-
},
|
|
11
|
-
{ ids: [], list: {} }
|
|
12
|
-
),
|
|
13
|
-
R.prop('ids')
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
const refinePartialHierarchy = (hier, indexed) => {
|
|
17
|
-
const { intact, broken } = R.pipe(
|
|
18
|
-
R.keys,
|
|
19
|
-
R.reduce(
|
|
20
|
-
({ intact, broken }, key) => {
|
|
21
|
-
const ids = R.filter(id => R.has(id, indexed), hier[key]);
|
|
22
|
-
if (key === '#ROOT') {
|
|
23
|
-
return ({ broken, intact: R.assoc(key, ids, intact) });
|
|
24
|
-
}
|
|
25
|
-
const splitKey = R.split('.', key);
|
|
26
|
-
const filtered = R.takeLastWhile(id => R.has(id, indexed), splitKey);
|
|
27
|
-
if (R.length(filtered) === R.length(splitKey)) {
|
|
28
|
-
return ({ broken, intact: R.assoc(key, ids, intact) });
|
|
29
|
-
}
|
|
30
|
-
const refinedKey = R.isEmpty(filtered) ? '#ROOT' : R.join('.', filtered);
|
|
31
|
-
return ({
|
|
32
|
-
intact,
|
|
33
|
-
broken: R.over(R.lensProp(refinedKey), R.ifElse(R.isNil, R.always([ids]), R.append(ids)))(broken)
|
|
34
|
-
});
|
|
35
|
-
},
|
|
36
|
-
{ intact: {}, broken: {} }
|
|
37
|
-
)
|
|
38
|
-
)(hier);
|
|
39
|
-
const intactIds = R.pipe(R.values, R.unnest)(intact);
|
|
40
|
-
const refinedBroken = R.pipe(
|
|
41
|
-
R.omit(intactIds),
|
|
42
|
-
R.over(
|
|
43
|
-
R.lensProp('#ROOT'),
|
|
44
|
-
R.pipe(
|
|
45
|
-
i => R.isNil(i) ? [] : i,
|
|
46
|
-
R.unnest,
|
|
47
|
-
R.reject(R.flip(R.includes)(intactIds)))
|
|
48
|
-
),
|
|
49
|
-
R.map(R.pipe(R.unnest, uniq))
|
|
50
|
-
)(broken);
|
|
51
|
-
|
|
52
|
-
return ({
|
|
53
|
-
...refinedBroken,
|
|
54
|
-
...intact,
|
|
55
|
-
'#ROOT': R.concat(refinedBroken['#ROOT'], intact['#ROOT'])
|
|
56
|
-
})
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export { refinePartialHierarchy };
|
|
60
|
-
//# sourceMappingURL=hierarchiseDimensionWithAdvancedHierarchy2.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hierarchiseDimensionWithAdvancedHierarchy2.js","sources":["../../../src/rules2/src/hierarchiseDimensionWithAdvancedHierarchy2.js"],"sourcesContent":["import * as R from 'ramda';\n\nconst uniq = R.pipe(\n R.reduce(\n ({ ids, list }, id) => {\n if (R.has(id, list)) {\n return ({ ids, list });\n }\n return ({ ids: R.append(id, ids), list: R.assoc(id, id, list) });\n },\n { ids: [], list: {} }\n ),\n R.prop('ids')\n);\n\nexport const refinePartialHierarchy = (hier, indexed) => {\n const { intact, broken } = R.pipe(\n R.keys,\n R.reduce(\n ({ intact, broken }, key) => {\n const ids = R.filter(id => R.has(id, indexed), hier[key]);\n if (key === '#ROOT') {\n return ({ broken, intact: R.assoc(key, ids, intact) });\n }\n const splitKey = R.split('.', key);\n const filtered = R.takeLastWhile(id => R.has(id, indexed), splitKey);\n if (R.length(filtered) === R.length(splitKey)) {\n return ({ broken, intact: R.assoc(key, ids, intact) });\n }\n const refinedKey = R.isEmpty(filtered) ? '#ROOT' : R.join('.', filtered);\n return ({\n intact,\n broken: R.over(R.lensProp(refinedKey), R.ifElse(R.isNil, R.always([ids]), R.append(ids)))(broken)\n });\n },\n { intact: {}, broken: {} }\n )\n )(hier);\n const intactIds = R.pipe(R.values, R.unnest)(intact);\n const refinedBroken = R.pipe(\n R.omit(intactIds),\n R.over(\n R.lensProp('#ROOT'),\n R.pipe(\n i => R.isNil(i) ? [] : i,\n R.unnest,\n R.reject(R.flip(R.includes)(intactIds)))\n ),\n R.map(R.pipe(R.unnest, uniq))\n )(broken);\n\n return ({\n ...refinedBroken,\n ...intact,\n '#ROOT': R.concat(refinedBroken['#ROOT'], intact['#ROOT'])\n })\n};\n"],"names":[],"mappings":";;AAEA,MAAM,IAAI,GAAG,CAAC,CAAC,IAAI;AACnB,EAAE,CAAC,CAAC,MAAM;AACV,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK;AAC3B,MAAM,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,EAAE;AAC3B,QAAQ,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE;AAC7B,MAAM;AACN,MAAM,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE;AACrE,IAAI,CAAC;AACL,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE;AACvB,GAAG;AACH,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK;AACd,CAAC;;AAEW,MAAC,sBAAsB,GAAG,CAAC,IAAI,EAAE,OAAO,KAAK;AACzD,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI;AACnC,IAAI,CAAC,CAAC,IAAI;AACV,IAAI,CAAC,CAAC,MAAM;AACZ,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,GAAG,KAAK;AACnC,QAAQ,MAAM,GAAG,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;AACjE,QAAQ,IAAI,GAAG,KAAK,OA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AC,MAAM,CAAC,CAAC,MAAM,CAAC;AACtD,EAAE,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI;AAC9B,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;AACrB,IAAI,CAAC,CAAC,IAAI;AACV,MAAM,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;AACzB,MAAM,CAAC,CAAC,IAAI;AACZ,QAAQ,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC;AAChC,QAAQ,CAAC,CAAC,MAAM;AAChB,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC;AAC/C,OAAO;AACP,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC;AAChC,GAAG,CAAC,MAAM,CAAC;;AAEX,EAAE,QAAQ;AACV,IAAI,GAAG,aAAa;AACpB,IAAI,GAAG,MAAM;AACb,IAAI,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC;AAC7D,GAAG;AACH;;;;"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import * as R from 'ramda';
|
|
2
|
-
|
|
3
|
-
const hierarchiseDimensionWithNativeHierarchy = (dimension) => {
|
|
4
|
-
const values = R.sortBy(R.prop('__indexPosition'), dimension.values || []);
|
|
5
|
-
const indexed = R.indexBy(R.prop('id'), values);
|
|
6
|
-
const grouped = R.groupBy(val => val.parent && R.has(val.parent, indexed) ? val.parent : '#ROOT', values);
|
|
7
|
-
|
|
8
|
-
let index = -1;
|
|
9
|
-
const getChildren = ({ parentsIndexes, parentId }) => {
|
|
10
|
-
const childs = R.propOr([], parentId, grouped);
|
|
11
|
-
return R.reduce(
|
|
12
|
-
(acc, child) => {
|
|
13
|
-
index = index + 1;
|
|
14
|
-
const refined = R.pipe(
|
|
15
|
-
R.assoc('__indexPosition', index),
|
|
16
|
-
R.assoc('parents', parentsIndexes),
|
|
17
|
-
R.assoc('parent', R.isEmpty(parentsIndexes) ? undefined : parentId),
|
|
18
|
-
)(child);
|
|
19
|
-
const children = getChildren({
|
|
20
|
-
parentsIndexes: R.propOr(false, 'isSelected', child)
|
|
21
|
-
? R.append(index, parentsIndexes) : parentsIndexes,
|
|
22
|
-
parentId: child.id
|
|
23
|
-
});
|
|
24
|
-
return R.concat(acc, R.prepend(refined, children));
|
|
25
|
-
},
|
|
26
|
-
[],
|
|
27
|
-
childs
|
|
28
|
-
);
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
return R.set(
|
|
32
|
-
R.lensProp('values'),
|
|
33
|
-
getChildren({ parentsIndexes: [], parentId: '#ROOT' })
|
|
34
|
-
)(dimension);
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export { hierarchiseDimensionWithNativeHierarchy };
|
|
38
|
-
//# sourceMappingURL=hierarchiseDimensionWithNativeHierarchy2.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hierarchiseDimensionWithNativeHierarchy2.js","sources":["../../../src/rules2/src/hierarchiseDimensionWithNativeHierarchy2.js"],"sourcesContent":["import * as R from 'ramda';\n\nexport const hierarchiseDimensionWithNativeHierarchy = (dimension) => {\n const values = R.sortBy(R.prop('__indexPosition'), dimension.values || []);\n const indexed = R.indexBy(R.prop('id'), values);\n const grouped = R.groupBy(val => val.parent && R.has(val.parent, indexed) ? val.parent : '#ROOT', values);\n\n let index = -1;\n const getChildren = ({ parentsIndexes, parentId }) => {\n const childs = R.propOr([], parentId, grouped);\n return R.reduce(\n (acc, child) => {\n index = index + 1;\n const refined = R.pipe(\n R.assoc('__indexPosition', index),\n R.assoc('parents', parentsIndexes),\n R.assoc('parent', R.isEmpty(parentsIndexes) ? undefined : parentId),\n )(child);\n const children = getChildren({\n parentsIndexes: R.propOr(false, 'isSelected', child)\n ? R.append(index, parentsIndexes) : parentsIndexes,\n parentId: child.id\n });\n return R.concat(acc, R.prepend(refined, children));\n },\n [],\n childs\n );\n }\n\n return R.set(\n R.lensProp('values'),\n getChildren({ parentsIndexes: [], parentId: '#ROOT' })\n )(dimension);\n};\n"],"names":[],"mappings":";;AAEY,MAAC,uCAAuC,GAAG,CAAC,SAAS,KAAK;AACtE,EAAE,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,EAAE,SAAS,CAAC,MAAM,IAAI,EAAE,CAAC;AAC5E,EAAE,MAAM,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;AACjD,EAAE,MAAM,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,GAAG,CAAC,MAAM,GAAG,OAAO,EAAE,MAAM,CAAC;;AAE3G,EAAE,IAAI,KAAK,GAAG,EAAE;AAChB,EAAE,MAAM,WAAW,GAAG,CAAC,EAAE,cAAc,EAAE,QAAQ,EAAE,KAAK;AACxD,IAAI,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,OAAO,CAAC;AAClD,IAAI,OAAO,CAAC,CAAC,MAAM;AACnB,MAAM,CAAC,GAAG,EAAE,KAAK,KAAK;AACtB,QAAQ,KAAK,GAAG,KAAK,GAAG,CAAC;AACzB,QAAQ,MAAM,OAAO,GAAG,CAAC,CAAC,IAAI;AAC9B,UAAU,CAAC,CAAC,KAAK,CAAC,iBAAiB,EAAE,KAAK,CAAC;AAC3C,UAAU,CAAC,CAAC,KAAK,CAAC,SAAS,EAAE,cAAc,CAAC;AAC5C,UAAU,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC7E,SAAS,CAAC,KAAK,CAAC;AAChB,QAAQ,MAAM,QAAQ,GAAG,WAAW,CAAC;AACrC,UAAU,cAAc,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,YAAY,EAAE,KAAK;AAC7D,aAAa,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,cAAc,CAAC,GAAG,cAAc;AAC7D,UAAU,QAAQ,EAAE,KAAK,CAAC;AAC1B,SAAS,CAAC;AACV,QAAQ,OAAO,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;AAC1D,MAAM,CAAC;AACP,MAAM,EAAE;AACR,MAAM;AACN,KAAK;AACL,EAAE;;AAEF,EAAE,OAAO,CAAC,CAAC,GAAG;AACd,IAAI,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC;AACxB,IAAI,WAAW,CAAC,EAAE,cAAc,EAAE,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE;AACzD,GAAG,CAAC,SAAS,CAAC;AACd;;;;"}
|
package/dist/rules2/src/index.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
export { SDMX_3_0_CSV_DATA_FORMAT, SDMX_3_0_JSON_DATA_FORMAT } from './constants.js';
|
|
2
|
-
export { parseMetadataSeries } from './parseMetadataSeries.js';
|
|
3
|
-
export { sdmx_3_0_DataFormatPatch } from './sdmx3.0DataFormatPatch.js';
|
|
4
|
-
export { getDataflowTooltipAttributesIds } from './getDataflowTooltipAttributesIds.js';
|
|
5
|
-
export { getMSDInformations } from './getMSDInformations.js';
|
|
6
|
-
export { getNotDisplayedIds } from './getNotDisplayedIds.js';
|
|
7
|
-
export { getHCodelistsRefs, getHCodelistsRefsInData } from './getHCodelistsRefsInData.js';
|
|
8
|
-
export { parseHierarchicalCodelist } from './parseHierarchicalCodelist.js';
|
|
9
|
-
export { getMetadataCoordinates } from './getMetadataCoordinates.js';
|
|
10
|
-
export { duplicateObs } from './duplicateObservations.js';
|
|
11
|
-
export { refinePartialHierarchy } from './hierarchiseDimensionWithAdvancedHierarchy2.js';
|
|
12
|
-
export { hierarchiseDimensionWithNativeHierarchy } from './hierarchiseDimensionWithNativeHierarchy2.js';
|
|
13
|
-
export { getDimensionValuesIndexes } from './getDimensionValuesIndexes.js';
|
|
14
|
-
export { getCombinationDefinitions, parseCombinationDefinition } from './getCombinationDefinitions.js';
|
|
15
|
-
export { getAttributes } from './getAttributes.js';
|
|
16
|
-
export { refineDimensions } from './refineDimensions.js';
|
|
17
|
-
export { parseAttributes } from './parseAttributes.js';
|
|
18
|
-
export { parseCombinations } from './parseCombinations.js';
|
|
19
|
-
export { refineAttributes } from './refineAttributes.js';
|
|
20
|
-
export { enhanceObservations } from './enhanceObservations.js';
|
|
21
|
-
export { getAttributesSeries } from './getAttributesSeries.js';
|
|
22
|
-
export { getManyValuesDimensions } from './getManyValuesDimensions.js';
|
|
23
|
-
export { getOneValueDimensions } from './getOneValueDimensions.js';
|
|
24
|
-
export { getDataflowAttributes } from './getDataflowAttributes.js';
|
|
25
|
-
export { getHeaderTitle } from './getHeaderTitle.js';
|
|
26
|
-
export { getHeaderSubtitle } from './getHeaderSubtitle.js';
|
|
27
|
-
export { getSeriesCombinations } from './getSeriesCombinations.js';
|
|
28
|
-
export { getHeaderCombinations } from './getHeaderCombinations.js';
|
|
29
|
-
export { getHeaderCoordinates } from './getHeaderCoordinates.js';
|
|
30
|
-
export { getLayout } from './table/getLayout.js';
|
|
31
|
-
export { getSortedLayoutIndexes } from './table/getSortedLayoutIndexes.js';
|
|
32
|
-
export { refineLayoutSize } from './table/refineLayoutSize2.js';
|
|
33
|
-
export { getFlagsAndNotes } from './table/getFlagsAndNotes.js';
|
|
34
|
-
export { getLayoutData } from './table/getLayoutData2.js';
|
|
35
|
-
export { getCellsAttributesIds } from './table/getCellsAttributesIds.js';
|
|
36
|
-
export { getCellsMetadataCoordinates } from './table/getCellsMetadataCoordinates.js';
|
|
37
|
-
export { getIndexedCombinationsByDisplay } from './table/getIndexedCombinationsByDisplay.js';
|
|
38
|
-
export { getCells } from './table/getCells.js';
|
|
39
|
-
export { getCuratedCells } from './table/getCuratedCells.js';
|
|
40
|
-
export { prepareData } from './prepareData.js';
|
|
41
|
-
export { getTableProps } from './table/getTableProps.js';
|
|
42
|
-
export { getTableLabelAccessor } from './table/getTableLabelAccessor.js';
|
|
43
|
-
export { parseValueHierarchy } from './table/parseValueHierarchy.js';
|
|
44
|
-
export { parseLayoutIndexesHierarchies } from './table/parseSeriesIndexesHierarchies.js';
|
|
45
|
-
export { getTableLayoutIds, injectCombinationsInLayout } from './table/getTableLayoutIds.js';
|
|
46
|
-
export { declineObservationsOverAttributes } from './table/declineObservationsOverAttributes.js';
|
|
47
|
-
export { applyHierarchicalCodesToDim } from './applyHierarchicalCodesToDim.js';
|
|
48
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as R from 'ramda';
|
|
2
|
-
import { REPORTING_YEAR_START_DAY, REPYEARSTART } from './constants.js';
|
|
3
|
-
|
|
4
|
-
const parseAttributes = (attributes, dimensions, customAttributes) => {
|
|
5
|
-
const indexedDimensions = R.indexBy(R.prop('id'), dimensions);
|
|
6
|
-
return R.addIndex(R.map)((attr, index) => {
|
|
7
|
-
let res = R.assoc('index', index, attr);
|
|
8
|
-
const displayableValuesCount = R.pipe(
|
|
9
|
-
R.filter(R.propOr(true, 'display')),
|
|
10
|
-
R.length,
|
|
11
|
-
)(attr);
|
|
12
|
-
if (R.isEmpty(attr.values || []) || !R.propOr(true, 'display', attr)
|
|
13
|
-
|| displayableValuesCount < 1 || attr.id === REPORTING_YEAR_START_DAY
|
|
14
|
-
|| attr.id === REPYEARSTART) {
|
|
15
|
-
return R.assoc('display', false, res);
|
|
16
|
-
}
|
|
17
|
-
if (R.propEq(customAttributes.prefscale, 'id', attr)) {
|
|
18
|
-
return R.assoc('prefscale', true, res);
|
|
19
|
-
}
|
|
20
|
-
if (R.propEq(customAttributes.decimals, 'id', attr)) {
|
|
21
|
-
return R.assoc('decimals', true, res);
|
|
22
|
-
}
|
|
23
|
-
if (R.hasPath(['relationship', 'none'], attr) || R.hasPath(['relationship', 'dataflow'], attr)) {
|
|
24
|
-
return { ...res, header: true, relationship: [] };
|
|
25
|
-
}
|
|
26
|
-
if (R.hasPath(['relationship', 'primaryMeasure'], attr) || R.hasPath(['relationship', 'observation'], attr)) {
|
|
27
|
-
return { ...res, series: true, relationship: [] };
|
|
28
|
-
}
|
|
29
|
-
const seriesDimensions = R.pipe(
|
|
30
|
-
R.pathOr([], ['relationship', 'dimensions']),
|
|
31
|
-
R.filter(id => {
|
|
32
|
-
const dimension = R.prop(id, indexedDimensions);
|
|
33
|
-
return !dimension.header && R.length(dimension.values || []) > 1 && !dimension.rejected;
|
|
34
|
-
}),
|
|
35
|
-
)(attr);
|
|
36
|
-
if (R.length(seriesDimensions) > 0) {
|
|
37
|
-
return { ...res, series: true, relationship: seriesDimensions };
|
|
38
|
-
}
|
|
39
|
-
return { ...res, header: true, relationship: R.prop('dimensions', attr.relationship || []) };
|
|
40
|
-
}, attributes);
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export { parseAttributes };
|
|
44
|
-
//# sourceMappingURL=parseAttributes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parseAttributes.js","sources":["../../../src/rules2/src/parseAttributes.js"],"sourcesContent":["import * as R from 'ramda';\nimport { REPORTING_YEAR_START_DAY, REPYEARSTART } from './constants';\n\nexport const parseAttributes = (attributes, dimensions, customAttributes) => {\n const indexedDimensions = R.indexBy(R.prop('id'), dimensions);\n return R.addIndex(R.map)((attr, index) => {\n let res = R.assoc('index', index, attr);\n const displayableValuesCount = R.pipe(\n R.filter(R.propOr(true, 'display')),\n R.length,\n )(attr);\n if (R.isEmpty(attr.values || []) || !R.propOr(true, 'display', attr)\n || displayableValuesCount < 1 || attr.id === REPORTING_YEAR_START_DAY\n || attr.id === REPYEARSTART) {\n return R.assoc('display', false, res);\n }\n if (R.propEq(customAttributes.prefscale, 'id', attr)) {\n return R.assoc('prefscale', true, res);\n }\n if (R.propEq(customAttributes.decimals, 'id', attr)) {\n return R.assoc('decimals', true, res);\n }\n if (R.hasPath(['relationship', 'none'], attr) || R.hasPath(['relationship', 'dataflow'], attr)) {\n return { ...res, header: true, relationship: [] };\n }\n if (R.hasPath(['relationship', 'primaryMeasure'], attr) || R.hasPath(['relationship', 'observation'], attr)) {\n return { ...res, series: true, relationship: [] };\n }\n const seriesDimensions = R.pipe(\n R.pathOr([], ['relationship', 'dimensions']),\n R.filter(id => {\n const dimension = R.prop(id, indexedDimensions);\n return !dimension.header && R.length(dimension.values || []) > 1 && !dimension.rejected;\n }),\n )(attr);\n if (R.length(seriesDimensions) > 0) {\n return { ...res, series: true, relationship: seriesDimensions };\n }\n return { ...res, header: true, relationship: R.prop('dimensions', attr.relationship || []) };\n }, attributes);\n};\n"],"names":[],"mappings":";;;AAGY,MAAC,eAAe,GAAG,CAAC,UAAU,EAAE,UAAU,EAAE,gBAAgB,KAAK;AAC7E,EAAE,MAAM,iBAAiB,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC;AAC/D,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,KAAK;AAC5C,IAAI,IAAI,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,IA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|
-
const getDisplayableValues = (values) =>
|
|
5
|
-
R.filter(
|
|
6
|
-
(val) =>
|
|
7
|
-
!R.includes(R.prop('id', val), REJECTED_VALUE_IDS) &&
|
|
8
|
-
R.propOr(true, 'display', val),
|
|
9
|
-
values,
|
|
10
|
-
);
|
|
11
|
-
|
|
12
|
-
// invalid concepts:
|
|
13
|
-
// - empty/null/undefined/!array values (so far)
|
|
14
|
-
const hasInvalidValues = R.pipe(
|
|
15
|
-
R.prop('values'),
|
|
16
|
-
R.anyPass([R.isNil, R.complement(R.is(Array)), R.isEmpty]),
|
|
17
|
-
);
|
|
18
|
-
const isConceptInvalid = R.anyPass([hasInvalidValues /* add more... */]);
|
|
19
|
-
const filterValidConcepts = R.reject(isConceptInvalid);
|
|
20
|
-
// concepts is an array of ids... (misnamed!)
|
|
21
|
-
const rejectInvalidConceptIds =
|
|
22
|
-
(concepts = []) =>
|
|
23
|
-
(combinations = []) => {
|
|
24
|
-
const validConceptIds = R.pluck('id', filterValidConcepts(concepts));
|
|
25
|
-
return R.reduce((acc, comb) => {
|
|
26
|
-
const refinedConcepts = R.intersection(validConceptIds, comb.concepts);
|
|
27
|
-
if (R.length(refinedConcepts) < 1) {
|
|
28
|
-
return acc;
|
|
29
|
-
}
|
|
30
|
-
return R.append({ ...comb, concepts: refinedConcepts }, acc);
|
|
31
|
-
}, [], combinations);
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
const parseCombinations = (
|
|
35
|
-
combinations,
|
|
36
|
-
parsedAttributes,
|
|
37
|
-
dimensions,
|
|
38
|
-
) => {
|
|
39
|
-
const concepts = R.concat(dimensions, parsedAttributes);
|
|
40
|
-
|
|
41
|
-
const indexedDimensions = R.indexBy(R.prop('id'), dimensions);
|
|
42
|
-
const indexedAttributes = R.indexBy(R.prop('id'), parsedAttributes);
|
|
43
|
-
|
|
44
|
-
return R.pipe(
|
|
45
|
-
rejectInvalidConceptIds(concepts),
|
|
46
|
-
R.reduce((acc, comb) => {
|
|
47
|
-
let relationship = [];
|
|
48
|
-
let ids = {};
|
|
49
|
-
let displayable_values_count = 0;
|
|
50
|
-
const seriesConcepts = R.filter((concept) => {
|
|
51
|
-
if (R.has(concept, ids)) {
|
|
52
|
-
return false;
|
|
53
|
-
}
|
|
54
|
-
if (R.has(concept, indexedDimensions)) {
|
|
55
|
-
const dimension = R.prop(concept, indexedDimensions);
|
|
56
|
-
relationship = !dimension.header
|
|
57
|
-
? R.append(concept, relationship)
|
|
58
|
-
: relationship;
|
|
59
|
-
ids = { ...ids, [concept]: concept };
|
|
60
|
-
displayable_values_count += R.length(dimension.values || []);
|
|
61
|
-
return !dimension.header;
|
|
62
|
-
} else if (!R.has(concept, indexedAttributes)) {
|
|
63
|
-
return false;
|
|
64
|
-
}
|
|
65
|
-
const attribute = R.prop(concept, indexedAttributes);
|
|
66
|
-
const displayableValues = getDisplayableValues(attribute.values || []);
|
|
67
|
-
const isDisplayable =
|
|
68
|
-
R.length(displayableValues) !== 0 &&
|
|
69
|
-
R.propOr(true, 'display', attribute);
|
|
70
|
-
relationship =
|
|
71
|
-
attribute.series && isDisplayable
|
|
72
|
-
? R.pipe(
|
|
73
|
-
R.reject((id) => R.has(id, ids)),
|
|
74
|
-
R.concat(relationship),
|
|
75
|
-
)(attribute.relationship)
|
|
76
|
-
: relationship;
|
|
77
|
-
ids = attribute.series && isDisplayable
|
|
78
|
-
? { ...ids, ...R.indexBy(R.identity, attribute.relationship) }
|
|
79
|
-
: ids;
|
|
80
|
-
displayable_values_count = isDisplayable
|
|
81
|
-
? displayable_values_count + R.length(displayableValues)
|
|
82
|
-
: displayable_values_count;
|
|
83
|
-
return attribute.series && isDisplayable;
|
|
84
|
-
}, comb.concepts);
|
|
85
|
-
if (R.isEmpty(seriesConcepts)) {
|
|
86
|
-
return R.append(
|
|
87
|
-
{ ...comb, header: true, display: displayable_values_count > 0 },
|
|
88
|
-
acc,
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
return R.append(
|
|
92
|
-
{
|
|
93
|
-
...comb,
|
|
94
|
-
series: true,
|
|
95
|
-
relationship,
|
|
96
|
-
display: displayable_values_count > 0,
|
|
97
|
-
},
|
|
98
|
-
acc,
|
|
99
|
-
);
|
|
100
|
-
}, []),
|
|
101
|
-
)(combinations);
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
export { parseCombinations };
|
|
105
|
-
//# sourceMappingURL=parseCombinations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parseCombinations.js","sources":["../../../src/rules2/src/parseCombinations.js"],"sourcesContent":["import * as R from 'ramda';\nimport { REJECTED_VALUE_IDS } from './constants';\n\nconst getDisplayableValues = (values) =>\n R.filter(\n (val) =>\n !R.includes(R.prop('id', val), REJECTED_VALUE_IDS) &&\n R.propOr(true, 'display', val),\n values,\n );\n\n// invalid concepts:\n// - empty/null/undefined/!array values (so far)\nconst hasInvalidValues = R.pipe(\n R.prop('values'),\n R.anyPass([R.isNil, R.complement(R.is(Array)), R.isEmpty]),\n);\nconst isConceptInvalid = R.anyPass([hasInvalidValues /* add more... */]);\nconst filterValidConcepts = R.reject(isConceptInvalid);\n// concepts is an array of ids... (misnamed!)\nconst rejectInvalidConceptIds =\n (concepts = []) =>\n (combinations = []) => {\n const validConceptIds = R.pluck('id', filterValidConcepts(concepts));\n return R.reduce((acc, comb) => {\n const refinedConcepts = R.intersection(validConceptIds, comb.concepts);\n if (R.length(refinedConcepts) < 1) {\n return acc;\n }\n return R.append({ ...comb, concepts: refinedConcepts }, acc);\n }, [], combinations);\n };\n\nexport const parseCombinations = (\n combinations,\n parsedAttributes,\n dimensions,\n) => {\n const concepts = R.concat(dimensions, parsedAttributes);\n\n const indexedDimensions = R.indexBy(R.prop('id'), dimensions);\n const indexedAttributes = R.indexBy(R.prop('id'), parsedAttributes);\n\n return R.pipe(\n rejectInvalidConceptIds(concepts),\n R.reduce((acc, comb) => {\n let relationship = [];\n let ids = {};\n let displayable_values_count = 0;\n const seriesConcepts = R.filter((concept) => {\n if (R.has(concept, ids)) {\n return false;\n }\n if (R.has(concept, indexedDimensions)) {\n const dimension = R.prop(concept, indexedDimensions);\n relationship = !dimension.header\n ? R.append(concept, relationship)\n : relationship;\n ids = { ...ids, [concept]: concept };\n displayable_values_count += R.length(dimension.values || []);\n return !dimension.header;\n } else if (!R.has(concept, indexedAttributes)) {\n return false;\n }\n const attribute = R.prop(concept, indexedAttributes);\n const displayableValues = getDisplayableValues(attribute.values || []);\n const isDisplayable =\n R.length(displayableValues) !== 0 &&\n R.propOr(true, 'display', attribute);\n relationship =\n attribute.series && isDisplayable\n ? R.pipe(\n R.reject((id) => R.has(id, ids)),\n R.concat(relationship),\n )(attribute.relationship)\n : relationship;\n ids = attribute.series && isDisplayable\n ? { ...ids, ...R.indexBy(R.identity, attribute.relationship) }\n : ids;\n displayable_values_count = isDisplayable\n ? displayable_values_count + R.length(displayableValues)\n : displayable_values_count;\n return attribute.series && isDisplayable;\n }, comb.concepts);\n if (R.isEmpty(seriesConcepts)) {\n return R.append(\n { ...comb, header: true, display: displayable_values_count > 0 },\n acc,\n );\n }\n return R.append(\n {\n ...comb,\n series: true,\n relationship,\n display: displayable_values_count > 0,\n },\n acc,\n );\n }, []),\n )(combinations);\n};\n"],"names":[],"mappings":";;;AAGA,MAAM,oBAAoB,GAAG,CAAC,MAAM;AACpC,EAAE,CAAC,CAAC,MAAM;AACV,IAAI,CAAC,GAAG;AACR,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,kBAAkB,CAAC;AACxD,MAAM,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,EAAE,GAAG,CAAC;AACpC,IAAI,MAAM;AACV,GAAG;;AAEH;AACA;AACA,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI;AAC/B,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;AAClB,EAAE,CAAC,CAAC,OAAO,CAAC,CA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AQ;AACR,UAAU,GAAG,IAAI;AACjB,UAAU,MAAM,EAAE,IAAI;AACtB,UAAU,YAAY;AACtB,UAAU,OAAO,EAAE,wBAAwB,GAAG,CAAC;AAC/C,SAAS;AACT,QAAQ,GAAG;AACX,OAAO;AACP,IAAI,CAAC,EAAE,EAAE,CAAC;AACV,GAAG,CAAC,YAAY,CAAC;AACjB;;;;"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as R from 'ramda';
|
|
2
|
-
|
|
3
|
-
const parseHierarchicalCodelist = (sdmxJson, hierarchyId) => {
|
|
4
|
-
const hCodelist = R.pathOr({}, ['data', 'hierarchicalCodelists', 0], sdmxJson);
|
|
5
|
-
const hierarchy = R.find(R.propEq(hierarchyId, 'id'), hCodelist.hierarchies || []);
|
|
6
|
-
|
|
7
|
-
const getChildren = (codes, parents) => {
|
|
8
|
-
const ids = R.pluck('codeID', codes);
|
|
9
|
-
|
|
10
|
-
const children = R.reduce(
|
|
11
|
-
(acc, code) => {
|
|
12
|
-
if (R.isEmpty(code.hierarchicalCodes || [])) {
|
|
13
|
-
return acc;
|
|
14
|
-
}
|
|
15
|
-
return ({
|
|
16
|
-
...acc,
|
|
17
|
-
...getChildren(code.hierarchicalCodes, R.append(code.codeID, parents))
|
|
18
|
-
});
|
|
19
|
-
},
|
|
20
|
-
{},
|
|
21
|
-
codes
|
|
22
|
-
);
|
|
23
|
-
const key = R.isEmpty(parents) ? '#ROOT' : R.join('.', parents);
|
|
24
|
-
return ({ ...children, [key]: ids });
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
return R.pipe(
|
|
28
|
-
R.propOr([], 'hierarchicalCodes'),
|
|
29
|
-
codes => getChildren(codes, []),
|
|
30
|
-
)(hierarchy);
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export { parseHierarchicalCodelist };
|
|
34
|
-
//# sourceMappingURL=parseHierarchicalCodelist.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parseHierarchicalCodelist.js","sources":["../../../src/rules2/src/parseHierarchicalCodelist.js"],"sourcesContent":["import * as R from 'ramda';\n\nexport const parseHierarchicalCodelist = (sdmxJson, hierarchyId) => {\n const hCodelist = R.pathOr({}, ['data', 'hierarchicalCodelists', 0], sdmxJson);\n const hierarchy = R.find(R.propEq(hierarchyId, 'id'), hCodelist.hierarchies || []);\n\n const getParentedCodes = (codes, parent) => {\n const ids = R.pluck('codeID', codes);\n\n const siblings = R.reduce(\n (acc, code) => {\n if (R.isEmpty(code.hierarchicalCodes || [])) {\n return acc;\n }\n return R.mergeRight(acc, getParentedCodes(code.hierarchicalCodes, code.id));\n },\n {},\n codes\n );\n\n return ({ ...siblings, [parent]: ids });\n };\n\n const getChildren = (codes, parents) => {\n const ids = R.pluck('codeID', codes);\n\n const children = R.reduce(\n (acc, code) => {\n if (R.isEmpty(code.hierarchicalCodes || [])) {\n return acc;\n }\n return ({\n ...acc,\n ...getChildren(code.hierarchicalCodes, R.append(code.codeID, parents))\n });\n },\n {},\n codes\n );\n const key = R.isEmpty(parents) ? '#ROOT' : R.join('.', parents);\n return ({ ...children, [key]: ids });\n }\n\n return R.pipe(\n R.propOr([], 'hierarchicalCodes'),\n codes => getChildren(codes, []),\n )(hierarchy);\n};\n"],"names":[],"mappings":";;AAEY,MAAC,yBAAyB,GAAG,CAAC,QAAQ,EAAE,WAAW,KAAK;AACpE,EAAE,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC,MAAM,EAAE,uBAAuB,EAAE,CAAC,CAAC,EAAE,QAAQ,CAAC;AAChF,EAAE,MAAM,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,EAAE,IAAI,CAAC,EAAE,SAAS,CAAC,WAAW,IAAI,EAAE,CAAC;;AAmBpF,EAAE,MAAM,WAAW,GAAG,CAAC,KAAK,EAAE,OAAO,KAAK;AAC1C,IAAI,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC;;AAExC,IAAI,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM;AAC7B,MAAM,CAAC,GAAG,EAAE,IAAI,KAAK;AACrB,QAAQ,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,IAAI,EAAE,CAAC,EAAE;AACrD,UAAU,OAAO,GAAG;AACpB,QAAQ;AACR,QAAQ,QAAQ;AAChB,UAAU,GAAG,GAAG;AAChB,UAAU,GAAG,WAAW,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC;AAC/E,SAAS;AACT,MAAM,CAAC;AACP,MAAM,EAAE;AACR,MAAM;AACN,KAAK;AACL,IAAI,MAAM,GAAG,GAAG,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,OAAO,CAAC;AACnE,IAAI,QAAQ,EAAE,GAAG,QAAQ,EAAE,CAAC,GAAG,GAAG,GAAG,EAAE;AACvC,EAAE;;AAEF,EAAE,OAAO,CAAC,CAAC,IAAI;AACf,IAAI,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,mBAAmB,CAAC;AACrC,IAAI,KAAK,IAAI,WAAW,CAAC,KAAK,EAAE,EAAE,CAAC;AACnC,GAAG,CAAC,SAAS,CAAC;AACd;;;;"}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import * as R from 'ramda';
|
|
2
|
-
import { EMPTY_ATTACHMENT_LEVEL_CHAR } from './constants.js';
|
|
3
|
-
|
|
4
|
-
const dimensionValueDisplay = (display) => data => {
|
|
5
|
-
if (display === 'code') {
|
|
6
|
-
return R.prop('id', data);
|
|
7
|
-
}
|
|
8
|
-
const name = R.prop('name')(data);
|
|
9
|
-
if (display === 'both') {
|
|
10
|
-
return `${R.prop('id', data)}: ${name}`;
|
|
11
|
-
}
|
|
12
|
-
return name;
|
|
13
|
-
};
|
|
14
|
-
// options = { locale, display, dimensions = [], attributes = { [id]: { format, parent } } };
|
|
15
|
-
const parseMetadataSeries = (metadataJson, options) => {
|
|
16
|
-
const metadataAttributes = R.pathOr([], ['data', 'structures', 0, 'attributes', 'dimensionGroup'], metadataJson);
|
|
17
|
-
const metaAttrLength = R.length(metadataAttributes);
|
|
18
|
-
|
|
19
|
-
if (!metaAttrLength) {
|
|
20
|
-
return ({});
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const dimensions = R.pipe(
|
|
24
|
-
R.pathOr([], ['data', 'structures', 0, 'dimensions']),
|
|
25
|
-
({ series = [], observation = [] }) => R.concat(series, observation),
|
|
26
|
-
dims => R.isEmpty(options.dimensions || [])
|
|
27
|
-
? dims
|
|
28
|
-
: R.props(R.pluck('id', options.dimensions), R.indexBy(R.prop('id'), dims))
|
|
29
|
-
)(metadataJson);
|
|
30
|
-
|
|
31
|
-
const { notDisplayedIds = {} } = options;
|
|
32
|
-
|
|
33
|
-
const metadataSeries = R.pipe(
|
|
34
|
-
R.pathOr({}, ['data', 'dataSets', 0, 'dimensionGroupAttributes']),
|
|
35
|
-
series => R.reduce((acc, serieKey) => {
|
|
36
|
-
const indexes = series[serieKey];
|
|
37
|
-
const metaIndexes = R.take(metaAttrLength, indexes);
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
const evolvedKey = R.pipe(
|
|
41
|
-
R.split(':'),
|
|
42
|
-
R.addIndex(R.map)((vInd, dInd) => {
|
|
43
|
-
if (R.isEmpty(vInd) || R.equals(EMPTY_ATTACHMENT_LEVEL_CHAR, vInd)) {
|
|
44
|
-
return '';
|
|
45
|
-
}
|
|
46
|
-
const dim = R.nth(dInd, dimensions);
|
|
47
|
-
const val = R.nth(Number(vInd), dim.values || []);
|
|
48
|
-
|
|
49
|
-
const originalVal = R.find(
|
|
50
|
-
R.propEq(val.id, 'id'),
|
|
51
|
-
)(R.propOr([], 'values', R.nth(dInd, options.dimensions)));
|
|
52
|
-
return R.propOr('', '__index', originalVal);
|
|
53
|
-
}),
|
|
54
|
-
R.join(':')
|
|
55
|
-
)(serieKey);
|
|
56
|
-
|
|
57
|
-
const attributes = R.pipe(
|
|
58
|
-
R.addIndex(R.reduce)(
|
|
59
|
-
(acc, valueIndex, attrIndex) => {
|
|
60
|
-
const attribute = R.nth(attrIndex, metadataAttributes);
|
|
61
|
-
const isHidden = R.has(attribute.id, notDisplayedIds);
|
|
62
|
-
if ((R.isNil(valueIndex) && !(attribute.isPresentational)) || isHidden) {
|
|
63
|
-
return acc;
|
|
64
|
-
}
|
|
65
|
-
const attrOptions = R.pathOr({}, ['attributes', attribute.id], options);
|
|
66
|
-
const id = attrOptions.id;
|
|
67
|
-
const label = dimensionValueDisplay(options.display)({ ...attribute, id });
|
|
68
|
-
|
|
69
|
-
const _value = R.prop('value', R.nth(valueIndex, attribute.values || []));
|
|
70
|
-
const value = R.is(Object, _value) ? R.prop(options.locale, _value) : _value;
|
|
71
|
-
|
|
72
|
-
return R.append({
|
|
73
|
-
...(R.isNil(value) ? {} : { value }),
|
|
74
|
-
id: attribute.id,
|
|
75
|
-
label,
|
|
76
|
-
handlerProps: R.omit(['id'], R.pathOr({}, ['attributes', attribute.id], options))
|
|
77
|
-
}, acc);
|
|
78
|
-
},
|
|
79
|
-
[],
|
|
80
|
-
),
|
|
81
|
-
attributes => { // missing parents in metadata response
|
|
82
|
-
const groupedAttrs = R.groupBy(R.pathOr('#ROOT', ['handlerProps', 'parent']), attributes);
|
|
83
|
-
const indexedAttrs = R.indexBy(R.prop('id'), attributes);
|
|
84
|
-
|
|
85
|
-
return R.reduce(
|
|
86
|
-
(acc, id) => {
|
|
87
|
-
if (R.has(id, indexedAttrs) || id === '#ROOT') {
|
|
88
|
-
return acc;
|
|
89
|
-
}
|
|
90
|
-
return R.append({
|
|
91
|
-
id,
|
|
92
|
-
label: dimensionValueDisplay(options.display)({ id, name: R.path(['attributes', id, 'name'], options) }),
|
|
93
|
-
handlerProps: R.omit(['id'], R.pathOr({}, ['attributes', id], options))
|
|
94
|
-
}, acc);
|
|
95
|
-
},
|
|
96
|
-
attributes,
|
|
97
|
-
R.keys(groupedAttrs)
|
|
98
|
-
);
|
|
99
|
-
},
|
|
100
|
-
attributes => {
|
|
101
|
-
const groupedAttrs = R.groupBy(R.pathOr('#ROOT', ['handlerProps', 'parent']), attributes);
|
|
102
|
-
const makeTree = R.map(attr => {
|
|
103
|
-
if (R.has(attr.id, groupedAttrs)) {
|
|
104
|
-
const children = makeTree(R.prop(attr.id, groupedAttrs));
|
|
105
|
-
return R.assoc('children', children, attr);
|
|
106
|
-
}
|
|
107
|
-
return attr;
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
return makeTree(R.propOr([], '#ROOT', groupedAttrs));
|
|
111
|
-
},
|
|
112
|
-
)(metaIndexes);
|
|
113
|
-
|
|
114
|
-
return R.assoc(evolvedKey, attributes, acc);
|
|
115
|
-
},
|
|
116
|
-
{},
|
|
117
|
-
R.keys(series)
|
|
118
|
-
))(metadataJson);
|
|
119
|
-
|
|
120
|
-
return metadataSeries;
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
export { parseMetadataSeries };
|
|
124
|
-
//# sourceMappingURL=parseMetadataSeries.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parseMetadataSeries.js","sources":["../../../src/rules2/src/parseMetadataSeries.js"],"sourcesContent":["import * as R from 'ramda';\nimport { EMPTY_ATTACHMENT_LEVEL_CHAR } from './constants';\n\nconst dimensionValueDisplay = (display) => data => {\n if (display === 'code') {\n return R.prop('id', data);\n }\n const name = R.prop('name')(data);\n if (display === 'both') {\n return `${R.prop('id', data)}: ${name}`;\n }\n return name;\n};\n// options = { locale, display, dimensions = [], attributes = { [id]: { format, parent } } };\nexport const parseMetadataSeries = (metadataJson, options) => {\n const metadataAttributes = R.pathOr([], ['data', 'structures', 0, 'attributes', 'dimensionGroup'], metadataJson);\n const metaAttrLength = R.length(metadataAttributes);\n\n if (!metaAttrLength) {\n return ({});\n }\n\n const dimensions = R.pipe(\n R.pathOr([], ['data', 'structures', 0, 'dimensions']),\n ({ series = [], observation = [] }) => R.concat(series, observation),\n dims => R.isEmpty(options.dimensions || [])\n ? dims\n : R.props(R.pluck('id', options.dimensions), R.indexBy(R.prop('id'), dims))\n )(metadataJson);\n\n const { notDisplayedIds = {} } = options;\n\n const metadataSeries = R.pipe(\n R.pathOr({}, ['data', 'dataSets', 0, 'dimensionGroupAttributes']),\n series => R.reduce((acc, serieKey) => {\n const indexes = series[serieKey];\n const metaIndexes = R.take(metaAttrLength, indexes);\n\n\n const evolvedKey = R.pipe(\n R.split(':'),\n R.addIndex(R.map)((vInd, dInd) => {\n if (R.isEmpty(vInd) || R.equals(EMPTY_ATTACHMENT_LEVEL_CHAR, vInd)) {\n return '';\n }\n const dim = R.nth(dInd, dimensions);\n const val = R.nth(Number(vInd), dim.values || []);\n\n const originalVal = R.find(\n R.propEq(val.id, 'id'),\n )(R.propOr([], 'values', R.nth(dInd, options.dimensions)));\n return R.propOr('', '__index', originalVal);\n }),\n R.join(':')\n )(serieKey);\n\n const attributes = R.pipe(\n R.addIndex(R.reduce)(\n (acc, valueIndex, attrIndex) => {\n const attribute = R.nth(attrIndex, metadataAttributes);\n const isHidden = R.has(attribute.id, notDisplayedIds);\n if ((R.isNil(valueIndex) && !(attribute.isPresentational)) || isHidden) {\n return acc;\n }\n const attrOptions = R.pathOr({}, ['attributes', attribute.id], options);\n const id = attrOptions.id;\n const label = dimensionValueDisplay(options.display)({ ...attribute, id });\n\n const _value = R.prop('value', R.nth(valueIndex, attribute.values || []));\n const value = R.is(Object, _value) ? R.prop(options.locale, _value) : _value;\n\n return R.append({\n ...(R.isNil(value) ? {} : { value }),\n id: attribute.id,\n label,\n handlerProps: R.omit(['id'], R.pathOr({}, ['attributes', attribute.id], options))\n }, acc);\n },\n [],\n ),\n attributes => { // missing parents in metadata response \n const groupedAttrs = R.groupBy(R.pathOr('#ROOT', ['handlerProps', 'parent']), attributes);\n const indexedAttrs = R.indexBy(R.prop('id'), attributes);\n\n return R.reduce(\n (acc, id) => {\n if (R.has(id, indexedAttrs) || id === '#ROOT') {\n return acc;\n }\n return R.append({\n id,\n label: dimensionValueDisplay(options.display)({ id, name: R.path(['attributes', id, 'name'], options) }),\n handlerProps: R.omit(['id'], R.pathOr({}, ['attributes', id], options))\n }, acc);\n },\n attributes,\n R.keys(groupedAttrs)\n );\n },\n attributes => {\n const groupedAttrs = R.groupBy(R.pathOr('#ROOT', ['handlerProps', 'parent']), attributes);\n const makeTree = R.map(attr => {\n if (R.has(attr.id, groupedAttrs)) {\n const children = makeTree(R.prop(attr.id, groupedAttrs));\n return R.assoc('children', children, attr);\n }\n return attr;\n });\n\n return makeTree(R.propOr([], '#ROOT', groupedAttrs));\n },\n )(metaIndexes);\n\n return R.assoc(evolvedKey, attributes, acc);\n },\n {},\n R.keys(series)\n ))(metadataJson);\n\n return metadataSeries;\n};"],"names":[],"mappings":";;;AAGA,MAAM,qBAAqB,GAAG,CAAC,OAAO,KAAK,IAAI,IAAI;AACnD,EAAE,IAAI,OAAO,KAAK,MAAM,EAAE;AAC1B,IAAI,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC;AAC7B,EAAE;AACF,EAAE,MAAM,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC;AACnC,EAAE,IAAI,OAAO,KAAK,MAAM,EAAE;AAC1B,IAAI,OAAO,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;AAC3C,EAAE;AACF,EAAE,OAAO,IAAI;AACb,CAAC;AACD;AACY,MAAC,mBAAmB,GAAG,CAAC,YAAY,EAAE,OAAO,KAAK;AAC9D,EAAE,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,E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C,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC,EAAE,UAAU,CAAC;AACnG,UAAU,MAAM,QAAQ,GAAG,CAAC,CAAC,GAAG,CAAC,IAAI,IAAI;AACzC,YAAY,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,YAAY,CAAC,EAAE;AAC9C,cAAc,MAAM,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC;AACtE,cAAc,OAAO,CAAC,CAAC,KAAK,CAAC,UAAU,EAAE,QAAQ,EAAE,IAAI,CAAC;AACxD,YAAY;AACZ,YAAY,OAAO,IAAI;AACvB,UAAU,CAAC,CAAC;;AAEZ,UAAU,OAAO,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;AAC9D,QAAQ,CAAC;AACT,OAAO,CAAC,WAAW,CAAC;;AAEpB,MAAM,OAAO,CAAC,CAAC,KAAK,CAAC,UAAU,EAAE,UAAU,EAAE,GAAG,CAAC;AACjD,IAAI,CAAC;AACL,MAAM,EAAE;AACR,MAAM,CAAC,CAAC,IAAI,CAAC,MAAM;AACnB,KAAK,CAAC,CAAC,YAAY,CAAC;;AAEpB,EAAE,OAAO,cAAc;AACvB;;;;"}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import * as R from 'ramda';
|
|
2
|
-
import { getObservations } from '../../rules/src/preparators/getObservations.js';
|
|
3
|
-
import { refineDimensions } from './refineDimensions.js';
|
|
4
|
-
import { enhanceObservations } from './enhanceObservations.js';
|
|
5
|
-
import { parseAttributes } from './parseAttributes.js';
|
|
6
|
-
import { getCombinationDefinitions, parseCombinationDefinition } from './getCombinationDefinitions.js';
|
|
7
|
-
import { parseCombinations } from './parseCombinations.js';
|
|
8
|
-
import { refineAttributes } from './refineAttributes.js';
|
|
9
|
-
import { duplicateObs } from './duplicateObservations.js';
|
|
10
|
-
import { getMetadataCoordinates } from './getMetadataCoordinates.js';
|
|
11
|
-
import { getAttributesSeries } from './getAttributesSeries.js';
|
|
12
|
-
import { getManyValuesDimensions } from './getManyValuesDimensions.js';
|
|
13
|
-
import { getOneValueDimensions } from './getOneValueDimensions.js';
|
|
14
|
-
import { hierarchiseDimensionWithNativeHierarchy } from './hierarchiseDimensionWithNativeHierarchy2.js';
|
|
15
|
-
import { getDataflowAttributes } from './getDataflowAttributes.js';
|
|
16
|
-
import { getHeaderTitle } from './getHeaderTitle.js';
|
|
17
|
-
import { getHeaderSubtitle } from './getHeaderSubtitle.js';
|
|
18
|
-
import { getHeaderCombinations } from './getHeaderCombinations.js';
|
|
19
|
-
import { getHeaderCoordinates } from './getHeaderCoordinates.js';
|
|
20
|
-
import { applyHierarchicalCodesToDim } from './applyHierarchicalCodesToDim.js';
|
|
21
|
-
import { getReportingYearStart } from '../../rules/src/preparators/getReportingYearStart.js';
|
|
22
|
-
import { getNotDisplayedIds } from './getNotDisplayedIds.js';
|
|
23
|
-
import { getAttributes } from './getAttributes.js';
|
|
24
|
-
|
|
25
|
-
const prepareData = (sdmxJson, { customAttributes, locale, hierarchies, dataflow, display, defaultCombinations, dataquery }) => {
|
|
26
|
-
const dimensions = R.pathOr([], ['data', 'structure', 'dimensions', 'observation'], sdmxJson);
|
|
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 });
|
|
34
|
-
const observations = getObservations(sdmxJson);
|
|
35
|
-
let combinations = getCombinationDefinitions(annotations, locale);
|
|
36
|
-
if (R.isEmpty(combinations) && !R.isEmpty(defaultCombinations)) {
|
|
37
|
-
const { concepts, names } = defaultCombinations;
|
|
38
|
-
combinations = parseCombinationDefinition(locale)(concepts, names);
|
|
39
|
-
}
|
|
40
|
-
const metadataCoordinates = getMetadataCoordinates(sdmxJson);
|
|
41
|
-
|
|
42
|
-
const parsedAttributes = parseAttributes(attributes, refinedDimensions, customAttributes);
|
|
43
|
-
const parsedCombinations = parseCombinations(combinations, parsedAttributes, refinedDimensions);
|
|
44
|
-
const seriesCombinations = R.filter(R.prop('series'), parsedCombinations);
|
|
45
|
-
const refinedAttributes = refineAttributes(parsedAttributes, seriesCombinations);
|
|
46
|
-
|
|
47
|
-
const enhancedObservations = enhanceObservations(refinedDimensions, observations, refinedAttributes, { customAttributes });
|
|
48
|
-
const attributesSeries = getAttributesSeries(enhancedObservations);
|
|
49
|
-
const manyValuesDimensions = getManyValuesDimensions(refinedDimensions, attributesSeries, customAttributes, seriesCombinations);
|
|
50
|
-
const oneValueDimensions = getOneValueDimensions(refinedDimensions, parsedAttributes);
|
|
51
|
-
const rejectedDimensions = R.filter(R.prop('rejected'), dimensions);
|
|
52
|
-
const headerCoordinates = getHeaderCoordinates(oneValueDimensions);
|
|
53
|
-
const hierarchisedDimensions = R.map(dim => {
|
|
54
|
-
if (R.isEmpty(R.propOr({}, dim.id, hierarchies))) {
|
|
55
|
-
return hierarchiseDimensionWithNativeHierarchy(dim);
|
|
56
|
-
}
|
|
57
|
-
return applyHierarchicalCodesToDim(R.prop(dim.id, hierarchies), dim);
|
|
58
|
-
}, manyValuesDimensions);
|
|
59
|
-
const duplicatedObservations = duplicateObs(R.values(hierarchisedDimensions), enhancedObservations);
|
|
60
|
-
|
|
61
|
-
const dataflowAttributes = getDataflowAttributes(parsedAttributes, parsedCombinations);
|
|
62
|
-
const headerTitle = getHeaderTitle(dataflow, dataflowAttributes, display, customAttributes);
|
|
63
|
-
const headerSubtitle = getHeaderSubtitle(oneValueDimensions, parsedCombinations, customAttributes, display);
|
|
64
|
-
const headerCombinations = getHeaderCombinations(parsedCombinations, oneValueDimensions, refinedAttributes, display);
|
|
65
|
-
|
|
66
|
-
return ({
|
|
67
|
-
observations: duplicatedObservations,
|
|
68
|
-
dimensions: hierarchisedDimensions,
|
|
69
|
-
combinations: parsedCombinations,
|
|
70
|
-
oneValueDimensions,
|
|
71
|
-
attributesSeries,
|
|
72
|
-
metadataCoordinates,
|
|
73
|
-
attributes: refinedAttributes,
|
|
74
|
-
rejectedDimensions,
|
|
75
|
-
header: {
|
|
76
|
-
title: headerTitle,
|
|
77
|
-
subtitle: headerSubtitle,
|
|
78
|
-
combinations: headerCombinations,
|
|
79
|
-
coordinates: headerCoordinates
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
export { prepareData };
|
|
85
|
-
//# sourceMappingURL=prepareData.js.map
|