@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
package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundAmount.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as t } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
-
import { TX_DATA_CONTAINER as U, TX_DATA_INPUT_HEAD as S,
|
|
2
|
+
import { TX_DATA_CONTAINER as U, TX_DATA_INPUT_HEAD as S, TX_DATA_INPUT as $, TX_DATA_INPUT_CONTAINER_WITH_ERROR as B, TX_DATA_INPUT_CONTAINER_TEXT as q, TX_DATA_INPUT_CONTAINER_SHORT as H, TX_DATA_INPUT_CONTAINER as L } from "../constants.js";
|
|
3
3
|
import M from "classnames";
|
|
4
4
|
import { useState as R, useMemo as V, useRef as v } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
5
5
|
import C from "../../../../../core/Context/useCoreContext.js";
|
|
6
6
|
import Y from "../../../../internal/SVGIcons/CloseCircle.js";
|
|
7
7
|
import j from "../../../../internal/FormFields/InputBase.js";
|
|
8
8
|
import h from "../../../../internal/Typography/Typography.js";
|
|
9
|
-
import {
|
|
9
|
+
import { TypographyVariant as b, TypographyElement as D } from "../../../../internal/Typography/types.js";
|
|
10
10
|
import { getDecimalAmount as w, getDivider as W } from "../../../../../core/Localization/amount/amount-util.js";
|
|
11
11
|
import { ARIA_ERROR_SUFFIX as k } from "../../../../../core/Errors/constants.js";
|
|
12
12
|
import { TagVariant as z } from "../../../../internal/Tag/types.js";
|
|
@@ -24,15 +24,15 @@ const P = (r, n) => w(r, n).toFixed(_(n)), _ = (r) => Math.log10(W(r)), x = ({
|
|
|
24
24
|
}) => {
|
|
25
25
|
const { i18n: a } = C(), i = v(E()), m = v(E()), p = e ? l ? a.get(e, { values: { amount: l } }) : a.get(e) : "";
|
|
26
26
|
return /* @__PURE__ */ t("div", { className: U, children: [
|
|
27
|
-
/* @__PURE__ */ t("div", { className: S, children: /* @__PURE__ */ t("div", { id: m.current, children: /* @__PURE__ */ t(h, { el:
|
|
27
|
+
/* @__PURE__ */ t("div", { className: S, children: /* @__PURE__ */ t("div", { id: m.current, children: /* @__PURE__ */ t(h, { el: D.SPAN, variant: b.BODY, stronger: !0, children: a.get("refundAmount") }) }) }),
|
|
28
28
|
/* @__PURE__ */ t(
|
|
29
29
|
"div",
|
|
30
30
|
{
|
|
31
31
|
className: M({
|
|
32
|
-
[
|
|
33
|
-
[
|
|
32
|
+
[L]: !0,
|
|
33
|
+
[H]: !0,
|
|
34
34
|
[q]: !0,
|
|
35
|
-
[
|
|
35
|
+
[B]: !!e
|
|
36
36
|
}),
|
|
37
37
|
children: [
|
|
38
38
|
/* @__PURE__ */ t("label", { htmlFor: i.current, "aria-labelledby": m.current, children: [
|
|
@@ -42,7 +42,7 @@ const P = (r, n) => w(r, n).toFixed(_(n)), _ = (r) => Math.log10(W(r)), x = ({
|
|
|
42
42
|
{
|
|
43
43
|
min: 0,
|
|
44
44
|
type: "number",
|
|
45
|
-
className:
|
|
45
|
+
className: $,
|
|
46
46
|
disabled: J(n),
|
|
47
47
|
lang: a.locale,
|
|
48
48
|
onInput: A,
|
|
@@ -53,7 +53,7 @@ const P = (r, n) => w(r, n).toFixed(_(n)), _ = (r) => Math.log10(W(r)), x = ({
|
|
|
53
53
|
] }),
|
|
54
54
|
e && /* @__PURE__ */ t("div", { className: "adyen-pe-input__refund-invalid-value", id: `${i.current}${k}`, children: [
|
|
55
55
|
/* @__PURE__ */ t(Y, {}),
|
|
56
|
-
/* @__PURE__ */ t(h, { el:
|
|
56
|
+
/* @__PURE__ */ t(h, { el: D.SPAN, variant: b.BODY, children: p })
|
|
57
57
|
] })
|
|
58
58
|
]
|
|
59
59
|
}
|
package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundNotice.js
CHANGED
|
@@ -3,7 +3,7 @@ import { useMemo as n } from "../../../../../external/preact/hooks/dist/hooks.mo
|
|
|
3
3
|
import { TX_DATA_CONTAINER as i, TX_DATA_HEAD_CONTAINER as a } from "../constants.js";
|
|
4
4
|
import m from "../../../../../core/Context/useCoreContext.js";
|
|
5
5
|
import t from "../../../../internal/Typography/Typography.js";
|
|
6
|
-
import {
|
|
6
|
+
import { TypographyVariant as e, TypographyElement as p } from "../../../../internal/Typography/types.js";
|
|
7
7
|
const A = () => {
|
|
8
8
|
const { i18n: r } = m();
|
|
9
9
|
return n(
|
package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundReason.js
CHANGED
|
@@ -4,7 +4,7 @@ import { TX_DATA_CONTAINER as d, TX_DATA_INPUT_HEAD as T, TX_DATA_INPUT_CONTAINE
|
|
|
4
4
|
import { REFUND_REASONS as R } from "../../context/constants.js";
|
|
5
5
|
import N from "../../../../../core/Context/useCoreContext.js";
|
|
6
6
|
import A from "../../../../internal/Typography/Typography.js";
|
|
7
|
-
import {
|
|
7
|
+
import { TypographyVariant as _, TypographyElement as h } from "../../../../internal/Typography/types.js";
|
|
8
8
|
import { useTransactionRefundContext as g } from "../../context/refund/context.js";
|
|
9
9
|
import C from "../../../../internal/FormFields/Select/Select.js";
|
|
10
10
|
const P = () => {
|
|
@@ -22,7 +22,7 @@ const P = () => {
|
|
|
22
22
|
[r]
|
|
23
23
|
);
|
|
24
24
|
return /* @__PURE__ */ o("div", { className: d, children: [
|
|
25
|
-
/* @__PURE__ */ o("div", { className: T, children: /* @__PURE__ */ o(A, { el:
|
|
25
|
+
/* @__PURE__ */ o("div", { className: T, children: /* @__PURE__ */ o(A, { el: h.SPAN, variant: _.BODY, stronger: !0, children: n.get("refundReason") }) }),
|
|
26
26
|
/* @__PURE__ */ o("div", { className: `${u} ${p}`, children: /* @__PURE__ */ o(
|
|
27
27
|
C,
|
|
28
28
|
{
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { jsx as e } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import { memo as N } from "../../../../../external/preact/compat/dist/compat.module.js";
|
|
3
|
-
import {
|
|
3
|
+
import { Fragment as R, createContext as O } from "../../../../../external/preact/dist/preact.module.js";
|
|
4
4
|
import { useMemo as o, useCallback as w, useEffect as y, useContext as j } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
5
5
|
import z from "../../../../../core/Context/useCoreContext.js";
|
|
6
6
|
import { ButtonVariant as A } from "../../../../internal/Button/types.js";
|
|
7
7
|
import { ActiveView as B } from "../types.js";
|
|
8
8
|
import { Icon as E } from "../../../../internal/Icon/Icon.js";
|
|
9
|
-
import {
|
|
9
|
+
import { EMPTY_OBJECT as l, EMPTY_ARRAY as _ } from "../../../../../utils/value/constants.js";
|
|
10
10
|
import { noop as D } from "../../../../../utils/common.js";
|
|
11
11
|
const M = O({
|
|
12
12
|
availableItems: _,
|
|
13
13
|
primaryAction: D,
|
|
14
14
|
secondaryAction: D,
|
|
15
|
-
transaction:
|
|
16
|
-
extraFields:
|
|
17
|
-
dataCustomization:
|
|
15
|
+
transaction: l,
|
|
16
|
+
extraFields: l,
|
|
17
|
+
dataCustomization: l
|
|
18
18
|
}), S = N(
|
|
19
19
|
({
|
|
20
20
|
children: P,
|
|
21
21
|
lineItems: Y,
|
|
22
22
|
refundAvailable: n,
|
|
23
|
-
refundDisabled:
|
|
24
|
-
setActiveView:
|
|
23
|
+
refundDisabled: f,
|
|
24
|
+
setActiveView: u,
|
|
25
25
|
setPrimaryAction: p,
|
|
26
26
|
setSecondaryAction: v,
|
|
27
27
|
transaction: i,
|
|
@@ -29,9 +29,9 @@ const M = O({
|
|
|
29
29
|
extraFields: F,
|
|
30
30
|
dataCustomization: I
|
|
31
31
|
}) => {
|
|
32
|
-
const { i18n: r } = z(), { currentTransaction: T, canNavigateBackward: g, canNavigateForward: C, backward: x, forward: b } = k, h = o(() => ({ title: r.get("refundAction") }), [r]), a = o(() => !n ||
|
|
33
|
-
() => void (!a &&
|
|
34
|
-
[a,
|
|
32
|
+
const { i18n: r } = z(), { currentTransaction: T, canNavigateBackward: g, canNavigateForward: C, backward: x, forward: b } = k, h = o(() => ({ title: r.get("refundAction") }), [r]), a = o(() => !n || f, [n, f]), s = w(
|
|
33
|
+
() => void (!a && u(B.REFUND)),
|
|
34
|
+
[a, u]
|
|
35
35
|
), t = o(() => {
|
|
36
36
|
if (T === i.id) {
|
|
37
37
|
if (g) return 2;
|
|
@@ -10,8 +10,8 @@ import { useRefundContextReason as S } from "./hooks/useRefundContextReason.js";
|
|
|
10
10
|
import Y from "../../../../../hooks/useMutation/useMutation.js";
|
|
11
11
|
import { RefundMode as j } from "../types.js";
|
|
12
12
|
import { useConfigContext as q } from "../../../../../core/ConfigContext/context.js";
|
|
13
|
-
import { EMPTY_ARRAY as f } from "../../../../../utils/value/constants.js";
|
|
14
13
|
import { noop as t } from "../../../../../utils/common.js";
|
|
14
|
+
import { EMPTY_ARRAY as f } from "../../../../../utils/value/constants.js";
|
|
15
15
|
const d = E({
|
|
16
16
|
amount: 0,
|
|
17
17
|
availableAmount: 0,
|
|
@@ -24,8 +24,8 @@ const T = ({ currency: c, lineItems: n }) => {
|
|
|
24
24
|
), i = b(
|
|
25
25
|
function(a) {
|
|
26
26
|
m((t) => {
|
|
27
|
-
const
|
|
28
|
-
return p(u, t,
|
|
27
|
+
const d = [...arguments.length === 0 ? new Map(t.map(({ id: r }) => [r, 0])) : new Map((a == null ? void 0 : a.map((r) => [r, 0])) ?? o)].map(([r, g]) => ({ id: r, quantity: g }));
|
|
28
|
+
return p(u, t, d);
|
|
29
29
|
});
|
|
30
30
|
},
|
|
31
31
|
[u]
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { isEmptyString as l } from "../../../../../../utils/value/string.js";
|
|
2
|
-
import { struct as g } from "../../../../../../utils/struct/main.js";
|
|
3
|
-
import { enumerable as d, getter as i } from "../../../../../../utils/struct/property.js";
|
|
4
2
|
import { EMPTY_ARRAY as T } from "../../../../../../utils/value/constants.js";
|
|
3
|
+
import { struct as g } from "../../../../../../utils/struct/main.js";
|
|
4
|
+
import { enumerable as d, getter as e } from "../../../../../../utils/struct/property.js";
|
|
5
5
|
import { isNullish as k, isFunction as b } from "../../../../../../utils/value/is.js";
|
|
6
6
|
const A = () => {
|
|
7
|
-
let [t,
|
|
8
|
-
const
|
|
9
|
-
let
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
},
|
|
13
|
-
|
|
7
|
+
let [t, i, a, o] = T;
|
|
8
|
+
const m = () => !!(t && t === o && a), u = () => !!(t && t === a && o);
|
|
9
|
+
let n = null;
|
|
10
|
+
const v = () => {
|
|
11
|
+
m() && (i = t, t = a, c());
|
|
12
|
+
}, p = () => {
|
|
13
|
+
u() && (i = t, t = o, c());
|
|
14
14
|
}, w = (r, s) => {
|
|
15
15
|
const f = t;
|
|
16
|
-
t =
|
|
16
|
+
t = i = a = o = void 0, !l(r) && !l(s) && (a = r, o = s, t = f === a || f === o ? f : a, f !== t && c());
|
|
17
17
|
}, N = (r) => {
|
|
18
|
-
k(r) ?
|
|
18
|
+
k(r) ? n = null : b(r) && n !== (n = r) && c();
|
|
19
19
|
}, c = () => {
|
|
20
|
-
const r =
|
|
21
|
-
|
|
20
|
+
const r = i, s = t;
|
|
21
|
+
i = void 0, n == null || n(
|
|
22
22
|
g({
|
|
23
|
-
from:
|
|
24
|
-
to:
|
|
23
|
+
from: e(() => r),
|
|
24
|
+
to: e(() => s)
|
|
25
25
|
})
|
|
26
26
|
);
|
|
27
27
|
};
|
|
28
28
|
return g({
|
|
29
|
-
backward: d(
|
|
30
|
-
forward: d(
|
|
31
|
-
canNavigateBackward:
|
|
32
|
-
canNavigateForward:
|
|
33
|
-
currentTransaction:
|
|
29
|
+
backward: d(v),
|
|
30
|
+
forward: d(p),
|
|
31
|
+
canNavigateBackward: e(m),
|
|
32
|
+
canNavigateForward: e(u),
|
|
33
|
+
currentTransaction: e(() => t),
|
|
34
34
|
onNavigation: { set: N },
|
|
35
35
|
reset: d(w)
|
|
36
36
|
});
|
package/dist/es/components/external/TransactionDetails/hooks/useTransaction/useTransaction.js
CHANGED
|
@@ -20,10 +20,10 @@ const J = (s) => {
|
|
|
20
20
|
return m(() => {
|
|
21
21
|
t || r(i.id);
|
|
22
22
|
}, [t, i]), m(() => {
|
|
23
|
-
var
|
|
23
|
+
var v;
|
|
24
24
|
const n = h.current, f = g.current;
|
|
25
|
-
return f.category === "Refund" && (n.reset(f.id, (
|
|
26
|
-
u.current = !0, E(performance.now()),
|
|
25
|
+
return f.category === "Refund" && (n.reset(f.id, (v = f.refundMetadata) == null ? void 0 : v.originalPaymentId), n.onNavigation = ({ to: F }) => {
|
|
26
|
+
u.current = !0, E(performance.now()), F && r(F);
|
|
27
27
|
}), () => {
|
|
28
28
|
u.current = !1, n.onNavigation = null, n.reset();
|
|
29
29
|
};
|
package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as s } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import e from "classnames";
|
|
3
|
-
import { BASE_CLASS as m,
|
|
3
|
+
import { BASE_CLASS as m, MARGIN_CLASS as a, LOADING_CLASS as S } from "./constants.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
const n = ({ hasMargin: o = !1, isLoading: t = !1, width: r }) => /* @__PURE__ */ s("span", { className: e(m, { [
|
|
5
|
+
const n = ({ hasMargin: o = !1, isLoading: t = !1, width: r }) => /* @__PURE__ */ s("span", { className: e(m, { [S]: t, [a]: o }), style: { width: r } });
|
|
6
6
|
export {
|
|
7
7
|
n as AmountSkeleton,
|
|
8
8
|
n as default
|
package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import { AmountSkeleton as d } from "../AmountSkeleton/AmountSkeleton.js";
|
|
3
|
-
import { BASE_CLASS as y,
|
|
3
|
+
import { BASE_CLASS as y, PLACEHOLDER_CLASS as T, AMOUNT_CLASS as E, LABEL_CLASS as b, BODY_CLASS as B } from "./constants.js";
|
|
4
4
|
import { SummaryItemLabel as C } from "./SummaryItemLabel.js";
|
|
5
5
|
import { Tooltip as N } from "../../../../internal/Tooltip/Tooltip.js";
|
|
6
6
|
import { TypographyVariant as n } from "../../../../internal/Typography/types.js";
|
|
@@ -32,15 +32,15 @@ const W = ({
|
|
|
32
32
|
(t, r) => t.valueHasLabelStyle ? n.CAPTION : r && !S ? n.BODY : n.TITLE,
|
|
33
33
|
[S]
|
|
34
34
|
);
|
|
35
|
-
return /* @__PURE__ */ e("div", { className: p(y, { [
|
|
35
|
+
return /* @__PURE__ */ e("div", { className: p(y, { [B]: !u }), children: i.map((t, r) => {
|
|
36
36
|
const a = t.getValue(), o = !!a && a.length > 12;
|
|
37
37
|
return /* @__PURE__ */ e("div", { children: [
|
|
38
38
|
u && (t.tooltipLabel ? /* @__PURE__ */ e(N, { content: s.get(`${t.tooltipLabel}`), isContainerHovered: h, children: /* @__PURE__ */ e(C, { config: t, i18n: s, isSkeletonVisible: l }) }) : /* @__PURE__ */ e(C, { config: t, i18n: s, isSkeletonVisible: l })),
|
|
39
|
-
l ? /* @__PURE__ */ e(d, { isLoading: c, hasMargin: t.hasSkeletonMargin, width: t.skeletonWidth + "px" }) : A ? /* @__PURE__ */ e("span", { className: p([y,
|
|
39
|
+
l ? /* @__PURE__ */ e(d, { isLoading: c, hasMargin: t.hasSkeletonMargin, width: t.skeletonWidth + "px" }) : A ? /* @__PURE__ */ e("span", { className: p([y, T]) }) : /* @__PURE__ */ e("div", { ref: t.ref, style: f(r), children: /* @__PURE__ */ e(
|
|
40
40
|
O,
|
|
41
41
|
{
|
|
42
42
|
variant: v(t, o),
|
|
43
|
-
className: p({ [b]: t.valueHasLabelStyle, [
|
|
43
|
+
className: p({ [b]: t.valueHasLabelStyle, [E]: !t.valueHasLabelStyle }),
|
|
44
44
|
children: a
|
|
45
45
|
}
|
|
46
46
|
) })
|
package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as a } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
-
import {
|
|
2
|
+
import { LABEL_CLASS as l, LABEL_CONTAINER_CLASS as L, LABEL_CONTAINER_CLASS_LOADING as i } from "./constants.js";
|
|
3
3
|
import { TypographyVariant as s } from "../../../../internal/Typography/types.js";
|
|
4
4
|
import A from "../../../../internal/Typography/Typography.js";
|
|
5
5
|
import f from "classnames";
|
|
@@ -8,11 +8,11 @@ const d = y(
|
|
|
8
8
|
({ config: r, i18n: e, isSkeletonVisible: m, className: o, ...t }, p) => /* @__PURE__ */ a(
|
|
9
9
|
"span",
|
|
10
10
|
{
|
|
11
|
-
className: f(
|
|
11
|
+
className: f(L, o, { [i]: m }),
|
|
12
12
|
style: { cursor: "default" },
|
|
13
13
|
ref: p,
|
|
14
14
|
...t,
|
|
15
|
-
children: r.labelKey && /* @__PURE__ */ a(A, { variant: s.CAPTION, className:
|
|
15
|
+
children: r.labelKey && /* @__PURE__ */ a(A, { variant: s.CAPTION, className: l, children: e.get(r.labelKey) })
|
|
16
16
|
}
|
|
17
17
|
)
|
|
18
18
|
);
|
package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as r } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
2
|
+
import { useState as p, useMemo as c } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
3
|
+
import h from "../../../../internal/ExpandableCard/ExpandableCard.js";
|
|
4
4
|
import { memo as M } from "../../../../../external/preact/compat/dist/compat.module.js";
|
|
5
|
-
import { TransactionTotalItem as
|
|
5
|
+
import { TransactionTotalItem as u } from "../TransactionTotalItem/TransactionTotalItem.js";
|
|
6
6
|
import { BaseList as x } from "../../../../internal/BaseList/BaseList.js";
|
|
7
7
|
import { useMaxWidthsState as T } from "../../hooks/useMaxWidths.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
const C = M(({ totals: s, isLoading: o, hiddenField: a, fullWidth: l }) => {
|
|
10
|
-
const [m, n] = T(), [i, t] =
|
|
10
|
+
const [m, n] = T(), [i, t] = p(!1), [f, ...d] = c(() => s.map((e) => (e.key = `${e.currency}-${Math.random()}`, e)), [s]);
|
|
11
11
|
return /* @__PURE__ */ r(
|
|
12
|
-
|
|
12
|
+
h,
|
|
13
13
|
{
|
|
14
14
|
renderHeader: /* @__PURE__ */ r(
|
|
15
|
-
|
|
15
|
+
u,
|
|
16
16
|
{
|
|
17
17
|
isHovered: i,
|
|
18
18
|
total: f,
|
|
@@ -29,8 +29,8 @@ const C = M(({ totals: s, isLoading: o, hiddenField: a, fullWidth: l }) => {
|
|
|
29
29
|
onFocus: () => t(!0),
|
|
30
30
|
onMouseLeave: () => t(!1),
|
|
31
31
|
onBlur: () => t(!1),
|
|
32
|
-
children: !o &&
|
|
33
|
-
|
|
32
|
+
children: !o && d.length && /* @__PURE__ */ r(x, { children: d.map((e) => /* @__PURE__ */ r("li", { children: /* @__PURE__ */ r(
|
|
33
|
+
u,
|
|
34
34
|
{
|
|
35
35
|
isHovered: i,
|
|
36
36
|
total: e,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as s } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
-
import { DataDetailsModal as
|
|
2
|
+
import { DataDetailsModal as ue } from "../../../../internal/DataOverviewDisplay/DataDetailsModal.js";
|
|
3
3
|
import { TransactionsTable as Ee, TRANSACTION_FIELDS as Ne } from "../TransactionsTable/TransactionsTable.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import Fe from "../../../../../hooks/useBalanceAccountSelection.js";
|
|
5
|
+
import he from "../../../../internal/FilterBar/filters/DateFilter/DateFilter.js";
|
|
6
6
|
import { FilterParam as t } from "../../../../types.js";
|
|
7
7
|
import Ce from "../../../../../hooks/useModalDetails/useModalDetails.js";
|
|
8
8
|
import Me from "../../../../../core/Context/useCoreContext.js";
|
|
9
|
-
import { useCallback as f, useMemo as c, useState as P, useEffect as
|
|
9
|
+
import { useCallback as f, useMemo as c, useState as P, useEffect as F } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
10
10
|
import { LIMIT_OPTIONS as De, DEFAULT_PAGE_LIMIT as _e } from "../../../../internal/Pagination/constants.js";
|
|
11
11
|
import Ie from "../TransactionTotals/TransactionTotals.js";
|
|
12
12
|
import { Balances as Oe } from "../Balances/Balances.js";
|
|
13
13
|
import Ue from "../../../../../hooks/useDefaultOverviewFilterParams.js";
|
|
14
14
|
import ge from "../../hooks/useTransactionsOverviewMultiSelectionFilters.js";
|
|
15
15
|
import { AmountFilter as Re } from "../../../../internal/FilterBar/filters/AmountFilter/AmountFilter.js";
|
|
16
|
-
import { MAX_TRANSACTIONS_DATE_RANGE_MONTHS as be, BASE_CLASS as Le, SUMMARY_CLASS as
|
|
17
|
-
import { useResponsiveContainer as
|
|
18
|
-
import { useCustomColumnsData as
|
|
16
|
+
import { MAX_TRANSACTIONS_DATE_RANGE_MONTHS as be, BASE_CLASS as Le, SUMMARY_CLASS as ve, SUMMARY_ITEM_CLASS as X, BASE_CLASS_DETAILS as we } from "./constants.js";
|
|
17
|
+
import { useResponsiveContainer as xe, containerQueries as ye } from "../../../../../hooks/useResponsiveContainer.js";
|
|
18
|
+
import { useCustomColumnsData as ke } from "../../../../../hooks/useCustomColumnsData.js";
|
|
19
19
|
import { hasCustomField as Pe } from "../../../../utils/customData/hasCustomField.js";
|
|
20
20
|
import { mergeRecords as Xe } from "../../../../utils/customData/mergeRecords.js";
|
|
21
21
|
/* empty css */
|
|
@@ -25,11 +25,11 @@ import { useFilterBarState as We, FilterBarMobileSwitch as Ye, FilterBar as je }
|
|
|
25
25
|
import Ke from "../../../../internal/FormFields/Select/BalanceAccountSelector/BalanceAccountSelector.js";
|
|
26
26
|
import G from "../MultiSelectionFilter/MultiSelectionFilter.js";
|
|
27
27
|
import { useConfigContext as Qe } from "../../../../../core/ConfigContext/context.js";
|
|
28
|
-
import { listFrom as
|
|
28
|
+
import { listFrom as a } from "../../../../../utils/collection/main.js";
|
|
29
29
|
import { isUndefined as H, isFunction as Ze } from "../../../../../utils/value/is.js";
|
|
30
30
|
const Dr = ({
|
|
31
|
-
onFiltersChanged:
|
|
32
|
-
balanceAccounts:
|
|
31
|
+
onFiltersChanged: p,
|
|
32
|
+
balanceAccounts: h,
|
|
33
33
|
allowLimitSelection: C,
|
|
34
34
|
preferredLimit: W = _e,
|
|
35
35
|
onRecordSelection: M,
|
|
@@ -39,14 +39,14 @@ const Dr = ({
|
|
|
39
39
|
hideTitle: K,
|
|
40
40
|
dataCustomization: r
|
|
41
41
|
}) => {
|
|
42
|
-
var w, x, y
|
|
43
|
-
const { i18n:
|
|
44
|
-
async ({ balanceAccount:
|
|
42
|
+
var v, w, x, y;
|
|
43
|
+
const { i18n: A } = Me(), { getTransactions: S } = Qe().endpoints, { activeBalanceAccount: e, balanceAccountSelectionOptions: Q, onBalanceAccountSelection: Z } = Fe(h), { defaultParams: d, nowTimestamp: T, refreshNowTimestamp: u } = Ue("transactions", e), J = f(
|
|
44
|
+
async ({ balanceAccount: o, ...i }, N) => S({ signal: N, errorLevel: "error" }, {
|
|
45
45
|
query: {
|
|
46
46
|
...i,
|
|
47
|
-
statuses:
|
|
48
|
-
categories:
|
|
49
|
-
currencies:
|
|
47
|
+
statuses: a(i[t.STATUSES]),
|
|
48
|
+
categories: a(i[t.CATEGORIES]),
|
|
49
|
+
currencies: a(i[t.CURRENCIES]),
|
|
50
50
|
createdSince: i[t.CREATED_SINCE] ?? d.current.defaultFilterParams[t.CREATED_SINCE],
|
|
51
51
|
createdUntil: i[t.CREATED_UNTIL] ?? d.current.defaultFilterParams[t.CREATED_UNTIL],
|
|
52
52
|
sortDirection: "desc",
|
|
@@ -55,8 +55,8 @@ const Dr = ({
|
|
|
55
55
|
maxAmount: H(i.maxAmount) ? void 0 : parseFloat(i.maxAmount)
|
|
56
56
|
}
|
|
57
57
|
}),
|
|
58
|
-
[e == null ? void 0 : e.id, d,
|
|
59
|
-
), _ = We(), V = c(() => Ze(
|
|
58
|
+
[e == null ? void 0 : e.id, d, S]
|
|
59
|
+
), _ = We(), V = c(() => Ze(p) ? p : void 0, [p]), $ = c(() => C ? De : void 0, [C]), { canResetFilters: q, error: B, fetching: z, filters: n, limit: ee, limitOptions: re, records: I, resetFilters: Je, updateFilters: l, updateLimit: te, ...se } = Ge({
|
|
60
60
|
fetchRecords: J,
|
|
61
61
|
dataField: "data",
|
|
62
62
|
filterParams: d.current.defaultFilterParams,
|
|
@@ -64,59 +64,59 @@ const Dr = ({
|
|
|
64
64
|
onFiltersChanged: V,
|
|
65
65
|
preferredLimit: W,
|
|
66
66
|
preferredLimitOptions: $,
|
|
67
|
-
enabled: !!(e != null && e.id) && !!
|
|
68
|
-
}), [m, O] = P([]), [
|
|
69
|
-
O(
|
|
67
|
+
enabled: !!(e != null && e.id) && !!S
|
|
68
|
+
}), [m, O] = P([]), [oe, ie] = P(!1), ne = f((o, i) => {
|
|
69
|
+
O(o), ie(i);
|
|
70
70
|
}, []), { categoriesFilter: U, currenciesFilter: g, statusesFilter: E } = ge(
|
|
71
71
|
{
|
|
72
|
-
filters:
|
|
72
|
+
filters: n,
|
|
73
73
|
updateFilters: l
|
|
74
74
|
},
|
|
75
75
|
m
|
|
76
76
|
);
|
|
77
|
-
|
|
77
|
+
F(() => {
|
|
78
78
|
O(void 0), l({
|
|
79
79
|
[t.BALANCE_ACCOUNT]: e == null ? void 0 : e.id,
|
|
80
80
|
[t.CURRENCIES]: void 0
|
|
81
81
|
});
|
|
82
|
-
}, [l, e == null ? void 0 : e.id]),
|
|
83
|
-
|
|
84
|
-
}, [
|
|
82
|
+
}, [l, e == null ? void 0 : e.id]), F(() => {
|
|
83
|
+
u();
|
|
84
|
+
}, [n, u]), F(() => {
|
|
85
85
|
E.updateSelection({ target: { value: "Booked", name: "status" } });
|
|
86
86
|
}, [E]);
|
|
87
|
-
const R = ye
|
|
87
|
+
const R = xe(ye.down.sm), le = !!m && m.length > 1, b = c(
|
|
88
88
|
() => ({
|
|
89
89
|
showDetails: D ?? !0,
|
|
90
90
|
callback: M
|
|
91
91
|
}),
|
|
92
92
|
[D, M]
|
|
93
93
|
), me = c(() => ({ transaction: b }), [b]), ce = f(
|
|
94
|
-
({ records:
|
|
94
|
+
({ records: o, retrievedData: i }) => Xe(o, i, (N, k) => N.id === k.id),
|
|
95
95
|
[]
|
|
96
96
|
), de = c(() => {
|
|
97
|
-
var
|
|
98
|
-
return Pe((
|
|
99
|
-
}, [(
|
|
97
|
+
var o;
|
|
98
|
+
return Pe((o = r == null ? void 0 : r.list) == null ? void 0 : o.fields, Ne);
|
|
99
|
+
}, [(v = r == null ? void 0 : r.list) == null ? void 0 : v.fields]), { customRecords: fe, loadingCustomRecords: ae } = ke({
|
|
100
100
|
records: I,
|
|
101
101
|
hasCustomColumn: de,
|
|
102
|
-
onDataRetrieve: (
|
|
102
|
+
onDataRetrieve: (w = r == null ? void 0 : r.list) == null ? void 0 : w.onDataRetrieve,
|
|
103
103
|
mergeCustomData: ce
|
|
104
|
-
}), { updateDetails: L, resetDetails:
|
|
105
|
-
({ id:
|
|
104
|
+
}), { updateDetails: L, resetDetails: pe, selectedDetail: Ae } = Ce(me), Se = f(
|
|
105
|
+
({ id: o }) => {
|
|
106
106
|
L({
|
|
107
107
|
selection: {
|
|
108
108
|
type: "transaction",
|
|
109
|
-
data:
|
|
109
|
+
data: o,
|
|
110
110
|
balanceAccount: e || ""
|
|
111
111
|
},
|
|
112
112
|
modalSize: "small"
|
|
113
|
-
}).callback({ id:
|
|
113
|
+
}).callback({ id: o });
|
|
114
114
|
},
|
|
115
115
|
[e, L]
|
|
116
|
-
),
|
|
117
|
-
const
|
|
118
|
-
return
|
|
119
|
-
}, [
|
|
116
|
+
), Te = c(() => {
|
|
117
|
+
const o = new Date(T);
|
|
118
|
+
return o.setMonth(o.getMonth() - be), o.toString();
|
|
119
|
+
}, [T]);
|
|
120
120
|
return /* @__PURE__ */ s("div", { className: Le, children: [
|
|
121
121
|
/* @__PURE__ */ s(He, { hideTitle: K, titleKey: "transactionsOverviewTitle", children: /* @__PURE__ */ s(Ye, { ..._ }) }),
|
|
122
122
|
/* @__PURE__ */ s(je, { ..._, children: [
|
|
@@ -129,48 +129,48 @@ const Dr = ({
|
|
|
129
129
|
}
|
|
130
130
|
),
|
|
131
131
|
/* @__PURE__ */ s(
|
|
132
|
-
|
|
132
|
+
he,
|
|
133
133
|
{
|
|
134
134
|
canResetFilters: q,
|
|
135
135
|
defaultParams: d,
|
|
136
|
-
filters:
|
|
137
|
-
nowTimestamp:
|
|
138
|
-
refreshNowTimestamp:
|
|
139
|
-
sinceDate:
|
|
136
|
+
filters: n,
|
|
137
|
+
nowTimestamp: T,
|
|
138
|
+
refreshNowTimestamp: u,
|
|
139
|
+
sinceDate: Te,
|
|
140
140
|
timezone: e == null ? void 0 : e.timeZone,
|
|
141
141
|
updateFilters: l
|
|
142
142
|
}
|
|
143
143
|
),
|
|
144
|
-
/* @__PURE__ */ s(G, { ...U, placeholder:
|
|
144
|
+
/* @__PURE__ */ s(G, { ...U, placeholder: A.get("filterPlaceholder.category") }),
|
|
145
145
|
/* @__PURE__ */ s(
|
|
146
146
|
Re,
|
|
147
147
|
{
|
|
148
148
|
availableCurrencies: m,
|
|
149
|
-
selectedCurrencies:
|
|
149
|
+
selectedCurrencies: a(n[t.CURRENCIES]),
|
|
150
150
|
name: "range",
|
|
151
|
-
label:
|
|
152
|
-
minAmount:
|
|
153
|
-
maxAmount:
|
|
151
|
+
label: A.get("amount"),
|
|
152
|
+
minAmount: n[t.MIN_AMOUNT],
|
|
153
|
+
maxAmount: n[t.MAX_AMOUNT],
|
|
154
154
|
updateFilters: l,
|
|
155
155
|
onChange: l
|
|
156
156
|
}
|
|
157
157
|
),
|
|
158
|
-
/* @__PURE__ */ s(G, { ...g, placeholder:
|
|
158
|
+
/* @__PURE__ */ s(G, { ...g, placeholder: A.get("filterPlaceholder.currency") })
|
|
159
159
|
] }),
|
|
160
|
-
/* @__PURE__ */ s("div", { className:
|
|
160
|
+
/* @__PURE__ */ s("div", { className: ve, children: [
|
|
161
161
|
/* @__PURE__ */ s("div", { className: X, children: /* @__PURE__ */ s(
|
|
162
162
|
Ie,
|
|
163
163
|
{
|
|
164
164
|
availableCurrencies: m,
|
|
165
|
-
isAvailableCurrenciesFetching:
|
|
165
|
+
isAvailableCurrenciesFetching: oe,
|
|
166
166
|
balanceAccountId: e == null ? void 0 : e.id,
|
|
167
167
|
statuses: E.selection,
|
|
168
168
|
categories: U.selection,
|
|
169
|
-
createdUntil:
|
|
170
|
-
createdSince:
|
|
169
|
+
createdUntil: n[t.CREATED_UNTIL],
|
|
170
|
+
createdSince: n[t.CREATED_SINCE],
|
|
171
171
|
currencies: g.selection,
|
|
172
|
-
minAmount:
|
|
173
|
-
maxAmount:
|
|
172
|
+
minAmount: n[t.MIN_AMOUNT] ? parseFloat(n[t.MIN_AMOUNT]) : void 0,
|
|
173
|
+
maxAmount: n[t.MAX_AMOUNT] ? parseFloat(n[t.MAX_AMOUNT]) : void 0,
|
|
174
174
|
fullWidth: R
|
|
175
175
|
}
|
|
176
176
|
) }),
|
|
@@ -178,19 +178,19 @@ const Dr = ({
|
|
|
178
178
|
Oe,
|
|
179
179
|
{
|
|
180
180
|
balanceAccountId: e == null ? void 0 : e.id,
|
|
181
|
-
onCurrenciesChange:
|
|
181
|
+
onCurrenciesChange: ne,
|
|
182
182
|
defaultCurrencyCode: e == null ? void 0 : e.defaultCurrencyCode,
|
|
183
183
|
fullWidth: R
|
|
184
184
|
}
|
|
185
185
|
) })
|
|
186
186
|
] }),
|
|
187
187
|
/* @__PURE__ */ s(
|
|
188
|
-
|
|
188
|
+
ue,
|
|
189
189
|
{
|
|
190
190
|
dataCustomization: r == null ? void 0 : r.details,
|
|
191
|
-
selectedDetail:
|
|
192
|
-
resetDetails:
|
|
193
|
-
className:
|
|
191
|
+
selectedDetail: Ae,
|
|
192
|
+
resetDetails: pe,
|
|
193
|
+
className: we,
|
|
194
194
|
children: /* @__PURE__ */ s(
|
|
195
195
|
Ee,
|
|
196
196
|
{
|
|
@@ -200,13 +200,13 @@ const Dr = ({
|
|
|
200
200
|
hasMultipleCurrencies: le,
|
|
201
201
|
limit: ee,
|
|
202
202
|
limitOptions: re,
|
|
203
|
-
loading: z || Y || !
|
|
203
|
+
loading: z || Y || !h || ae,
|
|
204
204
|
onContactSupport: j,
|
|
205
205
|
onLimitSelection: te,
|
|
206
|
-
onRowClick:
|
|
206
|
+
onRowClick: Se,
|
|
207
207
|
showPagination: !0,
|
|
208
|
-
transactions: (
|
|
209
|
-
customColumns: (
|
|
208
|
+
transactions: (x = r == null ? void 0 : r.list) != null && x.onDataRetrieve ? fe : I,
|
|
209
|
+
customColumns: (y = r == null ? void 0 : r.list) == null ? void 0 : y.fields,
|
|
210
210
|
...se
|
|
211
211
|
}
|
|
212
212
|
)
|