@adyen/adyen-platform-experience-web 1.4.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -13
- package/dist/adyen-platform-experience-web.css +1 -1
- package/dist/{angle-right-DpuNqT0j.cjs → angle-right-B2I_t62j.cjs} +2 -2
- package/dist/{angle-right-DpuNqT0j.cjs.map → angle-right-B2I_t62j.cjs.map} +1 -1
- package/dist/{checkmark-CC7Mmd_x.cjs → checkmark-CIwP_FdK.cjs} +2 -2
- package/dist/{checkmark-CC7Mmd_x.cjs.map → checkmark-CIwP_FdK.cjs.map} +1 -1
- package/dist/{checkmark-circle-fill-1IL4ERtO.cjs → checkmark-circle-fill-Cw5UXqzN.cjs} +2 -2
- package/dist/{checkmark-circle-fill-1IL4ERtO.cjs.map → checkmark-circle-fill-Cw5UXqzN.cjs.map} +1 -1
- package/dist/{checkmark-square-fill-Bu2jdGU3.cjs → checkmark-square-fill-BwkQfKCG.cjs} +2 -2
- package/dist/{checkmark-square-fill-Bu2jdGU3.cjs.map → checkmark-square-fill-BwkQfKCG.cjs.map} +1 -1
- package/dist/{chevron-down-BVCFqkLo.cjs → chevron-down-BuYiZOY7.cjs} +2 -2
- package/dist/{chevron-down-BVCFqkLo.cjs.map → chevron-down-BuYiZOY7.cjs.map} +1 -1
- package/dist/{chevron-left-DfGEXTbq.cjs → chevron-left-DhRCcHqQ.cjs} +2 -2
- package/dist/{chevron-left-DfGEXTbq.cjs.map → chevron-left-DhRCcHqQ.cjs.map} +1 -1
- package/dist/{chevron-right-DzkYlomK.cjs → chevron-right-DvPR8FD2.cjs} +2 -2
- package/dist/{chevron-right-DzkYlomK.cjs.map → chevron-right-DvPR8FD2.cjs.map} +1 -1
- package/dist/{chevron-up-CpmBSOon.cjs → chevron-up-DFrrO8PJ.cjs} +2 -2
- package/dist/{chevron-up-CpmBSOon.cjs.map → chevron-up-DFrrO8PJ.cjs.map} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/{copy-DuV1z0-c.cjs → copy-Bl3l133y.cjs} +2 -2
- package/dist/{copy-DuV1z0-c.cjs.map → copy-Bl3l133y.cjs.map} +1 -1
- package/dist/{cross-C5L4gQrS.cjs → cross-BtdvCTEP.cjs} +2 -2
- package/dist/{cross-C5L4gQrS.cjs.map → cross-BtdvCTEP.cjs.map} +1 -1
- package/dist/{cross-circle-fill-D6Ir0xDO.cjs → cross-circle-fill-BBjJLOad.cjs} +2 -2
- package/dist/{cross-circle-fill-D6Ir0xDO.cjs.map → cross-circle-fill-BBjJLOad.cjs.map} +1 -1
- package/dist/da-DK-qSZWEjaU.cjs +2 -0
- package/dist/da-DK-qSZWEjaU.cjs.map +1 -0
- package/dist/de-DE-Dngq7NwF.cjs +2 -0
- package/dist/de-DE-Dngq7NwF.cjs.map +1 -0
- package/dist/{download-IwqY_7gX.cjs → download-Cqu4yqTE.cjs} +2 -2
- package/dist/{download-IwqY_7gX.cjs.map → download-Cqu4yqTE.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 +29 -29
- 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 +53 -42
- 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 +5 -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 +55 -0
- 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 +66 -0
- package/dist/es/images/icons/trash-can.svg.js +9 -0
- package/dist/es/images/icons/upload.svg.js +9 -0
- 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 +67 -58
- package/dist/es/translations/en-US.json.js +79 -70
- package/dist/es/translations/es-ES.json.js +91 -82
- package/dist/es/translations/fi-FI.json.js +93 -84
- package/dist/es/translations/fr-FR.json.js +75 -66
- package/dist/es/translations/it-IT.json.js +95 -86
- package/dist/es/translations/nl-NL.json.js +92 -83
- package/dist/es/translations/no-NO.json.js +71 -62
- package/dist/es/translations/pt-BR.json.js +67 -58
- 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-Bjddx94n.cjs +2 -0
- package/dist/es-ES-Bjddx94n.cjs.map +1 -0
- package/dist/{external-link-r39cGU4L.cjs → external-link-CqDz5BtK.cjs} +2 -2
- package/dist/{external-link-r39cGU4L.cjs.map → external-link-CqDz5BtK.cjs.map} +1 -1
- package/dist/fi-FI-CNpmToDG.cjs +2 -0
- package/dist/fi-FI-CNpmToDG.cjs.map +1 -0
- package/dist/{filter-BGBP3TAU.cjs → filter-DLAt7sYb.cjs} +2 -2
- package/dist/{filter-BGBP3TAU.cjs.map → filter-DLAt7sYb.cjs.map} +1 -1
- package/dist/fr-FR-CUUHB8JU.cjs +2 -0
- package/dist/fr-FR-CUUHB8JU.cjs.map +1 -0
- package/dist/index-DbNUA_xB.cjs +12 -0
- package/dist/index-DbNUA_xB.cjs.map +1 -0
- package/dist/{info-filled-C_zUEZ2b.cjs → info-filled-B9fmmNGT.cjs} +2 -2
- package/dist/{info-filled-C_zUEZ2b.cjs.map → info-filled-B9fmmNGT.cjs.map} +1 -1
- package/dist/it-IT-B-E80zCo.cjs +2 -0
- package/dist/it-IT-B-E80zCo.cjs.map +1 -0
- package/dist/{minus-circle-outline-1CJ3DOVB.cjs → minus-circle-outline-JkeH7g3f.cjs} +2 -2
- package/dist/{minus-circle-outline-1CJ3DOVB.cjs.map → minus-circle-outline-JkeH7g3f.cjs.map} +1 -1
- package/dist/nl-NL--CGhOJhH.cjs +2 -0
- package/dist/nl-NL--CGhOJhH.cjs.map +1 -0
- package/dist/no-NO-D0UNXgzr.cjs +2 -0
- package/dist/no-NO-D0UNXgzr.cjs.map +1 -0
- package/dist/{plus-circle-outline-CPQ_oOtQ.cjs → plus-circle-outline-Cmz1Lb00.cjs} +2 -2
- package/dist/{plus-circle-outline-CPQ_oOtQ.cjs.map → plus-circle-outline-Cmz1Lb00.cjs.map} +1 -1
- package/dist/pt-BR-Du4cDUgf.cjs +2 -0
- package/dist/pt-BR-Du4cDUgf.cjs.map +1 -0
- package/dist/{square-BmHyYgat.cjs → square-Bow_5TP1.cjs} +2 -2
- package/dist/{square-BmHyYgat.cjs.map → square-Bow_5TP1.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-DLEmgXUG.cjs +2 -0
- package/dist/trash-can-DLEmgXUG.cjs.map +1 -0
- 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/external/TransactionDetails/components/utils.d.ts +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/ExpandableCard/ExpandableCard.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/Icon/Icon.d.ts +2 -0
- package/dist/types/components/internal/Icon/Icon.d.ts.map +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/SegmentedControl/SegmentedControl.d.ts +5 -0
- package/dist/types/components/internal/SegmentedControl/SegmentedControl.d.ts.map +1 -0
- package/dist/types/components/internal/SegmentedControl/types.d.ts +14 -0
- package/dist/types/components/internal/SegmentedControl/types.d.ts.map +1 -0
- package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +1 -1
- package/dist/types/components/utils/getLabel.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/hooks/useTabbedControl.d.ts +19 -0
- package/dist/types/hooks/useTabbedControl.d.ts.map +1 -0
- package/dist/types/translations/index.d.ts +9 -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/types/utils/file/read.d.ts +5 -0
- package/dist/types/utils/file/read.d.ts.map +1 -0
- package/dist/types/utils/file/size.d.ts +45 -0
- package/dist/types/utils/file/size.d.ts.map +1 -0
- package/dist/types/utils/file/upload.d.ts +17 -0
- package/dist/types/utils/file/upload.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +3 -0
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/upload-DWOtVcWc.cjs +2 -0
- package/dist/upload-DWOtVcWc.cjs.map +1 -0
- package/dist/{warning-eizPFTg-.cjs → warning-DNUR39rT.cjs} +2 -2
- package/dist/{warning-eizPFTg-.cjs.map → warning-DNUR39rT.cjs.map} +1 -1
- package/dist/{warning-filled-CiVuOE_O.cjs → warning-filled-qxDqTfWV.cjs} +2 -2
- package/dist/{warning-filled-CiVuOE_O.cjs.map → warning-filled-qxDqTfWV.cjs.map} +1 -1
- package/package.json +16 -15
- 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/components/internal/Tabs/Tabs.js +0 -69
- 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-BeWwE_B0.cjs +0 -12
- package/dist/index-BeWwE_B0.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
- package/dist/types/components/internal/Tabs/Tabs.d.ts +0 -5
- package/dist/types/components/internal/Tabs/Tabs.d.ts.map +0 -1
- package/dist/types/components/internal/Tabs/types.d.ts +0 -15
- package/dist/types/components/internal/Tabs/types.d.ts.map +0 -1
|
@@ -1,24 +1,21 @@
|
|
|
1
1
|
import { BREAKPOINTS as m } from "../constants/index.js";
|
|
2
2
|
import { useContainerQuery as o } from "./useContainerQuery.js";
|
|
3
|
-
const
|
|
3
|
+
const e = {
|
|
4
4
|
up: {
|
|
5
5
|
sm: ["up", m.sm],
|
|
6
|
-
md: ["up", m.md]
|
|
7
|
-
lg: ["up", m.lg]
|
|
6
|
+
md: ["up", m.md]
|
|
8
7
|
},
|
|
9
8
|
down: {
|
|
10
9
|
xs: ["down", m.sm - 1],
|
|
11
|
-
sm: ["down", m.md - 1]
|
|
12
|
-
md: ["down", m.lg - 1]
|
|
10
|
+
sm: ["down", m.md - 1]
|
|
13
11
|
},
|
|
14
12
|
only: {
|
|
15
13
|
xs: ["only", m.sm - 1, { max: m.sm - 1 }],
|
|
16
14
|
sm: ["only", m.sm, { max: m.md - 1 }],
|
|
17
|
-
md: ["only", m.md, { max: m.lg - 1 }]
|
|
18
|
-
lg: ["only", m.lg, { min: m.lg }]
|
|
15
|
+
md: ["only", m.md, { max: m.lg - 1 }]
|
|
19
16
|
}
|
|
20
|
-
},
|
|
17
|
+
}, r = o;
|
|
21
18
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
e as containerQueries,
|
|
20
|
+
r as useResponsiveContainer
|
|
24
21
|
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { useState as x, useRef as b, useMemo as O, useCallback as R, useEffect as A } from "../external/preact/hooks/dist/hooks.module.js";
|
|
2
|
+
import { InteractionKeyCode as l } from "../components/types.js";
|
|
3
|
+
import { uniqueId as D } from "../utils/random/uniqueId.js";
|
|
4
|
+
const T = (f, o) => {
|
|
5
|
+
if (!o) return 0;
|
|
6
|
+
const s = f.findIndex((d) => d.id === o);
|
|
7
|
+
return s === -1 ? 0 : s;
|
|
8
|
+
}, h = (f, o) => {
|
|
9
|
+
const [s, d] = x(!1), [I, c] = x(T(f, o)), u = b([]), m = b(D().replace(/.*?(?=\d+$)/, "")).current, r = f.length, p = O(() => {
|
|
10
|
+
const e = [];
|
|
11
|
+
for (let n = 0; n < r; n++)
|
|
12
|
+
e[n] = (t) => u.current[n] = t;
|
|
13
|
+
return e;
|
|
14
|
+
}, [r]), i = R(
|
|
15
|
+
(e, n) => {
|
|
16
|
+
var a;
|
|
17
|
+
let t = e;
|
|
18
|
+
do
|
|
19
|
+
if (t < 0 && (t += r), t >= r && (t %= r), ((a = u.current[t]) == null ? void 0 : a.disabled) === !1) break;
|
|
20
|
+
while ((t += n) !== e);
|
|
21
|
+
return t;
|
|
22
|
+
},
|
|
23
|
+
[r]
|
|
24
|
+
), g = R((e) => {
|
|
25
|
+
var t;
|
|
26
|
+
const n = u.current.findIndex((a) => a === e.currentTarget);
|
|
27
|
+
((t = u.current[n]) == null ? void 0 : t.disabled) === !1 && (e.preventDefault(), c(n));
|
|
28
|
+
}, []), k = O(() => {
|
|
29
|
+
const e = {
|
|
30
|
+
[l.ARROW_LEFT]: () => c((n) => i(
|
|
31
|
+
n - 1,
|
|
32
|
+
-1
|
|
33
|
+
/* BACKWARD */
|
|
34
|
+
)),
|
|
35
|
+
[l.ARROW_RIGHT]: () => c((n) => i(
|
|
36
|
+
n + 1,
|
|
37
|
+
1
|
|
38
|
+
/* FORWARD */
|
|
39
|
+
)),
|
|
40
|
+
[l.HOME]: () => c(i(
|
|
41
|
+
0,
|
|
42
|
+
1
|
|
43
|
+
/* FORWARD */
|
|
44
|
+
)),
|
|
45
|
+
[l.END]: () => c(i(
|
|
46
|
+
r - 1,
|
|
47
|
+
-1
|
|
48
|
+
/* BACKWARD */
|
|
49
|
+
))
|
|
50
|
+
};
|
|
51
|
+
return (n) => {
|
|
52
|
+
var t;
|
|
53
|
+
e[n.key] && (n.preventDefault(), (t = e[n.key]) == null || t.call(e), d(!0));
|
|
54
|
+
};
|
|
55
|
+
}, [r]);
|
|
56
|
+
return A(() => {
|
|
57
|
+
if (s) {
|
|
58
|
+
const e = u.current[I];
|
|
59
|
+
(e == null ? void 0 : e.disabled) === !1 && (e == null || e.focus()), d(!1);
|
|
60
|
+
}
|
|
61
|
+
}, [I, s]), { activeIndex: I, onClick: g, onKeyDown: k, refs: p, uniqueId: m };
|
|
62
|
+
};
|
|
63
|
+
export {
|
|
64
|
+
h as default,
|
|
65
|
+
h as useTabbedControl
|
|
66
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "../../external/preact/compat/dist/compat.module.js";
|
|
2
|
+
import { jsx as l } from "../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
3
|
+
const o = (h) => /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", ...h, children: [
|
|
4
|
+
/* @__PURE__ */ l("path", { fill: "currentColor", d: "M7.25 6.25h-1.5v6.5h1.5v-6.5ZM8.75 6.25h1.5v6.5h-1.5v-6.5Z" }),
|
|
5
|
+
/* @__PURE__ */ l("path", { fill: "currentColor", d: "M14.75 3.25h-2.21l-.49-1.5a2.2 2.2 0 0 0-.83-1.1c-.39-.27-.88-.4-1.3-.41H6.09c-.45 0-.92.14-1.31.41a2.2 2.2 0 0 0-.83 1.11l-.49 1.48H1.25v1.5h1.07l.82 8.96c.05.56.31 1.08.72 1.46.41.38.95.59 1.51.59h5.27c.56 0 1.1-.21 1.51-.59.42-.38.67-.9.72-1.46l.82-8.96h1.07v-1.5l-.01.01Zm-9.38-1a.75.75 0 0 1 .27-.36.7.7 0 0 1 .44-.13h3.85c.15 0 .3.05.42.13.13.09.22.21.27.35l.33 1.02H5.02l.33-1 .02-.01Zm6 11.33a.72.72 0 0 1-.24.48.73.73 0 0 1-.5.19H5.36a.76.76 0 0 1-.5-.19.76.76 0 0 1-.24-.49l-.81-8.82h8.36l-.81 8.82.01.01Z" })
|
|
6
|
+
] });
|
|
7
|
+
export {
|
|
8
|
+
o as default
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "../../external/preact/compat/dist/compat.module.js";
|
|
2
|
+
import { jsx as o } from "../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
3
|
+
const a = (l) => /* @__PURE__ */ o("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", ...l, children: [
|
|
4
|
+
/* @__PURE__ */ o("path", { fill: "currentColor", d: "M8 .94 12.06 5 11 6.06 8.75 3.81v7.94h-1.5V3.81L5 6.06 3.94 5 8 .94Z" }),
|
|
5
|
+
/* @__PURE__ */ o("path", { fill: "currentColor", d: "M2.75 12.5v-2.25h-1.5v2.25a2.25 2.25 0 0 0 2.25 2.25h9a2.25 2.25 0 0 0 2.25-2.25v-2.25h-1.5v2.25a.75.75 0 0 1-.75.75h-9a.75.75 0 0 1-.75-.75Z" })
|
|
6
|
+
] });
|
|
7
|
+
export {
|
|
8
|
+
a as default
|
|
9
|
+
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { struct as
|
|
2
|
-
import {
|
|
1
|
+
import { struct as d } from "../../../utils/struct/main.js";
|
|
2
|
+
import { getter as s, enumerable as n } from "../../../utils/struct/property.js";
|
|
3
3
|
import { isUndefined as b } from "../../../utils/value/is.js";
|
|
4
|
-
import { noop as
|
|
4
|
+
import { noop as u } from "../../../utils/common.js";
|
|
5
5
|
const w = (o) => {
|
|
6
6
|
let r, t, e;
|
|
7
|
-
const
|
|
7
|
+
const l = () => {
|
|
8
8
|
if (b(r)) return;
|
|
9
9
|
const i = r.abort.bind(r);
|
|
10
10
|
r = void 0, i();
|
|
11
|
-
},
|
|
12
|
-
if (t.addEventListener("abort", function
|
|
13
|
-
t.removeEventListener("abort",
|
|
11
|
+
}, m = () => (e = new Promise((i, c) => {
|
|
12
|
+
if (t.addEventListener("abort", function _() {
|
|
13
|
+
t.removeEventListener("abort", _), c(o);
|
|
14
14
|
}), t.aborted) throw o;
|
|
15
|
-
}), e.catch(
|
|
16
|
-
abort: n(
|
|
15
|
+
}), e.catch(u), e), a = () => (b(r) && (r = new AbortController(), t = r.signal, e = m()), f), f = d({
|
|
16
|
+
abort: n(l),
|
|
17
17
|
promise: s(() => e),
|
|
18
18
|
reason: n(o),
|
|
19
19
|
refresh: n(a),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { struct as l } from "../../../utils/struct/main.js";
|
|
2
|
-
import {
|
|
2
|
+
import { enumerable as t, getter as p } from "../../../utils/struct/property.js";
|
|
3
3
|
import { noop as u } from "../../../utils/common.js";
|
|
4
4
|
const _ = () => {
|
|
5
5
|
let o, s, r;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { struct as E } from "../../../utils/struct/main.js";
|
|
2
|
-
import {
|
|
2
|
+
import { enumerable as o, getter as s } from "../../../utils/struct/property.js";
|
|
3
3
|
const e = Symbol("<<NO_ERR>>");
|
|
4
4
|
function c(r) {
|
|
5
5
|
/* istanbul ignore if -- @preserve */
|
|
6
6
|
if (r === e)
|
|
7
7
|
throw new TypeError("Illegal error");
|
|
8
8
|
}
|
|
9
|
-
const
|
|
9
|
+
const i = () => {
|
|
10
10
|
let r = e;
|
|
11
|
-
const
|
|
11
|
+
const n = () => {
|
|
12
12
|
r = e;
|
|
13
13
|
}, a = (t) => {
|
|
14
14
|
c(t), r = t;
|
|
15
15
|
};
|
|
16
16
|
return E({
|
|
17
|
-
error:
|
|
18
|
-
hasError:
|
|
19
|
-
reset: n
|
|
20
|
-
set:
|
|
17
|
+
error: s(() => r === e ? void 0 : r),
|
|
18
|
+
hasError: s(() => r !== e),
|
|
19
|
+
reset: o(n),
|
|
20
|
+
set: o(a)
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
export {
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
i as createErrorContainer,
|
|
25
|
+
i as default
|
|
26
26
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { identity as r } from "../../../utils/common.js";
|
|
2
|
+
import { isString as c } from "../../../utils/value/is.js";
|
|
3
3
|
const s = (e) => (i, t, o) => {
|
|
4
|
-
if (
|
|
4
|
+
if (c(t)) {
|
|
5
5
|
const n = +t;
|
|
6
6
|
if (n >= 0 && n < i.length)
|
|
7
7
|
return e(n);
|
|
8
8
|
}
|
|
9
9
|
return Reflect.get(i, t, o);
|
|
10
|
-
}, d = function* (e =
|
|
10
|
+
}, d = function* (e = r, i) {
|
|
11
11
|
for (let t = 0; t < this.length; t++)
|
|
12
12
|
yield e.call(i, this[t], t, this);
|
|
13
13
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { indexedProxyGetTrap as f, mapIteratorFactory as m } from "./helpers.js";
|
|
2
2
|
import { truthify as o } from "../../../utils/value/bool.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { isFunction as a, isNumber as c } from "../../../utils/value/is.js";
|
|
4
|
+
import { structFrom as d, struct as h } from "../../../utils/struct/main.js";
|
|
5
5
|
const l = Object.freeze(
|
|
6
|
-
|
|
6
|
+
h({
|
|
7
7
|
[Symbol.iterator]: {
|
|
8
8
|
value() {
|
|
9
9
|
return m.call(this);
|
|
@@ -15,17 +15,17 @@ const l = Object.freeze(
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
})
|
|
18
|
-
), u = (t, n) =>
|
|
18
|
+
), u = (t, n) => a(t) ? u(
|
|
19
19
|
{
|
|
20
20
|
length: { get: t }
|
|
21
21
|
},
|
|
22
22
|
n
|
|
23
|
-
) :
|
|
23
|
+
) : c(t) ? u(
|
|
24
24
|
{
|
|
25
25
|
length: { value: t }
|
|
26
26
|
},
|
|
27
27
|
n
|
|
28
|
-
) : new Proxy(
|
|
28
|
+
) : new Proxy(d(l, t), {
|
|
29
29
|
get: f(n),
|
|
30
30
|
set: o
|
|
31
31
|
});
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { EVT_SESSION_EXPIRED as l } from "../constants.js";
|
|
2
2
|
import { createPromisor as m } from "../../../async/promisor/main.js";
|
|
3
3
|
import { isFunction as p } from "../../../../utils/value/is.js";
|
|
4
|
-
import { boolOrFalse as
|
|
4
|
+
import { boolOrFalse as c, falsify as h } from "../../../../utils/value/bool.js";
|
|
5
|
+
import { getter as _ } from "../../../../utils/struct/property.js";
|
|
5
6
|
import { noop as i } from "../../../../utils/common.js";
|
|
6
|
-
import {
|
|
7
|
-
import { tryResolve as _ } from "../../../../utils/async/main.js";
|
|
7
|
+
import { tryResolve as d } from "../../../../utils/async/main.js";
|
|
8
8
|
const y = async (t) => {
|
|
9
|
-
const { specification: s } = t.context, e = await
|
|
9
|
+
const { specification: s } = t.context, e = await d(async () => {
|
|
10
10
|
const o = s.autoRefresh;
|
|
11
11
|
return p(o) ? o.call(s, t.session) : o;
|
|
12
12
|
}).catch(h);
|
|
13
|
-
return
|
|
14
|
-
},
|
|
15
|
-
let s = t.context.emitter.on(l, () =>
|
|
13
|
+
return c(e);
|
|
14
|
+
}, v = (t) => {
|
|
15
|
+
let s = t.context.emitter.on(l, () => a(!1)), e, o = m(async (r, f = !1) => {
|
|
16
16
|
e = r;
|
|
17
|
-
const u = f
|
|
17
|
+
const u = c(f) || await y(t);
|
|
18
18
|
e === r && u && t.pending && !t.refreshing && t.refresh(e).catch(i);
|
|
19
|
-
}),
|
|
19
|
+
}), a = (r = !1) => {
|
|
20
20
|
t.refreshing || o(r);
|
|
21
|
-
},
|
|
22
|
-
s(), o.abort(), o = e = s = void 0,
|
|
21
|
+
}, n = () => {
|
|
22
|
+
s(), o.abort(), o = e = s = void 0, a = n = i;
|
|
23
23
|
};
|
|
24
|
-
return Object.defineProperties((r = !1) =>
|
|
25
|
-
destruct:
|
|
24
|
+
return Object.defineProperties((r = !1) => a(r), {
|
|
25
|
+
destruct: _(() => n, !1)
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
28
|
export {
|
|
29
29
|
y as _canAutofresh,
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
v as createSessionAutofresher,
|
|
31
|
+
v as default
|
|
32
32
|
};
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { INTERNAL_EVT_SESSION_DEADLINE as
|
|
2
|
-
import { createAbortable as
|
|
3
|
-
import { createEventEmitter as
|
|
4
|
-
import { createPromisor as
|
|
5
|
-
import { parseDate as
|
|
6
|
-
import { isAbortSignal as
|
|
1
|
+
import { INTERNAL_EVT_SESSION_DEADLINE as v } from "./constants.js";
|
|
2
|
+
import { createAbortable as y } from "../../../async/abortable/main.js";
|
|
3
|
+
import { createEventEmitter as A } from "../../../reactive/eventEmitter/main.js";
|
|
4
|
+
import { createPromisor as g } from "../../../async/promisor/main.js";
|
|
5
|
+
import { parseDate as S } from "../../../../utils/datetime/main.js";
|
|
6
|
+
import { isAbortSignal as D, abortSignalForAny as I, abortedSignal as N } from "../../../../utils/abort/main.js";
|
|
7
7
|
import { clock as w } from "../../../time/clock/main.js";
|
|
8
8
|
import { isWatchlistUnsubscribeToken as F } from "../../../reactive/watchlist/main.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
9
|
+
import { struct as L } from "../../../../utils/struct/main.js";
|
|
10
|
+
import { getter as u, enumerable as c } from "../../../../utils/struct/property.js";
|
|
11
|
+
import { tryResolve as T } from "../../../../utils/async/main.js";
|
|
12
|
+
import { noop as k } from "../../../../utils/common.js";
|
|
13
13
|
import { isFunction as P } from "../../../../utils/value/is.js";
|
|
14
14
|
const O = (R, b) => {
|
|
15
15
|
let r, i = 1 / 0, p, o;
|
|
16
|
-
const n =
|
|
17
|
-
r == null || r.removeEventListener("abort", m), i = 1 / 0, o == null || o(), n.refresh(),
|
|
18
|
-
}, E =
|
|
16
|
+
const n = y(), _ = A(), m = () => {
|
|
17
|
+
r == null || r.removeEventListener("abort", m), i = 1 / 0, o == null || o(), n.refresh(), _.emit(v);
|
|
18
|
+
}, E = g(async (t, a) => {
|
|
19
19
|
p = t;
|
|
20
|
-
const f = await
|
|
20
|
+
const f = await T(() => {
|
|
21
21
|
const e = b.deadline;
|
|
22
22
|
return P(e) ? e.call(b, a, t) : e;
|
|
23
|
-
}).catch(
|
|
23
|
+
}).catch(k);
|
|
24
24
|
if (p !== t) return;
|
|
25
25
|
const d = (Array.isArray(f) ? f : [f]).filter((e) => e || e === 0);
|
|
26
26
|
if (d.length > 0) {
|
|
27
27
|
let e = !1, s = /* @__PURE__ */ new Set();
|
|
28
28
|
for (const l of d)
|
|
29
|
-
if (
|
|
29
|
+
if (D(l)) {
|
|
30
30
|
if (e = l.aborted) break;
|
|
31
31
|
s.add(l);
|
|
32
|
-
} else if (i = Math.min(i,
|
|
33
|
-
e || (e = s.size < 1 && !Number.isFinite(i)), e ? r ?? (r =
|
|
32
|
+
} else if (i = Math.min(i, S(l) ?? 1 / 0), e = i <= Date.now()) break;
|
|
33
|
+
e || (e = s.size < 1 && !Number.isFinite(i)), e ? r ?? (r = N()) : (r = I([...s, n.signal]), r.addEventListener("abort", m), h()), d.length = 0, s.clear();
|
|
34
34
|
} else r = void 0;
|
|
35
35
|
}), h = () => {
|
|
36
36
|
if (!Number.isFinite(i)) return;
|
|
@@ -42,12 +42,12 @@ const O = (R, b) => {
|
|
|
42
42
|
t == null || t(), t = o = void 0;
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
|
-
return
|
|
45
|
+
return L({
|
|
46
46
|
elapse: c(n.abort),
|
|
47
|
-
elapsed:
|
|
48
|
-
on: c(
|
|
47
|
+
elapsed: u(() => r && r.aborted),
|
|
48
|
+
on: c(_.on),
|
|
49
49
|
refresh: c(E.bind(void 0)),
|
|
50
|
-
signal:
|
|
50
|
+
signal: u(() => n.signal)
|
|
51
51
|
});
|
|
52
52
|
};
|
|
53
53
|
export {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { INTERNAL_EVT_SESSION_REFRESHING_START as A, INTERNAL_EVT_SESSION_READY as
|
|
2
|
-
import { EVT_SESSION_EXPIRED as
|
|
1
|
+
import { INTERNAL_EVT_SESSION_REFRESHING_START as A, INTERNAL_EVT_SESSION_READY as y, INTERNAL_EVT_SESSION_REFRESHING_END as O } from "./constants.js";
|
|
2
|
+
import { EVT_SESSION_EXPIRED as T, ERR_SESSION_REFRESH_ABORTED as u, ERR_SESSION_FACTORY_UNAVAILABLE as d, ERR_SESSION_INVALID as F } from "../constants.js";
|
|
3
3
|
import { createEventEmitter as L } from "../../../reactive/eventEmitter/main.js";
|
|
4
4
|
import { createPromisor as P } from "../../../async/promisor/main.js";
|
|
5
5
|
import { ALREADY_RESOLVED_PROMISE as c } from "../../../../utils/async/constants.js";
|
|
6
6
|
import { struct as l } from "../../../../utils/struct/main.js";
|
|
7
|
-
import {
|
|
7
|
+
import { getter as s, enumerable as n } from "../../../../utils/struct/property.js";
|
|
8
8
|
import { isAbortSignal as w, abortSignalForAny as D } from "../../../../utils/abort/main.js";
|
|
9
9
|
import { tryResolve as V } from "../../../../utils/async/main.js";
|
|
10
10
|
import { isFunction as b } from "../../../../utils/value/is.js";
|
|
@@ -16,11 +16,11 @@ const X = (R, t) => {
|
|
|
16
16
|
try {
|
|
17
17
|
(r = t.assert) == null || r.call(t, e);
|
|
18
18
|
} catch {
|
|
19
|
-
throw
|
|
19
|
+
throw F;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
function h(e) {
|
|
23
|
-
if (!b(e)) throw
|
|
23
|
+
if (!b(e)) throw d;
|
|
24
24
|
}
|
|
25
25
|
const m = P((e, r) => {
|
|
26
26
|
if (!o) o = e;
|
|
@@ -31,31 +31,31 @@ const X = (R, t) => {
|
|
|
31
31
|
_ = !1, o = e, S && await (i ?? (i = (async () => {
|
|
32
32
|
await c, S = !1, E.emit(A);
|
|
33
33
|
})())), h(t.onRefresh), r = await V(() => t.onRefresh(f, e)).finally(() => {
|
|
34
|
-
if (e.aborted) throw
|
|
34
|
+
if (e.aborted) throw u;
|
|
35
35
|
});
|
|
36
36
|
} finally {
|
|
37
37
|
if (o === e)
|
|
38
38
|
try {
|
|
39
|
-
r !== a && (N(r), f = r, E.emit(
|
|
39
|
+
r !== a && (N(r), f = r, E.emit(y));
|
|
40
40
|
} finally {
|
|
41
|
-
i = void 0, S = !0, E.emit(
|
|
41
|
+
i = void 0, S = !0, E.emit(O);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
|
-
return R.on(
|
|
46
|
-
context:
|
|
45
|
+
return R.on(T, () => _ = !i), m(), l({
|
|
46
|
+
context: n(
|
|
47
47
|
l({
|
|
48
|
-
emitter:
|
|
49
|
-
specification:
|
|
48
|
+
emitter: n(R),
|
|
49
|
+
specification: n(t)
|
|
50
50
|
})
|
|
51
51
|
),
|
|
52
|
-
on:
|
|
53
|
-
pending:
|
|
54
|
-
promise:
|
|
55
|
-
refresh:
|
|
56
|
-
refreshing:
|
|
57
|
-
session:
|
|
58
|
-
signal:
|
|
52
|
+
on: n(E.on),
|
|
53
|
+
pending: s(() => _),
|
|
54
|
+
promise: s(() => m.promise),
|
|
55
|
+
refresh: n(m.bind(void 0)),
|
|
56
|
+
refreshing: s(() => !!i),
|
|
57
|
+
session: s(() => f),
|
|
58
|
+
signal: s(() => o)
|
|
59
59
|
});
|
|
60
60
|
};
|
|
61
61
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { some as f } from "../../../utils/collection/main.js";
|
|
2
|
-
import {
|
|
2
|
+
import { isNumber as N, isUndefined as h, isNullish as R } from "../../../utils/value/is.js";
|
|
3
3
|
import { mod as x } from "../../../utils/value/number.js";
|
|
4
4
|
const p = `
|
|
5
5
|
a[href],
|
|
@@ -26,7 +26,7 @@ const p = `
|
|
|
26
26
|
return !1;
|
|
27
27
|
}, v = (t = document.body, n) => {
|
|
28
28
|
if (h(t)) return !1;
|
|
29
|
-
if (
|
|
29
|
+
if (R(n)) return !!document.activeElement && v(t, document.activeElement);
|
|
30
30
|
let r = n == null ? void 0 : n.parentNode;
|
|
31
31
|
for (; r; ) {
|
|
32
32
|
if (r === t) return !0;
|
|
@@ -63,7 +63,7 @@ g(t) && t.hidden), s = (t) => !(I(t) && !b(t) || // (1) is not checked radio but
|
|
|
63
63
|
get: () => n[r] ?? null,
|
|
64
64
|
set: (o) => {
|
|
65
65
|
if (o) {
|
|
66
|
-
if (!
|
|
66
|
+
if (!N(o)) return i(n.indexOf(o));
|
|
67
67
|
if (o === ~~o)
|
|
68
68
|
return i(x(r + o, n.length));
|
|
69
69
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { struct as a } from "../../../utils/struct/main.js";
|
|
2
2
|
import { enumerable as e } from "../../../utils/struct/property.js";
|
|
3
|
-
import {
|
|
3
|
+
import { isFunction as d, isUndefined as m } from "../../../utils/value/is.js";
|
|
4
4
|
import { noop as f } from "../../../utils/common.js";
|
|
5
5
|
const E = () => {
|
|
6
6
|
const r = new class extends EventTarget {
|
|
7
7
|
}(), l = (o, ...t) => {
|
|
8
8
|
const [n] = t;
|
|
9
|
-
t.length &&
|
|
9
|
+
t.length && m(n) && console.warn(
|
|
10
10
|
"Unexpected value `undefined` provided for event detail.\n Turn off this warning by doing either of the following:\n (1) omit the optional event detail parameter.\n (2) explicitly pass `null` for the event detail parameter (instead of `undefined`).\n"
|
|
11
11
|
);
|
|
12
12
|
const i = new CustomEvent(
|
|
@@ -19,7 +19,7 @@ const E = () => {
|
|
|
19
19
|
);
|
|
20
20
|
return r.dispatchEvent(i);
|
|
21
21
|
}, s = (o, t) => {
|
|
22
|
-
if (!
|
|
22
|
+
if (!d(t)) return f;
|
|
23
23
|
const n = (i) => t.call(
|
|
24
24
|
null,
|
|
25
25
|
a({
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { assertReflexAction as c, unwrap as i } from "./helpers.js";
|
|
2
2
|
import { $globalReflexRegister as x } from "./register.js";
|
|
3
3
|
import { REF as _ } from "./constants.js";
|
|
4
|
-
import { struct as
|
|
4
|
+
import { struct as p } from "../../../utils/struct/main.js";
|
|
5
5
|
import { isNullish as b } from "../../../utils/value/is.js";
|
|
6
|
-
import { sameValue as
|
|
7
|
-
const
|
|
6
|
+
import { sameValue as d } from "../../../utils/value/compare.js";
|
|
7
|
+
const v = (n) => {
|
|
8
8
|
c(n);
|
|
9
|
-
const r = new WeakMap([[n, 1]]), e = (
|
|
10
|
-
if (
|
|
11
|
-
const
|
|
12
|
-
n(t =
|
|
9
|
+
const r = new WeakMap([[n, 1]]), e = (o) => {
|
|
10
|
+
if (d(t, o)) return;
|
|
11
|
+
const u = t;
|
|
12
|
+
n(t = o, u);
|
|
13
13
|
};
|
|
14
14
|
let t = null;
|
|
15
15
|
return Object.defineProperties(e, {
|
|
16
16
|
[_]: { value: e },
|
|
17
17
|
actions: {
|
|
18
|
-
value:
|
|
18
|
+
value: p({
|
|
19
19
|
get: { value: r.get.bind(r) },
|
|
20
20
|
size: { value: 1 }
|
|
21
21
|
})
|
|
@@ -26,40 +26,40 @@ const R = (n) => {
|
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
}, $ = (n = x) => {
|
|
29
|
-
let r, e = null, t,
|
|
30
|
-
const
|
|
31
|
-
r = void 0, e = null, t = l,
|
|
29
|
+
let r, e = null, t, o = !1;
|
|
30
|
+
const u = (l) => {
|
|
31
|
+
r = void 0, e = null, t = l, o = !1;
|
|
32
32
|
}, m = () => {
|
|
33
|
-
|
|
34
|
-
},
|
|
33
|
+
o || (a(), o = !0);
|
|
34
|
+
}, a = () => {
|
|
35
35
|
try {
|
|
36
36
|
if (!e) return;
|
|
37
37
|
n.unbind(e, t);
|
|
38
38
|
} catch {
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
|
-
return
|
|
41
|
+
return p({
|
|
42
42
|
action: { get: () => t },
|
|
43
43
|
reflex: { get: () => r },
|
|
44
44
|
release: { value: m },
|
|
45
45
|
update: { value: (l, s) => {
|
|
46
|
-
c(l),
|
|
47
|
-
const
|
|
48
|
-
if (t === l && e ===
|
|
46
|
+
c(l), o && u(l);
|
|
47
|
+
const f = b(s) ? null : s;
|
|
48
|
+
if (t === l && e === f) {
|
|
49
49
|
if (r) return;
|
|
50
50
|
} else if (e) {
|
|
51
|
-
if (
|
|
52
|
-
r = n.bind(e, l),
|
|
51
|
+
if (d(i(e), i(f))) {
|
|
52
|
+
r = n.bind(e, l), a(), t = l;
|
|
53
53
|
return;
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
a();
|
|
56
56
|
}
|
|
57
|
-
t = l, r = (e =
|
|
57
|
+
t = l, r = (e = f) ? n.bind(e, t) : v(t);
|
|
58
58
|
} }
|
|
59
59
|
});
|
|
60
60
|
};
|
|
61
61
|
export {
|
|
62
|
-
|
|
62
|
+
v as createIsolatedFauxReflex,
|
|
63
63
|
$ as createReflexContainer,
|
|
64
64
|
$ as default
|
|
65
65
|
};
|