@adyen/adyen-platform-experience-web 0.1.1 → 1.0.0-beta
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/README.md +13 -13
- package/dist/AmountSkeleton.css +23 -0
- package/dist/BalanceAccountSelector.css +4 -0
- package/dist/BaseButton.css +14 -0
- package/dist/BaseList.css +5 -0
- package/dist/Button.css +114 -0
- package/dist/ButtonActions-eb064f69.mjs +46 -0
- package/dist/ButtonActions.css +28 -0
- package/dist/CalendarGrid.css +113 -0
- package/dist/CopyText.css +18 -0
- package/dist/DatePicker.css +64 -0
- package/dist/ErrorMessageDisplay.css +20 -0
- package/dist/ErrorPanel.css +15 -0
- package/dist/ExpandableCard.css +71 -0
- package/dist/FilterBar.css +40 -0
- package/dist/FilterButton.css +48 -0
- package/dist/Img.css +7 -0
- package/dist/InputBase.css +175 -0
- package/dist/Modal.css +110 -0
- package/dist/Pagination.css +25 -0
- package/dist/Popover.css +127 -0
- package/dist/PopoverDismissButton.css +12 -0
- package/dist/RangeSelection.css +26 -0
- package/dist/Select.css +149 -0
- package/dist/SkeletonBody.css +154 -0
- package/dist/Spinner.css +50 -0
- package/dist/SummaryItem.css +37 -0
- package/dist/Tag-6d02fd64.mjs +32 -0
- package/dist/Tag.css +34 -0
- package/dist/Tooltip.css +7 -0
- package/dist/TotalsCard.css +14 -0
- package/dist/TransactionDetails.css +74 -0
- package/dist/TransactionsDisplay.css +4 -0
- package/dist/TransactionsOverview.css +29 -0
- package/dist/TransactionsOverviewContainer.css +3 -0
- package/dist/TransactionsTable.css +18 -0
- package/dist/Typography-11b95870.mjs +68 -0
- package/dist/Typography.css +57 -0
- package/dist/cjs/ModalContent-f4990141.js +10 -0
- package/dist/cjs/ModalContent-f4990141.js.map +1 -0
- package/dist/cjs/index-8c098f20.js +10401 -0
- package/dist/cjs/index-8c098f20.js.map +1 -0
- package/dist/cjs/index.css +1709 -0
- package/dist/cjs/index.js +35 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/compat.module-a4d537ff.mjs +237 -0
- package/dist/en-US-1daadfc1.mjs +371 -0
- package/dist/es/components/external/BaseElement.js +89 -49
- package/dist/es/components/external/EventEmitter.js +28 -17
- package/dist/es/components/external/FormElement.js +78 -0
- package/dist/es/components/external/TransactionDetails/TransactionDetails.js +20 -15
- package/dist/es/components/external/TransactionDetails/components/TransactionData.js +43 -42
- package/dist/es/components/external/TransactionDetails/components/TransactionDataSkeleton.js +13 -10
- package/dist/es/components/external/TransactionDetails/components/TransactionDetails.js +39 -28
- package/dist/es/components/external/TransactionDetails/index.js +4 -0
- package/dist/es/components/external/TransactionsOverview/TransactionsOverviewElement.js +35 -0
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +12 -0
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/constants.js +8 -0
- package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/BalanceAccountSelector.js +31 -0
- package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/index.js +6 -0
- package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.js +25 -0
- package/dist/es/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.js +41 -0
- package/dist/es/components/external/TransactionsOverview/components/Balances/Balances.js +56 -0
- package/dist/es/components/external/TransactionsOverview/components/Balances/constants.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/Category/Category.js +12 -0
- package/dist/es/components/external/TransactionsOverview/components/ModalContent.js +12 -0
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +33 -0
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/index.js +15 -0
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.js +27 -0
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/index.js +13 -0
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.js +31 -0
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.js +11 -0
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +60 -0
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +22 -0
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/constants.js +16 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.js +21 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.js +61 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +50 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +66 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/constants.js +6 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.js +91 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/constants.js +6 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +179 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/constants.js +8 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.js +52 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/constants.js +6 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.js +71 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +112 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/constants.js +12 -0
- package/dist/es/components/external/{Transactions → TransactionsOverview}/components/utils.js +13 -7
- package/dist/es/components/external/TransactionsOverview/hooks/useDefaultTransactionsOverviewFilterParams.js +41 -0
- package/dist/es/components/external/TransactionsOverview/hooks/useMaxWidths.js +16 -0
- package/dist/es/components/external/TransactionsOverview/hooks/useMediaQuery.js +37 -0
- package/dist/es/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.js +33 -0
- package/dist/es/components/external/TransactionsOverview/index.js +6 -0
- package/dist/es/components/external/UIElement.js +51 -39
- package/dist/es/components/external/index.js +8 -0
- package/dist/es/components/index.js +11 -0
- package/dist/es/components/internal/BaseButton/BaseButton.js +22 -13
- package/dist/es/components/internal/BaseButton/constants.js +2 -2
- package/dist/es/components/internal/BaseButton/index.js +4 -0
- package/dist/es/components/internal/BaseList/BaseList.js +8 -5
- package/dist/es/components/internal/BaseList/constants.js +2 -2
- package/dist/es/components/internal/Button/Button.js +41 -39
- package/dist/es/components/internal/Button/ButtonActions/ButtonActions.js +8 -27
- package/dist/es/components/internal/Button/constants.js +16 -9
- package/dist/es/components/internal/Button/hooks/useButton.js +16 -12
- package/dist/es/components/internal/Button/index.js +4 -0
- package/dist/es/components/internal/Calendar/Calendar.js +21 -20
- package/dist/es/components/internal/Calendar/calendar/constants.js +70 -35
- package/dist/es/components/internal/Calendar/calendar/facade/Calendar.js +554 -317
- package/dist/es/components/internal/Calendar/calendar/facade/index.js +46 -37
- package/dist/es/components/internal/Calendar/calendar/index.js +4 -0
- package/dist/es/components/internal/Calendar/calendar/shared/indexed/index.js +46 -34
- package/dist/es/components/internal/Calendar/calendar/timeframe/common/flags.js +5 -31
- package/dist/es/components/internal/Calendar/calendar/timeframe/common/utils.js +16 -14
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +221 -122
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +418 -238
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/YearFrame.js +197 -0
- package/dist/es/components/internal/Calendar/calendar/timeframe/index.js +8 -0
- package/dist/es/components/internal/Calendar/calendar/timerange/factory.js +63 -40
- package/dist/es/components/internal/Calendar/calendar/timerange/factory.test.js +139 -0
- package/dist/es/components/internal/Calendar/calendar/timerange/index.js +4 -0
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/index.js +14 -0
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastMonth.js +3 -3
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastMonth.test.js +69 -0
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +27 -16
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.test.js +69 -0
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastWeek.js +3 -3
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastWeek.test.js +108 -0
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.js +23 -14
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js +29 -21
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/testing/fixtures.js +15 -0
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/testing/helpers.js +19 -0
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisMonth.js +3 -3
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisMonth.test.js +46 -0
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisWeek.js +3 -3
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisWeek.test.js +85 -0
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.js +13 -9
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.test.js +49 -0
- package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +83 -49
- package/dist/es/components/internal/Calendar/calendar/timeslice/TimeSlice.js +61 -38
- package/dist/es/components/internal/Calendar/calendar/timeslice/index.js +21 -17
- package/dist/es/components/internal/Calendar/calendar/utils.js +22 -15
- package/dist/es/components/internal/Calendar/clock/clock.js +41 -23
- package/dist/es/components/internal/Calendar/clock/clock.test.js +43 -0
- package/dist/es/components/internal/Calendar/clock/index.js +7 -0
- package/dist/es/components/internal/Calendar/clock/testing/fixtures.js +60 -0
- package/dist/es/components/internal/Calendar/clock/today.js +57 -37
- package/dist/es/components/internal/Calendar/clock/today.test.js +98 -0
- package/dist/es/components/internal/Calendar/components/CalendarControls/CalendarControls.js +12 -7
- package/dist/es/components/internal/Calendar/components/CalendarControls/index.js +4 -0
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGrid.js +29 -27
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDate.js +58 -33
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +40 -30
- package/dist/es/components/internal/Calendar/components/CalendarGrid/index.js +4 -0
- package/dist/es/components/internal/Calendar/components/CalendarGrid/utils.js +49 -44
- package/dist/es/components/internal/Calendar/hooks/useCalendar.js +115 -84
- package/dist/es/components/internal/Calendar/hooks/useCalendarControlsRendering.js +40 -35
- package/dist/es/components/internal/Calendar/hooks/useTimezone.js +45 -23
- package/dist/es/components/internal/Calendar/index.js +4 -0
- package/dist/es/components/internal/CopyText/CopyText.js +41 -0
- package/dist/es/components/internal/DataGrid/DataGrid.js +10 -84
- package/dist/es/components/internal/DataGrid/DataGridCell.js +4 -4
- package/dist/es/components/internal/DataGrid/components/InteractiveBody.js +8 -31
- package/dist/es/components/internal/DataGrid/components/SkeletonBody.js +16 -14
- package/dist/es/components/internal/DataGrid/components/TableBody.js +26 -9
- package/dist/es/components/internal/DataGrid/components/TableCells.js +25 -17
- package/dist/es/components/internal/DataGrid/hooks/useInteractiveDataGrid.js +5 -76
- package/dist/es/components/internal/DataGrid/index.js +4 -0
- package/dist/es/components/internal/DataGrid/tests/DataGrid.test.js +190 -0
- package/dist/es/components/internal/DatePicker/DatePicker.js +62 -45
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.js +46 -19
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/index.js +7 -0
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +85 -56
- package/dist/es/components/internal/DatePicker/index.js +4 -0
- package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +53 -40
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +74 -51
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.test.js +45 -0
- package/dist/es/components/internal/ExpandableCard/constants.js +20 -11
- package/dist/es/components/internal/FilterBar/FilterBar.js +46 -11
- package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +17 -15
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +68 -29
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +68 -60
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/constants.js +4 -0
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +155 -99
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/index.js +4 -0
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.js +10 -107
- package/dist/es/components/internal/FilterBar/filters/DateFilter/index.js +4 -0
- package/dist/es/components/internal/FilterBar/filters/TextFilter/TextFilter.js +8 -0
- package/dist/es/components/internal/FilterBar/filters/TextFilter/index.js +4 -0
- package/dist/es/components/internal/FilterBar/index.js +4 -0
- package/dist/es/components/internal/FormFields/InputBase.js +67 -54
- package/dist/es/components/internal/FormFields/InputText.js +6 -6
- package/dist/es/components/internal/FormFields/Select/Select.js +246 -182
- package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +73 -69
- package/dist/es/components/internal/FormFields/Select/components/SelectList.js +71 -49
- package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +41 -37
- package/dist/es/components/internal/FormFields/Select/constants.js +49 -27
- package/dist/es/components/internal/FormFields/Select/hooks/useSelect.js +35 -27
- package/dist/es/components/internal/FormFields/Select/index.js +4 -0
- package/dist/es/components/internal/FormFields/index.js +18 -0
- package/dist/es/components/internal/FormFields/utils.js +4 -0
- package/dist/es/components/internal/Image/Image.js +10 -10
- package/dist/es/components/internal/Img/Img.js +33 -19
- package/dist/es/components/internal/Img/index.js +4 -0
- package/dist/es/components/internal/Modal/Modal.js +79 -66
- package/dist/es/components/internal/Modal/index.js +4 -0
- package/dist/es/components/internal/Pagination/Pagination.js +61 -45
- package/dist/es/components/internal/Pagination/components/LimitSelect.js +1 -0
- package/dist/es/components/internal/Pagination/constants.js +6 -4
- package/dist/es/components/internal/Pagination/hooks/index.js +6 -0
- package/dist/es/components/internal/Pagination/hooks/useCursorPaginatedRecords.js +8 -7
- package/dist/es/components/internal/Pagination/hooks/useCursorPagination.js +30 -18
- package/dist/es/components/internal/Pagination/hooks/useOffsetPaginatedRecords.js +10 -0
- package/dist/es/components/internal/Pagination/hooks/useOffsetPagination.js +21 -14
- package/dist/es/components/internal/Pagination/hooks/usePageLimit.js +60 -52
- package/dist/es/components/internal/Pagination/hooks/usePaginatedRecords.js +11 -78
- package/dist/es/components/internal/Pagination/hooks/usePaginatedRecordsFilters.js +13 -12
- package/dist/es/components/internal/Pagination/hooks/usePagination.js +87 -41
- package/dist/es/components/internal/Pagination/index.js +4 -0
- package/dist/es/components/internal/Pagination/utils.js +5 -5
- package/dist/es/components/internal/Popover/Popover.js +160 -102
- package/dist/es/components/internal/Popover/Popover.test.js +119 -0
- package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.js +22 -18
- package/dist/es/components/internal/Popover/PopoverTitle/PopoverTitle.js +10 -8
- package/dist/es/components/internal/Popover/constants.js +16 -7
- package/dist/es/components/internal/Popover/utils/popoverUtil.js +51 -0
- package/dist/es/components/internal/Popover/utils/utils.js +28 -22
- package/dist/es/components/internal/SVGIcons/CheckedBox.js +5 -5
- package/dist/es/components/internal/SVGIcons/Checkmark.js +6 -6
- 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 +13 -0
- package/dist/es/components/internal/SVGIcons/Copy.js +5 -0
- package/dist/es/components/internal/SVGIcons/Filter.js +11 -0
- package/dist/es/components/internal/SVGIcons/UncheckedBox.js +5 -5
- package/dist/es/components/internal/Spinner/Spinner.js +5 -4
- package/dist/es/components/internal/Spinner/index.js +4 -0
- package/dist/es/components/internal/Tag/Tag.js +5 -19
- package/dist/es/components/internal/Tooltip/Tooltip.js +48 -0
- package/dist/es/components/internal/Tooltip/useTooltipListeners.js +31 -0
- package/dist/es/components/internal/Typography/Typography.js +7 -33
- package/dist/es/components/internal/Typography/constants.js +2 -2
- package/dist/es/components/utils/transactionResourceErrorCodes.js +17 -13
- package/dist/es/components/utils/utils.js +34 -0
- package/dist/es/constants.js +8 -0
- package/dist/es/core/Analytics/Analytics.js +63 -0
- package/dist/es/core/Analytics/EventsQueue.js +22 -0
- package/dist/es/core/Analytics/index.js +4 -0
- package/dist/es/core/Auth/AuthContext.js +7 -5
- package/dist/es/core/Auth/AuthProvider.js +24 -5
- 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 +23 -17
- package/dist/es/core/Context/useCoreContext.js +4 -4
- package/dist/es/core/Errors/AdyenPlatformExperienceError.js +21 -0
- package/dist/es/core/Errors/ErrorPanel.js +19 -0
- package/dist/es/core/Errors/constants.js +4 -2
- package/dist/es/core/Localization/Localization.js +12 -145
- package/dist/es/core/Localization/Localization.test.js +70 -0
- package/dist/es/core/Localization/amount/amount-util.js +42 -19
- package/dist/es/core/Localization/amount/amount-util.test.js +54 -0
- 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 +7 -5
- package/dist/es/core/Localization/constants/localization.js +9 -6
- package/dist/es/core/Localization/datetime/restamper/constants.js +29 -20
- package/dist/es/core/Localization/datetime/restamper/index.js +9 -0
- package/dist/es/core/Localization/datetime/restamper/restamper.js +44 -32
- package/dist/es/core/Localization/datetime/restamper/restamper.test.js +179 -0
- package/dist/es/core/Localization/datetime/restamper/testing/fixtures.js +21 -0
- package/dist/es/core/Localization/datetime/restamper/testing/helpers.js +27 -0
- package/dist/es/core/Localization/datetime/restamper/utils.js +44 -26
- package/dist/es/core/Localization/index.js +32 -0
- package/dist/es/core/Localization/localization-utils.js +7 -31
- package/dist/es/core/Localization/translations/index.js +356 -79
- package/dist/es/core/Localization/utils.js +72 -44
- package/dist/es/core/Localization/utils.test.js +215 -0
- package/dist/es/core/ProcessResponse/index.js +4 -0
- package/dist/es/core/ProcessResponse/process-response.js +40 -0
- package/dist/es/core/Services/analytics/collect-id.js +37 -0
- package/dist/es/core/Services/analytics/log-event.js +14 -0
- package/dist/es/core/Services/analytics/post-telemetry.js +22 -0
- package/dist/es/core/Services/data-set.js +1 -0
- package/dist/es/core/Services/get-dataset.js +13 -0
- package/dist/es/core/Services/requests/endpoints.js +9 -0
- package/dist/es/core/Services/requests/http.js +55 -28
- package/dist/es/core/Services/requests/utils.js +49 -34
- 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 +38 -23
- package/dist/es/core/Session/index.js +4 -0
- package/dist/es/core/Session/utils.js +5 -5
- package/dist/es/core/config.js +6 -2
- package/dist/es/core/core.js +87 -45
- package/dist/es/core/index.js +36 -0
- package/dist/es/core/utils.js +10 -8
- package/dist/es/hooks/element/useClickOutside.js +75 -18
- package/dist/es/hooks/element/useDetachedRender.js +17 -15
- package/dist/es/hooks/element/useFocusCursor.js +18 -13
- package/dist/es/hooks/element/useFocusTrap.js +90 -47
- package/dist/es/hooks/element/useIdentifierString.js +61 -0
- package/dist/es/hooks/element/usePopoverPositioner.js +5 -69
- package/dist/es/hooks/element/useUniqueIdentifier.js +16 -12
- package/dist/es/hooks/useBooleanState/index.js +4 -0
- package/dist/es/hooks/useBooleanState/useBooleanState.js +8 -6
- package/dist/es/hooks/useCommitAction/index.js +6 -0
- package/dist/es/hooks/useCommitAction/useCommitAction.js +38 -27
- package/dist/es/hooks/useDefinedValue/index.js +4 -0
- package/dist/es/hooks/useDefinedValue/useDefinedValue.js +16 -0
- package/dist/es/hooks/useFetch/useFetch.js +37 -27
- package/dist/es/hooks/useImageUrl/useImageUrl.js +26 -22
- package/dist/es/hooks/useModalDetails/useModalDetails.js +38 -23
- package/dist/es/hooks/useMounted/index.js +4 -0
- package/dist/es/hooks/useMounted/useMounted.js +14 -8
- package/dist/es/hooks/useReactiveState/index.js +4 -0
- package/dist/es/hooks/useReactiveState/useReactiveState.js +53 -27
- package/dist/es/hooks/useReflex/constants.js +2 -2
- package/dist/es/hooks/useReflex/core/reflex.js +66 -47
- package/dist/es/hooks/useReflex/core/reflex.test.js +170 -0
- package/dist/es/hooks/useReflex/core/registry.js +68 -46
- package/dist/es/hooks/useReflex/core/registry.test.js +114 -0
- package/dist/es/hooks/useReflex/core/utils.js +18 -16
- package/dist/es/hooks/useReflex/core/utils.test.js +59 -0
- package/dist/es/hooks/useReflex/errors.js +6 -6
- package/dist/es/hooks/useReflex/hooks/useReflex.js +12 -7
- package/dist/es/hooks/useReflex/index.js +8 -0
- package/dist/es/hooks/useSessionAwareRequest/useSessionAwareRequest.js +37 -20
- package/dist/es/hooks/useSetupEndpoint/useSetupEndpoint.js +26 -20
- package/dist/es/index.js +45 -41
- package/dist/es/utils/Storage.js +21 -17
- package/dist/es/utils/Validator/ValidationRuleResult.js +28 -0
- package/dist/es/utils/Validator/Validator.js +67 -0
- package/dist/es/utils/Validator/Validator.test.js +27 -0
- package/dist/es/utils/Validator/defaultRules.js +12 -0
- package/dist/es/utils/Validator/index.js +4 -0
- package/dist/es/utils/class-name-utils.js +11 -5
- package/dist/es/utils/common/constants.js +10 -6
- package/dist/es/utils/common/index.js +59 -32
- package/dist/es/utils/fixedForwardRef.js +3 -3
- package/dist/es/utils/get-image.js +12 -11
- package/dist/es/utils/get-image.test.js +38 -0
- package/dist/es/utils/idGenerator.js +6 -3
- package/dist/es/utils/memoComparator/index.js +4 -0
- package/dist/es/utils/memoComparator/memoComparator.js +26 -17
- package/dist/es/utils/regex.js +6 -0
- package/dist/es/utils/tabbable.js +109 -70
- package/dist/es/utils/useForm/index.js +4 -0
- package/dist/es/utils/useForm/reducer.js +153 -0
- package/dist/es/utils/useForm/useForm.js +85 -0
- package/dist/es/utils/useForm/useForm.test.js +107 -0
- package/dist/es/utils/uuid.js +5 -5
- package/dist/es/utils/uuid.test.js +13 -0
- package/dist/es/utils/validator-utils.js +44 -3
- package/dist/es/utils/watchable/constants.js +2 -2
- package/dist/es/utils/watchable/core/Watchable.js +83 -45
- package/dist/es/utils/watchable/core/Watchable.test.js +103 -0
- package/dist/es/utils/watchable/core/helpers.js +26 -19
- package/dist/es/utils/watchable/core/helpers.test.js +106 -0
- package/dist/es/utils/watchable/core/syncEffect.js +19 -15
- package/dist/es/utils/watchable/core/syncEffect.test.js +103 -0
- package/dist/es/utils/watchable/index.js +17 -16
- package/dist/flags-41c36e13.mjs +83 -0
- package/dist/hooks.module-8565d716.mjs +161 -0
- package/dist/index-2c0f6175.mjs +12069 -0
- package/dist/index-6e47f755.mjs +231 -0
- package/dist/index-944be685.mjs +6609 -0
- package/dist/index-c88cd37e.mjs +243 -0
- package/dist/index-f5bc0382.mjs +155 -0
- package/dist/index.css +65 -0
- package/dist/index2.css +4 -0
- package/dist/jsxRuntime.module-69493d81.mjs +15 -0
- package/dist/magic-string.es-219c273f.mjs +1146 -0
- package/dist/preact.module-38e5a571.mjs +323 -0
- package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/index.d.ts +1 -1
- package/dist/types/components/external/TransactionDetails/index.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/TransactionsOverviewElement.d.ts.map +1 -0
- package/dist/types/components/external/{Transactions → TransactionsOverview}/components/AmountSkeleton/AmountSkeleton.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/AmountSkeleton/constants.d.ts +4 -0
- package/dist/types/components/external/TransactionsOverview/components/AmountSkeleton/constants.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/AmountSkeleton/types.d.ts.map +1 -0
- package/dist/types/components/external/{Transactions → TransactionsOverview}/components/BalanceAccountSelector/BalanceAccountSelector.d.ts +1 -0
- package/dist/types/components/external/TransactionsOverview/components/BalanceAccountSelector/BalanceAccountSelector.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/BalanceAccountSelector/index.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.d.ts.map +1 -0
- package/dist/types/components/external/{Transactions → TransactionsOverview}/components/BalanceItem/BalanceItem.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/BalanceItem/types.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/Balances/Balances.d.ts +11 -0
- package/dist/types/components/external/TransactionsOverview/components/Balances/Balances.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/Balances/constants.d.ts +2 -0
- package/dist/types/components/external/TransactionsOverview/components/Balances/constants.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/Category/Category.d.ts +4 -0
- package/dist/types/components/external/TransactionsOverview/components/Category/Category.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/Category/types.d.ts +7 -0
- package/dist/types/components/external/TransactionsOverview/components/Category/types.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/ModalContent.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/index.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/index.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/types.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.d.ts +4 -0
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.d.ts +14 -0
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/constants.d.ts +8 -0
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/constants.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts +36 -0
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts +7 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.d.ts +3 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.d.ts.map +1 -0
- package/dist/types/components/external/{Transactions → TransactionsOverview}/components/TransactionTotalItem/types.d.ts +2 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/types.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.d.ts +11 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.d.ts +12 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/constants.d.ts +3 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/constants.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.d.ts +5 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/constants.d.ts +3 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/constants.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/types.d.ts +5 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/types.d.ts.map +1 -0
- package/dist/types/components/external/{Transactions/components → TransactionsOverview/components/TransactionsOverview}/TransactionsOverview.d.ts +2 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/constants.d.ts +4 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/constants.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.d.ts +6 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverviewContainer/constants.d.ts +3 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverviewContainer/constants.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts +5 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/constants.d.ts +6 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/constants.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts +18 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts.map +1 -0
- package/dist/types/components/external/{Transactions → TransactionsOverview}/components/utils.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/components/utils.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/hooks/useDefaultTransactionsOverviewFilterParams.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/hooks/useMaxWidths.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/hooks/useMediaQuery.d.ts +26 -0
- package/dist/types/components/external/TransactionsOverview/hooks/useMediaQuery.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts.map +1 -0
- package/dist/types/components/external/TransactionsOverview/index.d.ts +3 -0
- package/dist/types/components/external/TransactionsOverview/index.d.ts.map +1 -0
- package/dist/types/components/external/{Transactions → TransactionsOverview}/types.d.ts +3 -16
- package/dist/types/components/external/TransactionsOverview/types.d.ts.map +1 -0
- package/dist/types/components/external/index.d.ts +1 -1
- package/dist/types/components/external/index.d.ts.map +1 -1
- package/dist/types/components/internal/BaseButton/BaseButton.d.ts.map +1 -1
- package/dist/types/components/internal/BaseButton/constants.d.ts +1 -1
- package/dist/types/components/internal/BaseButton/types.d.ts +1 -0
- package/dist/types/components/internal/BaseButton/types.d.ts.map +1 -1
- package/dist/types/components/internal/BaseList/constants.d.ts +1 -1
- package/dist/types/components/internal/Button/constants.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/facade/Calendar.d.ts.map +1 -1
- package/dist/types/components/internal/CopyText/CopyText.d.ts +6 -0
- package/dist/types/components/internal/CopyText/CopyText.d.ts.map +1 -0
- package/dist/types/components/internal/DataGrid/DataGrid.d.ts +2 -0
- package/dist/types/components/internal/DataGrid/DataGrid.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 -1
- package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/types.d.ts +2 -0
- package/dist/types/components/internal/DataGrid/types.d.ts.map +1 -1
- package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.d.ts.map +1 -1
- package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts +5 -1
- package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts.map +1 -1
- package/dist/types/components/internal/ExpandableCard/ExpandableCard.d.ts +1 -1
- package/dist/types/components/internal/ExpandableCard/ExpandableCard.d.ts.map +1 -1
- package/dist/types/components/internal/ExpandableCard/constants.d.ts +1 -1
- package/dist/types/components/internal/ExpandableCard/types.d.ts +5 -0
- package/dist/types/components/internal/ExpandableCard/types.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/FilterBar.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/AmountFilter/AmountFilter.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/AmountFilter/RangeSelection.d.ts +1 -1
- package/dist/types/components/internal/FilterBar/filters/AmountFilter/RangeSelection.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/AmountFilter/constants.d.ts +2 -0
- package/dist/types/components/internal/FilterBar/filters/AmountFilter/constants.d.ts.map +1 -0
- package/dist/types/components/internal/FilterBar/filters/AmountFilter/types.d.ts +0 -2
- package/dist/types/components/internal/FilterBar/filters/AmountFilter/types.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/BaseFilter/BaseFilter.d.ts +0 -1
- package/dist/types/components/internal/FilterBar/filters/BaseFilter/BaseFilter.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/DateFilter/DateFilter.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/Select.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/Select.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/components/SelectList.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/constants.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/types.d.ts +9 -0
- package/dist/types/components/internal/FormFields/Select/types.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/index.d.ts +3 -18
- package/dist/types/components/internal/FormFields/index.d.ts.map +1 -1
- package/dist/types/components/internal/Img/types.d.ts +1 -1
- package/dist/types/components/internal/Modal/Modal.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/Pagination.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/constants.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/types.d.ts +3 -3
- package/dist/types/components/internal/Pagination/hooks/types.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePaginatedRecords.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePagination.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/types.d.ts +2 -1
- package/dist/types/components/internal/Pagination/types.d.ts.map +1 -1
- package/dist/types/components/internal/Popover/Popover.d.ts +1 -2
- package/dist/types/components/internal/Popover/Popover.d.ts.map +1 -1
- package/dist/types/components/internal/Popover/constants.d.ts +3 -1
- package/dist/types/components/internal/Popover/constants.d.ts.map +1 -1
- package/dist/types/components/internal/Popover/types.d.ts +6 -0
- package/dist/types/components/internal/Popover/types.d.ts.map +1 -1
- package/dist/types/components/internal/Popover/utils/popoverUtil.d.ts +7 -0
- package/dist/types/components/internal/Popover/utils/popoverUtil.d.ts.map +1 -0
- package/dist/types/components/internal/SVGIcons/Close.d.ts +4 -0
- package/dist/types/components/internal/SVGIcons/Close.d.ts.map +1 -0
- package/dist/types/components/internal/SVGIcons/Copy.d.ts +4 -0
- package/dist/types/components/internal/SVGIcons/Copy.d.ts.map +1 -0
- package/dist/types/components/internal/SVGIcons/Filter.d.ts +4 -0
- package/dist/types/components/internal/SVGIcons/Filter.d.ts.map +1 -0
- package/dist/types/components/internal/Tooltip/Tooltip.d.ts +5 -0
- package/dist/types/components/internal/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/types/components/internal/Tooltip/types.d.ts +13 -0
- package/dist/types/components/internal/Tooltip/types.d.ts.map +1 -0
- package/dist/types/components/internal/Tooltip/useTooltipListeners.d.ts +12 -0
- package/dist/types/components/internal/Tooltip/useTooltipListeners.d.ts.map +1 -0
- package/dist/types/components/internal/Typography/constants.d.ts +1 -1
- package/dist/types/components/utils/transactionResourceErrorCodes.d.ts +6 -2
- package/dist/types/components/utils/transactionResourceErrorCodes.d.ts.map +1 -1
- package/dist/types/constants.d.ts +6 -0
- package/dist/types/constants.d.ts.map +1 -0
- package/dist/types/core/Auth/AuthContext.d.ts +2 -2
- package/dist/types/core/Auth/AuthContext.d.ts.map +1 -1
- package/dist/types/core/Auth/AuthProvider.d.ts.map +1 -1
- package/dist/types/core/Auth/types.d.ts +9 -2
- package/dist/types/core/Auth/types.d.ts.map +1 -1
- package/dist/types/core/Auth/useAuthContext.d.ts +1 -1
- package/dist/types/core/Auth/useAuthContext.d.ts.map +1 -1
- package/dist/types/core/Errors/AdyenPlatformExperienceError.d.ts +9 -0
- package/dist/types/core/Errors/AdyenPlatformExperienceError.d.ts.map +1 -0
- package/dist/types/core/Localization/Localization.d.ts +7 -0
- package/dist/types/core/Localization/Localization.d.ts.map +1 -1
- package/dist/types/core/Localization/amount/amount-util.d.ts +1 -5
- package/dist/types/core/Localization/amount/amount-util.d.ts.map +1 -1
- package/dist/types/core/Localization/constants/locale.d.ts +17 -7
- package/dist/types/core/Localization/constants/locale.d.ts.map +1 -1
- package/dist/types/core/Localization/localization-utils.d.ts +1 -0
- package/dist/types/core/Localization/localization-utils.d.ts.map +1 -1
- package/dist/types/core/Localization/translations/index.d.ts +17 -7
- package/dist/types/core/Localization/translations/index.d.ts.map +1 -1
- package/dist/types/core/Localization/utils.d.ts +17 -7
- package/dist/types/core/Localization/utils.d.ts.map +1 -1
- package/dist/types/core/Services/requests/http.d.ts.map +1 -1
- package/dist/types/core/Services/requests/types.d.ts +2 -0
- package/dist/types/core/Services/requests/types.d.ts.map +1 -1
- package/dist/types/core/Services/requests/utils.d.ts +2 -1
- package/dist/types/core/Services/requests/utils.d.ts.map +1 -1
- package/dist/types/core/core.d.ts +1 -0
- package/dist/types/core/core.d.ts.map +1 -1
- package/dist/types/core/types.d.ts +1 -0
- package/dist/types/core/types.d.ts.map +1 -1
- package/dist/types/hooks/element/useClickOutside.d.ts +5 -1
- package/dist/types/hooks/element/useClickOutside.d.ts.map +1 -1
- package/dist/types/hooks/element/usePopoverPositioner.d.ts +2 -2
- package/dist/types/hooks/element/usePopoverPositioner.d.ts.map +1 -1
- package/dist/types/hooks/useModalDetails/types.d.ts +1 -1
- package/dist/types/hooks/useModalDetails/types.d.ts.map +1 -1
- package/dist/types/hooks/useSessionAwareRequest/useSessionAwareRequest.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/utils/types.d.ts +1 -1
- package/dist/types/utils/types.d.ts.map +1 -1
- package/dist/types-0027b7c2.mjs +9 -0
- package/dist/types-0aaff3aa.mjs +19 -0
- package/dist/types-7ad6576a.mjs +10 -0
- package/dist/types-e4bbd37f.mjs +13 -0
- package/dist/types-e6a6a3ff.mjs +9 -0
- package/dist/usePaginatedRecords-63a69bf1.mjs +131 -0
- package/dist/usePopoverPositioner-882fea89.mjs +182 -0
- package/dist/vendor-vi.a3ff54b1-5e924357.mjs +22389 -0
- package/package.json +12 -9
- package/dist/ModalContent-83a84ba5.js +0 -2
- package/dist/ModalContent-83a84ba5.js.map +0 -1
- package/dist/es/components/external/TransactionDetails/components/TransactionDetails.scss.js +0 -4
- package/dist/es/components/external/Transactions/TransactionsOverviewElement.js +0 -28
- package/dist/es/components/external/Transactions/components/AmountSkeleton/AmountSkeleton.js +0 -9
- package/dist/es/components/external/Transactions/components/AmountSkeleton/AmountSkeleton.scss.js +0 -4
- package/dist/es/components/external/Transactions/components/AmountSkeleton/constants.js +0 -6
- package/dist/es/components/external/Transactions/components/BalanceAccountSelector/BalanceAccountSelector.js +0 -23
- package/dist/es/components/external/Transactions/components/BalanceAccountSelector/useBalanceAccountSelection.js +0 -17
- package/dist/es/components/external/Transactions/components/BalanceItem/BalanceItem.js +0 -35
- package/dist/es/components/external/Transactions/components/Balances/Balances.js +0 -50
- package/dist/es/components/external/Transactions/components/Balances/constants.js +0 -4
- package/dist/es/components/external/Transactions/components/ModalContent.js +0 -12
- package/dist/es/components/external/Transactions/components/MultiSelectionFilter/MultiSelectionFilter.js +0 -25
- package/dist/es/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/constants.js +0 -24
- package/dist/es/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.js +0 -21
- package/dist/es/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/utils.js +0 -9
- package/dist/es/components/external/Transactions/components/SummaryItem/SummaryItem.js +0 -42
- package/dist/es/components/external/Transactions/components/SummaryItem/SummaryItem.scss.js +0 -4
- package/dist/es/components/external/Transactions/components/SummaryItem/constants.js +0 -7
- package/dist/es/components/external/Transactions/components/TransactionList.js +0 -127
- package/dist/es/components/external/Transactions/components/TransactionList.scss.js +0 -4
- package/dist/es/components/external/Transactions/components/TransactionListError/TransactionListError.js +0 -20
- package/dist/es/components/external/Transactions/components/TransactionTotalItem/TransactionTotalItem.js +0 -48
- package/dist/es/components/external/Transactions/components/TransactionTotals/TransactionTotals.js +0 -60
- package/dist/es/components/external/Transactions/components/TransactionTotals/constants.js +0 -4
- package/dist/es/components/external/Transactions/components/TransactionsOverview.js +0 -148
- package/dist/es/components/external/Transactions/components/TransactionsOverviewContainer.js +0 -36
- package/dist/es/components/external/Transactions/components/TransactionsOverviewDateFilter.js +0 -61
- package/dist/es/components/external/Transactions/hooks/useDefaultTransactionsOverviewFilterParams.js +0 -22
- package/dist/es/components/external/Transactions/hooks/useMaxWidths.js +0 -15
- package/dist/es/components/external/Transactions/hooks/useTransactionsOverviewMultiSelectionFilters.js +0 -29
- package/dist/es/components/external/Transactions/types.js +0 -4
- package/dist/es/components/internal/BaseButton/BaseButton.scss.js +0 -4
- package/dist/es/components/internal/BaseList/BaseList.scss.js +0 -4
- package/dist/es/components/internal/Button/Button.scss.js +0 -4
- package/dist/es/components/internal/Button/ButtonActions/ButtonActions.scss.js +0 -4
- package/dist/es/components/internal/Button/ButtonActions/types.js +0 -7
- package/dist/es/components/internal/Button/types.js +0 -4
- package/dist/es/components/internal/Calendar/Calendar.scss.js +0 -4
- package/dist/es/components/internal/Calendar/calendar/types.js +0 -15
- package/dist/es/components/internal/Calendar/types.js +0 -4
- package/dist/es/components/internal/DataGrid/DataGrid.scss.js +0 -4
- package/dist/es/components/internal/DataGrid/types.js +0 -4
- package/dist/es/components/internal/DatePicker/DatePicker.scss.js +0 -4
- package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.scss.js +0 -4
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.scss.js +0 -4
- package/dist/es/components/internal/FilterBar/FilterBar.scss.js +0 -4
- package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.scss.js +0 -4
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.scss.js +0 -4
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.scss.js +0 -4
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.scss.js +0 -4
- package/dist/es/components/internal/FilterBar/filters/DateFilter/types.js +0 -4
- package/dist/es/components/internal/FormFields/FormFields.scss.js +0 -4
- package/dist/es/components/internal/FormFields/Select/Select.scss.js +0 -4
- package/dist/es/components/internal/Img/Img.scss.js +0 -4
- package/dist/es/components/internal/Modal/Modal.scss.js +0 -4
- package/dist/es/components/internal/Pagination/Pagination.scss.js +0 -4
- package/dist/es/components/internal/Pagination/types.js +0 -5
- package/dist/es/components/internal/Popover/Popover.scss.js +0 -4
- package/dist/es/components/internal/Popover/PopoverContainer.scss.js +0 -4
- package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.scss.js +0 -4
- package/dist/es/components/internal/Popover/types.js +0 -6
- package/dist/es/components/internal/Spinner/Spinner.scss.js +0 -4
- package/dist/es/components/internal/Tag/Tag.scss.js +0 -4
- package/dist/es/components/internal/Tag/types.js +0 -4
- package/dist/es/components/internal/Typography/Typography.scss.js +0 -4
- package/dist/es/components/internal/Typography/types.js +0 -6
- package/dist/es/components/shared.scss.js +0 -4
- package/dist/es/components/types.js +0 -4
- package/dist/es/core/Errors/AdyenFPError.js +0 -15
- package/dist/es/core/Localization/translations/ar.json.js +0 -4
- package/dist/es/core/Localization/translations/cs-CZ.json.js +0 -4
- package/dist/es/core/Localization/translations/da-DK.json.js +0 -4
- package/dist/es/core/Localization/translations/de-DE.json.js +0 -4
- package/dist/es/core/Localization/translations/el-GR.json.js +0 -4
- package/dist/es/core/Localization/translations/en-US.json.js +0 -358
- package/dist/es/core/Localization/translations/es-ES.json.js +0 -255
- package/dist/es/core/Localization/translations/fi-FI.json.js +0 -4
- package/dist/es/core/Localization/translations/fr-FR.json.js +0 -4
- package/dist/es/core/Localization/translations/hr-HR.json.js +0 -4
- package/dist/es/core/Localization/translations/hu-HU.json.js +0 -4
- package/dist/es/core/Localization/translations/it-IT.json.js +0 -4
- package/dist/es/core/Localization/translations/ja-JP.json.js +0 -4
- package/dist/es/core/Localization/translations/ko-KR.json.js +0 -4
- package/dist/es/core/Localization/translations/nl-NL.json.js +0 -4
- package/dist/es/core/Localization/translations/no-NO.json.js +0 -4
- package/dist/es/core/Localization/translations/pl-PL.json.js +0 -4
- package/dist/es/core/Localization/translations/pt-BR.json.js +0 -4
- package/dist/es/core/Localization/translations/pt-PT.json.js +0 -4
- package/dist/es/core/Localization/translations/ro-RO.json.js +0 -4
- package/dist/es/core/Localization/translations/ru-RU.json.js +0 -4
- package/dist/es/core/Localization/translations/sk-SK.json.js +0 -4
- package/dist/es/core/Localization/translations/sl-SI.json.js +0 -4
- package/dist/es/core/Localization/translations/sv-SE.json.js +0 -4
- package/dist/es/core/Localization/translations/zh-CN.json.js +0 -4
- package/dist/es/core/Localization/translations/zh-TW.json.js +0 -4
- package/dist/es/external/preact/compat/dist/compat.module.js +0 -254
- package/dist/es/external/preact/hooks/dist/hooks.module.js +0 -161
- package/dist/es/external/preact/jsx-runtime/dist/jsxRuntime.module.js +0 -19
- package/dist/es/hooks/useCommitAction/types.js +0 -4
- package/dist/es/hooks/useModalDetails/types.js +0 -6
- package/dist/es/images/no-data-female.svg.js +0 -4
- package/dist/es/images/no-results.svg.js +0 -4
- package/dist/es/style/index.scss.js +0 -4
- package/dist/index-ff45d757.js +0 -12
- package/dist/index-ff45d757.js.map +0 -1
- package/dist/style.css +0 -1
- package/dist/types/components/external/Transactions/TransactionsOverviewElement.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/AmountSkeleton/AmountSkeleton.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/AmountSkeleton/constants.d.ts +0 -4
- package/dist/types/components/external/Transactions/components/AmountSkeleton/constants.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/AmountSkeleton/types.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/BalanceAccountSelector/BalanceAccountSelector.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/BalanceAccountSelector/index.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/BalanceAccountSelector/useBalanceAccountSelection.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/BalanceItem/BalanceItem.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/BalanceItem/types.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/Balances/Balances.d.ts +0 -11
- package/dist/types/components/external/Transactions/components/Balances/Balances.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/Balances/constants.d.ts +0 -2
- package/dist/types/components/external/Transactions/components/Balances/constants.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/ModalContent.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/MultiSelectionFilter/MultiSelectionFilter.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/MultiSelectionFilter/index.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/constants.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/index.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/types.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/SummaryItem/SummaryItem.d.ts +0 -4
- package/dist/types/components/external/Transactions/components/SummaryItem/SummaryItem.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/SummaryItem/constants.d.ts +0 -5
- package/dist/types/components/external/Transactions/components/SummaryItem/constants.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/SummaryItem/types.d.ts +0 -20
- package/dist/types/components/external/Transactions/components/SummaryItem/types.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/TransactionList.d.ts +0 -6
- package/dist/types/components/external/Transactions/components/TransactionList.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/TransactionListError/TransactionListError.d.ts +0 -7
- package/dist/types/components/external/Transactions/components/TransactionListError/TransactionListError.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/TransactionTotalItem/TransactionTotalItem.d.ts +0 -3
- package/dist/types/components/external/Transactions/components/TransactionTotalItem/TransactionTotalItem.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/TransactionTotalItem/types.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/TransactionTotals/TransactionTotals.d.ts +0 -9
- package/dist/types/components/external/Transactions/components/TransactionTotals/TransactionTotals.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/TransactionTotals/constants.d.ts +0 -2
- package/dist/types/components/external/Transactions/components/TransactionTotals/constants.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/TransactionsOverview.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/TransactionsOverviewContainer.d.ts +0 -6
- package/dist/types/components/external/Transactions/components/TransactionsOverviewContainer.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/TransactionsOverviewDateFilter.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/components/utils.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/hooks/useDefaultTransactionsOverviewFilterParams.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/hooks/useMaxWidths.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/index.d.ts +0 -3
- package/dist/types/components/external/Transactions/index.d.ts.map +0 -1
- package/dist/types/components/external/Transactions/types.d.ts.map +0 -1
- package/dist/types/components/internal/FormFields/Checkbox/Checkbox.d.ts +0 -22
- package/dist/types/components/internal/FormFields/Checkbox/Checkbox.d.ts.map +0 -1
- package/dist/types/components/internal/FormFields/Checkbox/index.d.ts +0 -2
- package/dist/types/components/internal/FormFields/Checkbox/index.d.ts.map +0 -1
- package/dist/types/components/internal/FormFields/InputDate/InputDate.d.ts +0 -3
- package/dist/types/components/internal/FormFields/InputDate/InputDate.d.ts.map +0 -1
- package/dist/types/components/internal/FormFields/InputDate/index.d.ts +0 -2
- package/dist/types/components/internal/FormFields/InputDate/index.d.ts.map +0 -1
- package/dist/types/components/internal/FormFields/InputDate/utils.d.ts +0 -22
- package/dist/types/components/internal/FormFields/InputDate/utils.d.ts.map +0 -1
- package/dist/types/components/internal/FormFields/InputEmail.d.ts +0 -3
- package/dist/types/components/internal/FormFields/InputEmail.d.ts.map +0 -1
- package/dist/types/components/internal/FormFields/InputTelephone.d.ts +0 -3
- package/dist/types/components/internal/FormFields/InputTelephone.d.ts.map +0 -1
- package/dist/types/components/internal/FormFields/RadioGroup/RadioGroup.d.ts +0 -11
- package/dist/types/components/internal/FormFields/RadioGroup/RadioGroup.d.ts.map +0 -1
- package/dist/types/components/internal/FormFields/RadioGroup/index.d.ts +0 -2
- package/dist/types/components/internal/FormFields/RadioGroup/index.d.ts.map +0 -1
- package/dist/types/components/internal/FormFields/RadioGroup/types.d.ts +0 -19
- package/dist/types/components/internal/FormFields/RadioGroup/types.d.ts.map +0 -1
- package/dist/types/core/Errors/AdyenFPError.d.ts +0 -8
- package/dist/types/core/Errors/AdyenFPError.d.ts.map +0 -1
- /package/dist/types/components/external/{Transactions → TransactionsOverview}/TransactionsOverviewElement.d.ts +0 -0
- /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/AmountSkeleton/types.d.ts +0 -0
- /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/BalanceAccountSelector/index.d.ts +0 -0
- /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/BalanceAccountSelector/useBalanceAccountSelection.d.ts +0 -0
- /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/BalanceItem/types.d.ts +0 -0
- /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/ModalContent.d.ts +0 -0
- /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/MultiSelectionFilter/MultiSelectionFilter.d.ts +0 -0
- /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/MultiSelectionFilter/index.d.ts +0 -0
- /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/MultiSelectionFilter/useMultiSelectionFilter/constants.d.ts +0 -0
- /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/MultiSelectionFilter/useMultiSelectionFilter/index.d.ts +0 -0
- /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/MultiSelectionFilter/useMultiSelectionFilter/types.d.ts +0 -0
- /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.d.ts +0 -0
- /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts +0 -0
- /package/dist/types/components/external/{Transactions → TransactionsOverview}/components/TransactionsOverviewDateFilter.d.ts +0 -0
- /package/dist/types/components/external/{Transactions → TransactionsOverview}/hooks/useDefaultTransactionsOverviewFilterParams.d.ts +0 -0
- /package/dist/types/components/external/{Transactions → TransactionsOverview}/hooks/useMaxWidths.d.ts +0 -0
- /package/dist/types/components/external/{Transactions → TransactionsOverview}/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts +0 -0
|
@@ -1,433 +1,670 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
if (!i.has(d))
|
|
5
|
-
throw TypeError("Cannot " + e);
|
|
1
|
+
var __accessCheck = (obj, member, msg) => {
|
|
2
|
+
if (!member.has(obj))
|
|
3
|
+
throw TypeError("Cannot " + msg);
|
|
6
4
|
};
|
|
7
|
-
var
|
|
8
|
-
|
|
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))
|
|
9
11
|
throw TypeError("Cannot add the same private member more than once");
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
import {
|
|
23
|
-
|
|
24
|
-
|
|
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 {
|
|
25
37
|
constructor() {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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)),
|
|
66
91
|
{
|
|
67
|
-
...
|
|
68
|
-
get: (
|
|
69
|
-
var
|
|
70
|
-
const
|
|
71
|
-
return
|
|
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);
|
|
72
97
|
}
|
|
73
98
|
}
|
|
74
99
|
));
|
|
75
|
-
|
|
100
|
+
__privateSet(this, _watchable, watchable({
|
|
76
101
|
blocks: () => {
|
|
77
|
-
var
|
|
78
|
-
return (
|
|
102
|
+
var _a2;
|
|
103
|
+
return (_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.size;
|
|
79
104
|
},
|
|
80
105
|
cells: () => {
|
|
81
|
-
var
|
|
82
|
-
return (
|
|
106
|
+
var _a2;
|
|
107
|
+
return (_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.units;
|
|
83
108
|
},
|
|
84
|
-
controls: () =>
|
|
109
|
+
controls: () => pickFromCollection(CALENDAR_CONTROLS, __privateGet(this, _config).controls),
|
|
85
110
|
cursor: () => {
|
|
86
|
-
var
|
|
87
|
-
return (
|
|
111
|
+
var _a2;
|
|
112
|
+
return (_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.cursor;
|
|
88
113
|
},
|
|
89
114
|
from: () => {
|
|
90
|
-
var
|
|
91
|
-
return (
|
|
115
|
+
var _a2;
|
|
116
|
+
return (_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.selectionStart;
|
|
92
117
|
},
|
|
93
|
-
highlight: () =>
|
|
118
|
+
highlight: () => __privateGet(this, _highlightSelection),
|
|
94
119
|
locale: () => {
|
|
95
|
-
var
|
|
96
|
-
return (
|
|
120
|
+
var _a2;
|
|
121
|
+
return (_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.locale;
|
|
97
122
|
},
|
|
98
|
-
minified: () =>
|
|
123
|
+
minified: () => boolify(__privateGet(this, _config).minified),
|
|
99
124
|
origin: () => {
|
|
100
|
-
var
|
|
101
|
-
return (
|
|
125
|
+
var _a2;
|
|
126
|
+
return (_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.getTimestampAtIndex(0);
|
|
102
127
|
},
|
|
103
128
|
to: () => {
|
|
104
|
-
var
|
|
105
|
-
return (
|
|
129
|
+
var _a2;
|
|
130
|
+
return (_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.selectionEnd;
|
|
106
131
|
},
|
|
107
|
-
today: () =>
|
|
132
|
+
today: () => __privateGet(this, _today).timestamp
|
|
108
133
|
}));
|
|
109
|
-
|
|
110
|
-
|
|
134
|
+
__privateSet(this, _lastWatchableSnapshot, (_b = __privateGet(this, _watchable)) == null ? void 0 : _b.snapshot);
|
|
135
|
+
__privateSet(this, _chainedNotifyCallback, watchable.withSyncEffect(
|
|
111
136
|
() => {
|
|
112
|
-
var
|
|
113
|
-
return
|
|
137
|
+
var _a2;
|
|
138
|
+
return __privateGet(this, _watchCallback) && ((_a2 = __privateGet(this, _watchable)) == null ? void 0 : _a2.notify());
|
|
114
139
|
}
|
|
115
140
|
));
|
|
116
|
-
|
|
141
|
+
__privateSet(this, _chainedWatchCallback, watchable.withSyncEffect(
|
|
117
142
|
() => {
|
|
118
|
-
var
|
|
119
|
-
return (
|
|
143
|
+
var _a2;
|
|
144
|
+
return (_a2 = __privateGet(this, _watchCallback)) == null ? void 0 : _a2.call(__privateGet(this, _currentConfig, currentConfig_get));
|
|
120
145
|
}
|
|
121
146
|
));
|
|
122
|
-
|
|
123
|
-
|
|
147
|
+
__privateSet(this, _grid, structFrom(
|
|
148
|
+
indexed(
|
|
124
149
|
() => {
|
|
125
|
-
var
|
|
126
|
-
return ((
|
|
150
|
+
var _a2;
|
|
151
|
+
return ((_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.size) ?? 0;
|
|
127
152
|
},
|
|
128
|
-
(
|
|
129
|
-
var
|
|
130
|
-
return (
|
|
153
|
+
(index) => {
|
|
154
|
+
var _a2;
|
|
155
|
+
return (_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.frameBlocks[index];
|
|
131
156
|
}
|
|
132
157
|
),
|
|
133
158
|
{
|
|
134
159
|
config: {
|
|
135
160
|
value: Object.defineProperties(
|
|
136
|
-
(
|
|
161
|
+
(config) => {
|
|
162
|
+
config && __privateMethod(this, _configure, configure_fn).call(this, config);
|
|
163
|
+
return __privateGet(this, _currentConfig, currentConfig_get);
|
|
164
|
+
},
|
|
137
165
|
{
|
|
138
166
|
cursorIndex: {
|
|
139
|
-
get: () =>
|
|
140
|
-
set: (
|
|
141
|
-
|
|
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);
|
|
142
175
|
}
|
|
143
176
|
},
|
|
144
177
|
shiftFactor: {
|
|
145
|
-
get: () =>
|
|
146
|
-
set: (
|
|
147
|
-
|
|
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);
|
|
148
186
|
}
|
|
149
187
|
},
|
|
150
188
|
watch: {
|
|
151
|
-
get: () =>
|
|
152
|
-
set: (
|
|
153
|
-
var
|
|
154
|
-
if (
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
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));
|
|
159
202
|
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
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);
|
|
165
210
|
}
|
|
166
211
|
}
|
|
167
212
|
}
|
|
168
213
|
)
|
|
169
214
|
},
|
|
170
|
-
controls: { value:
|
|
215
|
+
controls: { value: __privateGet(this, _shiftControls) },
|
|
171
216
|
cursor: {
|
|
172
217
|
value: Object.defineProperties(
|
|
173
|
-
(
|
|
218
|
+
(evt) => __privateMethod(_Calendar, _withNotifyEffect, withNotifyEffect_fn).call(this, (evt2) => !!(evt2 && __privateMethod(this, _cursorHandle, cursorHandle_fn).call(this, evt2)))(evt),
|
|
174
219
|
{
|
|
175
220
|
valueOf: { value: () => {
|
|
176
|
-
var
|
|
177
|
-
return ((
|
|
221
|
+
var _a2;
|
|
222
|
+
return ((_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.cursor) ?? -1;
|
|
178
223
|
} }
|
|
179
224
|
}
|
|
180
225
|
)
|
|
181
226
|
},
|
|
182
227
|
highlight: {
|
|
183
228
|
value: (() => {
|
|
184
|
-
const
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
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 },
|
|
194
249
|
from: {
|
|
195
250
|
get: () => {
|
|
196
|
-
var
|
|
197
|
-
return ((
|
|
251
|
+
var _a2;
|
|
252
|
+
return ((_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.selectionStart) ?? __privateGet(this, _highlightFrom);
|
|
198
253
|
},
|
|
199
|
-
set:
|
|
254
|
+
set: setter(SELECTION_FROM)
|
|
200
255
|
},
|
|
201
256
|
to: {
|
|
202
257
|
get: () => {
|
|
203
|
-
var
|
|
204
|
-
return ((
|
|
258
|
+
var _a2;
|
|
259
|
+
return ((_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.selectionEnd) ?? __privateGet(this, _highlightTo);
|
|
205
260
|
},
|
|
206
|
-
set:
|
|
261
|
+
set: setter(SELECTION_TO)
|
|
207
262
|
}
|
|
208
263
|
});
|
|
209
264
|
})()
|
|
210
265
|
},
|
|
211
266
|
rowspan: { get: () => {
|
|
212
|
-
var
|
|
213
|
-
return ((
|
|
267
|
+
var _a2;
|
|
268
|
+
return ((_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.rowspan) ?? 0;
|
|
214
269
|
} },
|
|
215
270
|
weekdays: { get: () => {
|
|
216
|
-
var
|
|
217
|
-
return ((
|
|
271
|
+
var _a2;
|
|
272
|
+
return ((_a2 = __privateGet(this, _frame)) == null ? void 0 : _a2.daysOfWeek) ?? __privateGet(_Calendar, _DAYS_OF_WEEK_FALLBACK);
|
|
218
273
|
} }
|
|
219
274
|
}
|
|
220
275
|
));
|
|
221
|
-
this.grid =
|
|
276
|
+
this.grid = __privateGet(this, _grid);
|
|
277
|
+
this.kill = __privateMethod(this, _destruct, destruct_fn).bind(this);
|
|
222
278
|
}
|
|
223
279
|
};
|
|
224
|
-
|
|
225
|
-
|
|
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))
|
|
226
313
|
return;
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
case
|
|
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:
|
|
236
327
|
default:
|
|
237
|
-
return
|
|
328
|
+
return SHIFT_BLOCK;
|
|
238
329
|
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
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))
|
|
253
357
|
return;
|
|
254
|
-
|
|
255
|
-
const
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
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);
|
|
268
385
|
return;
|
|
269
386
|
}
|
|
270
|
-
(!
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
return;
|
|
311
|
-
|
|
312
|
-
if (!(o || t(this, y)))
|
|
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:
|
|
313
429
|
return;
|
|
314
|
-
|
|
315
|
-
|
|
430
|
+
}
|
|
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;
|
|
316
445
|
}
|
|
317
446
|
}
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
if (!t(this, T) || i < 0 || i >= t(this, T).length)
|
|
447
|
+
};
|
|
448
|
+
_destruct = new WeakSet();
|
|
449
|
+
destruct_fn = function() {
|
|
450
|
+
var _a;
|
|
451
|
+
if (__privateGet(this, _destructed))
|
|
324
452
|
return;
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
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);
|
|
336
480
|
}
|
|
337
|
-
return [
|
|
338
|
-
}
|
|
339
|
-
|
|
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))))
|
|
340
486
|
return;
|
|
341
|
-
if (
|
|
342
|
-
if (
|
|
487
|
+
if (evt instanceof MouseEvent) {
|
|
488
|
+
if (evt.type !== "click")
|
|
343
489
|
return;
|
|
344
|
-
} else if (
|
|
345
|
-
if (!
|
|
490
|
+
} else if (evt instanceof KeyboardEvent) {
|
|
491
|
+
if (!__privateGet(_Calendar, _SHIFT_ACTIVATION_KEYS).includes(evt.code))
|
|
346
492
|
return;
|
|
347
493
|
} else
|
|
348
494
|
return;
|
|
349
|
-
let
|
|
350
|
-
if (
|
|
351
|
-
const
|
|
352
|
-
|
|
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;
|
|
353
499
|
}
|
|
354
|
-
return
|
|
355
|
-
}
|
|
356
|
-
|
|
500
|
+
return shiftFactor;
|
|
501
|
+
};
|
|
502
|
+
_highlight = new WeakSet();
|
|
503
|
+
highlight_fn = function(secretFauxHighlightingHint) {
|
|
504
|
+
if (__privateGet(this, _destructed) || !__privateGet(this, _frame))
|
|
357
505
|
return;
|
|
358
|
-
switch (
|
|
359
|
-
case
|
|
360
|
-
case
|
|
506
|
+
switch (__privateGet(this, _highlightSelection)) {
|
|
507
|
+
case SELECT_MANY:
|
|
508
|
+
case SELECT_ONE:
|
|
361
509
|
break;
|
|
362
|
-
case
|
|
510
|
+
case SELECT_NONE:
|
|
363
511
|
default:
|
|
364
512
|
return;
|
|
365
513
|
}
|
|
366
|
-
const
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
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);
|
|
539
|
+
} 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);
|
|
546
|
+
}
|
|
547
|
+
if (isFauxHighlighting)
|
|
376
548
|
return;
|
|
377
549
|
}
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
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))
|
|
384
581
|
return;
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
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
|
+
}
|
|
397
598
|
break;
|
|
398
|
-
case
|
|
399
|
-
((
|
|
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
|
+
}
|
|
400
603
|
break;
|
|
401
|
-
case
|
|
604
|
+
case SELECT_NONE:
|
|
402
605
|
default:
|
|
403
|
-
|
|
606
|
+
__privateMethod(this, _clearHighlight, clearHighlight_fn).call(this);
|
|
404
607
|
return;
|
|
405
608
|
}
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
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));
|
|
411
616
|
break;
|
|
412
|
-
case
|
|
413
|
-
|
|
617
|
+
case CONTROLS_MINIMAL:
|
|
618
|
+
__privateSet(this, _shiftControlsList, __privateGet(_Calendar, _SHIFT_MINIMAL_CONTROLS));
|
|
414
619
|
break;
|
|
415
|
-
case
|
|
620
|
+
case CONTROLS_NONE:
|
|
416
621
|
default:
|
|
417
|
-
|
|
622
|
+
__privateSet(this, _shiftControlsList, void 0);
|
|
418
623
|
}
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
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")
|
|
423
640
|
return;
|
|
424
|
-
let
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
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);
|
|
429
666
|
});
|
|
430
|
-
let
|
|
667
|
+
let Calendar = _Calendar;
|
|
431
668
|
export {
|
|
432
|
-
|
|
669
|
+
Calendar as default
|
|
433
670
|
};
|