@adyen/adyen-platform-experience-web 1.4.2 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adyen-platform-experience-web.css +1 -1
- package/dist/{angle-right-C1JIrQTg.cjs → angle-right-DCDtBphj.cjs} +2 -2
- package/dist/{angle-right-C1JIrQTg.cjs.map → angle-right-DCDtBphj.cjs.map} +1 -1
- package/dist/{checkmark-B8DhX3p1.cjs → checkmark-BUtjcpAC.cjs} +2 -2
- package/dist/{checkmark-B8DhX3p1.cjs.map → checkmark-BUtjcpAC.cjs.map} +1 -1
- package/dist/{checkmark-circle-fill-CMpIlMCC.cjs → checkmark-circle-fill-CtUhQzOt.cjs} +2 -2
- package/dist/{checkmark-circle-fill-CMpIlMCC.cjs.map → checkmark-circle-fill-CtUhQzOt.cjs.map} +1 -1
- package/dist/{checkmark-square-fill-Cy8Hzt9P.cjs → checkmark-square-fill-Cpdn8YWp.cjs} +2 -2
- package/dist/{checkmark-square-fill-Cy8Hzt9P.cjs.map → checkmark-square-fill-Cpdn8YWp.cjs.map} +1 -1
- package/dist/{chevron-down-CB77LxQY.cjs → chevron-down-CEgNjZK_.cjs} +2 -2
- package/dist/{chevron-down-CB77LxQY.cjs.map → chevron-down-CEgNjZK_.cjs.map} +1 -1
- package/dist/{chevron-left-DMAmIvLF.cjs → chevron-left-BgN_rxGR.cjs} +2 -2
- package/dist/{chevron-left-DMAmIvLF.cjs.map → chevron-left-BgN_rxGR.cjs.map} +1 -1
- package/dist/{chevron-right-BxLJu7Zf.cjs → chevron-right-Jwt5BuB-.cjs} +2 -2
- package/dist/{chevron-right-BxLJu7Zf.cjs.map → chevron-right-Jwt5BuB-.cjs.map} +1 -1
- package/dist/{chevron-up-CT79XJdh.cjs → chevron-up-B_O0vmIX.cjs} +2 -2
- package/dist/{chevron-up-CT79XJdh.cjs.map → chevron-up-B_O0vmIX.cjs.map} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/{copy-7UpFtMvt.cjs → copy-DztEPGun.cjs} +2 -2
- package/dist/{copy-7UpFtMvt.cjs.map → copy-DztEPGun.cjs.map} +1 -1
- package/dist/{cross-DtVirgrN.cjs → cross-B9ojc3kB.cjs} +2 -2
- package/dist/{cross-DtVirgrN.cjs.map → cross-B9ojc3kB.cjs.map} +1 -1
- package/dist/{cross-circle-fill-C47yImD2.cjs → cross-circle-fill-Dy_LlcFp.cjs} +2 -2
- package/dist/{cross-circle-fill-C47yImD2.cjs.map → cross-circle-fill-Dy_LlcFp.cjs.map} +1 -1
- package/dist/da-DK-DAJvnb2s.cjs +2 -0
- package/dist/da-DK-DAJvnb2s.cjs.map +1 -0
- package/dist/de-DE-DFMmcoWN.cjs +2 -0
- package/dist/de-DE-DFMmcoWN.cjs.map +1 -0
- package/dist/{download-A1m1wB_K.cjs → download-DsN3U6Xn.cjs} +2 -2
- package/dist/{download-A1m1wB_K.cjs.map → download-DsN3U6Xn.cjs.map} +1 -1
- package/dist/es/components/external/CapitalOffer/components/CapitalOffer/CapitalOffer.js +14 -14
- package/dist/es/components/external/CapitalOffer/components/CapitalOfferSelection/CapitalOfferSelection.js +20 -20
- package/dist/es/components/external/CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.js +73 -62
- package/dist/es/components/external/CapitalOffer/components/utils/utils.js +16 -16
- package/dist/es/components/external/CapitalOverview/components/AccountDetails/AccountDetail.js +3 -3
- package/dist/es/components/external/CapitalOverview/components/AccountDetails/AccountDetails.js +3 -3
- package/dist/es/components/external/CapitalOverview/components/AccountDetails/utils.js +3 -3
- package/dist/es/components/external/CapitalOverview/components/GrantAction/GrantAction.js +6 -6
- package/dist/es/components/external/CapitalOverview/components/GrantAdjustmentDetails/constants.js +0 -1
- package/dist/es/components/external/CapitalOverview/components/GrantDetails/GrantDetails.js +2 -2
- package/dist/es/components/external/CapitalOverview/components/GrantItem/utils.js +14 -14
- package/dist/es/components/external/CapitalOverview/components/GrantList/GrantList.js +2 -2
- package/dist/es/components/external/CapitalOverview/components/GrantList/GrantsDisplay.js +4 -4
- package/dist/es/components/external/CapitalOverview/components/GrantRepaymentDetails/GrantRepaymentDetails.js +1 -1
- package/dist/es/components/external/CapitalOverview/components/PreQualified/PreQualified.js +13 -13
- package/dist/es/components/external/CapitalOverview/components/Unqualified.js +2 -2
- package/dist/es/components/external/CapitalOverview/constants.js +0 -1
- package/dist/es/components/external/PayoutDetails/components/PayoutData.js +21 -21
- package/dist/es/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.js +17 -17
- package/dist/es/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.js +4 -4
- package/dist/es/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.js +16 -16
- package/dist/es/components/external/ReportsOverview/components/ReportsTable/ReportsTable.js +1 -1
- package/dist/es/components/external/TransactionDetails/components/TransactionData/TransactionDataContent.js +20 -20
- package/dist/es/components/external/TransactionDetails/components/details/TransactionDataProperties.js +4 -4
- package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundAmount.js +8 -8
- package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundNotice.js +1 -1
- package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundReason.js +2 -2
- package/dist/es/components/external/TransactionDetails/context/details/context.js +10 -10
- package/dist/es/components/external/TransactionDetails/context/refund/context.js +1 -1
- package/dist/es/components/external/TransactionDetails/context/refund/hooks/useRefundContextLineItems.js +2 -2
- package/dist/es/components/external/TransactionDetails/hooks/useTransaction/transactionNavigator/createDuplexTransactionNavigator.js +20 -20
- package/dist/es/components/external/TransactionDetails/hooks/useTransaction/useTransaction.js +3 -3
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +2 -2
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +4 -4
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +3 -3
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +8 -8
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +66 -66
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +19 -19
- package/dist/es/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.js +3 -3
- package/dist/es/components/internal/Accordion/Accordion.js +10 -10
- package/dist/es/components/internal/Alert/Alert.js +1 -1
- package/dist/es/components/internal/Button/DownloadButton/DownloadButton.js +5 -5
- package/dist/es/components/internal/Button/hooks/useButton.js +7 -7
- package/dist/es/components/internal/Calendar/calendar/facade/Calendar.js +104 -104
- package/dist/es/components/internal/Calendar/calendar/facade/index.js +12 -12
- package/dist/es/components/internal/Calendar/calendar/timeframe/common/flags.js +14 -14
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +4 -4
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +58 -58
- package/dist/es/components/internal/Calendar/calendar/timerange/factory.js +4 -4
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +3 -3
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js +2 -2
- package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +7 -7
- package/dist/es/components/internal/Calendar/calendar/timeslice/index.js +6 -6
- package/dist/es/components/internal/Calendar/calendar/utils.js +22 -22
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +11 -11
- package/dist/es/components/internal/Calendar/components/CalendarGrid/utils.js +22 -22
- package/dist/es/components/internal/Calendar/hooks/useCalendar.js +7 -7
- package/dist/es/components/internal/Calendar/hooks/useTimezone.js +12 -12
- package/dist/es/components/internal/CapitalHeader/constants.js +4 -4
- package/dist/es/components/internal/CapitalHeader/helpers.js +14 -12
- package/dist/es/components/internal/Card/Card.js +9 -9
- package/dist/es/components/internal/DataGrid/DataGridCell.js +8 -8
- package/dist/es/components/internal/DataGrid/components/TableCells.js +16 -16
- package/dist/es/components/internal/DataOverviewDetails/DataOverviewDetails.js +13 -13
- package/dist/es/components/internal/DataOverviewDetails/useDataOverviewDetailsTitle.js +8 -8
- package/dist/es/components/internal/DataOverviewDisplay/DataDetailsModal.js +5 -5
- package/dist/es/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.js +3 -3
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +29 -29
- package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +1 -2
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +23 -23
- package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +2 -2
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +31 -31
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +33 -33
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +15 -15
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.js +2 -2
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilterCore.js +9 -9
- package/dist/es/components/internal/FormFields/InputBase.js +5 -5
- package/dist/es/components/internal/FormFields/Select/Select.js +15 -15
- package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +43 -43
- package/dist/es/components/internal/FormFields/Select/components/SelectList.js +14 -14
- package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +5 -5
- package/dist/es/components/internal/FormFields/Select/hooks/useSelect.js +2 -2
- package/dist/es/components/internal/Header/Header.js +4 -4
- package/dist/es/components/internal/Icon/Icon.js +3 -3
- package/dist/es/components/internal/Img/Img.js +2 -2
- package/dist/es/components/internal/Link/Link.js +2 -2
- package/dist/es/components/internal/Modal/Modal.js +4 -4
- package/dist/es/components/internal/Pagination/hooks/useCursorPagination.js +12 -12
- package/dist/es/components/internal/Pagination/hooks/usePagination.js +22 -22
- package/dist/es/components/internal/Popover/Popover.js +4 -4
- package/dist/es/components/internal/ProgressBar/ProgressBar.js +3 -3
- package/dist/es/components/internal/SVGIcons/Checkmark.js +3 -3
- package/dist/es/components/internal/SVGIcons/ChevronLeft.js +12 -10
- package/dist/es/components/internal/SVGIcons/ChevronRight.js +12 -10
- package/dist/es/components/internal/SVGIcons/CloseCircle.js +1 -1
- package/dist/es/components/internal/SegmentedControl/SegmentedControl.js +13 -13
- package/dist/es/components/internal/StructuredList/StructuredList.js +4 -4
- package/dist/es/components/internal/Translation/Translation.js +15 -15
- package/dist/es/components/utils/getErrorMessage.js +2 -2
- package/dist/es/constants/dateFormats.js +3 -3
- package/dist/es/core/ConfigContext/context.js +18 -18
- package/dist/es/core/ConfigContext/session/AuthSession.js +36 -36
- package/dist/es/core/ConfigContext/session/AuthSessionSpecification.js +7 -7
- package/dist/es/core/ConfigContext/session/SetupContext.js +5 -5
- package/dist/es/core/ConfigContext/session/constants.js +8 -8
- package/dist/es/core/ConfigContext/session/utils/sessionReady.js +5 -5
- package/dist/es/core/Http/utils.js +1 -1
- package/dist/es/core/Localization/Localization.js +32 -32
- package/dist/es/core/Localization/datetime/restamper/constants.js +3 -3
- package/dist/es/core/Localization/datetime/restamper/restamper.js +1 -1
- package/dist/es/core/Localization/utils.js +1 -1
- package/dist/es/core/core.js +1 -1
- package/dist/es/external/preact/compat/dist/compat.module.js +40 -40
- package/dist/es/external/preact/dist/preact.module.js +197 -195
- package/dist/es/external/preact/hooks/dist/hooks.module.js +71 -67
- package/dist/es/external/preact/jsx-runtime/dist/jsxRuntime.module.js +9 -9
- package/dist/es/hooks/element/useDetachedRender.js +11 -11
- package/dist/es/hooks/element/useFocusTrap.js +5 -5
- package/dist/es/hooks/useBalanceAccountSelection.js +10 -10
- package/dist/es/hooks/useCommitAction/useCommitAction.js +7 -7
- package/dist/es/hooks/useContainerQuery.js +4 -4
- package/dist/es/hooks/useCustomColumnsData.js +2 -2
- package/dist/es/hooks/useDefaultOverviewFilterParams.js +18 -18
- package/dist/es/hooks/useFetch.js +22 -22
- package/dist/es/hooks/useModalDetails/useModalDetails.js +7 -7
- package/dist/es/hooks/useMutation/useMutation.js +3 -3
- package/dist/es/hooks/useReactiveState/useReactiveState.js +21 -21
- package/dist/es/hooks/useResponsiveContainer.js +7 -10
- package/dist/es/hooks/useTabbedControl.js +9 -9
- package/dist/es/primitives/async/abortable/main.js +9 -9
- package/dist/es/primitives/async/deferred/main.js +1 -1
- package/dist/es/primitives/auxiliary/errorContainer/main.js +9 -9
- package/dist/es/primitives/auxiliary/indexed/helpers.js +4 -4
- package/dist/es/primitives/auxiliary/indexed/main.js +7 -7
- package/dist/es/primitives/context/session/internal/autofresher.js +15 -15
- package/dist/es/primitives/context/session/internal/deadline.js +22 -22
- package/dist/es/primitives/context/session/internal/refresher.js +19 -19
- package/dist/es/primitives/dom/tabbableRoot/tabbable.js +3 -3
- package/dist/es/primitives/reactive/eventEmitter/main.js +3 -3
- package/dist/es/primitives/reactive/reflex/main.js +22 -22
- package/dist/es/primitives/reactive/reflex/register.js +25 -25
- package/dist/es/primitives/reactive/watchlist/main.js +24 -24
- package/dist/es/primitives/time/clock/main.js +6 -6
- package/dist/es/primitives/time/interval/main.js +9 -9
- package/dist/es/translations/da-DK.json.js +55 -46
- package/dist/es/translations/de-DE.json.js +71 -62
- package/dist/es/translations/en-US.json.js +41 -38
- package/dist/es/translations/es-ES.json.js +79 -70
- package/dist/es/translations/fi-FI.json.js +97 -88
- package/dist/es/translations/fr-FR.json.js +75 -66
- package/dist/es/translations/it-IT.json.js +107 -98
- package/dist/es/translations/nl-NL.json.js +80 -71
- package/dist/es/translations/no-NO.json.js +67 -58
- package/dist/es/translations/pt-BR.json.js +71 -62
- package/dist/es/translations/sv-SE.json.js +95 -86
- package/dist/es/utils/abort/internals.js +3 -3
- package/dist/es/utils/abort/main.js +19 -19
- package/dist/es/utils/collection/main.js +14 -14
- package/dist/es/utils/datetime/main.js +3 -3
- package/dist/es/utils/preact/className.js +2 -2
- package/dist/es/utils/struct/main.js +8 -8
- package/dist/es/utils/value/is.js +9 -9
- package/dist/es/utils/value/number.js +2 -2
- package/dist/es-ES-DWJu_JsZ.cjs +2 -0
- package/dist/es-ES-DWJu_JsZ.cjs.map +1 -0
- package/dist/{external-link-Ct-WlQoY.cjs → external-link-DgHiKqPL.cjs} +2 -2
- package/dist/{external-link-Ct-WlQoY.cjs.map → external-link-DgHiKqPL.cjs.map} +1 -1
- package/dist/fi-FI-MXUK5vu0.cjs +2 -0
- package/dist/fi-FI-MXUK5vu0.cjs.map +1 -0
- package/dist/{filter-DwSaMAG7.cjs → filter-C7stlLTD.cjs} +2 -2
- package/dist/{filter-DwSaMAG7.cjs.map → filter-C7stlLTD.cjs.map} +1 -1
- package/dist/fr-FR-NK-BqBuh.cjs +2 -0
- package/dist/fr-FR-NK-BqBuh.cjs.map +1 -0
- package/dist/index-ejbaSyzM.cjs +12 -0
- package/dist/index-ejbaSyzM.cjs.map +1 -0
- package/dist/{info-filled-bhD2VGA2.cjs → info-filled-Bk8waEjd.cjs} +2 -2
- package/dist/{info-filled-bhD2VGA2.cjs.map → info-filled-Bk8waEjd.cjs.map} +1 -1
- package/dist/it-IT-CckThmyL.cjs +2 -0
- package/dist/it-IT-CckThmyL.cjs.map +1 -0
- package/dist/{minus-circle-outline-pNXlRjce.cjs → minus-circle-outline-8LuhQHmx.cjs} +2 -2
- package/dist/{minus-circle-outline-pNXlRjce.cjs.map → minus-circle-outline-8LuhQHmx.cjs.map} +1 -1
- package/dist/nl-NL-73Hql9dE.cjs +2 -0
- package/dist/nl-NL-73Hql9dE.cjs.map +1 -0
- package/dist/no-NO-C5RVnfc6.cjs +2 -0
- package/dist/no-NO-C5RVnfc6.cjs.map +1 -0
- package/dist/{plus-circle-outline-B3Ttq6A2.cjs → plus-circle-outline-x53czuRo.cjs} +2 -2
- package/dist/{plus-circle-outline-B3Ttq6A2.cjs.map → plus-circle-outline-x53czuRo.cjs.map} +1 -1
- package/dist/pt-BR-DR3yYVRn.cjs +2 -0
- package/dist/pt-BR-DR3yYVRn.cjs.map +1 -0
- package/dist/{square-C3hb1Bxz.cjs → square-BzY0pIfq.cjs} +2 -2
- package/dist/{square-C3hb1Bxz.cjs.map → square-BzY0pIfq.cjs.map} +1 -1
- package/dist/sv-SE-C92aO-iv.cjs +2 -0
- package/dist/sv-SE-C92aO-iv.cjs.map +1 -0
- package/dist/{trash-can-D2GRVBnJ.cjs → trash-can-oPrHRWRq.cjs} +2 -2
- package/dist/{trash-can-D2GRVBnJ.cjs.map → trash-can-oPrHRWRq.cjs.map} +1 -1
- package/dist/types/components/external/CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOffer/components/utils/utils.d.ts +1 -1
- package/dist/types/components/external/CapitalOffer/components/utils/utils.d.ts.map +1 -1
- package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts +71 -0
- package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts.map +1 -1
- package/dist/types/components/internal/CapitalHeader/constants.d.ts +2 -1
- package/dist/types/components/internal/CapitalHeader/constants.d.ts.map +1 -1
- package/dist/types/components/internal/CapitalHeader/helpers.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts +3 -3
- package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/CheckedBox.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/Checkmark.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronDown.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronLeft.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronLeft.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronRight.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronRight.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronUp.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/CloseCircle.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/Download.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/Download.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/UncheckedBox.d.ts +1 -1
- package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +1 -1
- package/dist/types/core/ConfigContext/context.d.ts +2 -0
- package/dist/types/core/ConfigContext/context.d.ts.map +1 -1
- package/dist/types/core/ConfigContext/session/AuthSession.d.ts +4 -0
- package/dist/types/core/ConfigContext/session/AuthSession.d.ts.map +1 -1
- package/dist/types/core/ConfigContext/session/SetupContext.d.ts +2 -0
- package/dist/types/core/ConfigContext/session/SetupContext.d.ts.map +1 -1
- package/dist/types/translations/index.d.ts +3 -0
- package/dist/types/translations/index.d.ts.map +1 -1
- package/dist/types/types/api/resources/CapitalResource.d.ts +1 -0
- package/dist/types/types/api/resources/CapitalResource.d.ts.map +1 -1
- package/dist/{upload-CeUcEWmW.cjs → upload-CEAJdOXV.cjs} +2 -2
- package/dist/{upload-CeUcEWmW.cjs.map → upload-CEAJdOXV.cjs.map} +1 -1
- package/dist/{warning-C2NpcmL8.cjs → warning-BzXJLvmN.cjs} +2 -2
- package/dist/{warning-C2NpcmL8.cjs.map → warning-BzXJLvmN.cjs.map} +1 -1
- package/dist/{warning-filled-Bo82QPPc.cjs → warning-filled-P8HTOKkP.cjs} +2 -2
- package/dist/{warning-filled-Bo82QPPc.cjs.map → warning-filled-P8HTOKkP.cjs.map} +1 -1
- package/package.json +15 -14
- package/dist/da-DK-DHGqGo8Q.cjs +0 -2
- package/dist/da-DK-DHGqGo8Q.cjs.map +0 -1
- package/dist/de-DE-k_BRPv7a.cjs +0 -2
- package/dist/de-DE-k_BRPv7a.cjs.map +0 -1
- package/dist/es-ES-Cy-9bm8z.cjs +0 -2
- package/dist/es-ES-Cy-9bm8z.cjs.map +0 -1
- package/dist/fi-FI-C7ICLuS8.cjs +0 -2
- package/dist/fi-FI-C7ICLuS8.cjs.map +0 -1
- package/dist/fr-FR-DH8euUOp.cjs +0 -2
- package/dist/fr-FR-DH8euUOp.cjs.map +0 -1
- package/dist/index-CpBGZ2AH.cjs +0 -12
- package/dist/index-CpBGZ2AH.cjs.map +0 -1
- package/dist/it-IT-DsfPVAun.cjs +0 -2
- package/dist/it-IT-DsfPVAun.cjs.map +0 -1
- package/dist/nl-NL-DP_t6EpF.cjs +0 -2
- package/dist/nl-NL-DP_t6EpF.cjs.map +0 -1
- package/dist/no-NO-ARsXLWv0.cjs +0 -2
- package/dist/no-NO-ARsXLWv0.cjs.map +0 -1
- package/dist/pt-BR-CuTqntp7.cjs +0 -2
- package/dist/pt-BR-CuTqntp7.cjs.map +0 -1
- package/dist/sv-SE-DDAIHLKD.cjs +0 -2
- package/dist/sv-SE-DDAIHLKD.cjs.map +0 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
var Ct = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var ot = (m) => {
|
|
3
3
|
throw TypeError(m);
|
|
4
4
|
};
|
|
5
5
|
var Rt = (m, s, i) => s in m ? Ct(m, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : m[s] = i;
|
|
6
|
-
var Z = (m, s, i) => Rt(m, typeof s != "symbol" ? s + "" : s, i), et = (m, s, i) => s.has(m) ||
|
|
7
|
-
var t = (m, s, i) => (et(m, s, "read from private field"), i ? i.call(m) : s.get(m)), h = (m, s, i) => s.has(m) ?
|
|
6
|
+
var Z = (m, s, i) => Rt(m, typeof s != "symbol" ? s + "" : s, i), et = (m, s, i) => s.has(m) || ot("Cannot " + i);
|
|
7
|
+
var t = (m, s, i) => (et(m, s, "read from private field"), i ? i.call(m) : s.get(m)), h = (m, s, i) => s.has(m) ? ot("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(m) : s.set(m, i), e = (m, s, i, n) => (et(m, s, "write to private field"), n ? n.call(m, i) : s.set(m, i), i), a = (m, s, i) => (et(m, s, "access private method"), i);
|
|
8
8
|
var M = (m, s, i, n) => ({
|
|
9
|
-
set _(
|
|
10
|
-
e(m, s,
|
|
9
|
+
set _(f) {
|
|
10
|
+
e(m, s, f, i);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
13
|
return t(m, s, n);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { resolveTimeFrameBlockSize as yt, downsizeTimeFrame as
|
|
16
|
+
import { resolveTimeFrameBlockSize as yt, downsizeTimeFrame as ft } from "../common/utils.js";
|
|
17
17
|
import At, { UNBOUNDED_SLICE as rt } from "../../timeslice/index.js";
|
|
18
18
|
import { computeTimestampOffset as Dt } from "../../utils.js";
|
|
19
|
-
import { FIRST_WEEK_DAYS as _t, DAY_MS as ct, SHIFT_FRAME as ht, SHIFT_PERIOD as bt, SHIFT_BLOCK as xt, CURSOR_NEXT_BLOCK as Lt, CURSOR_PREV_BLOCK as Ut, CURSOR_LINE_END as Nt, CURSOR_LINE_START as wt, CURSOR_BLOCK_END as zt, CURSOR_BLOCK_START as Wt, CURSOR_DOWNWARD as Mt, CURSOR_UPWARD as Ht, CURSOR_FORWARD as Kt, CURSOR_BACKWARD as
|
|
19
|
+
import { FIRST_WEEK_DAYS as _t, DAY_MS as ct, SHIFT_FRAME as ht, SHIFT_PERIOD as bt, SHIFT_BLOCK as xt, CURSOR_NEXT_BLOCK as Lt, CURSOR_PREV_BLOCK as Ut, CURSOR_LINE_END as Nt, CURSOR_LINE_START as wt, CURSOR_BLOCK_END as zt, CURSOR_BLOCK_START as Wt, CURSOR_DOWNWARD as Mt, CURSOR_UPWARD as Ht, CURSOR_FORWARD as Kt, CURSOR_BACKWARD as vt, SELECTION_COLLAPSE as Yt, SELECTION_NEAREST as lt, SELECTION_FARTHEST as ut, SELECTION_TO as dt, SELECTION_FROM as gt } from "../../constants.js";
|
|
20
20
|
import Vt from "../common/flags.js";
|
|
21
21
|
import { BASE_LOCALE as Xt } from "../../../../../../core/Localization/datetime/restamper/constants.js";
|
|
22
22
|
import { today as pt } from "../../../../../../primitives/time/today/main.js";
|
|
@@ -25,14 +25,14 @@ import { isUndefined as tt, isNullish as A, isBoolean as Ot, isFunction as jt }
|
|
|
25
25
|
import { isInfinity as nt, clamp as at, mid as qt, isBitSafeInteger as Ft, mod as Gt } from "../../../../../../utils/value/number.js";
|
|
26
26
|
import { enumerable as I } from "../../../../../../utils/struct/property.js";
|
|
27
27
|
import { struct as Jt } from "../../../../../../utils/struct/main.js";
|
|
28
|
-
var L, p, K,
|
|
28
|
+
var L, p, K, v, Y, V, k, F, B, U, N, w, D, S, X, u, c, l, z, E, _, W, T, j, q, R, C, G, J, st, it, r, Tt, It, b, Bt, O, H, mt;
|
|
29
29
|
const x = class x {
|
|
30
30
|
constructor() {
|
|
31
31
|
h(this, r);
|
|
32
32
|
h(this, p, 0);
|
|
33
33
|
h(this, K);
|
|
34
|
-
h(this,
|
|
35
|
-
h(this,
|
|
34
|
+
h(this, v);
|
|
35
|
+
h(this, Y, -1);
|
|
36
36
|
h(this, V, -1);
|
|
37
37
|
h(this, k);
|
|
38
38
|
h(this, F);
|
|
@@ -43,9 +43,9 @@ const x = class x {
|
|
|
43
43
|
h(this, D, []);
|
|
44
44
|
h(this, S, t(x, L));
|
|
45
45
|
h(this, X, 12);
|
|
46
|
-
h(this,
|
|
46
|
+
h(this, u);
|
|
47
47
|
h(this, c);
|
|
48
|
-
h(this,
|
|
48
|
+
h(this, l, 1);
|
|
49
49
|
h(this, z);
|
|
50
50
|
h(this, E);
|
|
51
51
|
h(this, _);
|
|
@@ -61,7 +61,7 @@ const x = class x {
|
|
|
61
61
|
Z(this, "origin");
|
|
62
62
|
Z(this, "originTimestamp");
|
|
63
63
|
h(this, st, $(() => this.daysInWeek, this.getDayOfWeekAtIndex.bind(this)));
|
|
64
|
-
h(this, it, $(() => t(this,
|
|
64
|
+
h(this, it, $(() => t(this, l), a(this, r, Bt).bind(this)));
|
|
65
65
|
}
|
|
66
66
|
get fromTimestamp() {
|
|
67
67
|
return t(this, j);
|
|
@@ -73,7 +73,7 @@ const x = class x {
|
|
|
73
73
|
return t(this, G);
|
|
74
74
|
}
|
|
75
75
|
get blankSelection() {
|
|
76
|
-
return t(this,
|
|
76
|
+
return t(this, u) === t(this, c) && tt(t(this, c));
|
|
77
77
|
}
|
|
78
78
|
get cursor() {
|
|
79
79
|
return t(this, k) ?? -1;
|
|
@@ -102,7 +102,7 @@ const x = class x {
|
|
|
102
102
|
return t(this, it);
|
|
103
103
|
}
|
|
104
104
|
get isAtEnd() {
|
|
105
|
-
return !nt(t(this, C)) && t(this, C) === t(this,
|
|
105
|
+
return !nt(t(this, C)) && t(this, C) === t(this, l) - 1;
|
|
106
106
|
}
|
|
107
107
|
get isAtStart() {
|
|
108
108
|
return !nt(t(this, R)) && t(this, R) === 0;
|
|
@@ -123,25 +123,25 @@ const x = class x {
|
|
|
123
123
|
t(this, S) !== i && this.refreshFrame(!0);
|
|
124
124
|
}
|
|
125
125
|
get selectionStart() {
|
|
126
|
-
return t(this,
|
|
126
|
+
return t(this, u);
|
|
127
127
|
}
|
|
128
128
|
get selectionEnd() {
|
|
129
129
|
return t(this, c);
|
|
130
130
|
}
|
|
131
131
|
get size() {
|
|
132
|
-
return t(this,
|
|
132
|
+
return t(this, l);
|
|
133
133
|
}
|
|
134
134
|
set size(s) {
|
|
135
135
|
const i = Math.min(!A(s) && yt(s) || 1, t(this, X));
|
|
136
|
-
t(this,
|
|
136
|
+
t(this, l) !== e(this, l, i) && (a(this, r, mt).call(this), this.refreshFrame());
|
|
137
137
|
}
|
|
138
138
|
get timeslice() {
|
|
139
139
|
return t(this, E);
|
|
140
140
|
}
|
|
141
141
|
set timeslice(s) {
|
|
142
142
|
if (s === t(this, z) || A(s) && t(this, z) === rt) return;
|
|
143
|
-
const { from: i, to: n, timezone:
|
|
144
|
-
e(this, E, At(i, n)), this.timezone =
|
|
143
|
+
const { from: i, to: n, timezone: f } = e(this, z, s ?? rt);
|
|
144
|
+
e(this, E, At(i, n)), this.timezone = f;
|
|
145
145
|
}
|
|
146
146
|
get timezone() {
|
|
147
147
|
return t(this, _);
|
|
@@ -161,16 +161,16 @@ const x = class x {
|
|
|
161
161
|
refreshFrame(s = !1) {
|
|
162
162
|
var i;
|
|
163
163
|
if (t(this, D).length = 0, !(tt(t(this, F)) || s)) {
|
|
164
|
-
const n = this.getFrameBlockAtIndex(t(this, p)), { from:
|
|
165
|
-
e(this, F, this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(
|
|
166
|
-
const d =
|
|
164
|
+
const n = this.getFrameBlockAtIndex(t(this, p)), { from: f, to: o } = n.inner, [g] = a(this, r, b).call(this, this.getTimestampAtIndex(f + t(this, F)), !1);
|
|
165
|
+
e(this, F, this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(f), g));
|
|
166
|
+
const d = f + t(this, F), y = at(f, d, o);
|
|
167
167
|
if (y > d)
|
|
168
|
-
return e(this, F, this.getUnitsForFrameBlockAtIndex(--M(this, p)._) + d - y), t(this, p) >= 0 ? this.refreshFrame() : (e(this, p, t(this,
|
|
168
|
+
return e(this, F, this.getUnitsForFrameBlockAtIndex(--M(this, p)._) + d - y), t(this, p) >= 0 ? this.refreshFrame() : (e(this, p, t(this, l) - 1), this.shiftFrameByOffset(-1, ht));
|
|
169
169
|
if (y < d)
|
|
170
|
-
return e(this, F, d - y - 1), ++M(this, p)._ < t(this,
|
|
171
|
-
e(this, K,
|
|
172
|
-
const P = t(this, p) > 0 ? this.getFrameBlockAtIndex(0) : n, Q = t(this, p) < t(this,
|
|
173
|
-
e(this,
|
|
170
|
+
return e(this, F, d - y - 1), ++M(this, p)._ < t(this, l) ? this.refreshFrame() : (e(this, p, 0), this.shiftFrameByOffset(1, ht));
|
|
171
|
+
e(this, K, f), e(this, v, o), e(this, B, a(this, r, b).call(this, this.getTimestampAtIndex(d), !1)[0]), e(this, F, this.getCursorBlockOriginTimestampOffset(t(this, B))), e(this, k, f + t(this, F));
|
|
172
|
+
const P = t(this, p) > 0 ? this.getFrameBlockAtIndex(0) : n, Q = t(this, p) < t(this, l) - 1 ? this.getFrameBlockAtIndex(t(this, l) - 1) : n;
|
|
173
|
+
e(this, Y, P.inner.from), e(this, V, Q.inner.to), e(this, J, Q.outer.to + 1);
|
|
174
174
|
}
|
|
175
175
|
this.withCurrentDayTimestamp(), (i = t(this, N)) == null || i.call(this);
|
|
176
176
|
}
|
|
@@ -183,12 +183,12 @@ const x = class x {
|
|
|
183
183
|
return a(this, r, H).call(this, s * 12);
|
|
184
184
|
case ht:
|
|
185
185
|
default:
|
|
186
|
-
return a(this, r, H).call(this, s * t(this,
|
|
186
|
+
return a(this, r, H).call(this, s * t(this, l));
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
shiftFrameCursor(s) {
|
|
190
190
|
switch (s) {
|
|
191
|
-
case
|
|
191
|
+
case vt:
|
|
192
192
|
return a(this, r, O).call(this, -1);
|
|
193
193
|
case Kt:
|
|
194
194
|
return a(this, r, O).call(this, 1);
|
|
@@ -199,7 +199,7 @@ const x = class x {
|
|
|
199
199
|
case Wt:
|
|
200
200
|
return a(this, r, O).call(this, t(this, K) - t(this, k));
|
|
201
201
|
case zt:
|
|
202
|
-
return a(this, r, O).call(this, t(this,
|
|
202
|
+
return a(this, r, O).call(this, t(this, v) - t(this, k));
|
|
203
203
|
case wt:
|
|
204
204
|
return a(this, r, O).call(this, -(t(this, k) % this.rowspan));
|
|
205
205
|
case Nt:
|
|
@@ -209,61 +209,61 @@ const x = class x {
|
|
|
209
209
|
case Lt:
|
|
210
210
|
return a(this, r, O).call(this, this.getUnitsForFrameBlockAtIndex(t(this, p) ?? 0));
|
|
211
211
|
}
|
|
212
|
-
if (!(s < 0) && s >= t(this,
|
|
212
|
+
if (!(s < 0) && s >= t(this, Y) && s <= t(this, V))
|
|
213
213
|
return a(this, r, O).call(this, s - t(this, k));
|
|
214
214
|
}
|
|
215
215
|
shiftFrameToTimestamp(s) {
|
|
216
216
|
e(this, B, this.originTimestamp = a(this, r, b).call(this, s, !1).reduce((i, n) => i + n)), e(this, F, this.getCursorBlockOriginTimestampOffset(t(this, B))), this.reoriginate(), [M(this, R)._, M(this, C)._] = this.getEdgeBlockOffsetsFromOrigin(), a(this, r, mt).call(this), this.refreshFrame(), a(this, r, O).call(this, this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(t(this, k)), t(this, B)));
|
|
217
217
|
}
|
|
218
218
|
clearSelection() {
|
|
219
|
-
this.blankSelection || (e(this,
|
|
219
|
+
this.blankSelection || (e(this, u, e(this, c, void 0)), this.refreshFrame(!0));
|
|
220
220
|
}
|
|
221
221
|
updateSelection(s, i) {
|
|
222
|
-
const n = t(this,
|
|
223
|
-
switch (i ===
|
|
222
|
+
const n = t(this, u), f = t(this, c), o = a(this, r, b).call(this, s, !1).reduce((g, d) => g + d);
|
|
223
|
+
switch (i === ut && (o <= n ? i = dt : o >= f && (i = gt)), i) {
|
|
224
224
|
case gt:
|
|
225
|
-
e(this,
|
|
225
|
+
e(this, u, o), e(this, c, Math.max(t(this, u), f ?? o));
|
|
226
226
|
break;
|
|
227
227
|
case dt:
|
|
228
|
-
e(this, c,
|
|
228
|
+
e(this, c, o), e(this, u, Math.min(n ?? o, t(this, c)));
|
|
229
229
|
break;
|
|
230
|
-
case
|
|
231
|
-
case
|
|
232
|
-
let g = Math.abs(
|
|
233
|
-
i ===
|
|
230
|
+
case ut:
|
|
231
|
+
case lt: {
|
|
232
|
+
let g = Math.abs(o - (n ?? o)), d = Math.abs(o - (f ?? o));
|
|
233
|
+
i === lt && ([g, d] = [d, g]), g > d ? e(this, u, o) : e(this, c, o);
|
|
234
234
|
break;
|
|
235
235
|
}
|
|
236
|
-
case
|
|
236
|
+
case Yt:
|
|
237
237
|
default:
|
|
238
|
-
e(this,
|
|
238
|
+
e(this, u, e(this, c, o));
|
|
239
239
|
break;
|
|
240
240
|
}
|
|
241
|
-
(t(this,
|
|
241
|
+
(t(this, u) !== n || t(this, c) !== f) && this.refreshFrame(!0);
|
|
242
242
|
}
|
|
243
243
|
};
|
|
244
|
-
L = new WeakMap(), p = new WeakMap(), K = new WeakMap(),
|
|
245
|
-
const { from: s, to: i, span: n, offsets:
|
|
246
|
-
e(this, j, s -
|
|
247
|
-
const
|
|
248
|
-
|
|
244
|
+
L = new WeakMap(), p = new WeakMap(), K = new WeakMap(), v = new WeakMap(), Y = new WeakMap(), V = new WeakMap(), k = new WeakMap(), F = new WeakMap(), B = new WeakMap(), U = new WeakMap(), N = new WeakMap(), w = new WeakMap(), D = new WeakMap(), S = new WeakMap(), X = new WeakMap(), u = new WeakMap(), c = new WeakMap(), l = new WeakMap(), z = new WeakMap(), E = new WeakMap(), _ = new WeakMap(), W = new WeakMap(), T = new WeakMap(), j = new WeakMap(), q = new WeakMap(), R = new WeakMap(), C = new WeakMap(), G = new WeakMap(), J = new WeakMap(), st = new WeakMap(), it = new WeakMap(), r = new WeakSet(), Tt = function() {
|
|
245
|
+
const { from: s, to: i, span: n, offsets: f } = t(this, E);
|
|
246
|
+
e(this, j, s - f.from), e(this, q, i - f.to), e(this, G, n);
|
|
247
|
+
const o = tt(t(this, u)) ? t(this, u) : Math.max(t(this, u), s), g = tt(t(this, c)) ? t(this, c) : Math.min(t(this, c), i);
|
|
248
|
+
o === t(this, u) || g === t(this, c) ? (e(this, u, o), e(this, c, g)) : e(this, u, e(this, c, void 0)), this.reslice(), e(this, X, ft(12, this.numberOfBlocks)), e(this, l, ft(t(this, l), this.numberOfBlocks)), this.shiftFrameToTimestamp(t(this, B));
|
|
249
249
|
}, It = function(s) {
|
|
250
|
-
return at(t(this, R), s || 0, t(this, C) - t(this,
|
|
250
|
+
return at(t(this, R), s || 0, t(this, C) - t(this, l) + 1);
|
|
251
251
|
}, b = function(s, i = !0) {
|
|
252
252
|
let n = new Date(s).getTime();
|
|
253
253
|
if (isNaN(n)) return a(this, r, b).call(this, Date.now());
|
|
254
|
-
const { from:
|
|
255
|
-
g !== n && i ? (n = qt(
|
|
254
|
+
const { from: f, to: o } = t(this, E), g = at(f, n, o);
|
|
255
|
+
g !== n && i ? (n = qt(f, o), (isNaN(n) || nt(n)) && (n = g)) : n = g;
|
|
256
256
|
const d = Dt(n, t(this, _));
|
|
257
257
|
return [n - d, d];
|
|
258
258
|
}, Bt = function(s) {
|
|
259
|
-
if (Ft(s) && s >= 0 && s < t(this,
|
|
259
|
+
if (Ft(s) && s >= 0 && s < t(this, l)) {
|
|
260
260
|
if (!t(this, D)[s]) {
|
|
261
261
|
const i = this.getFrameBlockAtIndex(s);
|
|
262
262
|
if (!i) return;
|
|
263
|
-
const [n,
|
|
263
|
+
const [n, f] = this.getFormattedDataForFrameBlock(i[i.inner.from][0] + ct / 2), o = i.outer.from;
|
|
264
264
|
t(this, D)[s] = $(
|
|
265
265
|
{
|
|
266
|
-
datetime: I(
|
|
266
|
+
datetime: I(f),
|
|
267
267
|
label: I(n),
|
|
268
268
|
length: I(Math.ceil(i.outer.units / this.rowspan)),
|
|
269
269
|
month: I(i.month),
|
|
@@ -276,7 +276,7 @@ L = new WeakMap(), p = new WeakMap(), K = new WeakMap(), Y = new WeakMap(), v =
|
|
|
276
276
|
return Jt({
|
|
277
277
|
datetime: I(Et),
|
|
278
278
|
flags: I(Vt(Q)),
|
|
279
|
-
index: I(
|
|
279
|
+
index: I(o + y + d),
|
|
280
280
|
label: I(St),
|
|
281
281
|
timestamp: I(P)
|
|
282
282
|
});
|
|
@@ -290,9 +290,9 @@ L = new WeakMap(), p = new WeakMap(), K = new WeakMap(), Y = new WeakMap(), v =
|
|
|
290
290
|
s !== 0 && (e(this, F, t(this, F) + s), this.refreshFrame());
|
|
291
291
|
}, H = function(s) {
|
|
292
292
|
const i = a(this, r, It).call(this, s);
|
|
293
|
-
i && (this.shiftOrigin(i), e(this, R, t(this, R) - i), e(this, C, t(this, C) - i), e(this, p, Gt(t(this, p) - i, t(this,
|
|
293
|
+
i && (this.shiftOrigin(i), e(this, R, t(this, R) - i), e(this, C, t(this, C) - i), e(this, p, Gt(t(this, p) - i, t(this, l))), this.refreshFrame());
|
|
294
294
|
}, mt = function() {
|
|
295
|
-
const s = t(this,
|
|
295
|
+
const s = t(this, l) - 1, i = Math.min(s - this.origin % t(this, l), t(this, C)) - s;
|
|
296
296
|
i && a(this, r, H).call(this, i);
|
|
297
297
|
}, h(x, L, Xt);
|
|
298
298
|
let kt = x;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { createRangeTimestampsConfigRestampingContext as W, parseRangeTimestamp as i, isRangeTimestampsConfigWithoutOffsets as Y,
|
|
1
|
+
import { createRangeTimestampsConfigRestampingContext as W, parseRangeTimestamp as i, isRangeTimestampsConfigWithoutOffsets as Y, getRangeTimestampsConfigParameterUnwrapper as b, isRangeTimestampsConfigWithFromOffsets as E } from "./utils.js";
|
|
2
2
|
import H from "../../../../../core/Localization/datetime/restamper/restamper.js";
|
|
3
|
+
import { EMPTY_OBJECT as u } from "../../../../../utils/value/constants.js";
|
|
3
4
|
import { asPlainObject as d, struct as C } from "../../../../../utils/struct/main.js";
|
|
4
5
|
import { getter as c } from "../../../../../utils/struct/property.js";
|
|
5
|
-
import { EMPTY_OBJECT as u } from "../../../../../utils/value/constants.js";
|
|
6
6
|
const U = (R = u, D = u) => {
|
|
7
7
|
const s = d(R), h = d(D);
|
|
8
8
|
return () => {
|
|
@@ -10,7 +10,7 @@ const U = (R = u, D = u) => {
|
|
|
10
10
|
now: l,
|
|
11
11
|
timezone: w,
|
|
12
12
|
...W(a)
|
|
13
|
-
}), m =
|
|
13
|
+
}), m = b(s, f);
|
|
14
14
|
let { from: n, to: r, now: o } = u;
|
|
15
15
|
const g = (p) => {
|
|
16
16
|
o = i(p ?? Date.now()) ?? o;
|
|
@@ -20,7 +20,7 @@ const U = (R = u, D = u) => {
|
|
|
20
20
|
break t;
|
|
21
21
|
}
|
|
22
22
|
let t, e, T;
|
|
23
|
-
(T =
|
|
23
|
+
(T = E(s)) ? (t = new Date(n = i(m(s.from)) ?? o), e = 1) : (t = new Date(r = i(m(s.to)) ?? o), e = -1), t = new Date(f.timezoneToSystem(t));
|
|
24
24
|
const [F = 0, O = 0, x = 0, M = 0, S = 0, _ = 0, P = 0] = m(s.offsets);
|
|
25
25
|
t.setFullYear(t.getFullYear() + F * e, t.getMonth() + O * e, t.getDate() + x * e), t.setHours(
|
|
26
26
|
t.getHours() + M * e,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import m from "../factory.js";
|
|
2
|
-
import {
|
|
2
|
+
import { getRangeTimestampsContextIntegerPropertyFactory as D, nowTimestamp as c } from "../utils.js";
|
|
3
3
|
import { startOfDay as f } from "../../utils.js";
|
|
4
|
-
const p = 365, y = 1, i = 1, u =
|
|
4
|
+
const p = 365, y = 1, i = 1, u = D(y, p, i), A = (o) => {
|
|
5
5
|
const e = u(o);
|
|
6
6
|
return m(
|
|
7
7
|
{
|
|
@@ -9,7 +9,7 @@ const p = 365, y = 1, i = 1, u = c(y, p, i), A = (o) => {
|
|
|
9
9
|
const t = new Date(n(f(r, a)));
|
|
10
10
|
return t.setDate(t.getDate() - e.value + 1), s(t);
|
|
11
11
|
},
|
|
12
|
-
to:
|
|
12
|
+
to: c
|
|
13
13
|
},
|
|
14
14
|
{ numberOfDays: e.descriptor }
|
|
15
15
|
)();
|
package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import p from "../../factory.js";
|
|
2
|
-
import {
|
|
2
|
+
import { getRangeTimestampsContextIntegerPropertyFactory as D, offsetsForNDays as y, nowTimestamp as F } from "../../utils.js";
|
|
3
3
|
import { startOfWeek as g } from "../../../utils.js";
|
|
4
4
|
import { clamp as E } from "../../../../../../../utils/value/number.js";
|
|
5
|
-
const r = 1, W =
|
|
5
|
+
const r = 1, W = y(7), k = D(0, 6, r), C = (s = 0) => {
|
|
6
6
|
const e = ~~E(0, s, 1 / 0) || 0;
|
|
7
7
|
return (n = r) => {
|
|
8
8
|
const a = e ? { offsets: W } : { to: F }, o = k(n);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { timezoneToSystem as p, systemToTimezone as g } from "../../../../../core/Localization/datetime/restamper/utils.js";
|
|
2
2
|
import { clamp as T, isBitSafeInteger as l } from "../../../../../utils/value/number.js";
|
|
3
|
-
import { enumerable as m,
|
|
3
|
+
import { enumerable as m, hasOwnProperty as c, getter as z } from "../../../../../utils/struct/property.js";
|
|
4
4
|
import { struct as u } from "../../../../../utils/struct/main.js";
|
|
5
|
-
import { isUndefined as d,
|
|
5
|
+
import { isUndefined as d, isFunction as h, isNullish as w } from "../../../../../utils/value/is.js";
|
|
6
6
|
const O = (e) => Object.freeze({
|
|
7
|
-
systemToTimezone: m((t) =>
|
|
8
|
-
timezoneToSystem: m((t) =>
|
|
7
|
+
systemToTimezone: m((t) => g(e, t)),
|
|
8
|
+
timezoneToSystem: m((t) => p(e, t)),
|
|
9
9
|
timezoneOffset: m((t) => e(t).offset)
|
|
10
10
|
}), V = (e, t, o = e) => {
|
|
11
11
|
const a = (n, i) => {
|
|
12
12
|
let s = n;
|
|
13
|
-
|
|
13
|
+
w(n) ? s = o : l(n) || (s = i ?? o);
|
|
14
14
|
const r = T(e, s, t);
|
|
15
15
|
return r === s ? r : i ?? o;
|
|
16
16
|
};
|
|
@@ -28,7 +28,7 @@ const O = (e) => Object.freeze({
|
|
|
28
28
|
})
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
|
-
}, x = (e, t) => (o) =>
|
|
31
|
+
}, x = (e, t) => (o) => h(o) ? o.call(e, t) : o, P = (e) => !c(e, "offsets"), S = (e) => c(e, "from"), j = ({ now: e }) => e, U = /* @__PURE__ */ (() => {
|
|
32
32
|
const e = /* @__PURE__ */ new Map();
|
|
33
33
|
return (t) => {
|
|
34
34
|
let o = e.get(t);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import n from "./TimeSlice.js";
|
|
2
|
+
import { RANGE_TO as c, RANGE_FROM as l } from "../constants.js";
|
|
3
3
|
import { withTimezone as r } from "../utils.js";
|
|
4
4
|
import { struct as f } from "../../../../../utils/struct/main.js";
|
|
5
5
|
import { getter as o } from "../../../../../utils/struct/property.js";
|
|
6
|
-
const
|
|
7
|
-
let t = r().tz.current, e = new
|
|
6
|
+
const m = (...s) => {
|
|
7
|
+
let t = r().tz.current, e = new n(t, ...s);
|
|
8
8
|
return f({
|
|
9
9
|
from: o(() => e.startTimestamp, !1),
|
|
10
10
|
to: o(() => e.endTimestamp, !1),
|
|
@@ -19,11 +19,11 @@ const n = (...s) => {
|
|
|
19
19
|
...o(() => t, !1),
|
|
20
20
|
set: (i) => {
|
|
21
21
|
const a = t;
|
|
22
|
-
t = r(i ?? void 0).tz.current, t !== a && (e = new
|
|
22
|
+
t = r(i ?? void 0).tz.current, t !== a && (e = new n(t, ...s));
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
-
}, p =
|
|
26
|
+
}, p = m(), N = () => m(Date.now(), l), O = () => m(Date.now(), c), d = (...s) => s.length === 0 ? p : m(...s);
|
|
27
27
|
export {
|
|
28
28
|
p as UNBOUNDED_SLICE,
|
|
29
29
|
d as default,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { BASE_FORMAT_OPTIONS as
|
|
1
|
+
import { BASE_FORMAT_OPTIONS as p, BASE_LOCALE as u } from "../../../../core/Localization/datetime/restamper/constants.js";
|
|
2
2
|
import { DEFAULT_DATETIME_FORMAT as f } from "../../../../core/Localization/constants/localization.js";
|
|
3
|
-
import O from "../../../../core/Localization/datetime/restamper/
|
|
4
|
-
import
|
|
3
|
+
import { timezoneToSystem as O, systemToTimezone as E } from "../../../../core/Localization/datetime/restamper/utils.js";
|
|
4
|
+
import M from "../../../../core/Localization/datetime/restamper/restamper.js";
|
|
5
5
|
import { isInfinity as m, mod as g } from "../../../../utils/value/number.js";
|
|
6
6
|
import { identity as A } from "../../../../utils/common.js";
|
|
7
|
-
import {
|
|
7
|
+
import { EMPTY_OBJECT as _, EMPTY_ARRAY as y } from "../../../../utils/value/constants.js";
|
|
8
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,
|
|
10
|
-
const s = d(
|
|
11
|
-
return r.setHours(0, 0, 0, 0),
|
|
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(O(s, e));
|
|
11
|
+
return r.setHours(0, 0, 0, 0), E(s, t(r, ...n));
|
|
12
12
|
}, z = c(), C = c((t) => t.setDate(1)), U = c((t) => t.setMonth(0, 1)), W = c((t, e) => {
|
|
13
|
-
const
|
|
14
|
-
return t.setDate(t.getDate() -
|
|
15
|
-
}), I = (t) => (t % 100 ? t % 4 : t % 400) === 0, Z = (t, e,
|
|
16
|
-
const
|
|
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
17
|
let a = 31;
|
|
18
18
|
switch (s) {
|
|
19
19
|
case 1:
|
|
@@ -27,24 +27,24 @@ const Y = /^(\d{2})\/(\d{2})\/(-?\d+),\s+(\d{2}):(\d{2}):(\d{2}).(\d{3})/, c = (
|
|
|
27
27
|
break;
|
|
28
28
|
}
|
|
29
29
|
return [a, s, r];
|
|
30
|
-
}, R = (t, e = 0) => (7 - e + t) % 7, j = (t, e) => m(t) ? 0 : t - z(t, e),
|
|
31
|
-
const
|
|
32
|
-
return new Date(t).toLocaleDateString(
|
|
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 = _) => {
|
|
31
|
+
const o = d(e.timeZone), n = { ...f, ...e, timeZone: o.tz.current };
|
|
32
|
+
return new Date(t).toLocaleDateString(u, n);
|
|
33
33
|
}, i = (t, e) => {
|
|
34
|
-
const
|
|
35
|
-
return [+r, +
|
|
36
|
-
},
|
|
34
|
+
const o = w(t, { ...p, ...f, timeZone: e, hour12: !1 }), [, n = "", s = "", r = "", a = "", D = "", T = "", h = ""] = o.match(Y) ?? y;
|
|
35
|
+
return [+r, +n - 1, +s, +a % 24, +D, +T, +h];
|
|
36
|
+
}, G = (t, e, o) => {
|
|
37
37
|
if (m(t) || m(e)) return 1 / 0;
|
|
38
|
-
const [
|
|
39
|
-
return Math.abs(a - s + (r -
|
|
38
|
+
const [n, s] = i(t, o), [r, a] = i(e, o);
|
|
39
|
+
return Math.abs(a - s + (r - n) * 12);
|
|
40
40
|
}, d = (() => {
|
|
41
|
-
const t =
|
|
41
|
+
const t = M();
|
|
42
42
|
return (e) => (t.tz = void 0, t.tz = e, t);
|
|
43
43
|
})();
|
|
44
44
|
export {
|
|
45
45
|
j as computeTimestampOffset,
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
v as getDateObjectFromTimestamp,
|
|
47
|
+
G as getEdgesDistance,
|
|
48
48
|
Z as getMonthDays,
|
|
49
49
|
i as getTimezoneDateParts,
|
|
50
50
|
w as getTimezoneDateString,
|
package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js
CHANGED
|
@@ -3,9 +3,9 @@ import { memo as y } from "../../../../../external/preact/compat/dist/compat.mod
|
|
|
3
3
|
import { propsProperty as k, property as o } from "./utils.js";
|
|
4
4
|
import { CalendarGridRenderToken as L } from "../../types.js";
|
|
5
5
|
import { memoComparator as n } from "../../../../../utils/preact/memoComparator/main.js";
|
|
6
|
-
import { EMPTY_OBJECT as
|
|
6
|
+
import { EMPTY_OBJECT as d } from "../../../../../utils/value/constants.js";
|
|
7
7
|
import { getClassName as m } from "../../../../../utils/preact/className.js";
|
|
8
|
-
const i = "adyen-pe-calendar__cell adyen-pe-calendar__cell--day-of-week", p = "adyen-pe-calendar__day-of-week", u = (a =
|
|
8
|
+
const i = "adyen-pe-calendar__cell adyen-pe-calendar__cell--day-of-week", p = "adyen-pe-calendar__day-of-week", u = (a = d, e) => {
|
|
9
9
|
const s = k.unwrapped(
|
|
10
10
|
{
|
|
11
11
|
childClassName: o.mutable(p),
|
|
@@ -24,19 +24,19 @@ const i = "adyen-pe-calendar__cell adyen-pe-calendar__cell--day-of-week", p = "a
|
|
|
24
24
|
);
|
|
25
25
|
return e == null || e(L.DAY_OF_WEEK, s), s;
|
|
26
26
|
}, A = ({ prepare: a, flags: e, labels: { long: s, short: _ } }) => {
|
|
27
|
-
const
|
|
27
|
+
const l = {
|
|
28
28
|
"aria-label": s,
|
|
29
29
|
"data-first-week-day": e.LINE_START,
|
|
30
30
|
"data-last-week-day": e.LINE_END,
|
|
31
31
|
"data-weekend": e.WEEKEND,
|
|
32
32
|
scope: "col"
|
|
33
|
-
}, r = u(
|
|
34
|
-
children:
|
|
35
|
-
className:
|
|
36
|
-
...
|
|
37
|
-
} = r.childProps ||
|
|
38
|
-
return /* @__PURE__ */ t("th", { ...c, ref: c.ref, ...
|
|
39
|
-
},
|
|
33
|
+
}, r = u(l, a), { children: P, className: N, onCommand: D, ...c } = r.props || d, C = m(r.className, i, N), {
|
|
34
|
+
children: b,
|
|
35
|
+
className: E,
|
|
36
|
+
...f
|
|
37
|
+
} = r.childProps || d, h = m(r.childClassName, p, E);
|
|
38
|
+
return /* @__PURE__ */ t("th", { ...c, ref: c.ref, ...l, className: C, children: /* @__PURE__ */ t("abbr", { ...f, className: h, children: _ }) });
|
|
39
|
+
}, M = y(
|
|
40
40
|
A,
|
|
41
41
|
n({
|
|
42
42
|
block: n.exclude,
|
|
@@ -44,5 +44,5 @@ const i = "adyen-pe-calendar__cell adyen-pe-calendar__cell--day-of-week", p = "a
|
|
|
44
44
|
})
|
|
45
45
|
);
|
|
46
46
|
export {
|
|
47
|
-
|
|
47
|
+
M as default
|
|
48
48
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { isPlainObject as b } from "../../../../../utils/value/is.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { struct as u, structFrom as l } from "../../../../../utils/struct/main.js";
|
|
3
|
+
import { EMPTY_OBJECT as a } from "../../../../../utils/value/constants.js";
|
|
4
4
|
import { enumerable as m } from "../../../../../utils/struct/property.js";
|
|
5
5
|
import { boolOrTrue as O } from "../../../../../utils/value/bool.js";
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
l(
|
|
6
|
+
const n = (() => {
|
|
7
|
+
const c = (e) => Object.freeze(
|
|
8
|
+
l(a, Object.fromEntries(Object.entries(e).map(([r, t]) => [r, { value: t }])))
|
|
9
9
|
), i = (e) => {
|
|
10
10
|
try {
|
|
11
|
-
return Object.getPrototypeOf(e) ===
|
|
11
|
+
return Object.getPrototypeOf(e) === a;
|
|
12
12
|
} catch {
|
|
13
13
|
return !1;
|
|
14
14
|
}
|
|
15
15
|
}, o = (e, r) => {
|
|
16
|
-
if (!e) return
|
|
16
|
+
if (!e) return c(m(r, O(e)));
|
|
17
17
|
let t = r;
|
|
18
|
-
return
|
|
18
|
+
return c({
|
|
19
19
|
enumerable: !0,
|
|
20
20
|
get: () => t,
|
|
21
|
-
set: (
|
|
22
|
-
t = e(
|
|
21
|
+
set: (s) => {
|
|
22
|
+
t = e(s);
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
};
|
|
@@ -31,32 +31,32 @@ const c = (() => {
|
|
|
31
31
|
restricted: { value: () => o(!1) }
|
|
32
32
|
});
|
|
33
33
|
})(), g = (() => {
|
|
34
|
-
const
|
|
35
|
-
const r =
|
|
36
|
-
for (const [t,
|
|
34
|
+
const c = (o = {}, e = !1) => {
|
|
35
|
+
const r = u();
|
|
36
|
+
for (const [t, s] of Object.entries(o)) {
|
|
37
37
|
try {
|
|
38
|
-
const p =
|
|
38
|
+
const p = n.is(s), f = n.isObject(s);
|
|
39
39
|
if (p || f) {
|
|
40
|
-
Object.defineProperty(r, t, p ?
|
|
40
|
+
Object.defineProperty(r, t, p ? s : c(s, e));
|
|
41
41
|
continue;
|
|
42
42
|
} else if (e) {
|
|
43
|
-
Object.defineProperty(r, t,
|
|
43
|
+
Object.defineProperty(r, t, n.immutable(s));
|
|
44
44
|
continue;
|
|
45
45
|
}
|
|
46
46
|
} catch {
|
|
47
47
|
}
|
|
48
|
-
r[t] =
|
|
48
|
+
r[t] = s;
|
|
49
49
|
}
|
|
50
|
-
return
|
|
50
|
+
return n((t = {}) => Object.assign(r, t), r);
|
|
51
51
|
};
|
|
52
|
-
return Object.defineProperties(
|
|
52
|
+
return Object.defineProperties(c, {
|
|
53
53
|
unwrapped: { value: (o = {}, e = !1) => {
|
|
54
|
-
const r =
|
|
55
|
-
return
|
|
54
|
+
const r = c(o, e);
|
|
55
|
+
return u({ P: r }).P;
|
|
56
56
|
} }
|
|
57
57
|
});
|
|
58
58
|
})();
|
|
59
59
|
export {
|
|
60
|
-
|
|
60
|
+
n as property,
|
|
61
61
|
g as propsProperty
|
|
62
62
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useState as J, useMemo as
|
|
1
|
+
import { useState as J, useMemo as l, useRef as _, useCallback as G, useImperativeHandle as Q, useEffect as P } from "../../../../external/preact/hooks/dist/hooks.module.js";
|
|
2
2
|
import U from "../../../../core/Context/useCoreContext.js";
|
|
3
3
|
import { getDateObjectFromTimestamp as K } from "../calendar/utils.js";
|
|
4
4
|
import X from "../../../../hooks/element/useFocusCursor.js";
|
|
@@ -21,17 +21,17 @@ const H = ({
|
|
|
21
21
|
untilDate: d,
|
|
22
22
|
useYearView: b
|
|
23
23
|
}, B) => {
|
|
24
|
-
const { i18n: O } = U(), [R, S] = J(performance.now()), F =
|
|
24
|
+
const { i18n: O } = U(), [R, S] = J(performance.now()), F = l(() => n.slice(E, d), [E, d]), I = _(u), x = l(
|
|
25
25
|
() => a ?? (L(C) ? n.controls.MINIMAL : n.controls.NONE),
|
|
26
26
|
[a, C]
|
|
27
|
-
), A =
|
|
27
|
+
), A = l(
|
|
28
28
|
() => p ?? (L(s) ? n.highlight.ONE : n.highlight.NONE),
|
|
29
29
|
[p, s]
|
|
30
|
-
), { grid: t, kill: j } =
|
|
30
|
+
), { grid: t, kill: j } = l(() => {
|
|
31
31
|
const { grid: e, kill: r } = n(function() {
|
|
32
|
-
S(performance.now()), I.current = this, !(o === e.highlight.from &&
|
|
32
|
+
S(performance.now()), I.current = this, !(o === e.highlight.from && h === e.highlight.to) && (o = e.highlight.from, h = e.highlight.to, s == null || s(o, h));
|
|
33
33
|
});
|
|
34
|
-
let { from: o, to:
|
|
34
|
+
let { from: o, to: h } = e.highlight;
|
|
35
35
|
return e.config.cursorIndex = (i) => {
|
|
36
36
|
let c = i.target;
|
|
37
37
|
for (; c && c !== i.currentTarget; ) {
|
|
@@ -43,7 +43,7 @@ const H = ({
|
|
|
43
43
|
if (this.controls === n.controls.MINIMAL)
|
|
44
44
|
return i != null && i.shiftKey ? 12 : i != null && i.altKey ? this.blocks : 1;
|
|
45
45
|
}, { grid: e, kill: r };
|
|
46
|
-
}, []), q =
|
|
46
|
+
}, []), q = l(() => {
|
|
47
47
|
const e = (r) => {
|
|
48
48
|
t.cursor(r);
|
|
49
49
|
};
|