@sis-cc/dotstatsuite-components 23.2.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 -98
- 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 -95
- 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,317 +0,0 @@
|
|
|
1
|
-
import * as R from 'ramda';
|
|
2
|
-
import { isTimePeriodDimension, isRefAreaDimension } from '@sis-cc/dotstatsuite-sdmxjs';
|
|
3
|
-
|
|
4
|
-
const getCombinationsNotInLayout = (combinations, layoutIds) => {
|
|
5
|
-
const { header=[], sections=[], rows=[] } = layoutIds;
|
|
6
|
-
const idsInLayout = new Set([...header, ...sections, ...rows]);
|
|
7
|
-
return R.reject(comb => idsInLayout.has(comb.id), combinations);
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
const indexCombsRelationships = (combinations) => R.reduce((acc, comb) => {
|
|
11
|
-
const { id, relationship=[] } = comb;
|
|
12
|
-
return R.assoc(id, relationship, acc);
|
|
13
|
-
}, {}, combinations);
|
|
14
|
-
|
|
15
|
-
const getLayoutLevelRelationship = indexedRelationships => ids => R.reduce((acc, id) => {
|
|
16
|
-
if (R.has(id, indexedRelationships)) {
|
|
17
|
-
return R.concat(acc, R.prop(id, indexedRelationships));
|
|
18
|
-
}
|
|
19
|
-
return R.append(id, acc);
|
|
20
|
-
}, [], ids);
|
|
21
|
-
|
|
22
|
-
const getLayoutRelationships = (indexedRelationships, layoutIds) => R.map(
|
|
23
|
-
getLayoutLevelRelationship(indexedRelationships),
|
|
24
|
-
layoutIds
|
|
25
|
-
);
|
|
26
|
-
|
|
27
|
-
const injectCombination = combination => ids => {
|
|
28
|
-
const { id, concepts=[] } = combination;
|
|
29
|
-
const conceptsSet = new Set(concepts);
|
|
30
|
-
let inject = true;
|
|
31
|
-
const refined = R.reduce((acc, i) => {
|
|
32
|
-
if (!conceptsSet.has(i)) {
|
|
33
|
-
return R.append(i, acc);
|
|
34
|
-
}
|
|
35
|
-
if (inject) {
|
|
36
|
-
inject = false;
|
|
37
|
-
return R.append(id, acc);
|
|
38
|
-
}
|
|
39
|
-
return acc;
|
|
40
|
-
}, [], ids);
|
|
41
|
-
return inject ? R.append(id, refined) : refined;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
const getCombinationLevelCompatibility = (layoutRelationships, combination) => {
|
|
45
|
-
const { relationship=[] } = combination;
|
|
46
|
-
const idsInHeaderSet = new Set(layoutRelationships.header);
|
|
47
|
-
const idsInSectionsSet = new Set(layoutRelationships.sections);
|
|
48
|
-
const idsInRowsSet = new Set(layoutRelationships.rows);
|
|
49
|
-
const [idsInHeader, rest] = R.partition(
|
|
50
|
-
i => idsInHeaderSet.has(i),
|
|
51
|
-
relationship
|
|
52
|
-
);
|
|
53
|
-
const [idsInSections, idsInRows] = R.reduce((_acc, id) => {
|
|
54
|
-
if (idsInSectionsSet.has(id))
|
|
55
|
-
return R.over(R.lensIndex(0), R.append(id), _acc);
|
|
56
|
-
if (idsInRowsSet.has(id))
|
|
57
|
-
return R.over(R.lensIndex(1), R.append(id), _acc);
|
|
58
|
-
return R.over(R.lensIndex(2), R.append(id), _acc);
|
|
59
|
-
}, [[], [], []], rest);
|
|
60
|
-
if (!R.isEmpty(idsInHeader) && R.isEmpty(idsInSections) && R.isEmpty(idsInRows)) {
|
|
61
|
-
return 'header';
|
|
62
|
-
}
|
|
63
|
-
if (!R.isEmpty(idsInHeader)) {
|
|
64
|
-
return null;
|
|
65
|
-
}
|
|
66
|
-
if (!R.isEmpty(idsInSections) && R.isEmpty(idsInRows)) {
|
|
67
|
-
return 'sections';
|
|
68
|
-
}
|
|
69
|
-
if (!R.isEmpty(idsInRows)) {
|
|
70
|
-
return 'rows';
|
|
71
|
-
}
|
|
72
|
-
return 'blank';
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
const filterLayoutIds = (indexedCombinations, layoutDimsIds, obsAttributes) => (layoutIds) => {
|
|
76
|
-
const layoutConcepts = R.map(
|
|
77
|
-
R.reduce((acc, id) => {
|
|
78
|
-
if (R.has(id, indexedCombinations)) {
|
|
79
|
-
return R.concat(acc, R.path([id, 'concepts'], indexedCombinations));
|
|
80
|
-
}
|
|
81
|
-
return R.append(id, acc);
|
|
82
|
-
}, []),
|
|
83
|
-
layoutIds
|
|
84
|
-
);
|
|
85
|
-
|
|
86
|
-
return R.mapObjIndexed(
|
|
87
|
-
(ids, level) => R.filter(id => {
|
|
88
|
-
if (id === 'OBS_ATTRIBUTES') {
|
|
89
|
-
return !R.isEmpty(obsAttributes);
|
|
90
|
-
}
|
|
91
|
-
if (R.has(id, indexedCombinations)) {
|
|
92
|
-
const comb = R.prop(id, indexedCombinations);
|
|
93
|
-
const dims = R.filter(i => layoutDimsIds.has(i), comb.concepts);
|
|
94
|
-
if (!R.isEmpty(dims)) {
|
|
95
|
-
return true;
|
|
96
|
-
}
|
|
97
|
-
const oppositeIds = level === 'header'
|
|
98
|
-
? R.concat(R.prop('sections', layoutConcepts), R.prop('rows', layoutConcepts))
|
|
99
|
-
: R.prop('header', layoutConcepts);
|
|
100
|
-
return R.isEmpty(R.intersection(comb.relationship, oppositeIds));
|
|
101
|
-
}
|
|
102
|
-
return layoutDimsIds.has(id);
|
|
103
|
-
}, ids),
|
|
104
|
-
layoutIds
|
|
105
|
-
);
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
const injectCombinationsInLayout = (combinations, layoutIds, defaultLayoutIds = {}) => {
|
|
109
|
-
const notInLayoutCombs = getCombinationsNotInLayout(combinations, layoutIds);
|
|
110
|
-
if (R.isEmpty(notInLayoutCombs)) {
|
|
111
|
-
return layoutIds;
|
|
112
|
-
}
|
|
113
|
-
const indexedCombsRelationships = indexCombsRelationships(combinations);
|
|
114
|
-
let layoutRelationships = getLayoutRelationships(indexedCombsRelationships, layoutIds);
|
|
115
|
-
const defaultLayoutRelationships = getLayoutRelationships(indexedCombsRelationships, defaultLayoutIds);
|
|
116
|
-
return R.reduce((acc, comb) => {
|
|
117
|
-
let levelCompatibility = getCombinationLevelCompatibility(layoutRelationships, comb);
|
|
118
|
-
if (R.isNil(levelCompatibility)) {
|
|
119
|
-
return acc;
|
|
120
|
-
}
|
|
121
|
-
if (R.equals('blank', levelCompatibility)) {
|
|
122
|
-
levelCompatibility = getCombinationLevelCompatibility(defaultLayoutRelationships, comb);
|
|
123
|
-
if (R.isNil(levelCompatibility)) {
|
|
124
|
-
return acc;
|
|
125
|
-
}
|
|
126
|
-
levelCompatibility = R.equals('blank', levelCompatibility) ? 'rows' : levelCompatibility;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
layoutRelationships[levelCompatibility] = R.concat(layoutRelationships[levelCompatibility], comb.relationship);
|
|
130
|
-
const ids = injectCombination(comb)(acc[levelCompatibility]);
|
|
131
|
-
return R.assoc(levelCompatibility, ids)(acc);
|
|
132
|
-
}, layoutIds, notInLayoutCombs);
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
const getLayoutDimsIds = dimensions => R.reduce(
|
|
136
|
-
(acc, d) => (d.header ? acc : acc.add(d.id)),
|
|
137
|
-
new Set([]),
|
|
138
|
-
dimensions,
|
|
139
|
-
);
|
|
140
|
-
|
|
141
|
-
const getLayoutCombinations = (combinations, layoutDimsIds, attributes) => {
|
|
142
|
-
const indexedAttributes = R.indexBy(R.prop('id'), attributes);
|
|
143
|
-
return R.reduce(
|
|
144
|
-
(acc, comb) => {
|
|
145
|
-
const { layoutConcepts, relationship } = R.reduce(
|
|
146
|
-
(_acc, concept) => {
|
|
147
|
-
if (layoutDimsIds.has(concept)) {
|
|
148
|
-
return R.map(R.append(concept), _acc);
|
|
149
|
-
}
|
|
150
|
-
if (R.has(concept, indexedAttributes)) {
|
|
151
|
-
const attr = R.prop(concept, indexedAttributes);
|
|
152
|
-
return attr.series
|
|
153
|
-
? {
|
|
154
|
-
..._acc,
|
|
155
|
-
relationship: R.concat(_acc.relationship, attr.relationship),
|
|
156
|
-
}
|
|
157
|
-
: _acc;
|
|
158
|
-
}
|
|
159
|
-
return _acc;
|
|
160
|
-
},
|
|
161
|
-
{ layoutConcepts: [], relationship: [] },
|
|
162
|
-
comb.concepts || [],
|
|
163
|
-
);
|
|
164
|
-
if (R.isEmpty(relationship)) {
|
|
165
|
-
return acc;
|
|
166
|
-
}
|
|
167
|
-
return R.append({ ...comb, relationship, concepts: layoutConcepts }, acc);
|
|
168
|
-
},
|
|
169
|
-
[],
|
|
170
|
-
combinations,
|
|
171
|
-
);
|
|
172
|
-
};
|
|
173
|
-
|
|
174
|
-
const extractConcepts = (ids, indexedCombinations, layoutDimsIds) => {
|
|
175
|
-
const entry = R.find(id => {
|
|
176
|
-
if (R.has(id, indexedCombinations)) {
|
|
177
|
-
const dimId = R.find(i => layoutDimsIds.has(i), R.pathOr([], [id, 'concepts'], indexedCombinations));
|
|
178
|
-
return !R.isNil(dimId);
|
|
179
|
-
}
|
|
180
|
-
return true;
|
|
181
|
-
}, ids);
|
|
182
|
-
|
|
183
|
-
const getRelationship = id => {
|
|
184
|
-
if (R.has(id, indexedCombinations)) {
|
|
185
|
-
return R.append(id, R.path([id, 'relationship'], indexedCombinations));
|
|
186
|
-
}
|
|
187
|
-
return [id];
|
|
188
|
-
};
|
|
189
|
-
let indexedRels = R.reduce((acc, id) =>
|
|
190
|
-
R.assoc(id, getRelationship(id), acc)
|
|
191
|
-
, {}, ids);
|
|
192
|
-
|
|
193
|
-
let relationship = [entry];
|
|
194
|
-
while (!R.isEmpty(indexedRels)) {
|
|
195
|
-
const related = R.pickBy(rels => !R.isEmpty(R.intersection(relationship, rels)), indexedRels);
|
|
196
|
-
if (R.isEmpty(related)) {
|
|
197
|
-
break;
|
|
198
|
-
}
|
|
199
|
-
indexedRels = R.omit(R.keys(related), indexedRels);
|
|
200
|
-
relationship = R.concat(relationship, R.unnest(R.values(related)));
|
|
201
|
-
}
|
|
202
|
-
const set = new Set(relationship);
|
|
203
|
-
return R.partition(id => set.has(id), ids);
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
const injectRemainingDimensionsInLayout = (layoutIds, remainingDims, indexedCombinations, layoutDimsIds) => {
|
|
207
|
-
let _layout = layoutIds;
|
|
208
|
-
let _remaining = remainingDims;
|
|
209
|
-
|
|
210
|
-
const dimInRows = R.find(id => {
|
|
211
|
-
if (layoutDimsIds.has(id)) {
|
|
212
|
-
return true;
|
|
213
|
-
}
|
|
214
|
-
const dimId = R.find(i => layoutDimsIds.has(i), R.pathOr([], [id, 'concepts'], indexedCombinations));
|
|
215
|
-
return !R.isNil(dimId);
|
|
216
|
-
}, _layout.rows);
|
|
217
|
-
|
|
218
|
-
if (R.isNil(dimInRows)) {
|
|
219
|
-
if (R.isEmpty(_remaining)) {
|
|
220
|
-
const toTakeIn = R.isEmpty(_layout.sections) ? 'header' : 'sections';
|
|
221
|
-
const [extracted, remains] = extractConcepts(R.prop(toTakeIn, _layout), indexedCombinations, layoutDimsIds);
|
|
222
|
-
_layout = ({ ..._layout, rows: R.concat(_layout.rows, extracted), [toTakeIn]: remains });
|
|
223
|
-
}
|
|
224
|
-
else {
|
|
225
|
-
_layout = R.over(R.lensProp('rows'), R.append(R.head(_remaining)))(_layout);
|
|
226
|
-
_remaining = R.tail(_remaining);
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
if (!R.isEmpty(_remaining)) {
|
|
230
|
-
const hasNoHeader = R.isEmpty(_layout.header);
|
|
231
|
-
const firstRemaining = R.head(_remaining);
|
|
232
|
-
_remaining = hasNoHeader ? R.tail(_remaining) : _remaining;
|
|
233
|
-
_layout = {
|
|
234
|
-
..._layout,
|
|
235
|
-
sections: R.concat(_layout.sections, _remaining),
|
|
236
|
-
header: hasNoHeader ? [firstRemaining] : _layout.header,
|
|
237
|
-
};
|
|
238
|
-
}
|
|
239
|
-
return _layout;
|
|
240
|
-
};
|
|
241
|
-
|
|
242
|
-
const getTableLayoutIds = (
|
|
243
|
-
defaultLayoutIds,
|
|
244
|
-
currentLayoutIds,
|
|
245
|
-
dimensions,
|
|
246
|
-
attributes,
|
|
247
|
-
combinations
|
|
248
|
-
) => {
|
|
249
|
-
const layoutDimsIds = getLayoutDimsIds(dimensions);
|
|
250
|
-
const layoutCombinations = getLayoutCombinations(
|
|
251
|
-
combinations,
|
|
252
|
-
layoutDimsIds,
|
|
253
|
-
attributes,
|
|
254
|
-
);
|
|
255
|
-
const isBlank = R.pipe(R.values, R.all(R.isEmpty))(currentLayoutIds);
|
|
256
|
-
|
|
257
|
-
const combinationsConcepts = R.pipe(R.pluck('_concepts'), R.unnest, ids => new Set(ids))(combinations);
|
|
258
|
-
const obsAttributes = R.filter(a =>
|
|
259
|
-
a.series && R.isEmpty(a.relationship || []) && a.display && !combinationsConcepts.has(a)
|
|
260
|
-
, attributes);
|
|
261
|
-
const indexedCombinations = R.indexBy(R.prop('id'), layoutCombinations);
|
|
262
|
-
const filteredLayoutIds = filterLayoutIds(indexedCombinations, layoutDimsIds, obsAttributes)
|
|
263
|
-
(isBlank ? defaultLayoutIds : currentLayoutIds);
|
|
264
|
-
|
|
265
|
-
const layoutWithCombs = injectCombinationsInLayout(layoutCombinations, filteredLayoutIds, defaultLayoutIds);
|
|
266
|
-
const layoutRelationshipsSets = R.map(R.pipe(
|
|
267
|
-
ids => R.pick(ids, indexedCombinations),
|
|
268
|
-
R.values,
|
|
269
|
-
R.pluck('relationship'),
|
|
270
|
-
R.unnest,
|
|
271
|
-
i => new Set(i)
|
|
272
|
-
), layoutWithCombs);
|
|
273
|
-
const layoutConceptsSets = R.pipe(
|
|
274
|
-
R.map(
|
|
275
|
-
R.reduce((acc, id) => {
|
|
276
|
-
if (R.has(id, indexedCombinations)) {
|
|
277
|
-
return R.concat(acc, R.path([id, 'concepts'], indexedCombinations));
|
|
278
|
-
}
|
|
279
|
-
return R.append(id, acc);
|
|
280
|
-
}, []),
|
|
281
|
-
),
|
|
282
|
-
R.values,
|
|
283
|
-
R.unnest,
|
|
284
|
-
ids => new Set(ids)
|
|
285
|
-
)(layoutWithCombs);
|
|
286
|
-
const defaultLayoutConceptsSets = R.map(
|
|
287
|
-
ids => new Set(ids),
|
|
288
|
-
defaultLayoutIds
|
|
289
|
-
);
|
|
290
|
-
|
|
291
|
-
const { nextLayout, remaining } = R.reduce((acc, dim) => {
|
|
292
|
-
if (layoutConceptsSets.has(dim.id) || dim.header) {
|
|
293
|
-
return acc;
|
|
294
|
-
}
|
|
295
|
-
if (layoutRelationshipsSets.header.has(dim.id) || defaultLayoutConceptsSets.header.has(dim.id)) {
|
|
296
|
-
return R.over(R.lensPath(['nextLayout', 'header']), R.append(dim.id))(acc);
|
|
297
|
-
}
|
|
298
|
-
if (layoutRelationshipsSets.sections.has(dim.id) || defaultLayoutConceptsSets.sections.has(dim.id)) {
|
|
299
|
-
return R.over(R.lensPath(['nextLayout', 'sections']), R.append(dim.id))(acc);
|
|
300
|
-
}
|
|
301
|
-
if (layoutRelationshipsSets.rows.has(dim.id) || defaultLayoutConceptsSets.rows.has(dim.id)) {
|
|
302
|
-
return R.over(R.lensPath(['nextLayout','rows']), R.append(dim.id))(acc);
|
|
303
|
-
}
|
|
304
|
-
if (isTimePeriodDimension(dim)) {
|
|
305
|
-
return R.over(R.lensPath(['nextLayout','header']), R.append(dim.id))(acc);
|
|
306
|
-
}
|
|
307
|
-
if (isRefAreaDimension(dim)) {
|
|
308
|
-
return R.over(R.lensPath(['nextLayout','rows']), R.append(dim.id))(acc);
|
|
309
|
-
}
|
|
310
|
-
return R.over(R.lensProp('remaining'), R.append(dim.id))(acc);
|
|
311
|
-
}, { nextLayout: layoutWithCombs, remaining: [] }, dimensions);
|
|
312
|
-
|
|
313
|
-
return injectRemainingDimensionsInLayout(nextLayout, remaining, indexedCombinations, layoutDimsIds);
|
|
314
|
-
};
|
|
315
|
-
|
|
316
|
-
export { getTableLayoutIds, injectCombinationsInLayout };
|
|
317
|
-
//# sourceMappingURL=getTableLayoutIds.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getTableLayoutIds.js","sources":["../../../../src/rules2/src/table/getTableLayoutIds.js"],"sourcesContent":["import * as R from 'ramda';\nimport { isTimePeriodDimension, isRefAreaDimension } from '@sis-cc/dotstatsuite-sdmxjs';\n\nconst getCombinationsNotInLayout = (combinations, layoutIds) => {\n const { header=[], sections=[], rows=[] } = layoutIds;\n const idsInLayout = new Set([...header, ...sections, ...rows]);\n return R.reject(comb => idsInLayout.has(comb.id), combinations);\n};\n\nconst indexCombsRelationships = (combinations) => R.reduce((acc, comb) => {\n const { id, relationship=[] } = comb;\n return R.assoc(id, relationship, acc);\n}, {}, combinations);\n\nconst getLayoutLevelRelationship = indexedRelationships => ids => R.reduce((acc, id) => {\n if (R.has(id, indexedRelationships)) {\n return R.concat(acc, R.prop(id, indexedRelationships));\n }\n return R.append(id, acc);\n}, [], ids);\n\nconst getLayoutRelationships = (indexedRelationships, layoutIds) => R.map(\n getLayoutLevelRelationship(indexedRelationships),\n layoutIds\n);\n\nconst injectCombination = combination => ids => {\n const { id, concepts=[] } = combination;\n const conceptsSet = new Set(concepts);\n let inject = true;\n const refined = R.reduce((acc, i) => {\n if (!conceptsSet.has(i)) {\n return R.append(i, acc);\n }\n if (inject) {\n inject = false;\n return R.append(id, acc);\n }\n return acc;\n }, [], ids);\n return inject ? R.append(id, refined) : refined;\n};\n\nconst getCombinationLevelCompatibility = (layoutRelationships, combination) => {\n const { relationship=[] } = combination;\n const idsInHeaderSet = new Set(layoutRelationships.header);\n const idsInSectionsSet = new Set(layoutRelationships.sections);\n const idsInRowsSet = new Set(layoutRelationships.rows);\n const [idsInHeader, rest] = R.partition(\n i => idsInHeaderSet.has(i),\n relationship\n );\n const [idsInSections, idsInRows] = R.reduce((_acc, id) => {\n if (idsInSectionsSet.has(id))\n return R.over(R.lensIndex(0), R.append(id), _acc);\n if (idsInRowsSet.has(id))\n return R.over(R.lensIndex(1), R.append(id), _acc);\n return R.over(R.lensIndex(2), R.append(id), _acc);\n }, [[], [], []], rest);\n if (!R.isEmpty(idsInHeader) && R.isEmpty(idsInSections) && R.isEmpty(idsInRows)) {\n return 'header';\n }\n if (!R.isEmpty(idsInHeader)) {\n return null;\n }\n if (!R.isEmpty(idsInSections) && R.isEmpty(idsInRows)) {\n return 'sections';\n }\n if (!R.isEmpty(idsInRows)) {\n return 'rows';\n }\n return 'blank';\n}\n\nconst filterLayoutIds = (indexedCombinations, layoutDimsIds, obsAttributes) => (layoutIds) => {\n const layoutConcepts = R.map(\n R.reduce((acc, id) => {\n if (R.has(id, indexedCombinations)) {\n return R.concat(acc, R.path([id, 'concepts'], indexedCombinations));\n }\n return R.append(id, acc);\n }, []),\n layoutIds\n );\n\n return R.mapObjIndexed(\n (ids, level) => R.filter(id => {\n if (id === 'OBS_ATTRIBUTES') {\n return !R.isEmpty(obsAttributes);\n }\n if (R.has(id, indexedCombinations)) {\n const comb = R.prop(id, indexedCombinations);\n const dims = R.filter(i => layoutDimsIds.has(i), comb.concepts);\n if (!R.isEmpty(dims)) {\n return true;\n }\n const oppositeIds = level === 'header'\n ? R.concat(R.prop('sections', layoutConcepts), R.prop('rows', layoutConcepts))\n : R.prop('header', layoutConcepts);\n return R.isEmpty(R.intersection(comb.relationship, oppositeIds));\n }\n return layoutDimsIds.has(id);\n }, ids),\n layoutIds\n );\n};\n\nexport const injectCombinationsInLayout = (combinations, layoutIds, defaultLayoutIds = {}) => {\n const notInLayoutCombs = getCombinationsNotInLayout(combinations, layoutIds);\n if (R.isEmpty(notInLayoutCombs)) {\n return layoutIds;\n }\n const indexedCombsRelationships = indexCombsRelationships(combinations);\n let layoutRelationships = getLayoutRelationships(indexedCombsRelationships, layoutIds);\n const defaultLayoutRelationships = getLayoutRelationships(indexedCombsRelationships, defaultLayoutIds);\n return R.reduce((acc, comb) => {\n let levelCompatibility = getCombinationLevelCompatibility(layoutRelationships, comb);\n if (R.isNil(levelCompatibility)) {\n return acc;\n }\n if (R.equals('blank', levelCompatibility)) {\n levelCompatibility = getCombinationLevelCompatibility(defaultLayoutRelationships, comb);\n if (R.isNil(levelCompatibility)) {\n return acc;\n }\n levelCompatibility = R.equals('blank', levelCompatibility) ? 'rows' : levelCompatibility;\n }\n\n layoutRelationships[levelCompatibility] = R.concat(layoutRelationships[levelCompatibility], comb.relationship);\n const ids = injectCombination(comb)(acc[levelCompatibility]);\n return R.assoc(levelCompatibility, ids)(acc);\n }, layoutIds, notInLayoutCombs);\n};\n\nconst getLayoutDimsIds = dimensions => R.reduce(\n (acc, d) => (d.header ? acc : acc.add(d.id)),\n new Set([]),\n dimensions,\n);\n\nconst getLayoutCombinations = (combinations, layoutDimsIds, attributes) => {\n const indexedAttributes = R.indexBy(R.prop('id'), attributes);\n return R.reduce(\n (acc, comb) => {\n const { layoutConcepts, relationship } = R.reduce(\n (_acc, concept) => {\n if (layoutDimsIds.has(concept)) {\n return R.map(R.append(concept), _acc);\n }\n if (R.has(concept, indexedAttributes)) {\n const attr = R.prop(concept, indexedAttributes);\n return attr.series\n ? {\n ..._acc,\n relationship: R.concat(_acc.relationship, attr.relationship),\n }\n : _acc;\n }\n return _acc;\n },\n { layoutConcepts: [], relationship: [] },\n comb.concepts || [],\n );\n if (R.isEmpty(relationship)) {\n return acc;\n }\n return R.append({ ...comb, relationship, concepts: layoutConcepts }, acc);\n },\n [],\n combinations,\n );\n};\n\nconst extractConcepts = (ids, indexedCombinations, layoutDimsIds) => {\n const entry = R.find(id => {\n if (R.has(id, indexedCombinations)) {\n const dimId = R.find(i => layoutDimsIds.has(i), R.pathOr([], [id, 'concepts'], indexedCombinations));\n return !R.isNil(dimId);\n }\n return true;\n }, ids);\n\n const getRelationship = id => {\n if (R.has(id, indexedCombinations)) {\n return R.append(id, R.path([id, 'relationship'], indexedCombinations));\n }\n return [id];\n };\n let indexedRels = R.reduce((acc, id) =>\n R.assoc(id, getRelationship(id), acc)\n , {}, ids);\n \n let relationship = [entry];\n while (!R.isEmpty(indexedRels)) {\n const related = R.pickBy(rels => !R.isEmpty(R.intersection(relationship, rels)), indexedRels);\n if (R.isEmpty(related)) {\n break;\n }\n indexedRels = R.omit(R.keys(related), indexedRels);\n relationship = R.concat(relationship, R.unnest(R.values(related)));\n }\n const set = new Set(relationship);\n return R.partition(id => set.has(id), ids);\n}\n\nconst injectRemainingDimensionsInLayout = (layoutIds, remainingDims, indexedCombinations, layoutDimsIds) => {\n let _layout = layoutIds;\n let _remaining = remainingDims;\n\n const dimInRows = R.find(id => {\n if (layoutDimsIds.has(id)) {\n return true;\n }\n const dimId = R.find(i => layoutDimsIds.has(i), R.pathOr([], [id, 'concepts'], indexedCombinations));\n return !R.isNil(dimId);\n }, _layout.rows);\n\n if (R.isNil(dimInRows)) {\n if (R.isEmpty(_remaining)) {\n const toTakeIn = R.isEmpty(_layout.sections) ? 'header' : 'sections';\n const [extracted, remains] = extractConcepts(R.prop(toTakeIn, _layout), indexedCombinations, layoutDimsIds);\n _layout = ({ ..._layout, rows: R.concat(_layout.rows, extracted), [toTakeIn]: remains });\n }\n else {\n _layout = R.over(R.lensProp('rows'), R.append(R.head(_remaining)))(_layout);\n _remaining = R.tail(_remaining)\n }\n }\n if (!R.isEmpty(_remaining)) {\n const hasNoHeader = R.isEmpty(_layout.header);\n const firstRemaining = R.head(_remaining);\n _remaining = hasNoHeader ? R.tail(_remaining) : _remaining;\n _layout = {\n ..._layout,\n sections: R.concat(_layout.sections, _remaining),\n header: hasNoHeader ? [firstRemaining] : _layout.header,\n };\n }\n return _layout;\n};\n\nexport const getTableLayoutIds = (\n defaultLayoutIds,\n currentLayoutIds,\n dimensions,\n attributes,\n combinations\n) => {\n const layoutDimsIds = getLayoutDimsIds(dimensions);\n const layoutCombinations = getLayoutCombinations(\n combinations,\n layoutDimsIds,\n attributes,\n );\n const isBlank = R.pipe(R.values, R.all(R.isEmpty))(currentLayoutIds);\n\n const combinationsConcepts = R.pipe(R.pluck('_concepts'), R.unnest, ids => new Set(ids))(combinations);\n const obsAttributes = R.filter(a => \n a.series && R.isEmpty(a.relationship || []) && a.display && !combinationsConcepts.has(a)\n , attributes);\n const indexedCombinations = R.indexBy(R.prop('id'), layoutCombinations);\n const filteredLayoutIds = filterLayoutIds(indexedCombinations, layoutDimsIds, obsAttributes)\n (isBlank ? defaultLayoutIds : currentLayoutIds);\n\n const layoutWithCombs = injectCombinationsInLayout(layoutCombinations, filteredLayoutIds, defaultLayoutIds);\n const layoutRelationshipsSets = R.map(R.pipe(\n ids => R.pick(ids, indexedCombinations),\n R.values,\n R.pluck('relationship'),\n R.unnest,\n i => new Set(i)\n ), layoutWithCombs);\n const layoutConceptsSets = R.pipe(\n R.map(\n R.reduce((acc, id) => {\n if (R.has(id, indexedCombinations)) {\n return R.concat(acc, R.path([id, 'concepts'], indexedCombinations));\n }\n return R.append(id, acc);\n }, []),\n ),\n R.values,\n R.unnest,\n ids => new Set(ids)\n )(layoutWithCombs);\n const defaultLayoutConceptsSets = R.map(\n ids => new Set(ids),\n defaultLayoutIds\n );\n\n const { nextLayout, remaining } = R.reduce((acc, dim) => {\n if (layoutConceptsSets.has(dim.id) || dim.header) {\n return acc;\n }\n if (layoutRelationshipsSets.header.has(dim.id) || defaultLayoutConceptsSets.header.has(dim.id)) {\n return R.over(R.lensPath(['nextLayout', 'header']), R.append(dim.id))(acc);\n }\n if (layoutRelationshipsSets.sections.has(dim.id) || defaultLayoutConceptsSets.sections.has(dim.id)) {\n return R.over(R.lensPath(['nextLayout', 'sections']), R.append(dim.id))(acc);\n }\n if (layoutRelationshipsSets.rows.has(dim.id) || defaultLayoutConceptsSets.rows.has(dim.id)) {\n return R.over(R.lensPath(['nextLayout','rows']), R.append(dim.id))(acc);\n }\n if (isTimePeriodDimension(dim)) {\n return R.over(R.lensPath(['nextLayout','header']), R.append(dim.id))(acc);\n }\n if (isRefAreaDimension(dim)) {\n return R.over(R.lensPath(['nextLayout','rows']), R.append(dim.id))(acc);\n }\n return R.over(R.lensProp('remaining'), R.append(dim.id))(acc);\n }, { nextLayout: layoutWithCombs, remaining: [] }, dimensions);\n\n return injectRemainingDimensionsInLayout(nextLayout, remaining, indexedCombinations, layoutDimsIds);\n};\n"],"names":[],"mappings":";;;AAGA,MAAM,0BAA0B,GAAG,CAAC,YAAY,EAAE,SAAS,KAAK;AAChE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,GAAG,SAAS;AACvD,EAAE,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,CAA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GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;AAC/E,IAAI;AACJ,IAAI,IAAI,kBAAkB,CAAC,GAAG,CAAC,EAAE;AACjC,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;AAC7E,IAAI;AACJ,IAAI,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;AACjE,EAAE,CAAC,EAAE,EAAE,UAAU,EAAE,eAAe,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,UAAU,CAAC;;AAEhE,EAAE,OAAO,iCAAiC,CAAC,UAAU,EAAE,SAAS,EAAE,mBAAmB,EAAE,aAAa,CAAC;AACrG;;;;"}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import * as R from 'ramda';
|
|
2
|
-
import { declineObservationsOverAttributes } from './declineObservationsOverAttributes.js';
|
|
3
|
-
import { getLayout } from './getLayout.js';
|
|
4
|
-
import { getSortedLayoutIndexes } from './getSortedLayoutIndexes.js';
|
|
5
|
-
import { parseLayoutIndexesHierarchies } from './parseSeriesIndexesHierarchies.js';
|
|
6
|
-
import { refineLayoutSize } from './refineLayoutSize2.js';
|
|
7
|
-
import { getLayoutData } from './getLayoutData2.js';
|
|
8
|
-
import { getCellsAttributesIds } from './getCellsAttributesIds.js';
|
|
9
|
-
import { getIndexedCombinationsByDisplay } from './getIndexedCombinationsByDisplay.js';
|
|
10
|
-
import { getCells } from './getCells.js';
|
|
11
|
-
import { getCuratedCells } from './getCuratedCells.js';
|
|
12
|
-
import { getSeriesCombinations } from '../getSeriesCombinations.js';
|
|
13
|
-
import { getCellsMetadataCoordinates } from './getCellsMetadataCoordinates.js';
|
|
14
|
-
|
|
15
|
-
const getTableProps = ({ data, layoutIds, customAttributes, limit, isTimeInverted }) => {
|
|
16
|
-
const {
|
|
17
|
-
observations,
|
|
18
|
-
dimensions,
|
|
19
|
-
combinations,
|
|
20
|
-
oneValueDimensions,
|
|
21
|
-
attributesSeries,
|
|
22
|
-
metadataCoordinates,
|
|
23
|
-
attributes,
|
|
24
|
-
header,
|
|
25
|
-
rejectedDimensions=[]
|
|
26
|
-
} = data;
|
|
27
|
-
|
|
28
|
-
const obsAttributes = R.filter(
|
|
29
|
-
a => a.series && R.isEmpty(a.relationship) && a.display && !a.combined,
|
|
30
|
-
attributes
|
|
31
|
-
);
|
|
32
|
-
let dupObs = observations;
|
|
33
|
-
const hasDuplicatedCells = R.pipe(
|
|
34
|
-
R.values,
|
|
35
|
-
R.unnest,
|
|
36
|
-
R.find(R.equals('OBS_ATTRIBUTES')),
|
|
37
|
-
)(layoutIds);
|
|
38
|
-
if (hasDuplicatedCells) {
|
|
39
|
-
const attrsIds = R.pluck('id', obsAttributes);
|
|
40
|
-
dupObs = declineObservationsOverAttributes(attrsIds, observations);
|
|
41
|
-
}
|
|
42
|
-
const seriesCombinations = getSeriesCombinations(combinations, oneValueDimensions);
|
|
43
|
-
const _dims = R.append(
|
|
44
|
-
{
|
|
45
|
-
id: 'OBS_ATTRIBUTES',
|
|
46
|
-
values: R.prepend({ id: 'OBS_VALUE' }, obsAttributes),
|
|
47
|
-
},
|
|
48
|
-
dimensions,
|
|
49
|
-
);
|
|
50
|
-
const layout = getLayout(layoutIds, _dims, seriesCombinations, isTimeInverted);
|
|
51
|
-
const layoutDimsIds = R.map(R.reduce((acc, entry) => {
|
|
52
|
-
if (R.has('dimensions', entry)) {
|
|
53
|
-
return R.concat(acc, R.pluck('id', entry.dimensions));
|
|
54
|
-
}
|
|
55
|
-
return R.append(entry.id, acc);
|
|
56
|
-
}, []), layout);
|
|
57
|
-
const layoutIndexes = getSortedLayoutIndexes(layout, dupObs, rejectedDimensions);
|
|
58
|
-
const enhancedLayoutIndexes = parseLayoutIndexesHierarchies(
|
|
59
|
-
layoutIndexes,
|
|
60
|
-
layout,
|
|
61
|
-
);
|
|
62
|
-
const refinedLayoutIndexes = refineLayoutSize({ layout, observations: dupObs, limit })(enhancedLayoutIndexes);
|
|
63
|
-
const layoutData = getLayoutData(refinedLayoutIndexes, layout, {
|
|
64
|
-
metadataCoordinates,
|
|
65
|
-
attributesSeries,
|
|
66
|
-
customAttributes,
|
|
67
|
-
topCoordinates: header.coordinates,
|
|
68
|
-
rejectedDimensions
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
const cellsAttributesIds = getCellsAttributesIds(layoutDimsIds, attributes);
|
|
72
|
-
const indexedCombinations = getIndexedCombinationsByDisplay(layout, seriesCombinations);
|
|
73
|
-
const cellsMetadataCoordinates = getCellsMetadataCoordinates(metadataCoordinates, oneValueDimensions, layoutDimsIds);
|
|
74
|
-
const cells = getCells(customAttributes, cellsAttributesIds, indexedCombinations, attributesSeries, cellsMetadataCoordinates)(dupObs);
|
|
75
|
-
|
|
76
|
-
return ({
|
|
77
|
-
...layoutData,
|
|
78
|
-
cells: getCuratedCells(cells, layout),
|
|
79
|
-
layout,
|
|
80
|
-
combinations: seriesCombinations
|
|
81
|
-
});
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
export { getTableProps };
|
|
85
|
-
//# sourceMappingURL=getTableProps.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getTableProps.js","sources":["../../../../src/rules2/src/table/getTableProps.js"],"sourcesContent":["import * as R from 'ramda';\nimport { declineObservationsOverAttributes } from './declineObservationsOverAttributes';\nimport { getLayout } from './getLayout';\nimport { getSortedLayoutIndexes } from './getSortedLayoutIndexes';\nimport { parseLayoutIndexesHierarchies } from './parseSeriesIndexesHierarchies';\nimport { refineLayoutSize } from './refineLayoutSize2';\nimport { getLayoutData } from './getLayoutData2';\nimport { getCellsAttributesIds } from './getCellsAttributesIds';\nimport { getIndexedCombinationsByDisplay } from './getIndexedCombinationsByDisplay';\nimport { getCells } from './getCells';\nimport { getCuratedCells } from './getCuratedCells';\nimport { getSeriesCombinations } from '../getSeriesCombinations';\nimport { getCellsMetadataCoordinates } from './getCellsMetadataCoordinates';\n\nexport const getTableProps = ({ data, layoutIds, customAttributes, limit, isTimeInverted }) => {\n const {\n observations,\n dimensions,\n combinations,\n oneValueDimensions,\n attributesSeries,\n metadataCoordinates,\n attributes,\n header,\n rejectedDimensions=[]\n } = data;\n\n const obsAttributes = R.filter(\n a => a.series && R.isEmpty(a.relationship) && a.display && !a.combined,\n attributes\n );\n let dupObs = observations;\n const hasDuplicatedCells = R.pipe(\n R.values,\n R.unnest,\n R.find(R.equals('OBS_ATTRIBUTES')),\n )(layoutIds);\n if (hasDuplicatedCells) {\n const attrsIds = R.pluck('id', obsAttributes);\n dupObs = declineObservationsOverAttributes(attrsIds, observations);\n }\n const seriesCombinations = getSeriesCombinations(combinations, oneValueDimensions);\n const _dims = R.append(\n {\n id: 'OBS_ATTRIBUTES',\n values: R.prepend({ id: 'OBS_VALUE' }, obsAttributes),\n },\n dimensions,\n );\n const layout = getLayout(layoutIds, _dims, seriesCombinations, isTimeInverted);\n const layoutDimsIds = R.map(R.reduce((acc, entry) => {\n if (R.has('dimensions', entry)) {\n return R.concat(acc, R.pluck('id', entry.dimensions));\n }\n return R.append(entry.id, acc);\n }, []), layout);\n const layoutIndexes = getSortedLayoutIndexes(layout, dupObs, rejectedDimensions);\n const enhancedLayoutIndexes = parseLayoutIndexesHierarchies(\n layoutIndexes,\n layout,\n );\n const refinedLayoutIndexes = refineLayoutSize({ layout, observations: dupObs, limit })(enhancedLayoutIndexes);\n const layoutData = getLayoutData(refinedLayoutIndexes, layout, {\n metadataCoordinates,\n attributesSeries,\n customAttributes,\n topCoordinates: header.coordinates,\n rejectedDimensions\n });\n\n const cellsAttributesIds = getCellsAttributesIds(layoutDimsIds, attributes);\n const indexedCombinations = getIndexedCombinationsByDisplay(layout, seriesCombinations);\n const cellsMetadataCoordinates = getCellsMetadataCoordinates(metadataCoordinates, oneValueDimensions, layoutDimsIds);\n const cells = getCells(customAttributes, cellsAttributesIds, indexedCombinations, attributesSeries, cellsMetadataCoordinates)(dupObs);\n\n return ({\n ...layoutData,\n cells: getCuratedCells(cells, layout),\n layout,\n combinations: seriesCombinations\n });\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAcY,MAAC,aAAa,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,gBAAgB,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK;AAC/F,EAAE,MAAM;AACR,IAAI,YAAY;AAChB,IAAI,UAAU;AACd,IAAI,YAAY;AAChB,IAAI,kBAAkB;AACtB,IAAI,gBAAgB;AACpB,IAAI,mBAAmB;AACvB,IAAI,UAAU;AACd,IAAI,MAAM;AACV,IAAI,kBAAkB,CAAC;AACvB,GAAG,GAAG,IAAI;;AAEV,EAAE,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM;AAChC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,QAAQ;AAC1E,IAAI;AACJ,GAAG;AACH,EAAE,IAAI,MAAM,GAAG,YAAY;AAC3B,EAAE,MAAM,kBAAkB,GAAG,CAAC,CAAC,IAAI;AACnC,IAAI,CAAC,CAAC,MAAM;AACZ,IAAI,CAAC,CAAC,MAAM;AACZ,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;AACtC,GAAG,CAAC,SAAS,CAAC;AACd,EAAE,IAAI,kBAAkB,EAAE;AAC1B,IAAI,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,aAAa,CAAC;AACjD,IAAI,MAAM,GAAG,i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,oBAAoB,EAAE,MAAM,EAAE;AACjE,IAAI,mBAAmB;AACvB,IAAI,gBAAgB;AACpB,IAAI,gBAAgB;AACpB,IAAI,cAAc,EAAE,MAAM,CAAC,WAAW;AACtC,IAAI;AACJ,GAAG,CAAC;;AAEJ,EAAE,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,aAAa,EAAE,UAAU,CAAC;AAC7E,EAAE,MAAM,mBAAmB,GAAG,+BAA+B,CAAC,MAAM,EAAE,kBAAkB,CAAC;AACzF,EAAE,MAAM,wBAAwB,GAAG,2BAA2B,CAAC,mBAAmB,EAAE,kBAAkB,EAAE,aAAa,CAAC;AACtH,EAAE,MAAM,KAAK,GAAG,QAAQ,CAAC,gBAAgB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,wBAAwB,CAAC,CAAC,MAAM,CAAC;;AAEvI,EAAE,QAAQ;AACV,IAAI,GAAG,UAAU;AACjB,IAAI,KAAK,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC;AACzC,IAAI,MAAM;AACV,IAAI,YAAY,EAAE;AAClB,GAAG;AACH;;;;"}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import * as R from 'ramda';
|
|
2
|
-
|
|
3
|
-
const registerParsedIndexes = ({ isSameSerie, ...parsed }, register) => {
|
|
4
|
-
const merged = R.mergeWith((a, b) => R.append(a || [], b), parsed, register);
|
|
5
|
-
return ({ ...merged, isSameSerie });
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
const parseParentsIndexesWithPrevious = (parentsIndexes, previousParentsIndexes) => {
|
|
9
|
-
const previousParentsSet = new Set(previousParentsIndexes);
|
|
10
|
-
const lastParentIndexInPrevious = R.findLastIndex(i => previousParentsSet.has(i), parentsIndexes);
|
|
11
|
-
const [rawPresentParentsIndexes, missingParentsIndexes] = lastParentIndexInPrevious !== -1
|
|
12
|
-
? R.splitAt(lastParentIndexInPrevious + 1, parentsIndexes)
|
|
13
|
-
: [[], parentsIndexes];
|
|
14
|
-
const presentParentsIndexes = R.filter(i => previousParentsSet.has(i), rawPresentParentsIndexes);
|
|
15
|
-
return ({ presentParentsIndexes, missingParentsIndexes });
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
const parseSerieIndexesHierarchies = (serieIndexes, previousSerie, dimensions, isSameSerie, replicate) => {
|
|
19
|
-
return R.addIndex(R.reduce)((acc, _valueIndex, dimensionIndex) => {
|
|
20
|
-
if (R.is(Array, _valueIndex)) {
|
|
21
|
-
const previous = R.isEmpty(previousSerie) ? {} : R.map(R.nth(dimensionIndex), previousSerie);
|
|
22
|
-
const parsed = parseSerieIndexesHierarchies(
|
|
23
|
-
_valueIndex,
|
|
24
|
-
previous,
|
|
25
|
-
R.pathOr([], [dimensionIndex, 'dimensions'], dimensions),
|
|
26
|
-
acc.isSameSerie,
|
|
27
|
-
replicate
|
|
28
|
-
);
|
|
29
|
-
return registerParsedIndexes(parsed, acc);
|
|
30
|
-
}
|
|
31
|
-
const valueIndex = Math.abs(_valueIndex);
|
|
32
|
-
const parents = R.pathOr([], [dimensionIndex, 'values', valueIndex, 'parents'], dimensions);
|
|
33
|
-
const previousIndex = R.pipe(R.path(['indexes', dimensionIndex]), i => R.isNil(i) ? -1 : Math.abs(i))(previousSerie);
|
|
34
|
-
const previousParentsIndexes = acc.isSameSerie
|
|
35
|
-
? R.pipe(R.pathOr([], ['parentsIndexes', dimensionIndex]), R.append(previousIndex))(previousSerie) : [];
|
|
36
|
-
const previousMissingIndexes = acc.isSameSerie
|
|
37
|
-
? R.pathOr([], ['missingIndexes', dimensionIndex], previousSerie) : [];
|
|
38
|
-
/*
|
|
39
|
-
if replicate = true (sections), missing parents insdexes are replicated on each brother nodes not just the first (as empty lines)
|
|
40
|
-
thats why passing previous missing as previous parents in case replicate = false
|
|
41
|
-
*/
|
|
42
|
-
const { presentParentsIndexes, missingParentsIndexes } = parseParentsIndexesWithPrevious(
|
|
43
|
-
parents,
|
|
44
|
-
replicate ? previousParentsIndexes : R.concat(previousParentsIndexes, previousMissingIndexes),
|
|
45
|
-
);
|
|
46
|
-
return registerParsedIndexes({
|
|
47
|
-
parentsIndexes: presentParentsIndexes,
|
|
48
|
-
missingIndexes: missingParentsIndexes,
|
|
49
|
-
isSameSerie: acc.isSameSerie && valueIndex === previousIndex
|
|
50
|
-
}, acc);
|
|
51
|
-
}, { parentsIndexes: [], missingIndexes: [], isSameSerie }, serieIndexes);
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
const parseSeriesIndexesHierarchies = (seriesIndexes, dimensions, replicateMissing = false) => {
|
|
55
|
-
return R.reduce((acc, { indexes, ...rest }) => {
|
|
56
|
-
const previousSerie = R.last(acc) || {};
|
|
57
|
-
const { isSameSerie, ...parsed } = parseSerieIndexesHierarchies(indexes, previousSerie, dimensions, true, replicateMissing);
|
|
58
|
-
return R.append({ indexes, ...parsed, ...rest }, acc);
|
|
59
|
-
}, [], seriesIndexes);
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
const parseLayoutIndexesHierarchies = (layoutIndexes, layout) => {
|
|
63
|
-
const header = parseSeriesIndexesHierarchies(layoutIndexes.header, layout.header);
|
|
64
|
-
const sections = R.pipe(
|
|
65
|
-
R.transpose,
|
|
66
|
-
([_sections, _sectionsRows]) => {
|
|
67
|
-
if (R.isNil(_sections)) {
|
|
68
|
-
return [];
|
|
69
|
-
}
|
|
70
|
-
// replicate = true on sections
|
|
71
|
-
const sections = parseSeriesIndexesHierarchies(_sections, layout.sections, true);
|
|
72
|
-
const sectionsRows = R.map(rows => parseSeriesIndexesHierarchies(rows, layout.rows), _sectionsRows);
|
|
73
|
-
return R.transpose([sections, sectionsRows]);
|
|
74
|
-
}
|
|
75
|
-
)(layoutIndexes.sections);
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
return ({ header, sections });
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
export { parseLayoutIndexesHierarchies, parseSeriesIndexesHierarchies };
|
|
82
|
-
//# sourceMappingURL=parseSeriesIndexesHierarchies.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parseSeriesIndexesHierarchies.js","sources":["../../../../src/rules2/src/table/parseSeriesIndexesHierarchies.js"],"sourcesContent":["import * as R from 'ramda';\n\nconst registerParsedIndexes = ({ isSameSerie, ...parsed }, register) => {\n const merged = R.mergeWith((a, b) => R.append(a || [], b), parsed, register);\n return ({ ...merged, isSameSerie });\n};\n\nconst parseParentsIndexesWithPrevious = (parentsIndexes, previousParentsIndexes) => {\n const previousParentsSet = new Set(previousParentsIndexes);\n const lastParentIndexInPrevious = R.findLastIndex(i => previousParentsSet.has(i), parentsIndexes);\n const [rawPresentParentsIndexes, missingParentsIndexes] = lastParentIndexInPrevious !== -1\n ? R.splitAt(lastParentIndexInPrevious + 1, parentsIndexes)\n : [[], parentsIndexes];\n const presentParentsIndexes = R.filter(i => previousParentsSet.has(i), rawPresentParentsIndexes);\n return ({ presentParentsIndexes, missingParentsIndexes });\n};\n\nconst parseSerieIndexesHierarchies = (serieIndexes, previousSerie, dimensions, isSameSerie, replicate) => {\n\treturn R.addIndex(R.reduce)((acc, _valueIndex, dimensionIndex) => {\n\t\tif (R.is(Array, _valueIndex)) {\n const previous = R.isEmpty(previousSerie) ? {} : R.map(R.nth(dimensionIndex), previousSerie);\n\t\t\tconst parsed = parseSerieIndexesHierarchies(\n _valueIndex,\n previous,\n R.pathOr([], [dimensionIndex, 'dimensions'], dimensions),\n acc.isSameSerie,\n replicate\n );\n return registerParsedIndexes(parsed, acc);\n\t\t}\n const valueIndex = Math.abs(_valueIndex);\n const parents = R.pathOr([], [dimensionIndex, 'values', valueIndex, 'parents'], dimensions);\n const previousIndex = R.pipe(R.path(['indexes', dimensionIndex]), i => R.isNil(i) ? -1 : Math.abs(i))(previousSerie)\n const previousParentsIndexes = acc.isSameSerie\n ? R.pipe(R.pathOr([], ['parentsIndexes', dimensionIndex]), R.append(previousIndex))(previousSerie) : [];\n const previousMissingIndexes = acc.isSameSerie\n ? R.pathOr([], ['missingIndexes', dimensionIndex], previousSerie) : [];\n /*\n if replicate = true (sections), missing parents insdexes are replicated on each brother nodes not just the first (as empty lines)\n thats why passing previous missing as previous parents in case replicate = false\n */\n const { presentParentsIndexes, missingParentsIndexes } = parseParentsIndexesWithPrevious(\n parents,\n replicate ? previousParentsIndexes : R.concat(previousParentsIndexes, previousMissingIndexes),\n );\n return registerParsedIndexes({\n parentsIndexes: presentParentsIndexes,\n missingIndexes: missingParentsIndexes,\n isSameSerie: acc.isSameSerie && valueIndex === previousIndex\n }, acc);\n }, { parentsIndexes: [], missingIndexes: [], isSameSerie }, serieIndexes);\n};\n\nexport const parseSeriesIndexesHierarchies = (seriesIndexes, dimensions, replicateMissing = false) => {\n return R.reduce((acc, { indexes, ...rest }) => {\n const previousSerie = R.last(acc) || {};\n const { isSameSerie, ...parsed } = parseSerieIndexesHierarchies(indexes, previousSerie, dimensions, true, replicateMissing);\n return R.append({ indexes, ...parsed, ...rest }, acc);\n }, [], seriesIndexes);\n};\n\nexport const parseLayoutIndexesHierarchies = (layoutIndexes, layout) => {\n const header = parseSeriesIndexesHierarchies(layoutIndexes.header, layout.header);\n const sections = R.pipe(\n R.transpose,\n ([_sections, _sectionsRows]) => {\n if (R.isNil(_sections)) {\n return [];\n }\n // replicate = true on sections\n const sections = parseSeriesIndexesHierarchies(_sections, layout.sections, true);\n const sectionsRows = R.map(rows => parseSeriesIndexesHierarchies(rows, layout.rows), _sectionsRows);\n return R.transpose([sections, sectionsRows]);\n }\n )(layoutIndexes.sections);\n\n\n return ({ header, sections });\n};\n"],"names":[],"mappings":";;AAEA,MAAM,qBAAqB,GAAG,CAAC,EAAE,WAAW,EAAE,GAAG,MAAM,EAAE,EAAE,QAAQ,KAAK;AACxE,EAAE,MAAM,MAAM,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CA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AACpC,MAAM,IAAI,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE;AAC9B,QAAQ,OAAO,EAAE;AACjB,MAAM;AACN;AACA,MAAM,MAAM,QAAQ,GAAG,6BAA6B,CAAC,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC;AACtF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,GAAG,CAAC,IAAI,IAAI,6BAA6B,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,aAAa,CAAC;AACzG,MAAM,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;AAClD,IAAI;AACJ,GAAG,CAAC,aAAa,CAAC,QAAQ,CAAC;;;AAG3B,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE;AAC9B;;;;"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as R from 'ramda';
|
|
2
|
-
|
|
3
|
-
const parseValueHierarchy = (value, previousValue, indexedValues) => {
|
|
4
|
-
const parentsIds = R.propOr([], 'parents', value);
|
|
5
|
-
if (R.isEmpty(parentsIds)) {
|
|
6
|
-
return value;
|
|
7
|
-
}
|
|
8
|
-
const _previousParentsIds = R.propOr([], 'parentsIds', previousValue);
|
|
9
|
-
const previousParentsIds = R.isNil(previousValue) ? [] : R.append(R.prop('id', previousValue), _previousParentsIds);
|
|
10
|
-
const [presentIds, _missingIds] = R.addIndex(R.splitWhen)((val, ind) => R.nth(ind, previousParentsIds) !== val, parentsIds);
|
|
11
|
-
const __previousParentsIds = R.pipe(R.propOr([], 'parents'), R.pluck('id'))(previousValue);
|
|
12
|
-
const missingIds = R.pipe(
|
|
13
|
-
R.takeLastWhile(id => !R.includes(id, __previousParentsIds) && id !== R.prop('id', previousValue)),
|
|
14
|
-
ids => R.concat(ids, _missingIds)
|
|
15
|
-
)(presentIds);
|
|
16
|
-
const _previousParents = R.propOr([], 'parents', previousValue);
|
|
17
|
-
const previousParents = R.isNil(previousValue) ? [] : R.append(R.pick(['id', 'name'], previousValue), _previousParents);
|
|
18
|
-
const parents = R.takeWhile(p => R.includes(p.id, presentIds), previousParents);
|
|
19
|
-
const missingParents = R.props(missingIds, indexedValues);
|
|
20
|
-
return ({
|
|
21
|
-
...value,
|
|
22
|
-
parents,
|
|
23
|
-
parentsIds,
|
|
24
|
-
missingParents
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export { parseValueHierarchy };
|
|
29
|
-
//# sourceMappingURL=parseValueHierarchy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parseValueHierarchy.js","sources":["../../../../src/rules2/src/table/parseValueHierarchy.js"],"sourcesContent":["import * as R from 'ramda';\r\n\r\nexport const parseValueHierarchy = (value, previousValue, indexedValues) => {\r\n const parentsIds = R.propOr([], 'parents', value);\r\n if (R.isEmpty(parentsIds)) {\r\n return value;\r\n }\r\n const _previousParentsIds = R.propOr([], 'parentsIds', previousValue);\r\n const previousParentsIds = R.isNil(previousValue) ? [] : R.append(R.prop('id', previousValue), _previousParentsIds);\r\n const [presentIds, _missingIds] = R.addIndex(R.splitWhen)((val, ind) => R.nth(ind, previousParentsIds) !== val, parentsIds);\r\n const __previousParentsIds = R.pipe(R.propOr([], 'parents'), R.pluck('id'))(previousValue);\r\n const missingIds = R.pipe(\r\n R.takeLastWhile(id => !R.includes(id, __previousParentsIds) && id !== R.prop('id', previousValue)),\r\n ids => R.concat(ids, _missingIds)\r\n )(presentIds);\r\n const _previousParents = R.propOr([], 'parents', previousValue);\r\n const previousParents = R.isNil(previousValue) ? [] : R.append(R.pick(['id', 'name'], previousValue), _previousParents);\r\n const parents = R.takeWhile(p => R.includes(p.id, presentIds), previousParents);\r\n const missingParents = R.props(missingIds, indexedValues);\r\n return ({\r\n ...value,\r\n parents,\r\n parentsIds,\r\n missingParents\r\n });\r\n};\r\n"],"names":[],"mappings":";;AAEY,MAAC,mBAAmB,GA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