@adyen/adyen-platform-experience-web 1.0.0-beta → 1.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (636) hide show
  1. package/dist/ModalContent-88fdb6f4.js +2 -0
  2. package/dist/ModalContent-88fdb6f4.js.map +1 -0
  3. package/dist/cjs/index.js +1 -35
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/es/components/external/BaseElement.js +48 -88
  6. package/dist/es/components/external/EventEmitter.js +17 -28
  7. package/dist/es/components/external/TransactionDetails/TransactionDetails.js +15 -20
  8. package/dist/es/components/external/TransactionDetails/components/TransactionData.js +41 -42
  9. package/dist/es/components/external/TransactionDetails/components/TransactionDataSkeleton.js +13 -13
  10. package/dist/es/components/external/TransactionDetails/components/TransactionDetails.js +28 -39
  11. package/dist/es/components/external/TransactionDetails/components/TransactionDetails.scss.js +4 -0
  12. package/dist/es/components/external/TransactionsOverview/TransactionsOverviewElement.js +25 -31
  13. package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +7 -10
  14. package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.scss.js +4 -0
  15. package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/constants.js +4 -6
  16. package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/BalanceAccountSelector.js +21 -22
  17. package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/BalanceAccountSelector.scss.js +4 -0
  18. package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.js +13 -21
  19. package/dist/es/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.js +22 -25
  20. package/dist/es/components/external/TransactionsOverview/components/Balances/Balances.js +36 -47
  21. package/dist/es/components/external/TransactionsOverview/components/Balances/constants.js +2 -2
  22. package/dist/es/components/external/TransactionsOverview/components/Category/Category.js +8 -9
  23. package/dist/es/components/external/TransactionsOverview/components/ModalContent.js +9 -9
  24. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +23 -25
  25. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.js +13 -16
  26. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.js +16 -26
  27. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.js +7 -9
  28. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +42 -50
  29. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.scss.js +4 -0
  30. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +18 -19
  31. package/dist/es/components/external/TransactionsOverview/components/SummaryItem/constants.js +8 -14
  32. package/dist/es/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.js +16 -16
  33. package/dist/es/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.js +37 -42
  34. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +36 -39
  35. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +48 -60
  36. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.scss.js +4 -0
  37. package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/constants.js +3 -4
  38. package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.js +62 -73
  39. package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.scss.js +4 -0
  40. package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/constants.js +3 -4
  41. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +133 -152
  42. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.scss.js +4 -0
  43. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/constants.js +4 -6
  44. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.js +32 -40
  45. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.scss.js +4 -0
  46. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/constants.js +3 -4
  47. package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.js +49 -53
  48. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionTable.scss.js +4 -0
  49. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +75 -84
  50. package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/constants.js +6 -10
  51. package/dist/es/components/external/TransactionsOverview/components/utils.js +6 -12
  52. package/dist/es/components/external/TransactionsOverview/hooks/useDefaultTransactionsOverviewFilterParams.js +21 -39
  53. package/dist/es/components/external/TransactionsOverview/hooks/useMaxWidths.js +9 -10
  54. package/dist/es/components/external/TransactionsOverview/hooks/useMediaQuery.js +23 -28
  55. package/dist/es/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.js +24 -28
  56. package/dist/es/components/external/TransactionsOverview/types.js +4 -0
  57. package/dist/es/components/external/UIElement.js +38 -51
  58. package/dist/es/components/internal/BaseButton/BaseButton.js +18 -21
  59. package/dist/es/components/internal/BaseButton/BaseButton.scss.js +4 -0
  60. package/dist/es/components/internal/BaseButton/constants.js +2 -2
  61. package/dist/es/components/internal/BaseList/BaseList.js +5 -8
  62. package/dist/es/components/internal/BaseList/BaseList.scss.js +4 -0
  63. package/dist/es/components/internal/BaseList/constants.js +2 -2
  64. package/dist/es/components/internal/Button/Button.js +39 -41
  65. package/dist/es/components/internal/Button/Button.scss.js +4 -0
  66. package/dist/es/components/internal/Button/ButtonActions/ButtonActions.js +27 -8
  67. package/dist/es/components/internal/Button/ButtonActions/ButtonActions.scss.js +4 -0
  68. package/dist/es/components/internal/Button/ButtonActions/types.js +7 -0
  69. package/dist/es/components/internal/Button/constants.js +9 -16
  70. package/dist/es/components/internal/Button/hooks/useButton.js +13 -17
  71. package/dist/es/components/internal/Button/types.js +4 -0
  72. package/dist/es/components/internal/Calendar/Calendar.js +20 -21
  73. package/dist/es/components/internal/Calendar/Calendar.scss.js +4 -0
  74. package/dist/es/components/internal/Calendar/calendar/constants.js +35 -70
  75. package/dist/es/components/internal/Calendar/calendar/facade/Calendar.js +322 -552
  76. package/dist/es/components/internal/Calendar/calendar/facade/index.js +37 -46
  77. package/dist/es/components/internal/Calendar/calendar/shared/indexed/index.js +34 -46
  78. package/dist/es/components/internal/Calendar/calendar/timeframe/common/flags.js +31 -5
  79. package/dist/es/components/internal/Calendar/calendar/timeframe/common/utils.js +14 -16
  80. package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +122 -221
  81. package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +238 -418
  82. package/dist/es/components/internal/Calendar/calendar/timerange/factory.js +40 -63
  83. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastMonth.js +3 -3
  84. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +16 -27
  85. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastWeek.js +3 -3
  86. package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.js +14 -23
  87. package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js +21 -29
  88. package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisMonth.js +3 -3
  89. package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisWeek.js +3 -3
  90. package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.js +9 -13
  91. package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +49 -83
  92. package/dist/es/components/internal/Calendar/calendar/timeslice/TimeSlice.js +38 -61
  93. package/dist/es/components/internal/Calendar/calendar/timeslice/index.js +17 -21
  94. package/dist/es/components/internal/Calendar/calendar/types.js +15 -0
  95. package/dist/es/components/internal/Calendar/calendar/utils.js +15 -22
  96. package/dist/es/components/internal/Calendar/clock/clock.js +23 -41
  97. package/dist/es/components/internal/Calendar/clock/today.js +37 -57
  98. package/dist/es/components/internal/Calendar/components/CalendarControls/CalendarControls.js +7 -12
  99. package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGrid.js +26 -28
  100. package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDate.js +33 -58
  101. package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +30 -40
  102. package/dist/es/components/internal/Calendar/components/CalendarGrid/utils.js +44 -49
  103. package/dist/es/components/internal/Calendar/hooks/useCalendar.js +84 -115
  104. package/dist/es/components/internal/Calendar/hooks/useCalendarControlsRendering.js +35 -40
  105. package/dist/es/components/internal/Calendar/hooks/useTimezone.js +24 -46
  106. package/dist/es/components/internal/Calendar/types.js +4 -0
  107. package/dist/es/components/internal/CopyText/CopyText.js +26 -31
  108. package/dist/es/components/internal/CopyText/CopyText.scss.js +4 -0
  109. package/dist/es/components/internal/DataGrid/DataGrid.js +93 -10
  110. package/dist/es/components/internal/DataGrid/DataGrid.scss.js +4 -0
  111. package/dist/es/components/internal/DataGrid/DataGridCell.js +4 -4
  112. package/dist/es/components/internal/DataGrid/components/InteractiveBody.js +38 -8
  113. package/dist/es/components/internal/DataGrid/components/SkeletonBody.js +15 -17
  114. package/dist/es/components/internal/DataGrid/components/TableBody.js +19 -19
  115. package/dist/es/components/internal/DataGrid/components/TableCells.js +19 -25
  116. package/dist/es/components/internal/DataGrid/hooks/useInteractiveDataGrid.js +76 -5
  117. package/dist/es/components/internal/DataGrid/types.js +4 -0
  118. package/dist/es/components/internal/DatePicker/DatePicker.js +45 -62
  119. package/dist/es/components/internal/DatePicker/DatePicker.scss.js +4 -0
  120. package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.js +26 -43
  121. package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +56 -85
  122. package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +45 -53
  123. package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.scss.js +4 -0
  124. package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +56 -75
  125. package/dist/es/components/internal/ExpandableCard/ExpandableCard.scss.js +4 -0
  126. package/dist/es/components/internal/ExpandableCard/constants.js +11 -20
  127. package/dist/es/components/internal/FilterBar/FilterBar.js +32 -35
  128. package/dist/es/components/internal/FilterBar/FilterBar.scss.js +4 -0
  129. package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +15 -17
  130. package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.scss.js +4 -0
  131. package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +41 -63
  132. package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.scss.js +4 -0
  133. package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +53 -68
  134. package/dist/es/components/internal/FilterBar/filters/AmountFilter/constants.js +2 -2
  135. package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +104 -153
  136. package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.js +118 -10
  137. package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.scss.js +4 -0
  138. package/dist/es/components/internal/FilterBar/filters/DateFilter/types.js +4 -0
  139. package/dist/es/components/internal/FormFields/FormFields.scss.js +4 -0
  140. package/dist/es/components/internal/FormFields/InputBase.js +53 -66
  141. package/dist/es/components/internal/FormFields/InputText.js +6 -6
  142. package/dist/es/components/internal/FormFields/Select/Select.js +187 -246
  143. package/dist/es/components/internal/FormFields/Select/Select.scss.js +4 -0
  144. package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +68 -72
  145. package/dist/es/components/internal/FormFields/Select/components/SelectList.js +62 -71
  146. package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +37 -41
  147. package/dist/es/components/internal/FormFields/Select/constants.js +27 -49
  148. package/dist/es/components/internal/FormFields/Select/hooks/useSelect.js +27 -35
  149. package/dist/es/components/internal/Image/Image.js +10 -10
  150. package/dist/es/components/internal/Img/Img.js +18 -32
  151. package/dist/es/components/internal/Img/Img.scss.js +4 -0
  152. package/dist/es/components/internal/Modal/Modal.js +58 -77
  153. package/dist/es/components/internal/Modal/Modal.scss.js +4 -0
  154. package/dist/es/components/internal/Pagination/Pagination.js +52 -58
  155. package/dist/es/components/internal/Pagination/Pagination.scss.js +4 -0
  156. package/dist/es/components/internal/Pagination/constants.js +4 -6
  157. package/dist/es/components/internal/Pagination/hooks/useCursorPaginatedRecords.js +7 -8
  158. package/dist/es/components/internal/Pagination/hooks/useCursorPagination.js +18 -30
  159. package/dist/es/components/internal/Pagination/hooks/useOffsetPagination.js +14 -21
  160. package/dist/es/components/internal/Pagination/hooks/usePageLimit.js +52 -60
  161. package/dist/es/components/internal/Pagination/hooks/usePaginatedRecords.js +80 -11
  162. package/dist/es/components/internal/Pagination/hooks/usePaginatedRecordsFilters.js +12 -13
  163. package/dist/es/components/internal/Pagination/hooks/usePagination.js +43 -87
  164. package/dist/es/components/internal/Pagination/types.js +5 -0
  165. package/dist/es/components/internal/Pagination/utils.js +5 -5
  166. package/dist/es/components/internal/Popover/Popover.js +106 -139
  167. package/dist/es/components/internal/Popover/Popover.scss.js +4 -0
  168. package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.js +18 -22
  169. package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.scss.js +4 -0
  170. package/dist/es/components/internal/Popover/PopoverTitle/PopoverTitle.js +8 -10
  171. package/dist/es/components/internal/Popover/constants.js +9 -16
  172. package/dist/es/components/internal/Popover/types.js +6 -0
  173. package/dist/es/components/internal/Popover/utils/popoverUtil.js +27 -45
  174. package/dist/es/components/internal/Popover/utils/utils.js +23 -29
  175. package/dist/es/components/internal/SVGIcons/CheckedBox.js +6 -6
  176. package/dist/es/components/internal/SVGIcons/Checkmark.js +7 -7
  177. package/dist/es/components/internal/SVGIcons/ChevronDown.js +6 -6
  178. package/dist/es/components/internal/SVGIcons/ChevronLeft.js +8 -8
  179. package/dist/es/components/internal/SVGIcons/ChevronRight.js +8 -8
  180. package/dist/es/components/internal/SVGIcons/ChevronUp.js +7 -7
  181. package/dist/es/components/internal/SVGIcons/Close.js +4 -4
  182. package/dist/es/components/internal/SVGIcons/Copy.js +3 -3
  183. package/dist/es/components/internal/SVGIcons/Filter.js +4 -4
  184. package/dist/es/components/internal/SVGIcons/UncheckedBox.js +6 -6
  185. package/dist/es/components/internal/Spinner/Spinner.js +4 -5
  186. package/dist/es/components/internal/Spinner/Spinner.scss.js +4 -0
  187. package/dist/es/components/internal/Tag/Tag.js +19 -5
  188. package/dist/es/components/internal/Tag/Tag.scss.js +4 -0
  189. package/dist/es/components/internal/Tag/types.js +4 -0
  190. package/dist/es/components/internal/Tooltip/Tooltip.js +31 -38
  191. package/dist/es/components/internal/Tooltip/Tooltip.scss.js +4 -0
  192. package/dist/es/components/internal/Tooltip/useTooltipListeners.js +17 -20
  193. package/dist/es/components/internal/Typography/Typography.js +33 -7
  194. package/dist/es/components/internal/Typography/Typography.scss.js +4 -0
  195. package/dist/es/components/internal/Typography/constants.js +2 -2
  196. package/dist/es/components/internal/Typography/types.js +6 -0
  197. package/dist/es/components/shared.scss.js +4 -0
  198. package/dist/es/components/types.js +4 -0
  199. package/dist/es/components/utils/transactionResourceErrorCodes.js +14 -15
  200. package/dist/es/constants.js +2 -2
  201. package/dist/es/core/Auth/AuthContext.js +7 -7
  202. package/dist/es/core/Auth/AuthProvider.js +15 -23
  203. package/dist/es/core/Auth/useAuthContext.js +4 -4
  204. package/dist/es/core/Context/CoreContext.js +5 -5
  205. package/dist/es/core/Context/CoreProvider.js +17 -23
  206. package/dist/es/core/Context/useCoreContext.js +4 -4
  207. package/dist/es/core/Errors/AdyenPlatformExperienceError.js +12 -17
  208. package/dist/es/core/Errors/constants.js +2 -4
  209. package/dist/es/core/Localization/Localization.js +155 -12
  210. package/dist/es/core/Localization/amount/amount-util.js +19 -42
  211. package/dist/es/core/Localization/constants/currency-codes.js +3 -3
  212. package/dist/es/core/Localization/constants/currency-decimals.js +3 -3
  213. package/dist/es/core/Localization/constants/locale.js +5 -7
  214. package/dist/es/core/Localization/constants/localization.js +6 -9
  215. package/dist/es/core/Localization/datetime/restamper/constants.js +20 -29
  216. package/dist/es/core/Localization/datetime/restamper/restamper.js +32 -44
  217. package/dist/es/core/Localization/datetime/restamper/utils.js +26 -44
  218. package/dist/es/core/Localization/localization-utils.js +31 -7
  219. package/dist/es/core/Localization/translations/ar.json.js +4 -0
  220. package/dist/es/core/Localization/translations/cs-CZ.json.js +4 -0
  221. package/dist/es/core/Localization/translations/da-DK.json.js +4 -0
  222. package/dist/es/core/Localization/translations/de-DE.json.js +4 -0
  223. package/dist/es/core/Localization/translations/el-GR.json.js +4 -0
  224. package/dist/es/core/Localization/translations/en-US.json.js +371 -0
  225. package/dist/es/core/Localization/translations/es-ES.json.js +255 -0
  226. package/dist/es/core/Localization/translations/fi-FI.json.js +4 -0
  227. package/dist/es/core/Localization/translations/fr-FR.json.js +4 -0
  228. package/dist/es/core/Localization/translations/hr-HR.json.js +4 -0
  229. package/dist/es/core/Localization/translations/hu-HU.json.js +4 -0
  230. package/dist/es/core/Localization/translations/index.js +79 -356
  231. package/dist/es/core/Localization/translations/it-IT.json.js +4 -0
  232. package/dist/es/core/Localization/translations/ja-JP.json.js +4 -0
  233. package/dist/es/core/Localization/translations/ko-KR.json.js +4 -0
  234. package/dist/es/core/Localization/translations/nl-NL.json.js +4 -0
  235. package/dist/es/core/Localization/translations/no-NO.json.js +4 -0
  236. package/dist/es/core/Localization/translations/pl-PL.json.js +4 -0
  237. package/dist/es/core/Localization/translations/pt-BR.json.js +4 -0
  238. package/dist/es/core/Localization/translations/pt-PT.json.js +4 -0
  239. package/dist/es/core/Localization/translations/ro-RO.json.js +4 -0
  240. package/dist/es/core/Localization/translations/ru-RU.json.js +4 -0
  241. package/dist/es/core/Localization/translations/sk-SK.json.js +4 -0
  242. package/dist/es/core/Localization/translations/sl-SI.json.js +4 -0
  243. package/dist/es/core/Localization/translations/sv-SE.json.js +4 -0
  244. package/dist/es/core/Localization/translations/zh-CN.json.js +4 -0
  245. package/dist/es/core/Localization/translations/zh-TW.json.js +4 -0
  246. package/dist/es/core/Localization/utils.js +44 -72
  247. package/dist/es/core/Services/requests/http.js +31 -49
  248. package/dist/es/core/Services/requests/utils.js +34 -49
  249. package/dist/es/core/Services/sessions/constants.js +2 -2
  250. package/dist/es/core/Services/sessions/setup-session.js +9 -9
  251. package/dist/es/core/Session/Session.js +23 -38
  252. package/dist/es/core/Session/utils.js +5 -5
  253. package/dist/es/core/config.js +2 -6
  254. package/dist/es/core/core.js +44 -85
  255. package/dist/es/core/utils.js +8 -10
  256. package/dist/es/external/preact/compat/dist/compat.module.js +253 -0
  257. package/dist/es/external/preact/dist/preact.module.js +316 -0
  258. package/dist/es/external/preact/hooks/dist/hooks.module.js +161 -0
  259. package/dist/es/external/preact/jsx-runtime/dist/jsxRuntime.module.js +19 -0
  260. package/dist/es/hooks/element/useClickOutside.js +32 -73
  261. package/dist/es/hooks/element/useDetachedRender.js +15 -17
  262. package/dist/es/hooks/element/useFocusCursor.js +14 -19
  263. package/dist/es/hooks/element/useFocusTrap.js +48 -91
  264. package/dist/es/hooks/element/usePopoverPositioner.js +105 -5
  265. package/dist/es/hooks/element/useUniqueIdentifier.js +13 -17
  266. package/dist/es/hooks/useBooleanState/useBooleanState.js +6 -8
  267. package/dist/es/hooks/useCommitAction/types.js +4 -0
  268. package/dist/es/hooks/useCommitAction/useCommitAction.js +27 -38
  269. package/dist/es/hooks/useFetch/useFetch.js +27 -37
  270. package/dist/es/hooks/useImageUrl/useImageUrl.js +22 -26
  271. package/dist/es/hooks/useModalDetails/types.js +6 -0
  272. package/dist/es/hooks/useModalDetails/useModalDetails.js +28 -37
  273. package/dist/es/hooks/useMounted/useMounted.js +8 -14
  274. package/dist/es/hooks/useReactiveState/useReactiveState.js +27 -53
  275. package/dist/es/hooks/useReflex/constants.js +2 -2
  276. package/dist/es/hooks/useReflex/core/reflex.js +47 -66
  277. package/dist/es/hooks/useReflex/core/registry.js +46 -68
  278. package/dist/es/hooks/useReflex/core/utils.js +16 -18
  279. package/dist/es/hooks/useReflex/errors.js +6 -6
  280. package/dist/es/hooks/useReflex/hooks/useReflex.js +7 -12
  281. package/dist/es/hooks/useSessionAwareRequest/useSessionAwareRequest.js +22 -36
  282. package/dist/es/hooks/useSetupEndpoint/useSetupEndpoint.js +20 -26
  283. package/dist/es/images/no-data-female.svg.js +4 -0
  284. package/dist/es/images/no-results.svg.js +4 -0
  285. package/dist/es/index.js +41 -45
  286. package/dist/es/style/index.scss.js +4 -0
  287. package/dist/es/utils/Storage.js +17 -21
  288. package/dist/es/utils/class-name-utils.js +5 -11
  289. package/dist/es/utils/common/constants.js +6 -10
  290. package/dist/es/utils/common/index.js +32 -59
  291. package/dist/es/utils/fixedForwardRef.js +3 -3
  292. package/dist/es/utils/get-image.js +11 -12
  293. package/dist/es/utils/idGenerator.js +3 -6
  294. package/dist/es/utils/memoComparator/memoComparator.js +17 -26
  295. package/dist/es/utils/tabbable.js +71 -110
  296. package/dist/es/utils/uuid.js +5 -5
  297. package/dist/es/utils/validator-utils.js +3 -44
  298. package/dist/es/utils/watchable/constants.js +2 -2
  299. package/dist/es/utils/watchable/core/Watchable.js +45 -83
  300. package/dist/es/utils/watchable/core/helpers.js +19 -26
  301. package/dist/es/utils/watchable/core/syncEffect.js +15 -19
  302. package/dist/es/utils/watchable/index.js +16 -17
  303. package/dist/index-7e2df524.js +12 -0
  304. package/dist/index-7e2df524.js.map +1 -0
  305. package/dist/style.css +1 -0
  306. package/dist/types/components/external/TransactionDetails/TransactionDetails.d.ts +1 -1
  307. package/dist/types/components/external/TransactionDetails/TransactionDetails.d.ts.map +1 -1
  308. package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts +1 -1
  309. package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts.map +1 -1
  310. package/dist/types/components/external/TransactionDetails/types.d.ts +3 -3
  311. package/dist/types/components/external/TransactionDetails/types.d.ts.map +1 -1
  312. package/dist/types/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.d.ts +1 -1
  313. package/dist/types/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.d.ts.map +1 -1
  314. package/dist/types/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.d.ts +2 -2
  315. package/dist/types/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.d.ts.map +1 -1
  316. package/dist/types/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.d.ts +1 -1
  317. package/dist/types/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.d.ts.map +1 -1
  318. package/dist/types/components/external/TransactionsOverview/components/BalanceItem/types.d.ts +1 -1
  319. package/dist/types/components/external/TransactionsOverview/components/BalanceItem/types.d.ts.map +1 -1
  320. package/dist/types/components/external/TransactionsOverview/components/Balances/Balances.d.ts +3 -3
  321. package/dist/types/components/external/TransactionsOverview/components/Balances/Balances.d.ts.map +1 -1
  322. package/dist/types/components/external/TransactionsOverview/components/Category/Category.d.ts +1 -1
  323. package/dist/types/components/external/TransactionsOverview/components/Category/Category.d.ts.map +1 -1
  324. package/dist/types/components/external/TransactionsOverview/components/Category/types.d.ts +2 -2
  325. package/dist/types/components/external/TransactionsOverview/components/Category/types.d.ts.map +1 -1
  326. package/dist/types/components/external/TransactionsOverview/components/ModalContent.d.ts +1 -1
  327. package/dist/types/components/external/TransactionsOverview/components/ModalContent.d.ts.map +1 -1
  328. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts +2 -2
  329. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts.map +1 -1
  330. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.d.ts +1 -1
  331. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.d.ts.map +1 -1
  332. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/types.d.ts +1 -1
  333. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/types.d.ts.map +1 -1
  334. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts +1 -1
  335. package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts.map +1 -1
  336. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.d.ts +1 -1
  337. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.d.ts.map +1 -1
  338. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.d.ts +1 -1
  339. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.d.ts.map +1 -1
  340. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts +2 -2
  341. package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts.map +1 -1
  342. package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts +1 -1
  343. package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts.map +1 -1
  344. package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.d.ts +1 -1
  345. package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.d.ts.map +1 -1
  346. package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/types.d.ts +1 -1
  347. package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/types.d.ts.map +1 -1
  348. package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.d.ts +1 -1
  349. package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.d.ts.map +1 -1
  350. package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.d.ts +3 -3
  351. package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.d.ts.map +1 -1
  352. package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.d.ts +1 -1
  353. package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.d.ts.map +1 -1
  354. package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/types.d.ts +1 -1
  355. package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/types.d.ts.map +1 -1
  356. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts +2 -2
  357. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts.map +1 -1
  358. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.d.ts +1 -1
  359. package/dist/types/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.d.ts.map +1 -1
  360. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts +1 -1
  361. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts.map +1 -1
  362. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts +4 -4
  363. package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts.map +1 -1
  364. package/dist/types/components/external/TransactionsOverview/hooks/useDefaultTransactionsOverviewFilterParams.d.ts +1 -0
  365. package/dist/types/components/external/TransactionsOverview/hooks/useDefaultTransactionsOverviewFilterParams.d.ts.map +1 -1
  366. package/dist/types/components/external/TransactionsOverview/hooks/useMediaQuery.d.ts +1 -1
  367. package/dist/types/components/external/TransactionsOverview/hooks/useMediaQuery.d.ts.map +1 -1
  368. package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts +1 -1
  369. package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts.map +1 -1
  370. package/dist/types/components/external/TransactionsOverview/types.d.ts +2 -1
  371. package/dist/types/components/external/TransactionsOverview/types.d.ts.map +1 -1
  372. package/dist/types/components/external/UIElement.d.ts +1 -1
  373. package/dist/types/components/external/UIElement.d.ts.map +1 -1
  374. package/dist/types/components/internal/BaseList/BaseList.d.ts +1 -1
  375. package/dist/types/components/internal/BaseList/BaseList.d.ts.map +1 -1
  376. package/dist/types/components/internal/Button/ButtonActions/ButtonActions.d.ts +1 -1
  377. package/dist/types/components/internal/Button/ButtonActions/ButtonActions.d.ts.map +1 -1
  378. package/dist/types/components/internal/Button/ButtonActions/types.d.ts +1 -1
  379. package/dist/types/components/internal/Button/ButtonActions/types.d.ts.map +1 -1
  380. package/dist/types/components/internal/Calendar/calendar/shared/indexed/index.d.ts.map +1 -1
  381. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts +1 -1
  382. package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts.map +1 -1
  383. package/dist/types/components/internal/Calendar/calendar/timerange/types.d.ts +1 -1
  384. package/dist/types/components/internal/Calendar/calendar/timerange/types.d.ts.map +1 -1
  385. package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts +1 -1
  386. package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts.map +1 -1
  387. package/dist/types/components/internal/Calendar/calendar/types.d.ts +1 -1
  388. package/dist/types/components/internal/Calendar/calendar/types.d.ts.map +1 -1
  389. package/dist/types/components/internal/Calendar/clock/today.d.ts +1 -1
  390. package/dist/types/components/internal/Calendar/clock/today.d.ts.map +1 -1
  391. package/dist/types/components/internal/Calendar/clock/types.d.ts +2 -2
  392. package/dist/types/components/internal/Calendar/clock/types.d.ts.map +1 -1
  393. package/dist/types/components/internal/Calendar/components/CalendarGrid/utils.d.ts.map +1 -1
  394. package/dist/types/components/internal/Calendar/hooks/useCalendar.d.ts +1 -1
  395. package/dist/types/components/internal/Calendar/hooks/useCalendar.d.ts.map +1 -1
  396. package/dist/types/components/internal/Calendar/hooks/useTimezone.d.ts +1 -1
  397. package/dist/types/components/internal/Calendar/hooks/useTimezone.d.ts.map +1 -1
  398. package/dist/types/components/internal/DataGrid/components/InteractiveBody.d.ts +1 -1
  399. package/dist/types/components/internal/DataGrid/components/InteractiveBody.d.ts.map +1 -1
  400. package/dist/types/components/internal/DataGrid/components/TableBody.d.ts +1 -1
  401. package/dist/types/components/internal/DataGrid/components/TableBody.d.ts.map +1 -1
  402. package/dist/types/components/internal/DataGrid/components/TableCells.d.ts +2 -2
  403. package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -1
  404. package/dist/types/components/internal/DataGrid/hooks/useInteractiveDataGrid.d.ts +1 -1
  405. package/dist/types/components/internal/DataGrid/types.d.ts +2 -2
  406. package/dist/types/components/internal/DataGrid/types.d.ts.map +1 -1
  407. package/dist/types/components/internal/DatePicker/DatePicker.d.ts +1 -1
  408. package/dist/types/components/internal/DatePicker/DatePicker.d.ts.map +1 -1
  409. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts +3 -3
  410. package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts.map +1 -1
  411. package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts +1 -1
  412. package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts.map +1 -1
  413. package/dist/types/components/internal/FilterBar/filters/AmountFilter/types.d.ts +2 -2
  414. package/dist/types/components/internal/FilterBar/filters/AmountFilter/types.d.ts.map +1 -1
  415. package/dist/types/components/internal/FilterBar/filters/BaseFilter/types.d.ts +2 -2
  416. package/dist/types/components/internal/FilterBar/filters/BaseFilter/types.d.ts.map +1 -1
  417. package/dist/types/components/internal/FilterBar/filters/DateFilter/types.d.ts +1 -1
  418. package/dist/types/components/internal/FilterBar/filters/DateFilter/types.d.ts.map +1 -1
  419. package/dist/types/components/internal/FormFields/Select/types.d.ts +1 -1
  420. package/dist/types/components/internal/FormFields/Select/types.d.ts.map +1 -1
  421. package/dist/types/components/internal/Pagination/hooks/types.d.ts +1 -1
  422. package/dist/types/components/internal/Pagination/hooks/types.d.ts.map +1 -1
  423. package/dist/types/components/internal/Pagination/hooks/usePaginatedRecordsFilters.d.ts +1 -1
  424. package/dist/types/components/internal/Pagination/hooks/usePaginatedRecordsFilters.d.ts.map +1 -1
  425. package/dist/types/components/internal/Pagination/types.d.ts +1 -1
  426. package/dist/types/components/internal/Pagination/types.d.ts.map +1 -1
  427. package/dist/types/components/internal/Popover/Popover.d.ts +1 -1
  428. package/dist/types/components/internal/Popover/Popover.d.ts.map +1 -1
  429. package/dist/types/components/internal/Popover/types.d.ts +1 -1
  430. package/dist/types/components/internal/Popover/types.d.ts.map +1 -1
  431. package/dist/types/components/internal/Tooltip/types.d.ts +2 -2
  432. package/dist/types/components/internal/Tooltip/types.d.ts.map +1 -1
  433. package/dist/types/components/utils/transactionResourceErrorCodes.d.ts +2 -2
  434. package/dist/types/components/utils/transactionResourceErrorCodes.d.ts.map +1 -1
  435. package/dist/types/core/Auth/AuthContext.d.ts +1 -1
  436. package/dist/types/core/Auth/AuthContext.d.ts.map +1 -1
  437. package/dist/types/core/Auth/AuthProvider.d.ts +1 -1
  438. package/dist/types/core/Auth/AuthProvider.d.ts.map +1 -1
  439. package/dist/types/core/Auth/types.d.ts +1 -1
  440. package/dist/types/core/Auth/types.d.ts.map +1 -1
  441. package/dist/types/core/Context/CoreContext.d.ts +1 -1
  442. package/dist/types/core/Context/CoreContext.d.ts.map +1 -1
  443. package/dist/types/core/Context/types.d.ts +1 -1
  444. package/dist/types/core/Context/types.d.ts.map +1 -1
  445. package/dist/types/core/Errors/AdyenPlatformExperienceError.d.ts +1 -1
  446. package/dist/types/core/Errors/AdyenPlatformExperienceError.d.ts.map +1 -1
  447. package/dist/types/core/Localization/localization-utils.d.ts.map +1 -1
  448. package/dist/types/core/Localization/types.d.ts +3 -3
  449. package/dist/types/core/Localization/types.d.ts.map +1 -1
  450. package/dist/types/core/Session/types.d.ts +1 -1
  451. package/dist/types/core/Session/types.d.ts.map +1 -1
  452. package/dist/types/hooks/element/useClickOutside.d.ts +2 -2
  453. package/dist/types/hooks/element/useClickOutside.d.ts.map +1 -1
  454. package/dist/types/hooks/element/usePopoverPositioner.d.ts +1 -1
  455. package/dist/types/hooks/element/usePopoverPositioner.d.ts.map +1 -1
  456. package/dist/types/hooks/useCommitAction/types.d.ts +1 -1
  457. package/dist/types/hooks/useCommitAction/types.d.ts.map +1 -1
  458. package/dist/types/hooks/useFetch/useFetch.d.ts +1 -1
  459. package/dist/types/hooks/useFetch/useFetch.d.ts.map +1 -1
  460. package/dist/types/hooks/useModalDetails/types.d.ts +2 -2
  461. package/dist/types/hooks/useModalDetails/types.d.ts.map +1 -1
  462. package/dist/types/hooks/useSessionAwareRequest/useSessionAwareRequest.d.ts +1 -1
  463. package/dist/types/hooks/useSessionAwareRequest/useSessionAwareRequest.d.ts.map +1 -1
  464. package/dist/types/hooks/useSetupEndpoint/useSetupEndpoint.d.ts +2 -2
  465. package/dist/types/hooks/useSetupEndpoint/useSetupEndpoint.d.ts.map +1 -1
  466. package/dist/types/utils/Validator/types.d.ts +1 -1
  467. package/dist/types/utils/Validator/types.d.ts.map +1 -1
  468. package/dist/types/utils/useForm/types.d.ts +1 -1
  469. package/dist/types/utils/useForm/types.d.ts.map +1 -1
  470. package/package.json +1 -1
  471. package/dist/AmountSkeleton.css +0 -23
  472. package/dist/BalanceAccountSelector.css +0 -4
  473. package/dist/BaseButton.css +0 -14
  474. package/dist/BaseList.css +0 -5
  475. package/dist/Button.css +0 -114
  476. package/dist/ButtonActions-eb064f69.mjs +0 -46
  477. package/dist/ButtonActions.css +0 -28
  478. package/dist/CalendarGrid.css +0 -113
  479. package/dist/CopyText.css +0 -18
  480. package/dist/DatePicker.css +0 -64
  481. package/dist/ErrorMessageDisplay.css +0 -20
  482. package/dist/ErrorPanel.css +0 -15
  483. package/dist/ExpandableCard.css +0 -71
  484. package/dist/FilterBar.css +0 -40
  485. package/dist/FilterButton.css +0 -48
  486. package/dist/Img.css +0 -7
  487. package/dist/InputBase.css +0 -175
  488. package/dist/Modal.css +0 -110
  489. package/dist/Pagination.css +0 -25
  490. package/dist/Popover.css +0 -127
  491. package/dist/PopoverDismissButton.css +0 -12
  492. package/dist/RangeSelection.css +0 -26
  493. package/dist/Select.css +0 -149
  494. package/dist/SkeletonBody.css +0 -154
  495. package/dist/Spinner.css +0 -50
  496. package/dist/SummaryItem.css +0 -37
  497. package/dist/Tag-6d02fd64.mjs +0 -32
  498. package/dist/Tag.css +0 -34
  499. package/dist/Tooltip.css +0 -7
  500. package/dist/TotalsCard.css +0 -14
  501. package/dist/TransactionDetails.css +0 -74
  502. package/dist/TransactionsDisplay.css +0 -4
  503. package/dist/TransactionsOverview.css +0 -29
  504. package/dist/TransactionsOverviewContainer.css +0 -3
  505. package/dist/TransactionsTable.css +0 -18
  506. package/dist/Typography-11b95870.mjs +0 -68
  507. package/dist/Typography.css +0 -57
  508. package/dist/cjs/ModalContent-f4990141.js +0 -10
  509. package/dist/cjs/ModalContent-f4990141.js.map +0 -1
  510. package/dist/cjs/index-8c098f20.js +0 -10401
  511. package/dist/cjs/index-8c098f20.js.map +0 -1
  512. package/dist/cjs/index.css +0 -1709
  513. package/dist/compat.module-a4d537ff.mjs +0 -237
  514. package/dist/en-US-1daadfc1.mjs +0 -371
  515. package/dist/es/components/external/FormElement.js +0 -78
  516. package/dist/es/components/external/TransactionDetails/index.js +0 -4
  517. package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/index.js +0 -6
  518. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/index.js +0 -15
  519. package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/index.js +0 -13
  520. package/dist/es/components/external/TransactionsOverview/index.js +0 -6
  521. package/dist/es/components/external/index.js +0 -8
  522. package/dist/es/components/index.js +0 -11
  523. package/dist/es/components/internal/BaseButton/index.js +0 -4
  524. package/dist/es/components/internal/Button/index.js +0 -4
  525. package/dist/es/components/internal/Calendar/calendar/index.js +0 -4
  526. package/dist/es/components/internal/Calendar/calendar/timeframe/frames/YearFrame.js +0 -197
  527. package/dist/es/components/internal/Calendar/calendar/timeframe/index.js +0 -8
  528. package/dist/es/components/internal/Calendar/calendar/timerange/factory.test.js +0 -139
  529. package/dist/es/components/internal/Calendar/calendar/timerange/index.js +0 -4
  530. package/dist/es/components/internal/Calendar/calendar/timerange/presets/index.js +0 -14
  531. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastMonth.test.js +0 -69
  532. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.test.js +0 -69
  533. package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastWeek.test.js +0 -108
  534. package/dist/es/components/internal/Calendar/calendar/timerange/presets/testing/fixtures.js +0 -15
  535. package/dist/es/components/internal/Calendar/calendar/timerange/presets/testing/helpers.js +0 -19
  536. package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisMonth.test.js +0 -46
  537. package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisWeek.test.js +0 -85
  538. package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.test.js +0 -49
  539. package/dist/es/components/internal/Calendar/clock/clock.test.js +0 -43
  540. package/dist/es/components/internal/Calendar/clock/index.js +0 -7
  541. package/dist/es/components/internal/Calendar/clock/testing/fixtures.js +0 -60
  542. package/dist/es/components/internal/Calendar/clock/today.test.js +0 -98
  543. package/dist/es/components/internal/Calendar/components/CalendarControls/index.js +0 -4
  544. package/dist/es/components/internal/Calendar/components/CalendarGrid/index.js +0 -4
  545. package/dist/es/components/internal/Calendar/index.js +0 -4
  546. package/dist/es/components/internal/DataGrid/index.js +0 -4
  547. package/dist/es/components/internal/DataGrid/tests/DataGrid.test.js +0 -190
  548. package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/index.js +0 -7
  549. package/dist/es/components/internal/DatePicker/index.js +0 -4
  550. package/dist/es/components/internal/ExpandableCard/ExpandableCard.test.js +0 -45
  551. package/dist/es/components/internal/FilterBar/filters/BaseFilter/index.js +0 -4
  552. package/dist/es/components/internal/FilterBar/filters/DateFilter/index.js +0 -4
  553. package/dist/es/components/internal/FilterBar/filters/TextFilter/TextFilter.js +0 -8
  554. package/dist/es/components/internal/FilterBar/filters/TextFilter/index.js +0 -4
  555. package/dist/es/components/internal/FilterBar/index.js +0 -4
  556. package/dist/es/components/internal/FormFields/Select/index.js +0 -4
  557. package/dist/es/components/internal/FormFields/index.js +0 -18
  558. package/dist/es/components/internal/FormFields/utils.js +0 -4
  559. package/dist/es/components/internal/Img/index.js +0 -4
  560. package/dist/es/components/internal/Modal/index.js +0 -4
  561. package/dist/es/components/internal/Pagination/components/LimitSelect.js +0 -1
  562. package/dist/es/components/internal/Pagination/hooks/index.js +0 -6
  563. package/dist/es/components/internal/Pagination/hooks/useOffsetPaginatedRecords.js +0 -10
  564. package/dist/es/components/internal/Pagination/index.js +0 -4
  565. package/dist/es/components/internal/Popover/Popover.test.js +0 -119
  566. package/dist/es/components/internal/Spinner/index.js +0 -4
  567. package/dist/es/components/utils/utils.js +0 -34
  568. package/dist/es/core/Analytics/Analytics.js +0 -63
  569. package/dist/es/core/Analytics/EventsQueue.js +0 -22
  570. package/dist/es/core/Analytics/index.js +0 -4
  571. package/dist/es/core/Errors/ErrorPanel.js +0 -19
  572. package/dist/es/core/Localization/Localization.test.js +0 -70
  573. package/dist/es/core/Localization/amount/amount-util.test.js +0 -54
  574. package/dist/es/core/Localization/datetime/restamper/index.js +0 -9
  575. package/dist/es/core/Localization/datetime/restamper/restamper.test.js +0 -179
  576. package/dist/es/core/Localization/datetime/restamper/testing/fixtures.js +0 -21
  577. package/dist/es/core/Localization/datetime/restamper/testing/helpers.js +0 -27
  578. package/dist/es/core/Localization/index.js +0 -32
  579. package/dist/es/core/Localization/utils.test.js +0 -215
  580. package/dist/es/core/ProcessResponse/index.js +0 -4
  581. package/dist/es/core/ProcessResponse/process-response.js +0 -40
  582. package/dist/es/core/Services/analytics/collect-id.js +0 -37
  583. package/dist/es/core/Services/analytics/log-event.js +0 -14
  584. package/dist/es/core/Services/analytics/post-telemetry.js +0 -22
  585. package/dist/es/core/Services/data-set.js +0 -1
  586. package/dist/es/core/Services/get-dataset.js +0 -13
  587. package/dist/es/core/Services/requests/endpoints.js +0 -9
  588. package/dist/es/core/Session/index.js +0 -4
  589. package/dist/es/core/index.js +0 -36
  590. package/dist/es/hooks/element/useIdentifierString.js +0 -61
  591. package/dist/es/hooks/useBooleanState/index.js +0 -4
  592. package/dist/es/hooks/useCommitAction/index.js +0 -6
  593. package/dist/es/hooks/useDefinedValue/index.js +0 -4
  594. package/dist/es/hooks/useDefinedValue/useDefinedValue.js +0 -16
  595. package/dist/es/hooks/useMounted/index.js +0 -4
  596. package/dist/es/hooks/useReactiveState/index.js +0 -4
  597. package/dist/es/hooks/useReflex/core/reflex.test.js +0 -170
  598. package/dist/es/hooks/useReflex/core/registry.test.js +0 -114
  599. package/dist/es/hooks/useReflex/core/utils.test.js +0 -59
  600. package/dist/es/hooks/useReflex/index.js +0 -8
  601. package/dist/es/utils/Validator/ValidationRuleResult.js +0 -28
  602. package/dist/es/utils/Validator/Validator.js +0 -67
  603. package/dist/es/utils/Validator/Validator.test.js +0 -27
  604. package/dist/es/utils/Validator/defaultRules.js +0 -12
  605. package/dist/es/utils/Validator/index.js +0 -4
  606. package/dist/es/utils/get-image.test.js +0 -38
  607. package/dist/es/utils/memoComparator/index.js +0 -4
  608. package/dist/es/utils/regex.js +0 -6
  609. package/dist/es/utils/useForm/index.js +0 -4
  610. package/dist/es/utils/useForm/reducer.js +0 -153
  611. package/dist/es/utils/useForm/useForm.js +0 -85
  612. package/dist/es/utils/useForm/useForm.test.js +0 -107
  613. package/dist/es/utils/uuid.test.js +0 -13
  614. package/dist/es/utils/watchable/core/Watchable.test.js +0 -103
  615. package/dist/es/utils/watchable/core/helpers.test.js +0 -106
  616. package/dist/es/utils/watchable/core/syncEffect.test.js +0 -103
  617. package/dist/flags-41c36e13.mjs +0 -83
  618. package/dist/hooks.module-8565d716.mjs +0 -161
  619. package/dist/index-2c0f6175.mjs +0 -12069
  620. package/dist/index-6e47f755.mjs +0 -231
  621. package/dist/index-944be685.mjs +0 -6609
  622. package/dist/index-c88cd37e.mjs +0 -243
  623. package/dist/index-f5bc0382.mjs +0 -155
  624. package/dist/index.css +0 -65
  625. package/dist/index2.css +0 -4
  626. package/dist/jsxRuntime.module-69493d81.mjs +0 -15
  627. package/dist/magic-string.es-219c273f.mjs +0 -1146
  628. package/dist/preact.module-38e5a571.mjs +0 -323
  629. package/dist/types-0027b7c2.mjs +0 -9
  630. package/dist/types-0aaff3aa.mjs +0 -19
  631. package/dist/types-7ad6576a.mjs +0 -10
  632. package/dist/types-e4bbd37f.mjs +0 -13
  633. package/dist/types-e6a6a3ff.mjs +0 -9
  634. package/dist/usePaginatedRecords-63a69bf1.mjs +0 -131
  635. package/dist/usePopoverPositioner-882fea89.mjs +0 -182
  636. package/dist/vendor-vi.a3ff54b1-5e924357.mjs +0 -22389
@@ -1,670 +1,440 @@
1
- var __accessCheck = (obj, member, msg) => {
2
- if (!member.has(obj))
3
- throw TypeError("Cannot " + msg);
1
+ var si = Object.defineProperty;
2
+ var ei = (d, i, e) => i in d ? si(d, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[i] = e;
3
+ var At = (d, i, e) => (ei(d, typeof i != "symbol" ? i + "" : i, e), e), Dt = (d, i, e) => {
4
+ if (!i.has(d))
5
+ throw TypeError("Cannot " + e);
4
6
  };
5
- var __privateGet = (obj, member, getter) => {
6
- __accessCheck(obj, member, "read from private field");
7
- return getter ? getter.call(obj) : member.get(obj);
8
- };
9
- var __privateAdd = (obj, member, value) => {
10
- if (member.has(obj))
7
+ var t = (d, i, e) => (Dt(d, i, "read from private field"), e ? e.call(d) : i.get(d)), h = (d, i, e) => {
8
+ if (i.has(d))
11
9
  throw TypeError("Cannot add the same private member more than once");
12
- member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
13
- };
14
- var __privateSet = (obj, member, value, setter) => {
15
- __accessCheck(obj, member, "write to private field");
16
- setter ? setter.call(obj, value) : member.set(obj, value);
17
- return value;
18
- };
19
- var __privateMethod = (obj, member, method) => {
20
- __accessCheck(obj, member, "access private method");
21
- return method;
22
- };
23
- var _config, _destructed, _frame, _highlightFrom, _highlightTo, _highlightInProgress, _highlightSelection, _pendingWatchNotification, _rangeOffsets, _lastHighlightRange, _cursorIndexFromEvent, _shiftFactorFromEvent, _watchCallback, _watchableEffect, _unwatch, _today, _shiftControlsHandles, _shiftControlsList, _shiftControls, _watchable, _lastWatchableSnapshot, _chainedNotifyCallback, _chainedWatchCallback, _grid, _RANGE_OFFSETS_FORMAT_REGEX, _CURSOR_POINTER_INTERACTION_EVENTS, _DAYS_OF_WEEK_FALLBACK, _SHIFT_ACTIVATION_KEYS, _SHIFT_ALL_CONTROLS, _SHIFT_MINIMAL_CONTROLS, _getOffsetsFromRange, getOffsetsFromRange_fn, _getShiftOffsetType, getShiftOffsetType_fn, _getShiftOffsetUnit, getShiftOffsetUnit_fn, _watchableEffectCallback, _withNotifyEffect, withNotifyEffect_fn, _currentConfig, currentConfig_get, _timeframe, timeframe_get, _canShiftInDirection, canShiftInDirection_fn, _configure, configure_fn, _cursorHandle, cursorHandle_fn, _destruct, destruct_fn, _getShiftControlRecordAtIndex, getShiftControlRecordAtIndex_fn, _getShiftFactorFromEvent, getShiftFactorFromEvent_fn, _highlight, highlight_fn, _clearHighlight, clearHighlight_fn, _rangeHighlight, rangeHighlight_fn, _restoreHighlight, restoreHighlight_fn, _reframe, reframe_fn, _refreshHighlighting, refreshHighlighting_fn, _refreshShiftControls, refreshShiftControls_fn;
24
- import { I as InteractionKeyCode } from "../../../../../../types-0aaff3aa.mjs";
25
- import { SELECT_NONE, CALENDAR_CONTROLS, SHIFT_BLOCK, SHIFT_PERIOD, SHIFT_FRAME, CALENDAR_SELECTIONS, SELECT_MANY, FRAME_SIZES, FIRST_WEEK_DAYS, CURSOR_NEXT_BLOCK, CURSOR_PREV_BLOCK, CURSOR_BLOCK_END, CURSOR_LINE_END, CURSOR_BLOCK_START, CURSOR_LINE_START, CURSOR_DOWNWARD, CURSOR_UPWARD, CURSOR_FORWARD, CURSOR_BACKWARD, SELECT_ONE, SELECTION_FROM, SELECTION_TO, CONTROLS_NONE, CONTROLS_MINIMAL, CONTROLS_ALL, SELECTION_COLLAPSE } from "../constants.js";
26
- import indexed from "../shared/indexed/index.js";
27
- import { pickFromCollection, boolify, structFrom, isFunction, noop, struct, isBitSafeInteger } from "../../../../../utils/common/index.js";
28
- import { isString } from "../../../../../utils/validator-utils.js";
29
- import watchable from "../../../../../utils/watchable/index.js";
30
- import MonthFrame from "../timeframe/frames/MonthFrame.js";
31
- import "../timeslice/index.js";
32
- import { C as CalendarShiftControlsFlag, a as CalendarShiftControlFlag } from "../../../../../../flags-41c36e13.mjs";
33
- import "../../clock/clock.js";
34
- import today from "../../clock/today.js";
35
- import { EMPTY_OBJECT, immutableProxyHandlers } from "../../../../../utils/common/constants.js";
36
- const _Calendar = class _Calendar {
10
+ i instanceof WeakSet ? i.add(d) : i.set(d, e);
11
+ }, r = (d, i, e, o) => (Dt(d, i, "write to private field"), o ? o.call(d, e) : i.set(d, e), e);
12
+ var c = (d, i, e) => (Dt(d, i, "access private method"), e);
13
+ import { InteractionKeyCode as g } from "../../../../types.js";
14
+ import { SELECT_NONE as ot, CALENDAR_CONTROLS as vt, SHIFT_BLOCK as hi, SHIFT_PERIOD as It, SHIFT_FRAME as ri, CALENDAR_SELECTIONS as oi, SELECT_MANY as j, FRAME_SIZES as ai, FIRST_WEEK_DAYS as ni, CURSOR_NEXT_BLOCK as ci, CURSOR_PREV_BLOCK as li, CURSOR_BLOCK_END as fi, CURSOR_LINE_END as ui, CURSOR_BLOCK_START as di, CURSOR_LINE_START as Si, CURSOR_DOWNWARD as Ei, CURSOR_UPWARD as mi, CURSOR_FORWARD as Oi, CURSOR_BACKWARD as Ri, SELECT_ONE as at, SELECTION_FROM as O, SELECTION_TO as b, CONTROLS_NONE as gi, CONTROLS_MINIMAL as Ci, CONTROLS_ALL as ki, SELECTION_COLLAPSE as Ti } from "../constants.js";
15
+ import Lt from "../shared/indexed/index.js";
16
+ import { pickFromCollection as V, boolify as G, structFrom as yi, isFunction as I, noop as xt, struct as Fi, isBitSafeInteger as pi } from "../../../../../utils/common/index.js";
17
+ import { isString as Yt } from "../../../../../utils/validator-utils.js";
18
+ import _t from "../../../../../utils/watchable/index.js";
19
+ import { CalendarShiftControlsFlag as jt, CalendarShiftControlFlag as z } from "../types.js";
20
+ import bi from "../../clock/today.js";
21
+ import Ni from "../timeframe/frames/MonthFrame.js";
22
+ import { EMPTY_OBJECT as X, immutableProxyHandlers as Ai } from "../../../../../utils/common/constants.js";
23
+ var Gt, zt, f, y, s, F, C, p, m, W, R, M, A, D, k, N, U, lt, L, T, ft, _, v, P, $, ut, dt, St, Et, mt, Ot, Rt, gt, Xt, Ct, Jt, kt, Zt, Tt, x, nt, B, J, q, wt, yt, $t, Ft, qt, pt, Qt, bt, ti, Q, Ht, Nt, ii, K, Z, tt, Wt, Y, ct, it, Pt, st, Bt, et, Kt, ht, Mt;
24
+ const l = class l {
37
25
  constructor() {
38
- __privateAdd(this, _currentConfig);
39
- __privateAdd(this, _timeframe);
40
- __privateAdd(this, _canShiftInDirection);
41
- __privateAdd(this, _configure);
42
- __privateAdd(this, _cursorHandle);
43
- __privateAdd(this, _destruct);
44
- __privateAdd(this, _getShiftControlRecordAtIndex);
45
- __privateAdd(this, _getShiftFactorFromEvent);
46
- __privateAdd(this, _highlight);
47
- __privateAdd(this, _clearHighlight);
48
- __privateAdd(this, _rangeHighlight);
49
- __privateAdd(this, _restoreHighlight);
50
- __privateAdd(this, _reframe);
51
- __privateAdd(this, _refreshHighlighting);
52
- __privateAdd(this, _refreshShiftControls);
53
- __privateAdd(this, _config, void 0);
54
- __privateAdd(this, _destructed, void 0);
55
- __privateAdd(this, _frame, void 0);
56
- __privateAdd(this, _highlightFrom, void 0);
57
- __privateAdd(this, _highlightTo, void 0);
58
- __privateAdd(this, _highlightInProgress, void 0);
59
- __privateAdd(this, _highlightSelection, void 0);
60
- __privateAdd(this, _pendingWatchNotification, void 0);
61
- __privateAdd(this, _rangeOffsets, void 0);
62
- __privateAdd(this, _lastHighlightRange, void 0);
63
- __privateAdd(this, _cursorIndexFromEvent, void 0);
64
- __privateAdd(this, _shiftFactorFromEvent, void 0);
65
- __privateAdd(this, _watchCallback, void 0);
66
- __privateAdd(this, _watchableEffect, void 0);
67
- __privateAdd(this, _unwatch, void 0);
68
- __privateAdd(this, _today, void 0);
69
- __privateAdd(this, _shiftControlsHandles, void 0);
70
- __privateAdd(this, _shiftControlsList, void 0);
71
- __privateAdd(this, _shiftControls, void 0);
72
- __privateAdd(this, _watchable, void 0);
73
- __privateAdd(this, _lastWatchableSnapshot, void 0);
74
- __privateAdd(this, _chainedNotifyCallback, void 0);
75
- __privateAdd(this, _chainedWatchCallback, void 0);
76
- __privateAdd(this, _grid, void 0);
77
- var _a, _b;
78
- __privateSet(this, _config, EMPTY_OBJECT);
79
- __privateSet(this, _destructed, false);
80
- __privateSet(this, _highlightInProgress, false);
81
- __privateSet(this, _highlightSelection, SELECT_NONE);
82
- __privateSet(this, _pendingWatchNotification, false);
83
- __privateSet(this, _lastHighlightRange, (_a = __privateGet(this, _rangeOffsets)) == null ? void 0 : _a.join(" "));
84
- __privateSet(this, _today, today());
85
- __privateSet(this, _shiftControlsHandles, []);
86
- __privateSet(this, _shiftControls, new Proxy(
87
- indexed(() => {
88
- var _a2;
89
- return ((_a2 = __privateGet(this, _shiftControlsList)) == null ? void 0 : _a2.length) ?? 0;
90
- }, __privateMethod(this, _getShiftControlRecordAtIndex, getShiftControlRecordAtIndex_fn).bind(this)),
26
+ h(this, B);
27
+ h(this, q);
28
+ h(this, yt);
29
+ h(this, Ft);
30
+ h(this, pt);
31
+ h(this, bt);
32
+ h(this, Q);
33
+ h(this, Nt);
34
+ h(this, K);
35
+ h(this, tt);
36
+ h(this, Y);
37
+ h(this, it);
38
+ h(this, st);
39
+ h(this, et);
40
+ h(this, ht);
41
+ At(this, "grid");
42
+ At(this, "kill");
43
+ h(this, f, X);
44
+ h(this, y, !1);
45
+ h(this, s, void 0);
46
+ h(this, F, void 0);
47
+ h(this, C, void 0);
48
+ h(this, p, !1);
49
+ h(this, m, ot);
50
+ h(this, W, !1);
51
+ h(this, R, void 0);
52
+ h(this, M, (Gt = t(this, R)) == null ? void 0 : Gt.join(" "));
53
+ h(this, A, void 0);
54
+ h(this, D, void 0);
55
+ h(this, k, void 0);
56
+ h(this, N, void 0);
57
+ h(this, U, void 0);
58
+ h(this, lt, bi());
59
+ h(this, L, []);
60
+ h(this, T, void 0);
61
+ h(this, ft, new Proxy(
62
+ Lt(() => {
63
+ var i;
64
+ return ((i = t(this, T)) == null ? void 0 : i.length) ?? 0;
65
+ }, c(this, Q, Ht).bind(this)),
91
66
  {
92
- ...immutableProxyHandlers,
93
- get: (target, property, receiver) => {
94
- var _a2, _b2;
95
- const index = ((_a2 = __privateGet(this, _shiftControlsList)) == null ? void 0 : _a2.indexOf(property)) ?? -1;
96
- return index >= 0 ? (_b2 = __privateMethod(this, _getShiftControlRecordAtIndex, getShiftControlRecordAtIndex_fn).call(this, index)) == null ? void 0 : _b2[1] : Reflect.get(target, property, receiver);
67
+ ...Ai,
68
+ get: (i, e, o) => {
69
+ var n, u;
70
+ const a = ((n = t(this, T)) == null ? void 0 : n.indexOf(e)) ?? -1;
71
+ return a >= 0 ? (u = c(this, Q, Ht).call(this, a)) == null ? void 0 : u[1] : Reflect.get(i, e, o);
97
72
  }
98
73
  }
99
74
  ));
100
- __privateSet(this, _watchable, watchable({
75
+ h(this, _, _t({
101
76
  blocks: () => {
102
- var _a2;
103
- return (_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.size;
77
+ var i;
78
+ return (i = t(this, s)) == null ? void 0 : i.size;
104
79
  },
105
80
  cells: () => {
106
- var _a2;
107
- return (_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.units;
81
+ var i;
82
+ return (i = t(this, s)) == null ? void 0 : i.units;
108
83
  },
109
- controls: () => pickFromCollection(CALENDAR_CONTROLS, __privateGet(this, _config).controls),
84
+ controls: () => V(vt, t(this, f).controls),
110
85
  cursor: () => {
111
- var _a2;
112
- return (_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.cursor;
86
+ var i;
87
+ return (i = t(this, s)) == null ? void 0 : i.cursor;
113
88
  },
114
89
  from: () => {
115
- var _a2;
116
- return (_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.selectionStart;
90
+ var i;
91
+ return (i = t(this, s)) == null ? void 0 : i.selectionStart;
117
92
  },
118
- highlight: () => __privateGet(this, _highlightSelection),
93
+ highlight: () => t(this, m),
119
94
  locale: () => {
120
- var _a2;
121
- return (_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.locale;
95
+ var i;
96
+ return (i = t(this, s)) == null ? void 0 : i.locale;
122
97
  },
123
- minified: () => boolify(__privateGet(this, _config).minified),
98
+ minified: () => G(t(this, f).minified),
124
99
  origin: () => {
125
- var _a2;
126
- return (_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.getTimestampAtIndex(0);
100
+ var i;
101
+ return (i = t(this, s)) == null ? void 0 : i.getTimestampAtIndex(0);
127
102
  },
128
103
  to: () => {
129
- var _a2;
130
- return (_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.selectionEnd;
104
+ var i;
105
+ return (i = t(this, s)) == null ? void 0 : i.selectionEnd;
131
106
  },
132
- today: () => __privateGet(this, _today).timestamp
107
+ today: () => t(this, lt).timestamp
133
108
  }));
134
- __privateSet(this, _lastWatchableSnapshot, (_b = __privateGet(this, _watchable)) == null ? void 0 : _b.snapshot);
135
- __privateSet(this, _chainedNotifyCallback, watchable.withSyncEffect(
109
+ h(this, v, (zt = t(this, _)) == null ? void 0 : zt.snapshot);
110
+ h(this, P, _t.withSyncEffect(
136
111
  () => {
137
- var _a2;
138
- return __privateGet(this, _watchCallback) && ((_a2 = __privateGet(this, _watchable)) == null ? void 0 : _a2.notify());
112
+ var i;
113
+ return t(this, k) && ((i = t(this, _)) == null ? void 0 : i.notify());
139
114
  }
140
115
  ));
141
- __privateSet(this, _chainedWatchCallback, watchable.withSyncEffect(
116
+ h(this, $, _t.withSyncEffect(
142
117
  () => {
143
- var _a2;
144
- return (_a2 = __privateGet(this, _watchCallback)) == null ? void 0 : _a2.call(__privateGet(this, _currentConfig, currentConfig_get));
118
+ var i;
119
+ return (i = t(this, k)) == null ? void 0 : i.call(t(this, B, J));
145
120
  }
146
121
  ));
147
- __privateSet(this, _grid, structFrom(
148
- indexed(
122
+ h(this, ut, yi(
123
+ Lt(
149
124
  () => {
150
- var _a2;
151
- return ((_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.size) ?? 0;
125
+ var i;
126
+ return ((i = t(this, s)) == null ? void 0 : i.size) ?? 0;
152
127
  },
153
- (index) => {
154
- var _a2;
155
- return (_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.frameBlocks[index];
128
+ (i) => {
129
+ var e;
130
+ return (e = t(this, s)) == null ? void 0 : e.frameBlocks[i];
156
131
  }
157
132
  ),
158
133
  {
159
134
  config: {
160
135
  value: Object.defineProperties(
161
- (config) => {
162
- config && __privateMethod(this, _configure, configure_fn).call(this, config);
163
- return __privateGet(this, _currentConfig, currentConfig_get);
164
- },
136
+ (i) => (i && c(this, Ft, qt).call(this, i), t(this, B, J)),
165
137
  {
166
138
  cursorIndex: {
167
- get: () => __privateGet(this, _cursorIndexFromEvent),
168
- set: (fn) => {
169
- if (__privateGet(this, _destructed))
170
- return;
171
- if (fn == void 0)
172
- __privateSet(this, _cursorIndexFromEvent, void 0);
173
- else if (isFunction(fn))
174
- __privateSet(this, _cursorIndexFromEvent, fn);
139
+ get: () => t(this, A),
140
+ set: (i) => {
141
+ t(this, y) || (i == null ? r(this, A, void 0) : I(i) && r(this, A, i));
175
142
  }
176
143
  },
177
144
  shiftFactor: {
178
- get: () => __privateGet(this, _shiftFactorFromEvent),
179
- set: (fn) => {
180
- if (__privateGet(this, _destructed))
181
- return;
182
- if (fn == void 0)
183
- __privateSet(this, _shiftFactorFromEvent, void 0);
184
- else if (isFunction(fn))
185
- __privateSet(this, _shiftFactorFromEvent, fn);
145
+ get: () => t(this, D),
146
+ set: (i) => {
147
+ t(this, y) || (i == null ? r(this, D, void 0) : I(i) && r(this, D, i));
186
148
  }
187
149
  },
188
150
  watch: {
189
- get: () => __privateGet(this, _watchCallback),
190
- set: (fn) => {
191
- var _a2, _b2, _c, _d, _e;
192
- if (__privateGet(this, _destructed))
193
- return;
194
- if (isFunction(fn)) {
195
- __privateSet(this, _watchCallback, fn);
196
- if (!__privateGet(this, _watchableEffect)) {
197
- const watchCallback = (_a2 = __privateGet(this, _chainedNotifyCallback)) == null ? void 0 : _a2.call(this, __privateGet(_Calendar, _watchableEffectCallback).bind(this));
198
- if (watchCallback) {
199
- __privateSet(this, _watchableEffect, (_b2 = __privateGet(this, _chainedNotifyCallback)) == null ? void 0 : _b2.call(this, noop));
200
- __privateSet(this, _unwatch, (_d = __privateGet(this, _watchable)) == null ? void 0 : _d.watch((_c = __privateGet(this, _chainedWatchCallback)) == null ? void 0 : _c.call(this, watchCallback)));
201
- __privateGet(this, _frame) && (__privateGet(this, _frame).effect = __privateGet(this, _watchableEffect));
151
+ get: () => t(this, k),
152
+ set: (i) => {
153
+ var e, o, a, n, u;
154
+ if (!t(this, y))
155
+ if (I(i)) {
156
+ if (r(this, k, i), !t(this, N)) {
157
+ const S = (e = t(this, P)) == null ? void 0 : e.call(this, t(l, Tt).bind(this));
158
+ S && (r(this, N, (o = t(this, P)) == null ? void 0 : o.call(this, xt)), r(this, U, (n = t(this, _)) == null ? void 0 : n.watch((a = t(this, $)) == null ? void 0 : a.call(this, S))), t(this, s) && (t(this, s).effect = t(this, N)));
202
159
  }
203
- }
204
- if (!__privateGet(this, _pendingWatchNotification))
205
- return;
206
- __privateSet(this, _pendingWatchNotification, false);
207
- (_e = __privateGet(this, _watchableEffect)) == null ? void 0 : _e.call(this);
208
- } else if (fn == void 0)
209
- __privateSet(this, _watchCallback, void 0);
160
+ if (!t(this, W))
161
+ return;
162
+ r(this, W, !1), (u = t(this, N)) == null || u.call(this);
163
+ } else
164
+ i == null && r(this, k, void 0);
210
165
  }
211
166
  }
212
167
  }
213
168
  )
214
169
  },
215
- controls: { value: __privateGet(this, _shiftControls) },
170
+ controls: { value: t(this, ft) },
216
171
  cursor: {
217
172
  value: Object.defineProperties(
218
- (evt) => __privateMethod(_Calendar, _withNotifyEffect, withNotifyEffect_fn).call(this, (evt2) => !!(evt2 && __privateMethod(this, _cursorHandle, cursorHandle_fn).call(this, evt2)))(evt),
173
+ (i) => c(l, x, nt).call(this, (e) => !!(e && c(this, pt, Qt).call(this, e)))(i),
219
174
  {
220
175
  valueOf: { value: () => {
221
- var _a2;
222
- return ((_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.cursor) ?? -1;
176
+ var i;
177
+ return ((i = t(this, s)) == null ? void 0 : i.cursor) ?? -1;
223
178
  } }
224
179
  }
225
180
  )
226
181
  },
227
182
  highlight: {
228
183
  value: (() => {
229
- const blank = () => __privateGet(this, _highlightFrom) === __privateGet(this, _highlightTo) && __privateGet(this, _highlightTo) === void 0;
230
- const setter = (selection) => (time) => __privateMethod(_Calendar, _withNotifyEffect, withNotifyEffect_fn).call(this, (time2) => {
231
- var _a2, _b2, _c, _d, _e;
232
- if (__privateGet(this, _destructed) || !__privateGet(this, _highlightSelection) || __privateGet(this, _highlightSelection) === SELECT_NONE)
233
- return;
234
- if (time2 == void 0)
235
- return __privateMethod(this, _clearHighlight, clearHighlight_fn).call(this);
236
- if (!blank()) {
237
- (_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.updateSelection(time2, selection);
238
- if (__privateGet(this, _highlightSelection) === SELECT_MANY && __privateGet(this, _rangeOffsets)) {
239
- __privateMethod(this, _rangeHighlight, rangeHighlight_fn).call(this, time2, selection === SELECTION_FROM ? SELECTION_TO : SELECTION_FROM, __privateGet(this, _rangeOffsets));
240
- }
241
- } else
242
- (_b2 = __privateGet(this, _frame)) == null ? void 0 : _b2.updateSelection(time2, SELECTION_COLLAPSE);
243
- __privateSet(this, _highlightFrom, (_c = __privateGet(this, _frame)) == null ? void 0 : _c.selectionStart);
244
- __privateSet(this, _highlightTo, (_d = __privateGet(this, _frame)) == null ? void 0 : _d.selectionEnd);
245
- (_e = __privateGet(this, _frame)) == null ? void 0 : _e.shiftFrameToTimestamp(selection === SELECTION_FROM ? __privateGet(this, _highlightFrom) : __privateGet(this, _highlightTo));
246
- })(time);
247
- return struct({
248
- blank: { get: blank },
184
+ const i = () => t(this, F) === t(this, C) && t(this, C) === void 0, e = (o) => (a) => c(l, x, nt).call(this, (n) => {
185
+ var u, S, E, w, H;
186
+ if (!(t(this, y) || !t(this, m) || t(this, m) === ot)) {
187
+ if (n == null)
188
+ return c(this, tt, Wt).call(this);
189
+ i() ? (S = t(this, s)) == null || S.updateSelection(n, Ti) : ((u = t(this, s)) == null || u.updateSelection(n, o), t(this, m) === j && t(this, R) && c(this, Y, ct).call(this, n, o === O ? b : O, t(this, R))), r(this, F, (E = t(this, s)) == null ? void 0 : E.selectionStart), r(this, C, (w = t(this, s)) == null ? void 0 : w.selectionEnd), (H = t(this, s)) == null || H.shiftFrameToTimestamp(o === O ? t(this, F) : t(this, C));
190
+ }
191
+ })(a);
192
+ return Fi({
193
+ blank: { get: i },
249
194
  from: {
250
195
  get: () => {
251
- var _a2;
252
- return ((_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.selectionStart) ?? __privateGet(this, _highlightFrom);
196
+ var o;
197
+ return ((o = t(this, s)) == null ? void 0 : o.selectionStart) ?? t(this, F);
253
198
  },
254
- set: setter(SELECTION_FROM)
199
+ set: e(O)
255
200
  },
256
201
  to: {
257
202
  get: () => {
258
- var _a2;
259
- return ((_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.selectionEnd) ?? __privateGet(this, _highlightTo);
203
+ var o;
204
+ return ((o = t(this, s)) == null ? void 0 : o.selectionEnd) ?? t(this, C);
260
205
  },
261
- set: setter(SELECTION_TO)
206
+ set: e(b)
262
207
  }
263
208
  });
264
209
  })()
265
210
  },
266
211
  rowspan: { get: () => {
267
- var _a2;
268
- return ((_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.rowspan) ?? 0;
212
+ var i;
213
+ return ((i = t(this, s)) == null ? void 0 : i.rowspan) ?? 0;
269
214
  } },
270
215
  weekdays: { get: () => {
271
- var _a2;
272
- return ((_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.daysOfWeek) ?? __privateGet(_Calendar, _DAYS_OF_WEEK_FALLBACK);
216
+ var i;
217
+ return ((i = t(this, s)) == null ? void 0 : i.daysOfWeek) ?? t(l, Et);
273
218
  } }
274
219
  }
275
220
  ));
276
- this.grid = __privateGet(this, _grid);
277
- this.kill = __privateMethod(this, _destruct, destruct_fn).bind(this);
221
+ this.grid = t(this, ut), this.kill = c(this, bt, ti).bind(this);
278
222
  }
279
223
  };
280
- _config = new WeakMap();
281
- _destructed = new WeakMap();
282
- _frame = new WeakMap();
283
- _highlightFrom = new WeakMap();
284
- _highlightTo = new WeakMap();
285
- _highlightInProgress = new WeakMap();
286
- _highlightSelection = new WeakMap();
287
- _pendingWatchNotification = new WeakMap();
288
- _rangeOffsets = new WeakMap();
289
- _lastHighlightRange = new WeakMap();
290
- _cursorIndexFromEvent = new WeakMap();
291
- _shiftFactorFromEvent = new WeakMap();
292
- _watchCallback = new WeakMap();
293
- _watchableEffect = new WeakMap();
294
- _unwatch = new WeakMap();
295
- _today = new WeakMap();
296
- _shiftControlsHandles = new WeakMap();
297
- _shiftControlsList = new WeakMap();
298
- _shiftControls = new WeakMap();
299
- _watchable = new WeakMap();
300
- _lastWatchableSnapshot = new WeakMap();
301
- _chainedNotifyCallback = new WeakMap();
302
- _chainedWatchCallback = new WeakMap();
303
- _grid = new WeakMap();
304
- _RANGE_OFFSETS_FORMAT_REGEX = new WeakMap();
305
- _CURSOR_POINTER_INTERACTION_EVENTS = new WeakMap();
306
- _DAYS_OF_WEEK_FALLBACK = new WeakMap();
307
- _SHIFT_ACTIVATION_KEYS = new WeakMap();
308
- _SHIFT_ALL_CONTROLS = new WeakMap();
309
- _SHIFT_MINIMAL_CONTROLS = new WeakMap();
310
- _getOffsetsFromRange = new WeakSet();
311
- getOffsetsFromRange_fn = function(range) {
312
- if (!isString(range))
224
+ f = new WeakMap(), y = new WeakMap(), s = new WeakMap(), F = new WeakMap(), C = new WeakMap(), p = new WeakMap(), m = new WeakMap(), W = new WeakMap(), R = new WeakMap(), M = new WeakMap(), A = new WeakMap(), D = new WeakMap(), k = new WeakMap(), N = new WeakMap(), U = new WeakMap(), lt = new WeakMap(), L = new WeakMap(), T = new WeakMap(), ft = new WeakMap(), _ = new WeakMap(), v = new WeakMap(), P = new WeakMap(), $ = new WeakMap(), ut = new WeakMap(), dt = new WeakMap(), St = new WeakMap(), Et = new WeakMap(), mt = new WeakMap(), Ot = new WeakMap(), Rt = new WeakMap(), gt = new WeakSet(), Xt = function(i) {
225
+ if (!Yt(i) || !t(l, dt).test(i))
313
226
  return;
314
- if (!__privateGet(_Calendar, _RANGE_OFFSETS_FORMAT_REGEX).test(range))
315
- return;
316
- const offsets = range.split(/\s+/);
317
- return Array.from({ length: 6 }, (_, index) => parseInt(offsets[index] ?? "0"));
318
- };
319
- _getShiftOffsetType = new WeakSet();
320
- getShiftOffsetType_fn = function(flags) {
321
- switch (flags & ~CalendarShiftControlFlag.PREV) {
322
- case CalendarShiftControlFlag.FRAME:
323
- return SHIFT_FRAME;
324
- case CalendarShiftControlFlag.PERIOD:
325
- return SHIFT_PERIOD;
326
- case CalendarShiftControlFlag.BLOCK:
227
+ const e = i.split(/\s+/);
228
+ return Array.from({ length: 6 }, (o, a) => parseInt(e[a] ?? "0"));
229
+ }, Ct = new WeakSet(), Jt = function(i) {
230
+ switch (i & ~z.PREV) {
231
+ case z.FRAME:
232
+ return ri;
233
+ case z.PERIOD:
234
+ return It;
235
+ case z.BLOCK:
327
236
  default:
328
- return SHIFT_BLOCK;
237
+ return hi;
329
238
  }
330
- };
331
- _getShiftOffsetUnit = new WeakSet();
332
- getShiftOffsetUnit_fn = function(flags) {
333
- return flags & CalendarShiftControlFlag.PREV ? -1 : 1;
334
- };
335
- _watchableEffectCallback = new WeakMap();
336
- _withNotifyEffect = new WeakSet();
337
- withNotifyEffect_fn = function(fn) {
338
- var _a;
339
- return ((_a = __privateGet(this, _chainedNotifyCallback)) == null ? void 0 : _a.call(this, fn)) ?? fn;
340
- };
341
- _currentConfig = new WeakSet();
342
- currentConfig_get = function() {
343
- return { ...__privateGet(this, _config) };
344
- };
345
- _timeframe = new WeakSet();
346
- timeframe_get = function() {
347
- return new MonthFrame();
348
- };
349
- _canShiftInDirection = new WeakSet();
350
- canShiftInDirection_fn = function(shiftDirection) {
351
- return !!__privateGet(this, _frame) && !(shiftDirection > 0 ? __privateGet(this, _frame).isAtEnd : __privateGet(this, _frame).isAtStart);
352
- };
353
- _configure = new WeakSet();
354
- configure_fn = function(config) {
355
- var _a, _b;
356
- if (__privateGet(this, _destructed))
239
+ }, kt = new WeakSet(), Zt = function(i) {
240
+ return i & z.PREV ? -1 : 1;
241
+ }, Tt = new WeakMap(), x = new WeakSet(), nt = function(i) {
242
+ var e;
243
+ return ((e = t(this, P)) == null ? void 0 : e.call(this, i)) ?? i;
244
+ }, B = new WeakSet(), J = function() {
245
+ return { ...t(this, f) };
246
+ }, q = new WeakSet(), wt = function() {
247
+ return new Ni();
248
+ }, yt = new WeakSet(), $t = function(i) {
249
+ return !!t(this, s) && !(i > 0 ? t(this, s).isAtEnd : t(this, s).isAtStart);
250
+ }, Ft = new WeakSet(), qt = function(i) {
251
+ var a, n;
252
+ if (t(this, y))
357
253
  return;
358
- __privateSet(this, _rangeOffsets, void 0);
359
- const highlight = config == null ? void 0 : config.highlight;
360
- const minified = boolify(__privateGet(this, _config).minified);
361
- if (!isString(highlight)) {
362
- __privateSet(this, _highlightSelection, pickFromCollection(CALENDAR_SELECTIONS, highlight, __privateGet(this, _highlightSelection)));
363
- } else if (__privateSet(this, _rangeOffsets, __privateMethod(_a = _Calendar, _getOffsetsFromRange, getOffsetsFromRange_fn).call(_a, highlight))) {
364
- __privateSet(this, _highlightSelection, SELECT_MANY);
365
- }
366
- __privateSet(this, _config, {
367
- ...__privateGet(this, _config),
368
- ...config,
369
- blocks: pickFromCollection(FRAME_SIZES, config == null ? void 0 : config.blocks, __privateGet(this, _config).blocks),
370
- controls: pickFromCollection(CALENDAR_CONTROLS, config == null ? void 0 : config.controls, __privateGet(this, _config).controls),
371
- firstWeekDay: pickFromCollection(FIRST_WEEK_DAYS, config == null ? void 0 : config.firstWeekDay, __privateGet(this, _config).firstWeekDay),
372
- fixedBlockHeight: boolify(config == null ? void 0 : config.fixedBlockHeight, __privateGet(this, _config).fixedBlockHeight),
373
- highlight: __privateGet(this, _highlightSelection),
374
- minified: boolify(config == null ? void 0 : config.minified, __privateGet(this, _config).minified),
375
- trackCurrentDay: boolify(config == null ? void 0 : config.trackCurrentDay, __privateGet(this, _config).trackCurrentDay)
376
- });
377
- if (!isFunction(__privateGet(this, _watchCallback))) {
378
- if (!__privateGet(this, _frame)) {
379
- __privateSet(this, _frame, __privateGet(this, _timeframe, timeframe_get));
380
- __privateMethod(this, _reframe, reframe_fn).call(this);
381
- __privateMethod(this, _refreshShiftControls, refreshShiftControls_fn).call(this);
382
- __privateMethod(this, _refreshHighlighting, refreshHighlighting_fn).call(this);
383
- } else
384
- __privateSet(this, _pendingWatchNotification, true);
254
+ r(this, R, void 0);
255
+ const e = i == null ? void 0 : i.highlight, o = G(t(this, f).minified);
256
+ if (Yt(e) ? r(this, R, c(a = l, gt, Xt).call(a, e)) && r(this, m, j) : r(this, m, V(oi, e, t(this, m))), r(this, f, {
257
+ ...t(this, f),
258
+ ...i,
259
+ blocks: V(ai, i == null ? void 0 : i.blocks, t(this, f).blocks),
260
+ controls: V(vt, i == null ? void 0 : i.controls, t(this, f).controls),
261
+ firstWeekDay: V(ni, i == null ? void 0 : i.firstWeekDay, t(this, f).firstWeekDay),
262
+ fixedBlockHeight: G(i == null ? void 0 : i.fixedBlockHeight, t(this, f).fixedBlockHeight),
263
+ highlight: t(this, m),
264
+ minified: G(i == null ? void 0 : i.minified, t(this, f).minified),
265
+ trackCurrentDay: G(i == null ? void 0 : i.trackCurrentDay, t(this, f).trackCurrentDay)
266
+ }), !I(t(this, k))) {
267
+ t(this, s) ? r(this, W, !0) : (r(this, s, t(this, q, wt)), c(this, st, Bt).call(this), c(this, ht, Mt).call(this), c(this, et, Kt).call(this));
385
268
  return;
386
269
  }
387
- if (!__privateGet(this, _frame) || minified !== __privateGet(this, _config).minified) {
388
- __privateSet(this, _frame, __privateGet(this, _timeframe, timeframe_get));
389
- __privateGet(this, _frame).effect = __privateGet(this, _watchableEffect);
390
- }
391
- __privateMethod(this, _reframe, reframe_fn).call(this);
392
- (_b = __privateGet(this, _watchableEffect)) == null ? void 0 : _b.call(this);
393
- };
394
- _cursorHandle = new WeakSet();
395
- cursorHandle_fn = function(evt) {
396
- if (!(evt && __privateGet(this, _frame) && isFunction(__privateGet(this, _watchCallback))))
397
- return;
398
- if (evt instanceof KeyboardEvent) {
399
- switch (evt.code) {
400
- case InteractionKeyCode.ARROW_LEFT:
401
- __privateGet(this, _frame).shiftFrameCursor(CURSOR_BACKWARD);
402
- break;
403
- case InteractionKeyCode.ARROW_RIGHT:
404
- __privateGet(this, _frame).shiftFrameCursor(CURSOR_FORWARD);
405
- break;
406
- case InteractionKeyCode.ARROW_UP:
407
- __privateGet(this, _frame).shiftFrameCursor(CURSOR_UPWARD);
408
- break;
409
- case InteractionKeyCode.ARROW_DOWN:
410
- __privateGet(this, _frame).shiftFrameCursor(CURSOR_DOWNWARD);
411
- break;
412
- case InteractionKeyCode.HOME:
413
- __privateGet(this, _frame).shiftFrameCursor(evt.ctrlKey ? CURSOR_BLOCK_START : CURSOR_LINE_START);
414
- break;
415
- case InteractionKeyCode.END:
416
- __privateGet(this, _frame).shiftFrameCursor(evt.ctrlKey ? CURSOR_BLOCK_END : CURSOR_LINE_END);
417
- break;
418
- case InteractionKeyCode.PAGE_UP:
419
- evt.shiftKey ? __privateGet(this, _frame).shiftFrameByOffset(-1, SHIFT_PERIOD) : __privateGet(this, _frame).shiftFrameCursor(CURSOR_PREV_BLOCK);
420
- break;
421
- case InteractionKeyCode.PAGE_DOWN:
422
- evt.shiftKey ? __privateGet(this, _frame).shiftFrameByOffset(1, SHIFT_PERIOD) : __privateGet(this, _frame).shiftFrameCursor(CURSOR_NEXT_BLOCK);
423
- break;
424
- case InteractionKeyCode.SPACE:
425
- case InteractionKeyCode.ENTER:
426
- __privateMethod(this, _highlight, highlight_fn).call(this);
427
- return true;
428
- default:
429
- return;
270
+ (!t(this, s) || o !== t(this, f).minified) && (r(this, s, t(this, q, wt)), t(this, s).effect = t(this, N)), c(this, st, Bt).call(this), (n = t(this, N)) == null || n.call(this);
271
+ }, pt = new WeakSet(), Qt = function(i) {
272
+ if (i && t(this, s) && I(t(this, k))) {
273
+ if (i instanceof KeyboardEvent) {
274
+ switch (i.code) {
275
+ case g.ARROW_LEFT:
276
+ t(this, s).shiftFrameCursor(Ri);
277
+ break;
278
+ case g.ARROW_RIGHT:
279
+ t(this, s).shiftFrameCursor(Oi);
280
+ break;
281
+ case g.ARROW_UP:
282
+ t(this, s).shiftFrameCursor(mi);
283
+ break;
284
+ case g.ARROW_DOWN:
285
+ t(this, s).shiftFrameCursor(Ei);
286
+ break;
287
+ case g.HOME:
288
+ t(this, s).shiftFrameCursor(i.ctrlKey ? di : Si);
289
+ break;
290
+ case g.END:
291
+ t(this, s).shiftFrameCursor(i.ctrlKey ? fi : ui);
292
+ break;
293
+ case g.PAGE_UP:
294
+ i.shiftKey ? t(this, s).shiftFrameByOffset(-1, It) : t(this, s).shiftFrameCursor(li);
295
+ break;
296
+ case g.PAGE_DOWN:
297
+ i.shiftKey ? t(this, s).shiftFrameByOffset(1, It) : t(this, s).shiftFrameCursor(ci);
298
+ break;
299
+ case g.SPACE:
300
+ case g.ENTER:
301
+ return c(this, K, Z).call(this), !0;
302
+ default:
303
+ return;
304
+ }
305
+ return t(this, p) && c(this, K, Z).call(this, X), !0;
430
306
  }
431
- __privateGet(this, _highlightInProgress) && __privateMethod(this, _highlight, highlight_fn).call(this, EMPTY_OBJECT);
432
- return true;
433
- }
434
- if (evt instanceof MouseEvent && __privateGet(_Calendar, _CURSOR_POINTER_INTERACTION_EVENTS).includes(evt.type) && isFunction(__privateGet(this, _cursorIndexFromEvent))) {
435
- const cursorIndex = __privateGet(this, _cursorIndexFromEvent).call(__privateGet(this, _currentConfig, currentConfig_get), evt);
436
- if (!isBitSafeInteger(cursorIndex))
437
- return;
438
- const isClick = evt.type === "click";
439
- if (!(isClick || __privateGet(this, _highlightInProgress)))
440
- return;
441
- __privateGet(this, _frame).shiftFrameCursor(cursorIndex);
442
- if (__privateGet(this, _frame).cursor === cursorIndex) {
443
- isClick ? __privateMethod(this, _highlight, highlight_fn).call(this) : __privateMethod(this, _highlight, highlight_fn).call(this, EMPTY_OBJECT);
444
- return true;
307
+ if (i instanceof MouseEvent && t(l, St).includes(i.type) && I(t(this, A))) {
308
+ const e = t(this, A).call(t(this, B, J), i);
309
+ if (!pi(e))
310
+ return;
311
+ const o = i.type === "click";
312
+ if (!(o || t(this, p)))
313
+ return;
314
+ if (t(this, s).shiftFrameCursor(e), t(this, s).cursor === e)
315
+ return o ? c(this, K, Z).call(this) : c(this, K, Z).call(this, X), !0;
445
316
  }
446
317
  }
447
- };
448
- _destruct = new WeakSet();
449
- destruct_fn = function() {
450
- var _a;
451
- if (__privateGet(this, _destructed))
318
+ }, bt = new WeakSet(), ti = function() {
319
+ var i;
320
+ t(this, y) || ((i = t(this, U)) == null || i.call(this), r(this, P, r(this, $, r(this, A, r(this, s, r(this, m, r(this, M, r(this, v, r(this, R, r(this, D, r(this, U, r(this, _, r(this, N, r(this, k, void 0))))))))))))), r(this, f, X), r(this, p, r(this, W, !1)), r(this, y, !0));
321
+ }, Q = new WeakSet(), Ht = function(i) {
322
+ var o, a;
323
+ if (!t(this, T) || i < 0 || i >= t(this, T).length)
452
324
  return;
453
- (_a = __privateGet(this, _unwatch)) == null ? void 0 : _a.call(this);
454
- __privateSet(this, _chainedNotifyCallback, __privateSet(this, _chainedWatchCallback, __privateSet(this, _cursorIndexFromEvent, __privateSet(this, _frame, __privateSet(this, _highlightSelection, __privateSet(this, _lastHighlightRange, __privateSet(this, _lastWatchableSnapshot, __privateSet(this, _rangeOffsets, __privateSet(this, _shiftFactorFromEvent, __privateSet(this, _unwatch, __privateSet(this, _watchable, __privateSet(this, _watchableEffect, __privateSet(this, _watchCallback, void 0)))))))))))));
455
- __privateSet(this, _config, EMPTY_OBJECT);
456
- __privateSet(this, _highlightInProgress, __privateSet(this, _pendingWatchNotification, false));
457
- __privateSet(this, _destructed, true);
458
- };
459
- _getShiftControlRecordAtIndex = new WeakSet();
460
- getShiftControlRecordAtIndex_fn = function(index) {
461
- var _a, _b;
462
- if (!__privateGet(this, _shiftControlsList) || index < 0 || index >= __privateGet(this, _shiftControlsList).length)
463
- return;
464
- const control = __privateGet(this, _shiftControlsList)[index];
465
- if (!__privateGet(this, _shiftControlsHandles)[index]) {
466
- const flags = CalendarShiftControlsFlag[control];
467
- const shiftOffsetType = __privateMethod(_a = _Calendar, _getShiftOffsetType, getShiftOffsetType_fn).call(_a, flags);
468
- const shiftOffsetUnit = __privateMethod(_b = _Calendar, _getShiftOffsetUnit, getShiftOffsetUnit_fn).call(_b, flags);
469
- __privateGet(this, _shiftControlsHandles)[index] = (...args) => __privateMethod(_Calendar, _withNotifyEffect, withNotifyEffect_fn).call(this, (...args2) => {
470
- var _a2;
471
- const canShift = __privateMethod(this, _canShiftInDirection, canShiftInDirection_fn).call(this, shiftOffsetUnit);
472
- if (!(canShift && args2.length))
473
- return canShift;
474
- const shiftFactor = __privateMethod(this, _getShiftFactorFromEvent, getShiftFactorFromEvent_fn).call(this, control, args2[0]);
475
- if (shiftFactor === void 0)
476
- return false;
477
- (_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.shiftFrameByOffset(shiftOffsetUnit * shiftFactor, shiftOffsetType);
478
- return true;
479
- })(...args);
325
+ const e = t(this, T)[i];
326
+ if (!t(this, L)[i]) {
327
+ const n = jt[e], u = c(o = l, Ct, Jt).call(o, n), S = c(a = l, kt, Zt).call(a, n);
328
+ t(this, L)[i] = (...E) => c(l, x, nt).call(this, (...w) => {
329
+ var Ut;
330
+ const H = c(this, yt, $t).call(this, S);
331
+ if (!(H && w.length))
332
+ return H;
333
+ const rt = c(this, Nt, ii).call(this, e, w[0]);
334
+ return rt === void 0 ? !1 : ((Ut = t(this, s)) == null || Ut.shiftFrameByOffset(S * rt, u), !0);
335
+ })(...E);
480
336
  }
481
- return [control, __privateGet(this, _shiftControlsHandles)[index]];
482
- };
483
- _getShiftFactorFromEvent = new WeakSet();
484
- getShiftFactorFromEvent_fn = function(target, evt) {
485
- if (!(__privateGet(this, _frame) && isFunction(__privateGet(this, _watchCallback))))
337
+ return [e, t(this, L)[i]];
338
+ }, Nt = new WeakSet(), ii = function(i, e) {
339
+ if (!(t(this, s) && I(t(this, k))))
486
340
  return;
487
- if (evt instanceof MouseEvent) {
488
- if (evt.type !== "click")
341
+ if (e instanceof MouseEvent) {
342
+ if (e.type !== "click")
489
343
  return;
490
- } else if (evt instanceof KeyboardEvent) {
491
- if (!__privateGet(_Calendar, _SHIFT_ACTIVATION_KEYS).includes(evt.code))
344
+ } else if (e instanceof KeyboardEvent) {
345
+ if (!t(l, mt).includes(e.code))
492
346
  return;
493
347
  } else
494
348
  return;
495
- let shiftFactor = 1;
496
- if (isFunction(__privateGet(this, _shiftFactorFromEvent))) {
497
- const factor = Number(__privateGet(this, _shiftFactorFromEvent).call(__privateGet(this, _currentConfig, currentConfig_get), evt, target));
498
- shiftFactor = Number.isInteger(factor) && factor >= 1 ? factor : shiftFactor;
349
+ let o = 1;
350
+ if (I(t(this, D))) {
351
+ const a = Number(t(this, D).call(t(this, B, J), e, i));
352
+ o = Number.isInteger(a) && a >= 1 ? a : o;
499
353
  }
500
- return shiftFactor;
501
- };
502
- _highlight = new WeakSet();
503
- highlight_fn = function(secretFauxHighlightingHint) {
504
- if (__privateGet(this, _destructed) || !__privateGet(this, _frame))
354
+ return o;
355
+ }, K = new WeakSet(), Z = function(i) {
356
+ if (t(this, y) || !t(this, s))
505
357
  return;
506
- switch (__privateGet(this, _highlightSelection)) {
507
- case SELECT_MANY:
508
- case SELECT_ONE:
358
+ switch (t(this, m)) {
359
+ case j:
360
+ case at:
509
361
  break;
510
- case SELECT_NONE:
362
+ case ot:
511
363
  default:
512
364
  return;
513
365
  }
514
- const cursor = __privateGet(this, _frame).cursor;
515
- const fromTimestamp = __privateGet(this, _frame).getTimestampAtIndex(cursor);
516
- const toTimestamp = __privateGet(this, _frame).getTimestampAtIndex(cursor + 1) - 1;
517
- const range = __privateGet(this, _rangeOffsets);
518
- if (__privateGet(this, _highlightSelection) === SELECT_ONE || __privateGet(this, _frame).blankSelection || range) {
519
- __privateSet(this, _highlightInProgress, !(__privateGet(this, _highlightSelection) === SELECT_ONE || range));
520
- if (__privateGet(this, _highlightSelection) === SELECT_MANY && range) {
521
- const selectionDirection = toTimestamp >= __privateGet(this, _frame).selectionEnd ? SELECTION_FROM : SELECTION_TO;
522
- selectionDirection === SELECTION_FROM ? __privateGet(this, _frame).updateSelection(toTimestamp, SELECTION_TO) : __privateGet(this, _frame).updateSelection(fromTimestamp, SELECTION_FROM);
523
- __privateMethod(this, _rangeHighlight, rangeHighlight_fn).call(this, selectionDirection === SELECTION_FROM ? __privateGet(this, _frame).selectionEnd : __privateGet(this, _frame).selectionStart, selectionDirection, range);
524
- } else {
525
- __privateGet(this, _frame).updateSelection(fromTimestamp, SELECTION_FROM);
526
- __privateGet(this, _frame).updateSelection(toTimestamp, SELECTION_TO);
527
- }
528
- } else {
529
- const isFauxHighlighting = secretFauxHighlightingHint === EMPTY_OBJECT;
530
- if (!isFauxHighlighting)
531
- __privateSet(this, _highlightInProgress, false);
532
- if (fromTimestamp <= __privateGet(this, _frame).selectionStart) {
533
- const selectionStartDay = new Date(__privateGet(this, _frame).selectionStart);
534
- const selectionStartDayEndTimestamp = selectionStartDay.setDate(selectionStartDay.getDate() + 1) - 1;
535
- if (fromTimestamp === __privateGet(this, _frame).selectionStart && toTimestamp <= selectionStartDayEndTimestamp) {
536
- __privateGet(this, _frame).updateSelection(toTimestamp, SELECTION_TO);
537
- }
538
- __privateGet(this, _frame).updateSelection(fromTimestamp, SELECTION_FROM);
366
+ const e = t(this, s).cursor, o = t(this, s).getTimestampAtIndex(e), a = t(this, s).getTimestampAtIndex(e + 1) - 1, n = t(this, R);
367
+ if (t(this, m) === at || t(this, s).blankSelection || n)
368
+ if (r(this, p, !(t(this, m) === at || n)), t(this, m) === j && n) {
369
+ const u = a >= t(this, s).selectionEnd ? O : b;
370
+ u === O ? t(this, s).updateSelection(a, b) : t(this, s).updateSelection(o, O), c(this, Y, ct).call(this, u === O ? t(this, s).selectionEnd : t(this, s).selectionStart, u, n);
371
+ } else
372
+ t(this, s).updateSelection(o, O), t(this, s).updateSelection(a, b);
373
+ else {
374
+ const u = i === X;
375
+ if (u || r(this, p, !1), o <= t(this, s).selectionStart) {
376
+ const S = new Date(t(this, s).selectionStart), E = S.setDate(S.getDate() + 1) - 1;
377
+ o === t(this, s).selectionStart && a <= E && t(this, s).updateSelection(a, b), t(this, s).updateSelection(o, O);
539
378
  } else {
540
- const selectionEndDay = new Date(__privateGet(this, _frame).selectionEnd);
541
- const selectionEndDayStartTimestamp = selectionEndDay.setHours(0, 0, 0, 0);
542
- if (fromTimestamp <= __privateGet(this, _frame).selectionEnd && fromTimestamp >= selectionEndDayStartTimestamp) {
543
- __privateGet(this, _frame).updateSelection(fromTimestamp, SELECTION_FROM);
544
- }
545
- __privateGet(this, _frame).updateSelection(toTimestamp, SELECTION_TO);
379
+ const E = new Date(t(this, s).selectionEnd).setHours(0, 0, 0, 0);
380
+ o <= t(this, s).selectionEnd && o >= E && t(this, s).updateSelection(o, O), t(this, s).updateSelection(a, b);
546
381
  }
547
- if (isFauxHighlighting)
382
+ if (u)
548
383
  return;
549
384
  }
550
- __privateSet(this, _highlightFrom, __privateGet(this, _frame).selectionStart);
551
- __privateSet(this, _highlightTo, __privateGet(this, _frame).selectionEnd);
552
- };
553
- _clearHighlight = new WeakSet();
554
- clearHighlight_fn = function() {
555
- var _a;
556
- (_a = __privateGet(this, _frame)) == null ? void 0 : _a.clearSelection();
557
- __privateSet(this, _highlightInProgress, false);
558
- __privateSet(this, _highlightFrom, __privateSet(this, _highlightTo, void 0));
559
- };
560
- _rangeHighlight = new WeakSet();
561
- rangeHighlight_fn = function(time, selectionDirection, rangeOffsets) {
562
- if (!__privateGet(this, _frame))
563
- return;
564
- const date = new Date(time);
565
- const direction = selectionDirection === SELECTION_FROM ? -1 : 1;
566
- const [years = 0, months = 0, days = 0, hours = 0, minutes = 0, seconds = 0] = rangeOffsets ?? [];
567
- date.setFullYear(date.getFullYear() + years * direction, date.getMonth() + months * direction, date.getDate() + days * direction);
568
- date.setHours(date.getHours() + hours * direction, date.getMinutes() + minutes * direction, date.getSeconds() + seconds * direction);
569
- __privateGet(this, _frame).updateSelection(date.getTime() - direction, selectionDirection);
570
- };
571
- _restoreHighlight = new WeakSet();
572
- restoreHighlight_fn = function() {
573
- var _a, _b;
574
- __privateGet(this, _highlightFrom) && ((_a = __privateGet(this, _frame)) == null ? void 0 : _a.updateSelection(__privateGet(this, _highlightFrom), SELECTION_FROM));
575
- __privateGet(this, _highlightTo) && ((_b = __privateGet(this, _frame)) == null ? void 0 : _b.updateSelection(__privateGet(this, _highlightTo), SELECTION_TO));
576
- __privateSet(this, _highlightInProgress, false);
577
- };
578
- _reframe = new WeakSet();
579
- reframe_fn = function() {
580
- if (!__privateGet(this, _frame))
385
+ r(this, F, t(this, s).selectionStart), r(this, C, t(this, s).selectionEnd);
386
+ }, tt = new WeakSet(), Wt = function() {
387
+ var i;
388
+ (i = t(this, s)) == null || i.clearSelection(), r(this, p, !1), r(this, F, r(this, C, void 0));
389
+ }, Y = new WeakSet(), ct = function(i, e, o) {
390
+ if (!t(this, s))
581
391
  return;
582
- __privateGet(this, _frame).timeslice = __privateGet(this, _config).timeslice;
583
- __privateGet(this, _frame).dynamicBlockHeight = !__privateGet(this, _config).fixedBlockHeight;
584
- __privateGet(this, _frame).firstWeekDay = __privateGet(this, _config).firstWeekDay;
585
- __privateGet(this, _frame).locale = __privateGet(this, _config).locale;
586
- __privateGet(this, _frame).size = __privateGet(this, _config).blocks;
587
- __privateGet(this, _frame).trackCurrentDay = __privateGet(this, _config).trackCurrentDay;
588
- __privateMethod(this, _restoreHighlight, restoreHighlight_fn).call(this);
589
- };
590
- _refreshHighlighting = new WeakSet();
591
- refreshHighlighting_fn = function() {
592
- var _a, _b, _c, _d, _e;
593
- switch (__privateGet(this, _highlightSelection)) {
594
- case SELECT_MANY:
595
- if (((_a = __privateGet(this, _frame)) == null ? void 0 : _a.blankSelection) === false && __privateGet(this, _rangeOffsets)) {
596
- __privateMethod(this, _rangeHighlight, rangeHighlight_fn).call(this, (_b = __privateGet(this, _frame)) == null ? void 0 : _b.selectionStart, SELECTION_TO, __privateGet(this, _rangeOffsets));
597
- }
392
+ const a = new Date(i), n = e === O ? -1 : 1, [u = 0, S = 0, E = 0, w = 0, H = 0, rt = 0] = o ?? [];
393
+ a.setFullYear(a.getFullYear() + u * n, a.getMonth() + S * n, a.getDate() + E * n), a.setHours(a.getHours() + w * n, a.getMinutes() + H * n, a.getSeconds() + rt * n), t(this, s).updateSelection(a.getTime() - n, e);
394
+ }, it = new WeakSet(), Pt = function() {
395
+ var i, e;
396
+ t(this, F) && ((i = t(this, s)) == null || i.updateSelection(t(this, F), O)), t(this, C) && ((e = t(this, s)) == null || e.updateSelection(t(this, C), b)), r(this, p, !1);
397
+ }, st = new WeakSet(), Bt = function() {
398
+ t(this, s) && (t(this, s).timeslice = t(this, f).timeslice, t(this, s).dynamicBlockHeight = !t(this, f).fixedBlockHeight, t(this, s).firstWeekDay = t(this, f).firstWeekDay, t(this, s).locale = t(this, f).locale, t(this, s).size = t(this, f).blocks, t(this, s).trackCurrentDay = t(this, f).trackCurrentDay, c(this, it, Pt).call(this));
399
+ }, et = new WeakSet(), Kt = function() {
400
+ var i, e, o, a, n;
401
+ switch (t(this, m)) {
402
+ case j:
403
+ ((i = t(this, s)) == null ? void 0 : i.blankSelection) === !1 && t(this, R) && c(this, Y, ct).call(this, (e = t(this, s)) == null ? void 0 : e.selectionStart, b, t(this, R));
598
404
  break;
599
- case SELECT_ONE:
600
- if (((_c = __privateGet(this, _frame)) == null ? void 0 : _c.blankSelection) === false) {
601
- (_e = __privateGet(this, _frame)) == null ? void 0 : _e.updateSelection(new Date((_d = __privateGet(this, _frame)) == null ? void 0 : _d.selectionStart).setHours(23, 59, 59, 999), SELECTION_TO);
602
- }
405
+ case at:
406
+ ((o = t(this, s)) == null ? void 0 : o.blankSelection) === !1 && ((n = t(this, s)) == null || n.updateSelection(new Date((a = t(this, s)) == null ? void 0 : a.selectionStart).setHours(23, 59, 59, 999), b));
603
407
  break;
604
- case SELECT_NONE:
408
+ case ot:
605
409
  default:
606
- __privateMethod(this, _clearHighlight, clearHighlight_fn).call(this);
410
+ c(this, tt, Wt).call(this);
607
411
  return;
608
412
  }
609
- };
610
- _refreshShiftControls = new WeakSet();
611
- refreshShiftControls_fn = function() {
612
- var _a, _b;
613
- switch ((_a = __privateGet(this, _watchable)) == null ? void 0 : _a.snapshot.controls) {
614
- case CONTROLS_ALL:
615
- __privateSet(this, _shiftControlsList, __privateGet(_Calendar, _SHIFT_ALL_CONTROLS));
413
+ }, ht = new WeakSet(), Mt = function() {
414
+ var i, e;
415
+ switch ((i = t(this, _)) == null ? void 0 : i.snapshot.controls) {
416
+ case ki:
417
+ r(this, T, t(l, Ot));
616
418
  break;
617
- case CONTROLS_MINIMAL:
618
- __privateSet(this, _shiftControlsList, __privateGet(_Calendar, _SHIFT_MINIMAL_CONTROLS));
419
+ case Ci:
420
+ r(this, T, t(l, Rt));
619
421
  break;
620
- case CONTROLS_NONE:
422
+ case gi:
621
423
  default:
622
- __privateSet(this, _shiftControlsList, void 0);
424
+ r(this, T, void 0);
623
425
  }
624
- __privateGet(this, _shiftControlsHandles).length = 0;
625
- __privateGet(this, _shiftControlsHandles).length = ((_b = __privateGet(this, _shiftControlsList)) == null ? void 0 : _b.length) ?? 0;
626
- };
627
- __privateAdd(_Calendar, _getOffsetsFromRange);
628
- __privateAdd(_Calendar, _getShiftOffsetType);
629
- __privateAdd(_Calendar, _getShiftOffsetUnit);
630
- __privateAdd(_Calendar, _withNotifyEffect);
631
- __privateAdd(_Calendar, _RANGE_OFFSETS_FORMAT_REGEX, /^(?:0|[1-9]\d*)(\s+(?:0|[1-9]\d*)?){0,5}?$/);
632
- __privateAdd(_Calendar, _CURSOR_POINTER_INTERACTION_EVENTS, ["click", "mouseover", "pointerover"]);
633
- __privateAdd(_Calendar, _DAYS_OF_WEEK_FALLBACK, indexed(0, noop));
634
- __privateAdd(_Calendar, _SHIFT_ACTIVATION_KEYS, [InteractionKeyCode.ENTER, InteractionKeyCode.SPACE]);
635
- __privateAdd(_Calendar, _SHIFT_ALL_CONTROLS, Object.keys(CalendarShiftControlsFlag).filter((control) => isNaN(+control)));
636
- __privateAdd(_Calendar, _SHIFT_MINIMAL_CONTROLS, ["PREV", "NEXT"]);
637
- __privateAdd(_Calendar, _watchableEffectCallback, function(signalOrSnapshot) {
638
- var _a, _b;
639
- if (typeof signalOrSnapshot === "symbol")
426
+ t(this, L).length = 0, t(this, L).length = ((e = t(this, T)) == null ? void 0 : e.length) ?? 0;
427
+ }, h(l, gt), h(l, Ct), h(l, kt), h(l, x), h(l, dt, /^(?:0|[1-9]\d*)(\s+(?:0|[1-9]\d*)?){0,5}?$/), h(l, St, ["click", "mouseover", "pointerover"]), h(l, Et, Lt(0, xt)), h(l, mt, [g.ENTER, g.SPACE]), h(l, Ot, Object.keys(jt).filter((i) => isNaN(+i))), h(l, Rt, ["PREV", "NEXT"]), h(l, Tt, function(i) {
428
+ var u, S;
429
+ if (typeof i == "symbol")
640
430
  return;
641
- let controlsChanged = false;
642
- let highlightChanged = false;
643
- let selectionChanged = false;
644
- const highlightRange = (_a = __privateGet(this, _rangeOffsets)) == null ? void 0 : _a.join(" ");
645
- for (const key of Object.keys(signalOrSnapshot)) {
646
- if (signalOrSnapshot[key] === ((_b = __privateGet(this, _lastWatchableSnapshot)) == null ? void 0 : _b[key]))
647
- continue;
648
- if (key === "controls")
649
- controlsChanged = true;
650
- else if (key === "highlight")
651
- highlightChanged = true;
652
- else if (key === "from" || key === "to")
653
- selectionChanged = true;
654
- }
655
- if (__privateGet(this, _lastHighlightRange) !== highlightRange) {
656
- __privateSet(this, _lastHighlightRange, highlightRange);
657
- highlightChanged = true;
658
- }
659
- __privateSet(this, _lastWatchableSnapshot, signalOrSnapshot);
660
- if (__privateGet(this, _highlightInProgress) && !selectionChanged)
661
- __privateMethod(this, _restoreHighlight, restoreHighlight_fn).call(this);
662
- if (controlsChanged)
663
- __privateMethod(this, _refreshShiftControls, refreshShiftControls_fn).call(this);
664
- if (highlightChanged)
665
- __privateMethod(this, _refreshHighlighting, refreshHighlighting_fn).call(this);
431
+ let e = !1, o = !1, a = !1;
432
+ const n = (u = t(this, R)) == null ? void 0 : u.join(" ");
433
+ for (const E of Object.keys(i))
434
+ i[E] !== ((S = t(this, v)) == null ? void 0 : S[E]) && (E === "controls" ? e = !0 : E === "highlight" ? o = !0 : (E === "from" || E === "to") && (a = !0));
435
+ t(this, M) !== n && (r(this, M, n), o = !0), r(this, v, i), t(this, p) && !a && c(this, it, Pt).call(this), e && c(this, ht, Mt).call(this), o && c(this, et, Kt).call(this);
666
436
  });
667
- let Calendar = _Calendar;
437
+ let Vt = l;
668
438
  export {
669
- Calendar as default
439
+ Vt as default
670
440
  };