@adyen/adyen-platform-experience-web 1.0.1 → 1.0.3
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/LICENSE +21 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/components/external/BaseElement.js +12 -3
- package/dist/es/components/external/PayoutDetails/PayoutDetails.js +18 -14
- package/dist/es/components/external/PayoutDetails/components/PayoutData.js +200 -85
- package/dist/es/components/external/PayoutDetails/components/constants.js +8 -7
- package/dist/es/components/external/PayoutsOverview/PayoutsOverviewElement.js +14 -20
- package/dist/es/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.js +137 -116
- package/dist/es/components/external/PayoutsOverview/components/PayoutsOverviewContainer/PayoutsOverviewContainer.js +22 -14
- package/dist/es/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.js +92 -56
- package/dist/es/components/external/TransactionDetails/TransactionDetails.js +16 -12
- package/dist/es/components/external/TransactionDetails/components/TransactionData.js +81 -57
- package/dist/es/components/external/TransactionDetails/components/TransactionDataSkeleton.js +12 -9
- package/dist/es/components/external/TransactionsOverview/TransactionsOverviewElement.js +17 -23
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +16 -4
- package/dist/es/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.js +35 -34
- package/dist/es/components/external/TransactionsOverview/components/Balances/Balances.js +52 -26
- package/dist/es/components/external/TransactionsOverview/components/Category/Category.js +17 -4
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +20 -25
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.js +1 -13
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.js +12 -7
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.js +4 -1
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +47 -20
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +22 -13
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.js +23 -28
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +30 -30
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +72 -41
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +215 -186
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.js +22 -14
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/PaymentMethodCell.js +21 -14
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +116 -83
- package/dist/es/components/external/TransactionsOverview/hooks/useMaxWidths.js +4 -6
- package/dist/es/components/external/UIElement/UIElement.js +39 -24
- package/dist/es/components/hooks/useBalanceAccountSelection.js +20 -11
- package/dist/es/components/hooks/useBalanceAccounts.js +22 -19
- package/dist/es/components/hooks/useDefaultOverviewFilterParams.js +28 -16
- package/dist/es/components/hooks/useTimezoneAwareDateFormatting.js +31 -0
- package/dist/es/components/internal/Accordion/Accordion.js +58 -0
- package/dist/es/components/internal/Accordion/Accordion.scss.js +4 -0
- package/dist/es/components/internal/Accordion/constants.js +8 -0
- package/dist/es/components/internal/BaseButton/BaseButton.js +26 -12
- package/dist/es/components/internal/BaseList/BaseList.js +8 -3
- package/dist/es/components/internal/Button/Button.js +31 -18
- package/dist/es/components/internal/Button/ButtonActions/ButtonActions.js +19 -13
- package/dist/es/components/internal/Button/ButtonActions/types.js +4 -1
- package/dist/es/components/internal/Button/hooks/useButton.js +7 -10
- package/dist/es/components/internal/Calendar/Calendar.js +16 -15
- package/dist/es/components/internal/Calendar/calendar/facade/Calendar.js +301 -292
- package/dist/es/components/internal/Calendar/calendar/facade/index.js +40 -13
- package/dist/es/components/internal/Calendar/calendar/timeframe/common/flags.js +17 -18
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +125 -100
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +209 -200
- package/dist/es/components/internal/Calendar/calendar/timerange/factory.js +14 -9
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +23 -19
- 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 +26 -22
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.js +11 -10
- package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +39 -41
- package/dist/es/components/internal/Calendar/calendar/timeslice/TimeSlice.js +10 -10
- package/dist/es/components/internal/Calendar/calendar/timeslice/index.js +26 -17
- package/dist/es/components/internal/Calendar/calendar/utils.js +64 -16
- package/dist/es/components/internal/Calendar/components/CalendarControls/CalendarControls.js +11 -3
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGrid.js +46 -19
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDate.js +57 -39
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +44 -26
- package/dist/es/components/internal/Calendar/components/CalendarGrid/utils.js +26 -12
- package/dist/es/components/internal/Calendar/hooks/useCalendar.js +82 -72
- package/dist/es/components/internal/Calendar/hooks/useCalendarControlsRendering.js +33 -38
- package/dist/es/components/internal/Calendar/hooks/useTimezone.js +25 -9
- package/dist/es/components/internal/Card/Card.js +28 -17
- package/dist/es/components/internal/CopyText/CopyText.js +15 -11
- package/dist/es/components/internal/DataGrid/DataGrid.js +104 -68
- package/dist/es/components/internal/DataGrid/DataGridCell.js +24 -23
- package/dist/es/components/internal/DataGrid/components/InteractiveBody.js +20 -12
- package/dist/es/components/internal/DataGrid/components/SkeletonBody.js +24 -14
- package/dist/es/components/internal/DataGrid/components/TableBody.js +14 -9
- package/dist/es/components/internal/DataGrid/components/TableCells.js +31 -10
- package/dist/es/components/internal/DataGrid/components/TableHeaderCell.js +23 -16
- package/dist/es/components/internal/DataGrid/hooks/useInteractiveDataGrid.js +75 -68
- package/dist/es/components/internal/DataGrid/utils/DataGridProvider.js +23 -18
- package/dist/es/components/internal/DataOverviewContainer/DataOverviewContainer.js +15 -15
- package/dist/es/components/internal/DataOverviewDetails/DataOverviewDetails.js +80 -39
- package/dist/es/components/internal/DataOverviewDisplay/DataDetailsModal.js +19 -18
- package/dist/es/components/internal/DataOverviewDisplay/constants.js +20 -1
- package/dist/es/components/internal/DataOverviewError/DataOverviewError.js +13 -16
- package/dist/es/components/internal/DatePicker/DatePicker.js +52 -33
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.js +24 -15
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +25 -29
- package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +48 -27
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +59 -34
- package/dist/es/components/internal/FilterBar/FilterBar.js +29 -28
- package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +26 -5
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +54 -49
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +64 -55
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +83 -90
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.js +40 -44
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilterCore.js +123 -103
- package/dist/es/components/internal/FormFields/InputBase.js +63 -54
- package/dist/es/components/internal/FormFields/InputText.js +11 -5
- package/dist/es/components/internal/FormFields/Select/BalanceAccountSelector/BalanceAccountSelector.js +30 -33
- package/dist/es/components/internal/FormFields/Select/Select.js +142 -149
- package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +81 -61
- package/dist/es/components/internal/FormFields/Select/components/SelectList.js +59 -54
- package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +51 -31
- package/dist/es/components/internal/FormFields/Select/hooks/useSelect.js +27 -28
- package/dist/es/components/internal/Image/Image.js +21 -8
- package/dist/es/components/internal/Img/Img.js +25 -9
- package/dist/es/components/internal/Modal/Modal.js +61 -81
- package/dist/es/components/internal/Modal/ModalContent/ModalContent.js +23 -4
- package/dist/es/components/internal/Pagination/Pagination.js +58 -51
- package/dist/es/components/internal/Pagination/hooks/useCursorPagination.js +11 -4
- package/dist/es/components/internal/Pagination/hooks/useOffsetPagination.js +12 -5
- package/dist/es/components/internal/Pagination/hooks/usePageLimit.js +30 -27
- package/dist/es/components/internal/Pagination/hooks/usePaginatedRecords.js +104 -67
- package/dist/es/components/internal/Pagination/hooks/usePaginatedRecordsFilters.js +7 -1
- package/dist/es/components/internal/Pagination/hooks/usePagination.js +34 -13
- package/dist/es/components/internal/Popover/Popover.js +118 -128
- package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.js +27 -20
- package/dist/es/components/internal/Popover/PopoverTitle/PopoverTitle.js +13 -6
- package/dist/es/components/internal/Popover/utils/popoverUtil.js +15 -7
- package/dist/es/components/internal/Popover/utils/utils.js +9 -8
- package/dist/es/components/internal/SVGIcons/CheckedBox.js +18 -10
- package/dist/es/components/internal/SVGIcons/Checkmark.js +20 -12
- package/dist/es/components/internal/SVGIcons/ChevronDown.js +20 -12
- package/dist/es/components/internal/SVGIcons/ChevronLeft.js +18 -10
- package/dist/es/components/internal/SVGIcons/ChevronRight.js +18 -10
- package/dist/es/components/internal/SVGIcons/ChevronUp.js +20 -12
- package/dist/es/components/internal/SVGIcons/Close.js +11 -5
- package/dist/es/components/internal/SVGIcons/Copy.js +13 -1
- package/dist/es/components/internal/SVGIcons/Filter.js +12 -5
- package/dist/es/components/internal/SVGIcons/UncheckedBox.js +18 -4
- package/dist/es/components/internal/Spinner/Spinner.js +14 -0
- package/dist/es/components/internal/Spinner/Spinner.scss.js +4 -0
- package/dist/es/components/internal/StructuredList/StructuredList.js +24 -19
- package/dist/es/components/internal/StructuredList/useStructuredListItem.js +14 -15
- package/dist/es/components/internal/Tag/Tag.js +16 -16
- package/dist/es/components/internal/Tooltip/Tooltip.js +35 -18
- package/dist/es/components/internal/Tooltip/useTooltipListeners.js +7 -10
- package/dist/es/components/internal/Typography/Typography.js +38 -28
- package/dist/es/components/utils/getCommonErrorCode.js +4 -1
- package/dist/es/components/utils/getErrorMessage.js +7 -5
- package/dist/es/core/Auth/context.js +14 -8
- package/dist/es/core/Auth/session/AuthSession.js +53 -73
- package/dist/es/core/Auth/session/AuthSessionSpecification.js +54 -39
- package/dist/es/core/Auth/session/AuthSetupContext.js +67 -43
- package/dist/es/core/Auth/session/constants.js +8 -11
- package/dist/es/core/Context/CoreProvider.js +21 -11
- package/dist/es/core/Http/http.js +43 -33
- package/dist/es/core/Http/utils.js +18 -12
- package/dist/es/core/Localization/Localization.js +98 -82
- package/dist/es/core/Localization/constants/localization.js +5 -1
- package/dist/es/core/Localization/datetime/restamper/constants.js +12 -2
- package/dist/es/core/Localization/datetime/restamper/restamper.js +18 -5
- package/dist/es/core/Localization/datetime/restamper/utils.js +28 -25
- package/dist/es/core/Localization/localization-utils.js +30 -18
- package/dist/es/core/Localization/utils.js +6 -1
- package/dist/es/core/core.js +26 -17
- package/dist/es/hooks/element/useClickOutside.js +29 -35
- package/dist/es/hooks/element/useDetachedRender.js +7 -10
- package/dist/es/hooks/element/useFocusCursor.js +10 -18
- package/dist/es/hooks/element/useFocusTrap.js +3 -6
- package/dist/es/hooks/element/usePopoverPositioner.js +43 -65
- package/dist/es/hooks/element/useUniqueIdentifier.js +3 -9
- package/dist/es/hooks/useCommitAction/useCommitAction.js +25 -19
- package/dist/es/hooks/useFetch/useFetch.js +29 -7
- package/dist/es/hooks/useImageUrl/useImageUrl.js +12 -10
- package/dist/es/hooks/useModalDetails/useModalDetails.js +15 -15
- package/dist/es/hooks/useReactiveState/useReactiveState.js +21 -9
- package/dist/es/index.js +1 -1
- package/dist/es/primitives/async/abortable/main.js +19 -16
- package/dist/es/primitives/async/promisor/main.js +13 -12
- package/dist/es/primitives/auxiliary/indexed/main.js +18 -22
- package/dist/es/primitives/context/session/SessionContext.js +41 -129
- package/dist/es/primitives/context/session/constants.js +9 -6
- package/dist/es/primitives/context/session/internal/autofresher.js +34 -0
- package/dist/es/primitives/context/session/internal/constants.js +7 -0
- package/dist/es/primitives/context/session/internal/deadline.js +62 -0
- package/dist/es/primitives/context/session/internal/refresher.js +66 -0
- package/dist/es/primitives/dom/tabbableRoot/tabbable.js +3 -1
- package/dist/es/primitives/reactive/eventEmitter/main.js +11 -19
- package/dist/es/primitives/reactive/reflex/main.js +33 -19
- package/dist/es/primitives/reactive/reflex/register.js +9 -3
- package/dist/es/primitives/reactive/watchlist/helpers.js +12 -8
- package/dist/es/primitives/reactive/watchlist/main.js +4 -5
- package/dist/es/primitives/time/clock/main.js +6 -1
- package/dist/es/primitives/time/interval/main.js +1 -1
- package/dist/es/primitives/time/today/main.js +41 -39
- package/dist/es/translations/da-DK.json.js +48 -42
- package/dist/es/translations/de-DE.json.js +100 -94
- package/dist/es/translations/es-ES.json.js +48 -42
- package/dist/es/translations/fr-FR.json.js +35 -29
- package/dist/es/translations/index.js +21 -1
- package/dist/es/translations/it-IT.json.js +27 -21
- package/dist/es/translations/nl-NL.json.js +35 -29
- package/dist/es/translations/no-NO.json.js +58 -52
- package/dist/es/translations/pt-BR.json.js +27 -21
- package/dist/es/translations/sv-SE.json.js +53 -47
- package/dist/es/utils/abort/constants.js +5 -0
- package/dist/es/utils/abort/internals.js +29 -0
- package/dist/es/utils/abort/main.js +51 -0
- package/dist/es/utils/preact/memoComparator/main.js +3 -1
- package/dist/es/utils/struct/main.js +5 -1
- package/dist/style.css +1 -1
- package/dist/types/components/external/PayoutDetails/PayoutDetails.d.ts.map +1 -1
- package/dist/types/components/external/PayoutDetails/components/PayoutData.d.ts +40 -3
- package/dist/types/components/external/PayoutDetails/components/PayoutData.d.ts.map +1 -1
- package/dist/types/components/external/PayoutDetails/components/constants.d.ts +1 -0
- package/dist/types/components/external/PayoutDetails/components/constants.d.ts.map +1 -1
- package/dist/types/components/external/PayoutsOverview/PayoutsOverviewElement.d.ts.map +1 -1
- package/dist/types/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.d.ts +1 -1
- package/dist/types/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.d.ts.map +1 -1
- package/dist/types/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.d.ts +1 -2
- package/dist/types/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/TransactionDetails.d.ts +2 -2
- package/dist/types/components/external/TransactionDetails/TransactionDetails.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts +1 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts +2 -2
- 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/TransactionDetails/types.d.ts +2 -5
- package/dist/types/components/external/TransactionDetails/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/TransactionsOverviewElement.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts +5 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/PaymentMethodCell.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useMaxWidths.d.ts.map +1 -1
- package/dist/types/components/external/UIElement/UIElement.d.ts.map +1 -1
- package/dist/types/components/hooks/useBalanceAccounts.d.ts +1 -1
- package/dist/types/components/hooks/useBalanceAccounts.d.ts.map +1 -1
- package/dist/types/components/hooks/useDefaultOverviewFilterParams.d.ts +2 -1
- package/dist/types/components/hooks/useDefaultOverviewFilterParams.d.ts.map +1 -1
- package/dist/types/components/hooks/useTimezoneAwareDateFormatting.d.ts +6 -0
- package/dist/types/components/hooks/useTimezoneAwareDateFormatting.d.ts.map +1 -0
- package/dist/types/components/internal/Accordion/Accordion.d.ts +6 -0
- package/dist/types/components/internal/Accordion/Accordion.d.ts.map +1 -0
- package/dist/types/components/internal/Accordion/constants.d.ts +6 -0
- package/dist/types/components/internal/Accordion/constants.d.ts.map +1 -0
- package/dist/types/components/internal/Accordion/types.d.ts +7 -0
- package/dist/types/components/internal/Accordion/types.d.ts.map +1 -0
- package/dist/types/components/internal/Calendar/calendar/facade/Calendar.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeframe/common/utils.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts +3 -3
- package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeframe/frames/YearFrame.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeframe/frames/YearFrame.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/presets/lastNDays.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/presets/yearToDate.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts +1 -6
- package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeslice/TimeSlice.d.ts +2 -2
- package/dist/types/components/internal/Calendar/calendar/timeslice/TimeSlice.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeslice/index.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/types.d.ts +6 -1
- package/dist/types/components/internal/Calendar/calendar/types.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/utils.d.ts +13 -4
- package/dist/types/components/internal/Calendar/calendar/utils.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/hooks/useCalendar.d.ts +1 -1
- package/dist/types/components/internal/Calendar/hooks/useCalendar.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/types.d.ts +1 -0
- package/dist/types/components/internal/Calendar/types.d.ts.map +1 -1
- package/dist/types/components/internal/CopyText/CopyText.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/InteractiveBody.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/SkeletonBody.d.ts +1 -1
- package/dist/types/components/internal/DataGrid/components/SkeletonBody.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 +1 -1
- package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/TableHeaderCell.d.ts +1 -1
- package/dist/types/components/internal/DataGrid/components/TableHeaderCell.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/hooks/useInteractiveDataGrid.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/utils/DataGridProvider.d.ts.map +1 -1
- package/dist/types/components/internal/DataOverviewDetails/DataOverviewDetails.d.ts.map +1 -1
- package/dist/types/components/internal/DataOverviewDetails/types.d.ts +3 -6
- package/dist/types/components/internal/DataOverviewDetails/types.d.ts.map +1 -1
- package/dist/types/components/internal/DataOverviewDisplay/constants.d.ts +4 -1
- package/dist/types/components/internal/DataOverviewDisplay/constants.d.ts.map +1 -1
- package/dist/types/components/internal/DataOverviewError/DataOverviewError.d.ts +1 -1
- package/dist/types/components/internal/DataOverviewError/DataOverviewError.d.ts.map +1 -1
- package/dist/types/components/internal/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.d.ts +1 -1
- package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.d.ts.map +1 -1
- package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts +2 -2
- package/dist/types/components/internal/FilterBar/filters/AmountFilter/RangeSelection.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/DateFilter/DateFilter.d.ts +7 -1
- package/dist/types/components/internal/FilterBar/filters/DateFilter/DateFilter.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/DateFilter/DateFilterCore.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/Select.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/components/SelectButton.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts +12 -3
- package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/index.d.ts.map +1 -1
- package/dist/types/components/internal/Modal/Modal.d.ts +1 -1
- package/dist/types/components/internal/Modal/Modal.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/types.d.ts +0 -1
- package/dist/types/components/internal/Pagination/hooks/types.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/useCursorPaginatedRecords.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/useOffsetPaginatedRecords.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/useOffsetPagination.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePaginatedRecords.d.ts +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePaginatedRecords.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePaginatedRecordsFilters.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePagination.d.ts +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePagination.d.ts.map +1 -1
- package/dist/types/components/internal/Popover/Popover.d.ts.map +1 -1
- package/dist/types/components/internal/Spinner/Spinner.d.ts +18 -0
- package/dist/types/components/internal/Spinner/Spinner.d.ts.map +1 -0
- package/dist/types/components/internal/Spinner/index.d.ts +2 -0
- package/dist/types/components/internal/Spinner/index.d.ts.map +1 -0
- package/dist/types/components/internal/StructuredList/types.d.ts +3 -2
- package/dist/types/components/internal/StructuredList/types.d.ts.map +1 -1
- package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +9 -133
- package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts.map +1 -1
- package/dist/types/components/internal/Tooltip/useTooltipListeners.d.ts.map +1 -1
- package/dist/types/components/types.d.ts +7 -15
- package/dist/types/components/types.d.ts.map +1 -1
- package/dist/types/components/utils/getLabel.d.ts +1 -1
- package/dist/types/core/Auth/context.d.ts +56 -42
- package/dist/types/core/Auth/context.d.ts.map +1 -1
- package/dist/types/core/Auth/session/AuthSession.d.ts +62 -53
- package/dist/types/core/Auth/session/AuthSession.d.ts.map +1 -1
- package/dist/types/core/Auth/session/AuthSessionSpecification.d.ts +7 -4
- package/dist/types/core/Auth/session/AuthSessionSpecification.d.ts.map +1 -1
- package/dist/types/core/Auth/session/AuthSetupContext.d.ts +58 -43
- package/dist/types/core/Auth/session/AuthSetupContext.d.ts.map +1 -1
- package/dist/types/core/Auth/session/constants.d.ts +0 -3
- package/dist/types/core/Auth/session/constants.d.ts.map +1 -1
- package/dist/types/core/Auth/types.d.ts +6 -6
- package/dist/types/core/Auth/types.d.ts.map +1 -1
- package/dist/types/core/Context/CoreProvider.d.ts +1 -1
- package/dist/types/core/Context/CoreProvider.d.ts.map +1 -1
- package/dist/types/core/Context/types.d.ts +2 -0
- package/dist/types/core/Context/types.d.ts.map +1 -1
- package/dist/types/core/Http/http.d.ts.map +1 -1
- package/dist/types/core/Http/utils.d.ts.map +1 -1
- package/dist/types/core/Localization/Localization.d.ts.map +1 -1
- package/dist/types/core/Localization/datetime/restamper/utils.d.ts.map +1 -1
- package/dist/types/core/Localization/localization-utils.d.ts.map +1 -1
- package/dist/types/core/Localization/utils.d.ts +4 -4
- package/dist/types/core/Localization/utils.d.ts.map +1 -1
- package/dist/types/core/core.d.ts +3 -2
- package/dist/types/core/core.d.ts.map +1 -1
- package/dist/types/core/types.d.ts +4 -6
- package/dist/types/core/types.d.ts.map +1 -1
- package/dist/types/hooks/element/useClickOutside.d.ts +2 -1
- package/dist/types/hooks/element/useClickOutside.d.ts.map +1 -1
- package/dist/types/hooks/element/useDetachedRender.d.ts.map +1 -1
- package/dist/types/hooks/element/useFocusTrap.d.ts.map +1 -1
- package/dist/types/hooks/useImageUrl/useImageUrl.d.ts.map +1 -1
- package/dist/types/hooks/useMediaQuery/useMediaQuery.d.ts.map +1 -1
- package/dist/types/hooks/useModalDetails/useModalDetails.d.ts.map +1 -1
- package/dist/types/hooks/useMounted/useMounted.d.ts +1 -1
- package/dist/types/hooks/useMounted/useMounted.d.ts.map +1 -1
- package/dist/types/hooks/useReactiveState/useReactiveState.d.ts.map +1 -1
- package/dist/types/hooks/useReflex/useReflex.d.ts.map +1 -1
- package/dist/types/primitives/async/abortable/main.d.ts +1 -1
- package/dist/types/primitives/async/abortable/main.d.ts.map +1 -1
- package/dist/types/primitives/async/promisor/main.d.ts.map +1 -1
- package/dist/types/primitives/auxiliary/indexed/helpers.d.ts.map +1 -1
- package/dist/types/primitives/auxiliary/indexed/main.d.ts.map +1 -1
- package/dist/types/primitives/context/session/SessionContext.d.ts +6 -27
- package/dist/types/primitives/context/session/SessionContext.d.ts.map +1 -1
- package/dist/types/primitives/context/session/constants.d.ts +6 -3
- package/dist/types/primitives/context/session/constants.d.ts.map +1 -1
- package/dist/types/primitives/context/session/internal/autofresher.d.ts +7 -0
- package/dist/types/primitives/context/session/internal/autofresher.d.ts.map +1 -0
- package/dist/types/primitives/context/session/internal/constants.d.ts +5 -0
- package/dist/types/primitives/context/session/internal/constants.d.ts.map +1 -0
- package/dist/types/primitives/context/session/internal/deadline.d.ts +6 -0
- package/dist/types/primitives/context/session/internal/deadline.d.ts.map +1 -0
- package/dist/types/primitives/context/session/internal/refresher.d.ts +6 -0
- package/dist/types/primitives/context/session/internal/refresher.d.ts.map +1 -0
- package/dist/types/primitives/context/session/internal/types.d.ts +27 -0
- package/dist/types/primitives/context/session/internal/types.d.ts.map +1 -0
- package/dist/types/primitives/context/session/types.d.ts +8 -4
- package/dist/types/primitives/context/session/types.d.ts.map +1 -1
- package/dist/types/primitives/reactive/effectStack/main.d.ts.map +1 -1
- package/dist/types/primitives/reactive/reflex/helpers.d.ts.map +1 -1
- package/dist/types/primitives/reactive/reflex/main.d.ts.map +1 -1
- package/dist/types/primitives/reactive/watchlist/helpers.d.ts.map +1 -1
- package/dist/types/primitives/reactive/watchlist/main.d.ts +1 -1
- package/dist/types/primitives/reactive/watchlist/main.d.ts.map +1 -1
- package/dist/types/primitives/time/interval/main.d.ts.map +1 -1
- package/dist/types/primitives/time/today/main.d.ts.map +1 -1
- package/dist/types/translations/index.d.ts +108 -0
- package/dist/types/translations/index.d.ts.map +1 -1
- package/dist/types/types/api/endpoints.d.ts +18 -2
- package/dist/types/types/api/endpoints.d.ts.map +1 -1
- package/dist/types/types/api/models/index.d.ts +1 -0
- package/dist/types/types/api/models/index.d.ts.map +1 -1
- package/dist/types/types/api/models/reports.d.ts +4 -0
- package/dist/types/types/api/models/reports.d.ts.map +1 -0
- package/dist/types/types/api/resources/BalanceAccountsResource.d.ts +8 -8
- package/dist/types/types/api/resources/BalanceAccountsResource.d.ts.map +1 -1
- package/dist/types/types/api/resources/PayoutsResource.d.ts +19 -19
- package/dist/types/types/api/resources/PayoutsResource.d.ts.map +1 -1
- package/dist/types/types/api/resources/ReportsResource.d.ts +92 -0
- package/dist/types/types/api/resources/ReportsResource.d.ts.map +1 -0
- package/dist/types/types/api/resources/SetupResource.d.ts +1 -1
- package/dist/types/types/api/resources/SetupResource.d.ts.map +1 -1
- package/dist/types/types/api/resources/TransactionsResource.d.ts +25 -25
- package/dist/types/types/api/resources/TransactionsResource.d.ts.map +1 -1
- package/dist/types/utils/abort/constants.d.ts +5 -0
- package/dist/types/utils/abort/constants.d.ts.map +1 -0
- package/dist/types/utils/abort/internals.d.ts +4 -0
- package/dist/types/utils/abort/internals.d.ts.map +1 -0
- package/dist/types/utils/abort/main.d.ts +9 -0
- package/dist/types/utils/abort/main.d.ts.map +1 -0
- package/dist/types/utils/async/main.d.ts.map +1 -1
- package/dist/types/utils/collection/main.d.ts +1 -1
- package/dist/types/utils/collection/main.d.ts.map +1 -1
- package/dist/types/utils/common.d.ts +2 -2
- package/dist/types/utils/common.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/types/utils/preact/fixedForwardRef.d.ts +3 -3
- package/dist/types/utils/preact/fixedForwardRef.d.ts.map +1 -1
- package/dist/types/utils/struct/main.d.ts +1 -1
- package/dist/types/utils/struct/main.d.ts.map +1 -1
- package/dist/types/utils/struct/property.d.ts.map +1 -1
- package/dist/types/utils/value/is.d.ts +2 -2
- package/dist/types/utils/value/is.d.ts.map +1 -1
- package/dist/types/utils/value/number.d.ts.map +1 -1
- package/package.json +159 -106
- package/dist/es/primitives/auxiliary/abortSink/main.js +0 -42
- package/dist/types/core/Analytics/types.d.ts +0 -28
- package/dist/types/core/Analytics/types.d.ts.map +0 -1
- package/dist/types/primitives/auxiliary/abortSink/index.d.ts +0 -3
- package/dist/types/primitives/auxiliary/abortSink/index.d.ts.map +0 -1
- package/dist/types/primitives/auxiliary/abortSink/main.d.ts +0 -5
- package/dist/types/primitives/auxiliary/abortSink/main.d.ts.map +0 -1
- package/dist/types/primitives/auxiliary/abortSink/types.d.ts +0 -7
- package/dist/types/primitives/auxiliary/abortSink/types.d.ts.map +0 -1
- package/dist/types/types/api/resources/PaymentInstrumentsResource.d.ts +0 -70
- package/dist/types/types/api/resources/PaymentInstrumentsResource.d.ts.map +0 -1
package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.js
CHANGED
|
@@ -1,18 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import m from "../../factory.js";
|
|
2
|
+
import { nowTimestamp as a } from "../../utils.js";
|
|
3
|
+
import { startOfMonth as c } from "../../../utils.js";
|
|
4
|
+
import { clamp as i } from "../../../../../../../utils/value/number.js";
|
|
5
|
+
const p = Object.freeze([0, 1, 0, 0, 0, 0, -1]), h = (e = 0) => {
|
|
6
|
+
const o = ~~i(0, e, 1 / 0) || 0;
|
|
7
|
+
return m({
|
|
8
|
+
from: ({
|
|
9
|
+
now: n,
|
|
10
|
+
timezone: r,
|
|
11
|
+
systemToTimezone: s,
|
|
12
|
+
timezoneToSystem: f
|
|
13
|
+
}) => {
|
|
14
|
+
const t = new Date(f(c(n, r)));
|
|
15
|
+
return t.setMonth(t.getMonth() - o), s(t);
|
|
11
16
|
},
|
|
12
|
-
...
|
|
17
|
+
...o ? {
|
|
18
|
+
offsets: p
|
|
19
|
+
} : {
|
|
20
|
+
to: a
|
|
21
|
+
}
|
|
13
22
|
});
|
|
14
|
-
},
|
|
23
|
+
}, F = h;
|
|
15
24
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
25
|
+
p as ONE_MONTH_OFFSETS,
|
|
26
|
+
F as default
|
|
18
27
|
};
|
package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js
CHANGED
|
@@ -1,29 +1,33 @@
|
|
|
1
1
|
import p from "../../factory.js";
|
|
2
|
-
import { offsetsForNDays as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { offsetsForNDays as D, getRangeTimestampsContextIntegerPropertyFactory as y, nowTimestamp as F } from "../../utils.js";
|
|
3
|
+
import { startOfWeek as W } from "../../../utils.js";
|
|
4
|
+
import { clamp as g } from "../../../../../../../utils/value/number.js";
|
|
5
|
+
const r = 1, k = D(7), E = y(0, 6, r), T = (s = 0) => {
|
|
6
|
+
const e = ~~g(0, s, 1 / 0) || 0;
|
|
6
7
|
return (n = r) => {
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
8
|
+
const a = e ? {
|
|
9
|
+
offsets: k
|
|
10
|
+
} : {
|
|
11
|
+
to: F
|
|
12
|
+
}, o = E(n);
|
|
13
|
+
return p({
|
|
14
|
+
from: ({
|
|
15
|
+
now: f,
|
|
16
|
+
timezone: m,
|
|
17
|
+
systemToTimezone: c,
|
|
18
|
+
timezoneToSystem: i
|
|
19
|
+
}) => {
|
|
20
|
+
const t = new Date(i(W(f, m, o.value)));
|
|
21
|
+
return t.setDate(t.getDate() - e * 7), c(t);
|
|
20
22
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
...a
|
|
24
|
+
}, {
|
|
25
|
+
firstWeekDay: o.descriptor
|
|
26
|
+
})();
|
|
23
27
|
};
|
|
24
|
-
},
|
|
28
|
+
}, d = T;
|
|
25
29
|
export {
|
|
26
30
|
r as DEFAULT_FIRST_WEEK_DAY,
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
k as ONE_WEEK_OFFSETS,
|
|
32
|
+
d as default
|
|
29
33
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import r from "../factory.js";
|
|
2
|
+
import { nowTimestamp as a } from "../utils.js";
|
|
3
|
+
import { startOfYear as e } from "../../utils.js";
|
|
4
|
+
const m = r({
|
|
5
|
+
from: ({
|
|
6
|
+
now: t,
|
|
7
|
+
timezone: o
|
|
8
|
+
}) => e(t, o),
|
|
9
|
+
to: a
|
|
10
|
+
}), i = m;
|
|
10
11
|
export {
|
|
11
|
-
|
|
12
|
+
i as default
|
|
12
13
|
};
|
|
@@ -1,57 +1,55 @@
|
|
|
1
|
-
import { systemToTimezone as
|
|
2
|
-
import { clamp as
|
|
3
|
-
import { enumerable as m, getter as z, hasOwnProperty as
|
|
4
|
-
import { struct as
|
|
5
|
-
import { isUndefined as
|
|
6
|
-
const
|
|
7
|
-
systemToTimezone: m((
|
|
8
|
-
timezoneToSystem: m((
|
|
9
|
-
timezoneOffset: m((
|
|
10
|
-
}),
|
|
11
|
-
const
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
return
|
|
1
|
+
import { systemToTimezone as p, timezoneToSystem as g } from "../../../../../core/Localization/datetime/restamper/utils.js";
|
|
2
|
+
import { clamp as T, isBitSafeInteger as l } from "../../../../../utils/value/number.js";
|
|
3
|
+
import { enumerable as m, getter as z, hasOwnProperty as c } from "../../../../../utils/struct/property.js";
|
|
4
|
+
import { struct as u } from "../../../../../utils/struct/main.js";
|
|
5
|
+
import { isUndefined as d, isNullish as h, isFunction as w } from "../../../../../utils/value/is.js";
|
|
6
|
+
const O = (e) => Object.freeze({
|
|
7
|
+
systemToTimezone: m((t) => p(e, t)),
|
|
8
|
+
timezoneToSystem: m((t) => g(e, t)),
|
|
9
|
+
timezoneOffset: m((t) => e(t).offset)
|
|
10
|
+
}), V = (e, t, o = e) => {
|
|
11
|
+
const a = (n, i) => {
|
|
12
|
+
let s = n;
|
|
13
|
+
h(n) ? s = o : l(n) || (s = i ?? o);
|
|
14
|
+
const r = T(e, s, t);
|
|
15
|
+
return r === s ? r : i ?? o;
|
|
16
16
|
};
|
|
17
17
|
return (n) => {
|
|
18
|
-
const
|
|
19
|
-
let
|
|
20
|
-
return
|
|
21
|
-
value:
|
|
18
|
+
const i = z(() => s);
|
|
19
|
+
let s = a(n);
|
|
20
|
+
return u({
|
|
21
|
+
value: i,
|
|
22
22
|
descriptor: m({
|
|
23
|
-
...
|
|
24
|
-
set(
|
|
25
|
-
const
|
|
26
|
-
|
|
23
|
+
...i,
|
|
24
|
+
set(r) {
|
|
25
|
+
const f = s;
|
|
26
|
+
s = a(r, s), f !== s && (this.now = this.now);
|
|
27
27
|
}
|
|
28
28
|
})
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
}, x = (e, t) => (o) => w(o) ? o.call(e, t) : o, P = (e) => !c(e, "offsets"), S = (e) => c(e, "from"), j = ({
|
|
32
|
+
now: e
|
|
33
|
+
}) => e, U = (() => {
|
|
34
|
+
const e = /* @__PURE__ */ new Map();
|
|
35
|
+
return (t) => {
|
|
36
|
+
let o = e.get(t);
|
|
37
|
+
return d(o) && (o = Object.freeze([0, 0, t, 0, 0, 0, -1]), e.set(t, o)), o;
|
|
36
38
|
};
|
|
37
|
-
})(),
|
|
39
|
+
})(), W = (e) => {
|
|
38
40
|
try {
|
|
39
|
-
const
|
|
40
|
-
return isNaN(
|
|
41
|
+
const t = e instanceof Date || +e === e ? e : void 0, o = new Date(t).getTime();
|
|
42
|
+
return isNaN(o) ? void 0 : o;
|
|
41
43
|
} catch {
|
|
42
44
|
}
|
|
43
|
-
}
|
|
45
|
+
};
|
|
44
46
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
O as createRangeTimestampsConfigRestampingContext,
|
|
48
|
+
x as getRangeTimestampsConfigParameterUnwrapper,
|
|
49
|
+
V as getRangeTimestampsContextIntegerPropertyFactory,
|
|
48
50
|
S as isRangeTimestampsConfigWithFromOffsets,
|
|
49
51
|
P as isRangeTimestampsConfigWithoutOffsets,
|
|
50
52
|
j as nowTimestamp,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
c as startOfDay,
|
|
54
|
-
W as startOfMonth,
|
|
55
|
-
B as startOfWeekOffset,
|
|
56
|
-
_ as startOfYear
|
|
53
|
+
U as offsetsForNDays,
|
|
54
|
+
W as parseRangeTimestamp
|
|
57
55
|
};
|
|
@@ -16,27 +16,27 @@ var u = (i, t, s, T) => ({
|
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
import { RANGE_FROM as l, RANGE_TO as d } from "../constants.js";
|
|
19
|
-
import { computeTimestampOffset as o, getEdgesDistance as
|
|
19
|
+
import { computeTimestampOffset as o, getEdgesDistance as _ } from "../utils.js";
|
|
20
20
|
var p, h, m, a, r;
|
|
21
|
-
class
|
|
21
|
+
class w {
|
|
22
22
|
constructor(...t) {
|
|
23
23
|
n(this, p, 1 / 0);
|
|
24
24
|
n(this, h, 1 / 0);
|
|
25
25
|
n(this, m, -1 / 0);
|
|
26
26
|
n(this, a, 0);
|
|
27
27
|
n(this, r, 0);
|
|
28
|
-
if (t.length >=
|
|
29
|
-
let s = new Date(t[
|
|
30
|
-
if (typeof t[
|
|
31
|
-
f(this, m, s || e(this, m)), f(this, h, new Date(t[
|
|
28
|
+
if (t.length >= 3) {
|
|
29
|
+
let s = new Date(t[1]).getTime();
|
|
30
|
+
if (typeof t[2] != "symbol")
|
|
31
|
+
f(this, m, s || e(this, m)), f(this, h, new Date(t[2]).getTime() || e(this, h)), e(this, h) < e(this, m) && ([u(this, h)._, u(this, m)._] = [e(this, m), e(this, h)]), f(this, r, o(e(this, m), t[0])), f(this, a, o(e(this, h), t[0])), f(this, p, _(e(this, m), e(this, h), t[0]) + 1);
|
|
32
32
|
else if (!isNaN(s))
|
|
33
|
-
switch (t[
|
|
33
|
+
switch (t[2]) {
|
|
34
34
|
case d:
|
|
35
|
-
f(this, h, s), f(this, a, o(e(this, h)));
|
|
35
|
+
f(this, h, s), f(this, a, o(e(this, h), t[0]));
|
|
36
36
|
break;
|
|
37
37
|
case l:
|
|
38
38
|
default:
|
|
39
|
-
f(this, m, s), f(this, r, o(e(this, m)));
|
|
39
|
+
f(this, m, s), f(this, r, o(e(this, m), t[0]));
|
|
40
40
|
break;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -59,5 +59,5 @@ class N {
|
|
|
59
59
|
}
|
|
60
60
|
p = new WeakMap(), h = new WeakMap(), m = new WeakMap(), a = new WeakMap(), r = new WeakMap();
|
|
61
61
|
export {
|
|
62
|
-
|
|
62
|
+
w as default
|
|
63
63
|
};
|
|
@@ -1,23 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { RANGE_FROM as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import n from "./TimeSlice.js";
|
|
2
|
+
import { RANGE_FROM as c, RANGE_TO as l } from "../constants.js";
|
|
3
|
+
import { withTimezone as r } from "../utils.js";
|
|
4
|
+
import { struct as f } from "../../../../../utils/struct/main.js";
|
|
5
|
+
import { getter as o } from "../../../../../utils/struct/property.js";
|
|
6
|
+
const m = (...s) => {
|
|
7
|
+
let t = r().tz.current, e = new n(t, ...s);
|
|
8
|
+
return f({
|
|
9
|
+
from: o(() => e.startTimestamp, !1),
|
|
10
|
+
to: o(() => e.endTimestamp, !1),
|
|
9
11
|
offsets: {
|
|
10
|
-
value:
|
|
11
|
-
from:
|
|
12
|
-
to:
|
|
12
|
+
value: f({
|
|
13
|
+
from: o(() => e.startTimestampOffset, !1),
|
|
14
|
+
to: o(() => e.endTimestampOffset, !1)
|
|
13
15
|
})
|
|
14
16
|
},
|
|
15
|
-
span:
|
|
17
|
+
span: o(() => e.numberOfMonths, !1),
|
|
18
|
+
timezone: {
|
|
19
|
+
...o(() => t, !1),
|
|
20
|
+
set: (i) => {
|
|
21
|
+
const a = t;
|
|
22
|
+
t = r(i ?? void 0).tz.current, t !== a && (e = new n(t, ...s));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
16
25
|
});
|
|
17
|
-
},
|
|
26
|
+
}, p = m(), N = () => m(Date.now(), c), O = () => m(Date.now(), l), d = (...s) => s.length === 0 ? p : m(...s);
|
|
18
27
|
export {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
28
|
+
p as UNBOUNDED_SLICE,
|
|
29
|
+
d as default,
|
|
30
|
+
N as sinceNow,
|
|
31
|
+
O as untilNow
|
|
23
32
|
};
|
|
@@ -1,20 +1,68 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { BASE_FORMAT_OPTIONS as p, BASE_LOCALE as u } from "../../../../core/Localization/datetime/restamper/constants.js";
|
|
2
|
+
import { DEFAULT_DATETIME_FORMAT as f } from "../../../../core/Localization/constants/localization.js";
|
|
3
|
+
import O from "../../../../core/Localization/datetime/restamper/restamper.js";
|
|
4
|
+
import { timezoneToSystem as E, systemToTimezone as M } from "../../../../core/Localization/datetime/restamper/utils.js";
|
|
5
|
+
import { isInfinity as m, mod as g } from "../../../../utils/value/number.js";
|
|
6
|
+
import { identity as A } from "../../../../utils/common.js";
|
|
7
|
+
import { EMPTY_ARRAY as _, EMPTY_OBJECT as y } from "../../../../utils/value/constants.js";
|
|
8
|
+
import { isUndefined as S } from "../../../../utils/value/is.js";
|
|
9
|
+
const Y = /^(\d{2})\/(\d{2})\/(-?\d+),\s+(\d{2}):(\d{2}):(\d{2}).(\d{3})/, c = (t = A) => (e, o, ...n) => {
|
|
10
|
+
const s = d(o), r = new Date(E(s, e));
|
|
11
|
+
return r.setHours(0, 0, 0, 0), M(s, t(r, ...n));
|
|
12
|
+
}, z = c(), C = c((t) => t.setDate(1)), U = c((t) => t.setMonth(0, 1)), W = c((t, e) => {
|
|
13
|
+
const o = R(t.getDay(), e ?? 0);
|
|
14
|
+
return t.setDate(t.getDate() - o);
|
|
15
|
+
}), I = (t) => (t % 100 ? t % 4 : t % 400) === 0, Z = (t, e, o = 0) => {
|
|
16
|
+
const n = t + o, s = g(n, 12), r = e + Math.floor(n / 12);
|
|
17
|
+
let a = 31;
|
|
18
|
+
switch (s) {
|
|
19
|
+
case 1:
|
|
20
|
+
a = I(r) ? 29 : 28;
|
|
21
|
+
break;
|
|
22
|
+
case 3:
|
|
23
|
+
case 5:
|
|
24
|
+
case 8:
|
|
25
|
+
case 10:
|
|
26
|
+
a = 30;
|
|
27
|
+
break;
|
|
28
|
+
}
|
|
29
|
+
return [a, s, r];
|
|
30
|
+
}, R = (t, e = 0) => (7 - e + t) % 7, j = (t, e) => m(t) ? 0 : t - z(t, e), v = (t) => S(t) ? t : new Date(t), w = (t, e = y) => {
|
|
31
|
+
const o = d(e.timeZone), n = {
|
|
32
|
+
...f,
|
|
33
|
+
...e,
|
|
34
|
+
timeZone: o.tz.current
|
|
13
35
|
};
|
|
36
|
+
return new Date(t).toLocaleDateString(u, n);
|
|
37
|
+
}, i = (t, e) => {
|
|
38
|
+
const o = w(t, {
|
|
39
|
+
...p,
|
|
40
|
+
...f,
|
|
41
|
+
timeZone: e,
|
|
42
|
+
hour12: !1
|
|
43
|
+
}), [, n = "", s = "", r = "", a = "", D = "", T = "", h = ""] = o.match(Y) ?? _;
|
|
44
|
+
return [+r, +n - 1, +s, +a % 24, +D, +T, +h];
|
|
45
|
+
}, G = (t, e, o) => {
|
|
46
|
+
if (m(t) || m(e))
|
|
47
|
+
return 1 / 0;
|
|
48
|
+
const [n, s] = i(t, o), [r, a] = i(e, o);
|
|
49
|
+
return Math.abs(a - s + (r - n) * 12);
|
|
50
|
+
}, d = (() => {
|
|
51
|
+
const t = O();
|
|
52
|
+
return (e) => (t.tz = void 0, t.tz = e, t);
|
|
14
53
|
})();
|
|
15
54
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
55
|
+
j as computeTimestampOffset,
|
|
56
|
+
v as getDateObjectFromTimestamp,
|
|
57
|
+
G as getEdgesDistance,
|
|
58
|
+
Z as getMonthDays,
|
|
59
|
+
i as getTimezoneDateParts,
|
|
60
|
+
w as getTimezoneDateString,
|
|
61
|
+
R as getWeekDayIndex,
|
|
62
|
+
I as isLeapYear,
|
|
63
|
+
z as startOfDay,
|
|
64
|
+
C as startOfMonth,
|
|
65
|
+
W as startOfWeek,
|
|
66
|
+
U as startOfYear,
|
|
67
|
+
d as withTimezone
|
|
20
68
|
};
|
package/dist/es/components/internal/Calendar/components/CalendarControls/CalendarControls.js
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { memo as a } from "../../../../../external/preact/compat/dist/compat.module.js";
|
|
2
|
+
import { jsx as s } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
3
3
|
import l from "../../calendar/facade/index.js";
|
|
4
4
|
import { Fragment as i } from "../../../../../external/preact/dist/preact.module.js";
|
|
5
5
|
import { isFunction as c } from "../../../../../utils/value/is.js";
|
|
6
|
-
const e = ({
|
|
6
|
+
const e = ({
|
|
7
|
+
config: r,
|
|
8
|
+
grid: {
|
|
9
|
+
controls: t
|
|
10
|
+
},
|
|
11
|
+
renderer: o
|
|
12
|
+
}) => r.controls === l.controls.NONE || !c(o) ? null : s(i, {
|
|
13
|
+
children: t.map(([n, m]) => o(n, m))
|
|
14
|
+
}), g = a(e);
|
|
7
15
|
export {
|
|
8
16
|
g as default
|
|
9
17
|
};
|
|
@@ -1,23 +1,51 @@
|
|
|
1
|
-
import { jsx as e } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
1
|
import { memo as c, forwardRef as p } from "../../../../../external/preact/compat/dist/compat.module.js";
|
|
3
2
|
import h from "./CalendarGridDate.js";
|
|
4
3
|
import y from "./CalendarGridDayOfWeek.js";
|
|
5
4
|
import "../../Calendar.scss.js";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
import { jsx as e } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
6
|
+
const _ = p(({
|
|
7
|
+
cursorRootProps: t,
|
|
8
|
+
onlyCellsWithin: i,
|
|
9
|
+
prepare: d,
|
|
10
|
+
grid: r
|
|
11
|
+
}, s) => e("ol", {
|
|
12
|
+
className: "adyen-pe-calendar",
|
|
13
|
+
role: "none",
|
|
14
|
+
...t,
|
|
15
|
+
children: r.map((a) => e("li", {
|
|
16
|
+
className: "adyen-pe-calendar__month",
|
|
17
|
+
role: "none",
|
|
18
|
+
children: [e("div", {
|
|
19
|
+
className: "adyen-pe-calendar__month-name",
|
|
20
|
+
role: "none",
|
|
21
|
+
children: e("time", {
|
|
22
|
+
dateTime: a.datetime,
|
|
23
|
+
"aria-hidden": "true",
|
|
24
|
+
children: a.label
|
|
25
|
+
})
|
|
26
|
+
}), e("table", {
|
|
11
27
|
role: "grid",
|
|
12
28
|
"aria-multiselectable": !0,
|
|
13
29
|
"aria-label": `${a.label} calendar`,
|
|
14
30
|
className: "adyen-pe-calendar__grid",
|
|
15
|
-
style: {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
31
|
+
style: {
|
|
32
|
+
"--adyen-pe-calendar-rowspan": r.rowspan
|
|
33
|
+
},
|
|
34
|
+
children: [e("thead", {
|
|
35
|
+
children: e("tr", {
|
|
36
|
+
className: "adyen-pe-calendar__row",
|
|
37
|
+
children: r.weekdays.map((l, n) => e(y, {
|
|
38
|
+
grid: r,
|
|
39
|
+
block: a,
|
|
40
|
+
prepare: d,
|
|
41
|
+
cell: n,
|
|
42
|
+
...l
|
|
43
|
+
}, l.labels.long))
|
|
44
|
+
})
|
|
45
|
+
}), e("tbody", {
|
|
46
|
+
children: a.map((l, n) => e("tr", {
|
|
47
|
+
className: "adyen-pe-calendar__row",
|
|
48
|
+
children: l.map((m, o) => e(h, {
|
|
21
49
|
ref: s,
|
|
22
50
|
grid: r,
|
|
23
51
|
block: a,
|
|
@@ -26,13 +54,12 @@ const _ = p(({ cursorRootProps: t, onlyCellsWithin: i, prepare: d, grid: r }, s)
|
|
|
26
54
|
onlyCellsWithin: i,
|
|
27
55
|
row: n,
|
|
28
56
|
...m
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
] }, a.datetime)) })), C = c(_);
|
|
57
|
+
}, `${a.month}:${m.timestamp}`))
|
|
58
|
+
}, `${a.month}:${n}`))
|
|
59
|
+
})]
|
|
60
|
+
})]
|
|
61
|
+
}, a.datetime))
|
|
62
|
+
})), C = c(_);
|
|
36
63
|
export {
|
|
37
64
|
C as default
|
|
38
65
|
};
|
|
@@ -1,53 +1,71 @@
|
|
|
1
|
-
import { jsx as E } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
1
|
import { memo as u } from "../../../../../external/preact/compat/dist/compat.module.js";
|
|
3
2
|
import { propsProperty as w, property as n } from "./utils.js";
|
|
4
3
|
import { CalendarGridRenderToken as y } from "../../types.js";
|
|
4
|
+
import { jsx as E } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
5
5
|
import { memoComparator as N } from "../../../../../utils/preact/memoComparator/main.js";
|
|
6
6
|
import { fixedForwardRef as O } from "../../../../../utils/preact/fixedForwardRef.js";
|
|
7
7
|
import { getClassName as l } from "../../../../../utils/preact/className.js";
|
|
8
8
|
import { EMPTY_OBJECT as i } from "../../../../../utils/value/constants.js";
|
|
9
9
|
const T = "adyen-pe-calendar__cell adyen-pe-calendar__cell--date", _ = "adyen-pe-calendar__date", P = (a = i, r) => {
|
|
10
|
-
const d = w.unwrapped(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
className: ""
|
|
16
|
-
},
|
|
17
|
-
className: n.mutable(T),
|
|
18
|
-
props: {
|
|
19
|
-
...a,
|
|
20
|
-
children: n.restricted(),
|
|
21
|
-
className: ""
|
|
22
|
-
}
|
|
10
|
+
const d = w.unwrapped({
|
|
11
|
+
childClassName: n.mutable(_),
|
|
12
|
+
childProps: {
|
|
13
|
+
children: n.restricted(),
|
|
14
|
+
className: ""
|
|
23
15
|
},
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
const s = e.WITHIN_BLOCK, t = {
|
|
30
|
-
"data-cursor-position": m,
|
|
31
|
-
"data-within-month": s,
|
|
32
|
-
tabIndex: -1
|
|
33
|
-
};
|
|
34
|
-
if (s) {
|
|
35
|
-
const c = e.WITHIN_RANGE;
|
|
36
|
-
t["data-today"] = e.CURRENT, t["data-first-week-day"] = e.LINE_START, t["data-last-week-day"] = e.LINE_END, t["data-weekend"] = e.WEEKEND, t["data-first-month-day"] = e.BLOCK_START, t["data-last-month-day"] = e.BLOCK_END, t["data-within-range"] = c, c && (t["data-range-end"] = e.RANGE_END, t["data-range-start"] = e.RANGE_START, t["data-selection-end"] = e.SELECTION_END, t["data-selection-start"] = e.SELECTION_START, t["data-within-selection"] = e.WITHIN_SELECTION, t["aria-selected"] = `${!!(e.SELECTION_END || e.SELECTION_START || e.WITHIN_SELECTION)}`), m === +a.cursor && (t.ref = h);
|
|
16
|
+
className: n.mutable(T),
|
|
17
|
+
props: {
|
|
18
|
+
...a,
|
|
19
|
+
children: n.restricted(),
|
|
20
|
+
className: ""
|
|
37
21
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
22
|
+
}, !0);
|
|
23
|
+
return r == null || r(y.DATE, d), d;
|
|
24
|
+
}, G = O(({
|
|
25
|
+
grid: a,
|
|
26
|
+
prepare: r,
|
|
27
|
+
datetime: d,
|
|
28
|
+
flags: e,
|
|
29
|
+
index: m,
|
|
30
|
+
label: p,
|
|
31
|
+
onlyCellsWithin: C
|
|
32
|
+
}, h) => {
|
|
33
|
+
const s = e.WITHIN_BLOCK, t = {
|
|
34
|
+
"data-cursor-position": m,
|
|
35
|
+
"data-within-month": s,
|
|
36
|
+
tabIndex: -1
|
|
37
|
+
};
|
|
38
|
+
if (s) {
|
|
39
|
+
const c = e.WITHIN_RANGE;
|
|
40
|
+
t["data-today"] = e.CURRENT, t["data-first-week-day"] = e.LINE_START, t["data-last-week-day"] = e.LINE_END, t["data-weekend"] = e.WEEKEND, t["data-first-month-day"] = e.BLOCK_START, t["data-last-month-day"] = e.BLOCK_END, t["data-within-range"] = c, c && (t["data-range-end"] = e.RANGE_END, t["data-range-start"] = e.RANGE_START, t["data-selection-end"] = e.SELECTION_END, t["data-selection-start"] = e.SELECTION_START, t["data-within-selection"] = e.WITHIN_SELECTION, t["aria-selected"] = `${!!(e.SELECTION_END || e.SELECTION_START || e.WITHIN_SELECTION)}`), m === +a.cursor && (t.ref = h);
|
|
43
41
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
42
|
+
const o = P(t, r), {
|
|
43
|
+
children: x,
|
|
44
|
+
className: I,
|
|
45
|
+
...A
|
|
46
|
+
} = o.props || i, L = l(o.className, T, I);
|
|
47
|
+
return E("td", {
|
|
48
|
+
...A,
|
|
49
|
+
...t,
|
|
50
|
+
className: L,
|
|
51
|
+
children: (!C || s) && (() => {
|
|
52
|
+
const {
|
|
53
|
+
children: c,
|
|
54
|
+
className: S,
|
|
55
|
+
...D
|
|
56
|
+
} = o.childProps || i, R = l(o.childClassName, _, S);
|
|
57
|
+
return E("time", {
|
|
58
|
+
...D,
|
|
59
|
+
className: R,
|
|
60
|
+
dateTime: d,
|
|
61
|
+
children: p
|
|
62
|
+
});
|
|
63
|
+
})()
|
|
64
|
+
});
|
|
65
|
+
}), F = u(G, N({
|
|
66
|
+
block: N.exclude,
|
|
67
|
+
flags: (a) => +a
|
|
68
|
+
}));
|
|
51
69
|
export {
|
|
52
70
|
F as default
|
|
53
71
|
};
|