@sis-cc/dotstatsuite-components 22.0.0 → 22.0.2

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.
Files changed (686) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +35 -0
  2. package/dist/_virtual/_commonjsHelpers.js.map +1 -0
  3. package/dist/_virtual/_rollupPluginBabelHelpers.js +12 -0
  4. package/dist/_virtual/_rollupPluginBabelHelpers.js.map +1 -0
  5. package/dist/_virtual/colorManipulator.js +6 -0
  6. package/dist/_virtual/colorManipulator.js.map +1 -0
  7. package/dist/_virtual/colorManipulator2.js +4 -0
  8. package/dist/_virtual/colorManipulator2.js.map +1 -0
  9. package/dist/_virtual/index.js +8 -0
  10. package/dist/_virtual/index.js.map +1 -0
  11. package/dist/_virtual/index10.js +8 -0
  12. package/dist/_virtual/index10.js.map +1 -0
  13. package/dist/_virtual/index11.js +8 -0
  14. package/dist/_virtual/index11.js.map +1 -0
  15. package/dist/_virtual/index12.js +8 -0
  16. package/dist/_virtual/index12.js.map +1 -0
  17. package/dist/_virtual/index13.js +8 -0
  18. package/dist/_virtual/index13.js.map +1 -0
  19. package/dist/_virtual/index14.js +8 -0
  20. package/dist/_virtual/index14.js.map +1 -0
  21. package/dist/_virtual/index15.js +8 -0
  22. package/dist/_virtual/index15.js.map +1 -0
  23. package/dist/_virtual/index16.js +8 -0
  24. package/dist/_virtual/index16.js.map +1 -0
  25. package/dist/_virtual/index17.js +7 -0
  26. package/dist/_virtual/index17.js.map +1 -0
  27. package/dist/_virtual/index18.js +7 -0
  28. package/dist/_virtual/index18.js.map +1 -0
  29. package/dist/_virtual/index19.js +8 -0
  30. package/dist/_virtual/index19.js.map +1 -0
  31. package/dist/_virtual/index2.js +8 -0
  32. package/dist/_virtual/index2.js.map +1 -0
  33. package/dist/_virtual/index20.js +4 -0
  34. package/dist/_virtual/index20.js.map +1 -0
  35. package/dist/_virtual/index21.js +6 -0
  36. package/dist/_virtual/index21.js.map +1 -0
  37. package/dist/_virtual/index22.js +4 -0
  38. package/dist/_virtual/index22.js.map +1 -0
  39. package/dist/_virtual/index23.js +4 -0
  40. package/dist/_virtual/index23.js.map +1 -0
  41. package/dist/_virtual/index3.js +8 -0
  42. package/dist/_virtual/index3.js.map +1 -0
  43. package/dist/_virtual/index4.js +8 -0
  44. package/dist/_virtual/index4.js.map +1 -0
  45. package/dist/_virtual/index5.js +8 -0
  46. package/dist/_virtual/index5.js.map +1 -0
  47. package/dist/_virtual/index6.js +8 -0
  48. package/dist/_virtual/index6.js.map +1 -0
  49. package/dist/_virtual/index7.js +8 -0
  50. package/dist/_virtual/index7.js.map +1 -0
  51. package/dist/_virtual/index8.js +8 -0
  52. package/dist/_virtual/index8.js.map +1 -0
  53. package/dist/_virtual/index9.js +8 -0
  54. package/dist/_virtual/index9.js.map +1 -0
  55. package/dist/_virtual/interopRequireDefault.js +4 -0
  56. package/dist/_virtual/interopRequireDefault.js.map +1 -0
  57. package/dist/_virtual/jsx-runtime.js +4 -0
  58. package/dist/_virtual/jsx-runtime.js.map +1 -0
  59. package/dist/_virtual/jsx-runtime2.js +6 -0
  60. package/dist/_virtual/jsx-runtime2.js.map +1 -0
  61. package/dist/_virtual/react-is.development.js +4 -0
  62. package/dist/_virtual/react-is.development.js.map +1 -0
  63. package/dist/_virtual/react-is.development2.js +4 -0
  64. package/dist/_virtual/react-is.development2.js.map +1 -0
  65. package/dist/_virtual/react-is.production.js +4 -0
  66. package/dist/_virtual/react-is.production.js.map +1 -0
  67. package/dist/_virtual/react-is.production.min.js +4 -0
  68. package/dist/_virtual/react-is.production.min.js.map +1 -0
  69. package/dist/_virtual/react-jsx-runtime.development.js +4 -0
  70. package/dist/_virtual/react-jsx-runtime.development.js.map +1 -0
  71. package/dist/_virtual/react-jsx-runtime.production.min.js +4 -0
  72. package/dist/_virtual/react-jsx-runtime.production.min.js.map +1 -0
  73. package/dist/bridge-d3-react/src/index.js +18 -0
  74. package/dist/bridge-d3-react/src/index.js.map +1 -0
  75. package/dist/bridge-d3-react/src/react-chart-factory.js +44 -0
  76. package/dist/bridge-d3-react/src/react-chart-factory.js.map +1 -0
  77. package/dist/index.js +6 -0
  78. package/dist/index.js.map +1 -0
  79. package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +8 -0
  80. package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js.map +1 -0
  81. package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +8 -0
  82. package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js.map +1 -0
  83. package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +7 -0
  84. package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js.map +1 -0
  85. package/dist/node_modules/@babel/runtime/helpers/esm/createClass.js +16 -0
  86. package/dist/node_modules/@babel/runtime/helpers/esm/createClass.js.map +1 -0
  87. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +12 -0
  88. package/dist/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -0
  89. package/dist/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +8 -0
  90. package/dist/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +1 -0
  91. package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +6 -0
  92. package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js.map +1 -0
  93. package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +6 -0
  94. package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js.map +1 -0
  95. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +12 -0
  96. package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -0
  97. package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +8 -0
  98. package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -0
  99. package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +11 -0
  100. package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js.map +1 -0
  101. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +15 -0
  102. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js.map +1 -0
  103. package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +10 -0
  104. package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js.map +1 -0
  105. package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +12 -0
  106. package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js.map +1 -0
  107. package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +12 -0
  108. package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js.map +1 -0
  109. package/dist/node_modules/@babel/runtime/helpers/interopRequireDefault.js +20 -0
  110. package/dist/node_modules/@babel/runtime/helpers/interopRequireDefault.js.map +1 -0
  111. package/dist/node_modules/@mui/material/colors/blue.js +9 -0
  112. package/dist/node_modules/@mui/material/colors/blue.js.map +1 -0
  113. package/dist/node_modules/@mui/material/colors/common.js +7 -0
  114. package/dist/node_modules/@mui/material/colors/common.js.map +1 -0
  115. package/dist/node_modules/@mui/material/colors/green.js +10 -0
  116. package/dist/node_modules/@mui/material/colors/green.js.map +1 -0
  117. package/dist/node_modules/@mui/material/colors/grey.js +19 -0
  118. package/dist/node_modules/@mui/material/colors/grey.js.map +1 -0
  119. package/dist/node_modules/@mui/material/colors/lightBlue.js +9 -0
  120. package/dist/node_modules/@mui/material/colors/lightBlue.js.map +1 -0
  121. package/dist/node_modules/@mui/material/colors/orange.js +9 -0
  122. package/dist/node_modules/@mui/material/colors/orange.js.map +1 -0
  123. package/dist/node_modules/@mui/material/colors/purple.js +10 -0
  124. package/dist/node_modules/@mui/material/colors/purple.js.map +1 -0
  125. package/dist/node_modules/@mui/material/colors/red.js +9 -0
  126. package/dist/node_modules/@mui/material/colors/red.js.map +1 -0
  127. package/dist/node_modules/@mui/material/styles/createMixins.js +20 -0
  128. package/dist/node_modules/@mui/material/styles/createMixins.js.map +1 -0
  129. package/dist/node_modules/@mui/material/styles/createPalette.js +309 -0
  130. package/dist/node_modules/@mui/material/styles/createPalette.js.map +1 -0
  131. package/dist/node_modules/@mui/material/styles/createTheme.js +86 -0
  132. package/dist/node_modules/@mui/material/styles/createTheme.js.map +1 -0
  133. package/dist/node_modules/@mui/material/styles/createTransitions.js +92 -0
  134. package/dist/node_modules/@mui/material/styles/createTransitions.js.map +1 -0
  135. package/dist/node_modules/@mui/material/styles/createTypography.js +94 -0
  136. package/dist/node_modules/@mui/material/styles/createTypography.js.map +1 -0
  137. package/dist/node_modules/@mui/material/styles/defaultTheme.js +6 -0
  138. package/dist/node_modules/@mui/material/styles/defaultTheme.js.map +1 -0
  139. package/dist/node_modules/@mui/material/styles/identifier.js +4 -0
  140. package/dist/node_modules/@mui/material/styles/identifier.js.map +1 -0
  141. package/dist/node_modules/@mui/material/styles/shadows.js +12 -0
  142. package/dist/node_modules/@mui/material/styles/shadows.js.map +1 -0
  143. package/dist/node_modules/@mui/material/styles/useTheme.js +16 -0
  144. package/dist/node_modules/@mui/material/styles/useTheme.js.map +1 -0
  145. package/dist/node_modules/@mui/material/styles/zIndex.js +15 -0
  146. package/dist/node_modules/@mui/material/styles/zIndex.js.map +1 -0
  147. package/dist/node_modules/@mui/private-theming/ThemeProvider/nested.js +5 -0
  148. package/dist/node_modules/@mui/private-theming/ThemeProvider/nested.js.map +1 -0
  149. package/dist/node_modules/@mui/private-theming/useTheme/ThemeContext.js +9 -0
  150. package/dist/node_modules/@mui/private-theming/useTheme/ThemeContext.js.map +1 -0
  151. package/dist/node_modules/@mui/private-theming/useTheme/useTheme.js +14 -0
  152. package/dist/node_modules/@mui/private-theming/useTheme/useTheme.js.map +1 -0
  153. package/dist/node_modules/@mui/styles/StylesProvider/StylesProvider.js +151 -0
  154. package/dist/node_modules/@mui/styles/StylesProvider/StylesProvider.js.map +1 -0
  155. package/dist/node_modules/@mui/styles/createGenerateClassName/createGenerateClassName.js +66 -0
  156. package/dist/node_modules/@mui/styles/createGenerateClassName/createGenerateClassName.js.map +1 -0
  157. package/dist/node_modules/@mui/styles/getStylesCreator/getStylesCreator.js +52 -0
  158. package/dist/node_modules/@mui/styles/getStylesCreator/getStylesCreator.js.map +1 -0
  159. package/dist/node_modules/@mui/styles/getStylesCreator/noopTheme.js +5 -0
  160. package/dist/node_modules/@mui/styles/getStylesCreator/noopTheme.js.map +1 -0
  161. package/dist/node_modules/@mui/styles/jssPreset/jssPreset.js +21 -0
  162. package/dist/node_modules/@mui/styles/jssPreset/jssPreset.js.map +1 -0
  163. package/dist/node_modules/@mui/styles/makeStyles/indexCounter.js +22 -0
  164. package/dist/node_modules/@mui/styles/makeStyles/indexCounter.js.map +1 -0
  165. package/dist/node_modules/@mui/styles/makeStyles/makeStyles.js +230 -0
  166. package/dist/node_modules/@mui/styles/makeStyles/makeStyles.js.map +1 -0
  167. package/dist/node_modules/@mui/styles/makeStyles/multiKeyStore.js +23 -0
  168. package/dist/node_modules/@mui/styles/makeStyles/multiKeyStore.js.map +1 -0
  169. package/dist/node_modules/@mui/styles/mergeClasses/mergeClasses.js +37 -0
  170. package/dist/node_modules/@mui/styles/mergeClasses/mergeClasses.js.map +1 -0
  171. package/dist/node_modules/@mui/styles/propsToClassKey/propsToClassKey.js +31 -0
  172. package/dist/node_modules/@mui/styles/propsToClassKey/propsToClassKey.js.map +1 -0
  173. package/dist/node_modules/@mui/styles/useTheme/index.js +10 -0
  174. package/dist/node_modules/@mui/styles/useTheme/index.js.map +1 -0
  175. package/dist/node_modules/@mui/system/colorManipulator.js +386 -0
  176. package/dist/node_modules/@mui/system/colorManipulator.js.map +1 -0
  177. package/dist/node_modules/@mui/system/esm/borders.js +52 -0
  178. package/dist/node_modules/@mui/system/esm/borders.js.map +1 -0
  179. package/dist/node_modules/@mui/system/esm/breakpoints.js +67 -0
  180. package/dist/node_modules/@mui/system/esm/breakpoints.js.map +1 -0
  181. package/dist/node_modules/@mui/system/esm/compose.js +27 -0
  182. package/dist/node_modules/@mui/system/esm/compose.js.map +1 -0
  183. package/dist/node_modules/@mui/system/esm/createTheme/applyStyles.js +77 -0
  184. package/dist/node_modules/@mui/system/esm/createTheme/applyStyles.js.map +1 -0
  185. package/dist/node_modules/@mui/system/esm/createTheme/createBreakpoints.js +83 -0
  186. package/dist/node_modules/@mui/system/esm/createTheme/createBreakpoints.js.map +1 -0
  187. package/dist/node_modules/@mui/system/esm/createTheme/createSpacing.js +35 -0
  188. package/dist/node_modules/@mui/system/esm/createTheme/createSpacing.js.map +1 -0
  189. package/dist/node_modules/@mui/system/esm/createTheme/createTheme.js +46 -0
  190. package/dist/node_modules/@mui/system/esm/createTheme/createTheme.js.map +1 -0
  191. package/dist/node_modules/@mui/system/esm/createTheme/shape.js +6 -0
  192. package/dist/node_modules/@mui/system/esm/createTheme/shape.js.map +1 -0
  193. package/dist/node_modules/@mui/system/esm/cssGrid.js +87 -0
  194. package/dist/node_modules/@mui/system/esm/cssGrid.js.map +1 -0
  195. package/dist/node_modules/@mui/system/esm/memoize.js +12 -0
  196. package/dist/node_modules/@mui/system/esm/memoize.js.map +1 -0
  197. package/dist/node_modules/@mui/system/esm/merge.js +13 -0
  198. package/dist/node_modules/@mui/system/esm/merge.js.map +1 -0
  199. package/dist/node_modules/@mui/system/esm/palette.js +29 -0
  200. package/dist/node_modules/@mui/system/esm/palette.js.map +1 -0
  201. package/dist/node_modules/@mui/system/esm/responsivePropType.js +6 -0
  202. package/dist/node_modules/@mui/system/esm/responsivePropType.js.map +1 -0
  203. package/dist/node_modules/@mui/system/esm/sizing.js +68 -0
  204. package/dist/node_modules/@mui/system/esm/sizing.js.map +1 -0
  205. package/dist/node_modules/@mui/system/esm/spacing.js +145 -0
  206. package/dist/node_modules/@mui/system/esm/spacing.js.map +1 -0
  207. package/dist/node_modules/@mui/system/esm/style.js +78 -0
  208. package/dist/node_modules/@mui/system/esm/style.js.map +1 -0
  209. package/dist/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +294 -0
  210. package/dist/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js.map +1 -0
  211. package/dist/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +137 -0
  212. package/dist/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js.map +1 -0
  213. package/dist/node_modules/@mui/system/esm/useTheme.js +10 -0
  214. package/dist/node_modules/@mui/system/esm/useTheme.js.map +1 -0
  215. package/dist/node_modules/@mui/system/esm/useThemeWithoutDefault.js +13 -0
  216. package/dist/node_modules/@mui/system/esm/useThemeWithoutDefault.js.map +1 -0
  217. package/dist/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js +19 -0
  218. package/dist/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js.map +1 -0
  219. package/dist/node_modules/@mui/utils/esm/capitalize/capitalize.js +15 -0
  220. package/dist/node_modules/@mui/utils/esm/capitalize/capitalize.js.map +1 -0
  221. package/dist/node_modules/@mui/utils/esm/clamp/clamp.js +6 -0
  222. package/dist/node_modules/@mui/utils/esm/clamp/clamp.js.map +1 -0
  223. package/dist/node_modules/@mui/utils/esm/clamp/index.js +2 -0
  224. package/dist/node_modules/@mui/utils/esm/clamp/index.js.map +1 -0
  225. package/dist/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +46 -0
  226. package/dist/node_modules/@mui/utils/esm/deepmerge/deepmerge.js.map +1 -0
  227. package/dist/node_modules/@mui/utils/esm/exactProp/exactProp.js +24 -0
  228. package/dist/node_modules/@mui/utils/esm/exactProp/exactProp.js.map +1 -0
  229. package/dist/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js +22 -0
  230. package/dist/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js.map +1 -0
  231. package/dist/node_modules/@mui/utils/esm/formatMuiErrorMessage/index.js +2 -0
  232. package/dist/node_modules/@mui/utils/esm/formatMuiErrorMessage/index.js.map +1 -0
  233. package/dist/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js +23 -0
  234. package/dist/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js.map +1 -0
  235. package/dist/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js +50 -0
  236. package/dist/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js.map +1 -0
  237. package/dist/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.development.js +143 -0
  238. package/dist/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  239. package/dist/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.production.js +140 -0
  240. package/dist/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.production.js.map +1 -0
  241. package/dist/node_modules/@mui/utils/node_modules/react-is/index.js +20 -0
  242. package/dist/node_modules/@mui/utils/node_modules/react-is/index.js.map +1 -0
  243. package/dist/node_modules/css-vendor/dist/css-vendor.esm.js +574 -0
  244. package/dist/node_modules/css-vendor/dist/css-vendor.esm.js.map +1 -0
  245. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds/index.js +32 -0
  246. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds/index.js.map +1 -0
  247. package/dist/node_modules/date-fns/get_iso_week/index.js +49 -0
  248. package/dist/node_modules/date-fns/get_iso_week/index.js.map +1 -0
  249. package/dist/node_modules/date-fns/get_iso_year/index.js +59 -0
  250. package/dist/node_modules/date-fns/get_iso_year/index.js.map +1 -0
  251. package/dist/node_modules/date-fns/is_date/index.js +32 -0
  252. package/dist/node_modules/date-fns/is_date/index.js.map +1 -0
  253. package/dist/node_modules/date-fns/is_friday/index.js +35 -0
  254. package/dist/node_modules/date-fns/is_friday/index.js.map +1 -0
  255. package/dist/node_modules/date-fns/is_monday/index.js +35 -0
  256. package/dist/node_modules/date-fns/is_monday/index.js.map +1 -0
  257. package/dist/node_modules/date-fns/is_saturday/index.js +35 -0
  258. package/dist/node_modules/date-fns/is_saturday/index.js.map +1 -0
  259. package/dist/node_modules/date-fns/is_sunday/index.js +35 -0
  260. package/dist/node_modules/date-fns/is_sunday/index.js.map +1 -0
  261. package/dist/node_modules/date-fns/is_thursday/index.js +35 -0
  262. package/dist/node_modules/date-fns/is_thursday/index.js.map +1 -0
  263. package/dist/node_modules/date-fns/is_tuesday/index.js +35 -0
  264. package/dist/node_modules/date-fns/is_tuesday/index.js.map +1 -0
  265. package/dist/node_modules/date-fns/is_wednesday/index.js +35 -0
  266. package/dist/node_modules/date-fns/is_wednesday/index.js.map +1 -0
  267. package/dist/node_modules/date-fns/locale/_lib/build_formatting_tokens_reg_exp/index.js +39 -0
  268. package/dist/node_modules/date-fns/locale/_lib/build_formatting_tokens_reg_exp/index.js.map +1 -0
  269. package/dist/node_modules/date-fns/locale/ar/build_distance_in_words_locale/index.js +110 -0
  270. package/dist/node_modules/date-fns/locale/ar/build_distance_in_words_locale/index.js.map +1 -0
  271. package/dist/node_modules/date-fns/locale/ar/build_format_locale/index.js +86 -0
  272. package/dist/node_modules/date-fns/locale/ar/build_format_locale/index.js.map +1 -0
  273. package/dist/node_modules/date-fns/locale/ar/index.js +26 -0
  274. package/dist/node_modules/date-fns/locale/ar/index.js.map +1 -0
  275. package/dist/node_modules/date-fns/locale/de/build_distance_in_words_locale/index.js +196 -0
  276. package/dist/node_modules/date-fns/locale/de/build_distance_in_words_locale/index.js.map +1 -0
  277. package/dist/node_modules/date-fns/locale/de/build_format_locale/index.js +90 -0
  278. package/dist/node_modules/date-fns/locale/de/build_format_locale/index.js.map +1 -0
  279. package/dist/node_modules/date-fns/locale/de/index.js +27 -0
  280. package/dist/node_modules/date-fns/locale/de/index.js.map +1 -0
  281. package/dist/node_modules/date-fns/locale/en/build_distance_in_words_locale/index.js +110 -0
  282. package/dist/node_modules/date-fns/locale/en/build_distance_in_words_locale/index.js.map +1 -0
  283. package/dist/node_modules/date-fns/locale/en/build_format_locale/index.js +101 -0
  284. package/dist/node_modules/date-fns/locale/en/build_format_locale/index.js.map +1 -0
  285. package/dist/node_modules/date-fns/locale/en/index.js +25 -0
  286. package/dist/node_modules/date-fns/locale/en/index.js.map +1 -0
  287. package/dist/node_modules/date-fns/locale/es/build_distance_in_words_locale/index.js +110 -0
  288. package/dist/node_modules/date-fns/locale/es/build_distance_in_words_locale/index.js.map +1 -0
  289. package/dist/node_modules/date-fns/locale/es/build_format_locale/index.js +86 -0
  290. package/dist/node_modules/date-fns/locale/es/build_format_locale/index.js.map +1 -0
  291. package/dist/node_modules/date-fns/locale/es/index.js +28 -0
  292. package/dist/node_modules/date-fns/locale/es/index.js.map +1 -0
  293. package/dist/node_modules/date-fns/locale/fr/build_distance_in_words_locale/index.js +110 -0
  294. package/dist/node_modules/date-fns/locale/fr/build_distance_in_words_locale/index.js.map +1 -0
  295. package/dist/node_modules/date-fns/locale/fr/build_format_locale/index.js +135 -0
  296. package/dist/node_modules/date-fns/locale/fr/build_format_locale/index.js.map +1 -0
  297. package/dist/node_modules/date-fns/locale/fr/index.js +27 -0
  298. package/dist/node_modules/date-fns/locale/fr/index.js.map +1 -0
  299. package/dist/node_modules/date-fns/locale/it/build_distance_in_words_locale/index.js +110 -0
  300. package/dist/node_modules/date-fns/locale/it/build_distance_in_words_locale/index.js.map +1 -0
  301. package/dist/node_modules/date-fns/locale/it/build_format_locale/index.js +86 -0
  302. package/dist/node_modules/date-fns/locale/it/build_format_locale/index.js.map +1 -0
  303. package/dist/node_modules/date-fns/locale/it/index.js +26 -0
  304. package/dist/node_modules/date-fns/locale/it/index.js.map +1 -0
  305. package/dist/node_modules/date-fns/locale/nl/build_distance_in_words_locale/index.js +110 -0
  306. package/dist/node_modules/date-fns/locale/nl/build_distance_in_words_locale/index.js.map +1 -0
  307. package/dist/node_modules/date-fns/locale/nl/build_format_locale/index.js +86 -0
  308. package/dist/node_modules/date-fns/locale/nl/build_format_locale/index.js.map +1 -0
  309. package/dist/node_modules/date-fns/locale/nl/index.js +27 -0
  310. package/dist/node_modules/date-fns/locale/nl/index.js.map +1 -0
  311. package/dist/node_modules/date-fns/locale/th/build_distance_in_words_locale/index.js +114 -0
  312. package/dist/node_modules/date-fns/locale/th/build_distance_in_words_locale/index.js.map +1 -0
  313. package/dist/node_modules/date-fns/locale/th/build_format_locale/index.js +74 -0
  314. package/dist/node_modules/date-fns/locale/th/build_format_locale/index.js.map +1 -0
  315. package/dist/node_modules/date-fns/locale/th/index.js +26 -0
  316. package/dist/node_modules/date-fns/locale/th/index.js.map +1 -0
  317. package/dist/node_modules/date-fns/parse/index.js +346 -0
  318. package/dist/node_modules/date-fns/parse/index.js.map +1 -0
  319. package/dist/node_modules/date-fns/start_of_iso_week/index.js +38 -0
  320. package/dist/node_modules/date-fns/start_of_iso_week/index.js.map +1 -0
  321. package/dist/node_modules/date-fns/start_of_iso_year/index.js +46 -0
  322. package/dist/node_modules/date-fns/start_of_iso_year/index.js.map +1 -0
  323. package/dist/node_modules/date-fns/start_of_week/index.js +51 -0
  324. package/dist/node_modules/date-fns/start_of_week/index.js.map +1 -0
  325. package/dist/node_modules/hyphenate-style-name/index.js +20 -0
  326. package/dist/node_modules/hyphenate-style-name/index.js.map +1 -0
  327. package/dist/node_modules/is-in-browser/dist/module.js +6 -0
  328. package/dist/node_modules/is-in-browser/dist/module.js.map +1 -0
  329. package/dist/node_modules/jss/dist/jss.esm.js +2220 -0
  330. package/dist/node_modules/jss/dist/jss.esm.js.map +1 -0
  331. package/dist/node_modules/jss-plugin-camel-case/dist/jss-plugin-camel-case.esm.js +60 -0
  332. package/dist/node_modules/jss-plugin-camel-case/dist/jss-plugin-camel-case.esm.js.map +1 -0
  333. package/dist/node_modules/jss-plugin-default-unit/dist/jss-plugin-default-unit.esm.js +252 -0
  334. package/dist/node_modules/jss-plugin-default-unit/dist/jss-plugin-default-unit.esm.js.map +1 -0
  335. package/dist/node_modules/jss-plugin-global/dist/jss-plugin-global.esm.js +187 -0
  336. package/dist/node_modules/jss-plugin-global/dist/jss-plugin-global.esm.js.map +1 -0
  337. package/dist/node_modules/jss-plugin-nested/dist/jss-plugin-nested.esm.js +114 -0
  338. package/dist/node_modules/jss-plugin-nested/dist/jss-plugin-nested.esm.js.map +1 -0
  339. package/dist/node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.esm.js +29 -0
  340. package/dist/node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.esm.js.map +1 -0
  341. package/dist/node_modules/jss-plugin-rule-value-function/dist/jss-plugin-rule-value-function.esm.js +66 -0
  342. package/dist/node_modules/jss-plugin-rule-value-function/dist/jss-plugin-rule-value-function.esm.js.map +1 -0
  343. package/dist/node_modules/jss-plugin-vendor-prefixer/dist/jss-plugin-vendor-prefixer.esm.js +58 -0
  344. package/dist/node_modules/jss-plugin-vendor-prefixer/dist/jss-plugin-vendor-prefixer.esm.js.map +1 -0
  345. package/dist/node_modules/object-assign/index.js +100 -0
  346. package/dist/node_modules/object-assign/index.js.map +1 -0
  347. package/dist/node_modules/prop-types/checkPropTypes.js +116 -0
  348. package/dist/node_modules/prop-types/checkPropTypes.js.map +1 -0
  349. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +75 -0
  350. package/dist/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -0
  351. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +626 -0
  352. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -0
  353. package/dist/node_modules/prop-types/index.js +34 -0
  354. package/dist/node_modules/prop-types/index.js.map +1 -0
  355. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +22 -0
  356. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -0
  357. package/dist/node_modules/prop-types/lib/has.js +12 -0
  358. package/dist/node_modules/prop-types/lib/has.js.map +1 -0
  359. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +1326 -0
  360. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -0
  361. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +25 -0
  362. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +1 -0
  363. package/dist/node_modules/react/jsx-runtime.js +20 -0
  364. package/dist/node_modules/react/jsx-runtime.js.map +1 -0
  365. package/dist/node_modules/react-is/cjs/react-is.development.js +191 -0
  366. package/dist/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  367. package/dist/node_modules/react-is/cjs/react-is.production.min.js +27 -0
  368. package/dist/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
  369. package/dist/node_modules/react-is/index.js +20 -0
  370. package/dist/node_modules/react-is/index.js.map +1 -0
  371. package/dist/node_modules/tiny-warning/dist/tiny-warning.esm.js +18 -0
  372. package/dist/node_modules/tiny-warning/dist/tiny-warning.esm.js.map +1 -0
  373. package/dist/rules/src/chart/getAxisOptions.js +256 -0
  374. package/dist/rules/src/chart/getAxisOptions.js.map +1 -0
  375. package/dist/rules/src/chart/getBaseOptions.js +77 -0
  376. package/dist/rules/src/chart/getBaseOptions.js.map +1 -0
  377. package/dist/rules/src/chart/getChartOptions.js +120 -0
  378. package/dist/rules/src/chart/getChartOptions.js.map +1 -0
  379. package/dist/rules/src/chart/getGridOptions.js +46 -0
  380. package/dist/rules/src/chart/getGridOptions.js.map +1 -0
  381. package/dist/rules/src/chart/getTooltipOptions.js +223 -0
  382. package/dist/rules/src/chart/getTooltipOptions.js.map +1 -0
  383. package/dist/rules/src/constants.js +65 -0
  384. package/dist/rules/src/constants.js.map +1 -0
  385. package/dist/rules/src/date.js +121 -0
  386. package/dist/rules/src/date.js.map +1 -0
  387. package/dist/rules/src/dimension-utils.js +57 -0
  388. package/dist/rules/src/dimension-utils.js.map +1 -0
  389. package/dist/rules/src/factories/choro-series.js +68 -0
  390. package/dist/rules/src/factories/choro-series.js.map +1 -0
  391. package/dist/rules/src/factories/sample-focus.js +25 -0
  392. package/dist/rules/src/factories/sample-focus.js.map +1 -0
  393. package/dist/rules/src/factories/sample-series.js +53 -0
  394. package/dist/rules/src/factories/sample-series.js.map +1 -0
  395. package/dist/rules/src/factories/scatter-dimension.js +35 -0
  396. package/dist/rules/src/factories/scatter-dimension.js.map +1 -0
  397. package/dist/rules/src/factories/scatter-focus.js +42 -0
  398. package/dist/rules/src/factories/scatter-focus.js.map +1 -0
  399. package/dist/rules/src/factories/scatter-series.js +91 -0
  400. package/dist/rules/src/factories/scatter-series.js.map +1 -0
  401. package/dist/rules/src/factories/stacked-dimension.js +32 -0
  402. package/dist/rules/src/factories/stacked-dimension.js.map +1 -0
  403. package/dist/rules/src/factories/stacked-series.js +188 -0
  404. package/dist/rules/src/factories/stacked-series.js.map +1 -0
  405. package/dist/rules/src/factories/symbol-dimension.js +32 -0
  406. package/dist/rules/src/factories/symbol-dimension.js.map +1 -0
  407. package/dist/rules/src/factories/symbol-series.js +65 -0
  408. package/dist/rules/src/factories/symbol-series.js.map +1 -0
  409. package/dist/rules/src/factories/timeline-focus.js +21 -0
  410. package/dist/rules/src/factories/timeline-focus.js.map +1 -0
  411. package/dist/rules/src/factories/timeline-series.js +94 -0
  412. package/dist/rules/src/factories/timeline-series.js.map +1 -0
  413. package/dist/rules/src/get-values-enhanced.js +133 -0
  414. package/dist/rules/src/get-values-enhanced.js.map +1 -0
  415. package/dist/rules/src/header/getDefaultSubtitle.js +44 -0
  416. package/dist/rules/src/header/getDefaultSubtitle.js.map +1 -0
  417. package/dist/rules/src/header/getHeaderUnits.js +21 -0
  418. package/dist/rules/src/header/getHeaderUnits.js.map +1 -0
  419. package/dist/rules/src/header/getSubtitleFlags.js +47 -0
  420. package/dist/rules/src/header/getSubtitleFlags.js.map +1 -0
  421. package/dist/rules/src/header/getTitleFlags.js +12 -0
  422. package/dist/rules/src/header/getTitleFlags.js.map +1 -0
  423. package/dist/rules/src/index.js +378 -0
  424. package/dist/rules/src/index.js.map +1 -0
  425. package/dist/rules/src/layout.js +107 -0
  426. package/dist/rules/src/layout.js.map +1 -0
  427. package/dist/rules/src/observation-formater.js +86 -0
  428. package/dist/rules/src/observation-formater.js.map +1 -0
  429. package/dist/rules/src/preparators/formatValue.js +96 -0
  430. package/dist/rules/src/preparators/formatValue.js.map +1 -0
  431. package/dist/rules/src/preparators/getObservations.js +22 -0
  432. package/dist/rules/src/preparators/getObservations.js.map +1 -0
  433. package/dist/rules/src/preparators/getReportingYearStart.js +19 -0
  434. package/dist/rules/src/preparators/getReportingYearStart.js.map +1 -0
  435. package/dist/rules/src/properties/errors.js +22 -0
  436. package/dist/rules/src/properties/errors.js.map +1 -0
  437. package/dist/rules/src/properties/focus.js +72 -0
  438. package/dist/rules/src/properties/focus.js.map +1 -0
  439. package/dist/rules/src/properties/getAvailableChartTypes.js +31 -0
  440. package/dist/rules/src/properties/getAvailableChartTypes.js.map +1 -0
  441. package/dist/rules/src/properties/getHeaderProps.js +76 -0
  442. package/dist/rules/src/properties/getHeaderProps.js.map +1 -0
  443. package/dist/rules/src/properties/getInformationsStateFromNewProps.js +50 -0
  444. package/dist/rules/src/properties/getInformationsStateFromNewProps.js.map +1 -0
  445. package/dist/rules/src/properties/getObservationsType.js +28 -0
  446. package/dist/rules/src/properties/getObservationsType.js.map +1 -0
  447. package/dist/rules/src/properties/getStringifiedSubtitle.js +9 -0
  448. package/dist/rules/src/properties/getStringifiedSubtitle.js.map +1 -0
  449. package/dist/rules/src/properties/index.js +384 -0
  450. package/dist/rules/src/properties/index.js.map +1 -0
  451. package/dist/rules/src/properties/linear.js +123 -0
  452. package/dist/rules/src/properties/linear.js.map +1 -0
  453. package/dist/rules/src/properties/scatter.js +156 -0
  454. package/dist/rules/src/properties/scatter.js.map +1 -0
  455. package/dist/rules/src/properties/stacked.js +96 -0
  456. package/dist/rules/src/properties/stacked.js.map +1 -0
  457. package/dist/rules/src/properties/symbol.js +76 -0
  458. package/dist/rules/src/properties/symbol.js.map +1 -0
  459. package/dist/rules/src/properties/utils.js +86 -0
  460. package/dist/rules/src/properties/utils.js.map +1 -0
  461. package/dist/rules/src/sdmx-data/index.js +38 -0
  462. package/dist/rules/src/sdmx-data/index.js.map +1 -0
  463. package/dist/rules/src/table/factories/getCellValue.js +53 -0
  464. package/dist/rules/src/table/factories/getCellValue.js.map +1 -0
  465. package/dist/rules/src/v8-transformer.js +174 -0
  466. package/dist/rules/src/v8-transformer.js.map +1 -0
  467. package/dist/rules2/src/applyHierarchicalCodesToDim.js +126 -0
  468. package/dist/rules2/src/applyHierarchicalCodesToDim.js.map +1 -0
  469. package/dist/rules2/src/combinedValuesDisplay.js +77 -0
  470. package/dist/rules2/src/combinedValuesDisplay.js.map +1 -0
  471. package/dist/rules2/src/constants.js +9 -0
  472. package/dist/rules2/src/constants.js.map +1 -0
  473. package/dist/rules2/src/duplicateObservations.js +38 -0
  474. package/dist/rules2/src/duplicateObservations.js.map +1 -0
  475. package/dist/rules2/src/enhanceObservations.js +98 -0
  476. package/dist/rules2/src/enhanceObservations.js.map +1 -0
  477. package/dist/rules2/src/getAttributesSeries.js +39 -0
  478. package/dist/rules2/src/getAttributesSeries.js.map +1 -0
  479. package/dist/rules2/src/getCombinationDefinitions.js +50 -0
  480. package/dist/rules2/src/getCombinationDefinitions.js.map +1 -0
  481. package/dist/rules2/src/getDataflowAttributes.js +25 -0
  482. package/dist/rules2/src/getDataflowAttributes.js.map +1 -0
  483. package/dist/rules2/src/getDataflowTooltipAttributesIds.js +33 -0
  484. package/dist/rules2/src/getDataflowTooltipAttributesIds.js.map +1 -0
  485. package/dist/rules2/src/getDimensionValuesIndexes.js +16 -0
  486. package/dist/rules2/src/getDimensionValuesIndexes.js.map +1 -0
  487. package/dist/rules2/src/getHCodelistsRefsInData.js +35 -0
  488. package/dist/rules2/src/getHCodelistsRefsInData.js.map +1 -0
  489. package/dist/rules2/src/getHeaderCombinations.js +51 -0
  490. package/dist/rules2/src/getHeaderCombinations.js.map +1 -0
  491. package/dist/rules2/src/getHeaderCoordinates.js +10 -0
  492. package/dist/rules2/src/getHeaderCoordinates.js.map +1 -0
  493. package/dist/rules2/src/getHeaderSubtitle.js +37 -0
  494. package/dist/rules2/src/getHeaderSubtitle.js.map +1 -0
  495. package/dist/rules2/src/getHeaderTitle.js +18 -0
  496. package/dist/rules2/src/getHeaderTitle.js.map +1 -0
  497. package/dist/rules2/src/getMSDInformations.js +26 -0
  498. package/dist/rules2/src/getMSDInformations.js.map +1 -0
  499. package/dist/rules2/src/getManyValuesDimensions.js +37 -0
  500. package/dist/rules2/src/getManyValuesDimensions.js.map +1 -0
  501. package/dist/rules2/src/getMetadataCoordinates.js +40 -0
  502. package/dist/rules2/src/getMetadataCoordinates.js.map +1 -0
  503. package/dist/rules2/src/getNotDisplayedIds.js +56 -0
  504. package/dist/rules2/src/getNotDisplayedIds.js.map +1 -0
  505. package/dist/rules2/src/getOneValueDimensions.js +37 -0
  506. package/dist/rules2/src/getOneValueDimensions.js.map +1 -0
  507. package/dist/rules2/src/getSeriesCombinations.js +27 -0
  508. package/dist/rules2/src/getSeriesCombinations.js.map +1 -0
  509. package/dist/rules2/src/hasCellMetadata.js +17 -0
  510. package/dist/rules2/src/hasCellMetadata.js.map +1 -0
  511. package/dist/rules2/src/hierarchiseDimensionWithAdvancedHierarchy2.js +60 -0
  512. package/dist/rules2/src/hierarchiseDimensionWithAdvancedHierarchy2.js.map +1 -0
  513. package/dist/rules2/src/hierarchiseDimensionWithNativeHierarchy2.js +38 -0
  514. package/dist/rules2/src/hierarchiseDimensionWithNativeHierarchy2.js.map +1 -0
  515. package/dist/rules2/src/index.js +47 -0
  516. package/dist/rules2/src/index.js.map +1 -0
  517. package/dist/rules2/src/parseAttributes.js +44 -0
  518. package/dist/rules2/src/parseAttributes.js.map +1 -0
  519. package/dist/rules2/src/parseCombinations.js +105 -0
  520. package/dist/rules2/src/parseCombinations.js.map +1 -0
  521. package/dist/rules2/src/parseHierarchicalCodelist.js +34 -0
  522. package/dist/rules2/src/parseHierarchicalCodelist.js.map +1 -0
  523. package/dist/rules2/src/parseMetadataSeries.js +124 -0
  524. package/dist/rules2/src/parseMetadataSeries.js.map +1 -0
  525. package/dist/rules2/src/prepareData.js +78 -0
  526. package/dist/rules2/src/prepareData.js.map +1 -0
  527. package/dist/rules2/src/refineAttributes.js +19 -0
  528. package/dist/rules2/src/refineAttributes.js.map +1 -0
  529. package/dist/rules2/src/refineDimensions.js +21 -0
  530. package/dist/rules2/src/refineDimensions.js.map +1 -0
  531. package/dist/rules2/src/refineTimePeriod.js +130 -0
  532. package/dist/rules2/src/refineTimePeriod.js.map +1 -0
  533. package/dist/rules2/src/sdmx3.0DataFormatPatch.js +12 -0
  534. package/dist/rules2/src/sdmx3.0DataFormatPatch.js.map +1 -0
  535. package/dist/rules2/src/table/declineObservationsOverAttributes.js +35 -0
  536. package/dist/rules2/src/table/declineObservationsOverAttributes.js.map +1 -0
  537. package/dist/rules2/src/table/getCells.js +96 -0
  538. package/dist/rules2/src/table/getCells.js.map +1 -0
  539. package/dist/rules2/src/table/getCellsAttributesIds.js +41 -0
  540. package/dist/rules2/src/table/getCellsAttributesIds.js.map +1 -0
  541. package/dist/rules2/src/table/getCellsMetadataCoordinates.js +16 -0
  542. package/dist/rules2/src/table/getCellsMetadataCoordinates.js.map +1 -0
  543. package/dist/rules2/src/table/getCuratedCells.js +36 -0
  544. package/dist/rules2/src/table/getCuratedCells.js.map +1 -0
  545. package/dist/rules2/src/table/getFlagsAndNotes.js +26 -0
  546. package/dist/rules2/src/table/getFlagsAndNotes.js.map +1 -0
  547. package/dist/rules2/src/table/getIndexedCombinationsByDisplay.js +19 -0
  548. package/dist/rules2/src/table/getIndexedCombinationsByDisplay.js.map +1 -0
  549. package/dist/rules2/src/table/getLayout.js +87 -0
  550. package/dist/rules2/src/table/getLayout.js.map +1 -0
  551. package/dist/rules2/src/table/getLayoutData2.js +205 -0
  552. package/dist/rules2/src/table/getLayoutData2.js.map +1 -0
  553. package/dist/rules2/src/table/getSortedLayoutIndexes.js +141 -0
  554. package/dist/rules2/src/table/getSortedLayoutIndexes.js.map +1 -0
  555. package/dist/rules2/src/table/getTableLabelAccessor.js +11 -0
  556. package/dist/rules2/src/table/getTableLabelAccessor.js.map +1 -0
  557. package/dist/rules2/src/table/getTableLayoutIds.js +317 -0
  558. package/dist/rules2/src/table/getTableLayoutIds.js.map +1 -0
  559. package/dist/rules2/src/table/getTableProps.js +85 -0
  560. package/dist/rules2/src/table/getTableProps.js.map +1 -0
  561. package/dist/rules2/src/table/parseSeriesIndexesHierarchies.js +82 -0
  562. package/dist/rules2/src/table/parseSeriesIndexesHierarchies.js.map +1 -0
  563. package/dist/rules2/src/table/parseValueHierarchy.js +29 -0
  564. package/dist/rules2/src/table/parseValueHierarchy.js.map +1 -0
  565. package/dist/rules2/src/table/refineLayoutSize2.js +324 -0
  566. package/dist/rules2/src/table/refineLayoutSize2.js.map +1 -0
  567. package/dist/rules2/src/utils.js +29 -0
  568. package/dist/rules2/src/utils.js.map +1 -0
  569. package/dist/viewer/src/chart.js +50 -0
  570. package/dist/viewer/src/chart.js.map +1 -0
  571. package/dist/viewer/src/chartUtils/options.js +33 -0
  572. package/dist/viewer/src/chartUtils/options.js.map +1 -0
  573. package/dist/viewer/src/chartUtils/series.js +54 -0
  574. package/dist/viewer/src/chartUtils/series.js.map +1 -0
  575. package/dist/viewer/src/footer.js +39 -0
  576. package/dist/viewer/src/footer.js.map +1 -0
  577. package/dist/viewer/src/header.js +12 -0
  578. package/dist/viewer/src/header.js.map +1 -0
  579. package/dist/viewer/src/index.js +160 -0
  580. package/dist/viewer/src/index.js.map +1 -0
  581. package/dist/viewer/src/legends/AxisLegend.js +42 -0
  582. package/dist/viewer/src/legends/AxisLegend.js.map +1 -0
  583. package/dist/viewer/src/legends/ChartLegends.js +80 -0
  584. package/dist/viewer/src/legends/ChartLegends.js.map +1 -0
  585. package/dist/viewer/src/legends/FocusLegend.js +67 -0
  586. package/dist/viewer/src/legends/FocusLegend.js.map +1 -0
  587. package/dist/viewer/src/legends/Legend.js +51 -0
  588. package/dist/viewer/src/legends/Legend.js.map +1 -0
  589. package/dist/viewer/src/legends/SeriesLegend.js +77 -0
  590. package/dist/viewer/src/legends/SeriesLegend.js.map +1 -0
  591. package/dist/viewer/src/utils.js +24 -0
  592. package/dist/viewer/src/utils.js.map +1 -0
  593. package/package.json +1 -1
  594. package/.editorconfig +0 -19
  595. package/.gitlab-ci.yml +0 -48
  596. package/prettier.config.js +0 -13
  597. package/rollup.config.mjs +0 -28
  598. package/src/rules/test/extractSdmxArtefacts.js +0 -26
  599. package/src/rules/test/get-values-enhanced.test.js +0 -127
  600. package/src/rules/test/oecd-HEALTH_PROT-no-freq.json +0 -2903
  601. package/src/rules/test/oecd-HEALTH_PROT-parsed.js +0 -398
  602. package/src/rules/test/oecd-HEALTH_PROT-wrong-freq.json +0 -2913
  603. package/src/rules/test/oecd-HEALTH_PROT.json +0 -2913
  604. package/src/rules/test/oecd-KEI.json +0 -372
  605. package/src/rules/test/scatter-property.js +0 -455
  606. package/src/rules/test/stacked-property.js +0 -273
  607. package/src/rules/test/symbol-property.js +0 -262
  608. package/src/rules/test/v8-transformer.test.js +0 -90
  609. package/test/applyHierarchicalCodesToDim.test.js +0 -643
  610. package/test/combinedValuesDisplay.test.js +0 -66
  611. package/test/duplicateObs.test.js +0 -118
  612. package/test/enhanceObservations2.test.js +0 -257
  613. package/test/getAttributesSeries.test.js +0 -66
  614. package/test/getAxisOptions.test.js +0 -309
  615. package/test/getBaseOptions.test.js +0 -77
  616. package/test/getCellValue.test.js +0 -32
  617. package/test/getCells.test.js +0 -178
  618. package/test/getCellsMetadataCoordinates.test.js +0 -40
  619. package/test/getCombinationDefinitions.test.js +0 -104
  620. package/test/getCombinationDimensionsData.test.js +0 -99
  621. package/test/getDataflowAttributes.test.js +0 -23
  622. package/test/getDataflowTooltipAttributesIds.test.js +0 -146
  623. package/test/getDimensionValuesIndexes.test.js +0 -33
  624. package/test/getGridOptions.test.js +0 -65
  625. package/test/getHCodelistsRefs.test.js +0 -23
  626. package/test/getHeaderCombinations.test.js +0 -62
  627. package/test/getHeaderTitle.test.js +0 -25
  628. package/test/getLayout.test.js +0 -54
  629. package/test/getLayoutData2.test.js +0 -540
  630. package/test/getMSDInformations.test.js +0 -35
  631. package/test/getMetadataCoordinates.test.js +0 -0
  632. package/test/getNotDisplayedIds.test.js +0 -47
  633. package/test/getObservationsType.test.js +0 -55
  634. package/test/getOneValueDimensions.test.js +0 -35
  635. package/test/getReportingYearStart.test.js +0 -59
  636. package/test/getSeriesCombinations.test.js +0 -29
  637. package/test/getSortedLayoutIndexes.test.js +0 -1248
  638. package/test/getTableLabelAccessor.test.js +0 -50
  639. package/test/getTableLayoutIds.test.js +0 -356
  640. package/test/hierarchiseDimensionWithNativeHierarchy2.test.js +0 -109
  641. package/test/isTableLayoutCompatible.test.js +0 -102
  642. package/test/metadata-parsing-perf.test.js +0 -509
  643. package/test/mocks/MSD_TEST.json +0 -490
  644. package/test/mocks/OECD_SNA_TABLE1_1.0_-_AUS_V_metadata.json +0 -152
  645. package/test/mocks/h-codelist.json +0 -2095
  646. package/test/mocks/large_metadata_series.json +0 -701
  647. package/test/mocks/observations-advanced-attributes.json +0 -55382
  648. package/test/mocks/table-invert-time--data.json +0 -80211
  649. package/test/mocks/table-invert-time--inverted.json +0 -80076
  650. package/test/mocks/table-layout-multi-hierarchies--layout.json +0 -621
  651. package/test/mocks/table-layout-multi-hierarchies--layoutData.json +0 -32411
  652. package/test/mocks/table-layout-multi-hierarchies--layoutIndexes.json +0 -2760
  653. package/test/mocks/table-layout-multi-hierarchies--observations.json +0 -30688
  654. package/test/mocks/table-layout-multi-hierarchies--sizedIndexes.json +0 -2762
  655. package/test/mocks/table-layout-truncation1--layout.json +0 -27469
  656. package/test/mocks/table-layout-truncation1--layoutData.json +0 -20358
  657. package/test/mocks/table-layout-truncation1--layoutIndexes.json +0 -7512
  658. package/test/mocks/table-layout-truncation1--observations.json +0 -70002
  659. package/test/mocks/table-layout-truncation1--sizedIndexes.json +0 -3011
  660. package/test/mocks/table-prep-multi-hierarchies--attributes.json +0 -46
  661. package/test/mocks/table-prep-multi-hierarchies--dimensions.json +0 -688
  662. package/test/mocks/table-prep-multi-hierarchies--enhancedObservations.json +0 -19696
  663. package/test/mocks/table-prep-multi-hierarchies--observations.json +0 -8246
  664. package/test/mocks/table-prep-multi-hierarchies--sdmxJson.json +0 -2985
  665. package/test/mocks/table-prep-simple-duplicate--dimensions2.json +0 -858
  666. package/test/mocks/table-prep-simple-duplicate--duplicated2.json +0 -77502
  667. package/test/mocks/table-prep-simple-duplicate--observations2.json +0 -60002
  668. package/test/mocks/table-prep-truncation1--dimensions.json +0 -35057
  669. package/test/mocks/table-prep-truncation1--enhancedObservations.json +0 -70002
  670. package/test/mocks/table-prep-truncation1--observations.json +0 -27502
  671. package/test/mocks/table-prep-truncation1--sdmxJson.json +0 -55103
  672. package/test/mocks/table-prep-units--observations.json +0 -284286
  673. package/test/mocks/table-prep-units--unitsSeries.json +0 -41042
  674. package/test/parseAttributes.test.js +0 -36
  675. package/test/parseCombinations.test.js +0 -172
  676. package/test/parseHierarchicalCodelist.test.js +0 -140
  677. package/test/parseMetadataSeries.test.js +0 -126
  678. package/test/parseSeriesIndexesHierarchies.test.js +0 -345
  679. package/test/parseValueHierarchy.test.js +0 -138
  680. package/test/refineAttributes.test.js +0 -29
  681. package/test/refineLayoutSize2.test.js +0 -3410
  682. package/test/refineMetadataCoordinates.test.js +0 -86
  683. package/test/refineTimePeriod.test.js +0 -580
  684. package/test/refinedDimensions.test.js +0 -35
  685. package/test/scatter-dimension.test.js +0 -79
  686. package/test/scatter-series.test.js +0 -67
@@ -0,0 +1,386 @@
1
+ import { __exports as colorManipulator } from '../../../_virtual/colorManipulator2.js';
2
+ import { __require as requireInteropRequireDefault } from '../../@babel/runtime/helpers/interopRequireDefault.js';
3
+ import require$$1 from '../../../_virtual/index17.js';
4
+ import require$$2 from '../../../_virtual/index18.js';
5
+
6
+ var hasRequiredColorManipulator;
7
+
8
+ function requireColorManipulator () {
9
+ if (hasRequiredColorManipulator) return colorManipulator;
10
+ hasRequiredColorManipulator = 1;
11
+
12
+ var _interopRequireDefault = requireInteropRequireDefault();
13
+ Object.defineProperty(colorManipulator, "__esModule", {
14
+ value: true
15
+ });
16
+ colorManipulator.alpha = alpha;
17
+ colorManipulator.blend = blend;
18
+ colorManipulator.colorChannel = void 0;
19
+ colorManipulator.darken = darken;
20
+ colorManipulator.decomposeColor = decomposeColor;
21
+ colorManipulator.emphasize = emphasize;
22
+ colorManipulator.getContrastRatio = getContrastRatio;
23
+ colorManipulator.getLuminance = getLuminance;
24
+ colorManipulator.hexToRgb = hexToRgb;
25
+ colorManipulator.hslToRgb = hslToRgb;
26
+ colorManipulator.lighten = lighten;
27
+ colorManipulator.private_safeAlpha = private_safeAlpha;
28
+ colorManipulator.private_safeColorChannel = void 0;
29
+ colorManipulator.private_safeDarken = private_safeDarken;
30
+ colorManipulator.private_safeEmphasize = private_safeEmphasize;
31
+ colorManipulator.private_safeLighten = private_safeLighten;
32
+ colorManipulator.recomposeColor = recomposeColor;
33
+ colorManipulator.rgbToHex = rgbToHex;
34
+ var _formatMuiErrorMessage2 = _interopRequireDefault(require$$1);
35
+ var _clamp = _interopRequireDefault(require$$2);
36
+ /* eslint-disable @typescript-eslint/naming-convention */
37
+
38
+ /**
39
+ * Returns a number whose value is limited to the given range.
40
+ * @param {number} value The value to be clamped
41
+ * @param {number} min The lower boundary of the output range
42
+ * @param {number} max The upper boundary of the output range
43
+ * @returns {number} A number in the range [min, max]
44
+ */
45
+ function clampWrapper(value, min = 0, max = 1) {
46
+ if (process.env.NODE_ENV !== 'production') {
47
+ if (value < min || value > max) {
48
+ console.error(`MUI: The value provided ${value} is out of range [${min}, ${max}].`);
49
+ }
50
+ }
51
+ return (0, _clamp.default)(value, min, max);
52
+ }
53
+
54
+ /**
55
+ * Converts a color from CSS hex format to CSS rgb format.
56
+ * @param {string} color - Hex color, i.e. #nnn or #nnnnnn
57
+ * @returns {string} A CSS rgb color string
58
+ */
59
+ function hexToRgb(color) {
60
+ color = color.slice(1);
61
+ const re = new RegExp(`.{1,${color.length >= 6 ? 2 : 1}}`, 'g');
62
+ let colors = color.match(re);
63
+ if (colors && colors[0].length === 1) {
64
+ colors = colors.map(n => n + n);
65
+ }
66
+ return colors ? `rgb${colors.length === 4 ? 'a' : ''}(${colors.map((n, index) => {
67
+ return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;
68
+ }).join(', ')})` : '';
69
+ }
70
+ function intToHex(int) {
71
+ const hex = int.toString(16);
72
+ return hex.length === 1 ? `0${hex}` : hex;
73
+ }
74
+
75
+ /**
76
+ * Returns an object with the type and values of a color.
77
+ *
78
+ * Note: Does not support rgb % values.
79
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
80
+ * @returns {object} - A MUI color object: {type: string, values: number[]}
81
+ */
82
+ function decomposeColor(color) {
83
+ // Idempotent
84
+ if (color.type) {
85
+ return color;
86
+ }
87
+ if (color.charAt(0) === '#') {
88
+ return decomposeColor(hexToRgb(color));
89
+ }
90
+ const marker = color.indexOf('(');
91
+ const type = color.substring(0, marker);
92
+ if (['rgb', 'rgba', 'hsl', 'hsla', 'color'].indexOf(type) === -1) {
93
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${color}\` color.
94
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : (0, _formatMuiErrorMessage2.default)(9, color));
95
+ }
96
+ let values = color.substring(marker + 1, color.length - 1);
97
+ let colorSpace;
98
+ if (type === 'color') {
99
+ values = values.split(' ');
100
+ colorSpace = values.shift();
101
+ if (values.length === 4 && values[3].charAt(0) === '/') {
102
+ values[3] = values[3].slice(1);
103
+ }
104
+ if (['srgb', 'display-p3', 'a98-rgb', 'prophoto-rgb', 'rec-2020'].indexOf(colorSpace) === -1) {
105
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${colorSpace}\` color space.
106
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : (0, _formatMuiErrorMessage2.default)(10, colorSpace));
107
+ }
108
+ } else {
109
+ values = values.split(',');
110
+ }
111
+ values = values.map(value => parseFloat(value));
112
+ return {
113
+ type,
114
+ values,
115
+ colorSpace
116
+ };
117
+ }
118
+
119
+ /**
120
+ * Returns a channel created from the input color.
121
+ *
122
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
123
+ * @returns {string} - The channel for the color, that can be used in rgba or hsla colors
124
+ */
125
+ const colorChannel = color => {
126
+ const decomposedColor = decomposeColor(color);
127
+ return decomposedColor.values.slice(0, 3).map((val, idx) => decomposedColor.type.indexOf('hsl') !== -1 && idx !== 0 ? `${val}%` : val).join(' ');
128
+ };
129
+ colorManipulator.colorChannel = colorChannel;
130
+ const private_safeColorChannel = (color, warning) => {
131
+ try {
132
+ return colorChannel(color);
133
+ } catch (error) {
134
+ if (warning && process.env.NODE_ENV !== 'production') {
135
+ console.warn(warning);
136
+ }
137
+ return color;
138
+ }
139
+ };
140
+
141
+ /**
142
+ * Converts a color object with type and values to a string.
143
+ * @param {object} color - Decomposed color
144
+ * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla', 'color'
145
+ * @param {array} color.values - [n,n,n] or [n,n,n,n]
146
+ * @returns {string} A CSS color string
147
+ */
148
+ colorManipulator.private_safeColorChannel = private_safeColorChannel;
149
+ function recomposeColor(color) {
150
+ const {
151
+ type,
152
+ colorSpace
153
+ } = color;
154
+ let {
155
+ values
156
+ } = color;
157
+ if (type.indexOf('rgb') !== -1) {
158
+ // Only convert the first 3 values to int (i.e. not alpha)
159
+ values = values.map((n, i) => i < 3 ? parseInt(n, 10) : n);
160
+ } else if (type.indexOf('hsl') !== -1) {
161
+ values[1] = `${values[1]}%`;
162
+ values[2] = `${values[2]}%`;
163
+ }
164
+ if (type.indexOf('color') !== -1) {
165
+ values = `${colorSpace} ${values.join(' ')}`;
166
+ } else {
167
+ values = `${values.join(', ')}`;
168
+ }
169
+ return `${type}(${values})`;
170
+ }
171
+
172
+ /**
173
+ * Converts a color from CSS rgb format to CSS hex format.
174
+ * @param {string} color - RGB color, i.e. rgb(n, n, n)
175
+ * @returns {string} A CSS rgb color string, i.e. #nnnnnn
176
+ */
177
+ function rgbToHex(color) {
178
+ // Idempotent
179
+ if (color.indexOf('#') === 0) {
180
+ return color;
181
+ }
182
+ const {
183
+ values
184
+ } = decomposeColor(color);
185
+ return `#${values.map((n, i) => intToHex(i === 3 ? Math.round(255 * n) : n)).join('')}`;
186
+ }
187
+
188
+ /**
189
+ * Converts a color from hsl format to rgb format.
190
+ * @param {string} color - HSL color values
191
+ * @returns {string} rgb color values
192
+ */
193
+ function hslToRgb(color) {
194
+ color = decomposeColor(color);
195
+ const {
196
+ values
197
+ } = color;
198
+ const h = values[0];
199
+ const s = values[1] / 100;
200
+ const l = values[2] / 100;
201
+ const a = s * Math.min(l, 1 - l);
202
+ const f = (n, k = (n + h / 30) % 12) => l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);
203
+ let type = 'rgb';
204
+ const rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];
205
+ if (color.type === 'hsla') {
206
+ type += 'a';
207
+ rgb.push(values[3]);
208
+ }
209
+ return recomposeColor({
210
+ type,
211
+ values: rgb
212
+ });
213
+ }
214
+ /**
215
+ * The relative brightness of any point in a color space,
216
+ * normalized to 0 for darkest black and 1 for lightest white.
217
+ *
218
+ * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
219
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
220
+ * @returns {number} The relative brightness of the color in the range 0 - 1
221
+ */
222
+ function getLuminance(color) {
223
+ color = decomposeColor(color);
224
+ let rgb = color.type === 'hsl' || color.type === 'hsla' ? decomposeColor(hslToRgb(color)).values : color.values;
225
+ rgb = rgb.map(val => {
226
+ if (color.type !== 'color') {
227
+ val /= 255; // normalized
228
+ }
229
+ return val <= 0.03928 ? val / 12.92 : ((val + 0.055) / 1.055) ** 2.4;
230
+ });
231
+
232
+ // Truncate at 3 digits
233
+ return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));
234
+ }
235
+
236
+ /**
237
+ * Calculates the contrast ratio between two colors.
238
+ *
239
+ * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
240
+ * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
241
+ * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
242
+ * @returns {number} A contrast ratio value in the range 0 - 21.
243
+ */
244
+ function getContrastRatio(foreground, background) {
245
+ const lumA = getLuminance(foreground);
246
+ const lumB = getLuminance(background);
247
+ return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);
248
+ }
249
+
250
+ /**
251
+ * Sets the absolute transparency of a color.
252
+ * Any existing alpha values are overwritten.
253
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
254
+ * @param {number} value - value to set the alpha channel to in the range 0 - 1
255
+ * @returns {string} A CSS color string. Hex input values are returned as rgb
256
+ */
257
+ function alpha(color, value) {
258
+ color = decomposeColor(color);
259
+ value = clampWrapper(value);
260
+ if (color.type === 'rgb' || color.type === 'hsl') {
261
+ color.type += 'a';
262
+ }
263
+ if (color.type === 'color') {
264
+ color.values[3] = `/${value}`;
265
+ } else {
266
+ color.values[3] = value;
267
+ }
268
+ return recomposeColor(color);
269
+ }
270
+ function private_safeAlpha(color, value, warning) {
271
+ try {
272
+ return alpha(color, value);
273
+ } catch (error) {
274
+ if (warning && process.env.NODE_ENV !== 'production') {
275
+ console.warn(warning);
276
+ }
277
+ return color;
278
+ }
279
+ }
280
+
281
+ /**
282
+ * Darkens a color.
283
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
284
+ * @param {number} coefficient - multiplier in the range 0 - 1
285
+ * @returns {string} A CSS color string. Hex input values are returned as rgb
286
+ */
287
+ function darken(color, coefficient) {
288
+ color = decomposeColor(color);
289
+ coefficient = clampWrapper(coefficient);
290
+ if (color.type.indexOf('hsl') !== -1) {
291
+ color.values[2] *= 1 - coefficient;
292
+ } else if (color.type.indexOf('rgb') !== -1 || color.type.indexOf('color') !== -1) {
293
+ for (let i = 0; i < 3; i += 1) {
294
+ color.values[i] *= 1 - coefficient;
295
+ }
296
+ }
297
+ return recomposeColor(color);
298
+ }
299
+ function private_safeDarken(color, coefficient, warning) {
300
+ try {
301
+ return darken(color, coefficient);
302
+ } catch (error) {
303
+ if (warning && process.env.NODE_ENV !== 'production') {
304
+ console.warn(warning);
305
+ }
306
+ return color;
307
+ }
308
+ }
309
+
310
+ /**
311
+ * Lightens a color.
312
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
313
+ * @param {number} coefficient - multiplier in the range 0 - 1
314
+ * @returns {string} A CSS color string. Hex input values are returned as rgb
315
+ */
316
+ function lighten(color, coefficient) {
317
+ color = decomposeColor(color);
318
+ coefficient = clampWrapper(coefficient);
319
+ if (color.type.indexOf('hsl') !== -1) {
320
+ color.values[2] += (100 - color.values[2]) * coefficient;
321
+ } else if (color.type.indexOf('rgb') !== -1) {
322
+ for (let i = 0; i < 3; i += 1) {
323
+ color.values[i] += (255 - color.values[i]) * coefficient;
324
+ }
325
+ } else if (color.type.indexOf('color') !== -1) {
326
+ for (let i = 0; i < 3; i += 1) {
327
+ color.values[i] += (1 - color.values[i]) * coefficient;
328
+ }
329
+ }
330
+ return recomposeColor(color);
331
+ }
332
+ function private_safeLighten(color, coefficient, warning) {
333
+ try {
334
+ return lighten(color, coefficient);
335
+ } catch (error) {
336
+ if (warning && process.env.NODE_ENV !== 'production') {
337
+ console.warn(warning);
338
+ }
339
+ return color;
340
+ }
341
+ }
342
+
343
+ /**
344
+ * Darken or lighten a color, depending on its luminance.
345
+ * Light colors are darkened, dark colors are lightened.
346
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
347
+ * @param {number} coefficient=0.15 - multiplier in the range 0 - 1
348
+ * @returns {string} A CSS color string. Hex input values are returned as rgb
349
+ */
350
+ function emphasize(color, coefficient = 0.15) {
351
+ return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);
352
+ }
353
+ function private_safeEmphasize(color, coefficient, warning) {
354
+ try {
355
+ return emphasize(color, coefficient);
356
+ } catch (error) {
357
+ if (warning && process.env.NODE_ENV !== 'production') {
358
+ console.warn(warning);
359
+ }
360
+ return color;
361
+ }
362
+ }
363
+
364
+ /**
365
+ * Blend a transparent overlay color with a background color, resulting in a single
366
+ * RGB color.
367
+ * @param {string} background - CSS color
368
+ * @param {string} overlay - CSS color
369
+ * @param {number} opacity - Opacity multiplier in the range 0 - 1
370
+ * @param {number} [gamma=1.0] - Gamma correction factor. For gamma-correct blending, 2.2 is usual.
371
+ */
372
+ function blend(background, overlay, opacity, gamma = 1.0) {
373
+ const blendChannel = (b, o) => Math.round((b ** (1 / gamma) * (1 - opacity) + o ** (1 / gamma) * opacity) ** gamma);
374
+ const backgroundColor = decomposeColor(background);
375
+ const overlayColor = decomposeColor(overlay);
376
+ const rgb = [blendChannel(backgroundColor.values[0], overlayColor.values[0]), blendChannel(backgroundColor.values[1], overlayColor.values[1]), blendChannel(backgroundColor.values[2], overlayColor.values[2])];
377
+ return recomposeColor({
378
+ type: 'rgb',
379
+ values: rgb
380
+ });
381
+ }
382
+ return colorManipulator;
383
+ }
384
+
385
+ export { requireColorManipulator as __require };
386
+ //# sourceMappingURL=colorManipulator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colorManipulator.js","sources":["../../../../node_modules/@mui/system/colorManipulator.js"],"sourcesContent":["\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.alpha = alpha;\nexports.blend = blend;\nexports.colorChannel = void 0;\nexports.darken = darken;\nexports.decomposeColor = decomposeColor;\nexports.emphasize = emphasize;\nexports.getContrastRatio = getContrastRatio;\nexports.getLuminance = getLuminance;\nexports.hexToRgb = hexToRgb;\nexports.hslToRgb = hslToRgb;\nexports.lighten = lighten;\nexports.private_safeAlpha = private_safeAlpha;\nexports.private_safeColorChannel = void 0;\nexports.private_safeDarken = private_safeDarken;\nexports.private_safeEmphasize = private_safeEmphasize;\nexports.private_safeLighten = private_safeLighten;\nexports.recomposeColor = recomposeColor;\nexports.rgbToHex = rgbToHex;\nvar _formatMuiErrorMessage2 = _interopRequireDefault(require(\"@mui/utils/formatMuiErrorMessage\"));\nvar _clamp = _interopRequireDefault(require(\"@mui/utils/clamp\"));\n/* eslint-disable @typescript-eslint/naming-convention */\n\n/**\n * Returns a number whose value is limited to the given range.\n * @param {number} value The value to be clamped\n * @param {number} min The lower boundary of the output range\n * @param {number} max The upper boundary of the output range\n * @returns {number} A number in the range [min, max]\n */\nfunction clampWrapper(value, min = 0, max = 1) {\n if (process.env.NODE_ENV !== 'production') {\n if (value < min || value > max) {\n console.error(`MUI: The value provided ${value} is out of range [${min}, ${max}].`);\n }\n }\n return (0, _clamp.default)(value, min, max);\n}\n\n/**\n * Converts a color from CSS hex format to CSS rgb format.\n * @param {string} color - Hex color, i.e. #nnn or #nnnnnn\n * @returns {string} A CSS rgb color string\n */\nfunction hexToRgb(color) {\n color = color.slice(1);\n const re = new RegExp(`.{1,${color.length >= 6 ? 2 : 1}}`, 'g');\n let colors = color.match(re);\n if (colors && colors[0].length === 1) {\n colors = colors.map(n => n + n);\n }\n return colors ? `rgb${colors.length === 4 ? 'a' : ''}(${colors.map((n, index) => {\n return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;\n }).join(', ')})` : '';\n}\nfunction intToHex(int) {\n const hex = int.toString(16);\n return hex.length === 1 ? `0${hex}` : hex;\n}\n\n/**\n * Returns an object with the type and values of a color.\n *\n * Note: Does not support rgb % values.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {object} - A MUI color object: {type: string, values: number[]}\n */\nfunction decomposeColor(color) {\n // Idempotent\n if (color.type) {\n return color;\n }\n if (color.charAt(0) === '#') {\n return decomposeColor(hexToRgb(color));\n }\n const marker = color.indexOf('(');\n const type = color.substring(0, marker);\n if (['rgb', 'rgba', 'hsl', 'hsla', 'color'].indexOf(type) === -1) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: Unsupported \\`${color}\\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : (0, _formatMuiErrorMessage2.default)(9, color));\n }\n let values = color.substring(marker + 1, color.length - 1);\n let colorSpace;\n if (type === 'color') {\n values = values.split(' ');\n colorSpace = values.shift();\n if (values.length === 4 && values[3].charAt(0) === '/') {\n values[3] = values[3].slice(1);\n }\n if (['srgb', 'display-p3', 'a98-rgb', 'prophoto-rgb', 'rec-2020'].indexOf(colorSpace) === -1) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: unsupported \\`${colorSpace}\\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : (0, _formatMuiErrorMessage2.default)(10, colorSpace));\n }\n } else {\n values = values.split(',');\n }\n values = values.map(value => parseFloat(value));\n return {\n type,\n values,\n colorSpace\n };\n}\n\n/**\n * Returns a channel created from the input color.\n *\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {string} - The channel for the color, that can be used in rgba or hsla colors\n */\nconst colorChannel = color => {\n const decomposedColor = decomposeColor(color);\n return decomposedColor.values.slice(0, 3).map((val, idx) => decomposedColor.type.indexOf('hsl') !== -1 && idx !== 0 ? `${val}%` : val).join(' ');\n};\nexports.colorChannel = colorChannel;\nconst private_safeColorChannel = (color, warning) => {\n try {\n return colorChannel(color);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n};\n\n/**\n * Converts a color object with type and values to a string.\n * @param {object} color - Decomposed color\n * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla', 'color'\n * @param {array} color.values - [n,n,n] or [n,n,n,n]\n * @returns {string} A CSS color string\n */\nexports.private_safeColorChannel = private_safeColorChannel;\nfunction recomposeColor(color) {\n const {\n type,\n colorSpace\n } = color;\n let {\n values\n } = color;\n if (type.indexOf('rgb') !== -1) {\n // Only convert the first 3 values to int (i.e. not alpha)\n values = values.map((n, i) => i < 3 ? parseInt(n, 10) : n);\n } else if (type.indexOf('hsl') !== -1) {\n values[1] = `${values[1]}%`;\n values[2] = `${values[2]}%`;\n }\n if (type.indexOf('color') !== -1) {\n values = `${colorSpace} ${values.join(' ')}`;\n } else {\n values = `${values.join(', ')}`;\n }\n return `${type}(${values})`;\n}\n\n/**\n * Converts a color from CSS rgb format to CSS hex format.\n * @param {string} color - RGB color, i.e. rgb(n, n, n)\n * @returns {string} A CSS rgb color string, i.e. #nnnnnn\n */\nfunction rgbToHex(color) {\n // Idempotent\n if (color.indexOf('#') === 0) {\n return color;\n }\n const {\n values\n } = decomposeColor(color);\n return `#${values.map((n, i) => intToHex(i === 3 ? Math.round(255 * n) : n)).join('')}`;\n}\n\n/**\n * Converts a color from hsl format to rgb format.\n * @param {string} color - HSL color values\n * @returns {string} rgb color values\n */\nfunction hslToRgb(color) {\n color = decomposeColor(color);\n const {\n values\n } = color;\n const h = values[0];\n const s = values[1] / 100;\n const l = values[2] / 100;\n const a = s * Math.min(l, 1 - l);\n const f = (n, k = (n + h / 30) % 12) => l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);\n let type = 'rgb';\n const rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];\n if (color.type === 'hsla') {\n type += 'a';\n rgb.push(values[3]);\n }\n return recomposeColor({\n type,\n values: rgb\n });\n}\n/**\n * The relative brightness of any point in a color space,\n * normalized to 0 for darkest black and 1 for lightest white.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {number} The relative brightness of the color in the range 0 - 1\n */\nfunction getLuminance(color) {\n color = decomposeColor(color);\n let rgb = color.type === 'hsl' || color.type === 'hsla' ? decomposeColor(hslToRgb(color)).values : color.values;\n rgb = rgb.map(val => {\n if (color.type !== 'color') {\n val /= 255; // normalized\n }\n return val <= 0.03928 ? val / 12.92 : ((val + 0.055) / 1.055) ** 2.4;\n });\n\n // Truncate at 3 digits\n return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));\n}\n\n/**\n * Calculates the contrast ratio between two colors.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @returns {number} A contrast ratio value in the range 0 - 21.\n */\nfunction getContrastRatio(foreground, background) {\n const lumA = getLuminance(foreground);\n const lumB = getLuminance(background);\n return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);\n}\n\n/**\n * Sets the absolute transparency of a color.\n * Any existing alpha values are overwritten.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} value - value to set the alpha channel to in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nfunction alpha(color, value) {\n color = decomposeColor(color);\n value = clampWrapper(value);\n if (color.type === 'rgb' || color.type === 'hsl') {\n color.type += 'a';\n }\n if (color.type === 'color') {\n color.values[3] = `/${value}`;\n } else {\n color.values[3] = value;\n }\n return recomposeColor(color);\n}\nfunction private_safeAlpha(color, value, warning) {\n try {\n return alpha(color, value);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Darkens a color.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nfunction darken(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clampWrapper(coefficient);\n if (color.type.indexOf('hsl') !== -1) {\n color.values[2] *= 1 - coefficient;\n } else if (color.type.indexOf('rgb') !== -1 || color.type.indexOf('color') !== -1) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] *= 1 - coefficient;\n }\n }\n return recomposeColor(color);\n}\nfunction private_safeDarken(color, coefficient, warning) {\n try {\n return darken(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Lightens a color.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nfunction lighten(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clampWrapper(coefficient);\n if (color.type.indexOf('hsl') !== -1) {\n color.values[2] += (100 - color.values[2]) * coefficient;\n } else if (color.type.indexOf('rgb') !== -1) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] += (255 - color.values[i]) * coefficient;\n }\n } else if (color.type.indexOf('color') !== -1) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] += (1 - color.values[i]) * coefficient;\n }\n }\n return recomposeColor(color);\n}\nfunction private_safeLighten(color, coefficient, warning) {\n try {\n return lighten(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Darken or lighten a color, depending on its luminance.\n * Light colors are darkened, dark colors are lightened.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient=0.15 - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nfunction emphasize(color, coefficient = 0.15) {\n return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);\n}\nfunction private_safeEmphasize(color, coefficient, warning) {\n try {\n return emphasize(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Blend a transparent overlay color with a background color, resulting in a single\n * RGB color.\n * @param {string} background - CSS color\n * @param {string} overlay - CSS color\n * @param {number} opacity - Opacity multiplier in the range 0 - 1\n * @param {number} [gamma=1.0] - Gamma correction factor. For gamma-correct blending, 2.2 is usual.\n */\nfunction blend(background, overlay, opacity, gamma = 1.0) {\n const blendChannel = (b, o) => Math.round((b ** (1 / gamma) * (1 - opacity) + o ** (1 / gamma) * opacity) ** gamma);\n const backgroundColor = decomposeColor(background);\n const overlayColor = decomposeColor(overlay);\n const rgb = [blendChannel(backgroundColor.values[0], overlayColor.values[0]), blendChannel(backgroundColor.values[1], overlayColor.values[1]), blendChannel(backgroundColor.values[2], overlayColor.values[2])];\n return recomposeColor({\n type: 'rgb',\n values: rgb\n });\n}"],"names":["require$$0"],"mappings":";;;;;;;;;;;CAEA,IAAI,sBAAsB,GAAGA,4BAAA,EAAuD;AACpF,CAAA,MAAM,CAAC,cAAc,CAAC,gBAAO,EAAE,YAAY,EAAE;AAC7C,GAAE,KAAK,EAAE;AACT,EAAC,CAAC;AACF,CAAA,gBAAA,C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AK,GAAG,GAAG,EAAE;AAC1D,GAAE,MAAM,YAAY,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,OAAO,KAAK,KAAK,CAAC;AACrH,GAAE,MAAM,eAAe,GAAG,cAAc,CAAC,UAAU,CAAC;AACpD,GAAE,MAAM,YAAY,GAAG,cAAc,CAAC,OAAO,CAAC;GAC5C,MAAM,GAAG,GAAG,CAAC,YAAY,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;GAC/M,OAAO,cAAc,CAAC;KACpB,IAAI,EAAE,KAAK;AACf,KAAI,MAAM,EAAE;AACZ,IAAG,CAAC;AACJ,CAAA;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,52 @@
1
+ import responsivePropType from './responsivePropType.js';
2
+ import style from './style.js';
3
+ import compose from './compose.js';
4
+ import { createUnaryUnit, getValue } from './spacing.js';
5
+ import { handleBreakpoints } from './breakpoints.js';
6
+
7
+ function borderTransform(value) {
8
+ if (typeof value !== 'number') {
9
+ return value;
10
+ }
11
+ return `${value}px solid`;
12
+ }
13
+ function createBorderStyle(prop, transform) {
14
+ return style({
15
+ prop,
16
+ themeKey: 'borders',
17
+ transform
18
+ });
19
+ }
20
+ const border = createBorderStyle('border', borderTransform);
21
+ const borderTop = createBorderStyle('borderTop', borderTransform);
22
+ const borderRight = createBorderStyle('borderRight', borderTransform);
23
+ const borderBottom = createBorderStyle('borderBottom', borderTransform);
24
+ const borderLeft = createBorderStyle('borderLeft', borderTransform);
25
+ const borderColor = createBorderStyle('borderColor');
26
+ const borderTopColor = createBorderStyle('borderTopColor');
27
+ const borderRightColor = createBorderStyle('borderRightColor');
28
+ const borderBottomColor = createBorderStyle('borderBottomColor');
29
+ const borderLeftColor = createBorderStyle('borderLeftColor');
30
+ const outline = createBorderStyle('outline', borderTransform);
31
+ const outlineColor = createBorderStyle('outlineColor');
32
+
33
+ // false positive
34
+ // eslint-disable-next-line react/function-component-definition
35
+ const borderRadius = props => {
36
+ if (props.borderRadius !== undefined && props.borderRadius !== null) {
37
+ const transformer = createUnaryUnit(props.theme, 'shape.borderRadius', 4, 'borderRadius');
38
+ const styleFromPropValue = propValue => ({
39
+ borderRadius: getValue(transformer, propValue)
40
+ });
41
+ return handleBreakpoints(props, props.borderRadius, styleFromPropValue);
42
+ }
43
+ return null;
44
+ };
45
+ borderRadius.propTypes = process.env.NODE_ENV !== 'production' ? {
46
+ borderRadius: responsivePropType
47
+ } : {};
48
+ borderRadius.filterProps = ['borderRadius'];
49
+ compose(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius, outline, outlineColor);
50
+
51
+ export { border, borderBottom, borderBottomColor, borderColor, borderLeft, borderLeftColor, borderRadius, borderRight, borderRightColor, borderTop, borderTopColor, borderTransform, outline, outlineColor };
52
+ //# sourceMappingURL=borders.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"borders.js","sources":["../../../../../node_modules/@mui/system/esm/borders.js"],"sourcesContent":["import responsivePropType from './responsivePropType';\nimport style from './style';\nimport compose from './compose';\nimport { createUnaryUnit, getValue } from './spacing';\nimport { handleBreakpoints } from './breakpoints';\nexport function borderTransform(value) {\n if (typeof value !== 'number') {\n return value;\n }\n return `${value}px solid`;\n}\nfunction createBorderStyle(prop, transform) {\n return style({\n prop,\n themeKey: 'borders',\n transform\n });\n}\nexport const border = createBorderStyle('border', borderTransform);\nexport const borderTop = createBorderStyle('borderTop', borderTransform);\nexport const borderRight = createBorderStyle('borderRight', borderTransform);\nexport const borderBottom = createBorderStyle('borderBottom', borderTransform);\nexport const borderLeft = createBorderStyle('borderLeft', borderTransform);\nexport const borderColor = createBorderStyle('borderColor');\nexport const borderTopColor = createBorderStyle('borderTopColor');\nexport const borderRightColor = createBorderStyle('borderRightColor');\nexport const borderBottomColor = createBorderStyle('borderBottomColor');\nexport const borderLeftColor = createBorderStyle('borderLeftColor');\nexport const outline = createBorderStyle('outline', borderTransform);\nexport const outlineColor = createBorderStyle('outlineColor');\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const borderRadius = props => {\n if (props.borderRadius !== undefined && props.borderRadius !== null) {\n const transformer = createUnaryUnit(props.theme, 'shape.borderRadius', 4, 'borderRadius');\n const styleFromPropValue = propValue => ({\n borderRadius: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.borderRadius, styleFromPropValue);\n }\n return null;\n};\nborderRadius.propTypes = process.env.NODE_ENV !== 'production' ? {\n borderRadius: responsivePropType\n} : {};\nborderRadius.filterProps = ['borderRadius'];\nconst borders = compose(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius, outline, outlineColor);\nexport default borders;"],"names":[],"mappings":";;;;;;AAKO,SAAS,eAAe,CAAC,KAAK,EAAE;AACvC,EAAE,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;AACjC,IAAI,OAAO,KAAK;AAChB,EAAE;AACF,EAAE,OAAO,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;AAC3B;AACA,SAAS,iBAAiB,CAAC,IAAI,EAAE,SAAS,EAAE;AAC5C,EAAE,OAAO,KAAK,CAAC;AACf,IAAI,IAAI;AACR,IAAI,QAAQ,EAAE,SAAS;AACvB,IAAI;AACJ,GAAG,CAAC;AACJ;AACY,MAAC,M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YAAY,CAAC,WAAW,GAAG,CAAC,cAAc,CAAC;AAC3B,OAAO,CAAC,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,eAAe,EAAE,YAAY,EAAE,OAAO,EAAE,YAAY;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,67 @@
1
+ // The breakpoint **start** at this value.
2
+ // For instance with the first breakpoint xs: [xs, sm[.
3
+ const values = {
4
+ xs: 0,
5
+ // phone
6
+ sm: 600,
7
+ // tablet
8
+ md: 900,
9
+ // small laptop
10
+ lg: 1200,
11
+ // desktop
12
+ xl: 1536 // large screen
13
+ };
14
+ const defaultBreakpoints = {
15
+ // Sorted ASC by size. That's important.
16
+ // It can't be configured as it's used statically for propTypes.
17
+ keys: ['xs', 'sm', 'md', 'lg', 'xl'],
18
+ up: key => `@media (min-width:${values[key]}px)`
19
+ };
20
+ function handleBreakpoints(props, propValue, styleFromPropValue) {
21
+ const theme = props.theme || {};
22
+ if (Array.isArray(propValue)) {
23
+ const themeBreakpoints = theme.breakpoints || defaultBreakpoints;
24
+ return propValue.reduce((acc, item, index) => {
25
+ acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]);
26
+ return acc;
27
+ }, {});
28
+ }
29
+ if (typeof propValue === 'object') {
30
+ const themeBreakpoints = theme.breakpoints || defaultBreakpoints;
31
+ return Object.keys(propValue).reduce((acc, breakpoint) => {
32
+ // key is breakpoint
33
+ if (Object.keys(themeBreakpoints.values || values).indexOf(breakpoint) !== -1) {
34
+ const mediaKey = themeBreakpoints.up(breakpoint);
35
+ acc[mediaKey] = styleFromPropValue(propValue[breakpoint], breakpoint);
36
+ } else {
37
+ const cssKey = breakpoint;
38
+ acc[cssKey] = propValue[cssKey];
39
+ }
40
+ return acc;
41
+ }, {});
42
+ }
43
+ const output = styleFromPropValue(propValue);
44
+ return output;
45
+ }
46
+ function createEmptyBreakpointObject(breakpointsInput = {}) {
47
+ var _breakpointsInput$key;
48
+ const breakpointsInOrder = (_breakpointsInput$key = breakpointsInput.keys) == null ? void 0 : _breakpointsInput$key.reduce((acc, key) => {
49
+ const breakpointStyleKey = breakpointsInput.up(key);
50
+ acc[breakpointStyleKey] = {};
51
+ return acc;
52
+ }, {});
53
+ return breakpointsInOrder || {};
54
+ }
55
+ function removeUnusedBreakpoints(breakpointKeys, style) {
56
+ return breakpointKeys.reduce((acc, key) => {
57
+ const breakpointOutput = acc[key];
58
+ const isBreakpointUnused = !breakpointOutput || Object.keys(breakpointOutput).length === 0;
59
+ if (isBreakpointUnused) {
60
+ delete acc[key];
61
+ }
62
+ return acc;
63
+ }, style);
64
+ }
65
+
66
+ export { createEmptyBreakpointObject, handleBreakpoints, removeUnusedBreakpoints, values };
67
+ //# sourceMappingURL=breakpoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breakpoints.js","sources":["../../../../../node_modules/@mui/system/esm/breakpoints.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport PropTypes from 'prop-types';\nimport deepmerge from '@mui/utils/deepmerge';\nimport merge from './merge';\n\n// The breakpoint **start** at this value.\n// For instance with the first breakpoint xs: [xs, sm[.\nexport const values = {\n xs: 0,\n // phone\n sm: 600,\n // tablet\n md: 900,\n // small laptop\n lg: 1200,\n // desktop\n xl: 1536 // large screen\n};\nconst defaultBreakpoints = {\n // Sorted ASC by size. That's important.\n // It can't be configured as it's used statically for propTypes.\n keys: ['xs', 'sm', 'md', 'lg', 'xl'],\n up: key => `@media (min-width:${values[key]}px)`\n};\nexport function handleBreakpoints(props, propValue, styleFromPropValue) {\n const theme = props.theme || {};\n if (Array.isArray(propValue)) {\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n return propValue.reduce((acc, item, index) => {\n acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]);\n return acc;\n }, {});\n }\n if (typeof propValue === 'object') {\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n return Object.keys(propValue).reduce((acc, breakpoint) => {\n // key is breakpoint\n if (Object.keys(themeBreakpoints.values || values).indexOf(breakpoint) !== -1) {\n const mediaKey = themeBreakpoints.up(breakpoint);\n acc[mediaKey] = styleFromPropValue(propValue[breakpoint], breakpoint);\n } else {\n const cssKey = breakpoint;\n acc[cssKey] = propValue[cssKey];\n }\n return acc;\n }, {});\n }\n const output = styleFromPropValue(propValue);\n return output;\n}\nfunction breakpoints(styleFunction) {\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const newStyleFunction = props => {\n const theme = props.theme || {};\n const base = styleFunction(props);\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n const extended = themeBreakpoints.keys.reduce((acc, key) => {\n if (props[key]) {\n acc = acc || {};\n acc[themeBreakpoints.up(key)] = styleFunction(_extends({\n theme\n }, props[key]));\n }\n return acc;\n }, null);\n return merge(base, extended);\n };\n newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? _extends({}, styleFunction.propTypes, {\n xs: PropTypes.object,\n sm: PropTypes.object,\n md: PropTypes.object,\n lg: PropTypes.object,\n xl: PropTypes.object\n }) : {};\n newStyleFunction.filterProps = ['xs', 'sm', 'md', 'lg', 'xl', ...styleFunction.filterProps];\n return newStyleFunction;\n}\nexport function createEmptyBreakpointObject(breakpointsInput = {}) {\n var _breakpointsInput$key;\n const breakpointsInOrder = (_breakpointsInput$key = breakpointsInput.keys) == null ? void 0 : _breakpointsInput$key.reduce((acc, key) => {\n const breakpointStyleKey = breakpointsInput.up(key);\n acc[breakpointStyleKey] = {};\n return acc;\n }, {});\n return breakpointsInOrder || {};\n}\nexport function removeUnusedBreakpoints(breakpointKeys, style) {\n return breakpointKeys.reduce((acc, key) => {\n const breakpointOutput = acc[key];\n const isBreakpointUnused = !breakpointOutput || Object.keys(breakpointOutput).length === 0;\n if (isBreakpointUnused) {\n delete acc[key];\n }\n return acc;\n }, style);\n}\nexport function mergeBreakpointsInOrder(breakpointsInput, ...styles) {\n const emptyBreakpoints = createEmptyBreakpointObject(breakpointsInput);\n const mergedOutput = [emptyBreakpoints, ...styles].reduce((prev, next) => deepmerge(prev, next), {});\n return removeUnusedBreakpoints(Object.keys(emptyBreakpoints), mergedOutput);\n}\n\n// compute base for responsive values; e.g.,\n// [1,2,3] => {xs: true, sm: true, md: true}\n// {xs: 1, sm: 2, md: 3} => {xs: true, sm: true, md: true}\nexport function computeBreakpointsBase(breakpointValues, themeBreakpoints) {\n // fixed value\n if (typeof breakpointValues !== 'object') {\n return {};\n }\n const base = {};\n const breakpointsKeys = Object.keys(themeBreakpoints);\n if (Array.isArray(breakpointValues)) {\n breakpointsKeys.forEach((breakpoint, i) => {\n if (i < breakpointValues.length) {\n base[breakpoint] = true;\n }\n });\n } else {\n breakpointsKeys.forEach(breakpoint => {\n if (breakpointValues[breakpoint] != null) {\n base[breakpoint] = true;\n }\n });\n }\n return base;\n}\nexport function resolveBreakpointValues({\n values: breakpointValues,\n breakpoints: themeBreakpoints,\n base: customBase\n}) {\n const base = customBase || computeBreakpointsBase(breakpointValues, themeBreakpoints);\n const keys = Object.keys(base);\n if (keys.length === 0) {\n return breakpointValues;\n }\n let previous;\n return keys.reduce((acc, breakpoint, i) => {\n if (Array.isArray(breakpointValues)) {\n acc[breakpoint] = breakpointValues[i] != null ? breakpointValues[i] : breakpointValues[previous];\n previous = i;\n } else if (typeof breakpointValues === 'object') {\n acc[breakpoint] = breakpointValues[breakpoint] != null ? breakpointValues[breakpoint] : breakpointValues[previous];\n previous = breakpoint;\n } else {\n acc[breakpoint] = breakpointValues;\n }\n return acc;\n }, {});\n}\nexport default breakpoints;"],"names":[],"mappings":"AAKA;AACA;AACY,MAAC,MAAM,GAAG;AACtB,EAAE,EAAE,EAAE,CAAC;AACP;AACA,EAAE,EAAE,EAAE,GAAG;AACT;AACA,EAAE,EAAE,EAAE,GAAG;AACT;AACA,EAAE,EAAE,EAAE,IAAI;AACV;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C,GAAG,CAAC;AACrB,IAAI;AACJ,IAAI,OAAO,GAAG;AACd,EAAE,CAAC,EAAE,KAAK,CAAC;AACX;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,27 @@
1
+ import merge from './merge.js';
2
+
3
+ function compose(...styles) {
4
+ const handlers = styles.reduce((acc, style) => {
5
+ style.filterProps.forEach(prop => {
6
+ acc[prop] = style;
7
+ });
8
+ return acc;
9
+ }, {});
10
+
11
+ // false positive
12
+ // eslint-disable-next-line react/function-component-definition
13
+ const fn = props => {
14
+ return Object.keys(props).reduce((acc, prop) => {
15
+ if (handlers[prop]) {
16
+ return merge(acc, handlers[prop](props));
17
+ }
18
+ return acc;
19
+ }, {});
20
+ };
21
+ fn.propTypes = process.env.NODE_ENV !== 'production' ? styles.reduce((acc, style) => Object.assign(acc, style.propTypes), {}) : {};
22
+ fn.filterProps = styles.reduce((acc, style) => acc.concat(style.filterProps), []);
23
+ return fn;
24
+ }
25
+
26
+ export { compose as default };
27
+ //# sourceMappingURL=compose.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compose.js","sources":["../../../../../node_modules/@mui/system/esm/compose.js"],"sourcesContent":["import merge from './merge';\nfunction compose(...styles) {\n const handlers = styles.reduce((acc, style) => {\n style.filterProps.forEach(prop => {\n acc[prop] = style;\n });\n return acc;\n }, {});\n\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const fn = props => {\n return Object.keys(props).reduce((acc, prop) => {\n if (handlers[prop]) {\n return merge(acc, handlers[prop](props));\n }\n return acc;\n }, {});\n };\n fn.propTypes = process.env.NODE_ENV !== 'production' ? styles.reduce((acc, style) => Object.assign(acc, style.propTypes), {}) : {};\n fn.filterProps = styles.reduce((acc, style) => acc.concat(style.filterProps), []);\n return fn;\n}\nexport default compose;"],"names":[],"mappings":";;AACA,SAAS,OAAO,CAAC,GAAG,MAAM,EAAE;AAC5B,EAAE,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,KAAK;AACjD,IAAI,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,IAAI;AACtC,MAAM,GAAG,CAAC,IAAI,CAAC,GAAG,KAAK;AACvB,IAAI,CAAC,CAAC;AACN,IAAI,OAAO,GAAG;AACd,EAAE,CAAC,EAAE,EAAE,CAAC;;AAER;AACA;AACA,EAAE,MAAM,EAAE,GAAG,KAAK,IAAI;AACtB,IAAI,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,KAAK;AACpD,MAAM,IAAI,QAAQ,CAAC,IAAI,CAAC,EAAE;AAC1B,QAAQ,OAAO,KAAK,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC;AAChD,MAAM;AACN,MAAM,OAAO,GAAG;AAChB,IAAI,CAAC,EAAE,EAAE,CAAC;AACV,EAAE,CAAC;AACH,EAAE,EAAE,CAAC,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,KAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,EAAE,EAAE,CAAC,GAAG,EAAE;AACpI,EAAE,EAAE,CAAC,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,KAAK,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE,EAAE,CAAC;AACnF,EAAE,OAAO,EAAE;AACX;;;;","x_google_ignoreList":[0]}