@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,54 +1,54 @@
|
|
|
1
1
|
import { options as W } from "../../dist/preact.module.js";
|
|
2
|
-
var s,
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
var u =
|
|
2
|
+
var s, r, H, A, l = 0, T = [], o = W, F = o.__b, k = o.__r, q = o.diffed, C = o.__c, b = o.unmount, g = o.__;
|
|
3
|
+
function v(_, t) {
|
|
4
|
+
o.__h && o.__h(r, _, l || t), l = 0;
|
|
5
|
+
var u = r.__H || (r.__H = { __: [], __h: [] });
|
|
6
6
|
return _ >= u.__.length && u.__.push({}), u.__[_];
|
|
7
7
|
}
|
|
8
8
|
function I(_) {
|
|
9
9
|
return l = 1, j(R, _);
|
|
10
10
|
}
|
|
11
11
|
function j(_, t, u) {
|
|
12
|
-
var n =
|
|
13
|
-
if (n.t = _, !n.__c && (n.__ = [u ? u(t) : R(void 0, t), function(
|
|
14
|
-
var c = n.__N ? n.__N[0] : n.__[0], f = n.t(c,
|
|
12
|
+
var n = v(s++, 2);
|
|
13
|
+
if (n.t = _, !n.__c && (n.__ = [u ? u(t) : R(void 0, t), function(i) {
|
|
14
|
+
var c = n.__N ? n.__N[0] : n.__[0], f = n.t(c, i);
|
|
15
15
|
c !== f && (n.__N = [f, n.__[1]], n.__c.setState({}));
|
|
16
|
-
}], n.__c =
|
|
17
|
-
var a = function(
|
|
16
|
+
}], n.__c = r, !r.__f)) {
|
|
17
|
+
var a = function(i, c, f) {
|
|
18
18
|
if (!n.__c.__H) return !0;
|
|
19
|
-
var
|
|
20
|
-
return !!
|
|
19
|
+
var m = n.__c.__H.__.filter(function(e) {
|
|
20
|
+
return !!e.__c;
|
|
21
21
|
});
|
|
22
|
-
if (
|
|
23
|
-
return !
|
|
24
|
-
})) return !h || h.call(this,
|
|
25
|
-
var
|
|
26
|
-
return
|
|
27
|
-
if (
|
|
28
|
-
var S =
|
|
29
|
-
|
|
22
|
+
if (m.every(function(e) {
|
|
23
|
+
return !e.__N;
|
|
24
|
+
})) return !h || h.call(this, i, c, f);
|
|
25
|
+
var N = n.__c.props !== i;
|
|
26
|
+
return m.forEach(function(e) {
|
|
27
|
+
if (e.__N) {
|
|
28
|
+
var S = e.__[0];
|
|
29
|
+
e.__ = e.__N, e.__N = void 0, S !== e.__[0] && (N = !0);
|
|
30
30
|
}
|
|
31
|
-
}), h && h.call(this,
|
|
31
|
+
}), h && h.call(this, i, c, f) || N;
|
|
32
32
|
};
|
|
33
|
-
|
|
34
|
-
var h =
|
|
35
|
-
|
|
33
|
+
r.__f = !0;
|
|
34
|
+
var h = r.shouldComponentUpdate, E = r.componentWillUpdate;
|
|
35
|
+
r.componentWillUpdate = function(i, c, f) {
|
|
36
36
|
if (this.__e) {
|
|
37
|
-
var
|
|
38
|
-
h = void 0, a(
|
|
37
|
+
var m = h;
|
|
38
|
+
h = void 0, a(i, c, f), h = m;
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
},
|
|
40
|
+
E && E.call(this, i, c, f);
|
|
41
|
+
}, r.shouldComponentUpdate = a;
|
|
42
42
|
}
|
|
43
43
|
return n.__N || n.__;
|
|
44
44
|
}
|
|
45
45
|
function L(_, t) {
|
|
46
|
-
var u =
|
|
47
|
-
!
|
|
46
|
+
var u = v(s++, 3);
|
|
47
|
+
!o.__s && y(u.__H, t) && (u.__ = _, u.u = t, r.__H.__h.push(u));
|
|
48
48
|
}
|
|
49
49
|
function w(_, t) {
|
|
50
|
-
var u =
|
|
51
|
-
!
|
|
50
|
+
var u = v(s++, 4);
|
|
51
|
+
!o.__s && y(u.__H, t) && (u.__ = _, u.u = t, r.__h.push(u));
|
|
52
52
|
}
|
|
53
53
|
function M(_) {
|
|
54
54
|
return l = 5, U(function() {
|
|
@@ -57,16 +57,20 @@ function M(_) {
|
|
|
57
57
|
}
|
|
58
58
|
function P(_, t, u) {
|
|
59
59
|
l = 6, w(function() {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
if (typeof _ == "function") {
|
|
61
|
+
var n = _(t());
|
|
62
|
+
return function() {
|
|
63
|
+
_(null), n && typeof n == "function" && n();
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
if (_) return _.current = t(), function() {
|
|
63
67
|
return _.current = null;
|
|
64
|
-
}
|
|
68
|
+
};
|
|
65
69
|
}, u == null ? u : u.concat(_));
|
|
66
70
|
}
|
|
67
71
|
function U(_, t) {
|
|
68
|
-
var u =
|
|
69
|
-
return
|
|
72
|
+
var u = v(s++, 7);
|
|
73
|
+
return y(u.__H, t) && (u.__ = _(), u.__H = t, u.__h = _), u.__;
|
|
70
74
|
}
|
|
71
75
|
function $(_, t) {
|
|
72
76
|
return l = 8, U(function() {
|
|
@@ -74,54 +78,54 @@ function $(_, t) {
|
|
|
74
78
|
}, t);
|
|
75
79
|
}
|
|
76
80
|
function G(_) {
|
|
77
|
-
var t =
|
|
78
|
-
return u.c = _, t ? (u.__ == null && (u.__ = !0, t.sub(
|
|
81
|
+
var t = r.context[_.__c], u = v(s++, 9);
|
|
82
|
+
return u.c = _, t ? (u.__ == null && (u.__ = !0, t.sub(r)), t.props.value) : _.__;
|
|
79
83
|
}
|
|
80
84
|
function z() {
|
|
81
85
|
for (var _; _ = T.shift(); ) if (_.__P && _.__H) try {
|
|
82
|
-
_.__H.__h.forEach(
|
|
86
|
+
_.__H.__h.forEach(p), _.__H.__h.forEach(d), _.__H.__h = [];
|
|
83
87
|
} catch (t) {
|
|
84
|
-
_.__H.__h = [],
|
|
88
|
+
_.__H.__h = [], o.__e(t, _.__v);
|
|
85
89
|
}
|
|
86
90
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
},
|
|
91
|
+
o.__b = function(_) {
|
|
92
|
+
r = null, F && F(_);
|
|
93
|
+
}, o.__ = function(_, t) {
|
|
90
94
|
_ && t.__k && t.__k.__m && (_.__m = t.__k.__m), g && g(_, t);
|
|
91
|
-
},
|
|
95
|
+
}, o.__r = function(_) {
|
|
92
96
|
k && k(_), s = 0;
|
|
93
|
-
var t = (
|
|
94
|
-
t && (
|
|
95
|
-
u.__N && (u.__ = u.__N), u.
|
|
96
|
-
})) : (t.__h.forEach(
|
|
97
|
-
},
|
|
97
|
+
var t = (r = _.__c).__H;
|
|
98
|
+
t && (H === r ? (t.__h = [], r.__h = [], t.__.forEach(function(u) {
|
|
99
|
+
u.__N && (u.__ = u.__N), u.u = u.__N = void 0;
|
|
100
|
+
})) : (t.__h.forEach(p), t.__h.forEach(d), t.__h = [], s = 0)), H = r;
|
|
101
|
+
}, o.diffed = function(_) {
|
|
98
102
|
q && q(_);
|
|
99
103
|
var t = _.__c;
|
|
100
|
-
t && t.__H && (t.__H.__h.length && (T.push(t) !== 1 && A ===
|
|
101
|
-
u.
|
|
102
|
-
})),
|
|
103
|
-
},
|
|
104
|
+
t && t.__H && (t.__H.__h.length && (T.push(t) !== 1 && A === o.requestAnimationFrame || ((A = o.requestAnimationFrame) || B)(z)), t.__H.__.forEach(function(u) {
|
|
105
|
+
u.u && (u.__H = u.u), u.u = void 0;
|
|
106
|
+
})), H = r = null;
|
|
107
|
+
}, o.__c = function(_, t) {
|
|
104
108
|
t.some(function(u) {
|
|
105
109
|
try {
|
|
106
|
-
u.__h.forEach(
|
|
107
|
-
return !n.__ ||
|
|
110
|
+
u.__h.forEach(p), u.__h = u.__h.filter(function(n) {
|
|
111
|
+
return !n.__ || d(n);
|
|
108
112
|
});
|
|
109
113
|
} catch (n) {
|
|
110
114
|
t.some(function(a) {
|
|
111
115
|
a.__h && (a.__h = []);
|
|
112
|
-
}), t = [],
|
|
116
|
+
}), t = [], o.__e(n, u.__v);
|
|
113
117
|
}
|
|
114
118
|
}), C && C(_, t);
|
|
115
|
-
},
|
|
119
|
+
}, o.unmount = function(_) {
|
|
116
120
|
b && b(_);
|
|
117
121
|
var t, u = _.__c;
|
|
118
122
|
u && u.__H && (u.__H.__.forEach(function(n) {
|
|
119
123
|
try {
|
|
120
|
-
|
|
124
|
+
p(n);
|
|
121
125
|
} catch (a) {
|
|
122
126
|
t = a;
|
|
123
127
|
}
|
|
124
|
-
}), u.__H = void 0, t &&
|
|
128
|
+
}), u.__H = void 0, t && o.__e(t, u.__v));
|
|
125
129
|
};
|
|
126
130
|
var x = typeof requestAnimationFrame == "function";
|
|
127
131
|
function B(_) {
|
|
@@ -130,15 +134,15 @@ function B(_) {
|
|
|
130
134
|
}, n = setTimeout(u, 100);
|
|
131
135
|
x && (t = requestAnimationFrame(u));
|
|
132
136
|
}
|
|
133
|
-
function
|
|
134
|
-
var t =
|
|
135
|
-
typeof u == "function" && (_.__c = void 0, u()),
|
|
137
|
+
function p(_) {
|
|
138
|
+
var t = r, u = _.__c;
|
|
139
|
+
typeof u == "function" && (_.__c = void 0, u()), r = t;
|
|
136
140
|
}
|
|
137
|
-
function
|
|
138
|
-
var t =
|
|
139
|
-
_.__c = _.__(),
|
|
141
|
+
function d(_) {
|
|
142
|
+
var t = r;
|
|
143
|
+
_.__c = _.__(), r = t;
|
|
140
144
|
}
|
|
141
|
-
function
|
|
145
|
+
function y(_, t) {
|
|
142
146
|
return !_ || _.length !== t.length || t.some(function(u, n) {
|
|
143
147
|
return u !== _[n];
|
|
144
148
|
});
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { options as s } from "../../dist/preact.module.js";
|
|
2
2
|
import { Fragment as x } from "../../dist/preact.module.js";
|
|
3
3
|
var a = 0;
|
|
4
|
-
function
|
|
4
|
+
function v(f, r, i, p, l, u) {
|
|
5
5
|
r || (r = {});
|
|
6
|
-
var
|
|
7
|
-
if ("ref" in
|
|
8
|
-
var
|
|
9
|
-
if (typeof
|
|
10
|
-
return s.vnode && s.vnode(
|
|
6
|
+
var n, o, _ = r;
|
|
7
|
+
if ("ref" in _) for (o in _ = {}, r) o == "ref" ? n = r[o] : _[o] = r[o];
|
|
8
|
+
var e = { type: f, props: _, key: i, ref: n, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --a, __i: -1, __u: 0, __source: l, __self: u };
|
|
9
|
+
if (typeof f == "function" && (n = f.defaultProps)) for (o in n) _[o] === void 0 && (_[o] = n[o]);
|
|
10
|
+
return s.vnode && s.vnode(e), e;
|
|
11
11
|
}
|
|
12
12
|
export {
|
|
13
13
|
x as Fragment,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
v as jsx,
|
|
15
|
+
v as jsxDEV,
|
|
16
|
+
v as jsxs
|
|
17
17
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { createPortal as
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
4
|
-
const R = (r,
|
|
5
|
-
const [t, s] =
|
|
6
|
-
|
|
7
|
-
const u = (e) => (...
|
|
8
|
-
const
|
|
9
|
-
return
|
|
1
|
+
import { createPortal as c } from "../../external/preact/compat/dist/compat.module.js";
|
|
2
|
+
import { useState as i, useMemo as m } from "../../external/preact/hooks/dist/hooks.module.js";
|
|
3
|
+
import f from "../useReflex.js";
|
|
4
|
+
const R = (r, o) => {
|
|
5
|
+
const [t, s] = i(), d = f(
|
|
6
|
+
m(() => {
|
|
7
|
+
const u = (e) => (...a) => {
|
|
8
|
+
const n = r(e, ...a);
|
|
9
|
+
return n && c(n, e);
|
|
10
10
|
};
|
|
11
11
|
return s(void 0), (e) => s(e instanceof Element ? () => u(e) : void 0);
|
|
12
|
-
}, [r,
|
|
13
|
-
|
|
12
|
+
}, [r, o]),
|
|
13
|
+
o
|
|
14
14
|
);
|
|
15
15
|
return [t, d];
|
|
16
16
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useRef as
|
|
1
|
+
import { useRef as u, useMemo as i, useCallback as l } from "../../external/preact/hooks/dist/hooks.module.js";
|
|
2
2
|
import { InteractionKeyCode as r } from "../../components/types.js";
|
|
3
3
|
import { withTabbableRoot as T, isFocusable as p, focusIsWithin as L } from "../../primitives/dom/tabbableRoot/tabbable.js";
|
|
4
4
|
import C from "../useReflex.js";
|
|
5
5
|
import { isUndefined as O } from "../../utils/value/is.js";
|
|
6
6
|
const w = (R, f) => {
|
|
7
|
-
const s =
|
|
7
|
+
const s = u(!1), o = u(null), c = u(!1), a = i(T, []), m = i(() => {
|
|
8
8
|
let e = null, t;
|
|
9
9
|
return (F) => {
|
|
10
10
|
O(t) || cancelAnimationFrame(t);
|
|
@@ -25,7 +25,7 @@ const w = (R, f) => {
|
|
|
25
25
|
}, []), d = l((e) => {
|
|
26
26
|
a.current = o.current = e.target;
|
|
27
27
|
}, []), E = l((e) => {
|
|
28
|
-
a.tabbables.includes(e.relatedTarget) || L(e.currentTarget, e.relatedTarget) ||
|
|
28
|
+
a.tabbables.includes(e.relatedTarget) || L(e.currentTarget, e.relatedTarget) || c.current || (s.current = !0, requestAnimationFrame(() => {
|
|
29
29
|
s.current && f(s.current = !1);
|
|
30
30
|
}));
|
|
31
31
|
}, []), A = i(() => {
|
|
@@ -44,9 +44,9 @@ const w = (R, f) => {
|
|
|
44
44
|
case r.TAB:
|
|
45
45
|
cancelAnimationFrame(e), e = requestAnimationFrame(() => {
|
|
46
46
|
e = requestAnimationFrame(() => {
|
|
47
|
-
|
|
47
|
+
c.current = !1, e = void 0;
|
|
48
48
|
});
|
|
49
|
-
}),
|
|
49
|
+
}), c.current = !0;
|
|
50
50
|
break;
|
|
51
51
|
}
|
|
52
52
|
t.code === r.TAB ? (t.preventDefault(), a.current = t.shiftKey ? -1 : 1) : t.code === r.ESCAPE && f(!0);
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { useState as s, useCallback as
|
|
1
|
+
import { useState as s, useCallback as m, useMemo as r } from "../external/preact/hooks/dist/hooks.module.js";
|
|
2
2
|
import { capitalize as x } from "../utils/value/string.js";
|
|
3
|
-
const
|
|
4
|
-
const [d,
|
|
5
|
-
() => e && e.length > 1 ? Object.freeze(e.map(({ description: i, id:
|
|
3
|
+
const z = (e) => {
|
|
4
|
+
const [d, o] = s(0), f = m(() => o(0), [o]), p = r(() => e == null ? void 0 : e[d], [e, d]), B = r(
|
|
5
|
+
() => e && e.length > 1 ? Object.freeze(e.map(({ description: i, id: t }) => ({ id: t, name: x(i) }))) : void 0,
|
|
6
6
|
[e]
|
|
7
|
-
), S =
|
|
7
|
+
), S = m(
|
|
8
8
|
({ target: i }) => {
|
|
9
|
-
const
|
|
10
|
-
n >= 0 &&
|
|
9
|
+
const t = i == null ? void 0 : i.value, n = e == null ? void 0 : e.findIndex(({ id: l }) => l === t);
|
|
10
|
+
n >= 0 && o(n);
|
|
11
11
|
},
|
|
12
|
-
[e,
|
|
12
|
+
[e, o]
|
|
13
13
|
);
|
|
14
|
-
return { activeBalanceAccount: p, balanceAccountSelectionOptions: B, onBalanceAccountSelection: S, resetBalanceAccountSelection:
|
|
14
|
+
return { activeBalanceAccount: p, balanceAccountSelectionOptions: B, onBalanceAccountSelection: S, resetBalanceAccountSelection: f };
|
|
15
15
|
};
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
z as default
|
|
18
18
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { useState as O, useCallback as r, useMemo as a, useEffect as
|
|
1
|
+
import { useState as O, useCallback as r, useMemo as a, useEffect as d } from "../../external/preact/hooks/dist/hooks.module.js";
|
|
2
2
|
import { ButtonVariant as P } from "../../components/internal/Button/types.js";
|
|
3
3
|
import { CommitAction as t } from "./types.js";
|
|
4
|
-
import
|
|
4
|
+
import g from "../../core/Context/useCoreContext.js";
|
|
5
|
+
import { EMPTY_OBJECT as v } from "../../utils/value/constants.js";
|
|
5
6
|
import { boolOrFalse as B } from "../../utils/value/bool.js";
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const { i18n: s } = v(), [n, o] = O(t.NONE), [R, u] = O(n !== t.NONE), C = r(() => o(t.APPLY), [o]), E = r(() => o(t.CLEAR), [o]), i = r(() => o(t.NONE), [o]), f = a(
|
|
7
|
+
const h = ({ applyDisabled: A, applyTitle: m, resetDisabled: e, resetTitle: c } = v) => {
|
|
8
|
+
const { i18n: s } = g(), [n, o] = O(t.NONE), [R, u] = O(n !== t.NONE), C = r(() => o(t.APPLY), [o]), E = r(() => o(t.CLEAR), [o]), i = r(() => o(t.NONE), [o]), f = a(
|
|
9
9
|
() => ({
|
|
10
10
|
disabled: B(A),
|
|
11
11
|
event: C,
|
|
@@ -22,7 +22,7 @@ const S = ({ applyDisabled: A, applyTitle: m, resetDisabled: e, resetTitle: c }
|
|
|
22
22
|
}),
|
|
23
23
|
[s, E, e, c]
|
|
24
24
|
), Y = a(() => [f, N], [f, N]);
|
|
25
|
-
return
|
|
25
|
+
return d(() => {
|
|
26
26
|
switch (u(n !== t.NONE), n) {
|
|
27
27
|
case t.APPLY:
|
|
28
28
|
case t.CLEAR:
|
|
@@ -32,5 +32,5 @@ const S = ({ applyDisabled: A, applyTitle: m, resetDisabled: e, resetTitle: c }
|
|
|
32
32
|
}, [n, u, i]), { commitAction: n, commitActionButtons: Y, committing: R, resetCommitAction: i };
|
|
33
33
|
};
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
h as default
|
|
36
36
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useState as d, useEffect as
|
|
2
|
-
import
|
|
1
|
+
import { useState as d, useEffect as l } from "../external/preact/hooks/dist/hooks.module.js";
|
|
2
|
+
import p from "../core/Context/useCoreContext.js";
|
|
3
3
|
const k = (i) => {
|
|
4
4
|
var c;
|
|
5
|
-
const { componentRef: n } =
|
|
5
|
+
const { componentRef: n } = p(), [r, f] = d(((c = n.current) == null ? void 0 : c.offsetWidth) || 0), [u, o, a] = i;
|
|
6
6
|
let s = !1;
|
|
7
7
|
switch (u) {
|
|
8
8
|
case "up":
|
|
@@ -19,7 +19,7 @@ const k = (i) => {
|
|
|
19
19
|
s = r === o;
|
|
20
20
|
break;
|
|
21
21
|
}
|
|
22
|
-
return
|
|
22
|
+
return l(() => {
|
|
23
23
|
const e = n.current;
|
|
24
24
|
if (!e) return;
|
|
25
25
|
const t = new ResizeObserver((m) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState as i, useCallback as u, useEffect as m } from "../external/preact/hooks/dist/hooks.module.js";
|
|
2
2
|
import { isFunction as y } from "../utils/value/is.js";
|
|
3
|
-
const
|
|
3
|
+
const g = ({
|
|
4
4
|
records: s,
|
|
5
5
|
hasCustomColumn: a = !1,
|
|
6
6
|
onDataRetrieve: o,
|
|
@@ -25,5 +25,5 @@ const R = ({
|
|
|
25
25
|
}, [n, s]), { customRecords: f, loadingCustomRecords: c };
|
|
26
26
|
};
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
g as useCustomColumnsData
|
|
29
29
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { useState as m, useRef as f, useCallback as
|
|
2
|
-
import { FilterParam as
|
|
3
|
-
import { getTimeRangeSelectionDefaultPresetOptions as
|
|
1
|
+
import { useState as m, useRef as f, useCallback as l, useEffect as T } from "../external/preact/hooks/dist/hooks.module.js";
|
|
2
|
+
import { FilterParam as t } from "../components/types.js";
|
|
3
|
+
import { getTimeRangeSelectionDefaultPresetOptions as u } from "../components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js";
|
|
4
4
|
import { DEFAULT_TRANSACTIONS_OVERVIEW_MULTI_SELECTION_FILTER_PARAMS as c } from "../components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.js";
|
|
5
|
-
const A = (
|
|
6
|
-
const
|
|
5
|
+
const A = (o) => {
|
|
6
|
+
const e = u(), a = "rangePreset.last30Days", { from: s, to: r } = e[a];
|
|
7
7
|
return { defaultFilterParams: {
|
|
8
|
-
...
|
|
8
|
+
...o === "transactions" && {
|
|
9
9
|
...c,
|
|
10
|
-
[
|
|
11
|
-
[
|
|
10
|
+
[t.MIN_AMOUNT]: void 0,
|
|
11
|
+
[t.MAX_AMOUNT]: void 0
|
|
12
12
|
},
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
}, defaultTimeRange: a, timeRangeOptions:
|
|
17
|
-
},
|
|
18
|
-
const [a, s] = m(Date.now()),
|
|
19
|
-
return
|
|
20
|
-
|
|
21
|
-
}, [
|
|
13
|
+
[t.BALANCE_ACCOUNT]: void 0,
|
|
14
|
+
[t.CREATED_SINCE]: new Date(s).toISOString(),
|
|
15
|
+
[t.CREATED_UNTIL]: new Date(r).toISOString()
|
|
16
|
+
}, defaultTimeRange: a, timeRangeOptions: e };
|
|
17
|
+
}, O = (o, e) => {
|
|
18
|
+
const [a, s] = m(Date.now()), r = A(o), i = f(r), n = l(() => s(Date.now()), [s]);
|
|
19
|
+
return T(() => {
|
|
20
|
+
n();
|
|
21
|
+
}, [e, n]), { defaultParams: i, nowTimestamp: a, refreshNowTimestamp: n };
|
|
22
22
|
};
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
O as default
|
|
25
25
|
};
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { useRef as l, useReducer as
|
|
2
|
-
import { boolOrTrue as
|
|
3
|
-
function
|
|
4
|
-
fetchOptions: { keepPrevData:
|
|
5
|
-
queryFn:
|
|
1
|
+
import { useRef as l, useReducer as p, useCallback as y, useEffect as g } from "../external/preact/hooks/dist/hooks.module.js";
|
|
2
|
+
import { boolOrTrue as u } from "../utils/value/bool.js";
|
|
3
|
+
function F({
|
|
4
|
+
fetchOptions: { keepPrevData: d, onSuccess: e, enabled: c } = { keepPrevData: !0 },
|
|
5
|
+
queryFn: s
|
|
6
6
|
}) {
|
|
7
7
|
const r = l(!1), a = {
|
|
8
8
|
error: void 0,
|
|
9
9
|
data: void 0,
|
|
10
|
-
isFetching:
|
|
11
|
-
},
|
|
12
|
-
switch (
|
|
10
|
+
isFetching: u(c)
|
|
11
|
+
}, f = (t, o) => {
|
|
12
|
+
switch (o.type) {
|
|
13
13
|
case "loading":
|
|
14
|
-
return { ...a, isFetching: !0, data:
|
|
14
|
+
return { ...a, isFetching: !0, data: d ? t.data : void 0 };
|
|
15
15
|
case "fetched":
|
|
16
|
-
return { ...a, data:
|
|
16
|
+
return { ...a, data: o.payload, isFetching: !1 };
|
|
17
17
|
case "error":
|
|
18
|
-
return { ...a, error:
|
|
18
|
+
return { ...a, error: o.payload, isFetching: !1 };
|
|
19
19
|
default:
|
|
20
|
-
return
|
|
20
|
+
return t;
|
|
21
21
|
}
|
|
22
|
-
}, [
|
|
23
|
-
|
|
22
|
+
}, [h, i] = p(f, a), n = y(async () => {
|
|
23
|
+
i({ type: "loading" });
|
|
24
24
|
try {
|
|
25
25
|
if (r.current) return;
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
} catch (
|
|
26
|
+
const t = await s();
|
|
27
|
+
e == null || e(t), i({ type: "fetched", payload: t });
|
|
28
|
+
} catch (t) {
|
|
29
29
|
if (r.current) return;
|
|
30
|
-
|
|
30
|
+
i({ type: "error", payload: t });
|
|
31
31
|
}
|
|
32
|
-
}, [
|
|
33
|
-
return g(() => (r.current = !1,
|
|
32
|
+
}, [i, s, e]);
|
|
33
|
+
return g(() => (r.current = !1, u(c) && n(), () => {
|
|
34
34
|
r.current = !0;
|
|
35
|
-
}), [
|
|
35
|
+
}), [c, n]), h;
|
|
36
36
|
}
|
|
37
37
|
export {
|
|
38
|
-
|
|
38
|
+
F as useFetch
|
|
39
39
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useState as f, useCallback as u, useMemo as
|
|
2
|
-
import { hasCallback as
|
|
1
|
+
import { useState as f, useCallback as u, useMemo as k } from "../../external/preact/hooks/dist/hooks.module.js";
|
|
2
|
+
import { hasCallback as D } from "./types.js";
|
|
3
3
|
function o(l) {
|
|
4
|
-
const [
|
|
4
|
+
const [d, r] = f(null), n = u(
|
|
5
5
|
(e) => {
|
|
6
6
|
var c;
|
|
7
|
-
return e &&
|
|
7
|
+
return e && D(l[e.selection.type]) ? {
|
|
8
8
|
callback: (c = l == null ? void 0 : l[e.selection.type]) != null && c.callback ? (a) => {
|
|
9
9
|
var s, t;
|
|
10
10
|
return (t = (s = l[e.selection.type]) == null ? void 0 : s.callback) == null ? void 0 : t.call(s, { showModal: () => r(e), ...a });
|
|
@@ -15,7 +15,7 @@ function o(l) {
|
|
|
15
15
|
} : (r(e), {});
|
|
16
16
|
},
|
|
17
17
|
[l]
|
|
18
|
-
), i = u(() => r(null), []), b =
|
|
18
|
+
), i = u(() => r(null), []), b = k(() => {
|
|
19
19
|
const e = {};
|
|
20
20
|
for (const c in l) {
|
|
21
21
|
const a = l[c];
|
|
@@ -24,8 +24,8 @@ function o(l) {
|
|
|
24
24
|
return e;
|
|
25
25
|
}, [l]);
|
|
26
26
|
return {
|
|
27
|
-
selectedDetail:
|
|
28
|
-
updateDetails:
|
|
27
|
+
selectedDetail: d,
|
|
28
|
+
updateDetails: n,
|
|
29
29
|
detailsToShow: b,
|
|
30
30
|
resetDetails: i
|
|
31
31
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { useState as p, useRef as g, useCallback as M, useEffect as P, useMemo as _ } from "../../external/preact/hooks/dist/hooks.module.js";
|
|
2
2
|
import { isNumber as b, isFunction as k } from "../../utils/value/is.js";
|
|
3
|
+
import { EMPTY_OBJECT as I } from "../../utils/value/constants.js";
|
|
3
4
|
import { ALREADY_RESOLVED_PROMISE as x } from "../../utils/async/constants.js";
|
|
4
5
|
import { tryResolve as a } from "../../utils/async/main.js";
|
|
5
|
-
import { EMPTY_OBJECT as I } from "../../utils/value/constants.js";
|
|
6
6
|
const u = (e) => {
|
|
7
7
|
setTimeout(() => {
|
|
8
8
|
throw e;
|
|
9
9
|
}, 0);
|
|
10
10
|
};
|
|
11
|
-
function
|
|
11
|
+
function V({
|
|
12
12
|
queryFn: e,
|
|
13
13
|
options: A
|
|
14
14
|
}) {
|
|
@@ -55,5 +55,5 @@ function j({
|
|
|
55
55
|
);
|
|
56
56
|
}
|
|
57
57
|
export {
|
|
58
|
-
|
|
58
|
+
V as default
|
|
59
59
|
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { useRef as
|
|
2
|
-
import
|
|
3
|
-
import { EMPTY_OBJECT as
|
|
4
|
-
const x = (
|
|
5
|
-
const
|
|
6
|
-
const r = (
|
|
7
|
-
S.current && E(
|
|
1
|
+
import { useRef as o, useMemo as b, useReducer as v, useEffect as w } from "../../external/preact/hooks/dist/hooks.module.js";
|
|
2
|
+
import P from "../useMounted.js";
|
|
3
|
+
import { EMPTY_OBJECT as R } from "../../utils/value/constants.js";
|
|
4
|
+
const x = (a = R, f = !0) => {
|
|
5
|
+
const n = o(f), e = o(Object.freeze({ ...a })), p = o(new Set(Object.keys(e.current))), u = o(/* @__PURE__ */ new Set()), S = P(), [d, j] = b(() => {
|
|
6
|
+
const r = (c) => {
|
|
7
|
+
S.current && E(c);
|
|
8
8
|
};
|
|
9
9
|
return [
|
|
10
10
|
() => r("reset"),
|
|
11
|
-
(
|
|
11
|
+
(c) => r(c)
|
|
12
12
|
];
|
|
13
|
-
}, [S]), [z, E] =
|
|
14
|
-
if (
|
|
13
|
+
}, [S]), [z, E] = v((r, c) => {
|
|
14
|
+
if (c === "reset")
|
|
15
15
|
return u.current.clear(), e.current;
|
|
16
|
-
const s = { ...
|
|
17
|
-
Object.keys(s).forEach((t,
|
|
16
|
+
const s = { ...c }, h = [0];
|
|
17
|
+
Object.keys(s).forEach((t, m) => {
|
|
18
18
|
if (!p.current.has(t)) return;
|
|
19
|
-
const $ = r[t] ?? void 0,
|
|
19
|
+
const $ = r[t] ?? void 0, O = e.current[t] ?? void 0, l = s[t] ?? O;
|
|
20
20
|
if (l === $) return;
|
|
21
|
-
const g = Math.floor(
|
|
22
|
-
s[t] = l,
|
|
21
|
+
const g = Math.floor(m / 32), M = 1 << m % 32;
|
|
22
|
+
s[t] = l, h[g] |= M, u.current[l === O ? "delete" : "add"](t);
|
|
23
23
|
});
|
|
24
|
-
const
|
|
25
|
-
return
|
|
26
|
-
}, e.current), T =
|
|
27
|
-
return
|
|
28
|
-
e.current = Object.freeze({ ...
|
|
29
|
-
}, [f,
|
|
24
|
+
const i = h.some((t) => t) ? n.current && u.current.size === 0 ? e.current : Object.freeze({ ...r, ...s }) : r;
|
|
25
|
+
return n.current || (e.current = i, n.current = !0), i;
|
|
26
|
+
}, e.current), T = b(() => !!u.current.size, []);
|
|
27
|
+
return w(() => {
|
|
28
|
+
e.current = Object.freeze({ ...a }), p.current = new Set(Object.keys(e.current)), n.current = f, d();
|
|
29
|
+
}, [f, a, d]), { canResetState: T, defaultState: e.current, resetState: d, state: z, updateState: j };
|
|
30
30
|
};
|
|
31
31
|
export {
|
|
32
32
|
x as default
|