@adyen/adyen-platform-experience-web 1.0.2 → 1.1.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 (302) hide show
  1. package/dist/cjs/index.js +2 -2
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/da-DK-a148e492.cjs +2 -0
  4. package/dist/da-DK-a148e492.cjs.map +1 -0
  5. package/dist/de-DE-a39a50e8.cjs +2 -0
  6. package/dist/de-DE-a39a50e8.cjs.map +1 -0
  7. package/dist/es/components/external/PayoutDetails/components/PayoutData.js +41 -41
  8. package/dist/es/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.js +93 -94
  9. package/dist/es/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.js +76 -69
  10. package/dist/es/components/external/ReportsOverview/ReportsOverviewElement.js +25 -0
  11. package/dist/es/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.js +112 -0
  12. package/dist/es/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.scss.js +4 -0
  13. package/dist/es/components/external/ReportsOverview/components/ReportsOverview/constants.js +5 -0
  14. package/dist/es/components/external/ReportsOverview/components/ReportsOverviewContainer/ReportsOverviewContainer.js +30 -0
  15. package/dist/es/components/external/ReportsOverview/components/ReportsOverviewContainer/constants.js +4 -0
  16. package/dist/es/components/external/ReportsOverview/components/ReportsTable/ReportsTable.js +149 -0
  17. package/dist/es/components/external/ReportsOverview/components/ReportsTable/ReportsTable.scss.js +4 -0
  18. package/dist/es/components/external/ReportsOverview/components/ReportsTable/constants.js +7 -0
  19. package/dist/es/components/external/TransactionDetails/components/TransactionData.js +67 -46
  20. package/dist/es/components/external/TransactionDetails/components/TransactionDataSkeleton.js +28 -17
  21. package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +13 -13
  22. package/dist/es/components/external/TransactionsOverview/components/Category/Category.js +19 -14
  23. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +1 -1
  24. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +10 -10
  25. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +11 -11
  26. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +1 -1
  27. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +183 -164
  28. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/PaymentMethodCell.js +31 -24
  29. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +95 -89
  30. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/constants.js +6 -5
  31. package/dist/es/components/hooks/useCustomColumnsData.js +29 -0
  32. package/dist/es/components/hooks/useFreezePeriod.js +18 -0
  33. package/dist/es/components/{external/TransactionsOverview/hooks → hooks}/useResponsiveViewport.js +2 -2
  34. package/dist/es/components/hooks/useTableColumns.js +46 -0
  35. package/dist/es/components/internal/Accordion/Accordion.js +15 -15
  36. package/dist/es/components/internal/Alert/Alert.js +62 -0
  37. package/dist/es/components/internal/Alert/Alert.scss.js +4 -0
  38. package/dist/es/components/internal/Alert/types.js +4 -0
  39. package/dist/es/components/internal/Button/DownloadButton/DownloadButton.js +81 -0
  40. package/dist/es/components/internal/Button/DownloadButton/DownloadButton.scss.js +4 -0
  41. package/dist/es/components/internal/Button/DownloadButton/useDownload.js +18 -0
  42. package/dist/es/components/internal/Calendar/calendar/facade/Calendar.js +221 -211
  43. package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +103 -94
  44. package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +201 -200
  45. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +19 -18
  46. package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.js +18 -17
  47. package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js +17 -20
  48. package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.js +9 -12
  49. package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +39 -43
  50. package/dist/es/components/internal/Calendar/calendar/timeslice/TimeSlice.js +10 -10
  51. package/dist/es/components/internal/Calendar/calendar/timeslice/index.js +25 -26
  52. package/dist/es/components/internal/Calendar/calendar/utils.js +64 -16
  53. package/dist/es/components/internal/Calendar/hooks/useCalendar.js +40 -38
  54. package/dist/es/components/internal/Calendar/hooks/useTimezone.js +2 -2
  55. package/dist/es/components/internal/Card/Card.js +15 -15
  56. package/dist/es/components/internal/DataGrid/DataGrid.js +4 -4
  57. package/dist/es/components/internal/DataGrid/DataGridCell.js +12 -12
  58. package/dist/es/components/internal/DataGrid/components/Icon.js +17 -0
  59. package/dist/es/components/internal/DataGrid/components/SkeletonBody.js +7 -7
  60. package/dist/es/components/internal/DataGrid/components/TableCells.js +54 -37
  61. package/dist/es/components/internal/DataOverviewContainer/DataOverviewContainer.js +11 -11
  62. package/dist/es/components/internal/DataOverviewDetails/DataOverviewDetails.js +54 -54
  63. package/dist/es/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.js +45 -0
  64. package/dist/es/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.scss.js +4 -0
  65. package/dist/es/components/internal/DataOverviewDisplay/constants.js +30 -24
  66. package/dist/es/components/internal/DatePicker/DatePicker.js +17 -16
  67. package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +13 -13
  68. package/dist/es/components/internal/FilterBar/FilterBar.js +50 -42
  69. package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +7 -7
  70. package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +14 -14
  71. package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +58 -52
  72. package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +1 -1
  73. package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilterCore.js +81 -76
  74. package/dist/es/components/internal/FormFields/InputBase.js +25 -25
  75. package/dist/es/components/internal/FormFields/Select/BalanceAccountSelector/BalanceAccountSelector.js +1 -1
  76. package/dist/es/components/internal/FormFields/Select/Select.js +5 -5
  77. package/dist/es/components/internal/FormFields/Select/components/SelectList.js +5 -5
  78. package/dist/es/components/internal/Image/Image.js +6 -6
  79. package/dist/es/components/internal/Img/Img.js +4 -4
  80. package/dist/es/components/internal/Modal/Modal.js +6 -6
  81. package/dist/es/components/internal/Pagination/Pagination.js +17 -17
  82. package/dist/es/components/internal/Popover/Popover.js +11 -11
  83. package/dist/es/components/internal/SVGIcons/Download.js +21 -0
  84. package/dist/es/components/internal/SVGIcons/Warning.js +23 -0
  85. package/dist/es/components/internal/SVGIcons/WarningFilled.js +18 -0
  86. package/dist/es/components/internal/StructuredList/StructuredList.js +8 -8
  87. package/dist/es/components/internal/Tag/Tag.js +8 -8
  88. package/dist/es/components/internal/Tooltip/Tooltip.js +20 -20
  89. package/dist/es/components/internal/Typography/Typography.js +12 -12
  90. package/dist/es/components/utils/getLabel.js +6 -3
  91. package/dist/es/core/Http/http.js +34 -31
  92. package/dist/es/core/Http/utils.js +39 -30
  93. package/dist/es/core/Localization/Localization.js +74 -76
  94. package/dist/es/core/Localization/constants/localization.js +9 -6
  95. package/dist/es/core/Localization/datetime/restamper/utils.js +26 -26
  96. package/dist/es/core/Localization/localization-utils.js +11 -12
  97. package/dist/es/core/Localization/utils.js +45 -47
  98. package/dist/es/core/core.js +1 -1
  99. package/dist/es/index.js +14 -12
  100. package/dist/es/primitives/time/today/main.js +38 -43
  101. package/dist/es/translations/da-DK.json.js +2 -218
  102. package/dist/es/translations/de-DE.json.js +2 -218
  103. package/dist/es/translations/en-US.json.js +2 -218
  104. package/dist/es/translations/es-ES.json.js +2 -218
  105. package/dist/es/translations/fr-FR.json.js +2 -218
  106. package/dist/es/translations/index.js +39 -45
  107. package/dist/es/translations/it-IT.json.js +2 -218
  108. package/dist/es/translations/nl-NL.json.js +2 -218
  109. package/dist/es/translations/no-NO.json.js +2 -218
  110. package/dist/es/translations/pt-BR.json.js +2 -218
  111. package/dist/es/translations/sv-SE.json.js +2 -218
  112. package/dist/es/utils/preact/className.js +3 -3
  113. package/dist/es-ES-153e5f15.cjs +2 -0
  114. package/dist/es-ES-153e5f15.cjs.map +1 -0
  115. package/dist/fr-FR-69b3df0d.cjs +2 -0
  116. package/dist/fr-FR-69b3df0d.cjs.map +1 -0
  117. package/dist/it-IT-efca230f.cjs +2 -0
  118. package/dist/it-IT-efca230f.cjs.map +1 -0
  119. package/dist/nl-NL-ffbb8184.cjs +2 -0
  120. package/dist/nl-NL-ffbb8184.cjs.map +1 -0
  121. package/dist/no-NO-eaf65f6f.cjs +2 -0
  122. package/dist/no-NO-eaf65f6f.cjs.map +1 -0
  123. package/dist/pt-BR-590ccc53.cjs +2 -0
  124. package/dist/pt-BR-590ccc53.cjs.map +1 -0
  125. package/dist/style.css +1 -1
  126. package/dist/sv-SE-18f4e86e.cjs +2 -0
  127. package/dist/sv-SE-18f4e86e.cjs.map +1 -0
  128. package/dist/types/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.d.ts.map +1 -1
  129. package/dist/types/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.d.ts +2 -2
  130. package/dist/types/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.d.ts.map +1 -1
  131. package/dist/types/components/external/ReportsOverview/ReportsOverviewElement.d.ts +9 -0
  132. package/dist/types/components/external/ReportsOverview/ReportsOverviewElement.d.ts.map +1 -0
  133. package/dist/types/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.d.ts +8 -0
  134. package/dist/types/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.d.ts.map +1 -0
  135. package/dist/types/components/external/ReportsOverview/components/ReportsOverview/constants.d.ts +3 -0
  136. package/dist/types/components/external/ReportsOverview/components/ReportsOverview/constants.d.ts.map +1 -0
  137. package/dist/types/components/external/ReportsOverview/components/ReportsOverviewContainer/ReportsOverviewContainer.d.ts +4 -0
  138. package/dist/types/components/external/ReportsOverview/components/ReportsOverviewContainer/ReportsOverviewContainer.d.ts.map +1 -0
  139. package/dist/types/components/external/ReportsOverview/components/ReportsOverviewContainer/constants.d.ts +2 -0
  140. package/dist/types/components/external/ReportsOverview/components/ReportsOverviewContainer/constants.d.ts.map +1 -0
  141. package/dist/types/components/external/ReportsOverview/components/ReportsTable/ReportsTable.d.ts +15 -0
  142. package/dist/types/components/external/ReportsOverview/components/ReportsTable/ReportsTable.d.ts.map +1 -0
  143. package/dist/types/components/external/ReportsOverview/components/ReportsTable/constants.d.ts +5 -0
  144. package/dist/types/components/external/ReportsOverview/components/ReportsTable/constants.d.ts.map +1 -0
  145. package/dist/types/components/external/ReportsOverview/index.d.ts +2 -0
  146. package/dist/types/components/external/ReportsOverview/index.d.ts.map +1 -0
  147. package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts +20 -2
  148. package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts.map +1 -1
  149. package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts.map +1 -1
  150. package/dist/types/components/external/TransactionDetails/types.d.ts +5 -1
  151. package/dist/types/components/external/TransactionDetails/types.d.ts.map +1 -1
  152. package/dist/types/components/external/TransactionsOverview/components/Category/Category.d.ts.map +1 -1
  153. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts +1 -1
  154. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts.map +1 -1
  155. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts +1 -1
  156. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts.map +1 -1
  157. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/PaymentMethodCell.d.ts.map +1 -1
  158. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts +3 -1
  159. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts.map +1 -1
  160. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/constants.d.ts +1 -0
  161. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/constants.d.ts.map +1 -1
  162. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts +5 -0
  163. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts.map +1 -1
  164. package/dist/types/components/external/index.d.ts +1 -0
  165. package/dist/types/components/external/index.d.ts.map +1 -1
  166. package/dist/types/components/hooks/useCustomColumnsData.d.ts +13 -0
  167. package/dist/types/components/hooks/useCustomColumnsData.d.ts.map +1 -0
  168. package/dist/types/components/hooks/useFreezePeriod.d.ts +6 -0
  169. package/dist/types/components/hooks/useFreezePeriod.d.ts.map +1 -0
  170. package/dist/types/components/{external/TransactionsOverview/hooks → hooks}/useResponsiveViewport.d.ts +1 -1
  171. package/dist/types/components/hooks/useResponsiveViewport.d.ts.map +1 -0
  172. package/dist/types/components/hooks/useTableColumns.d.ts +20 -0
  173. package/dist/types/components/hooks/useTableColumns.d.ts.map +1 -0
  174. package/dist/types/components/internal/Alert/Alert.d.ts +5 -0
  175. package/dist/types/components/internal/Alert/Alert.d.ts.map +1 -0
  176. package/dist/types/components/internal/Alert/types.d.ts +17 -0
  177. package/dist/types/components/internal/Alert/types.d.ts.map +1 -0
  178. package/dist/types/components/internal/Button/DownloadButton/DownloadButton.d.ts +16 -0
  179. package/dist/types/components/internal/Button/DownloadButton/DownloadButton.d.ts.map +1 -0
  180. package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts +143 -0
  181. package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts.map +1 -0
  182. package/dist/types/components/internal/Calendar/calendar/facade/Calendar.d.ts.map +1 -1
  183. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.d.ts +1 -1
  184. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.d.ts.map +1 -1
  185. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts +3 -3
  186. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts.map +1 -1
  187. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/YearFrame.d.ts +1 -1
  188. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/YearFrame.d.ts.map +1 -1
  189. package/dist/types/components/internal/Calendar/calendar/timerange/presets/lastNDays.d.ts.map +1 -1
  190. package/dist/types/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.d.ts.map +1 -1
  191. package/dist/types/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.d.ts.map +1 -1
  192. package/dist/types/components/internal/Calendar/calendar/timerange/presets/yearToDate.d.ts.map +1 -1
  193. package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts +0 -5
  194. package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts.map +1 -1
  195. package/dist/types/components/internal/Calendar/calendar/timeslice/TimeSlice.d.ts +2 -2
  196. package/dist/types/components/internal/Calendar/calendar/timeslice/TimeSlice.d.ts.map +1 -1
  197. package/dist/types/components/internal/Calendar/calendar/timeslice/index.d.ts.map +1 -1
  198. package/dist/types/components/internal/Calendar/calendar/types.d.ts +6 -1
  199. package/dist/types/components/internal/Calendar/calendar/types.d.ts.map +1 -1
  200. package/dist/types/components/internal/Calendar/calendar/utils.d.ts +13 -4
  201. package/dist/types/components/internal/Calendar/calendar/utils.d.ts.map +1 -1
  202. package/dist/types/components/internal/Calendar/hooks/useCalendar.d.ts +1 -1
  203. package/dist/types/components/internal/Calendar/hooks/useCalendar.d.ts.map +1 -1
  204. package/dist/types/components/internal/Calendar/types.d.ts +1 -0
  205. package/dist/types/components/internal/Calendar/types.d.ts.map +1 -1
  206. package/dist/types/components/internal/DataGrid/DataGrid.d.ts +2 -5
  207. package/dist/types/components/internal/DataGrid/DataGrid.d.ts.map +1 -1
  208. package/dist/types/components/internal/DataGrid/components/Icon.d.ts +7 -0
  209. package/dist/types/components/internal/DataGrid/components/Icon.d.ts.map +1 -0
  210. package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -1
  211. package/dist/types/components/internal/DataGrid/types.d.ts +4 -3
  212. package/dist/types/components/internal/DataGrid/types.d.ts.map +1 -1
  213. package/dist/types/components/internal/DataOverviewContainer/DataOverviewContainer.d.ts +1 -1
  214. package/dist/types/components/internal/DataOverviewContainer/DataOverviewContainer.d.ts.map +1 -1
  215. package/dist/types/components/internal/DataOverviewDetails/DataOverviewDetails.d.ts.map +1 -1
  216. package/dist/types/components/internal/DataOverviewDetails/types.d.ts +3 -2
  217. package/dist/types/components/internal/DataOverviewDetails/types.d.ts.map +1 -1
  218. package/dist/types/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.d.ts +13 -0
  219. package/dist/types/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.d.ts.map +1 -0
  220. package/dist/types/components/internal/DataOverviewDisplay/DataOverviewHeader/index.d.ts +3 -0
  221. package/dist/types/components/internal/DataOverviewDisplay/DataOverviewHeader/index.d.ts.map +1 -0
  222. package/dist/types/components/internal/DataOverviewDisplay/constants.d.ts +5 -2
  223. package/dist/types/components/internal/DataOverviewDisplay/constants.d.ts.map +1 -1
  224. package/dist/types/components/internal/DataOverviewError/DataOverviewError.d.ts +1 -1
  225. package/dist/types/components/internal/DataOverviewError/DataOverviewError.d.ts.map +1 -1
  226. package/dist/types/components/internal/DatePicker/DatePicker.d.ts.map +1 -1
  227. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts +1 -1
  228. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts.map +1 -1
  229. package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts +1 -1
  230. package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts.map +1 -1
  231. package/dist/types/components/internal/FilterBar/FilterBar.d.ts +9 -2
  232. package/dist/types/components/internal/FilterBar/FilterBar.d.ts.map +1 -1
  233. package/dist/types/components/internal/FilterBar/filters/AmountFilter/RangeSelection.d.ts.map +1 -1
  234. package/dist/types/components/internal/FilterBar/filters/DateFilter/DateFilterCore.d.ts.map +1 -1
  235. package/dist/types/components/internal/FilterBar/index.d.ts +1 -0
  236. package/dist/types/components/internal/FilterBar/index.d.ts.map +1 -1
  237. package/dist/types/components/internal/FilterBar/types.d.ts +11 -1
  238. package/dist/types/components/internal/FilterBar/types.d.ts.map +1 -1
  239. package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts +1 -1
  240. package/dist/types/components/internal/Pagination/Pagination.d.ts.map +1 -1
  241. package/dist/types/components/internal/SVGIcons/Download.d.ts +4 -0
  242. package/dist/types/components/internal/SVGIcons/Download.d.ts.map +1 -0
  243. package/dist/types/components/internal/SVGIcons/Warning.d.ts +4 -0
  244. package/dist/types/components/internal/SVGIcons/Warning.d.ts.map +1 -0
  245. package/dist/types/components/internal/SVGIcons/WarningFilled.d.ts +4 -0
  246. package/dist/types/components/internal/SVGIcons/WarningFilled.d.ts.map +1 -0
  247. package/dist/types/components/internal/StructuredList/types.d.ts +1 -1
  248. package/dist/types/components/internal/StructuredList/types.d.ts.map +1 -1
  249. package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +2 -2
  250. package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts.map +1 -1
  251. package/dist/types/components/types.d.ts +33 -1
  252. package/dist/types/components/types.d.ts.map +1 -1
  253. package/dist/types/components/utils/getCommonErrorCode.d.ts +1 -1
  254. package/dist/types/components/utils/getCommonErrorCode.d.ts.map +1 -1
  255. package/dist/types/components/utils/getErrorMessage.d.ts +1 -1
  256. package/dist/types/components/utils/getErrorMessage.d.ts.map +1 -1
  257. package/dist/types/components/utils/getLabel.d.ts +4 -1
  258. package/dist/types/components/utils/getLabel.d.ts.map +1 -1
  259. package/dist/types/core/Auth/context.d.ts +8 -6
  260. package/dist/types/core/Auth/context.d.ts.map +1 -1
  261. package/dist/types/core/Auth/session/AuthSession.d.ts +8 -6
  262. package/dist/types/core/Auth/session/AuthSession.d.ts.map +1 -1
  263. package/dist/types/core/Auth/session/AuthSetupContext.d.ts +8 -6
  264. package/dist/types/core/Auth/session/AuthSetupContext.d.ts.map +1 -1
  265. package/dist/types/core/Http/http.d.ts.map +1 -1
  266. package/dist/types/core/Http/utils.d.ts +2 -0
  267. package/dist/types/core/Http/utils.d.ts.map +1 -1
  268. package/dist/types/core/Localization/Localization.d.ts +8 -10
  269. package/dist/types/core/Localization/Localization.d.ts.map +1 -1
  270. package/dist/types/core/Localization/constants/localization.d.ts +5 -2
  271. package/dist/types/core/Localization/constants/localization.d.ts.map +1 -1
  272. package/dist/types/core/Localization/datetime/restamper/utils.d.ts.map +1 -1
  273. package/dist/types/core/Localization/localization-utils.d.ts +4 -4
  274. package/dist/types/core/Localization/localization-utils.d.ts.map +1 -1
  275. package/dist/types/core/Localization/types.d.ts +0 -19
  276. package/dist/types/core/Localization/types.d.ts.map +1 -1
  277. package/dist/types/core/Localization/utils.d.ts +7 -271
  278. package/dist/types/core/Localization/utils.d.ts.map +1 -1
  279. package/dist/types/core/core.d.ts +2 -3
  280. package/dist/types/core/core.d.ts.map +1 -1
  281. package/dist/types/core/types.d.ts +5 -4
  282. package/dist/types/core/types.d.ts.map +1 -1
  283. package/dist/types/hooks/useFetch/useFetch.d.ts +1 -1
  284. package/dist/types/hooks/useFetch/useFetch.d.ts.map +1 -1
  285. package/dist/types/hooks/useModalDetails/types.d.ts +1 -1
  286. package/dist/types/hooks/useModalDetails/types.d.ts.map +1 -1
  287. package/dist/types/index.d.ts +2 -3
  288. package/dist/types/index.d.ts.map +1 -1
  289. package/dist/types/primitives/time/today/main.d.ts.map +1 -1
  290. package/dist/types/translations/index.d.ts +44 -2529
  291. package/dist/types/translations/index.d.ts.map +1 -1
  292. package/dist/types/types/api/models/reports.d.ts +1 -1
  293. package/dist/types/types/api/models/reports.d.ts.map +1 -1
  294. package/dist/types/types/api/resources/ReportsResource.d.ts +18 -19
  295. package/dist/types/types/api/resources/ReportsResource.d.ts.map +1 -1
  296. package/dist/types/utils/types.d.ts +3 -0
  297. package/dist/types/utils/types.d.ts.map +1 -1
  298. package/package.json +8 -5
  299. package/dist/es/core/Localization/constants/locale.js +0 -7
  300. package/dist/types/components/external/TransactionsOverview/hooks/useResponsiveViewport.d.ts.map +0 -1
  301. package/dist/types/core/Localization/constants/locale.d.ts +0 -139
  302. package/dist/types/core/Localization/constants/locale.d.ts.map +0 -1
@@ -1,100 +1,104 @@
1
- var Et = Object.defineProperty;
2
- var Rt = (m, s, e) => s in m ? Et(m, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : m[s] = e;
3
- var tt = (m, s, e) => (Rt(m, typeof s != "symbol" ? s + "" : s, e), e), at = (m, s, e) => {
4
- if (!s.has(m))
5
- throw TypeError("Cannot " + e);
1
+ var _t = Object.defineProperty;
2
+ var bt = (a, s, i) => s in a ? _t(a, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[s] = i;
3
+ var st = (a, s, i) => (bt(a, typeof s != "symbol" ? s + "" : s, i), i), ot = (a, s, i) => {
4
+ if (!s.has(a))
5
+ throw TypeError("Cannot " + i);
6
6
  };
7
- var t = (m, s, e) => (at(m, s, "read from private field"), e ? e.call(m) : s.get(m)), r = (m, s, e) => {
8
- if (s.has(m))
7
+ var t = (a, s, i) => (ot(a, s, "read from private field"), i ? i.call(a) : s.get(a)), r = (a, s, i) => {
8
+ if (s.has(a))
9
9
  throw TypeError("Cannot add the same private member more than once");
10
- s instanceof WeakSet ? s.add(m) : s.set(m, e);
11
- }, i = (m, s, e, h) => (at(m, s, "write to private field"), h ? h.call(m, e) : s.set(m, e), e);
12
- var v = (m, s, e, h) => ({
10
+ s instanceof WeakSet ? s.add(a) : s.set(a, i);
11
+ }, e = (a, s, i, h) => (ot(a, s, "write to private field"), h ? h.call(a, i) : s.set(a, i), i);
12
+ var K = (a, s, i, h) => ({
13
13
  set _(o) {
14
- i(m, s, o, e);
14
+ e(a, s, o, i);
15
15
  },
16
16
  get _() {
17
- return t(m, s, h);
18
- }
19
- }), n = (m, s, e) => (at(m, s, "access private method"), e);
20
- import { resolveTimeFrameBlockSize as yt, downsizeTimeFrame as ut } from "../common/utils.js";
21
- import { UNBOUNDED_SLICE as dt } from "../../timeslice/index.js";
22
- import { computeTimestampOffset as Dt } from "../../utils.js";
23
- import { FIRST_WEEK_DAYS as At, SHIFT_FRAME as mt, SHIFT_PERIOD as _t, SHIFT_BLOCK as Ut, CURSOR_NEXT_BLOCK as xt, CURSOR_PREV_BLOCK as bt, CURSOR_LINE_END as wt, CURSOR_LINE_START as Nt, CURSOR_BLOCK_END as Lt, CURSOR_BLOCK_START as Wt, CURSOR_DOWNWARD as Mt, CURSOR_UPWARD as Ht, CURSOR_FORWARD as vt, CURSOR_BACKWARD as zt, SELECTION_TO as ot, SELECTION_FROM as st, SELECTION_COLLAPSE as Kt, SELECTION_NEAREST as gt, SELECTION_FARTHEST as pt } from "../../constants.js";
24
- import $t from "../common/flags.js";
25
- import Vt from "../../../../../../primitives/time/today/main.js";
26
- import { createIndexed as et } from "../../../../../../primitives/auxiliary/indexed/main.js";
27
- import { isUndefined as z, isNullish as D, isBoolean as Ot, isFunction as Xt } from "../../../../../../utils/value/is.js";
28
- import { isInfinity as ft, clamp as ct, mid as Yt, isBitSafeInteger as Ft, mod as jt } from "../../../../../../utils/value/number.js";
29
- import { enumerable as k } from "../../../../../../utils/struct/property.js";
30
- import { struct as qt } from "../../../../../../utils/struct/main.js";
31
- var w, g, $, V, X, Y, T, F, _, N, L, W, U, S, j, l, c, u, E, M, R, q, G, y, B, J, P, it, rt, ht, kt, C, A, nt, It, p, O, x, K, Q, lt;
32
- const b = class b {
17
+ return t(a, s, h);
18
+ }
19
+ }), n = (a, s, i) => (ot(a, s, "access private method"), i);
20
+ import { resolveTimeFrameBlockSize as xt, downsizeTimeFrame as gt } from "../common/utils.js";
21
+ import Lt, { UNBOUNDED_SLICE as ft } from "../../timeslice/index.js";
22
+ import { computeTimestampOffset as Ut } from "../../utils.js";
23
+ import { FIRST_WEEK_DAYS as Nt, DAY_MS as pt, SHIFT_FRAME as ct, SHIFT_PERIOD as wt, SHIFT_BLOCK as zt, CURSOR_NEXT_BLOCK as Wt, CURSOR_PREV_BLOCK as Mt, CURSOR_LINE_END as Ht, CURSOR_LINE_START as Kt, CURSOR_BLOCK_END as vt, CURSOR_BLOCK_START as Yt, CURSOR_DOWNWARD as Vt, CURSOR_UPWARD as Xt, CURSOR_FORWARD as jt, CURSOR_BACKWARD as qt, SELECTION_COLLAPSE as Gt, SELECTION_NEAREST as Ot, SELECTION_FARTHEST as Ft, SELECTION_TO as kt, SELECTION_FROM as Tt } from "../../constants.js";
24
+ import Jt from "../common/flags.js";
25
+ import { BASE_LOCALE as Pt } from "../../../../../../core/Localization/datetime/restamper/constants.js";
26
+ import It from "../../../../../../primitives/time/today/main.js";
27
+ import { createIndexed as it } from "../../../../../../primitives/auxiliary/indexed/main.js";
28
+ import { isUndefined as et, isNullish as D, isBoolean as Bt, isFunction as Qt } from "../../../../../../utils/value/is.js";
29
+ import { isInfinity as lt, clamp as ut, mid as Zt, isBitSafeInteger as St, mod as $t } from "../../../../../../utils/value/number.js";
30
+ import { enumerable as I } from "../../../../../../utils/struct/property.js";
31
+ import { struct as ts } from "../../../../../../utils/struct/main.js";
32
+ var N, g, Y, V, X, j, k, F, B, w, z, W, _, S, q, l, f, c, M, E, b, H, T, G, J, R, C, P, Q, rt, ht, nt, Ct, at, Rt, y, L, mt, yt, p, O, x, v, Z, dt;
33
+ const U = class U {
33
34
  constructor() {
34
- r(this, ht);
35
- r(this, C);
36
35
  r(this, nt);
36
+ r(this, at);
37
+ r(this, y);
38
+ r(this, mt);
37
39
  r(this, p);
38
40
  r(this, x);
39
- r(this, Q);
41
+ r(this, Z);
40
42
  r(this, g, 0);
41
- r(this, $, void 0);
43
+ r(this, Y, void 0);
42
44
  r(this, V, void 0);
43
45
  r(this, X, -1);
44
- r(this, Y, -1);
45
- r(this, T, void 0);
46
+ r(this, j, -1);
47
+ r(this, k, void 0);
46
48
  r(this, F, void 0);
47
- r(this, _, void 0);
48
- r(this, N, !1);
49
- r(this, L, void 0);
49
+ r(this, B, void 0);
50
+ r(this, w, !1);
51
+ r(this, z, void 0);
50
52
  r(this, W, 0);
51
- r(this, U, []);
52
- r(this, S, t(b, w));
53
- r(this, j, 12);
53
+ r(this, _, []);
54
+ r(this, S, t(U, N));
55
+ r(this, q, 12);
54
56
  r(this, l, void 0);
55
- r(this, c, void 0);
56
- r(this, u, 1);
57
+ r(this, f, void 0);
58
+ r(this, c, 1);
59
+ r(this, M, void 0);
57
60
  r(this, E, void 0);
58
- r(this, M, Vt());
59
- r(this, R, void 0);
60
- r(this, q, -1 / 0);
61
- r(this, G, 1 / 0);
62
- r(this, y, -1 / 0);
63
- r(this, B, 1 / 0);
61
+ r(this, b, void 0);
62
+ r(this, H, It());
63
+ r(this, T, void 0);
64
+ r(this, G, -1 / 0);
64
65
  r(this, J, 1 / 0);
65
- r(this, P, 0);
66
- tt(this, "daysInWeek", 0);
67
- tt(this, "origin");
68
- tt(this, "originTimestamp");
69
- r(this, it, et(() => this.daysInWeek, this.getDayOfWeekAtIndex.bind(this)));
70
- r(this, rt, et(() => t(this, u), n(this, nt, It).bind(this)));
66
+ r(this, R, -1 / 0);
67
+ r(this, C, 1 / 0);
68
+ r(this, P, 1 / 0);
69
+ r(this, Q, 0);
70
+ st(this, "daysInWeek", 0);
71
+ st(this, "origin");
72
+ st(this, "originTimestamp");
73
+ r(this, rt, it(() => this.daysInWeek, this.getDayOfWeekAtIndex.bind(this)));
74
+ r(this, ht, it(() => t(this, c), n(this, mt, yt).bind(this)));
71
75
  }
72
76
  get fromTimestamp() {
73
- return t(this, q);
77
+ return t(this, G);
74
78
  }
75
79
  get toTimestamp() {
76
- return t(this, G);
80
+ return t(this, J);
77
81
  }
78
82
  get numberOfBlocks() {
79
- return t(this, J);
83
+ return t(this, P);
80
84
  }
81
85
  get blankSelection() {
82
- return t(this, l) === t(this, c) && z(t(this, c));
86
+ return t(this, l) === t(this, f) && et(t(this, f));
83
87
  }
84
88
  get cursor() {
85
- return t(this, T) ?? -1;
89
+ return t(this, k) ?? -1;
86
90
  }
87
91
  get daysOfWeek() {
88
- return t(this, it);
92
+ return t(this, rt);
89
93
  }
90
94
  get dynamicBlockHeight() {
91
- return t(this, N);
95
+ return t(this, w);
92
96
  }
93
97
  set dynamicBlockHeight(s) {
94
- D(s) ? i(this, N, !!s) : Ot(s) && i(this, N, s);
98
+ D(s) ? e(this, w, !!s) : Bt(s) && e(this, w, s);
95
99
  }
96
100
  set effect(s) {
97
- D(s) ? i(this, L, void 0) : Xt(s) && i(this, L, s);
101
+ D(s) ? e(this, z, void 0) : Qt(s) && e(this, z, s);
98
102
  }
99
103
  get firstWeekDay() {
100
104
  return t(this, W);
@@ -102,225 +106,222 @@ const b = class b {
102
106
  set firstWeekDay(s) {
103
107
  if (D(s))
104
108
  this.firstWeekDay = 0;
105
- else if (!At.includes(s) || t(this, W) === i(this, W, s))
109
+ else if (!Nt.includes(s) || t(this, W) === e(this, W, s))
106
110
  return;
107
111
  }
108
112
  get frameBlocks() {
109
- return t(this, rt);
113
+ return t(this, ht);
110
114
  }
111
115
  get isAtEnd() {
112
- return !ft(t(this, B)) && t(this, B) === t(this, u) - 1;
116
+ return !lt(t(this, C)) && t(this, C) === t(this, c) - 1;
113
117
  }
114
118
  get isAtStart() {
115
- return !ft(t(this, y)) && t(this, y) === 0;
119
+ return !lt(t(this, R)) && t(this, R) === 0;
116
120
  }
117
121
  get locale() {
118
122
  return t(this, S);
119
123
  }
120
124
  set locale(s) {
121
- const e = t(this, S);
125
+ const i = t(this, S);
122
126
  if (D(s))
123
- i(this, S, t(b, w));
127
+ e(this, S, t(U, N));
124
128
  else if (typeof Intl < "u")
125
129
  try {
126
- i(this, S, new Intl.Locale(s).toString());
130
+ e(this, S, new Intl.Locale(s).toString());
127
131
  } catch {
128
- i(this, S, t(b, w));
132
+ e(this, S, t(U, N));
129
133
  }
130
- t(this, S) !== e && this.refreshFrame(!0);
134
+ t(this, S) !== i && this.refreshFrame(!0);
131
135
  }
132
136
  get selectionStart() {
133
137
  return t(this, l);
134
138
  }
135
139
  get selectionEnd() {
136
- return t(this, c);
140
+ return t(this, f);
137
141
  }
138
142
  get size() {
139
- return t(this, u);
143
+ return t(this, c);
140
144
  }
141
145
  set size(s) {
142
- const e = Math.min(!D(s) && yt(s) || 1, t(this, j));
143
- t(this, u) !== i(this, u, e) && (n(this, Q, lt).call(this), this.refreshFrame());
146
+ const i = Math.min(!D(s) && xt(s) || 1, t(this, q));
147
+ t(this, c) !== e(this, c, i) && (n(this, Z, dt).call(this), this.refreshFrame());
144
148
  }
145
149
  get timeslice() {
146
150
  return t(this, E);
147
151
  }
148
152
  set timeslice(s) {
149
- if (s === t(this, E) || D(s) && t(this, E) === dt)
153
+ if (s === t(this, M) || D(s) && t(this, M) === ft)
150
154
  return;
151
155
  const {
152
- from: e,
156
+ from: i,
153
157
  to: h,
154
- span: o,
155
- offsets: a
156
- } = s;
157
- i(this, E, s), i(this, q, e - a.from), i(this, G, h - a.to), i(this, J, o);
158
- const d = z(t(this, l)) ? t(this, l) : Math.max(t(this, l), e), f = z(t(this, c)) ? t(this, c) : Math.min(t(this, c), h);
159
- d === t(this, l) || f === t(this, c) ? (i(this, l, d), i(this, c, f)) : i(this, l, i(this, c, void 0)), this.reslice(), i(this, j, ut(12, this.numberOfBlocks)), i(this, u, ut(t(this, u), this.numberOfBlocks)), this.shiftFrameToTimestamp(t(this, _));
158
+ timezone: o
159
+ } = e(this, M, s ?? ft);
160
+ e(this, E, Lt(i, h)), this.timezone = o;
161
+ }
162
+ get timezone() {
163
+ return t(this, b);
164
+ }
165
+ set timezone(s) {
166
+ t(this, E).timezone = s, e(this, b, t(this, E).timezone), e(this, H, It(t(this, b))), t(this, T) && (t(this, T).call(this), e(this, T, t(this, H).subscribe(this.refreshFrame.bind(this, !0)))), n(this, nt, Ct).call(this);
160
167
  }
161
168
  set trackCurrentDay(s) {
162
- Ot(s) ? s && !t(this, R) ? i(this, R, t(this, M).subscribe(this.refreshFrame.bind(this, !0))) : !s && t(this, R) && (t(this, R).call(this), i(this, R, void 0)) : D(s) && (this.trackCurrentDay = !1);
169
+ Bt(s) ? s && !t(this, T) ? e(this, T, t(this, H).subscribe(this.refreshFrame.bind(this, !0))) : !s && t(this, T) && (t(this, T).call(this), e(this, T, void 0)) : D(s) && (this.trackCurrentDay = !1);
163
170
  }
164
171
  get units() {
165
- return t(this, P);
172
+ return t(this, Q);
166
173
  }
167
174
  initialize() {
168
- this.withCurrentDayTimestamp(t(this, M).timestamp), this.timeslice = dt;
175
+ this.timeslice = ft;
169
176
  }
170
177
  refreshFrame(s = !1) {
171
- var e;
172
- if (t(this, U).length = 0, !(z(t(this, F)) || s)) {
178
+ var i;
179
+ if (t(this, _).length = 0, !(et(t(this, F)) || s)) {
173
180
  const h = this.getFrameBlockAtIndex(t(this, g)), {
174
181
  from: o,
175
- to: a
176
- } = h.inner, [d] = n(this, C, A).call(this, this.getTimestampAtIndex(o + t(this, F)), !1);
177
- i(this, F, this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(o), d));
178
- const f = o + t(this, F), I = ct(o, f, a);
179
- if (I > f)
180
- return i(this, F, this.getUnitsForFrameBlockAtIndex(--v(this, g)._) + f - I), t(this, g) >= 0 ? this.refreshFrame() : (i(this, g, t(this, u) - 1), this.shiftFrameByOffset(-1, mt));
181
- if (I < f)
182
- return i(this, F, f - I - 1), ++v(this, g)._ < t(this, u) ? this.refreshFrame() : (i(this, g, 0), this.shiftFrameByOffset(1, mt));
183
- i(this, $, o), i(this, V, a), i(this, _, n(this, C, A).call(this, this.getTimestampAtIndex(f), !1)[0]), i(this, F, this.getCursorBlockOriginTimestampOffset(t(this, _))), i(this, T, o + t(this, F));
184
- const Z = t(this, g) > 0 ? this.getFrameBlockAtIndex(0) : h, H = t(this, g) < t(this, u) - 1 ? this.getFrameBlockAtIndex(t(this, u) - 1) : h;
185
- i(this, X, Z.inner.from), i(this, Y, H.inner.to), i(this, P, H.outer.to);
182
+ to: m
183
+ } = h.inner, [d] = n(this, y, L).call(this, this.getTimestampAtIndex(o + t(this, F)), !1);
184
+ e(this, F, this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(o), d));
185
+ const u = o + t(this, F), A = ut(o, u, m);
186
+ if (A > u)
187
+ return e(this, F, this.getUnitsForFrameBlockAtIndex(--K(this, g)._) + u - A), t(this, g) >= 0 ? this.refreshFrame() : (e(this, g, t(this, c) - 1), this.shiftFrameByOffset(-1, ct));
188
+ if (A < u)
189
+ return e(this, F, u - A - 1), ++K(this, g)._ < t(this, c) ? this.refreshFrame() : (e(this, g, 0), this.shiftFrameByOffset(1, ct));
190
+ e(this, Y, o), e(this, V, m), e(this, B, n(this, y, L).call(this, this.getTimestampAtIndex(u), !1)[0]), e(this, F, this.getCursorBlockOriginTimestampOffset(t(this, B))), e(this, k, o + t(this, F));
191
+ const $ = t(this, g) > 0 ? this.getFrameBlockAtIndex(0) : h, tt = t(this, g) < t(this, c) - 1 ? this.getFrameBlockAtIndex(t(this, c) - 1) : h;
192
+ e(this, X, $.inner.from), e(this, j, tt.inner.to), e(this, Q, tt.outer.to + 1);
186
193
  }
187
- this.withCurrentDayTimestamp(t(this, M).timestamp), (e = t(this, L)) == null || e.call(this);
188
- }
189
- shiftFrameByOffset(s, e) {
190
- if (s && Ft(s))
191
- switch (e) {
192
- case Ut:
193
- return n(this, x, K).call(this, s);
194
- case _t:
195
- return n(this, x, K).call(this, s * 12);
196
- case mt:
194
+ this.withCurrentDayTimestamp(), (i = t(this, z)) == null || i.call(this);
195
+ }
196
+ shiftFrameByOffset(s, i) {
197
+ if (s && St(s))
198
+ switch (i) {
199
+ case zt:
200
+ return n(this, x, v).call(this, s);
201
+ case wt:
202
+ return n(this, x, v).call(this, s * 12);
203
+ case ct:
197
204
  default:
198
- return n(this, x, K).call(this, s * t(this, u));
205
+ return n(this, x, v).call(this, s * t(this, c));
199
206
  }
200
207
  }
201
208
  shiftFrameCursor(s) {
202
209
  switch (s) {
203
- case zt:
210
+ case qt:
204
211
  return n(this, p, O).call(this, -1);
205
- case vt:
212
+ case jt:
206
213
  return n(this, p, O).call(this, 1);
207
- case Ht:
214
+ case Xt:
208
215
  return n(this, p, O).call(this, -this.rowspan);
209
- case Mt:
216
+ case Vt:
210
217
  return n(this, p, O).call(this, this.rowspan);
211
- case Wt:
212
- return n(this, p, O).call(this, t(this, $) - t(this, T));
213
- case Lt:
214
- return n(this, p, O).call(this, t(this, V) - t(this, T));
215
- case Nt:
216
- return n(this, p, O).call(this, -(t(this, T) % this.rowspan));
217
- case wt:
218
- return n(this, p, O).call(this, this.rowspan - (t(this, T) % this.rowspan + 1));
219
- case bt:
218
+ case Yt:
219
+ return n(this, p, O).call(this, t(this, Y) - t(this, k));
220
+ case vt:
221
+ return n(this, p, O).call(this, t(this, V) - t(this, k));
222
+ case Kt:
223
+ return n(this, p, O).call(this, -(t(this, k) % this.rowspan));
224
+ case Ht:
225
+ return n(this, p, O).call(this, this.rowspan - (t(this, k) % this.rowspan + 1));
226
+ case Mt:
220
227
  return n(this, p, O).call(this, -this.getUnitsForFrameBlockAtIndex((t(this, g) ?? 0) - 1));
221
- case xt:
228
+ case Wt:
222
229
  return n(this, p, O).call(this, this.getUnitsForFrameBlockAtIndex(t(this, g) ?? 0));
223
230
  }
224
- if (!(s < 0) && s >= t(this, X) && s <= t(this, Y))
225
- return n(this, p, O).call(this, s - t(this, T));
231
+ if (!(s < 0) && s >= t(this, X) && s <= t(this, j))
232
+ return n(this, p, O).call(this, s - t(this, k));
226
233
  }
227
234
  shiftFrameToTimestamp(s) {
228
- const e = n(this, C, A).call(this, s, !1)[0];
229
- i(this, F, this.getCursorBlockOriginTimestampOffset(i(this, _, this.originTimestamp = e))), this.reoriginate(), [v(this, y)._, v(this, B)._] = this.getEdgeBlockOffsetsFromOrigin(), n(this, Q, lt).call(this), this.refreshFrame(), n(this, p, O).call(this, this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(t(this, T)), e));
235
+ e(this, B, this.originTimestamp = n(this, y, L).call(this, s, !1).reduce((i, h) => i + h)), e(this, F, this.getCursorBlockOriginTimestampOffset(t(this, B))), this.reoriginate(), [K(this, R)._, K(this, C)._] = this.getEdgeBlockOffsetsFromOrigin(), n(this, Z, dt).call(this), this.refreshFrame(), n(this, p, O).call(this, this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(t(this, k)), t(this, B)));
230
236
  }
231
237
  clearSelection() {
232
- this.blankSelection || (i(this, l, i(this, c, void 0)), this.refreshFrame(!0));
238
+ this.blankSelection || (e(this, l, e(this, f, void 0)), this.refreshFrame(!0));
233
239
  }
234
- getCursorOrderForTimeRelativeToSelectionEdge(s, e = st) {
235
- let h, o = !1;
236
- switch (e) {
237
- case st:
238
- h = t(this, l);
240
+ updateSelection(s, i) {
241
+ const h = t(this, l), o = t(this, f), m = n(this, y, L).call(this, s, !1).reduce((d, u) => d + u);
242
+ switch (i === Ft && (m <= h ? i = kt : m >= o && (i = Tt)), i) {
243
+ case Tt:
244
+ e(this, l, m), e(this, f, Math.max(t(this, l), o ?? m));
239
245
  break;
240
- case ot:
241
- h = t(this, c), o = !0;
242
- break;
243
- }
244
- if (z(h))
245
- return 0;
246
- const a = n(this, C, A).call(this, s, !1).reduce((f, I) => f + I, 0), d = this.getUnitsOffsetForTimestamp(h, a) * (o ? -1 : 1);
247
- return d && (d > 0 ? 1 : -1);
248
- }
249
- updateSelection(s, e) {
250
- const h = t(this, l), o = t(this, c), a = n(this, C, A).call(this, s, !1).reduce((d, f) => d + f, 0);
251
- switch (e === pt && (a <= h ? e = ot : a >= o && (e = st)), e) {
252
- case st:
253
- i(this, l, a), i(this, c, Math.max(t(this, l), o ?? a));
246
+ case kt:
247
+ e(this, f, m), e(this, l, Math.min(h ?? m, t(this, f)));
254
248
  break;
255
- case ot:
256
- i(this, c, a), i(this, l, Math.min(h ?? a, t(this, c)));
257
- break;
258
- case pt:
259
- case gt: {
260
- let d = Math.abs(a - (h ?? a)), f = Math.abs(a - (o ?? a));
261
- e === gt && ([d, f] = [f, d]), d > f ? i(this, l, a) : i(this, c, a);
249
+ case Ft:
250
+ case Ot: {
251
+ let d = Math.abs(m - (h ?? m)), u = Math.abs(m - (o ?? m));
252
+ i === Ot && ([d, u] = [u, d]), d > u ? e(this, l, m) : e(this, f, m);
262
253
  break;
263
254
  }
264
- case Kt:
255
+ case Gt:
265
256
  default:
266
- i(this, l, i(this, c, a));
257
+ e(this, l, e(this, f, m));
267
258
  break;
268
259
  }
269
- (t(this, l) !== h || t(this, c) !== o) && this.refreshFrame(!0);
260
+ (t(this, l) !== h || t(this, f) !== o) && this.refreshFrame(!0);
270
261
  }
271
262
  };
272
- w = new WeakMap(), g = new WeakMap(), $ = new WeakMap(), V = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), T = new WeakMap(), F = new WeakMap(), _ = new WeakMap(), N = new WeakMap(), L = new WeakMap(), W = new WeakMap(), U = new WeakMap(), S = new WeakMap(), j = new WeakMap(), l = new WeakMap(), c = new WeakMap(), u = new WeakMap(), E = new WeakMap(), M = new WeakMap(), R = new WeakMap(), q = new WeakMap(), G = new WeakMap(), y = new WeakMap(), B = new WeakMap(), J = new WeakMap(), P = new WeakMap(), it = new WeakMap(), rt = new WeakMap(), ht = new WeakSet(), kt = function(s) {
273
- return ct(t(this, y), s || 0, t(this, B) - t(this, u) + 1);
274
- }, C = new WeakSet(), A = function(s, e = !0) {
263
+ N = new WeakMap(), g = new WeakMap(), Y = new WeakMap(), V = new WeakMap(), X = new WeakMap(), j = new WeakMap(), k = new WeakMap(), F = new WeakMap(), B = new WeakMap(), w = new WeakMap(), z = new WeakMap(), W = new WeakMap(), _ = new WeakMap(), S = new WeakMap(), q = new WeakMap(), l = new WeakMap(), f = new WeakMap(), c = new WeakMap(), M = new WeakMap(), E = new WeakMap(), b = new WeakMap(), H = new WeakMap(), T = new WeakMap(), G = new WeakMap(), J = new WeakMap(), R = new WeakMap(), C = new WeakMap(), P = new WeakMap(), Q = new WeakMap(), rt = new WeakMap(), ht = new WeakMap(), nt = new WeakSet(), Ct = function() {
264
+ const {
265
+ from: s,
266
+ to: i,
267
+ span: h,
268
+ offsets: o
269
+ } = t(this, E);
270
+ e(this, G, s - o.from), e(this, J, i - o.to), e(this, P, h);
271
+ const m = et(t(this, l)) ? t(this, l) : Math.max(t(this, l), s), d = et(t(this, f)) ? t(this, f) : Math.min(t(this, f), i);
272
+ m === t(this, l) || d === t(this, f) ? (e(this, l, m), e(this, f, d)) : e(this, l, e(this, f, void 0)), this.reslice(), e(this, q, gt(12, this.numberOfBlocks)), e(this, c, gt(t(this, c), this.numberOfBlocks)), this.shiftFrameToTimestamp(t(this, B));
273
+ }, at = new WeakSet(), Rt = function(s) {
274
+ return ut(t(this, R), s || 0, t(this, C) - t(this, c) + 1);
275
+ }, y = new WeakSet(), L = function(s, i = !0) {
275
276
  let h = new Date(s).getTime();
276
277
  if (isNaN(h))
277
- return n(this, C, A).call(this, Date.now());
278
+ return n(this, y, L).call(this, Date.now());
278
279
  const {
279
280
  from: o,
280
- to: a
281
- } = t(this, E), d = ct(o, h, a);
282
- d !== h && e ? (h = Yt(o, a), (isNaN(h) || ft(h)) && (h = d)) : h = d;
283
- const f = Dt(h);
284
- return [h - f, f];
285
- }, nt = new WeakSet(), It = function(s) {
286
- if (Ft(s) && s >= 0 && s < t(this, u)) {
287
- if (!t(this, U)[s]) {
288
- const e = this.getFrameBlockAtIndex(s);
289
- if (!e)
281
+ to: m
282
+ } = t(this, E), d = ut(o, h, m);
283
+ d !== h && i ? (h = Zt(o, m), (isNaN(h) || lt(h)) && (h = d)) : h = d;
284
+ const u = Ut(h, t(this, b));
285
+ return [h - u, u];
286
+ }, mt = new WeakSet(), yt = function(s) {
287
+ if (St(s) && s >= 0 && s < t(this, c)) {
288
+ if (!t(this, _)[s]) {
289
+ const i = this.getFrameBlockAtIndex(s);
290
+ if (!i)
290
291
  return;
291
- const h = `${e.year}-${`0${1 + e.month}`.slice(-2)}-01`, [o, a] = this.getFormattedDataForFrameBlock(new Date(h).setHours(12)), d = e.outer.from;
292
- t(this, U)[s] = et({
293
- datetime: k(a),
294
- label: k(o),
295
- length: k(Math.ceil(e.outer.units / this.rowspan)),
296
- month: k(e.month),
297
- year: k(e.year)
298
- }, (f) => {
299
- const I = f * this.rowspan;
300
- return et(this.rowspan, (Z) => {
301
- const [H, St] = e[Z + I], [Bt, Ct] = this.getFormattedDataForBlockCell(new Date(H).setHours(12));
302
- return qt({
303
- datetime: k(Ct),
304
- flags: k($t(St)),
305
- index: k(d + Z + I),
306
- label: k(Bt),
307
- timestamp: k(H)
292
+ const [h, o] = this.getFormattedDataForFrameBlock(i[i.inner.from][0] + pt / 2), m = i.outer.from;
293
+ t(this, _)[s] = it({
294
+ datetime: I(o),
295
+ label: I(h),
296
+ length: I(Math.ceil(i.outer.units / this.rowspan)),
297
+ month: I(i.month),
298
+ year: I(i.year)
299
+ }, (d) => {
300
+ const u = d * this.rowspan;
301
+ return it(this.rowspan, (A) => {
302
+ const [$, tt] = i[A + u], [At, Dt] = this.getFormattedDataForBlockCell($ + pt / 2);
303
+ return ts({
304
+ datetime: I(Dt),
305
+ flags: I(Jt(tt)),
306
+ index: I(m + A + u),
307
+ label: I(At),
308
+ timestamp: I($)
308
309
  });
309
310
  });
310
311
  });
311
312
  }
312
- return t(this, U)[s];
313
+ return t(this, _)[s];
313
314
  }
314
315
  }, p = new WeakSet(), O = function(s) {
315
- s !== 0 && (i(this, F, t(this, F) + s), this.refreshFrame());
316
- }, x = new WeakSet(), K = function(s) {
317
- const e = n(this, ht, kt).call(this, s);
318
- e && (this.shiftOrigin(e), i(this, y, t(this, y) - e), i(this, B, t(this, B) - e), i(this, g, jt(t(this, g) - e, t(this, u))), this.refreshFrame());
319
- }, Q = new WeakSet(), lt = function() {
320
- const s = t(this, u) - 1, e = Math.min(s - this.origin % t(this, u), t(this, B)) - s;
321
- e && n(this, x, K).call(this, e);
322
- }, r(b, w, "en-US");
323
- let Tt = b;
316
+ s !== 0 && (e(this, F, t(this, F) + s), this.refreshFrame());
317
+ }, x = new WeakSet(), v = function(s) {
318
+ const i = n(this, at, Rt).call(this, s);
319
+ i && (this.shiftOrigin(i), e(this, R, t(this, R) - i), e(this, C, t(this, C) - i), e(this, g, $t(t(this, g) - i, t(this, c))), this.refreshFrame());
320
+ }, Z = new WeakSet(), dt = function() {
321
+ const s = t(this, c) - 1, i = Math.min(s - this.origin % t(this, c), t(this, C)) - s;
322
+ i && n(this, x, v).call(this, i);
323
+ }, r(U, N, Pt);
324
+ let Et = U;
324
325
  export {
325
- Tt as default
326
+ Et as default
326
327
  };
@@ -1,25 +1,26 @@
1
- import c from "../factory.js";
2
- import { startOfDay as f, nowTimestamp as p, getRangeTimestampsContextIntegerPropertyFactory as y } from "../utils.js";
3
- const g = 365, i = 1, u = 1, N = y(i, g, u), _ = (r) => {
4
- const a = N(r);
5
- return c({
1
+ import m from "../factory.js";
2
+ import { nowTimestamp as D, getRangeTimestampsContextIntegerPropertyFactory as c } from "../utils.js";
3
+ import { startOfDay as f } from "../../utils.js";
4
+ const p = 365, y = 1, i = 1, u = c(y, p, i), N = (o) => {
5
+ const e = u(o);
6
+ return m({
6
7
  from: ({
7
- now: s,
8
- systemToTimezone: n,
9
- timezoneToSystem: D
8
+ now: a,
9
+ timezone: r,
10
+ systemToTimezone: s,
11
+ timezoneToSystem: n
10
12
  }) => {
11
- const t = new Date(s), m = new Date(D(s)), e = t.getDate() - m.getDate();
12
- let o = a.value - 1;
13
- return e && (o += e > 1 ? -1 : e < -1 ? 1 : e), f(t), t.setDate(t.getDate() - o), n(t);
13
+ const t = new Date(n(f(a, r)));
14
+ return t.setDate(t.getDate() - e.value + 1), s(t);
14
15
  },
15
- to: p
16
+ to: D
16
17
  }, {
17
- numberOfDays: a.descriptor
18
+ numberOfDays: e.descriptor
18
19
  })();
19
- }, A = _;
20
+ }, M = N;
20
21
  export {
21
- u as DEFAULT_NUM_DAYS,
22
- g as MAX_NUM_DAYS,
23
- i as MIN_NUM_DAYS,
24
- A as default
22
+ i as DEFAULT_NUM_DAYS,
23
+ p as MAX_NUM_DAYS,
24
+ y as MIN_NUM_DAYS,
25
+ M as default
25
26
  };
@@ -1,26 +1,27 @@
1
- import c from "../../factory.js";
2
- import { startOfMonth as i, nowTimestamp as h } from "../../utils.js";
3
- import { clamp as p } from "../../../../../../../utils/value/number.js";
4
- const M = Object.freeze([0, 1, 0, 0, 0, 0, -1]), g = (f = 0) => {
5
- const e = ~~p(0, f, 1 / 0) || 0;
6
- return c({
1
+ import m from "../../factory.js";
2
+ import { nowTimestamp as a } from "../../utils.js";
3
+ import { startOfMonth as c } from "../../../utils.js";
4
+ import { clamp as i } from "../../../../../../../utils/value/number.js";
5
+ const p = Object.freeze([0, 1, 0, 0, 0, 0, -1]), h = (e = 0) => {
6
+ const o = ~~i(0, e, 1 / 0) || 0;
7
+ return m({
7
8
  from: ({
8
9
  now: n,
9
- systemToTimezone: r,
10
- timezoneToSystem: m
10
+ timezone: r,
11
+ systemToTimezone: s,
12
+ timezoneToSystem: f
11
13
  }) => {
12
- const t = new Date(n), a = new Date(m(n)), o = t.getMonth() - a.getMonth();
13
- let s = e;
14
- return o && (s += o > 1 ? -1 : o < -1 ? 1 : o), i(t), t.setMonth(t.getMonth() - s), r(t);
14
+ const t = new Date(f(c(n, r)));
15
+ return t.setMonth(t.getMonth() - o), s(t);
15
16
  },
16
- ...e ? {
17
- offsets: M
17
+ ...o ? {
18
+ offsets: p
18
19
  } : {
19
- to: h
20
+ to: a
20
21
  }
21
22
  });
22
- }, l = g;
23
+ }, F = h;
23
24
  export {
24
- M as ONE_MONTH_OFFSETS,
25
- l as default
25
+ p as ONE_MONTH_OFFSETS,
26
+ F as default
26
27
  };