@sis-cc/dotstatsuite-components 22.5.0 → 23.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (477) hide show
  1. package/dist/_virtual/index.js +4 -5
  2. package/dist/_virtual/index.js.map +1 -1
  3. package/dist/_virtual/index2.js +4 -5
  4. package/dist/_virtual/index2.js.map +1 -1
  5. package/dist/_virtual/index3.js +4 -4
  6. package/dist/_virtual/index4.js +2 -6
  7. package/dist/_virtual/index4.js.map +1 -1
  8. package/dist/_virtual/index5.js +3 -5
  9. package/dist/_virtual/index5.js.map +1 -1
  10. package/dist/_virtual/index6.js +2 -6
  11. package/dist/_virtual/index6.js.map +1 -1
  12. package/dist/_virtual/index7.js +2 -6
  13. package/dist/_virtual/index7.js.map +1 -1
  14. package/dist/bridge-d3-react/src/index.js +1 -2
  15. package/dist/bridge-d3-react/src/index.js.map +1 -1
  16. package/dist/node_modules/@mui/styles/StylesProvider/StylesProvider.js +1 -1
  17. package/dist/node_modules/@mui/system/colorManipulator.js +2 -2
  18. package/dist/node_modules/@mui/system/esm/responsivePropType.js +1 -1
  19. package/dist/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js +1 -1
  20. package/dist/node_modules/@mui/utils/node_modules/react-is/index.js +1 -1
  21. package/dist/node_modules/date-fns/esm/_lib/defaultOptions/index.js +7 -0
  22. package/dist/node_modules/date-fns/esm/_lib/defaultOptions/index.js.map +1 -0
  23. package/dist/node_modules/date-fns/esm/_lib/isSameUTCWeek/index.js +12 -0
  24. package/dist/node_modules/date-fns/esm/_lib/isSameUTCWeek/index.js.map +1 -0
  25. package/dist/node_modules/date-fns/esm/_lib/requiredArgs/index.js +8 -0
  26. package/dist/node_modules/date-fns/esm/_lib/requiredArgs/index.js.map +1 -0
  27. package/dist/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js +25 -0
  28. package/dist/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js.map +1 -0
  29. package/dist/node_modules/date-fns/esm/_lib/toInteger/index.js +13 -0
  30. package/dist/node_modules/date-fns/esm/_lib/toInteger/index.js.map +1 -0
  31. package/dist/node_modules/date-fns/esm/getISOWeek/index.js +39 -0
  32. package/dist/node_modules/date-fns/esm/getISOWeek/index.js.map +1 -0
  33. package/dist/node_modules/date-fns/esm/getISOWeekYear/index.js +47 -0
  34. package/dist/node_modules/date-fns/esm/getISOWeekYear/index.js.map +1 -0
  35. package/dist/node_modules/date-fns/esm/getTime/index.js +29 -0
  36. package/dist/node_modules/date-fns/esm/getTime/index.js.map +1 -0
  37. package/dist/node_modules/date-fns/esm/isFriday/index.js +27 -0
  38. package/dist/node_modules/date-fns/esm/isFriday/index.js.map +1 -0
  39. package/dist/node_modules/date-fns/esm/isMonday/index.js +27 -0
  40. package/dist/node_modules/date-fns/esm/isMonday/index.js.map +1 -0
  41. package/dist/node_modules/date-fns/esm/isSaturday/index.js +27 -0
  42. package/dist/node_modules/date-fns/esm/isSaturday/index.js.map +1 -0
  43. package/dist/node_modules/date-fns/esm/isSunday/index.js +27 -0
  44. package/dist/node_modules/date-fns/esm/isSunday/index.js.map +1 -0
  45. package/dist/node_modules/date-fns/esm/isThursday/index.js +27 -0
  46. package/dist/node_modules/date-fns/esm/isThursday/index.js.map +1 -0
  47. package/dist/node_modules/date-fns/esm/isTuesday/index.js +27 -0
  48. package/dist/node_modules/date-fns/esm/isTuesday/index.js.map +1 -0
  49. package/dist/node_modules/date-fns/esm/isWednesday/index.js +27 -0
  50. package/dist/node_modules/date-fns/esm/isWednesday/index.js.map +1 -0
  51. package/dist/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js +12 -0
  52. package/dist/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js.map +1 -0
  53. package/dist/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js +21 -0
  54. package/dist/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js.map +1 -0
  55. package/dist/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js +45 -0
  56. package/dist/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js.map +1 -0
  57. package/dist/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js +20 -0
  58. package/dist/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js.map +1 -0
  59. package/dist/node_modules/date-fns/esm/locale/ar/_lib/formatDistance/index.js +119 -0
  60. package/dist/node_modules/date-fns/esm/locale/ar/_lib/formatDistance/index.js.map +1 -0
  61. package/dist/node_modules/date-fns/esm/locale/ar/_lib/formatLong/index.js +37 -0
  62. package/dist/node_modules/date-fns/esm/locale/ar/_lib/formatLong/index.js.map +1 -0
  63. package/dist/node_modules/date-fns/esm/locale/ar/_lib/formatRelative/index.js +14 -0
  64. package/dist/node_modules/date-fns/esm/locale/ar/_lib/formatRelative/index.js.map +1 -0
  65. package/dist/node_modules/date-fns/esm/locale/ar/_lib/localize/index.js +121 -0
  66. package/dist/node_modules/date-fns/esm/locale/ar/_lib/localize/index.js.map +1 -0
  67. package/dist/node_modules/date-fns/esm/locale/ar/_lib/match/index.js +102 -0
  68. package/dist/node_modules/date-fns/esm/locale/ar/_lib/match/index.js.map +1 -0
  69. package/dist/node_modules/date-fns/esm/locale/ar/index.js +30 -0
  70. package/dist/node_modules/date-fns/esm/locale/ar/index.js.map +1 -0
  71. package/dist/node_modules/date-fns/esm/locale/de/_lib/formatDistance/index.js +178 -0
  72. package/dist/node_modules/date-fns/esm/locale/de/_lib/formatDistance/index.js.map +1 -0
  73. package/dist/node_modules/date-fns/esm/locale/de/_lib/formatLong/index.js +42 -0
  74. package/dist/node_modules/date-fns/esm/locale/de/_lib/formatLong/index.js.map +1 -0
  75. package/dist/node_modules/date-fns/esm/locale/de/_lib/formatRelative/index.js +14 -0
  76. package/dist/node_modules/date-fns/esm/locale/de/_lib/formatRelative/index.js.map +1 -0
  77. package/dist/node_modules/date-fns/esm/locale/de/_lib/localize/index.js +137 -0
  78. package/dist/node_modules/date-fns/esm/locale/de/_lib/localize/index.js.map +1 -0
  79. package/dist/node_modules/date-fns/esm/locale/de/_lib/match/index.js +103 -0
  80. package/dist/node_modules/date-fns/esm/locale/de/_lib/match/index.js.map +1 -0
  81. package/dist/node_modules/date-fns/esm/locale/de/index.js +33 -0
  82. package/dist/node_modules/date-fns/esm/locale/de/index.js.map +1 -0
  83. package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js +85 -0
  84. package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js.map +1 -0
  85. package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js +37 -0
  86. package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js.map +1 -0
  87. package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js +14 -0
  88. package/dist/node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js.map +1 -0
  89. package/dist/node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js +146 -0
  90. package/dist/node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js.map +1 -0
  91. package/dist/node_modules/date-fns/esm/locale/en-US/_lib/match/index.js +101 -0
  92. package/dist/node_modules/date-fns/esm/locale/en-US/_lib/match/index.js.map +1 -0
  93. package/dist/node_modules/date-fns/esm/locale/en-US/index.js +30 -0
  94. package/dist/node_modules/date-fns/esm/locale/en-US/index.js.map +1 -0
  95. package/dist/node_modules/date-fns/esm/locale/es/_lib/formatDistance/index.js +85 -0
  96. package/dist/node_modules/date-fns/esm/locale/es/_lib/formatDistance/index.js.map +1 -0
  97. package/dist/node_modules/date-fns/esm/locale/es/_lib/formatLong/index.js +37 -0
  98. package/dist/node_modules/date-fns/esm/locale/es/_lib/formatLong/index.js.map +1 -0
  99. package/dist/node_modules/date-fns/esm/locale/es/_lib/formatRelative/index.js +26 -0
  100. package/dist/node_modules/date-fns/esm/locale/es/_lib/formatRelative/index.js.map +1 -0
  101. package/dist/node_modules/date-fns/esm/locale/es/_lib/localize/index.js +122 -0
  102. package/dist/node_modules/date-fns/esm/locale/es/_lib/localize/index.js.map +1 -0
  103. package/dist/node_modules/date-fns/esm/locale/es/_lib/match/index.js +102 -0
  104. package/dist/node_modules/date-fns/esm/locale/es/_lib/match/index.js.map +1 -0
  105. package/dist/node_modules/date-fns/esm/locale/es/index.js +33 -0
  106. package/dist/node_modules/date-fns/esm/locale/es/index.js.map +1 -0
  107. package/dist/node_modules/date-fns/esm/locale/fr/_lib/formatDistance/index.js +85 -0
  108. package/dist/node_modules/date-fns/esm/locale/fr/_lib/formatDistance/index.js.map +1 -0
  109. package/dist/node_modules/date-fns/esm/locale/fr/_lib/formatLong/index.js +37 -0
  110. package/dist/node_modules/date-fns/esm/locale/fr/_lib/formatLong/index.js.map +1 -0
  111. package/dist/node_modules/date-fns/esm/locale/fr/_lib/formatRelative/index.js +14 -0
  112. package/dist/node_modules/date-fns/esm/locale/fr/_lib/formatRelative/index.js.map +1 -0
  113. package/dist/node_modules/date-fns/esm/locale/fr/_lib/localize/index.js +97 -0
  114. package/dist/node_modules/date-fns/esm/locale/fr/_lib/localize/index.js.map +1 -0
  115. package/dist/node_modules/date-fns/esm/locale/fr/_lib/match/index.js +101 -0
  116. package/dist/node_modules/date-fns/esm/locale/fr/_lib/match/index.js.map +1 -0
  117. package/dist/node_modules/date-fns/esm/locale/fr/index.js +30 -0
  118. package/dist/node_modules/date-fns/esm/locale/fr/index.js.map +1 -0
  119. package/dist/node_modules/date-fns/esm/locale/it/_lib/formatDistance/index.js +85 -0
  120. package/dist/node_modules/date-fns/esm/locale/it/_lib/formatDistance/index.js.map +1 -0
  121. package/dist/node_modules/date-fns/esm/locale/it/_lib/formatLong/index.js +37 -0
  122. package/dist/node_modules/date-fns/esm/locale/it/_lib/formatLong/index.js.map +1 -0
  123. package/dist/node_modules/date-fns/esm/locale/it/_lib/formatRelative/index.js +54 -0
  124. package/dist/node_modules/date-fns/esm/locale/it/_lib/formatRelative/index.js.map +1 -0
  125. package/dist/node_modules/date-fns/esm/locale/it/_lib/localize/index.js +122 -0
  126. package/dist/node_modules/date-fns/esm/locale/it/_lib/localize/index.js.map +1 -0
  127. package/dist/node_modules/date-fns/esm/locale/it/_lib/match/index.js +101 -0
  128. package/dist/node_modules/date-fns/esm/locale/it/_lib/match/index.js.map +1 -0
  129. package/dist/node_modules/date-fns/esm/locale/it/index.js +31 -0
  130. package/dist/node_modules/date-fns/esm/locale/it/index.js.map +1 -0
  131. package/dist/node_modules/date-fns/esm/locale/nl/_lib/formatDistance/index.js +85 -0
  132. package/dist/node_modules/date-fns/esm/locale/nl/_lib/formatDistance/index.js.map +1 -0
  133. package/dist/node_modules/date-fns/esm/locale/nl/_lib/formatLong/index.js +37 -0
  134. package/dist/node_modules/date-fns/esm/locale/nl/_lib/formatLong/index.js.map +1 -0
  135. package/dist/node_modules/date-fns/esm/locale/nl/_lib/formatRelative/index.js +14 -0
  136. package/dist/node_modules/date-fns/esm/locale/nl/_lib/formatRelative/index.js.map +1 -0
  137. package/dist/node_modules/date-fns/esm/locale/nl/_lib/localize/index.js +88 -0
  138. package/dist/node_modules/date-fns/esm/locale/nl/_lib/localize/index.js.map +1 -0
  139. package/dist/node_modules/date-fns/esm/locale/nl/_lib/match/index.js +100 -0
  140. package/dist/node_modules/date-fns/esm/locale/nl/_lib/match/index.js.map +1 -0
  141. package/dist/node_modules/date-fns/esm/locale/nl/index.js +34 -0
  142. package/dist/node_modules/date-fns/esm/locale/nl/index.js.map +1 -0
  143. package/dist/node_modules/date-fns/esm/locale/th/_lib/formatDistance/index.js +89 -0
  144. package/dist/node_modules/date-fns/esm/locale/th/_lib/formatDistance/index.js.map +1 -0
  145. package/dist/node_modules/date-fns/esm/locale/th/_lib/formatLong/index.js +37 -0
  146. package/dist/node_modules/date-fns/esm/locale/th/_lib/formatLong/index.js.map +1 -0
  147. package/dist/node_modules/date-fns/esm/locale/th/_lib/formatRelative/index.js +14 -0
  148. package/dist/node_modules/date-fns/esm/locale/th/_lib/formatRelative/index.js.map +1 -0
  149. package/dist/node_modules/date-fns/esm/locale/th/_lib/localize/index.js +121 -0
  150. package/dist/node_modules/date-fns/esm/locale/th/_lib/localize/index.js.map +1 -0
  151. package/dist/node_modules/date-fns/esm/locale/th/_lib/match/index.js +100 -0
  152. package/dist/node_modules/date-fns/esm/locale/th/_lib/match/index.js.map +1 -0
  153. package/dist/node_modules/date-fns/esm/locale/th/index.js +31 -0
  154. package/dist/node_modules/date-fns/esm/locale/th/index.js.map +1 -0
  155. package/dist/node_modules/date-fns/esm/startOfISOWeek/index.js +32 -0
  156. package/dist/node_modules/date-fns/esm/startOfISOWeek/index.js.map +1 -0
  157. package/dist/node_modules/date-fns/esm/startOfISOWeekYear/index.js +37 -0
  158. package/dist/node_modules/date-fns/esm/startOfISOWeekYear/index.js.map +1 -0
  159. package/dist/node_modules/date-fns/esm/startOfWeek/index.js +52 -0
  160. package/dist/node_modules/date-fns/esm/startOfWeek/index.js.map +1 -0
  161. package/dist/node_modules/date-fns/esm/toDate/index.js +56 -0
  162. package/dist/node_modules/date-fns/esm/toDate/index.js.map +1 -0
  163. package/dist/node_modules/prop-types/index.js +1 -1
  164. package/dist/node_modules/react-is/index.js +1 -1
  165. package/dist/rules/src/chart/getAxisOptions.js +22 -22
  166. package/dist/rules/src/chart/getAxisOptions.js.map +1 -1
  167. package/dist/rules/src/chart/getChartOptions.js +1 -1
  168. package/dist/rules/src/chart/getChartOptions.js.map +1 -1
  169. package/dist/rules/src/constants.js +1 -35
  170. package/dist/rules/src/constants.js.map +1 -1
  171. package/dist/rules/src/date.js +40 -40
  172. package/dist/rules/src/date.js.map +1 -1
  173. package/dist/rules/src/dimension-utils.js +26 -24
  174. package/dist/rules/src/dimension-utils.js.map +1 -1
  175. package/dist/rules/src/factories/choro-series.js +43 -32
  176. package/dist/rules/src/factories/choro-series.js.map +1 -1
  177. package/dist/rules/src/factories/focus.js +20 -0
  178. package/dist/rules/src/factories/focus.js.map +1 -0
  179. package/dist/rules/src/factories/getChartSeries.js +11 -0
  180. package/dist/rules/src/factories/getChartSeries.js.map +1 -0
  181. package/dist/rules/src/factories/sample-focus.js +14 -18
  182. package/dist/rules/src/factories/sample-focus.js.map +1 -1
  183. package/dist/rules/src/factories/sample-series.js +20 -20
  184. package/dist/rules/src/factories/sample-series.js.map +1 -1
  185. package/dist/rules/src/factories/scatter-focus.js +21 -35
  186. package/dist/rules/src/factories/scatter-focus.js.map +1 -1
  187. package/dist/rules/src/factories/scatter-series.js +5 -5
  188. package/dist/rules/src/factories/scatter-series.js.map +1 -1
  189. package/dist/rules/src/factories/series.js +48 -0
  190. package/dist/rules/src/factories/series.js.map +1 -0
  191. package/dist/rules/src/factories/stacked-series.js +6 -7
  192. package/dist/rules/src/factories/stacked-series.js.map +1 -1
  193. package/dist/rules/src/factories/symbol-series.js +39 -46
  194. package/dist/rules/src/factories/symbol-series.js.map +1 -1
  195. package/dist/rules/src/factories/timeline-focus.js +10 -14
  196. package/dist/rules/src/factories/timeline-focus.js.map +1 -1
  197. package/dist/rules/src/factories/timeline-series.js +37 -41
  198. package/dist/rules/src/factories/timeline-series.js.map +1 -1
  199. package/dist/rules/src/get-values-enhanced.js +8 -2
  200. package/dist/rules/src/get-values-enhanced.js.map +1 -1
  201. package/dist/rules/src/index.js +6 -371
  202. package/dist/rules/src/index.js.map +1 -1
  203. package/dist/rules/src/layout.js +4 -2
  204. package/dist/rules/src/layout.js.map +1 -1
  205. package/dist/rules/src/observation-formater.js +8 -14
  206. package/dist/rules/src/observation-formater.js.map +1 -1
  207. package/dist/rules/src/properties/focus.js +51 -3
  208. package/dist/rules/src/properties/focus.js.map +1 -1
  209. package/dist/rules/src/properties/getHeaderProps.js +2 -53
  210. package/dist/rules/src/properties/getHeaderProps.js.map +1 -1
  211. package/dist/rules/src/properties/index.js +3 -94
  212. package/dist/rules/src/properties/index.js.map +1 -1
  213. package/dist/rules/src/properties/linear.js +4 -4
  214. package/dist/rules/src/properties/linear.js.map +1 -1
  215. package/dist/rules/src/properties/scatter.js +4 -4
  216. package/dist/rules/src/properties/scatter.js.map +1 -1
  217. package/dist/rules/src/properties/stacked.js +5 -7
  218. package/dist/rules/src/properties/stacked.js.map +1 -1
  219. package/dist/rules/src/properties/symbol.js.map +1 -1
  220. package/dist/rules/src/properties/utils.js +11 -12
  221. package/dist/rules/src/properties/utils.js.map +1 -1
  222. package/dist/rules/src/sdmx-data/index.js +2 -27
  223. package/dist/rules/src/sdmx-data/index.js.map +1 -1
  224. package/dist/rules2/src/combinedValuesDisplay.js +2 -2
  225. package/dist/rules2/src/combinedValuesDisplay.js.map +1 -1
  226. package/dist/rules2/src/getAttributes.js +37 -0
  227. package/dist/rules2/src/getAttributes.js.map +1 -0
  228. package/dist/rules2/src/getDataflowTooltipAttributesIds.js +2 -2
  229. package/dist/rules2/src/getDataflowTooltipAttributesIds.js.map +1 -1
  230. package/dist/rules2/src/getHeaderCombinations.js +1 -1
  231. package/dist/rules2/src/getHeaderCombinations.js.map +1 -1
  232. package/dist/rules2/src/getHeaderSubtitle.js +1 -1
  233. package/dist/rules2/src/getHeaderSubtitle.js.map +1 -1
  234. package/dist/rules2/src/getHeaderTitle.js +1 -1
  235. package/dist/rules2/src/getHeaderTitle.js.map +1 -1
  236. package/dist/rules2/src/getMetadataCoordinates.js +1 -1
  237. package/dist/rules2/src/getMetadataCoordinates.js.map +1 -1
  238. package/dist/rules2/src/getNotDisplayedIds.js +1 -1
  239. package/dist/rules2/src/getNotDisplayedIds.js.map +1 -1
  240. package/dist/rules2/src/index.js +1 -0
  241. package/dist/rules2/src/index.js.map +1 -1
  242. package/dist/rules2/src/parseAttributes.js +2 -2
  243. package/dist/rules2/src/parseAttributes.js.map +1 -1
  244. package/dist/rules2/src/parseHierarchicalCodelist.js +1 -1
  245. package/dist/rules2/src/parseHierarchicalCodelist.js.map +1 -1
  246. package/dist/rules2/src/parseMetadataSeries.js +1 -1
  247. package/dist/rules2/src/parseMetadataSeries.js.map +1 -1
  248. package/dist/rules2/src/prepareData.js +10 -3
  249. package/dist/rules2/src/prepareData.js.map +1 -1
  250. package/dist/rules2/src/refineDimensions.js +53 -8
  251. package/dist/rules2/src/refineDimensions.js.map +1 -1
  252. package/dist/rules2/src/refineTimePeriod.js +12 -16
  253. package/dist/rules2/src/refineTimePeriod.js.map +1 -1
  254. package/dist/rules2/src/table/getCells.js +1 -1
  255. package/dist/rules2/src/table/getCells.js.map +1 -1
  256. package/dist/rules2/src/table/getLayout.js +1 -1
  257. package/dist/rules2/src/table/getLayout.js.map +1 -1
  258. package/dist/rules2/src/table/getTableLayoutIds.js +1 -1
  259. package/dist/rules2/src/table/getTableLayoutIds.js.map +1 -1
  260. package/dist/rules2/src/table/getTableProps.js +0 -1
  261. package/dist/rules2/src/table/getTableProps.js.map +1 -1
  262. package/dist/rules2/src/table/parseValueHierarchy.js.map +1 -1
  263. package/dist/rules2/src/table/refineLayoutSize2.js +1 -1
  264. package/dist/rules2/src/table/refineLayoutSize2.js.map +1 -1
  265. package/dist/rules2/src/utils.js.map +1 -1
  266. package/dist/viewer/src/chart.js +13 -2
  267. package/dist/viewer/src/chart.js.map +1 -1
  268. package/dist/viewer/src/legends/FocusLegend.js +1 -1
  269. package/dist/viewer/src/legends/FocusLegend.js.map +1 -1
  270. package/package.json +7 -6
  271. package/src/bridge-d3-react/src/index.js +0 -1
  272. package/src/rules/src/chart/getAxisOptions.js +33 -21
  273. package/src/rules/src/chart/getChartOptions.js +2 -2
  274. package/src/rules/src/constants.js +0 -35
  275. package/src/rules/src/date.js +6 -12
  276. package/src/rules/src/dimension-utils.js +25 -23
  277. package/src/rules/src/factories/choro-series.js +41 -30
  278. package/src/rules/src/factories/focus.js +17 -0
  279. package/src/rules/src/factories/getChartSeries.js +8 -0
  280. package/src/rules/src/factories/sample-focus.js +14 -18
  281. package/src/rules/src/factories/sample-series.js +20 -20
  282. package/src/rules/src/factories/scatter-focus.js +22 -36
  283. package/src/rules/src/factories/scatter-series.js +8 -8
  284. package/src/rules/src/factories/series.js +45 -0
  285. package/src/rules/src/factories/stacked-series.js +4 -5
  286. package/src/rules/src/factories/symbol-series.js +37 -44
  287. package/src/rules/src/factories/timeline-focus.js +10 -14
  288. package/src/rules/src/factories/timeline-series.js +35 -39
  289. package/src/rules/src/get-values-enhanced.js +8 -2
  290. package/src/rules/src/index.js +7 -384
  291. package/src/rules/src/layout.js +4 -2
  292. package/src/rules/src/observation-formater.js +14 -20
  293. package/src/rules/src/properties/focus.js +50 -2
  294. package/src/rules/src/properties/getHeaderProps.js +1 -53
  295. package/src/rules/src/properties/index.js +2 -93
  296. package/src/rules/src/properties/linear.js +2 -2
  297. package/src/rules/src/properties/scatter.js +4 -4
  298. package/src/rules/src/properties/stacked.js +4 -6
  299. package/src/rules/src/properties/symbol.js +0 -1
  300. package/src/rules/src/properties/utils.js +11 -22
  301. package/src/rules/src/sdmx-data/index.js +2 -31
  302. package/src/rules2/src/combinedValuesDisplay.js +2 -2
  303. package/src/rules2/src/getAttributes.js +34 -0
  304. package/src/rules2/src/getDataflowTooltipAttributesIds.js +2 -2
  305. package/src/rules2/src/getHeaderCombinations.js +1 -1
  306. package/src/rules2/src/getHeaderSubtitle.js +2 -2
  307. package/src/rules2/src/getHeaderTitle.js +1 -1
  308. package/src/rules2/src/getMetadataCoordinates.js +1 -1
  309. package/src/rules2/src/getNotDisplayedIds.js +1 -1
  310. package/src/rules2/src/index.js +1 -0
  311. package/src/rules2/src/parseAttributes.js +2 -2
  312. package/src/rules2/src/parseHierarchicalCodelist.js +1 -1
  313. package/src/rules2/src/parseMetadataSeries.js +1 -1
  314. package/src/rules2/src/prepareData.js +10 -3
  315. package/src/rules2/src/refineDimensions.js +53 -8
  316. package/src/rules2/src/refineTimePeriod.js +12 -16
  317. package/src/rules2/src/table/getCells.js +2 -2
  318. package/src/rules2/src/table/getLayout.js +2 -2
  319. package/src/rules2/src/table/getTableLayoutIds.js +9 -9
  320. package/src/rules2/src/table/getTableProps.js +0 -1
  321. package/src/rules2/src/table/parseValueHierarchy.js +0 -7
  322. package/src/rules2/src/table/refineLayoutSize2.js +5 -5
  323. package/src/rules2/src/utils.js +0 -11
  324. package/src/viewer/src/app/leg.js +0 -1
  325. package/src/viewer/src/chart.jsx +23 -1
  326. package/src/viewer/src/legends/FocusLegend.jsx +1 -1
  327. package/dist/_virtual/index10.js +0 -8
  328. package/dist/_virtual/index10.js.map +0 -1
  329. package/dist/_virtual/index11.js +0 -8
  330. package/dist/_virtual/index11.js.map +0 -1
  331. package/dist/_virtual/index12.js +0 -8
  332. package/dist/_virtual/index12.js.map +0 -1
  333. package/dist/_virtual/index13.js +0 -8
  334. package/dist/_virtual/index13.js.map +0 -1
  335. package/dist/_virtual/index14.js +0 -8
  336. package/dist/_virtual/index14.js.map +0 -1
  337. package/dist/_virtual/index15.js +0 -8
  338. package/dist/_virtual/index15.js.map +0 -1
  339. package/dist/_virtual/index16.js +0 -8
  340. package/dist/_virtual/index16.js.map +0 -1
  341. package/dist/_virtual/index17.js +0 -7
  342. package/dist/_virtual/index17.js.map +0 -1
  343. package/dist/_virtual/index18.js +0 -7
  344. package/dist/_virtual/index18.js.map +0 -1
  345. package/dist/_virtual/index19.js +0 -8
  346. package/dist/_virtual/index19.js.map +0 -1
  347. package/dist/_virtual/index20.js +0 -4
  348. package/dist/_virtual/index20.js.map +0 -1
  349. package/dist/_virtual/index21.js +0 -6
  350. package/dist/_virtual/index21.js.map +0 -1
  351. package/dist/_virtual/index22.js +0 -4
  352. package/dist/_virtual/index22.js.map +0 -1
  353. package/dist/_virtual/index23.js +0 -4
  354. package/dist/_virtual/index23.js.map +0 -1
  355. package/dist/_virtual/index8.js +0 -8
  356. package/dist/_virtual/index8.js.map +0 -1
  357. package/dist/_virtual/index9.js +0 -8
  358. package/dist/_virtual/index9.js.map +0 -1
  359. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds/index.js +0 -32
  360. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds/index.js.map +0 -1
  361. package/dist/node_modules/date-fns/get_iso_week/index.js +0 -49
  362. package/dist/node_modules/date-fns/get_iso_week/index.js.map +0 -1
  363. package/dist/node_modules/date-fns/get_iso_year/index.js +0 -59
  364. package/dist/node_modules/date-fns/get_iso_year/index.js.map +0 -1
  365. package/dist/node_modules/date-fns/is_date/index.js +0 -32
  366. package/dist/node_modules/date-fns/is_date/index.js.map +0 -1
  367. package/dist/node_modules/date-fns/is_friday/index.js +0 -35
  368. package/dist/node_modules/date-fns/is_friday/index.js.map +0 -1
  369. package/dist/node_modules/date-fns/is_monday/index.js +0 -35
  370. package/dist/node_modules/date-fns/is_monday/index.js.map +0 -1
  371. package/dist/node_modules/date-fns/is_saturday/index.js +0 -35
  372. package/dist/node_modules/date-fns/is_saturday/index.js.map +0 -1
  373. package/dist/node_modules/date-fns/is_sunday/index.js +0 -35
  374. package/dist/node_modules/date-fns/is_sunday/index.js.map +0 -1
  375. package/dist/node_modules/date-fns/is_thursday/index.js +0 -35
  376. package/dist/node_modules/date-fns/is_thursday/index.js.map +0 -1
  377. package/dist/node_modules/date-fns/is_tuesday/index.js +0 -35
  378. package/dist/node_modules/date-fns/is_tuesday/index.js.map +0 -1
  379. package/dist/node_modules/date-fns/is_wednesday/index.js +0 -35
  380. package/dist/node_modules/date-fns/is_wednesday/index.js.map +0 -1
  381. package/dist/node_modules/date-fns/locale/_lib/build_formatting_tokens_reg_exp/index.js +0 -39
  382. package/dist/node_modules/date-fns/locale/_lib/build_formatting_tokens_reg_exp/index.js.map +0 -1
  383. package/dist/node_modules/date-fns/locale/ar/build_distance_in_words_locale/index.js +0 -110
  384. package/dist/node_modules/date-fns/locale/ar/build_distance_in_words_locale/index.js.map +0 -1
  385. package/dist/node_modules/date-fns/locale/ar/build_format_locale/index.js +0 -86
  386. package/dist/node_modules/date-fns/locale/ar/build_format_locale/index.js.map +0 -1
  387. package/dist/node_modules/date-fns/locale/ar/index.js +0 -26
  388. package/dist/node_modules/date-fns/locale/ar/index.js.map +0 -1
  389. package/dist/node_modules/date-fns/locale/de/build_distance_in_words_locale/index.js +0 -196
  390. package/dist/node_modules/date-fns/locale/de/build_distance_in_words_locale/index.js.map +0 -1
  391. package/dist/node_modules/date-fns/locale/de/build_format_locale/index.js +0 -90
  392. package/dist/node_modules/date-fns/locale/de/build_format_locale/index.js.map +0 -1
  393. package/dist/node_modules/date-fns/locale/de/index.js +0 -27
  394. package/dist/node_modules/date-fns/locale/de/index.js.map +0 -1
  395. package/dist/node_modules/date-fns/locale/en/build_distance_in_words_locale/index.js +0 -110
  396. package/dist/node_modules/date-fns/locale/en/build_distance_in_words_locale/index.js.map +0 -1
  397. package/dist/node_modules/date-fns/locale/en/build_format_locale/index.js +0 -101
  398. package/dist/node_modules/date-fns/locale/en/build_format_locale/index.js.map +0 -1
  399. package/dist/node_modules/date-fns/locale/en/index.js +0 -25
  400. package/dist/node_modules/date-fns/locale/en/index.js.map +0 -1
  401. package/dist/node_modules/date-fns/locale/es/build_distance_in_words_locale/index.js +0 -110
  402. package/dist/node_modules/date-fns/locale/es/build_distance_in_words_locale/index.js.map +0 -1
  403. package/dist/node_modules/date-fns/locale/es/build_format_locale/index.js +0 -86
  404. package/dist/node_modules/date-fns/locale/es/build_format_locale/index.js.map +0 -1
  405. package/dist/node_modules/date-fns/locale/es/index.js +0 -28
  406. package/dist/node_modules/date-fns/locale/es/index.js.map +0 -1
  407. package/dist/node_modules/date-fns/locale/fr/build_distance_in_words_locale/index.js +0 -110
  408. package/dist/node_modules/date-fns/locale/fr/build_distance_in_words_locale/index.js.map +0 -1
  409. package/dist/node_modules/date-fns/locale/fr/build_format_locale/index.js +0 -135
  410. package/dist/node_modules/date-fns/locale/fr/build_format_locale/index.js.map +0 -1
  411. package/dist/node_modules/date-fns/locale/fr/index.js +0 -27
  412. package/dist/node_modules/date-fns/locale/fr/index.js.map +0 -1
  413. package/dist/node_modules/date-fns/locale/it/build_distance_in_words_locale/index.js +0 -110
  414. package/dist/node_modules/date-fns/locale/it/build_distance_in_words_locale/index.js.map +0 -1
  415. package/dist/node_modules/date-fns/locale/it/build_format_locale/index.js +0 -86
  416. package/dist/node_modules/date-fns/locale/it/build_format_locale/index.js.map +0 -1
  417. package/dist/node_modules/date-fns/locale/it/index.js +0 -26
  418. package/dist/node_modules/date-fns/locale/it/index.js.map +0 -1
  419. package/dist/node_modules/date-fns/locale/nl/build_distance_in_words_locale/index.js +0 -110
  420. package/dist/node_modules/date-fns/locale/nl/build_distance_in_words_locale/index.js.map +0 -1
  421. package/dist/node_modules/date-fns/locale/nl/build_format_locale/index.js +0 -86
  422. package/dist/node_modules/date-fns/locale/nl/build_format_locale/index.js.map +0 -1
  423. package/dist/node_modules/date-fns/locale/nl/index.js +0 -27
  424. package/dist/node_modules/date-fns/locale/nl/index.js.map +0 -1
  425. package/dist/node_modules/date-fns/locale/th/build_distance_in_words_locale/index.js +0 -114
  426. package/dist/node_modules/date-fns/locale/th/build_distance_in_words_locale/index.js.map +0 -1
  427. package/dist/node_modules/date-fns/locale/th/build_format_locale/index.js +0 -74
  428. package/dist/node_modules/date-fns/locale/th/build_format_locale/index.js.map +0 -1
  429. package/dist/node_modules/date-fns/locale/th/index.js +0 -26
  430. package/dist/node_modules/date-fns/locale/th/index.js.map +0 -1
  431. package/dist/node_modules/date-fns/parse/index.js +0 -346
  432. package/dist/node_modules/date-fns/parse/index.js.map +0 -1
  433. package/dist/node_modules/date-fns/start_of_iso_week/index.js +0 -38
  434. package/dist/node_modules/date-fns/start_of_iso_week/index.js.map +0 -1
  435. package/dist/node_modules/date-fns/start_of_iso_year/index.js +0 -46
  436. package/dist/node_modules/date-fns/start_of_iso_year/index.js.map +0 -1
  437. package/dist/node_modules/date-fns/start_of_week/index.js +0 -51
  438. package/dist/node_modules/date-fns/start_of_week/index.js.map +0 -1
  439. package/dist/rules/src/factories/scatter-dimension.js +0 -35
  440. package/dist/rules/src/factories/scatter-dimension.js.map +0 -1
  441. package/dist/rules/src/factories/stacked-dimension.js +0 -32
  442. package/dist/rules/src/factories/stacked-dimension.js.map +0 -1
  443. package/dist/rules/src/factories/symbol-dimension.js +0 -32
  444. package/dist/rules/src/factories/symbol-dimension.js.map +0 -1
  445. package/dist/rules/src/header/getDefaultSubtitle.js +0 -44
  446. package/dist/rules/src/header/getDefaultSubtitle.js.map +0 -1
  447. package/dist/rules/src/header/getHeaderUnits.js +0 -21
  448. package/dist/rules/src/header/getHeaderUnits.js.map +0 -1
  449. package/dist/rules/src/header/getSubtitleFlags.js +0 -47
  450. package/dist/rules/src/header/getSubtitleFlags.js.map +0 -1
  451. package/dist/rules/src/header/getTitleFlags.js +0 -12
  452. package/dist/rules/src/header/getTitleFlags.js.map +0 -1
  453. package/dist/rules/src/properties/errors.js +0 -22
  454. package/dist/rules/src/properties/errors.js.map +0 -1
  455. package/dist/rules/src/properties/getInformationsStateFromNewProps.js +0 -50
  456. package/dist/rules/src/properties/getInformationsStateFromNewProps.js.map +0 -1
  457. package/dist/rules/src/v8-transformer.js +0 -174
  458. package/dist/rules/src/v8-transformer.js.map +0 -1
  459. package/src/bridge-d3-react/src/app.js +0 -64
  460. package/src/bridge-d3-react/src/mock-choro.js +0 -394
  461. package/src/rules/src/factories/scatter-dimension.js +0 -32
  462. package/src/rules/src/factories/stacked-dimension.js +0 -29
  463. package/src/rules/src/factories/symbol-dimension.js +0 -29
  464. package/src/rules/src/header/getDefaultSubtitle.js +0 -40
  465. package/src/rules/src/header/getHeaderUnits.js +0 -17
  466. package/src/rules/src/header/getSubtitleFlags.js +0 -43
  467. package/src/rules/src/header/getTitleFlags.js +0 -8
  468. package/src/rules/src/header/index.js +0 -4
  469. package/src/rules/src/preparators/enhanceObservations.js +0 -152
  470. package/src/rules/src/properties/errors.js +0 -19
  471. package/src/rules/src/properties/getInformationsStateFromNewProps.js +0 -47
  472. package/src/rules/src/properties/information.js +0 -84
  473. package/src/rules/src/v8-transformer.js +0 -177
  474. package/src/rules2/src/getAdvAttrSeriesAtCoordinates.js +0 -29
  475. package/src/rules2/src/getMetadataStructureFromData.js +0 -17
  476. package/src/rules2/src/refineMetadataCoordinates.js +0 -28
  477. package/src/rules2/src/table/getCombinationDimensionsData.js +0 -39
@@ -1,32 +0,0 @@
1
- var getTimezoneOffsetInMilliseconds;
2
- var hasRequiredGetTimezoneOffsetInMilliseconds;
3
-
4
- function requireGetTimezoneOffsetInMilliseconds () {
5
- if (hasRequiredGetTimezoneOffsetInMilliseconds) return getTimezoneOffsetInMilliseconds;
6
- hasRequiredGetTimezoneOffsetInMilliseconds = 1;
7
- var MILLISECONDS_IN_MINUTE = 60000;
8
-
9
- /**
10
- * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
11
- * They usually appear for dates that denote time before the timezones were introduced
12
- * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891
13
- * and GMT+01:00:00 after that date)
14
- *
15
- * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,
16
- * which would lead to incorrect calculations.
17
- *
18
- * This function returns the timezone offset in milliseconds that takes seconds in account.
19
- */
20
- getTimezoneOffsetInMilliseconds = function getTimezoneOffsetInMilliseconds (dirtyDate) {
21
- var date = new Date(dirtyDate.getTime());
22
- var baseTimezoneOffset = date.getTimezoneOffset();
23
- date.setSeconds(0, 0);
24
- var millisecondsPartOfTimezoneOffset = date.getTime() % MILLISECONDS_IN_MINUTE;
25
-
26
- return baseTimezoneOffset * MILLISECONDS_IN_MINUTE + millisecondsPartOfTimezoneOffset
27
- };
28
- return getTimezoneOffsetInMilliseconds;
29
- }
30
-
31
- export { requireGetTimezoneOffsetInMilliseconds as __require };
32
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds/index.js"],"sourcesContent":["var MILLISECONDS_IN_MINUTE = 60000\n\n/**\n * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.\n * They usually appear for dates that denote time before the timezones were introduced\n * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891\n * and GMT+01:00:00 after that date)\n *\n * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,\n * which would lead to incorrect calculations.\n *\n * This function returns the timezone offset in milliseconds that takes seconds in account.\n */\nmodule.exports = function getTimezoneOffsetInMilliseconds (dirtyDate) {\n var date = new Date(dirtyDate.getTime())\n var baseTimezoneOffset = date.getTimezoneOffset()\n date.setSeconds(0, 0)\n var millisecondsPartOfTimezoneOffset = date.getTime() % MILLISECONDS_IN_MINUTE\n\n return baseTimezoneOffset * MILLISECONDS_IN_MINUTE + millisecondsPartOfTimezoneOffset\n}\n"],"names":[],"mappings":";;;;;;AAAA,CAAA,IAAI,sBAAsB,GAAG;;AAE7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAA,+BAAc,GAAG,SAAS,+BAA+B,EAAE,SAAS,EAAE;GACpE,IAAI,IAAI,GAAG,IAAI,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE;AACzC,GAAE,IAAI,kBAAkB,GAAG,IAAI,CAAC,iBAAiB;AACjD,GAAE,IAAI,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC;AACtB,GAAE,IAAI,gCAAgC,GAAG,IAAI,CAAC,OAAO,EAAE,GAAG;;AAE1D,GAAE,OAAO,kBAAkB,GAAG,sBAAsB,GAAG;AACvD,CAAA;;;;;;","x_google_ignoreList":[0]}
@@ -1,49 +0,0 @@
1
- import { __require as requireParse } from '../parse/index.js';
2
- import { __require as requireStart_of_iso_week } from '../start_of_iso_week/index.js';
3
- import { __require as requireStart_of_iso_year } from '../start_of_iso_year/index.js';
4
-
5
- var get_iso_week;
6
- var hasRequiredGet_iso_week;
7
-
8
- function requireGet_iso_week () {
9
- if (hasRequiredGet_iso_week) return get_iso_week;
10
- hasRequiredGet_iso_week = 1;
11
- var parse = requireParse();
12
- var startOfISOWeek = requireStart_of_iso_week();
13
- var startOfISOYear = requireStart_of_iso_year();
14
-
15
- var MILLISECONDS_IN_WEEK = 604800000;
16
-
17
- /**
18
- * @category ISO Week Helpers
19
- * @summary Get the ISO week of the given date.
20
- *
21
- * @description
22
- * Get the ISO week of the given date.
23
- *
24
- * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
25
- *
26
- * @param {Date|String|Number} date - the given date
27
- * @returns {Number} the ISO week
28
- *
29
- * @example
30
- * // Which week of the ISO-week numbering year is 2 January 2005?
31
- * var result = getISOWeek(new Date(2005, 0, 2))
32
- * //=> 53
33
- */
34
- function getISOWeek (dirtyDate) {
35
- var date = parse(dirtyDate);
36
- var diff = startOfISOWeek(date).getTime() - startOfISOYear(date).getTime();
37
-
38
- // Round the number of days to the nearest integer
39
- // because the number of milliseconds in a week is not constant
40
- // (e.g. it's different in the week of the daylight saving time clock shift)
41
- return Math.round(diff / MILLISECONDS_IN_WEEK) + 1
42
- }
43
-
44
- get_iso_week = getISOWeek;
45
- return get_iso_week;
46
- }
47
-
48
- export { requireGet_iso_week as __require };
49
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../node_modules/date-fns/get_iso_week/index.js"],"sourcesContent":["var parse = require('../parse/index.js')\nvar startOfISOWeek = require('../start_of_iso_week/index.js')\nvar startOfISOYear = require('../start_of_iso_year/index.js')\n\nvar MILLISECONDS_IN_WEEK = 604800000\n\n/**\n * @category ISO Week Helpers\n * @summary Get the ISO week of the given date.\n *\n * @description\n * Get the ISO week of the given date.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param {Date|String|Number} date - the given date\n * @returns {Number} the ISO week\n *\n * @example\n * // Which week of the ISO-week numbering year is 2 January 2005?\n * var result = getISOWeek(new Date(2005, 0, 2))\n * //=> 53\n */\nfunction getISOWeek (dirtyDate) {\n var date = parse(dirtyDate)\n var diff = startOfISOWeek(date).getTime() - startOfISOYear(date).getTime()\n\n // Round the number of days to the nearest integer\n // because the number of milliseconds in a week is not constant\n // (e.g. it's different in the week of the daylight saving time clock shift)\n return Math.round(diff / MILLISECONDS_IN_WEEK) + 1\n}\n\nmodule.exports = getISOWeek\n"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;AAAA,CAAA,IAAI,KAAK,GAAGA,YAAA;AACZ,CAAA,IAAI,cAAc,GAAGC,wBAAA;AACrB,CAAA,IAAI,cAAc,GAAGC,wBAAA;;AAErB,CAAA,IAAI,oBAAoB,GAAG;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,UAAU,EAAE,SAAS,EAAE;AAChC,GAAE,IAAI,IAAI,GAAG,KAAK,CAAC,SAAS;AAC5B,GAAE,IAAI,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC,OAAO;;AAE1E;AACA;AACA;GACE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,oBAAoB,CAAC,GAAG;AACnD,CAAA;;AAEA,CAAA,YAAc,GAAG;;;;;;","x_google_ignoreList":[0]}
@@ -1,59 +0,0 @@
1
- import { __require as requireParse } from '../parse/index.js';
2
- import { __require as requireStart_of_iso_week } from '../start_of_iso_week/index.js';
3
-
4
- var get_iso_year;
5
- var hasRequiredGet_iso_year;
6
-
7
- function requireGet_iso_year () {
8
- if (hasRequiredGet_iso_year) return get_iso_year;
9
- hasRequiredGet_iso_year = 1;
10
- var parse = requireParse();
11
- var startOfISOWeek = requireStart_of_iso_week();
12
-
13
- /**
14
- * @category ISO Week-Numbering Year Helpers
15
- * @summary Get the ISO week-numbering year of the given date.
16
- *
17
- * @description
18
- * Get the ISO week-numbering year of the given date,
19
- * which always starts 3 days before the year's first Thursday.
20
- *
21
- * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
22
- *
23
- * @param {Date|String|Number} date - the given date
24
- * @returns {Number} the ISO week-numbering year
25
- *
26
- * @example
27
- * // Which ISO-week numbering year is 2 January 2005?
28
- * var result = getISOYear(new Date(2005, 0, 2))
29
- * //=> 2004
30
- */
31
- function getISOYear (dirtyDate) {
32
- var date = parse(dirtyDate);
33
- var year = date.getFullYear();
34
-
35
- var fourthOfJanuaryOfNextYear = new Date(0);
36
- fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);
37
- fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);
38
- var startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear);
39
-
40
- var fourthOfJanuaryOfThisYear = new Date(0);
41
- fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);
42
- fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);
43
- var startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear);
44
-
45
- if (date.getTime() >= startOfNextYear.getTime()) {
46
- return year + 1
47
- } else if (date.getTime() >= startOfThisYear.getTime()) {
48
- return year
49
- } else {
50
- return year - 1
51
- }
52
- }
53
-
54
- get_iso_year = getISOYear;
55
- return get_iso_year;
56
- }
57
-
58
- export { requireGet_iso_year as __require };
59
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../node_modules/date-fns/get_iso_year/index.js"],"sourcesContent":["var parse = require('../parse/index.js')\nvar startOfISOWeek = require('../start_of_iso_week/index.js')\n\n/**\n * @category ISO Week-Numbering Year Helpers\n * @summary Get the ISO week-numbering year of the given date.\n *\n * @description\n * Get the ISO week-numbering year of the given date,\n * which always starts 3 days before the year's first Thursday.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param {Date|String|Number} date - the given date\n * @returns {Number} the ISO week-numbering year\n *\n * @example\n * // Which ISO-week numbering year is 2 January 2005?\n * var result = getISOYear(new Date(2005, 0, 2))\n * //=> 2004\n */\nfunction getISOYear (dirtyDate) {\n var date = parse(dirtyDate)\n var year = date.getFullYear()\n\n var fourthOfJanuaryOfNextYear = new Date(0)\n fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4)\n fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0)\n var startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear)\n\n var fourthOfJanuaryOfThisYear = new Date(0)\n fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4)\n fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0)\n var startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear)\n\n if (date.getTime() >= startOfNextYear.getTime()) {\n return year + 1\n } else if (date.getTime() >= startOfThisYear.getTime()) {\n return year\n } else {\n return year - 1\n }\n}\n\nmodule.exports = getISOYear\n"],"names":["require$$0","require$$1"],"mappings":";;;;;;;;;AAAA,CAAA,IAAI,KAAK,GAAGA,YAAA;AACZ,CAAA,IAAI,cAAc,GAAGC,wBAAA;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,UAAU,EAAE,SAAS,EAAE;AAChC,GAAE,IAAI,IAAI,GAAG,KAAK,CAAC,SAAS;AAC5B,GAAE,IAAI,IAAI,GAAG,IAAI,CAAC,WAAW;;AAE7B,GAAE,IAAI,yBAAyB,GAAG,IAAI,IAAI,CAAC,CAAC;GAC1C,yBAAyB,CAAC,WAAW,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC;GACpD,yBAAyB,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;AAC/C,GAAE,IAAI,eAAe,GAAG,cAAc,CAAC,yBAAyB;;AAEhE,GAAE,IAAI,yBAAyB,GAAG,IAAI,IAAI,CAAC,CAAC;GAC1C,yBAAyB,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC;GAChD,yBAAyB,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;AAC/C,GAAE,IAAI,eAAe,GAAG,cAAc,CAAC,yBAAyB;;GAE9D,IAAI,IAAI,CAAC,OAAO,EAAE,IAAI,eAAe,CAAC,OAAO,EAAE,EAAE;KAC/C,OAAO,IAAI,GAAG;GAClB,CAAG,MAAM,IAAI,IAAI,CAAC,OAAO,EAAE,IAAI,eAAe,CAAC,OAAO,EAAE,EAAE;AAC1D,KAAI,OAAO;AACX,GAAA,CAAG,MAAM;KACL,OAAO,IAAI,GAAG;AAClB,GAAA;AACA,CAAA;;AAEA,CAAA,YAAc,GAAG;;;;;;","x_google_ignoreList":[0]}
@@ -1,32 +0,0 @@
1
- /**
2
- * @category Common Helpers
3
- * @summary Is the given argument an instance of Date?
4
- *
5
- * @description
6
- * Is the given argument an instance of Date?
7
- *
8
- * @param {*} argument - the argument to check
9
- * @returns {Boolean} the given argument is an instance of Date
10
- *
11
- * @example
12
- * // Is 'mayonnaise' a Date?
13
- * var result = isDate('mayonnaise')
14
- * //=> false
15
- */
16
-
17
- var is_date;
18
- var hasRequiredIs_date;
19
-
20
- function requireIs_date () {
21
- if (hasRequiredIs_date) return is_date;
22
- hasRequiredIs_date = 1;
23
- function isDate (argument) {
24
- return argument instanceof Date
25
- }
26
-
27
- is_date = isDate;
28
- return is_date;
29
- }
30
-
31
- export { requireIs_date as __require };
32
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../node_modules/date-fns/is_date/index.js"],"sourcesContent":["/**\n * @category Common Helpers\n * @summary Is the given argument an instance of Date?\n *\n * @description\n * Is the given argument an instance of Date?\n *\n * @param {*} argument - the argument to check\n * @returns {Boolean} the given argument is an instance of Date\n *\n * @example\n * // Is 'mayonnaise' a Date?\n * var result = isDate('mayonnaise')\n * //=> false\n */\nfunction isDate (argument) {\n return argument instanceof Date\n}\n\nmodule.exports = isDate\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;CAeA,SAAS,MAAM,EAAE,QAAQ,EAAE;GACzB,OAAO,QAAQ,YAAY;AAC7B,CAAA;;AAEA,CAAA,OAAc,GAAG;;;;;;","x_google_ignoreList":[0]}
@@ -1,35 +0,0 @@
1
- import { __require as requireParse } from '../parse/index.js';
2
-
3
- var is_friday;
4
- var hasRequiredIs_friday;
5
-
6
- function requireIs_friday () {
7
- if (hasRequiredIs_friday) return is_friday;
8
- hasRequiredIs_friday = 1;
9
- var parse = requireParse();
10
-
11
- /**
12
- * @category Weekday Helpers
13
- * @summary Is the given date Friday?
14
- *
15
- * @description
16
- * Is the given date Friday?
17
- *
18
- * @param {Date|String|Number} date - the date to check
19
- * @returns {Boolean} the date is Friday
20
- *
21
- * @example
22
- * // Is 26 September 2014 Friday?
23
- * var result = isFriday(new Date(2014, 8, 26))
24
- * //=> true
25
- */
26
- function isFriday (dirtyDate) {
27
- return parse(dirtyDate).getDay() === 5
28
- }
29
-
30
- is_friday = isFriday;
31
- return is_friday;
32
- }
33
-
34
- export { requireIs_friday as __require };
35
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../node_modules/date-fns/is_friday/index.js"],"sourcesContent":["var parse = require('../parse/index.js')\n\n/**\n * @category Weekday Helpers\n * @summary Is the given date Friday?\n *\n * @description\n * Is the given date Friday?\n *\n * @param {Date|String|Number} date - the date to check\n * @returns {Boolean} the date is Friday\n *\n * @example\n * // Is 26 September 2014 Friday?\n * var result = isFriday(new Date(2014, 8, 26))\n * //=> true\n */\nfunction isFriday (dirtyDate) {\n return parse(dirtyDate).getDay() === 5\n}\n\nmodule.exports = isFriday\n"],"names":["require$$0"],"mappings":";;;;;;;;AAAA,CAAA,IAAI,KAAK,GAAGA,YAAA;;AAEZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,QAAQ,EAAE,SAAS,EAAE;GAC5B,OAAO,KAAK,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,KAAK;AACvC,CAAA;;AAEA,CAAA,SAAc,GAAG;;;;;;","x_google_ignoreList":[0]}
@@ -1,35 +0,0 @@
1
- import { __require as requireParse } from '../parse/index.js';
2
-
3
- var is_monday;
4
- var hasRequiredIs_monday;
5
-
6
- function requireIs_monday () {
7
- if (hasRequiredIs_monday) return is_monday;
8
- hasRequiredIs_monday = 1;
9
- var parse = requireParse();
10
-
11
- /**
12
- * @category Weekday Helpers
13
- * @summary Is the given date Monday?
14
- *
15
- * @description
16
- * Is the given date Monday?
17
- *
18
- * @param {Date|String|Number} date - the date to check
19
- * @returns {Boolean} the date is Monday
20
- *
21
- * @example
22
- * // Is 22 September 2014 Monday?
23
- * var result = isMonday(new Date(2014, 8, 22))
24
- * //=> true
25
- */
26
- function isMonday (dirtyDate) {
27
- return parse(dirtyDate).getDay() === 1
28
- }
29
-
30
- is_monday = isMonday;
31
- return is_monday;
32
- }
33
-
34
- export { requireIs_monday as __require };
35
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../node_modules/date-fns/is_monday/index.js"],"sourcesContent":["var parse = require('../parse/index.js')\n\n/**\n * @category Weekday Helpers\n * @summary Is the given date Monday?\n *\n * @description\n * Is the given date Monday?\n *\n * @param {Date|String|Number} date - the date to check\n * @returns {Boolean} the date is Monday\n *\n * @example\n * // Is 22 September 2014 Monday?\n * var result = isMonday(new Date(2014, 8, 22))\n * //=> true\n */\nfunction isMonday (dirtyDate) {\n return parse(dirtyDate).getDay() === 1\n}\n\nmodule.exports = isMonday\n"],"names":["require$$0"],"mappings":";;;;;;;;AAAA,CAAA,IAAI,KAAK,GAAGA,YAAA;;AAEZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,QAAQ,EAAE,SAAS,EAAE;GAC5B,OAAO,KAAK,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,KAAK;AACvC,CAAA;;AAEA,CAAA,SAAc,GAAG;;;;;;","x_google_ignoreList":[0]}
@@ -1,35 +0,0 @@
1
- import { __require as requireParse } from '../parse/index.js';
2
-
3
- var is_saturday;
4
- var hasRequiredIs_saturday;
5
-
6
- function requireIs_saturday () {
7
- if (hasRequiredIs_saturday) return is_saturday;
8
- hasRequiredIs_saturday = 1;
9
- var parse = requireParse();
10
-
11
- /**
12
- * @category Weekday Helpers
13
- * @summary Is the given date Saturday?
14
- *
15
- * @description
16
- * Is the given date Saturday?
17
- *
18
- * @param {Date|String|Number} date - the date to check
19
- * @returns {Boolean} the date is Saturday
20
- *
21
- * @example
22
- * // Is 27 September 2014 Saturday?
23
- * var result = isSaturday(new Date(2014, 8, 27))
24
- * //=> true
25
- */
26
- function isSaturday (dirtyDate) {
27
- return parse(dirtyDate).getDay() === 6
28
- }
29
-
30
- is_saturday = isSaturday;
31
- return is_saturday;
32
- }
33
-
34
- export { requireIs_saturday as __require };
35
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../node_modules/date-fns/is_saturday/index.js"],"sourcesContent":["var parse = require('../parse/index.js')\n\n/**\n * @category Weekday Helpers\n * @summary Is the given date Saturday?\n *\n * @description\n * Is the given date Saturday?\n *\n * @param {Date|String|Number} date - the date to check\n * @returns {Boolean} the date is Saturday\n *\n * @example\n * // Is 27 September 2014 Saturday?\n * var result = isSaturday(new Date(2014, 8, 27))\n * //=> true\n */\nfunction isSaturday (dirtyDate) {\n return parse(dirtyDate).getDay() === 6\n}\n\nmodule.exports = isSaturday\n"],"names":["require$$0"],"mappings":";;;;;;;;AAAA,CAAA,IAAI,KAAK,GAAGA,YAAA;;AAEZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,UAAU,EAAE,SAAS,EAAE;GAC9B,OAAO,KAAK,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,KAAK;AACvC,CAAA;;AAEA,CAAA,WAAc,GAAG;;;;;;","x_google_ignoreList":[0]}
@@ -1,35 +0,0 @@
1
- import { __require as requireParse } from '../parse/index.js';
2
-
3
- var is_sunday;
4
- var hasRequiredIs_sunday;
5
-
6
- function requireIs_sunday () {
7
- if (hasRequiredIs_sunday) return is_sunday;
8
- hasRequiredIs_sunday = 1;
9
- var parse = requireParse();
10
-
11
- /**
12
- * @category Weekday Helpers
13
- * @summary Is the given date Sunday?
14
- *
15
- * @description
16
- * Is the given date Sunday?
17
- *
18
- * @param {Date|String|Number} date - the date to check
19
- * @returns {Boolean} the date is Sunday
20
- *
21
- * @example
22
- * // Is 21 September 2014 Sunday?
23
- * var result = isSunday(new Date(2014, 8, 21))
24
- * //=> true
25
- */
26
- function isSunday (dirtyDate) {
27
- return parse(dirtyDate).getDay() === 0
28
- }
29
-
30
- is_sunday = isSunday;
31
- return is_sunday;
32
- }
33
-
34
- export { requireIs_sunday as __require };
35
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../node_modules/date-fns/is_sunday/index.js"],"sourcesContent":["var parse = require('../parse/index.js')\n\n/**\n * @category Weekday Helpers\n * @summary Is the given date Sunday?\n *\n * @description\n * Is the given date Sunday?\n *\n * @param {Date|String|Number} date - the date to check\n * @returns {Boolean} the date is Sunday\n *\n * @example\n * // Is 21 September 2014 Sunday?\n * var result = isSunday(new Date(2014, 8, 21))\n * //=> true\n */\nfunction isSunday (dirtyDate) {\n return parse(dirtyDate).getDay() === 0\n}\n\nmodule.exports = isSunday\n"],"names":["require$$0"],"mappings":";;;;;;;;AAAA,CAAA,IAAI,KAAK,GAAGA,YAAA;;AAEZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,QAAQ,EAAE,SAAS,EAAE;GAC5B,OAAO,KAAK,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,KAAK;AACvC,CAAA;;AAEA,CAAA,SAAc,GAAG;;;;;;","x_google_ignoreList":[0]}
@@ -1,35 +0,0 @@
1
- import { __require as requireParse } from '../parse/index.js';
2
-
3
- var is_thursday;
4
- var hasRequiredIs_thursday;
5
-
6
- function requireIs_thursday () {
7
- if (hasRequiredIs_thursday) return is_thursday;
8
- hasRequiredIs_thursday = 1;
9
- var parse = requireParse();
10
-
11
- /**
12
- * @category Weekday Helpers
13
- * @summary Is the given date Thursday?
14
- *
15
- * @description
16
- * Is the given date Thursday?
17
- *
18
- * @param {Date|String|Number} date - the date to check
19
- * @returns {Boolean} the date is Thursday
20
- *
21
- * @example
22
- * // Is 25 September 2014 Thursday?
23
- * var result = isThursday(new Date(2014, 8, 25))
24
- * //=> true
25
- */
26
- function isThursday (dirtyDate) {
27
- return parse(dirtyDate).getDay() === 4
28
- }
29
-
30
- is_thursday = isThursday;
31
- return is_thursday;
32
- }
33
-
34
- export { requireIs_thursday as __require };
35
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../node_modules/date-fns/is_thursday/index.js"],"sourcesContent":["var parse = require('../parse/index.js')\n\n/**\n * @category Weekday Helpers\n * @summary Is the given date Thursday?\n *\n * @description\n * Is the given date Thursday?\n *\n * @param {Date|String|Number} date - the date to check\n * @returns {Boolean} the date is Thursday\n *\n * @example\n * // Is 25 September 2014 Thursday?\n * var result = isThursday(new Date(2014, 8, 25))\n * //=> true\n */\nfunction isThursday (dirtyDate) {\n return parse(dirtyDate).getDay() === 4\n}\n\nmodule.exports = isThursday\n"],"names":["require$$0"],"mappings":";;;;;;;;AAAA,CAAA,IAAI,KAAK,GAAGA,YAAA;;AAEZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,UAAU,EAAE,SAAS,EAAE;GAC9B,OAAO,KAAK,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,KAAK;AACvC,CAAA;;AAEA,CAAA,WAAc,GAAG;;;;;;","x_google_ignoreList":[0]}
@@ -1,35 +0,0 @@
1
- import { __require as requireParse } from '../parse/index.js';
2
-
3
- var is_tuesday;
4
- var hasRequiredIs_tuesday;
5
-
6
- function requireIs_tuesday () {
7
- if (hasRequiredIs_tuesday) return is_tuesday;
8
- hasRequiredIs_tuesday = 1;
9
- var parse = requireParse();
10
-
11
- /**
12
- * @category Weekday Helpers
13
- * @summary Is the given date Tuesday?
14
- *
15
- * @description
16
- * Is the given date Tuesday?
17
- *
18
- * @param {Date|String|Number} date - the date to check
19
- * @returns {Boolean} the date is Tuesday
20
- *
21
- * @example
22
- * // Is 23 September 2014 Tuesday?
23
- * var result = isTuesday(new Date(2014, 8, 23))
24
- * //=> true
25
- */
26
- function isTuesday (dirtyDate) {
27
- return parse(dirtyDate).getDay() === 2
28
- }
29
-
30
- is_tuesday = isTuesday;
31
- return is_tuesday;
32
- }
33
-
34
- export { requireIs_tuesday as __require };
35
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../node_modules/date-fns/is_tuesday/index.js"],"sourcesContent":["var parse = require('../parse/index.js')\n\n/**\n * @category Weekday Helpers\n * @summary Is the given date Tuesday?\n *\n * @description\n * Is the given date Tuesday?\n *\n * @param {Date|String|Number} date - the date to check\n * @returns {Boolean} the date is Tuesday\n *\n * @example\n * // Is 23 September 2014 Tuesday?\n * var result = isTuesday(new Date(2014, 8, 23))\n * //=> true\n */\nfunction isTuesday (dirtyDate) {\n return parse(dirtyDate).getDay() === 2\n}\n\nmodule.exports = isTuesday\n"],"names":["require$$0"],"mappings":";;;;;;;;AAAA,CAAA,IAAI,KAAK,GAAGA,YAAA;;AAEZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,SAAS,EAAE,SAAS,EAAE;GAC7B,OAAO,KAAK,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,KAAK;AACvC,CAAA;;AAEA,CAAA,UAAc,GAAG;;;;;;","x_google_ignoreList":[0]}
@@ -1,35 +0,0 @@
1
- import { __require as requireParse } from '../parse/index.js';
2
-
3
- var is_wednesday;
4
- var hasRequiredIs_wednesday;
5
-
6
- function requireIs_wednesday () {
7
- if (hasRequiredIs_wednesday) return is_wednesday;
8
- hasRequiredIs_wednesday = 1;
9
- var parse = requireParse();
10
-
11
- /**
12
- * @category Weekday Helpers
13
- * @summary Is the given date Wednesday?
14
- *
15
- * @description
16
- * Is the given date Wednesday?
17
- *
18
- * @param {Date|String|Number} date - the date to check
19
- * @returns {Boolean} the date is Wednesday
20
- *
21
- * @example
22
- * // Is 24 September 2014 Wednesday?
23
- * var result = isWednesday(new Date(2014, 8, 24))
24
- * //=> true
25
- */
26
- function isWednesday (dirtyDate) {
27
- return parse(dirtyDate).getDay() === 3
28
- }
29
-
30
- is_wednesday = isWednesday;
31
- return is_wednesday;
32
- }
33
-
34
- export { requireIs_wednesday as __require };
35
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../node_modules/date-fns/is_wednesday/index.js"],"sourcesContent":["var parse = require('../parse/index.js')\n\n/**\n * @category Weekday Helpers\n * @summary Is the given date Wednesday?\n *\n * @description\n * Is the given date Wednesday?\n *\n * @param {Date|String|Number} date - the date to check\n * @returns {Boolean} the date is Wednesday\n *\n * @example\n * // Is 24 September 2014 Wednesday?\n * var result = isWednesday(new Date(2014, 8, 24))\n * //=> true\n */\nfunction isWednesday (dirtyDate) {\n return parse(dirtyDate).getDay() === 3\n}\n\nmodule.exports = isWednesday\n"],"names":["require$$0"],"mappings":";;;;;;;;AAAA,CAAA,IAAI,KAAK,GAAGA,YAAA;;AAEZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,WAAW,EAAE,SAAS,EAAE;GAC/B,OAAO,KAAK,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,KAAK;AACvC,CAAA;;AAEA,CAAA,YAAc,GAAG;;;;;;","x_google_ignoreList":[0]}
@@ -1,39 +0,0 @@
1
- var build_formatting_tokens_reg_exp;
2
- var hasRequiredBuild_formatting_tokens_reg_exp;
3
-
4
- function requireBuild_formatting_tokens_reg_exp () {
5
- if (hasRequiredBuild_formatting_tokens_reg_exp) return build_formatting_tokens_reg_exp;
6
- hasRequiredBuild_formatting_tokens_reg_exp = 1;
7
- var commonFormatterKeys = [
8
- 'M', 'MM', 'Q', 'D', 'DD', 'DDD', 'DDDD', 'd',
9
- 'E', 'W', 'WW', 'YY', 'YYYY', 'GG', 'GGGG',
10
- 'H', 'HH', 'h', 'hh', 'm', 'mm',
11
- 's', 'ss', 'S', 'SS', 'SSS',
12
- 'Z', 'ZZ', 'X', 'x'
13
- ];
14
-
15
- function buildFormattingTokensRegExp (formatters) {
16
- var formatterKeys = [];
17
- for (var key in formatters) {
18
- if (formatters.hasOwnProperty(key)) {
19
- formatterKeys.push(key);
20
- }
21
- }
22
-
23
- var formattingTokens = commonFormatterKeys
24
- .concat(formatterKeys)
25
- .sort()
26
- .reverse();
27
- var formattingTokensRegExp = new RegExp(
28
- '(\\[[^\\[]*\\])|(\\\\)?' + '(' + formattingTokens.join('|') + '|.)', 'g'
29
- );
30
-
31
- return formattingTokensRegExp
32
- }
33
-
34
- build_formatting_tokens_reg_exp = buildFormattingTokensRegExp;
35
- return build_formatting_tokens_reg_exp;
36
- }
37
-
38
- export { requireBuild_formatting_tokens_reg_exp as __require };
39
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../node_modules/date-fns/locale/_lib/build_formatting_tokens_reg_exp/index.js"],"sourcesContent":["var commonFormatterKeys = [\n 'M', 'MM', 'Q', 'D', 'DD', 'DDD', 'DDDD', 'd',\n 'E', 'W', 'WW', 'YY', 'YYYY', 'GG', 'GGGG',\n 'H', 'HH', 'h', 'hh', 'm', 'mm',\n 's', 'ss', 'S', 'SS', 'SSS',\n 'Z', 'ZZ', 'X', 'x'\n]\n\nfunction buildFormattingTokensRegExp (formatters) {\n var formatterKeys = []\n for (var key in formatters) {\n if (formatters.hasOwnProperty(key)) {\n formatterKeys.push(key)\n }\n }\n\n var formattingTokens = commonFormatterKeys\n .concat(formatterKeys)\n .sort()\n .reverse()\n var formattingTokensRegExp = new RegExp(\n '(\\\\[[^\\\\[]*\\\\])|(\\\\\\\\)?' + '(' + formattingTokens.join('|') + '|.)', 'g'\n )\n\n return formattingTokensRegExp\n}\n\nmodule.exports = buildFormattingTokensRegExp\n"],"names":[],"mappings":";;;;;;AAAA,CAAA,IAAI,mBAAmB,GAAG;AAC1B,GAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG;AAC/C,GAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;GAC1C,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI;GAC/B,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK;AAC7B,GAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE;AAClB;;CAEA,SAAS,2BAA2B,EAAE,UAAU,EAAE;GAChD,IAAI,aAAa,GAAG;AACtB,GAAE,KAAK,IAAI,GAAG,IAAI,UAAU,EAAE;AAC9B,KAAI,IAAI,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;AACxC,OAAM,aAAa,CAAC,IAAI,CAAC,GAAG;AAC5B,KAAA;AACA,GAAA;;GAEE,IAAI,gBAAgB,GAAG;MACpB,MAAM,CAAC,aAAa;AACzB,MAAK,IAAI;AACT,MAAK,OAAO;AACZ,GAAE,IAAI,sBAAsB,GAAG,IAAI,MAAM;AACzC,KAAI,yBAAyB,GAAG,GAAG,GAAG,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK,EAAE;AAC1E;;AAEA,GAAE,OAAO;AACT,CAAA;;AAEA,CAAA,+BAAc,GAAG;;;;;;","x_google_ignoreList":[0]}
@@ -1,110 +0,0 @@
1
- var build_distance_in_words_locale;
2
- var hasRequiredBuild_distance_in_words_locale;
3
-
4
- function requireBuild_distance_in_words_locale () {
5
- if (hasRequiredBuild_distance_in_words_locale) return build_distance_in_words_locale;
6
- hasRequiredBuild_distance_in_words_locale = 1;
7
- function buildDistanceInWordsLocale () {
8
- var distanceInWordsLocale = {
9
- lessThanXSeconds: {
10
- one: 'أقل من ثانية واحدة',
11
- other: 'أقل من {{count}} ثواني'
12
- },
13
-
14
- xSeconds: {
15
- one: 'ثانية واحدة',
16
- other: '{{count}} ثواني'
17
- },
18
-
19
- halfAMinute: 'نصف دقيقة',
20
-
21
- lessThanXMinutes: {
22
- one: 'أقل من دقيقة',
23
- other: 'أقل من {{count}} دقيقة'
24
- },
25
-
26
- xMinutes: {
27
- one: 'دقيقة واحدة',
28
- other: '{{count}} دقائق'
29
- },
30
-
31
- aboutXHours: {
32
- one: 'ساعة واحدة تقريباً',
33
- other: '{{count}} ساعات تقريباً'
34
- },
35
-
36
- xHours: {
37
- one: 'ساعة واحدة',
38
- other: '{{count}} ساعات'
39
- },
40
-
41
- xDays: {
42
- one: 'يوم واحد',
43
- other: '{{count}} أيام'
44
- },
45
-
46
- aboutXMonths: {
47
- one: 'شهر واحد تقريباً',
48
- other: '{{count}} أشهر تقريباً'
49
- },
50
-
51
- xMonths: {
52
- one: 'شهر واحد',
53
- other: '{{count}} أشهر'
54
- },
55
-
56
- aboutXYears: {
57
- one: 'عام واحد تقريباً',
58
- other: '{{count}} أعوام تقريباً'
59
- },
60
-
61
- xYears: {
62
- one: 'عام واحد',
63
- other: '{{count}} أعوام'
64
- },
65
-
66
- overXYears: {
67
- one: 'أكثر من عام',
68
- other: 'أكثر من {{count}} أعوام'
69
- },
70
-
71
- almostXYears: {
72
- one: 'عام واحد تقريباً',
73
- other: '{{count}} أعوام تقريباً'
74
- }
75
- };
76
-
77
- function localize (token, count, options) {
78
- options = options || {};
79
-
80
- var result;
81
- if (typeof distanceInWordsLocale[token] === 'string') {
82
- result = distanceInWordsLocale[token];
83
- } else if (count === 1) {
84
- result = distanceInWordsLocale[token].one;
85
- } else {
86
- result = distanceInWordsLocale[token].other.replace('{{count}}', count);
87
- }
88
-
89
- if (options.addSuffix) {
90
- if (options.comparison > 0) {
91
- return 'في خلال ' + result
92
- } else {
93
- return 'منذ ' + result
94
- }
95
- }
96
-
97
- return result
98
- }
99
-
100
- return {
101
- localize: localize
102
- }
103
- }
104
-
105
- build_distance_in_words_locale = buildDistanceInWordsLocale;
106
- return build_distance_in_words_locale;
107
- }
108
-
109
- export { requireBuild_distance_in_words_locale as __require };
110
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../node_modules/date-fns/locale/ar/build_distance_in_words_locale/index.js"],"sourcesContent":["function buildDistanceInWordsLocale () {\n var distanceInWordsLocale = {\n lessThanXSeconds: {\n one: 'أقل من ثانية واحدة',\n other: 'أقل من {{count}} ثواني'\n },\n\n xSeconds: {\n one: 'ثانية واحدة',\n other: '{{count}} ثواني'\n },\n\n halfAMinute: 'نصف دقيقة',\n\n lessThanXMinutes: {\n one: 'أقل من دقيقة',\n other: 'أقل من {{count}} دقيقة'\n },\n\n xMinutes: {\n one: 'دقيقة واحدة',\n other: '{{count}} دقائق'\n },\n\n aboutXHours: {\n one: 'ساعة واحدة تقريباً',\n other: '{{count}} ساعات تقريباً'\n },\n\n xHours: {\n one: 'ساعة واحدة',\n other: '{{count}} ساعات'\n },\n\n xDays: {\n one: 'يوم واحد',\n other: '{{count}} أيام'\n },\n\n aboutXMonths: {\n one: 'شهر واحد تقريباً',\n other: '{{count}} أشهر تقريباً'\n },\n\n xMonths: {\n one: 'شهر واحد',\n other: '{{count}} أشهر'\n },\n\n aboutXYears: {\n one: 'عام واحد تقريباً',\n other: '{{count}} أعوام تقريباً'\n },\n\n xYears: {\n one: 'عام واحد',\n other: '{{count}} أعوام'\n },\n\n overXYears: {\n one: 'أكثر من عام',\n other: 'أكثر من {{count}} أعوام'\n },\n\n almostXYears: {\n one: 'عام واحد تقريباً',\n other: '{{count}} أعوام تقريباً'\n }\n }\n\n function localize (token, count, options) {\n options = options || {}\n\n var result\n if (typeof distanceInWordsLocale[token] === 'string') {\n result = distanceInWordsLocale[token]\n } else if (count === 1) {\n result = distanceInWordsLocale[token].one\n } else {\n result = distanceInWordsLocale[token].other.replace('{{count}}', count)\n }\n\n if (options.addSuffix) {\n if (options.comparison > 0) {\n return 'في خلال ' + result\n } else {\n return 'منذ ' + result\n }\n }\n\n return result\n }\n\n return {\n localize: localize\n }\n}\n\nmodule.exports = buildDistanceInWordsLocale\n"],"names":[],"mappings":";;;;;;AAAA,CAAA,SAAS,0BAA0B,IAAI;GACrC,IAAI,qBAAqB,GAAG;AAC9B,KAAI,gBAAgB,EAAE;OAChB,GAAG,EAAE,oBAAoB;AAC/B,OAAM,KAAK,EAAE;MACR;;AAEL,KAAI,QAAQ,EAAE;OACR,GAAG,EAAE,aAAa;AACxB,OAAM,KAAK,EAAE;MACR;;KAED,WAAW,EAAE,WAAW;;AAE5B,KAAI,gBAAgB,EAAE;OAChB,GAAG,EAAE,cAAc;AACzB,OAAM,KAAK,EAAE;MACR;;AAEL,KAAI,QAAQ,EAAE;OACR,GAAG,EAAE,aAAa;AACxB,OAAM,KAAK,EAAE;MACR;;AAEL,KAAI,WAAW,EAAE;OACX,GAAG,EAAE,oBAAoB;AAC/B,OAAM,KAAK,EAAE;MACR;;AAEL,KAAI,MAAM,EAAE;OACN,GAAG,EAAE,YAAY;AACvB,OAAM,KAAK,EAAE;MACR;;AAEL,KAAI,KAAK,EAAE;OACL,GAAG,EAAE,UAAU;AACrB,OAAM,KAAK,EAAE;MACR;;AAEL,KAAI,YAAY,EAAE;OACZ,GAAG,EAAE,kBAAkB;AAC7B,OAAM,KAAK,EAAE;MACR;;AAEL,KAAI,OAAO,EAAE;OACP,GAAG,EAAE,UAAU;AACrB,OAAM,KAAK,EAAE;MACR;;AAEL,KAAI,WAAW,EAAE;OACX,GAAG,EAAE,kBAAkB;AAC7B,OAAM,KAAK,EAAE;MACR;;AAEL,KAAI,MAAM,EAAE;OACN,GAAG,EAAE,UAAU;AACrB,OAAM,KAAK,EAAE;MACR;;AAEL,KAAI,UAAU,EAAE;OACV,GAAG,EAAE,aAAa;AACxB,OAAM,KAAK,EAAE;MACR;;AAEL,KAAI,YAAY,EAAE;OACZ,GAAG,EAAE,kBAAkB;AAC7B,OAAM,KAAK,EAAE;AACb;AACA;;GAEE,SAAS,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE;KACxC,OAAO,GAAG,OAAO,IAAI;;AAEzB,KAAI,IAAI;KACJ,IAAI,OAAO,qBAAqB,CAAC,KAAK,CAAC,KAAK,QAAQ,EAAE;AAC1D,OAAM,MAAM,GAAG,qBAAqB,CAAC,KAAK;AAC1C,KAAA,CAAK,MAAM,IAAI,KAAK,KAAK,CAAC,EAAE;AAC5B,OAAM,MAAM,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAC5C,KAAA,CAAK,MAAM;AACX,OAAM,MAAM,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK;AAC5E,KAAA;;AAEA,KAAI,IAAI,OAAO,CAAC,SAAS,EAAE;AAC3B,OAAM,IAAI,OAAO,CAAC,UAAU,GAAG,CAAC,EAAE;SAC1B,OAAO,UAAU,GAAG;AAC5B,OAAA,CAAO,MAAM;SACL,OAAO,MAAM,GAAG;AACxB,OAAA;AACA,KAAA;;AAEA,KAAI,OAAO;AACX,GAAA;;AAEA,GAAE,OAAO;AACT,KAAI,QAAQ,EAAE;AACd;AACA,CAAA;;AAEA,CAAA,8BAAc,GAAG;;;;;;","x_google_ignoreList":[0]}