@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.
- package/dist/ModalContent-88fdb6f4.js +2 -0
- package/dist/ModalContent-88fdb6f4.js.map +1 -0
- package/dist/cjs/index.js +1 -35
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/components/external/BaseElement.js +48 -88
- package/dist/es/components/external/EventEmitter.js +17 -28
- package/dist/es/components/external/TransactionDetails/TransactionDetails.js +15 -20
- package/dist/es/components/external/TransactionDetails/components/TransactionData.js +41 -42
- package/dist/es/components/external/TransactionDetails/components/TransactionDataSkeleton.js +13 -13
- package/dist/es/components/external/TransactionDetails/components/TransactionDetails.js +28 -39
- package/dist/es/components/external/TransactionDetails/components/TransactionDetails.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/TransactionsOverviewElement.js +25 -31
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +7 -10
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/constants.js +4 -6
- package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/BalanceAccountSelector.js +21 -22
- package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/BalanceAccountSelector.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.js +13 -21
- package/dist/es/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.js +22 -25
- package/dist/es/components/external/TransactionsOverview/components/Balances/Balances.js +36 -47
- package/dist/es/components/external/TransactionsOverview/components/Balances/constants.js +2 -2
- package/dist/es/components/external/TransactionsOverview/components/Category/Category.js +8 -9
- package/dist/es/components/external/TransactionsOverview/components/ModalContent.js +9 -9
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +23 -25
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.js +13 -16
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.js +16 -26
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.js +7 -9
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +42 -50
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +18 -19
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/constants.js +8 -14
- package/dist/es/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.js +16 -16
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.js +37 -42
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +36 -39
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +48 -60
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/constants.js +3 -4
- package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.js +62 -73
- package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/constants.js +3 -4
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +133 -152
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/constants.js +4 -6
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.js +32 -40
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/constants.js +3 -4
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.js +49 -53
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionTable.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +75 -84
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/constants.js +6 -10
- package/dist/es/components/external/TransactionsOverview/components/utils.js +6 -12
- package/dist/es/components/external/TransactionsOverview/hooks/useDefaultTransactionsOverviewFilterParams.js +21 -39
- package/dist/es/components/external/TransactionsOverview/hooks/useMaxWidths.js +9 -10
- package/dist/es/components/external/TransactionsOverview/hooks/useMediaQuery.js +23 -28
- package/dist/es/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.js +24 -28
- package/dist/es/components/external/TransactionsOverview/types.js +4 -0
- package/dist/es/components/external/UIElement.js +38 -51
- package/dist/es/components/internal/BaseButton/BaseButton.js +18 -21
- package/dist/es/components/internal/BaseButton/BaseButton.scss.js +4 -0
- package/dist/es/components/internal/BaseButton/constants.js +2 -2
- package/dist/es/components/internal/BaseList/BaseList.js +5 -8
- package/dist/es/components/internal/BaseList/BaseList.scss.js +4 -0
- package/dist/es/components/internal/BaseList/constants.js +2 -2
- package/dist/es/components/internal/Button/Button.js +39 -41
- package/dist/es/components/internal/Button/Button.scss.js +4 -0
- package/dist/es/components/internal/Button/ButtonActions/ButtonActions.js +27 -8
- package/dist/es/components/internal/Button/ButtonActions/ButtonActions.scss.js +4 -0
- package/dist/es/components/internal/Button/ButtonActions/types.js +7 -0
- package/dist/es/components/internal/Button/constants.js +9 -16
- package/dist/es/components/internal/Button/hooks/useButton.js +13 -17
- package/dist/es/components/internal/Button/types.js +4 -0
- package/dist/es/components/internal/Calendar/Calendar.js +20 -21
- package/dist/es/components/internal/Calendar/Calendar.scss.js +4 -0
- package/dist/es/components/internal/Calendar/calendar/constants.js +35 -70
- package/dist/es/components/internal/Calendar/calendar/facade/Calendar.js +322 -552
- package/dist/es/components/internal/Calendar/calendar/facade/index.js +37 -46
- package/dist/es/components/internal/Calendar/calendar/shared/indexed/index.js +34 -46
- package/dist/es/components/internal/Calendar/calendar/timeframe/common/flags.js +31 -5
- package/dist/es/components/internal/Calendar/calendar/timeframe/common/utils.js +14 -16
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +122 -221
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +238 -418
- package/dist/es/components/internal/Calendar/calendar/timerange/factory.js +40 -63
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastMonth.js +3 -3
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +16 -27
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastWeek.js +3 -3
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.js +14 -23
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js +21 -29
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisMonth.js +3 -3
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisWeek.js +3 -3
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.js +9 -13
- package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +49 -83
- package/dist/es/components/internal/Calendar/calendar/timeslice/TimeSlice.js +38 -61
- package/dist/es/components/internal/Calendar/calendar/timeslice/index.js +17 -21
- package/dist/es/components/internal/Calendar/calendar/types.js +15 -0
- package/dist/es/components/internal/Calendar/calendar/utils.js +15 -22
- package/dist/es/components/internal/Calendar/clock/clock.js +23 -41
- package/dist/es/components/internal/Calendar/clock/today.js +37 -57
- package/dist/es/components/internal/Calendar/components/CalendarControls/CalendarControls.js +7 -12
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGrid.js +26 -28
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDate.js +33 -58
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +30 -40
- package/dist/es/components/internal/Calendar/components/CalendarGrid/utils.js +44 -49
- package/dist/es/components/internal/Calendar/hooks/useCalendar.js +84 -115
- package/dist/es/components/internal/Calendar/hooks/useCalendarControlsRendering.js +35 -40
- package/dist/es/components/internal/Calendar/hooks/useTimezone.js +24 -46
- package/dist/es/components/internal/Calendar/types.js +4 -0
- package/dist/es/components/internal/CopyText/CopyText.js +26 -31
- package/dist/es/components/internal/CopyText/CopyText.scss.js +4 -0
- package/dist/es/components/internal/DataGrid/DataGrid.js +93 -10
- package/dist/es/components/internal/DataGrid/DataGrid.scss.js +4 -0
- package/dist/es/components/internal/DataGrid/DataGridCell.js +4 -4
- package/dist/es/components/internal/DataGrid/components/InteractiveBody.js +38 -8
- package/dist/es/components/internal/DataGrid/components/SkeletonBody.js +15 -17
- package/dist/es/components/internal/DataGrid/components/TableBody.js +19 -19
- package/dist/es/components/internal/DataGrid/components/TableCells.js +19 -25
- package/dist/es/components/internal/DataGrid/hooks/useInteractiveDataGrid.js +76 -5
- package/dist/es/components/internal/DataGrid/types.js +4 -0
- package/dist/es/components/internal/DatePicker/DatePicker.js +45 -62
- package/dist/es/components/internal/DatePicker/DatePicker.scss.js +4 -0
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.js +26 -43
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +56 -85
- package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +45 -53
- package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.scss.js +4 -0
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +56 -75
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.scss.js +4 -0
- package/dist/es/components/internal/ExpandableCard/constants.js +11 -20
- package/dist/es/components/internal/FilterBar/FilterBar.js +32 -35
- package/dist/es/components/internal/FilterBar/FilterBar.scss.js +4 -0
- package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +15 -17
- package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.scss.js +4 -0
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +41 -63
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.scss.js +4 -0
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +53 -68
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/constants.js +2 -2
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +104 -153
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.js +118 -10
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.scss.js +4 -0
- package/dist/es/components/internal/FilterBar/filters/DateFilter/types.js +4 -0
- package/dist/es/components/internal/FormFields/FormFields.scss.js +4 -0
- package/dist/es/components/internal/FormFields/InputBase.js +53 -66
- package/dist/es/components/internal/FormFields/InputText.js +6 -6
- package/dist/es/components/internal/FormFields/Select/Select.js +187 -246
- package/dist/es/components/internal/FormFields/Select/Select.scss.js +4 -0
- package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +68 -72
- package/dist/es/components/internal/FormFields/Select/components/SelectList.js +62 -71
- package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +37 -41
- package/dist/es/components/internal/FormFields/Select/constants.js +27 -49
- package/dist/es/components/internal/FormFields/Select/hooks/useSelect.js +27 -35
- package/dist/es/components/internal/Image/Image.js +10 -10
- package/dist/es/components/internal/Img/Img.js +18 -32
- package/dist/es/components/internal/Img/Img.scss.js +4 -0
- package/dist/es/components/internal/Modal/Modal.js +58 -77
- package/dist/es/components/internal/Modal/Modal.scss.js +4 -0
- package/dist/es/components/internal/Pagination/Pagination.js +52 -58
- package/dist/es/components/internal/Pagination/Pagination.scss.js +4 -0
- package/dist/es/components/internal/Pagination/constants.js +4 -6
- package/dist/es/components/internal/Pagination/hooks/useCursorPaginatedRecords.js +7 -8
- package/dist/es/components/internal/Pagination/hooks/useCursorPagination.js +18 -30
- package/dist/es/components/internal/Pagination/hooks/useOffsetPagination.js +14 -21
- package/dist/es/components/internal/Pagination/hooks/usePageLimit.js +52 -60
- package/dist/es/components/internal/Pagination/hooks/usePaginatedRecords.js +80 -11
- package/dist/es/components/internal/Pagination/hooks/usePaginatedRecordsFilters.js +12 -13
- package/dist/es/components/internal/Pagination/hooks/usePagination.js +43 -87
- package/dist/es/components/internal/Pagination/types.js +5 -0
- package/dist/es/components/internal/Pagination/utils.js +5 -5
- package/dist/es/components/internal/Popover/Popover.js +106 -139
- package/dist/es/components/internal/Popover/Popover.scss.js +4 -0
- package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.js +18 -22
- package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.scss.js +4 -0
- package/dist/es/components/internal/Popover/PopoverTitle/PopoverTitle.js +8 -10
- package/dist/es/components/internal/Popover/constants.js +9 -16
- package/dist/es/components/internal/Popover/types.js +6 -0
- package/dist/es/components/internal/Popover/utils/popoverUtil.js +27 -45
- package/dist/es/components/internal/Popover/utils/utils.js +23 -29
- package/dist/es/components/internal/SVGIcons/CheckedBox.js +6 -6
- package/dist/es/components/internal/SVGIcons/Checkmark.js +7 -7
- package/dist/es/components/internal/SVGIcons/ChevronDown.js +6 -6
- package/dist/es/components/internal/SVGIcons/ChevronLeft.js +8 -8
- package/dist/es/components/internal/SVGIcons/ChevronRight.js +8 -8
- package/dist/es/components/internal/SVGIcons/ChevronUp.js +7 -7
- package/dist/es/components/internal/SVGIcons/Close.js +4 -4
- package/dist/es/components/internal/SVGIcons/Copy.js +3 -3
- package/dist/es/components/internal/SVGIcons/Filter.js +4 -4
- package/dist/es/components/internal/SVGIcons/UncheckedBox.js +6 -6
- package/dist/es/components/internal/Spinner/Spinner.js +4 -5
- package/dist/es/components/internal/Spinner/Spinner.scss.js +4 -0
- package/dist/es/components/internal/Tag/Tag.js +19 -5
- package/dist/es/components/internal/Tag/Tag.scss.js +4 -0
- package/dist/es/components/internal/Tag/types.js +4 -0
- package/dist/es/components/internal/Tooltip/Tooltip.js +31 -38
- package/dist/es/components/internal/Tooltip/Tooltip.scss.js +4 -0
- package/dist/es/components/internal/Tooltip/useTooltipListeners.js +17 -20
- package/dist/es/components/internal/Typography/Typography.js +33 -7
- package/dist/es/components/internal/Typography/Typography.scss.js +4 -0
- package/dist/es/components/internal/Typography/constants.js +2 -2
- package/dist/es/components/internal/Typography/types.js +6 -0
- package/dist/es/components/shared.scss.js +4 -0
- package/dist/es/components/types.js +4 -0
- package/dist/es/components/utils/transactionResourceErrorCodes.js +14 -15
- package/dist/es/constants.js +2 -2
- package/dist/es/core/Auth/AuthContext.js +7 -7
- package/dist/es/core/Auth/AuthProvider.js +15 -23
- package/dist/es/core/Auth/useAuthContext.js +4 -4
- package/dist/es/core/Context/CoreContext.js +5 -5
- package/dist/es/core/Context/CoreProvider.js +17 -23
- package/dist/es/core/Context/useCoreContext.js +4 -4
- package/dist/es/core/Errors/AdyenPlatformExperienceError.js +12 -17
- package/dist/es/core/Errors/constants.js +2 -4
- package/dist/es/core/Localization/Localization.js +155 -12
- package/dist/es/core/Localization/amount/amount-util.js +19 -42
- package/dist/es/core/Localization/constants/currency-codes.js +3 -3
- package/dist/es/core/Localization/constants/currency-decimals.js +3 -3
- package/dist/es/core/Localization/constants/locale.js +5 -7
- package/dist/es/core/Localization/constants/localization.js +6 -9
- package/dist/es/core/Localization/datetime/restamper/constants.js +20 -29
- package/dist/es/core/Localization/datetime/restamper/restamper.js +32 -44
- package/dist/es/core/Localization/datetime/restamper/utils.js +26 -44
- package/dist/es/core/Localization/localization-utils.js +31 -7
- package/dist/es/core/Localization/translations/ar.json.js +4 -0
- package/dist/es/core/Localization/translations/cs-CZ.json.js +4 -0
- package/dist/es/core/Localization/translations/da-DK.json.js +4 -0
- package/dist/es/core/Localization/translations/de-DE.json.js +4 -0
- package/dist/es/core/Localization/translations/el-GR.json.js +4 -0
- package/dist/es/core/Localization/translations/en-US.json.js +371 -0
- package/dist/es/core/Localization/translations/es-ES.json.js +255 -0
- package/dist/es/core/Localization/translations/fi-FI.json.js +4 -0
- package/dist/es/core/Localization/translations/fr-FR.json.js +4 -0
- package/dist/es/core/Localization/translations/hr-HR.json.js +4 -0
- package/dist/es/core/Localization/translations/hu-HU.json.js +4 -0
- package/dist/es/core/Localization/translations/index.js +79 -356
- package/dist/es/core/Localization/translations/it-IT.json.js +4 -0
- package/dist/es/core/Localization/translations/ja-JP.json.js +4 -0
- package/dist/es/core/Localization/translations/ko-KR.json.js +4 -0
- package/dist/es/core/Localization/translations/nl-NL.json.js +4 -0
- package/dist/es/core/Localization/translations/no-NO.json.js +4 -0
- package/dist/es/core/Localization/translations/pl-PL.json.js +4 -0
- package/dist/es/core/Localization/translations/pt-BR.json.js +4 -0
- package/dist/es/core/Localization/translations/pt-PT.json.js +4 -0
- package/dist/es/core/Localization/translations/ro-RO.json.js +4 -0
- package/dist/es/core/Localization/translations/ru-RU.json.js +4 -0
- package/dist/es/core/Localization/translations/sk-SK.json.js +4 -0
- package/dist/es/core/Localization/translations/sl-SI.json.js +4 -0
- package/dist/es/core/Localization/translations/sv-SE.json.js +4 -0
- package/dist/es/core/Localization/translations/zh-CN.json.js +4 -0
- package/dist/es/core/Localization/translations/zh-TW.json.js +4 -0
- package/dist/es/core/Localization/utils.js +44 -72
- package/dist/es/core/Services/requests/http.js +31 -49
- package/dist/es/core/Services/requests/utils.js +34 -49
- package/dist/es/core/Services/sessions/constants.js +2 -2
- package/dist/es/core/Services/sessions/setup-session.js +9 -9
- package/dist/es/core/Session/Session.js +23 -38
- package/dist/es/core/Session/utils.js +5 -5
- package/dist/es/core/config.js +2 -6
- package/dist/es/core/core.js +44 -85
- package/dist/es/core/utils.js +8 -10
- package/dist/es/external/preact/compat/dist/compat.module.js +253 -0
- package/dist/es/external/preact/dist/preact.module.js +316 -0
- package/dist/es/external/preact/hooks/dist/hooks.module.js +161 -0
- package/dist/es/external/preact/jsx-runtime/dist/jsxRuntime.module.js +19 -0
- package/dist/es/hooks/element/useClickOutside.js +32 -73
- package/dist/es/hooks/element/useDetachedRender.js +15 -17
- package/dist/es/hooks/element/useFocusCursor.js +14 -19
- package/dist/es/hooks/element/useFocusTrap.js +48 -91
- package/dist/es/hooks/element/usePopoverPositioner.js +105 -5
- package/dist/es/hooks/element/useUniqueIdentifier.js +13 -17
- package/dist/es/hooks/useBooleanState/useBooleanState.js +6 -8
- package/dist/es/hooks/useCommitAction/types.js +4 -0
- package/dist/es/hooks/useCommitAction/useCommitAction.js +27 -38
- package/dist/es/hooks/useFetch/useFetch.js +27 -37
- package/dist/es/hooks/useImageUrl/useImageUrl.js +22 -26
- package/dist/es/hooks/useModalDetails/types.js +6 -0
- package/dist/es/hooks/useModalDetails/useModalDetails.js +28 -37
- package/dist/es/hooks/useMounted/useMounted.js +8 -14
- package/dist/es/hooks/useReactiveState/useReactiveState.js +27 -53
- package/dist/es/hooks/useReflex/constants.js +2 -2
- package/dist/es/hooks/useReflex/core/reflex.js +47 -66
- package/dist/es/hooks/useReflex/core/registry.js +46 -68
- package/dist/es/hooks/useReflex/core/utils.js +16 -18
- package/dist/es/hooks/useReflex/errors.js +6 -6
- package/dist/es/hooks/useReflex/hooks/useReflex.js +7 -12
- package/dist/es/hooks/useSessionAwareRequest/useSessionAwareRequest.js +22 -36
- package/dist/es/hooks/useSetupEndpoint/useSetupEndpoint.js +20 -26
- package/dist/es/images/no-data-female.svg.js +4 -0
- package/dist/es/images/no-results.svg.js +4 -0
- package/dist/es/index.js +41 -45
- package/dist/es/style/index.scss.js +4 -0
- package/dist/es/utils/Storage.js +17 -21
- package/dist/es/utils/class-name-utils.js +5 -11
- package/dist/es/utils/common/constants.js +6 -10
- package/dist/es/utils/common/index.js +32 -59
- package/dist/es/utils/fixedForwardRef.js +3 -3
- package/dist/es/utils/get-image.js +11 -12
- package/dist/es/utils/idGenerator.js +3 -6
- package/dist/es/utils/memoComparator/memoComparator.js +17 -26
- package/dist/es/utils/tabbable.js +71 -110
- package/dist/es/utils/uuid.js +5 -5
- package/dist/es/utils/validator-utils.js +3 -44
- package/dist/es/utils/watchable/constants.js +2 -2
- package/dist/es/utils/watchable/core/Watchable.js +45 -83
- package/dist/es/utils/watchable/core/helpers.js +19 -26
- package/dist/es/utils/watchable/core/syncEffect.js +15 -19
- package/dist/es/utils/watchable/index.js +16 -17
- package/dist/index-7e2df524.js +12 -0
- package/dist/index-7e2df524.js.map +1 -0
- package/dist/style.css +1 -0
- package/dist/types/components/external/TransactionDetails/TransactionDetails.d.ts +1 -1
- package/dist/types/components/external/TransactionDetails/TransactionDetails.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts +1 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/types.d.ts +3 -3
- package/dist/types/components/external/TransactionDetails/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/BalanceItem/types.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/BalanceItem/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/Balances/Balances.d.ts +3 -3
- package/dist/types/components/external/TransactionsOverview/components/Balances/Balances.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/Category/Category.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/Category/Category.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/Category/types.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/components/Category/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/ModalContent.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/ModalContent.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/types.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/types.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.d.ts +3 -3
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/types.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts +4 -4
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useDefaultTransactionsOverviewFilterParams.d.ts +1 -0
- package/dist/types/components/external/TransactionsOverview/hooks/useDefaultTransactionsOverviewFilterParams.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useMediaQuery.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useMediaQuery.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/types.d.ts +2 -1
- package/dist/types/components/external/TransactionsOverview/types.d.ts.map +1 -1
- package/dist/types/components/external/UIElement.d.ts +1 -1
- package/dist/types/components/external/UIElement.d.ts.map +1 -1
- package/dist/types/components/internal/BaseList/BaseList.d.ts +1 -1
- package/dist/types/components/internal/BaseList/BaseList.d.ts.map +1 -1
- package/dist/types/components/internal/Button/ButtonActions/ButtonActions.d.ts +1 -1
- package/dist/types/components/internal/Button/ButtonActions/ButtonActions.d.ts.map +1 -1
- package/dist/types/components/internal/Button/ButtonActions/types.d.ts +1 -1
- package/dist/types/components/internal/Button/ButtonActions/types.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/shared/indexed/index.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/types.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/types.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/types.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/types.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/clock/today.d.ts +1 -1
- package/dist/types/components/internal/Calendar/clock/today.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/clock/types.d.ts +2 -2
- package/dist/types/components/internal/Calendar/clock/types.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/components/CalendarGrid/utils.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/hooks/useCalendar.d.ts +1 -1
- package/dist/types/components/internal/Calendar/hooks/useCalendar.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/hooks/useTimezone.d.ts +1 -1
- package/dist/types/components/internal/Calendar/hooks/useTimezone.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/InteractiveBody.d.ts +1 -1
- package/dist/types/components/internal/DataGrid/components/InteractiveBody.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/TableBody.d.ts +1 -1
- package/dist/types/components/internal/DataGrid/components/TableBody.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/TableCells.d.ts +2 -2
- package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/hooks/useInteractiveDataGrid.d.ts +1 -1
- package/dist/types/components/internal/DataGrid/types.d.ts +2 -2
- package/dist/types/components/internal/DataGrid/types.d.ts.map +1 -1
- package/dist/types/components/internal/DatePicker/DatePicker.d.ts +1 -1
- package/dist/types/components/internal/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts +3 -3
- package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts.map +1 -1
- package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts +1 -1
- package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/AmountFilter/types.d.ts +2 -2
- package/dist/types/components/internal/FilterBar/filters/AmountFilter/types.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/BaseFilter/types.d.ts +2 -2
- package/dist/types/components/internal/FilterBar/filters/BaseFilter/types.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/DateFilter/types.d.ts +1 -1
- package/dist/types/components/internal/FilterBar/filters/DateFilter/types.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/types.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/types.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/types.d.ts +1 -1
- package/dist/types/components/internal/Pagination/hooks/types.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePaginatedRecordsFilters.d.ts +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePaginatedRecordsFilters.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/types.d.ts +1 -1
- package/dist/types/components/internal/Pagination/types.d.ts.map +1 -1
- package/dist/types/components/internal/Popover/Popover.d.ts +1 -1
- package/dist/types/components/internal/Popover/Popover.d.ts.map +1 -1
- package/dist/types/components/internal/Popover/types.d.ts +1 -1
- package/dist/types/components/internal/Popover/types.d.ts.map +1 -1
- package/dist/types/components/internal/Tooltip/types.d.ts +2 -2
- package/dist/types/components/internal/Tooltip/types.d.ts.map +1 -1
- package/dist/types/components/utils/transactionResourceErrorCodes.d.ts +2 -2
- package/dist/types/components/utils/transactionResourceErrorCodes.d.ts.map +1 -1
- package/dist/types/core/Auth/AuthContext.d.ts +1 -1
- package/dist/types/core/Auth/AuthContext.d.ts.map +1 -1
- package/dist/types/core/Auth/AuthProvider.d.ts +1 -1
- package/dist/types/core/Auth/AuthProvider.d.ts.map +1 -1
- package/dist/types/core/Auth/types.d.ts +1 -1
- package/dist/types/core/Auth/types.d.ts.map +1 -1
- package/dist/types/core/Context/CoreContext.d.ts +1 -1
- package/dist/types/core/Context/CoreContext.d.ts.map +1 -1
- package/dist/types/core/Context/types.d.ts +1 -1
- package/dist/types/core/Context/types.d.ts.map +1 -1
- package/dist/types/core/Errors/AdyenPlatformExperienceError.d.ts +1 -1
- package/dist/types/core/Errors/AdyenPlatformExperienceError.d.ts.map +1 -1
- package/dist/types/core/Localization/localization-utils.d.ts.map +1 -1
- package/dist/types/core/Localization/types.d.ts +3 -3
- package/dist/types/core/Localization/types.d.ts.map +1 -1
- package/dist/types/core/Session/types.d.ts +1 -1
- package/dist/types/core/Session/types.d.ts.map +1 -1
- package/dist/types/hooks/element/useClickOutside.d.ts +2 -2
- package/dist/types/hooks/element/useClickOutside.d.ts.map +1 -1
- package/dist/types/hooks/element/usePopoverPositioner.d.ts +1 -1
- package/dist/types/hooks/element/usePopoverPositioner.d.ts.map +1 -1
- package/dist/types/hooks/useCommitAction/types.d.ts +1 -1
- package/dist/types/hooks/useCommitAction/types.d.ts.map +1 -1
- package/dist/types/hooks/useFetch/useFetch.d.ts +1 -1
- package/dist/types/hooks/useFetch/useFetch.d.ts.map +1 -1
- package/dist/types/hooks/useModalDetails/types.d.ts +2 -2
- package/dist/types/hooks/useModalDetails/types.d.ts.map +1 -1
- package/dist/types/hooks/useSessionAwareRequest/useSessionAwareRequest.d.ts +1 -1
- package/dist/types/hooks/useSessionAwareRequest/useSessionAwareRequest.d.ts.map +1 -1
- package/dist/types/hooks/useSetupEndpoint/useSetupEndpoint.d.ts +2 -2
- package/dist/types/hooks/useSetupEndpoint/useSetupEndpoint.d.ts.map +1 -1
- package/dist/types/utils/Validator/types.d.ts +1 -1
- package/dist/types/utils/Validator/types.d.ts.map +1 -1
- package/dist/types/utils/useForm/types.d.ts +1 -1
- package/dist/types/utils/useForm/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/AmountSkeleton.css +0 -23
- package/dist/BalanceAccountSelector.css +0 -4
- package/dist/BaseButton.css +0 -14
- package/dist/BaseList.css +0 -5
- package/dist/Button.css +0 -114
- package/dist/ButtonActions-eb064f69.mjs +0 -46
- package/dist/ButtonActions.css +0 -28
- package/dist/CalendarGrid.css +0 -113
- package/dist/CopyText.css +0 -18
- package/dist/DatePicker.css +0 -64
- package/dist/ErrorMessageDisplay.css +0 -20
- package/dist/ErrorPanel.css +0 -15
- package/dist/ExpandableCard.css +0 -71
- package/dist/FilterBar.css +0 -40
- package/dist/FilterButton.css +0 -48
- package/dist/Img.css +0 -7
- package/dist/InputBase.css +0 -175
- package/dist/Modal.css +0 -110
- package/dist/Pagination.css +0 -25
- package/dist/Popover.css +0 -127
- package/dist/PopoverDismissButton.css +0 -12
- package/dist/RangeSelection.css +0 -26
- package/dist/Select.css +0 -149
- package/dist/SkeletonBody.css +0 -154
- package/dist/Spinner.css +0 -50
- package/dist/SummaryItem.css +0 -37
- package/dist/Tag-6d02fd64.mjs +0 -32
- package/dist/Tag.css +0 -34
- package/dist/Tooltip.css +0 -7
- package/dist/TotalsCard.css +0 -14
- package/dist/TransactionDetails.css +0 -74
- package/dist/TransactionsDisplay.css +0 -4
- package/dist/TransactionsOverview.css +0 -29
- package/dist/TransactionsOverviewContainer.css +0 -3
- package/dist/TransactionsTable.css +0 -18
- package/dist/Typography-11b95870.mjs +0 -68
- package/dist/Typography.css +0 -57
- package/dist/cjs/ModalContent-f4990141.js +0 -10
- package/dist/cjs/ModalContent-f4990141.js.map +0 -1
- package/dist/cjs/index-8c098f20.js +0 -10401
- package/dist/cjs/index-8c098f20.js.map +0 -1
- package/dist/cjs/index.css +0 -1709
- package/dist/compat.module-a4d537ff.mjs +0 -237
- package/dist/en-US-1daadfc1.mjs +0 -371
- package/dist/es/components/external/FormElement.js +0 -78
- package/dist/es/components/external/TransactionDetails/index.js +0 -4
- package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/index.js +0 -6
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/index.js +0 -15
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/index.js +0 -13
- package/dist/es/components/external/TransactionsOverview/index.js +0 -6
- package/dist/es/components/external/index.js +0 -8
- package/dist/es/components/index.js +0 -11
- package/dist/es/components/internal/BaseButton/index.js +0 -4
- package/dist/es/components/internal/Button/index.js +0 -4
- package/dist/es/components/internal/Calendar/calendar/index.js +0 -4
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/YearFrame.js +0 -197
- package/dist/es/components/internal/Calendar/calendar/timeframe/index.js +0 -8
- package/dist/es/components/internal/Calendar/calendar/timerange/factory.test.js +0 -139
- package/dist/es/components/internal/Calendar/calendar/timerange/index.js +0 -4
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/index.js +0 -14
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastMonth.test.js +0 -69
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.test.js +0 -69
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastWeek.test.js +0 -108
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/testing/fixtures.js +0 -15
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/testing/helpers.js +0 -19
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisMonth.test.js +0 -46
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisWeek.test.js +0 -85
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.test.js +0 -49
- package/dist/es/components/internal/Calendar/clock/clock.test.js +0 -43
- package/dist/es/components/internal/Calendar/clock/index.js +0 -7
- package/dist/es/components/internal/Calendar/clock/testing/fixtures.js +0 -60
- package/dist/es/components/internal/Calendar/clock/today.test.js +0 -98
- package/dist/es/components/internal/Calendar/components/CalendarControls/index.js +0 -4
- package/dist/es/components/internal/Calendar/components/CalendarGrid/index.js +0 -4
- package/dist/es/components/internal/Calendar/index.js +0 -4
- package/dist/es/components/internal/DataGrid/index.js +0 -4
- package/dist/es/components/internal/DataGrid/tests/DataGrid.test.js +0 -190
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/index.js +0 -7
- package/dist/es/components/internal/DatePicker/index.js +0 -4
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.test.js +0 -45
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/index.js +0 -4
- package/dist/es/components/internal/FilterBar/filters/DateFilter/index.js +0 -4
- package/dist/es/components/internal/FilterBar/filters/TextFilter/TextFilter.js +0 -8
- package/dist/es/components/internal/FilterBar/filters/TextFilter/index.js +0 -4
- package/dist/es/components/internal/FilterBar/index.js +0 -4
- package/dist/es/components/internal/FormFields/Select/index.js +0 -4
- package/dist/es/components/internal/FormFields/index.js +0 -18
- package/dist/es/components/internal/FormFields/utils.js +0 -4
- package/dist/es/components/internal/Img/index.js +0 -4
- package/dist/es/components/internal/Modal/index.js +0 -4
- package/dist/es/components/internal/Pagination/components/LimitSelect.js +0 -1
- package/dist/es/components/internal/Pagination/hooks/index.js +0 -6
- package/dist/es/components/internal/Pagination/hooks/useOffsetPaginatedRecords.js +0 -10
- package/dist/es/components/internal/Pagination/index.js +0 -4
- package/dist/es/components/internal/Popover/Popover.test.js +0 -119
- package/dist/es/components/internal/Spinner/index.js +0 -4
- package/dist/es/components/utils/utils.js +0 -34
- package/dist/es/core/Analytics/Analytics.js +0 -63
- package/dist/es/core/Analytics/EventsQueue.js +0 -22
- package/dist/es/core/Analytics/index.js +0 -4
- package/dist/es/core/Errors/ErrorPanel.js +0 -19
- package/dist/es/core/Localization/Localization.test.js +0 -70
- package/dist/es/core/Localization/amount/amount-util.test.js +0 -54
- package/dist/es/core/Localization/datetime/restamper/index.js +0 -9
- package/dist/es/core/Localization/datetime/restamper/restamper.test.js +0 -179
- package/dist/es/core/Localization/datetime/restamper/testing/fixtures.js +0 -21
- package/dist/es/core/Localization/datetime/restamper/testing/helpers.js +0 -27
- package/dist/es/core/Localization/index.js +0 -32
- package/dist/es/core/Localization/utils.test.js +0 -215
- package/dist/es/core/ProcessResponse/index.js +0 -4
- package/dist/es/core/ProcessResponse/process-response.js +0 -40
- package/dist/es/core/Services/analytics/collect-id.js +0 -37
- package/dist/es/core/Services/analytics/log-event.js +0 -14
- package/dist/es/core/Services/analytics/post-telemetry.js +0 -22
- package/dist/es/core/Services/data-set.js +0 -1
- package/dist/es/core/Services/get-dataset.js +0 -13
- package/dist/es/core/Services/requests/endpoints.js +0 -9
- package/dist/es/core/Session/index.js +0 -4
- package/dist/es/core/index.js +0 -36
- package/dist/es/hooks/element/useIdentifierString.js +0 -61
- package/dist/es/hooks/useBooleanState/index.js +0 -4
- package/dist/es/hooks/useCommitAction/index.js +0 -6
- package/dist/es/hooks/useDefinedValue/index.js +0 -4
- package/dist/es/hooks/useDefinedValue/useDefinedValue.js +0 -16
- package/dist/es/hooks/useMounted/index.js +0 -4
- package/dist/es/hooks/useReactiveState/index.js +0 -4
- package/dist/es/hooks/useReflex/core/reflex.test.js +0 -170
- package/dist/es/hooks/useReflex/core/registry.test.js +0 -114
- package/dist/es/hooks/useReflex/core/utils.test.js +0 -59
- package/dist/es/hooks/useReflex/index.js +0 -8
- package/dist/es/utils/Validator/ValidationRuleResult.js +0 -28
- package/dist/es/utils/Validator/Validator.js +0 -67
- package/dist/es/utils/Validator/Validator.test.js +0 -27
- package/dist/es/utils/Validator/defaultRules.js +0 -12
- package/dist/es/utils/Validator/index.js +0 -4
- package/dist/es/utils/get-image.test.js +0 -38
- package/dist/es/utils/memoComparator/index.js +0 -4
- package/dist/es/utils/regex.js +0 -6
- package/dist/es/utils/useForm/index.js +0 -4
- package/dist/es/utils/useForm/reducer.js +0 -153
- package/dist/es/utils/useForm/useForm.js +0 -85
- package/dist/es/utils/useForm/useForm.test.js +0 -107
- package/dist/es/utils/uuid.test.js +0 -13
- package/dist/es/utils/watchable/core/Watchable.test.js +0 -103
- package/dist/es/utils/watchable/core/helpers.test.js +0 -106
- package/dist/es/utils/watchable/core/syncEffect.test.js +0 -103
- package/dist/flags-41c36e13.mjs +0 -83
- package/dist/hooks.module-8565d716.mjs +0 -161
- package/dist/index-2c0f6175.mjs +0 -12069
- package/dist/index-6e47f755.mjs +0 -231
- package/dist/index-944be685.mjs +0 -6609
- package/dist/index-c88cd37e.mjs +0 -243
- package/dist/index-f5bc0382.mjs +0 -155
- package/dist/index.css +0 -65
- package/dist/index2.css +0 -4
- package/dist/jsxRuntime.module-69493d81.mjs +0 -15
- package/dist/magic-string.es-219c273f.mjs +0 -1146
- package/dist/preact.module-38e5a571.mjs +0 -323
- package/dist/types-0027b7c2.mjs +0 -9
- package/dist/types-0aaff3aa.mjs +0 -19
- package/dist/types-7ad6576a.mjs +0 -10
- package/dist/types-e4bbd37f.mjs +0 -13
- package/dist/types-e6a6a3ff.mjs +0 -9
- package/dist/usePaginatedRecords-63a69bf1.mjs +0 -131
- package/dist/usePopoverPositioner-882fea89.mjs +0 -182
- package/dist/vendor-vi.a3ff54b1-5e924357.mjs +0 -22389
|
@@ -1,496 +1,316 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
var Bt = Object.defineProperty;
|
|
2
|
+
var St = (m, s, i) => s in m ? Bt(m, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : m[s] = i;
|
|
3
|
+
var Q = (m, s, i) => (St(m, typeof s != "symbol" ? s + "" : s, i), i), ht = (m, s, i) => {
|
|
4
|
+
if (!s.has(m))
|
|
5
|
+
throw TypeError("Cannot " + i);
|
|
4
6
|
};
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
return getter ? getter.call(obj) : member.get(obj);
|
|
8
|
-
};
|
|
9
|
-
var __privateAdd = (obj, member, value) => {
|
|
10
|
-
if (member.has(obj))
|
|
7
|
+
var t = (m, s, i) => (ht(m, s, "read from private field"), i ? i.call(m) : s.get(m)), r = (m, s, i) => {
|
|
8
|
+
if (s.has(m))
|
|
11
9
|
throw TypeError("Cannot add the same private member more than once");
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return value;
|
|
18
|
-
};
|
|
19
|
-
var __privateWrapper = (obj, member, setter, getter) => ({
|
|
20
|
-
set _(value) {
|
|
21
|
-
__privateSet(obj, member, value, setter);
|
|
10
|
+
s instanceof WeakSet ? s.add(m) : s.set(m, i);
|
|
11
|
+
}, e = (m, s, i, h) => (ht(m, s, "write to private field"), h ? h.call(m, i) : s.set(m, i), i);
|
|
12
|
+
var M = (m, s, i, h) => ({
|
|
13
|
+
set _(o) {
|
|
14
|
+
e(m, s, o, i);
|
|
22
15
|
},
|
|
23
16
|
get _() {
|
|
24
|
-
return
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
import
|
|
33
|
-
import {
|
|
34
|
-
import
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
import indexed from "../../shared/indexed/index.js";
|
|
38
|
-
import { isFunction, isInfinite, clamp, mid, isBitSafeInteger, enumerable, struct, mod } from "../../../../../../utils/common/index.js";
|
|
39
|
-
import "../../../clock/clock.js";
|
|
40
|
-
import today from "../../../clock/today.js";
|
|
41
|
-
const _TimeFrame = class _TimeFrame {
|
|
17
|
+
return t(m, s, h);
|
|
18
|
+
}
|
|
19
|
+
}), n = (m, s, i) => (ht(m, s, "access private method"), i);
|
|
20
|
+
import { resolveTimeFrameBlockSize as Ct, downsizeTimeFrame as ct } from "../common/utils.js";
|
|
21
|
+
import { UNBOUNDED_SLICE as lt } from "../../timeslice/index.js";
|
|
22
|
+
import { computeTimestampOffset as Et } from "../../utils.js";
|
|
23
|
+
import { FIRST_WEEK_DAYS as Rt, SHIFT_FRAME as nt, SHIFT_PERIOD as yt, SHIFT_BLOCK as Dt, CURSOR_NEXT_BLOCK as At, CURSOR_PREV_BLOCK as _t, CURSOR_LINE_END as wt, CURSOR_LINE_START as xt, CURSOR_BLOCK_END as Ut, CURSOR_BLOCK_START as vt, CURSOR_DOWNWARD as Lt, CURSOR_UPWARD as Nt, CURSOR_FORWARD as bt, CURSOR_BACKWARD as Wt, SELECTION_TO as at, SELECTION_FROM as Z, SELECTION_COLLAPSE as Mt, SELECTION_NEAREST as ut, SELECTION_FARTHEST as dt } from "../../constants.js";
|
|
24
|
+
import Ht from "../common/flags.js";
|
|
25
|
+
import tt from "../../shared/indexed/index.js";
|
|
26
|
+
import { isFunction as zt, isInfinite as mt, clamp as ot, mid as Kt, isBitSafeInteger as gt, enumerable as k, struct as $t, mod as Vt } from "../../../../../../utils/common/index.js";
|
|
27
|
+
import Xt from "../../../clock/today.js";
|
|
28
|
+
var U, g, z, K, $, V, T, F, A, v, L, N, _, B, X, l, c, u, E, b, R, Y, j, y, S, q, G, st, it, et, Ot, C, D, rt, Ft, p, O, w, H, J, ft;
|
|
29
|
+
const x = class x {
|
|
42
30
|
constructor() {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
__privateSet(this, _dynamicBlockHeight, false);
|
|
81
|
-
__privateSet(this, _firstWeekDay, 0);
|
|
82
|
-
__privateSet(this, _frameBlocksCached, []);
|
|
83
|
-
__privateSet(this, _locale, __privateGet(_TimeFrame, _DEFAULT_LOCALE));
|
|
84
|
-
__privateSet(this, _maxFrameSize, 12);
|
|
85
|
-
__privateSet(this, _size, 1);
|
|
86
|
-
__privateSet(this, _today, today());
|
|
87
|
-
__privateSet(this, _fromTimestamp, -Infinity);
|
|
88
|
-
__privateSet(this, _toTimestamp, Infinity);
|
|
89
|
-
__privateSet(this, _fromBlockOffsetFromOrigin, -Infinity);
|
|
90
|
-
__privateSet(this, _toBlockOffsetFromOrigin, Infinity);
|
|
91
|
-
__privateSet(this, _numberOfBlocks, Infinity);
|
|
92
|
-
__privateSet(this, _numberOfUnits, 0);
|
|
93
|
-
this.daysInWeek = 0;
|
|
94
|
-
__privateSet(this, _daysOfWeek, indexed(() => this.daysInWeek, this.getDayOfWeekAtIndex.bind(this)));
|
|
95
|
-
__privateSet(this, _frameBlocks, indexed(() => __privateGet(this, _size), __privateMethod(this, _getFrameBlockAtIndex, getFrameBlockAtIndex_fn).bind(this)));
|
|
31
|
+
r(this, et);
|
|
32
|
+
r(this, C);
|
|
33
|
+
r(this, rt);
|
|
34
|
+
r(this, p);
|
|
35
|
+
r(this, w);
|
|
36
|
+
r(this, J);
|
|
37
|
+
r(this, g, 0);
|
|
38
|
+
r(this, z, void 0);
|
|
39
|
+
r(this, K, void 0);
|
|
40
|
+
r(this, $, -1);
|
|
41
|
+
r(this, V, -1);
|
|
42
|
+
r(this, T, void 0);
|
|
43
|
+
r(this, F, void 0);
|
|
44
|
+
r(this, A, void 0);
|
|
45
|
+
r(this, v, !1);
|
|
46
|
+
r(this, L, void 0);
|
|
47
|
+
r(this, N, 0);
|
|
48
|
+
r(this, _, []);
|
|
49
|
+
r(this, B, t(x, U));
|
|
50
|
+
r(this, X, 12);
|
|
51
|
+
r(this, l, void 0);
|
|
52
|
+
r(this, c, void 0);
|
|
53
|
+
r(this, u, 1);
|
|
54
|
+
r(this, E, void 0);
|
|
55
|
+
r(this, b, Xt());
|
|
56
|
+
r(this, R, void 0);
|
|
57
|
+
r(this, Y, -1 / 0);
|
|
58
|
+
r(this, j, 1 / 0);
|
|
59
|
+
r(this, y, -1 / 0);
|
|
60
|
+
r(this, S, 1 / 0);
|
|
61
|
+
r(this, q, 1 / 0);
|
|
62
|
+
r(this, G, 0);
|
|
63
|
+
Q(this, "daysInWeek", 0);
|
|
64
|
+
Q(this, "origin");
|
|
65
|
+
Q(this, "originTimestamp");
|
|
66
|
+
r(this, st, tt(() => this.daysInWeek, this.getDayOfWeekAtIndex.bind(this)));
|
|
67
|
+
r(this, it, tt(() => t(this, u), n(this, rt, Ft).bind(this)));
|
|
96
68
|
}
|
|
97
69
|
get fromTimestamp() {
|
|
98
|
-
return
|
|
70
|
+
return t(this, Y);
|
|
99
71
|
}
|
|
100
72
|
get toTimestamp() {
|
|
101
|
-
return
|
|
73
|
+
return t(this, j);
|
|
102
74
|
}
|
|
103
75
|
get numberOfBlocks() {
|
|
104
|
-
return
|
|
76
|
+
return t(this, q);
|
|
105
77
|
}
|
|
106
78
|
get blankSelection() {
|
|
107
|
-
return
|
|
79
|
+
return t(this, l) === t(this, c) && t(this, c) === void 0;
|
|
108
80
|
}
|
|
109
81
|
get cursor() {
|
|
110
|
-
return
|
|
82
|
+
return t(this, T) ?? -1;
|
|
111
83
|
}
|
|
112
84
|
get daysOfWeek() {
|
|
113
|
-
return
|
|
85
|
+
return t(this, st);
|
|
114
86
|
}
|
|
115
87
|
get dynamicBlockHeight() {
|
|
116
|
-
return
|
|
88
|
+
return t(this, v);
|
|
117
89
|
}
|
|
118
|
-
set dynamicBlockHeight(
|
|
119
|
-
|
|
120
|
-
__privateSet(this, _dynamicBlockHeight, !!bool);
|
|
121
|
-
else if (bool === Boolean(bool))
|
|
122
|
-
__privateSet(this, _dynamicBlockHeight, bool);
|
|
90
|
+
set dynamicBlockHeight(s) {
|
|
91
|
+
s == null ? e(this, v, !!s) : s === !!s && e(this, v, s);
|
|
123
92
|
}
|
|
124
|
-
set effect(
|
|
125
|
-
|
|
126
|
-
__privateSet(this, _effect, void 0);
|
|
127
|
-
else if (isFunction(effect))
|
|
128
|
-
__privateSet(this, _effect, effect);
|
|
93
|
+
set effect(s) {
|
|
94
|
+
s == null ? e(this, L, void 0) : zt(s) && e(this, L, s);
|
|
129
95
|
}
|
|
130
96
|
get firstWeekDay() {
|
|
131
|
-
return
|
|
97
|
+
return t(this, N);
|
|
132
98
|
}
|
|
133
|
-
set firstWeekDay(
|
|
134
|
-
if (
|
|
135
|
-
if (!
|
|
136
|
-
return;
|
|
137
|
-
if (__privateGet(this, _firstWeekDay) === __privateSet(this, _firstWeekDay, day))
|
|
99
|
+
set firstWeekDay(s) {
|
|
100
|
+
if (s != null) {
|
|
101
|
+
if (!Rt.includes(s) || t(this, N) === e(this, N, s))
|
|
138
102
|
return;
|
|
139
103
|
} else
|
|
140
104
|
this.firstWeekDay = 0;
|
|
141
105
|
}
|
|
142
106
|
get frameBlocks() {
|
|
143
|
-
return
|
|
107
|
+
return t(this, it);
|
|
144
108
|
}
|
|
145
109
|
get isAtEnd() {
|
|
146
|
-
return !
|
|
110
|
+
return !mt(t(this, S)) && t(this, S) === t(this, u) - 1;
|
|
147
111
|
}
|
|
148
112
|
get isAtStart() {
|
|
149
|
-
return !
|
|
113
|
+
return !mt(t(this, y)) && t(this, y) === 0;
|
|
150
114
|
}
|
|
151
115
|
get locale() {
|
|
152
|
-
return
|
|
116
|
+
return t(this, B);
|
|
153
117
|
}
|
|
154
|
-
set locale(
|
|
155
|
-
const
|
|
156
|
-
if (
|
|
157
|
-
|
|
158
|
-
|
|
118
|
+
set locale(s) {
|
|
119
|
+
const i = t(this, B);
|
|
120
|
+
if (s == null)
|
|
121
|
+
e(this, B, t(x, U));
|
|
122
|
+
else if (typeof Intl < "u")
|
|
159
123
|
try {
|
|
160
|
-
|
|
124
|
+
e(this, B, new Intl.Locale(s).toString());
|
|
161
125
|
} catch {
|
|
162
|
-
|
|
126
|
+
e(this, B, t(x, U));
|
|
163
127
|
}
|
|
164
|
-
|
|
165
|
-
if (__privateGet(this, _locale) !== currentLocale)
|
|
166
|
-
this.refreshFrame(true);
|
|
128
|
+
t(this, B) !== i && this.refreshFrame(!0);
|
|
167
129
|
}
|
|
168
130
|
get selectionStart() {
|
|
169
|
-
return
|
|
131
|
+
return t(this, l);
|
|
170
132
|
}
|
|
171
133
|
get selectionEnd() {
|
|
172
|
-
return
|
|
134
|
+
return t(this, c);
|
|
173
135
|
}
|
|
174
136
|
get size() {
|
|
175
|
-
return
|
|
137
|
+
return t(this, u);
|
|
176
138
|
}
|
|
177
|
-
set size(
|
|
178
|
-
const
|
|
179
|
-
|
|
180
|
-
return;
|
|
181
|
-
__privateMethod(this, _shiftOriginIfNecessary, shiftOriginIfNecessary_fn).call(this);
|
|
182
|
-
this.refreshFrame();
|
|
139
|
+
set size(s) {
|
|
140
|
+
const i = Math.min(s != null && Ct(s) || 1, t(this, X));
|
|
141
|
+
t(this, u) !== e(this, u, i) && (n(this, J, ft).call(this), this.refreshFrame());
|
|
183
142
|
}
|
|
184
143
|
get timeslice() {
|
|
185
|
-
return
|
|
144
|
+
return t(this, E);
|
|
186
145
|
}
|
|
187
|
-
set timeslice(
|
|
188
|
-
if (
|
|
146
|
+
set timeslice(s) {
|
|
147
|
+
if (s === t(this, E) || s == null && t(this, E) === lt)
|
|
189
148
|
return;
|
|
190
|
-
const { from, to, span, offsets } =
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
if (selectionStartTimestamp === __privateGet(this, _selectionStartTimestamp) || selectionEndTimestamp === __privateGet(this, _selectionEndTimestamp)) {
|
|
198
|
-
__privateSet(this, _selectionStartTimestamp, selectionStartTimestamp);
|
|
199
|
-
__privateSet(this, _selectionEndTimestamp, selectionEndTimestamp);
|
|
200
|
-
} else
|
|
201
|
-
__privateSet(this, _selectionStartTimestamp, __privateSet(this, _selectionEndTimestamp, void 0));
|
|
202
|
-
this.reslice();
|
|
203
|
-
__privateSet(this, _maxFrameSize, downsizeTimeFrame(12, this.numberOfBlocks));
|
|
204
|
-
__privateSet(this, _size, downsizeTimeFrame(__privateGet(this, _size), this.numberOfBlocks));
|
|
205
|
-
this.shiftFrameToTimestamp(__privateGet(this, _cursorTimestamp));
|
|
206
|
-
}
|
|
207
|
-
set trackCurrentDay(bool) {
|
|
208
|
-
if (bool === Boolean(bool)) {
|
|
209
|
-
if (bool && !__privateGet(this, _unwatchCurrentDay)) {
|
|
210
|
-
__privateSet(this, _unwatchCurrentDay, __privateGet(this, _today).watch(this.refreshFrame.bind(this, true)));
|
|
211
|
-
} else if (!bool && __privateGet(this, _unwatchCurrentDay)) {
|
|
212
|
-
__privateGet(this, _unwatchCurrentDay).call(this);
|
|
213
|
-
__privateSet(this, _unwatchCurrentDay, void 0);
|
|
214
|
-
}
|
|
215
|
-
} else if (bool == void 0)
|
|
216
|
-
this.trackCurrentDay = false;
|
|
149
|
+
const { from: i, to: h, span: o, offsets: a } = s;
|
|
150
|
+
e(this, E, s), e(this, Y, i - a.from), e(this, j, h - a.to), e(this, q, o);
|
|
151
|
+
const d = t(this, l) === void 0 ? t(this, l) : Math.max(t(this, l), i), f = t(this, c) === void 0 ? t(this, c) : Math.min(t(this, c), h);
|
|
152
|
+
d === t(this, l) || f === t(this, c) ? (e(this, l, d), e(this, c, f)) : e(this, l, e(this, c, void 0)), this.reslice(), e(this, X, ct(12, this.numberOfBlocks)), e(this, u, ct(t(this, u), this.numberOfBlocks)), this.shiftFrameToTimestamp(t(this, A));
|
|
153
|
+
}
|
|
154
|
+
set trackCurrentDay(s) {
|
|
155
|
+
s === !!s ? s && !t(this, R) ? e(this, R, t(this, b).watch(this.refreshFrame.bind(this, !0))) : !s && t(this, R) && (t(this, R).call(this), e(this, R, void 0)) : s == null && (this.trackCurrentDay = !1);
|
|
217
156
|
}
|
|
218
157
|
get units() {
|
|
219
|
-
return
|
|
158
|
+
return t(this, G);
|
|
220
159
|
}
|
|
221
160
|
initialize() {
|
|
222
|
-
this.withCurrentDayTimestamp(
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
const
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
if (__privateGet(this, _cursorBlockIndex) >= 0)
|
|
238
|
-
return this.refreshFrame();
|
|
239
|
-
__privateSet(this, _cursorBlockIndex, __privateGet(this, _size) - 1);
|
|
240
|
-
return this.shiftFrameByOffset(-1, SHIFT_FRAME);
|
|
241
|
-
}
|
|
242
|
-
if (clampedNextCursorOffset < nextCursorOffset) {
|
|
243
|
-
__privateSet(this, _cursorOffset, nextCursorOffset - clampedNextCursorOffset - 1);
|
|
244
|
-
if (++__privateWrapper(this, _cursorBlockIndex)._ < __privateGet(this, _size))
|
|
245
|
-
return this.refreshFrame();
|
|
246
|
-
__privateSet(this, _cursorBlockIndex, 0);
|
|
247
|
-
return this.shiftFrameByOffset(1, SHIFT_FRAME);
|
|
248
|
-
}
|
|
249
|
-
__privateSet(this, _cursorBlockStartIndex, startIndex);
|
|
250
|
-
__privateSet(this, _cursorBlockEndIndex, endIndex);
|
|
251
|
-
__privateSet(this, _cursorTimestamp, __privateMethod(this, _getContainedTimestamp, getContainedTimestamp_fn).call(this, this.getTimestampAtIndex(nextCursorOffset), false)[0]);
|
|
252
|
-
__privateSet(this, _cursorOffset, this.getCursorBlockOriginTimestampOffset(__privateGet(this, _cursorTimestamp)));
|
|
253
|
-
__privateSet(this, _cursorIndex, startIndex + __privateGet(this, _cursorOffset));
|
|
254
|
-
const firstBlock = __privateGet(this, _cursorBlockIndex) > 0 ? this.getFrameBlockAtIndex(0) : cursorBlock;
|
|
255
|
-
const lastBlock = __privateGet(this, _cursorBlockIndex) < __privateGet(this, _size) - 1 ? this.getFrameBlockAtIndex(__privateGet(this, _size) - 1) : cursorBlock;
|
|
256
|
-
__privateSet(this, _cursorStartIndex, firstBlock.inner.from);
|
|
257
|
-
__privateSet(this, _cursorEndIndex, lastBlock.inner.to);
|
|
258
|
-
__privateSet(this, _numberOfUnits, lastBlock.outer.to);
|
|
161
|
+
this.withCurrentDayTimestamp(t(this, b).timestamp), this.timeslice = lt;
|
|
162
|
+
}
|
|
163
|
+
refreshFrame(s = !1) {
|
|
164
|
+
var i;
|
|
165
|
+
if (t(this, _).length = 0, !(t(this, F) === void 0 || s)) {
|
|
166
|
+
const h = this.getFrameBlockAtIndex(t(this, g)), { from: o, to: a } = h.inner, [d] = n(this, C, D).call(this, this.getTimestampAtIndex(o + t(this, F)), !1);
|
|
167
|
+
e(this, F, this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(o), d));
|
|
168
|
+
const f = o + t(this, F), I = ot(o, f, a);
|
|
169
|
+
if (I > f)
|
|
170
|
+
return e(this, F, this.getUnitsForFrameBlockAtIndex(--M(this, g)._) + f - I), t(this, g) >= 0 ? this.refreshFrame() : (e(this, g, t(this, u) - 1), this.shiftFrameByOffset(-1, nt));
|
|
171
|
+
if (I < f)
|
|
172
|
+
return e(this, F, f - I - 1), ++M(this, g)._ < t(this, u) ? this.refreshFrame() : (e(this, g, 0), this.shiftFrameByOffset(1, nt));
|
|
173
|
+
e(this, z, o), e(this, K, a), e(this, A, n(this, C, D).call(this, this.getTimestampAtIndex(f), !1)[0]), e(this, F, this.getCursorBlockOriginTimestampOffset(t(this, A))), e(this, T, o + t(this, F));
|
|
174
|
+
const P = t(this, g) > 0 ? this.getFrameBlockAtIndex(0) : h, W = t(this, g) < t(this, u) - 1 ? this.getFrameBlockAtIndex(t(this, u) - 1) : h;
|
|
175
|
+
e(this, $, P.inner.from), e(this, V, W.inner.to), e(this, G, W.outer.to);
|
|
259
176
|
}
|
|
260
|
-
this.withCurrentDayTimestamp(
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
case SHIFT_FRAME:
|
|
177
|
+
this.withCurrentDayTimestamp(t(this, b).timestamp), (i = t(this, L)) == null || i.call(this);
|
|
178
|
+
}
|
|
179
|
+
shiftFrameByOffset(s, i) {
|
|
180
|
+
if (s && gt(s))
|
|
181
|
+
switch (i) {
|
|
182
|
+
case Dt:
|
|
183
|
+
return n(this, w, H).call(this, s);
|
|
184
|
+
case yt:
|
|
185
|
+
return n(this, w, H).call(this, s * 12);
|
|
186
|
+
case nt:
|
|
271
187
|
default:
|
|
272
|
-
return
|
|
188
|
+
return n(this, w, H).call(this, s * t(this, u));
|
|
273
189
|
}
|
|
274
|
-
}
|
|
275
190
|
}
|
|
276
|
-
shiftFrameCursor(
|
|
277
|
-
switch (
|
|
278
|
-
case
|
|
279
|
-
return
|
|
280
|
-
case
|
|
281
|
-
return
|
|
282
|
-
case
|
|
283
|
-
return
|
|
284
|
-
case
|
|
285
|
-
return
|
|
286
|
-
case
|
|
287
|
-
return
|
|
288
|
-
case
|
|
289
|
-
return
|
|
290
|
-
case
|
|
291
|
-
return
|
|
292
|
-
case
|
|
293
|
-
return
|
|
294
|
-
case
|
|
295
|
-
return
|
|
296
|
-
case
|
|
297
|
-
return
|
|
298
|
-
}
|
|
299
|
-
if (nextCursorPosition < 0)
|
|
300
|
-
return;
|
|
301
|
-
if (nextCursorPosition >= __privateGet(this, _cursorStartIndex) && nextCursorPosition <= __privateGet(this, _cursorEndIndex)) {
|
|
302
|
-
return __privateMethod(this, _shiftFrameCursorByOffset, shiftFrameCursorByOffset_fn).call(this, nextCursorPosition - __privateGet(this, _cursorIndex));
|
|
191
|
+
shiftFrameCursor(s) {
|
|
192
|
+
switch (s) {
|
|
193
|
+
case Wt:
|
|
194
|
+
return n(this, p, O).call(this, -1);
|
|
195
|
+
case bt:
|
|
196
|
+
return n(this, p, O).call(this, 1);
|
|
197
|
+
case Nt:
|
|
198
|
+
return n(this, p, O).call(this, -this.rowspan);
|
|
199
|
+
case Lt:
|
|
200
|
+
return n(this, p, O).call(this, this.rowspan);
|
|
201
|
+
case vt:
|
|
202
|
+
return n(this, p, O).call(this, t(this, z) - t(this, T));
|
|
203
|
+
case Ut:
|
|
204
|
+
return n(this, p, O).call(this, t(this, K) - t(this, T));
|
|
205
|
+
case xt:
|
|
206
|
+
return n(this, p, O).call(this, -(t(this, T) % this.rowspan));
|
|
207
|
+
case wt:
|
|
208
|
+
return n(this, p, O).call(this, this.rowspan - (t(this, T) % this.rowspan + 1));
|
|
209
|
+
case _t:
|
|
210
|
+
return n(this, p, O).call(this, -this.getUnitsForFrameBlockAtIndex((t(this, g) ?? 0) - 1));
|
|
211
|
+
case At:
|
|
212
|
+
return n(this, p, O).call(this, this.getUnitsForFrameBlockAtIndex(t(this, g) ?? 0));
|
|
303
213
|
}
|
|
214
|
+
if (!(s < 0) && s >= t(this, $) && s <= t(this, V))
|
|
215
|
+
return n(this, p, O).call(this, s - t(this, T));
|
|
304
216
|
}
|
|
305
|
-
shiftFrameToTimestamp(
|
|
306
|
-
const
|
|
307
|
-
|
|
308
|
-
this.reoriginate();
|
|
309
|
-
[__privateWrapper(this, _fromBlockOffsetFromOrigin)._, __privateWrapper(this, _toBlockOffsetFromOrigin)._] = this.getEdgeBlockOffsetsFromOrigin();
|
|
310
|
-
__privateMethod(this, _shiftOriginIfNecessary, shiftOriginIfNecessary_fn).call(this);
|
|
311
|
-
this.refreshFrame();
|
|
312
|
-
__privateMethod(this, _shiftFrameCursorByOffset, shiftFrameCursorByOffset_fn).call(this, this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(__privateGet(this, _cursorIndex)), containedTimestamp));
|
|
217
|
+
shiftFrameToTimestamp(s) {
|
|
218
|
+
const i = n(this, C, D).call(this, s, !1)[0];
|
|
219
|
+
e(this, F, this.getCursorBlockOriginTimestampOffset(e(this, A, this.originTimestamp = i))), this.reoriginate(), [M(this, y)._, M(this, S)._] = this.getEdgeBlockOffsetsFromOrigin(), n(this, J, ft).call(this), this.refreshFrame(), n(this, p, O).call(this, this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(t(this, T)), i));
|
|
313
220
|
}
|
|
314
221
|
clearSelection() {
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
let invertedComparison = false;
|
|
323
|
-
switch (selectionEdge) {
|
|
324
|
-
case SELECTION_FROM:
|
|
325
|
-
selectionEdgeTimestamp = __privateGet(this, _selectionStartTimestamp);
|
|
222
|
+
this.blankSelection || (e(this, l, e(this, c, void 0)), this.refreshFrame(!0));
|
|
223
|
+
}
|
|
224
|
+
getCursorOrderForTimeRelativeToSelectionEdge(s, i = Z) {
|
|
225
|
+
let h, o = !1;
|
|
226
|
+
switch (i) {
|
|
227
|
+
case Z:
|
|
228
|
+
h = t(this, l);
|
|
326
229
|
break;
|
|
327
|
-
case
|
|
328
|
-
|
|
329
|
-
invertedComparison = true;
|
|
230
|
+
case at:
|
|
231
|
+
h = t(this, c), o = !0;
|
|
330
232
|
break;
|
|
331
233
|
}
|
|
332
|
-
if (
|
|
234
|
+
if (h === void 0)
|
|
333
235
|
return 0;
|
|
334
|
-
const
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
if (selection === SELECTION_FARTHEST) {
|
|
343
|
-
if (timestamp <= currentStart)
|
|
344
|
-
selection = SELECTION_TO;
|
|
345
|
-
else if (timestamp >= currentEnd)
|
|
346
|
-
selection = SELECTION_FROM;
|
|
347
|
-
}
|
|
348
|
-
switch (selection) {
|
|
349
|
-
case SELECTION_FROM:
|
|
350
|
-
__privateSet(this, _selectionStartTimestamp, timestamp);
|
|
351
|
-
__privateSet(this, _selectionEndTimestamp, Math.max(__privateGet(this, _selectionStartTimestamp), currentEnd ?? timestamp));
|
|
236
|
+
const a = n(this, C, D).call(this, s, !1).reduce((f, I) => f + I, 0), d = this.getUnitsOffsetForTimestamp(h, a) * (o ? -1 : 1);
|
|
237
|
+
return d && (d > 0 ? 1 : -1);
|
|
238
|
+
}
|
|
239
|
+
updateSelection(s, i) {
|
|
240
|
+
const h = t(this, l), o = t(this, c), a = n(this, C, D).call(this, s, !1).reduce((d, f) => d + f, 0);
|
|
241
|
+
switch (i === dt && (a <= h ? i = at : a >= o && (i = Z)), i) {
|
|
242
|
+
case Z:
|
|
243
|
+
e(this, l, a), e(this, c, Math.max(t(this, l), o ?? a));
|
|
352
244
|
break;
|
|
353
|
-
case
|
|
354
|
-
|
|
355
|
-
__privateSet(this, _selectionStartTimestamp, Math.min(currentStart ?? timestamp, __privateGet(this, _selectionEndTimestamp)));
|
|
245
|
+
case at:
|
|
246
|
+
e(this, c, a), e(this, l, Math.min(h ?? a, t(this, c)));
|
|
356
247
|
break;
|
|
357
|
-
case
|
|
358
|
-
case
|
|
359
|
-
let
|
|
360
|
-
|
|
361
|
-
if (selection === SELECTION_NEAREST) {
|
|
362
|
-
[startDistance, endDistance] = [endDistance, startDistance];
|
|
363
|
-
}
|
|
364
|
-
if (startDistance > endDistance) {
|
|
365
|
-
__privateSet(this, _selectionStartTimestamp, timestamp);
|
|
366
|
-
} else
|
|
367
|
-
__privateSet(this, _selectionEndTimestamp, timestamp);
|
|
248
|
+
case dt:
|
|
249
|
+
case ut: {
|
|
250
|
+
let d = Math.abs(a - (h ?? a)), f = Math.abs(a - (o ?? a));
|
|
251
|
+
i === ut && ([d, f] = [f, d]), d > f ? e(this, l, a) : e(this, c, a);
|
|
368
252
|
break;
|
|
369
253
|
}
|
|
370
|
-
case
|
|
254
|
+
case Mt:
|
|
371
255
|
default:
|
|
372
|
-
|
|
256
|
+
e(this, l, e(this, c, a));
|
|
373
257
|
break;
|
|
374
258
|
}
|
|
375
|
-
|
|
376
|
-
this.refreshFrame(true);
|
|
377
|
-
}
|
|
259
|
+
(t(this, l) !== h || t(this, c) !== o) && this.refreshFrame(!0);
|
|
378
260
|
}
|
|
379
261
|
};
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
if (isNaN(timestamp))
|
|
417
|
-
return __privateMethod(this, _getContainedTimestamp, getContainedTimestamp_fn).call(this, Date.now());
|
|
418
|
-
const { from, to } = __privateGet(this, _timeslice);
|
|
419
|
-
const clampedTimestamp = clamp(from, timestamp, to);
|
|
420
|
-
if (clampedTimestamp !== timestamp && withMidRangeFallback) {
|
|
421
|
-
timestamp = mid(from, to);
|
|
422
|
-
if (isNaN(timestamp) || isInfinite(timestamp)) {
|
|
423
|
-
timestamp = clampedTimestamp;
|
|
424
|
-
}
|
|
425
|
-
} else
|
|
426
|
-
timestamp = clampedTimestamp;
|
|
427
|
-
const offset = computeTimestampOffset(timestamp);
|
|
428
|
-
return [timestamp - offset, offset];
|
|
429
|
-
};
|
|
430
|
-
_getFrameBlockAtIndex = new WeakSet();
|
|
431
|
-
getFrameBlockAtIndex_fn = function(index) {
|
|
432
|
-
if (!(isBitSafeInteger(index) && index >= 0 && index < __privateGet(this, _size)))
|
|
433
|
-
return;
|
|
434
|
-
if (!__privateGet(this, _frameBlocksCached)[index]) {
|
|
435
|
-
const block = this.getFrameBlockAtIndex(index);
|
|
436
|
-
if (!block)
|
|
437
|
-
return void 0;
|
|
438
|
-
const dateString = `${block.year}-${`0${1 + block.month}`.slice(-2)}-01`;
|
|
439
|
-
const [label, datetime] = this.getFormattedDataForFrameBlock(new Date(dateString).setHours(12));
|
|
440
|
-
const blockStartIndex = block.outer.from;
|
|
441
|
-
__privateGet(this, _frameBlocksCached)[index] = indexed(
|
|
442
|
-
{
|
|
443
|
-
datetime: enumerable(datetime),
|
|
444
|
-
label: enumerable(label),
|
|
445
|
-
length: enumerable(Math.ceil(block.outer.units / this.rowspan)),
|
|
446
|
-
month: enumerable(block.month),
|
|
447
|
-
year: enumerable(block.year)
|
|
448
|
-
},
|
|
449
|
-
(index2) => {
|
|
450
|
-
const indexOffset = index2 * this.rowspan;
|
|
451
|
-
return indexed(this.rowspan, (index3) => {
|
|
452
|
-
const [timestamp, flags] = block[index3 + indexOffset];
|
|
453
|
-
const [label2, datetime2] = this.getFormattedDataForBlockCell(new Date(timestamp).setHours(12));
|
|
454
|
-
return struct({
|
|
455
|
-
datetime: enumerable(datetime2),
|
|
456
|
-
flags: enumerable(createFlagsRecord(flags)),
|
|
457
|
-
index: enumerable(blockStartIndex + index3 + indexOffset),
|
|
458
|
-
label: enumerable(label2),
|
|
459
|
-
timestamp: enumerable(timestamp)
|
|
262
|
+
U = new WeakMap(), g = new WeakMap(), z = new WeakMap(), K = new WeakMap(), $ = new WeakMap(), V = new WeakMap(), T = new WeakMap(), F = new WeakMap(), A = new WeakMap(), v = new WeakMap(), L = new WeakMap(), N = new WeakMap(), _ = new WeakMap(), B = new WeakMap(), X = new WeakMap(), l = new WeakMap(), c = new WeakMap(), u = new WeakMap(), E = new WeakMap(), b = new WeakMap(), R = new WeakMap(), Y = new WeakMap(), j = new WeakMap(), y = new WeakMap(), S = new WeakMap(), q = new WeakMap(), G = new WeakMap(), st = new WeakMap(), it = new WeakMap(), et = new WeakSet(), Ot = function(s) {
|
|
263
|
+
return ot(t(this, y), s || 0, t(this, S) - t(this, u) + 1);
|
|
264
|
+
}, C = new WeakSet(), D = function(s, i = !0) {
|
|
265
|
+
let h = new Date(s).getTime();
|
|
266
|
+
if (isNaN(h))
|
|
267
|
+
return n(this, C, D).call(this, Date.now());
|
|
268
|
+
const { from: o, to: a } = t(this, E), d = ot(o, h, a);
|
|
269
|
+
d !== h && i ? (h = Kt(o, a), (isNaN(h) || mt(h)) && (h = d)) : h = d;
|
|
270
|
+
const f = Et(h);
|
|
271
|
+
return [h - f, f];
|
|
272
|
+
}, rt = new WeakSet(), Ft = function(s) {
|
|
273
|
+
if (gt(s) && s >= 0 && s < t(this, u)) {
|
|
274
|
+
if (!t(this, _)[s]) {
|
|
275
|
+
const i = this.getFrameBlockAtIndex(s);
|
|
276
|
+
if (!i)
|
|
277
|
+
return;
|
|
278
|
+
const h = `${i.year}-${`0${1 + i.month}`.slice(-2)}-01`, [o, a] = this.getFormattedDataForFrameBlock(new Date(h).setHours(12)), d = i.outer.from;
|
|
279
|
+
t(this, _)[s] = tt(
|
|
280
|
+
{
|
|
281
|
+
datetime: k(a),
|
|
282
|
+
label: k(o),
|
|
283
|
+
length: k(Math.ceil(i.outer.units / this.rowspan)),
|
|
284
|
+
month: k(i.month),
|
|
285
|
+
year: k(i.year)
|
|
286
|
+
},
|
|
287
|
+
(f) => {
|
|
288
|
+
const I = f * this.rowspan;
|
|
289
|
+
return tt(this.rowspan, (P) => {
|
|
290
|
+
const [W, Tt] = i[P + I], [kt, It] = this.getFormattedDataForBlockCell(new Date(W).setHours(12));
|
|
291
|
+
return $t({
|
|
292
|
+
datetime: k(It),
|
|
293
|
+
flags: k(Ht(Tt)),
|
|
294
|
+
index: k(d + P + I),
|
|
295
|
+
label: k(kt),
|
|
296
|
+
timestamp: k(W)
|
|
297
|
+
});
|
|
460
298
|
});
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
this.
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
const clampedOffset = __privateMethod(this, _getClampedFrameOffset, getClampedFrameOffset_fn).call(this, offset);
|
|
477
|
-
if (clampedOffset) {
|
|
478
|
-
this.shiftOrigin(clampedOffset);
|
|
479
|
-
__privateSet(this, _fromBlockOffsetFromOrigin, __privateGet(this, _fromBlockOffsetFromOrigin) - clampedOffset);
|
|
480
|
-
__privateSet(this, _toBlockOffsetFromOrigin, __privateGet(this, _toBlockOffsetFromOrigin) - clampedOffset);
|
|
481
|
-
__privateSet(this, _cursorBlockIndex, mod(__privateGet(this, _cursorBlockIndex) - clampedOffset, __privateGet(this, _size)));
|
|
482
|
-
this.refreshFrame();
|
|
483
|
-
}
|
|
484
|
-
};
|
|
485
|
-
_shiftOriginIfNecessary = new WeakSet();
|
|
486
|
-
shiftOriginIfNecessary_fn = function() {
|
|
487
|
-
const size_1 = __privateGet(this, _size) - 1;
|
|
488
|
-
const offset = Math.min(size_1 - this.origin % __privateGet(this, _size), __privateGet(this, _toBlockOffsetFromOrigin)) - size_1;
|
|
489
|
-
if (offset)
|
|
490
|
-
__privateMethod(this, _shiftOrigin, shiftOrigin_fn).call(this, offset);
|
|
491
|
-
};
|
|
492
|
-
__privateAdd(_TimeFrame, _DEFAULT_LOCALE, "en-US");
|
|
493
|
-
let TimeFrame = _TimeFrame;
|
|
299
|
+
}
|
|
300
|
+
);
|
|
301
|
+
}
|
|
302
|
+
return t(this, _)[s];
|
|
303
|
+
}
|
|
304
|
+
}, p = new WeakSet(), O = function(s) {
|
|
305
|
+
s !== 0 && (e(this, F, t(this, F) + s), this.refreshFrame());
|
|
306
|
+
}, w = new WeakSet(), H = function(s) {
|
|
307
|
+
const i = n(this, et, Ot).call(this, s);
|
|
308
|
+
i && (this.shiftOrigin(i), e(this, y, t(this, y) - i), e(this, S, t(this, S) - i), e(this, g, Vt(t(this, g) - i, t(this, u))), this.refreshFrame());
|
|
309
|
+
}, J = new WeakSet(), ft = function() {
|
|
310
|
+
const s = t(this, u) - 1, i = Math.min(s - this.origin % t(this, u), t(this, S)) - s;
|
|
311
|
+
i && n(this, w, H).call(this, i);
|
|
312
|
+
}, r(x, U, "en-US");
|
|
313
|
+
let pt = x;
|
|
494
314
|
export {
|
|
495
|
-
|
|
315
|
+
pt as default
|
|
496
316
|
};
|