@adyen/adyen-platform-experience-web 1.4.2 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adyen-platform-experience-web.css +1 -1
- package/dist/{angle-right-C1JIrQTg.cjs → angle-right-DCDtBphj.cjs} +2 -2
- package/dist/{angle-right-C1JIrQTg.cjs.map → angle-right-DCDtBphj.cjs.map} +1 -1
- package/dist/{checkmark-B8DhX3p1.cjs → checkmark-BUtjcpAC.cjs} +2 -2
- package/dist/{checkmark-B8DhX3p1.cjs.map → checkmark-BUtjcpAC.cjs.map} +1 -1
- package/dist/{checkmark-circle-fill-CMpIlMCC.cjs → checkmark-circle-fill-CtUhQzOt.cjs} +2 -2
- package/dist/{checkmark-circle-fill-CMpIlMCC.cjs.map → checkmark-circle-fill-CtUhQzOt.cjs.map} +1 -1
- package/dist/{checkmark-square-fill-Cy8Hzt9P.cjs → checkmark-square-fill-Cpdn8YWp.cjs} +2 -2
- package/dist/{checkmark-square-fill-Cy8Hzt9P.cjs.map → checkmark-square-fill-Cpdn8YWp.cjs.map} +1 -1
- package/dist/{chevron-down-CB77LxQY.cjs → chevron-down-CEgNjZK_.cjs} +2 -2
- package/dist/{chevron-down-CB77LxQY.cjs.map → chevron-down-CEgNjZK_.cjs.map} +1 -1
- package/dist/{chevron-left-DMAmIvLF.cjs → chevron-left-BgN_rxGR.cjs} +2 -2
- package/dist/{chevron-left-DMAmIvLF.cjs.map → chevron-left-BgN_rxGR.cjs.map} +1 -1
- package/dist/{chevron-right-BxLJu7Zf.cjs → chevron-right-Jwt5BuB-.cjs} +2 -2
- package/dist/{chevron-right-BxLJu7Zf.cjs.map → chevron-right-Jwt5BuB-.cjs.map} +1 -1
- package/dist/{chevron-up-CT79XJdh.cjs → chevron-up-B_O0vmIX.cjs} +2 -2
- package/dist/{chevron-up-CT79XJdh.cjs.map → chevron-up-B_O0vmIX.cjs.map} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/{copy-7UpFtMvt.cjs → copy-DztEPGun.cjs} +2 -2
- package/dist/{copy-7UpFtMvt.cjs.map → copy-DztEPGun.cjs.map} +1 -1
- package/dist/{cross-DtVirgrN.cjs → cross-B9ojc3kB.cjs} +2 -2
- package/dist/{cross-DtVirgrN.cjs.map → cross-B9ojc3kB.cjs.map} +1 -1
- package/dist/{cross-circle-fill-C47yImD2.cjs → cross-circle-fill-Dy_LlcFp.cjs} +2 -2
- package/dist/{cross-circle-fill-C47yImD2.cjs.map → cross-circle-fill-Dy_LlcFp.cjs.map} +1 -1
- package/dist/da-DK-DAJvnb2s.cjs +2 -0
- package/dist/da-DK-DAJvnb2s.cjs.map +1 -0
- package/dist/de-DE-DFMmcoWN.cjs +2 -0
- package/dist/de-DE-DFMmcoWN.cjs.map +1 -0
- package/dist/{download-A1m1wB_K.cjs → download-DsN3U6Xn.cjs} +2 -2
- package/dist/{download-A1m1wB_K.cjs.map → download-DsN3U6Xn.cjs.map} +1 -1
- package/dist/es/components/external/CapitalOffer/components/CapitalOffer/CapitalOffer.js +14 -14
- package/dist/es/components/external/CapitalOffer/components/CapitalOfferSelection/CapitalOfferSelection.js +20 -20
- package/dist/es/components/external/CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.js +73 -62
- package/dist/es/components/external/CapitalOffer/components/utils/utils.js +16 -16
- package/dist/es/components/external/CapitalOverview/components/AccountDetails/AccountDetail.js +3 -3
- package/dist/es/components/external/CapitalOverview/components/AccountDetails/AccountDetails.js +3 -3
- package/dist/es/components/external/CapitalOverview/components/AccountDetails/utils.js +3 -3
- package/dist/es/components/external/CapitalOverview/components/GrantAction/GrantAction.js +6 -6
- package/dist/es/components/external/CapitalOverview/components/GrantAdjustmentDetails/constants.js +0 -1
- package/dist/es/components/external/CapitalOverview/components/GrantDetails/GrantDetails.js +2 -2
- package/dist/es/components/external/CapitalOverview/components/GrantItem/utils.js +14 -14
- package/dist/es/components/external/CapitalOverview/components/GrantList/GrantList.js +2 -2
- package/dist/es/components/external/CapitalOverview/components/GrantList/GrantsDisplay.js +4 -4
- package/dist/es/components/external/CapitalOverview/components/GrantRepaymentDetails/GrantRepaymentDetails.js +1 -1
- package/dist/es/components/external/CapitalOverview/components/PreQualified/PreQualified.js +13 -13
- package/dist/es/components/external/CapitalOverview/components/Unqualified.js +2 -2
- package/dist/es/components/external/CapitalOverview/constants.js +0 -1
- package/dist/es/components/external/PayoutDetails/components/PayoutData.js +21 -21
- package/dist/es/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.js +17 -17
- package/dist/es/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.js +4 -4
- package/dist/es/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.js +16 -16
- package/dist/es/components/external/ReportsOverview/components/ReportsTable/ReportsTable.js +1 -1
- package/dist/es/components/external/TransactionDetails/components/TransactionData/TransactionDataContent.js +20 -20
- package/dist/es/components/external/TransactionDetails/components/details/TransactionDataProperties.js +4 -4
- package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundAmount.js +8 -8
- package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundNotice.js +1 -1
- package/dist/es/components/external/TransactionDetails/components/refund/TransactionRefundReason.js +2 -2
- package/dist/es/components/external/TransactionDetails/context/details/context.js +10 -10
- package/dist/es/components/external/TransactionDetails/context/refund/context.js +1 -1
- package/dist/es/components/external/TransactionDetails/context/refund/hooks/useRefundContextLineItems.js +2 -2
- package/dist/es/components/external/TransactionDetails/hooks/useTransaction/transactionNavigator/createDuplexTransactionNavigator.js +20 -20
- package/dist/es/components/external/TransactionDetails/hooks/useTransaction/useTransaction.js +3 -3
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +2 -2
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +4 -4
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +3 -3
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +8 -8
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +66 -66
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +19 -19
- package/dist/es/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.js +3 -3
- package/dist/es/components/internal/Accordion/Accordion.js +10 -10
- package/dist/es/components/internal/Alert/Alert.js +1 -1
- package/dist/es/components/internal/Button/DownloadButton/DownloadButton.js +5 -5
- package/dist/es/components/internal/Button/hooks/useButton.js +7 -7
- package/dist/es/components/internal/Calendar/calendar/facade/Calendar.js +104 -104
- package/dist/es/components/internal/Calendar/calendar/facade/index.js +12 -12
- package/dist/es/components/internal/Calendar/calendar/timeframe/common/flags.js +14 -14
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +4 -4
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +58 -58
- package/dist/es/components/internal/Calendar/calendar/timerange/factory.js +4 -4
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +3 -3
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js +2 -2
- package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +7 -7
- package/dist/es/components/internal/Calendar/calendar/timeslice/index.js +6 -6
- package/dist/es/components/internal/Calendar/calendar/utils.js +22 -22
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +11 -11
- package/dist/es/components/internal/Calendar/components/CalendarGrid/utils.js +22 -22
- package/dist/es/components/internal/Calendar/hooks/useCalendar.js +7 -7
- package/dist/es/components/internal/Calendar/hooks/useTimezone.js +12 -12
- package/dist/es/components/internal/CapitalHeader/constants.js +4 -4
- package/dist/es/components/internal/CapitalHeader/helpers.js +14 -12
- package/dist/es/components/internal/Card/Card.js +9 -9
- package/dist/es/components/internal/DataGrid/DataGridCell.js +8 -8
- package/dist/es/components/internal/DataGrid/components/TableCells.js +16 -16
- package/dist/es/components/internal/DataOverviewDetails/DataOverviewDetails.js +13 -13
- package/dist/es/components/internal/DataOverviewDetails/useDataOverviewDetailsTitle.js +8 -8
- package/dist/es/components/internal/DataOverviewDisplay/DataDetailsModal.js +5 -5
- package/dist/es/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.js +3 -3
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +29 -29
- package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +1 -2
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +23 -23
- package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +2 -2
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +31 -31
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +33 -33
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +15 -15
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.js +2 -2
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilterCore.js +9 -9
- package/dist/es/components/internal/FormFields/InputBase.js +5 -5
- package/dist/es/components/internal/FormFields/Select/Select.js +15 -15
- package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +43 -43
- package/dist/es/components/internal/FormFields/Select/components/SelectList.js +14 -14
- package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +5 -5
- package/dist/es/components/internal/FormFields/Select/hooks/useSelect.js +2 -2
- package/dist/es/components/internal/Header/Header.js +4 -4
- package/dist/es/components/internal/Icon/Icon.js +3 -3
- package/dist/es/components/internal/Img/Img.js +2 -2
- package/dist/es/components/internal/Link/Link.js +2 -2
- package/dist/es/components/internal/Modal/Modal.js +4 -4
- package/dist/es/components/internal/Pagination/hooks/useCursorPagination.js +12 -12
- package/dist/es/components/internal/Pagination/hooks/usePagination.js +22 -22
- package/dist/es/components/internal/Popover/Popover.js +4 -4
- package/dist/es/components/internal/ProgressBar/ProgressBar.js +3 -3
- package/dist/es/components/internal/SVGIcons/Checkmark.js +3 -3
- package/dist/es/components/internal/SVGIcons/ChevronLeft.js +12 -10
- package/dist/es/components/internal/SVGIcons/ChevronRight.js +12 -10
- package/dist/es/components/internal/SVGIcons/CloseCircle.js +1 -1
- package/dist/es/components/internal/SegmentedControl/SegmentedControl.js +13 -13
- package/dist/es/components/internal/StructuredList/StructuredList.js +4 -4
- package/dist/es/components/internal/Translation/Translation.js +15 -15
- package/dist/es/components/utils/getErrorMessage.js +2 -2
- package/dist/es/constants/dateFormats.js +3 -3
- package/dist/es/core/ConfigContext/context.js +18 -18
- package/dist/es/core/ConfigContext/session/AuthSession.js +36 -36
- package/dist/es/core/ConfigContext/session/AuthSessionSpecification.js +7 -7
- package/dist/es/core/ConfigContext/session/SetupContext.js +5 -5
- package/dist/es/core/ConfigContext/session/constants.js +8 -8
- package/dist/es/core/ConfigContext/session/utils/sessionReady.js +5 -5
- package/dist/es/core/Http/utils.js +1 -1
- package/dist/es/core/Localization/Localization.js +32 -32
- package/dist/es/core/Localization/datetime/restamper/constants.js +3 -3
- package/dist/es/core/Localization/datetime/restamper/restamper.js +1 -1
- package/dist/es/core/Localization/utils.js +1 -1
- package/dist/es/core/core.js +1 -1
- package/dist/es/external/preact/compat/dist/compat.module.js +40 -40
- package/dist/es/external/preact/dist/preact.module.js +197 -195
- package/dist/es/external/preact/hooks/dist/hooks.module.js +71 -67
- package/dist/es/external/preact/jsx-runtime/dist/jsxRuntime.module.js +9 -9
- package/dist/es/hooks/element/useDetachedRender.js +11 -11
- package/dist/es/hooks/element/useFocusTrap.js +5 -5
- package/dist/es/hooks/useBalanceAccountSelection.js +10 -10
- package/dist/es/hooks/useCommitAction/useCommitAction.js +7 -7
- package/dist/es/hooks/useContainerQuery.js +4 -4
- package/dist/es/hooks/useCustomColumnsData.js +2 -2
- package/dist/es/hooks/useDefaultOverviewFilterParams.js +18 -18
- package/dist/es/hooks/useFetch.js +22 -22
- package/dist/es/hooks/useModalDetails/useModalDetails.js +7 -7
- package/dist/es/hooks/useMutation/useMutation.js +3 -3
- package/dist/es/hooks/useReactiveState/useReactiveState.js +21 -21
- package/dist/es/hooks/useResponsiveContainer.js +7 -10
- package/dist/es/hooks/useTabbedControl.js +9 -9
- package/dist/es/primitives/async/abortable/main.js +9 -9
- package/dist/es/primitives/async/deferred/main.js +1 -1
- package/dist/es/primitives/auxiliary/errorContainer/main.js +9 -9
- package/dist/es/primitives/auxiliary/indexed/helpers.js +4 -4
- package/dist/es/primitives/auxiliary/indexed/main.js +7 -7
- package/dist/es/primitives/context/session/internal/autofresher.js +15 -15
- package/dist/es/primitives/context/session/internal/deadline.js +22 -22
- package/dist/es/primitives/context/session/internal/refresher.js +19 -19
- package/dist/es/primitives/dom/tabbableRoot/tabbable.js +3 -3
- package/dist/es/primitives/reactive/eventEmitter/main.js +3 -3
- package/dist/es/primitives/reactive/reflex/main.js +22 -22
- package/dist/es/primitives/reactive/reflex/register.js +25 -25
- package/dist/es/primitives/reactive/watchlist/main.js +24 -24
- package/dist/es/primitives/time/clock/main.js +6 -6
- package/dist/es/primitives/time/interval/main.js +9 -9
- package/dist/es/translations/da-DK.json.js +55 -46
- package/dist/es/translations/de-DE.json.js +71 -62
- package/dist/es/translations/en-US.json.js +41 -38
- package/dist/es/translations/es-ES.json.js +79 -70
- package/dist/es/translations/fi-FI.json.js +97 -88
- package/dist/es/translations/fr-FR.json.js +75 -66
- package/dist/es/translations/it-IT.json.js +107 -98
- package/dist/es/translations/nl-NL.json.js +80 -71
- package/dist/es/translations/no-NO.json.js +67 -58
- package/dist/es/translations/pt-BR.json.js +71 -62
- package/dist/es/translations/sv-SE.json.js +95 -86
- package/dist/es/utils/abort/internals.js +3 -3
- package/dist/es/utils/abort/main.js +19 -19
- package/dist/es/utils/collection/main.js +14 -14
- package/dist/es/utils/datetime/main.js +3 -3
- package/dist/es/utils/preact/className.js +2 -2
- package/dist/es/utils/struct/main.js +8 -8
- package/dist/es/utils/value/is.js +9 -9
- package/dist/es/utils/value/number.js +2 -2
- package/dist/es-ES-DWJu_JsZ.cjs +2 -0
- package/dist/es-ES-DWJu_JsZ.cjs.map +1 -0
- package/dist/{external-link-Ct-WlQoY.cjs → external-link-DgHiKqPL.cjs} +2 -2
- package/dist/{external-link-Ct-WlQoY.cjs.map → external-link-DgHiKqPL.cjs.map} +1 -1
- package/dist/fi-FI-MXUK5vu0.cjs +2 -0
- package/dist/fi-FI-MXUK5vu0.cjs.map +1 -0
- package/dist/{filter-DwSaMAG7.cjs → filter-C7stlLTD.cjs} +2 -2
- package/dist/{filter-DwSaMAG7.cjs.map → filter-C7stlLTD.cjs.map} +1 -1
- package/dist/fr-FR-NK-BqBuh.cjs +2 -0
- package/dist/fr-FR-NK-BqBuh.cjs.map +1 -0
- package/dist/index-ejbaSyzM.cjs +12 -0
- package/dist/index-ejbaSyzM.cjs.map +1 -0
- package/dist/{info-filled-bhD2VGA2.cjs → info-filled-Bk8waEjd.cjs} +2 -2
- package/dist/{info-filled-bhD2VGA2.cjs.map → info-filled-Bk8waEjd.cjs.map} +1 -1
- package/dist/it-IT-CckThmyL.cjs +2 -0
- package/dist/it-IT-CckThmyL.cjs.map +1 -0
- package/dist/{minus-circle-outline-pNXlRjce.cjs → minus-circle-outline-8LuhQHmx.cjs} +2 -2
- package/dist/{minus-circle-outline-pNXlRjce.cjs.map → minus-circle-outline-8LuhQHmx.cjs.map} +1 -1
- package/dist/nl-NL-73Hql9dE.cjs +2 -0
- package/dist/nl-NL-73Hql9dE.cjs.map +1 -0
- package/dist/no-NO-C5RVnfc6.cjs +2 -0
- package/dist/no-NO-C5RVnfc6.cjs.map +1 -0
- package/dist/{plus-circle-outline-B3Ttq6A2.cjs → plus-circle-outline-x53czuRo.cjs} +2 -2
- package/dist/{plus-circle-outline-B3Ttq6A2.cjs.map → plus-circle-outline-x53czuRo.cjs.map} +1 -1
- package/dist/pt-BR-DR3yYVRn.cjs +2 -0
- package/dist/pt-BR-DR3yYVRn.cjs.map +1 -0
- package/dist/{square-C3hb1Bxz.cjs → square-BzY0pIfq.cjs} +2 -2
- package/dist/{square-C3hb1Bxz.cjs.map → square-BzY0pIfq.cjs.map} +1 -1
- package/dist/sv-SE-C92aO-iv.cjs +2 -0
- package/dist/sv-SE-C92aO-iv.cjs.map +1 -0
- package/dist/{trash-can-D2GRVBnJ.cjs → trash-can-oPrHRWRq.cjs} +2 -2
- package/dist/{trash-can-D2GRVBnJ.cjs.map → trash-can-oPrHRWRq.cjs.map} +1 -1
- package/dist/types/components/external/CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOffer/components/utils/utils.d.ts +1 -1
- package/dist/types/components/external/CapitalOffer/components/utils/utils.d.ts.map +1 -1
- package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts +71 -0
- package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts.map +1 -1
- package/dist/types/components/internal/CapitalHeader/constants.d.ts +2 -1
- package/dist/types/components/internal/CapitalHeader/constants.d.ts.map +1 -1
- package/dist/types/components/internal/CapitalHeader/helpers.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/components/SelectListItem.d.ts +3 -3
- package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/CheckedBox.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/Checkmark.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronDown.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronLeft.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronLeft.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronRight.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronRight.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/ChevronUp.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/CloseCircle.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/Download.d.ts +1 -1
- package/dist/types/components/internal/SVGIcons/Download.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/UncheckedBox.d.ts +1 -1
- package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +1 -1
- package/dist/types/core/ConfigContext/context.d.ts +2 -0
- package/dist/types/core/ConfigContext/context.d.ts.map +1 -1
- package/dist/types/core/ConfigContext/session/AuthSession.d.ts +4 -0
- package/dist/types/core/ConfigContext/session/AuthSession.d.ts.map +1 -1
- package/dist/types/core/ConfigContext/session/SetupContext.d.ts +2 -0
- package/dist/types/core/ConfigContext/session/SetupContext.d.ts.map +1 -1
- package/dist/types/translations/index.d.ts +3 -0
- package/dist/types/translations/index.d.ts.map +1 -1
- package/dist/types/types/api/resources/CapitalResource.d.ts +1 -0
- package/dist/types/types/api/resources/CapitalResource.d.ts.map +1 -1
- package/dist/{upload-CeUcEWmW.cjs → upload-CEAJdOXV.cjs} +2 -2
- package/dist/{upload-CeUcEWmW.cjs.map → upload-CEAJdOXV.cjs.map} +1 -1
- package/dist/{warning-C2NpcmL8.cjs → warning-BzXJLvmN.cjs} +2 -2
- package/dist/{warning-C2NpcmL8.cjs.map → warning-BzXJLvmN.cjs.map} +1 -1
- package/dist/{warning-filled-Bo82QPPc.cjs → warning-filled-P8HTOKkP.cjs} +2 -2
- package/dist/{warning-filled-Bo82QPPc.cjs.map → warning-filled-P8HTOKkP.cjs.map} +1 -1
- package/package.json +15 -14
- package/dist/da-DK-DHGqGo8Q.cjs +0 -2
- package/dist/da-DK-DHGqGo8Q.cjs.map +0 -1
- package/dist/de-DE-k_BRPv7a.cjs +0 -2
- package/dist/de-DE-k_BRPv7a.cjs.map +0 -1
- package/dist/es-ES-Cy-9bm8z.cjs +0 -2
- package/dist/es-ES-Cy-9bm8z.cjs.map +0 -1
- package/dist/fi-FI-C7ICLuS8.cjs +0 -2
- package/dist/fi-FI-C7ICLuS8.cjs.map +0 -1
- package/dist/fr-FR-DH8euUOp.cjs +0 -2
- package/dist/fr-FR-DH8euUOp.cjs.map +0 -1
- package/dist/index-CpBGZ2AH.cjs +0 -12
- package/dist/index-CpBGZ2AH.cjs.map +0 -1
- package/dist/it-IT-DsfPVAun.cjs +0 -2
- package/dist/it-IT-DsfPVAun.cjs.map +0 -1
- package/dist/nl-NL-DP_t6EpF.cjs +0 -2
- package/dist/nl-NL-DP_t6EpF.cjs.map +0 -1
- package/dist/no-NO-ARsXLWv0.cjs +0 -2
- package/dist/no-NO-ARsXLWv0.cjs.map +0 -1
- package/dist/pt-BR-CuTqntp7.cjs +0 -2
- package/dist/pt-BR-CuTqntp7.cjs.map +0 -1
- package/dist/sv-SE-DDAIHLKD.cjs +0 -2
- package/dist/sv-SE-DDAIHLKD.cjs.map +0 -1
|
@@ -1,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
|
)
|
|
@@ -8,19 +8,19 @@ import P from "../../../../../hooks/useTimezoneAwareDateFormatting.js";
|
|
|
8
8
|
import { TypographyVariant as n } from "../../../../internal/Typography/types.js";
|
|
9
9
|
import a from "../../../../internal/Typography/Typography.js";
|
|
10
10
|
import { useResponsiveContainer as d, containerQueries as c } from "../../../../../hooks/useResponsiveContainer.js";
|
|
11
|
-
import { BASE_CLASS as B,
|
|
11
|
+
import { BASE_CLASS as B, DATE_AND_PAYMENT_METHOD_CLASS as U, DATE_METHOD_CLASS as G, AMOUNT_CLASS as W } from "./constants.js";
|
|
12
12
|
/* empty css */
|
|
13
13
|
import A from "./PaymentMethodCell.js";
|
|
14
14
|
import { useTableColumns as j } from "../../../../../hooks/useTableColumns.js";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import K from "
|
|
15
|
+
import h from "../../../../internal/DataGrid/DataGrid.js";
|
|
16
|
+
import q from "../../../../internal/Pagination/Pagination.js";
|
|
17
|
+
import { DATE_FORMAT_TRANSACTIONS_MOBILE as z, DATE_FORMAT_TRANSACTIONS as K } from "../../../../../constants/dateFormats.js";
|
|
18
18
|
const Q = ["createdAt", "paymentMethod", "transactionType", "amount"], yo = ({
|
|
19
19
|
activeBalanceAccount: s,
|
|
20
20
|
availableCurrencies: i,
|
|
21
21
|
error: m,
|
|
22
22
|
hasMultipleCurrencies: p,
|
|
23
|
-
loading:
|
|
23
|
+
loading: f,
|
|
24
24
|
onContactSupport: l,
|
|
25
25
|
onRowClick: C,
|
|
26
26
|
showDetails: V,
|
|
@@ -29,42 +29,42 @@ const Q = ["createdAt", "paymentMethod", "transactionType", "amount"], yo = ({
|
|
|
29
29
|
customColumns: D,
|
|
30
30
|
...S
|
|
31
31
|
}) => {
|
|
32
|
-
const { i18n: e } = H(), { dateFormat:
|
|
32
|
+
const { i18n: e } = H(), { dateFormat: T } = P(s == null ? void 0 : s.timeZone), [_, u] = F(), y = d(c.up.sm), E = d(c.up.md), O = d(c.down.xs), v = e.get("amount"), N = j({
|
|
33
33
|
fields: Q,
|
|
34
34
|
customColumns: D,
|
|
35
35
|
columnConfig: {
|
|
36
36
|
amount: {
|
|
37
|
-
label: p ? void 0 : `${
|
|
37
|
+
label: p ? void 0 : `${v} ${i && i[0] ? `(${I(i[0])})` : ""}`,
|
|
38
38
|
position: "right",
|
|
39
39
|
flex: y ? 1.5 : void 0
|
|
40
40
|
},
|
|
41
41
|
transactionType: { visible: E },
|
|
42
42
|
paymentMethod: { visible: y }
|
|
43
43
|
}
|
|
44
|
-
}),
|
|
44
|
+
}), b = {
|
|
45
45
|
title: "noTransactionsFound",
|
|
46
46
|
message: ["tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain"]
|
|
47
47
|
}, R = Y(
|
|
48
48
|
(o) => {
|
|
49
|
-
|
|
49
|
+
u(o ?? void 0);
|
|
50
50
|
},
|
|
51
|
-
[
|
|
51
|
+
[u]
|
|
52
52
|
), w = k(
|
|
53
53
|
() => () => /* @__PURE__ */ t($, { error: m, onContactSupport: l, errorMessage: "weCouldNotLoadYourTransactions" }),
|
|
54
54
|
[m, l]
|
|
55
55
|
);
|
|
56
56
|
return /* @__PURE__ */ t("div", { className: B, children: /* @__PURE__ */ t(
|
|
57
|
-
|
|
57
|
+
h,
|
|
58
58
|
{
|
|
59
59
|
errorDisplay: w,
|
|
60
60
|
error: m,
|
|
61
|
-
columns:
|
|
61
|
+
columns: N,
|
|
62
62
|
data: M,
|
|
63
|
-
loading:
|
|
63
|
+
loading: f,
|
|
64
64
|
outline: !1,
|
|
65
65
|
onRowClick: { callback: C },
|
|
66
66
|
onRowHover: R,
|
|
67
|
-
emptyTableMessage:
|
|
67
|
+
emptyTableMessage: b,
|
|
68
68
|
customCells: {
|
|
69
69
|
// Remove status column temporarily
|
|
70
70
|
/* status: ({ value }) => {
|
|
@@ -81,15 +81,15 @@ const Q = ["createdAt", "paymentMethod", "transactionType", "amount"], yo = ({
|
|
|
81
81
|
},
|
|
82
82
|
amount: ({ value: o }) => {
|
|
83
83
|
const r = e.amount(o.value, o.currency, { hideCurrency: !p });
|
|
84
|
-
return /* @__PURE__ */ t(a, { variant: n.BODY, className:
|
|
84
|
+
return /* @__PURE__ */ t(a, { variant: n.BODY, className: W, children: r });
|
|
85
85
|
},
|
|
86
|
-
createdAt: ({ item: o, value: r }) => O ? /* @__PURE__ */ t("div", { className:
|
|
86
|
+
createdAt: ({ item: o, value: r }) => O ? /* @__PURE__ */ t("div", { className: U, children: [
|
|
87
87
|
/* @__PURE__ */ t(A, { paymentMethod: o.paymentMethod, bankAccount: o.bankAccount }),
|
|
88
|
-
/* @__PURE__ */ t(a, { variant: n.BODY, className:
|
|
89
|
-
] }) : /* @__PURE__ */ t(a, { variant: n.BODY, children:
|
|
88
|
+
/* @__PURE__ */ t(a, { variant: n.BODY, className: G, children: T(o.createdAt, z) })
|
|
89
|
+
] }) : /* @__PURE__ */ t(a, { variant: n.BODY, children: T(r, K) }),
|
|
90
90
|
paymentMethod: ({ item: o }) => /* @__PURE__ */ t(A, { paymentMethod: o.paymentMethod, bankAccount: o.bankAccount })
|
|
91
91
|
},
|
|
92
|
-
children: g && /* @__PURE__ */ t(
|
|
92
|
+
children: g && /* @__PURE__ */ t(h.Footer, { children: /* @__PURE__ */ t(q, { ...S }) })
|
|
93
93
|
}
|
|
94
94
|
) });
|
|
95
95
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { FilterParam as t } from "../../../types.js";
|
|
2
2
|
import { useMultiSelectionFilter as r } from "../components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.js";
|
|
3
|
-
import {
|
|
3
|
+
import { TRANSACTION_STATUSES as T, DEFAULT_TRANSACTIONS_OVERVIEW_MULTI_SELECTION_FILTER_PARAMS as l, TRANSACTION_CATEGORIES as u } from "../components/MultiSelectionFilter/useMultiSelectionFilter/constants.js";
|
|
4
4
|
const F = (e, i) => {
|
|
5
5
|
const a = r({
|
|
6
6
|
filterParam: t.CATEGORIES,
|
|
7
|
-
filterValues:
|
|
7
|
+
filterValues: u,
|
|
8
8
|
defaultFilters: l,
|
|
9
9
|
...e
|
|
10
10
|
}), s = r({
|
|
11
11
|
filterParam: t.STATUSES,
|
|
12
|
-
filterValues:
|
|
12
|
+
filterValues: T,
|
|
13
13
|
defaultFilters: l,
|
|
14
14
|
...e
|
|
15
15
|
}), S = r({
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { jsx as e } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import d from "classnames";
|
|
3
|
-
import { useState as C, useRef as m, useCallback as
|
|
4
|
-
import
|
|
3
|
+
import { useState as C, useRef as m, useCallback as A } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
4
|
+
import h from "../SVGIcons/ChevronDown.js";
|
|
5
5
|
import N from "../SVGIcons/ChevronUp.js";
|
|
6
|
-
import {
|
|
6
|
+
import { ACCORDION_HEADER_CLASS as O, ACCORDION_HEADER_CONTAINER_CLASS as p, ACCORDION_HEADER_CONTROLLER_CLASS as E, ACCORDION_CONTENT_CLASS as S, ACCORDION_BASE_CLASS as _ } from "./constants.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
function L({ children: a, classNames: c, header: n, headerInformation: i }) {
|
|
9
9
|
var t;
|
|
10
|
-
const [o, l] = C(!1), r = m(null), s =
|
|
10
|
+
const [o, l] = C(!1), r = m(null), s = A(() => {
|
|
11
11
|
l(!o);
|
|
12
12
|
}, [o]);
|
|
13
|
-
return /* @__PURE__ */ e("div", { className: d(
|
|
14
|
-
/* @__PURE__ */ e("h3", { className:
|
|
13
|
+
return /* @__PURE__ */ e("div", { className: d(_, c), children: [
|
|
14
|
+
/* @__PURE__ */ e("h3", { className: O, children: [
|
|
15
15
|
/* @__PURE__ */ e(
|
|
16
16
|
"button",
|
|
17
17
|
{
|
|
18
18
|
id: "accordion-controller",
|
|
19
19
|
"aria-controls": "accordion-content",
|
|
20
|
-
className:
|
|
20
|
+
className: p,
|
|
21
21
|
onClick: s,
|
|
22
22
|
"aria-expanded": o,
|
|
23
|
-
children: /* @__PURE__ */ e("div", { className:
|
|
23
|
+
children: /* @__PURE__ */ e("div", { className: E, children: [
|
|
24
24
|
n,
|
|
25
|
-
o ? /* @__PURE__ */ e(N, { height: 8, width: 15 }) : /* @__PURE__ */ e(
|
|
25
|
+
o ? /* @__PURE__ */ e(N, { height: 8, width: 15 }) : /* @__PURE__ */ e(h, { height: 8, width: 15 })
|
|
26
26
|
] })
|
|
27
27
|
}
|
|
28
28
|
),
|
|
@@ -35,7 +35,7 @@ function L({ children: a, classNames: c, header: n, headerInformation: i }) {
|
|
|
35
35
|
id: "accordion-content",
|
|
36
36
|
"aria-labelledby": "accordion-controller",
|
|
37
37
|
style: { maxHeight: o ? (t = r == null ? void 0 : r.current) == null ? void 0 : t.offsetHeight : 0 },
|
|
38
|
-
className:
|
|
38
|
+
className: S,
|
|
39
39
|
children: /* @__PURE__ */ e("div", { ref: r, children: a })
|
|
40
40
|
}
|
|
41
41
|
)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import s from "classnames";
|
|
3
3
|
import { ButtonVariant as y } from "../Button/types.js";
|
|
4
|
-
import {
|
|
4
|
+
import { TypographyVariant as a, TypographyElement as m } from "../Typography/types.js";
|
|
5
5
|
import p from "../Typography/Typography.js";
|
|
6
6
|
import { AlertIcon as f } from "./AlertIcon.js";
|
|
7
7
|
import { AlertVariantOption as t } from "./types.js";
|
|
@@ -3,7 +3,7 @@ import _ from "classnames";
|
|
|
3
3
|
import { useState as g, useEffect as m } from "../../../../external/preact/hooks/dist/hooks.module.js";
|
|
4
4
|
import k from "../../../../core/Context/useCoreContext.js";
|
|
5
5
|
import { useResponsiveContainer as x, containerQueries as B } from "../../../../hooks/useResponsiveContainer.js";
|
|
6
|
-
import
|
|
6
|
+
import h from "../../SVGIcons/Download.js";
|
|
7
7
|
import v from "../Button.js";
|
|
8
8
|
import { ButtonVariant as b } from "../types.js";
|
|
9
9
|
import y from "./useDownload.js";
|
|
@@ -28,18 +28,18 @@ function D({ className: r, disabled: c, endpointName: t, params: a, setError: n,
|
|
|
28
28
|
}, [l]), m(() => {
|
|
29
29
|
n && i && n(i);
|
|
30
30
|
}, [i, n]);
|
|
31
|
-
const
|
|
31
|
+
const w = () => {
|
|
32
32
|
p(!0), d == null || d();
|
|
33
33
|
};
|
|
34
34
|
return /* @__PURE__ */ o("div", { className: "adyen-pe-download", children: [
|
|
35
|
-
L ? /* @__PURE__ */ o(v, { iconButton: !0, variant: b.TERTIARY, onClick:
|
|
35
|
+
L ? /* @__PURE__ */ o(v, { iconButton: !0, variant: b.TERTIARY, onClick: w, children: e ? /* @__PURE__ */ o(C, { size: "small" }) : /* @__PURE__ */ o(h, {}) }) : /* @__PURE__ */ o(
|
|
36
36
|
v,
|
|
37
37
|
{
|
|
38
38
|
className: _("adyen-pe-download__button", { "adyen-pe-download__button--loading": e }, r),
|
|
39
39
|
disabled: c || e,
|
|
40
40
|
variant: b.SECONDARY,
|
|
41
|
-
onClick:
|
|
42
|
-
iconLeft: e ? /* @__PURE__ */ o(C, { size: "small" }) : /* @__PURE__ */ o(
|
|
41
|
+
onClick: w,
|
|
42
|
+
iconLeft: e ? /* @__PURE__ */ o(C, { size: "small" }) : /* @__PURE__ */ o(h, {}),
|
|
43
43
|
children: e ? `${u.get("downloading")}..` : u.get("download")
|
|
44
44
|
}
|
|
45
45
|
),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as r } from "../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import { useCallback as E, useMemo as _ } from "../../../../external/preact/hooks/dist/hooks.module.js";
|
|
3
3
|
import B from "classnames";
|
|
4
|
-
import {
|
|
4
|
+
import { BUTTON_LOADING_CLASSNAME as h, BUTTON_FULL_WIDTH_CLASSNAME as C, BUTTON_CONDENSED_CLASSNAME as g, ICON_BUTTON_CLASSNAME as u, ICON_BUTTON_CONTENT_CLASSNAME as M, BUTTON_ICON_LEFT_CLASSNAME as U, BUTTON_LABEL_CLASSNAME as d, BUTTON_ICON_RIGHT_CLASSNAME as I } from "../constants.js";
|
|
5
5
|
import y from "../../Typography/Typography.js";
|
|
6
|
-
import {
|
|
6
|
+
import { TypographyVariant as D, TypographyElement as x } from "../../Typography/types.js";
|
|
7
7
|
import { getModifierClasses as v } from "../../../../utils/preact/className.js";
|
|
8
8
|
import F from "../../Spinner/Spinner.js";
|
|
9
9
|
import { Fragment as G } from "../../../../external/preact/dist/preact.module.js";
|
|
@@ -20,10 +20,10 @@ const $ = (l, A, e, o, n, a) => {
|
|
|
20
20
|
() => ({
|
|
21
21
|
...n,
|
|
22
22
|
className: B(i, {
|
|
23
|
-
[
|
|
24
|
-
[
|
|
25
|
-
[
|
|
26
|
-
[
|
|
23
|
+
[u]: N,
|
|
24
|
+
[g]: c,
|
|
25
|
+
[C]: S,
|
|
26
|
+
[h]: t === "loading"
|
|
27
27
|
}),
|
|
28
28
|
disabled: o || t === "loading"
|
|
29
29
|
}),
|
|
@@ -32,7 +32,7 @@ const $ = (l, A, e, o, n, a) => {
|
|
|
32
32
|
() => N ? /* @__PURE__ */ r("div", { className: `${M}`, children: s }) : /* @__PURE__ */ r(G, { children: [
|
|
33
33
|
t === "loading" && /* @__PURE__ */ r(F, { size: "x-small" }),
|
|
34
34
|
T && /* @__PURE__ */ r("span", { className: U, children: T }),
|
|
35
|
-
/* @__PURE__ */ r(y, { className: d, el:
|
|
35
|
+
/* @__PURE__ */ r(y, { className: d, el: x.SPAN, variant: D.BODY, children: s }),
|
|
36
36
|
m && /* @__PURE__ */ r("span", { className: I, children: m })
|
|
37
37
|
] }),
|
|
38
38
|
[s, N, T, m, t]
|