@adyen/adyen-platform-experience-web 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +69 -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 +161 -162
- 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 +42 -26
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +32 -24
- package/dist/es/components/internal/Calendar/calendar/timerange/factory.js +14 -9
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +13 -10
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.js +10 -2
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js +22 -15
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.js +5 -1
- package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +3 -1
- package/dist/es/components/internal/Calendar/calendar/timeslice/index.js +15 -5
- 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 +53 -45
- package/dist/es/components/internal/Calendar/hooks/useCalendarControlsRendering.js +33 -38
- package/dist/es/components/internal/Calendar/hooks/useTimezone.js +24 -8
- 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 +43 -25
- 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 +52 -47
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +54 -47
- 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 +117 -102
- 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 +4 -1
- 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 +9 -2
- 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/timerange/utils.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts.map +1 -1
- package/dist/types/components/internal/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/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/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/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 +158 -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
|
@@ -82,9 +82,9 @@ class St extends tt {
|
|
|
82
82
|
i(this, d).includes(t) && (p |= o.WEEKEND), t === 0 ? p |= o.LINE_START : t === 6 && (p |= o.LINE_END);
|
|
83
83
|
const R = {};
|
|
84
84
|
for (const c of it)
|
|
85
|
-
R[c] = b(
|
|
86
|
-
|
|
87
|
-
);
|
|
85
|
+
R[c] = b(e.toLocaleDateString(this.locale, {
|
|
86
|
+
weekday: c
|
|
87
|
+
}));
|
|
88
88
|
i(this, T)[t] = F({
|
|
89
89
|
flags: b(rt(p)),
|
|
90
90
|
labels: b(F(R))
|
|
@@ -101,42 +101,58 @@ class St extends tt {
|
|
|
101
101
|
}
|
|
102
102
|
getFormattedDataForFrameBlock(t) {
|
|
103
103
|
const e = new Date(t);
|
|
104
|
-
return [e.toLocaleDateString(this.locale, {
|
|
104
|
+
return [e.toLocaleDateString(this.locale, {
|
|
105
|
+
month: "long",
|
|
106
|
+
year: "numeric"
|
|
107
|
+
}), e.toISOString().slice(0, 7)];
|
|
105
108
|
}
|
|
106
109
|
getFrameBlockAtIndex(t) {
|
|
107
|
-
const [e, p, R] = j(this.origin, i(this, k), t), c = t > 0 ? this.getFrameBlockAtIndex(t - 1).inner.to + 1 : i(this, W), w = c + e - 1, H = Math.floor(c / 7) * 7, Y = this.dynamicBlockHeight ? Math.ceil((w + 1) / 7) * 7 : H + q, G = this.dynamicBlockHeight ? Y - H : q, J = new Proxy(
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
if (
|
|
112
|
-
const L =
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
let a = f === this.currentDayTimestamp ? o.CURRENT : 0;
|
|
116
|
-
return g === this.cursor && (a |= o.CURSOR), i(this, d).includes(x) && (a |= o.WEEKEND), x === 0 ? a |= o.LINE_START : x === i(this, u) - 1 && (a |= o.LINE_END), g >= c && g <= w && (g === c ? a |= o.BLOCK_START : g === w && (a |= o.BLOCK_END), a |= o.WITHIN_BLOCK), f >= this.fromTimestamp && f <= this.toTimestamp && (f === this.fromTimestamp && (a |= o.RANGE_START), f === this.toTimestamp && (a |= o.RANGE_END), a |= o.WITHIN_RANGE), f >= i(this, S) && f <= i(this, E) && (f === i(this, S) && (a |= o.SELECTION_START), f === i(this, E) && (a |= o.SELECTION_END), a |= o.WITHIN_SELECTION), [f, a];
|
|
117
|
-
}
|
|
110
|
+
const [e, p, R] = j(this.origin, i(this, k), t), c = t > 0 ? this.getFrameBlockAtIndex(t - 1).inner.to + 1 : i(this, W), w = c + e - 1, H = Math.floor(c / 7) * 7, Y = this.dynamicBlockHeight ? Math.ceil((w + 1) / 7) * 7 : H + q, G = this.dynamicBlockHeight ? Y - H : q, J = new Proxy(F(), ht({
|
|
111
|
+
get: (Q, v, V) => {
|
|
112
|
+
if (ot(v)) {
|
|
113
|
+
const L = +v;
|
|
114
|
+
if (mt(L) && L >= 0 && L < G) {
|
|
115
|
+
const g = H + L, f = this.getTimestampAtIndex(g), x = g % i(this, u);
|
|
116
|
+
let a = f === this.currentDayTimestamp ? o.CURRENT : 0;
|
|
117
|
+
return g === this.cursor && (a |= o.CURSOR), i(this, d).includes(x) && (a |= o.WEEKEND), x === 0 ? a |= o.LINE_START : x === i(this, u) - 1 && (a |= o.LINE_END), g >= c && g <= w && (g === c ? a |= o.BLOCK_START : g === w && (a |= o.BLOCK_END), a |= o.WITHIN_BLOCK), f >= this.fromTimestamp && f <= this.toTimestamp && (f === this.fromTimestamp && (a |= o.RANGE_START), f === this.toTimestamp && (a |= o.RANGE_END), a |= o.WITHIN_RANGE), f >= i(this, S) && f <= i(this, E) && (f === i(this, S) && (a |= o.SELECTION_START), f === i(this, E) && (a |= o.SELECTION_END), a |= o.WITHIN_SELECTION), [f, a];
|
|
118
118
|
}
|
|
119
|
-
return Reflect.get(Q, v, V);
|
|
120
119
|
}
|
|
121
|
-
|
|
122
|
-
|
|
120
|
+
return Reflect.get(Q, v, V);
|
|
121
|
+
}
|
|
122
|
+
}));
|
|
123
123
|
return ft(J, {
|
|
124
124
|
inner: {
|
|
125
125
|
value: F({
|
|
126
|
-
from: {
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
from: {
|
|
127
|
+
value: c
|
|
128
|
+
},
|
|
129
|
+
to: {
|
|
130
|
+
value: w
|
|
131
|
+
},
|
|
132
|
+
units: {
|
|
133
|
+
value: e
|
|
134
|
+
}
|
|
129
135
|
})
|
|
130
136
|
},
|
|
131
|
-
month: {
|
|
137
|
+
month: {
|
|
138
|
+
value: p
|
|
139
|
+
},
|
|
132
140
|
outer: {
|
|
133
141
|
value: F({
|
|
134
|
-
from: {
|
|
135
|
-
|
|
136
|
-
|
|
142
|
+
from: {
|
|
143
|
+
value: H
|
|
144
|
+
},
|
|
145
|
+
to: {
|
|
146
|
+
value: Y - 1
|
|
147
|
+
},
|
|
148
|
+
units: {
|
|
149
|
+
value: G
|
|
150
|
+
}
|
|
137
151
|
})
|
|
138
152
|
},
|
|
139
|
-
year: {
|
|
153
|
+
year: {
|
|
154
|
+
value: R
|
|
155
|
+
}
|
|
140
156
|
});
|
|
141
157
|
}
|
|
142
158
|
getUnitsForFrameBlockAtIndex(t) {
|
|
@@ -148,7 +148,12 @@ const b = class b {
|
|
|
148
148
|
set timeslice(s) {
|
|
149
149
|
if (s === t(this, E) || D(s) && t(this, E) === dt)
|
|
150
150
|
return;
|
|
151
|
-
const {
|
|
151
|
+
const {
|
|
152
|
+
from: e,
|
|
153
|
+
to: h,
|
|
154
|
+
span: o,
|
|
155
|
+
offsets: a
|
|
156
|
+
} = s;
|
|
152
157
|
i(this, E, s), i(this, q, e - a.from), i(this, G, h - a.to), i(this, J, o);
|
|
153
158
|
const d = z(t(this, l)) ? t(this, l) : Math.max(t(this, l), e), f = z(t(this, c)) ? t(this, c) : Math.min(t(this, c), h);
|
|
154
159
|
d === t(this, l) || f === t(this, c) ? (i(this, l, d), i(this, c, f)) : i(this, l, i(this, c, void 0)), this.reslice(), i(this, j, ut(12, this.numberOfBlocks)), i(this, u, ut(t(this, u), this.numberOfBlocks)), this.shiftFrameToTimestamp(t(this, _));
|
|
@@ -165,7 +170,10 @@ const b = class b {
|
|
|
165
170
|
refreshFrame(s = !1) {
|
|
166
171
|
var e;
|
|
167
172
|
if (t(this, U).length = 0, !(z(t(this, F)) || s)) {
|
|
168
|
-
const h = this.getFrameBlockAtIndex(t(this, g)), {
|
|
173
|
+
const h = this.getFrameBlockAtIndex(t(this, g)), {
|
|
174
|
+
from: o,
|
|
175
|
+
to: a
|
|
176
|
+
} = h.inner, [d] = n(this, C, A).call(this, this.getTimestampAtIndex(o + t(this, F)), !1);
|
|
169
177
|
i(this, F, this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(o), d));
|
|
170
178
|
const f = o + t(this, F), I = ct(o, f, a);
|
|
171
179
|
if (I > f)
|
|
@@ -267,7 +275,10 @@ w = new WeakMap(), g = new WeakMap(), $ = new WeakMap(), V = new WeakMap(), X =
|
|
|
267
275
|
let h = new Date(s).getTime();
|
|
268
276
|
if (isNaN(h))
|
|
269
277
|
return n(this, C, A).call(this, Date.now());
|
|
270
|
-
const {
|
|
278
|
+
const {
|
|
279
|
+
from: o,
|
|
280
|
+
to: a
|
|
281
|
+
} = t(this, E), d = ct(o, h, a);
|
|
271
282
|
d !== h && e ? (h = Yt(o, a), (isNaN(h) || ft(h)) && (h = d)) : h = d;
|
|
272
283
|
const f = Dt(h);
|
|
273
284
|
return [h - f, f];
|
|
@@ -278,28 +289,25 @@ w = new WeakMap(), g = new WeakMap(), $ = new WeakMap(), V = new WeakMap(), X =
|
|
|
278
289
|
if (!e)
|
|
279
290
|
return;
|
|
280
291
|
const h = `${e.year}-${`0${1 + e.month}`.slice(-2)}-01`, [o, a] = this.getFormattedDataForFrameBlock(new Date(h).setHours(12)), d = e.outer.from;
|
|
281
|
-
t(this, U)[s] = et(
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
(
|
|
290
|
-
const
|
|
291
|
-
return
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
label: k(Bt),
|
|
298
|
-
timestamp: k(H)
|
|
299
|
-
});
|
|
292
|
+
t(this, U)[s] = et({
|
|
293
|
+
datetime: k(a),
|
|
294
|
+
label: k(o),
|
|
295
|
+
length: k(Math.ceil(e.outer.units / this.rowspan)),
|
|
296
|
+
month: k(e.month),
|
|
297
|
+
year: k(e.year)
|
|
298
|
+
}, (f) => {
|
|
299
|
+
const I = f * this.rowspan;
|
|
300
|
+
return et(this.rowspan, (Z) => {
|
|
301
|
+
const [H, St] = e[Z + I], [Bt, Ct] = this.getFormattedDataForBlockCell(new Date(H).setHours(12));
|
|
302
|
+
return qt({
|
|
303
|
+
datetime: k(Ct),
|
|
304
|
+
flags: k($t(St)),
|
|
305
|
+
index: k(d + Z + I),
|
|
306
|
+
label: k(Bt),
|
|
307
|
+
timestamp: k(H)
|
|
300
308
|
});
|
|
301
|
-
}
|
|
302
|
-
);
|
|
309
|
+
});
|
|
310
|
+
});
|
|
303
311
|
}
|
|
304
312
|
return t(this, U)[s];
|
|
305
313
|
}
|
|
@@ -11,7 +11,11 @@ const $ = (C = u, D = u) => {
|
|
|
11
11
|
timezone: T,
|
|
12
12
|
...W(i)
|
|
13
13
|
}), m = E(s, f);
|
|
14
|
-
let {
|
|
14
|
+
let {
|
|
15
|
+
from: n,
|
|
16
|
+
to: r,
|
|
17
|
+
now: o
|
|
18
|
+
} = u;
|
|
15
19
|
const g = (p) => {
|
|
16
20
|
o = a(p ?? Date.now()) ?? o;
|
|
17
21
|
t: {
|
|
@@ -22,12 +26,7 @@ const $ = (C = u, D = u) => {
|
|
|
22
26
|
let t, e, w;
|
|
23
27
|
(w = b(s)) ? (t = new Date(n = a(m(s.from)) ?? o), e = 1) : (t = new Date(r = a(m(s.to)) ?? o), e = -1), t = new Date(f.timezoneToSystem(t));
|
|
24
28
|
const [F = 0, O = 0, x = 0, M = 0, S = 0, _ = 0, P = 0] = m(s.offsets);
|
|
25
|
-
t.setFullYear(t.getFullYear() + F * e, t.getMonth() + O * e, t.getDate() + x * e), t.setHours(
|
|
26
|
-
t.getHours() + M * e,
|
|
27
|
-
t.getMinutes() + S * e,
|
|
28
|
-
t.getSeconds() + _ * e,
|
|
29
|
-
t.getMilliseconds() + P * e
|
|
30
|
-
);
|
|
29
|
+
t.setFullYear(t.getFullYear() + F * e, t.getMonth() + O * e, t.getDate() + x * e), t.setHours(t.getHours() + M * e, t.getMinutes() + S * e, t.getSeconds() + _ * e, t.getMilliseconds() + P * e);
|
|
31
30
|
const z = a(f.systemToTimezone(t)) ?? o;
|
|
32
31
|
w ? r = z : n = z;
|
|
33
32
|
}
|
|
@@ -39,8 +38,14 @@ const $ = (C = u, D = u) => {
|
|
|
39
38
|
return g(), R({
|
|
40
39
|
...h,
|
|
41
40
|
from: c(() => n),
|
|
42
|
-
now: {
|
|
43
|
-
|
|
41
|
+
now: {
|
|
42
|
+
...l,
|
|
43
|
+
set: g
|
|
44
|
+
},
|
|
45
|
+
timezone: {
|
|
46
|
+
...T,
|
|
47
|
+
set: y
|
|
48
|
+
},
|
|
44
49
|
to: c(() => r)
|
|
45
50
|
});
|
|
46
51
|
};
|
|
@@ -2,17 +2,20 @@ import c from "../factory.js";
|
|
|
2
2
|
import { startOfDay as f, nowTimestamp as p, getRangeTimestampsContextIntegerPropertyFactory as y } from "../utils.js";
|
|
3
3
|
const g = 365, i = 1, u = 1, N = y(i, g, u), _ = (r) => {
|
|
4
4
|
const a = N(r);
|
|
5
|
-
return c(
|
|
6
|
-
{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
return c({
|
|
6
|
+
from: ({
|
|
7
|
+
now: s,
|
|
8
|
+
systemToTimezone: n,
|
|
9
|
+
timezoneToSystem: D
|
|
10
|
+
}) => {
|
|
11
|
+
const t = new Date(s), m = new Date(D(s)), e = t.getDate() - m.getDate();
|
|
12
|
+
let o = a.value - 1;
|
|
13
|
+
return e && (o += e > 1 ? -1 : e < -1 ? 1 : e), f(t), t.setDate(t.getDate() - o), n(t);
|
|
13
14
|
},
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
to: p
|
|
16
|
+
}, {
|
|
17
|
+
numberOfDays: a.descriptor
|
|
18
|
+
})();
|
|
16
19
|
}, A = _;
|
|
17
20
|
export {
|
|
18
21
|
u as DEFAULT_NUM_DAYS,
|
package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.js
CHANGED
|
@@ -4,12 +4,20 @@ import { clamp as p } from "../../../../../../../utils/value/number.js";
|
|
|
4
4
|
const M = Object.freeze([0, 1, 0, 0, 0, 0, -1]), g = (f = 0) => {
|
|
5
5
|
const e = ~~p(0, f, 1 / 0) || 0;
|
|
6
6
|
return c({
|
|
7
|
-
from: ({
|
|
7
|
+
from: ({
|
|
8
|
+
now: n,
|
|
9
|
+
systemToTimezone: r,
|
|
10
|
+
timezoneToSystem: m
|
|
11
|
+
}) => {
|
|
8
12
|
const t = new Date(n), a = new Date(m(n)), o = t.getMonth() - a.getMonth();
|
|
9
13
|
let s = e;
|
|
10
14
|
return o && (s += o > 1 ? -1 : o < -1 ? 1 : o), i(t), t.setMonth(t.getMonth() - s), r(t);
|
|
11
15
|
},
|
|
12
|
-
...e ? {
|
|
16
|
+
...e ? {
|
|
17
|
+
offsets: M
|
|
18
|
+
} : {
|
|
19
|
+
to: h
|
|
20
|
+
}
|
|
13
21
|
});
|
|
14
22
|
}, l = g;
|
|
15
23
|
export {
|
package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js
CHANGED
|
@@ -4,22 +4,29 @@ import { clamp as O } from "../../../../../../../utils/value/number.js";
|
|
|
4
4
|
const r = 1, T = F(7), _ = k(0, 6, r), u = (f = 0) => {
|
|
5
5
|
const s = ~~O(0, f, 1 / 0) || 0;
|
|
6
6
|
return (n = r) => {
|
|
7
|
-
const D = s ? {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
7
|
+
const D = s ? {
|
|
8
|
+
offsets: T
|
|
9
|
+
} : {
|
|
10
|
+
to: E
|
|
11
|
+
}, o = _(n);
|
|
12
|
+
return p({
|
|
13
|
+
from: ({
|
|
14
|
+
now: a,
|
|
15
|
+
systemToTimezone: c,
|
|
16
|
+
timezoneToSystem: i
|
|
17
|
+
}) => {
|
|
18
|
+
const t = new Date(a), m = new Date(i(a)), e = t.getDay() - m.getDay();
|
|
19
|
+
if (W(t), e) {
|
|
20
|
+
const g = e > 1 ? -1 : e < -1 ? 1 : e;
|
|
21
|
+
t.setDate(t.getDate() - g);
|
|
22
|
+
}
|
|
23
|
+
const y = d(o.value, t.getDay()) - s * 7;
|
|
24
|
+
return t.setDate(t.getDate() + y), c(t);
|
|
20
25
|
},
|
|
21
|
-
|
|
22
|
-
|
|
26
|
+
...D
|
|
27
|
+
}, {
|
|
28
|
+
firstWeekDay: o.descriptor
|
|
29
|
+
})();
|
|
23
30
|
};
|
|
24
31
|
}, w = u;
|
|
25
32
|
export {
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import m from "../factory.js";
|
|
2
2
|
import { startOfYear as l, nowTimestamp as n } from "../utils.js";
|
|
3
3
|
const c = m({
|
|
4
|
-
from: ({
|
|
4
|
+
from: ({
|
|
5
|
+
now: t,
|
|
6
|
+
systemToTimezone: a,
|
|
7
|
+
timezoneToSystem: r
|
|
8
|
+
}) => {
|
|
5
9
|
const e = new Date(t), o = new Date(r(t)), s = e.getFullYear() - o.getFullYear();
|
|
6
10
|
return l(e), e.setFullYear(e.getFullYear() - s), a(e);
|
|
7
11
|
},
|
|
@@ -28,7 +28,9 @@ const V = (t) => Object.freeze({
|
|
|
28
28
|
})
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
|
-
}, M = (t, e) => (s) => w(s) ? s.call(t, e) : s, P = (t) => !a(t, "offsets"), S = (t) => a(t, "from"), j = ({
|
|
31
|
+
}, M = (t, e) => (s) => w(s) ? s.call(t, e) : s, P = (t) => !a(t, "offsets"), S = (t) => a(t, "from"), j = ({
|
|
32
|
+
now: t
|
|
33
|
+
}) => t, D = (() => {
|
|
32
34
|
const t = /* @__PURE__ */ new Map();
|
|
33
35
|
return (e) => {
|
|
34
36
|
let s = t.get(e);
|
|
@@ -4,15 +4,25 @@ import { struct as s } from "../../../../../utils/struct/main.js";
|
|
|
4
4
|
const o = (...e) => {
|
|
5
5
|
const t = new m(...e);
|
|
6
6
|
return s({
|
|
7
|
-
from: {
|
|
8
|
-
|
|
7
|
+
from: {
|
|
8
|
+
value: t.startTimestamp
|
|
9
|
+
},
|
|
10
|
+
to: {
|
|
11
|
+
value: t.endTimestamp
|
|
12
|
+
},
|
|
9
13
|
offsets: {
|
|
10
14
|
value: s({
|
|
11
|
-
from: {
|
|
12
|
-
|
|
15
|
+
from: {
|
|
16
|
+
value: t.startTimestampOffset
|
|
17
|
+
},
|
|
18
|
+
to: {
|
|
19
|
+
value: t.endTimestampOffset
|
|
20
|
+
}
|
|
13
21
|
})
|
|
14
22
|
},
|
|
15
|
-
span: {
|
|
23
|
+
span: {
|
|
24
|
+
value: t.numberOfMonths
|
|
25
|
+
}
|
|
16
26
|
});
|
|
17
27
|
}, r = o(), l = () => o(Date.now(), n), u = () => o(Date.now(), a), p = (...e) => e.length === 0 ? r : o(...e);
|
|
18
28
|
export {
|
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
|
};
|