@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,57 +1,57 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { RangeSelection as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { PopoverContainerSize as
|
|
5
|
-
import
|
|
6
|
-
import { AMOUNT_MULTIPLIER as
|
|
7
|
-
import
|
|
1
|
+
import { jsx as P } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
+
import { RangeSelection as w } from "./RangeSelection.js";
|
|
3
|
+
import { useState as T, useMemo as z, useCallback as E } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
4
|
+
import { PopoverContainerSize as B } from "../../../Popover/types.js";
|
|
5
|
+
import D from "../../../../../core/Context/useCoreContext.js";
|
|
6
|
+
import { AMOUNT_MULTIPLIER as L } from "./constants.js";
|
|
7
|
+
import F from "../BaseFilter/BaseFilter.js";
|
|
8
|
+
import { EMPTY_OBJECT as O } from "../../../../../utils/value/constants.js";
|
|
8
9
|
import { isUndefined as f } from "../../../../../utils/value/is.js";
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
const { i18n: g } = B(), [y, L] = u(), [p, h] = u(), M = w(() => (t == null ? void 0 : t.length) === 1 || (m == null ? void 0 : m.length) === 1, [m == null ? void 0 : m.length, t == null ? void 0 : t.length]), S = T(
|
|
10
|
+
const G = ({ updateFilters: $, selectedCurrencies: t, availableCurrencies: m, ...y }) => {
|
|
11
|
+
const { i18n: g } = D(), [h, U] = T(), [p, x] = T(), M = z(() => (t == null ? void 0 : t.length) === 1 || (m == null ? void 0 : m.length) === 1, [m == null ? void 0 : m.length, t == null ? void 0 : t.length]), S = E(
|
|
12
12
|
(n, o) => {
|
|
13
|
-
const A = (t == null ? void 0 : t[0]) || (m == null ? void 0 : m[0]),
|
|
13
|
+
const A = (t == null ? void 0 : t[0]) || (m == null ? void 0 : m[0]), I = o && A ? {
|
|
14
14
|
style: "currency",
|
|
15
15
|
currency: A,
|
|
16
16
|
currencyDisplay: "symbol"
|
|
17
17
|
} : void 0;
|
|
18
|
-
return n.toLocaleString(g.locale,
|
|
18
|
+
return n.toLocaleString(g.locale, I);
|
|
19
19
|
},
|
|
20
20
|
[m, g, t]
|
|
21
|
-
),
|
|
21
|
+
), V = E(
|
|
22
22
|
(n) => {
|
|
23
|
-
const { minAmount: o, maxAmount: A } = n ??
|
|
24
|
-
|
|
25
|
-
minAmount: f(o) ? void 0 : String(Math.round(o *
|
|
26
|
-
maxAmount: f(A) ? void 0 : String(Math.round(A *
|
|
23
|
+
const { minAmount: o, maxAmount: A } = n ?? O;
|
|
24
|
+
U({ minAmount: o, maxAmount: A }), f(o) && f(A) && x(void 0), $({
|
|
25
|
+
minAmount: f(o) ? void 0 : String(Math.round(o * L)),
|
|
26
|
+
maxAmount: f(A) ? void 0 : String(Math.round(A * L))
|
|
27
27
|
});
|
|
28
28
|
},
|
|
29
29
|
[$]
|
|
30
30
|
);
|
|
31
|
-
if (
|
|
32
|
-
const { minAmount: n, maxAmount: o } =
|
|
33
|
-
!f(n) && !f(o) && n <= o ?
|
|
31
|
+
if (h && (h.minAmount || h.maxAmount)) {
|
|
32
|
+
const { minAmount: n, maxAmount: o } = h ?? {};
|
|
33
|
+
!f(n) && !f(o) && n <= o ? x(
|
|
34
34
|
`${S(n, M)} ${g.get("to").toLowerCase()} ${S(o, M)}`
|
|
35
|
-
) : !f(n) && f(o) && n >= 0 ?
|
|
35
|
+
) : !f(n) && f(o) && n >= 0 ? x(`${g.get("from")} ${S(n, M)}`) : f(n) && !f(o) ? x(`${g.get("to")} ${S(o, M)}`) : x(void 0);
|
|
36
36
|
}
|
|
37
|
-
return /* @__PURE__ */
|
|
38
|
-
|
|
37
|
+
return /* @__PURE__ */ P(
|
|
38
|
+
F,
|
|
39
39
|
{
|
|
40
|
-
...
|
|
40
|
+
...y,
|
|
41
41
|
updateFilters: $,
|
|
42
|
-
minAmount:
|
|
43
|
-
maxAmount:
|
|
44
|
-
onChange:
|
|
42
|
+
minAmount: y.minAmount,
|
|
43
|
+
maxAmount: y.maxAmount,
|
|
44
|
+
onChange: V,
|
|
45
45
|
value: p,
|
|
46
|
-
label: p ||
|
|
46
|
+
label: p || y.label,
|
|
47
47
|
type: "text",
|
|
48
|
-
containerSize:
|
|
48
|
+
containerSize: B.MEDIUM,
|
|
49
49
|
selectedCurrencies: t,
|
|
50
50
|
availableCurrencies: m,
|
|
51
|
-
render:
|
|
51
|
+
render: w
|
|
52
52
|
}
|
|
53
53
|
);
|
|
54
54
|
};
|
|
55
55
|
export {
|
|
56
|
-
|
|
56
|
+
G as AmountFilter
|
|
57
57
|
};
|
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as n } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
+
import g from "../../../FormFields/InputBase.js";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { useState as
|
|
5
|
-
import
|
|
4
|
+
import { useState as p, useCallback as x, useEffect as T, useMemo as N } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
5
|
+
import h from "../../../../../core/Context/useCoreContext.js";
|
|
6
6
|
import { AMOUNT_MULTIPLIER as b } from "./constants.js";
|
|
7
7
|
import { isUndefined as m } from "../../../../../utils/value/is.js";
|
|
8
8
|
import { CommitAction as F } from "../../../../../hooks/useCommitAction/types.js";
|
|
9
9
|
const S = ({
|
|
10
10
|
onChange: i,
|
|
11
|
-
editAction:
|
|
12
|
-
onValueUpdated:
|
|
11
|
+
editAction: o,
|
|
12
|
+
onValueUpdated: u,
|
|
13
13
|
selectedCurrencies: y,
|
|
14
14
|
availableCurrencies: I,
|
|
15
15
|
value: M,
|
|
16
|
-
...
|
|
16
|
+
...l
|
|
17
17
|
}) => {
|
|
18
|
-
const { i18n: r } =
|
|
19
|
-
m(
|
|
20
|
-
), [
|
|
21
|
-
m(
|
|
22
|
-
),
|
|
23
|
-
i({ minAmount:
|
|
24
|
-
}, [
|
|
18
|
+
const { i18n: r } = h(), [t, c] = p(
|
|
19
|
+
m(l.minAmount) ? void 0 : parseFloat(l.minAmount) / b
|
|
20
|
+
), [a, d] = p(
|
|
21
|
+
m(l.maxAmount) ? void 0 : parseFloat(l.maxAmount) / b
|
|
22
|
+
), v = x(() => {
|
|
23
|
+
i({ minAmount: t, maxAmount: a });
|
|
24
|
+
}, [a, t, i]), f = x(() => {
|
|
25
25
|
i({ minAmount: void 0, maxAmount: void 0 }), d(void 0), c(void 0);
|
|
26
26
|
}, [i]);
|
|
27
27
|
T(() => {
|
|
28
|
-
|
|
29
|
-
}, [
|
|
30
|
-
const
|
|
28
|
+
o === F.APPLY && v(), o === F.CLEAR && f();
|
|
29
|
+
}, [v, f, o]);
|
|
30
|
+
const A = N(() => ({ minAmount: Number(t), maxAmount: Number(a) }), [a, t]);
|
|
31
31
|
return T(() => {
|
|
32
|
-
const { maxAmount: e, minAmount: s } =
|
|
33
|
-
m(e) && m(s) || s > e ?
|
|
34
|
-
}, [
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
|
|
32
|
+
const { maxAmount: e, minAmount: s } = A;
|
|
33
|
+
m(e) && m(s) || s > e ? u(null) : u(`${s}-${e}`);
|
|
34
|
+
}, [A, u]), /* @__PURE__ */ n("div", { className: "adyen-pe-range-selection-filter", children: [
|
|
35
|
+
/* @__PURE__ */ n("div", { className: "adyen-pe-range-selection-filter__input", children: [
|
|
36
|
+
/* @__PURE__ */ n("label", { htmlFor: "minValue", children: `${r.get("from")}:` }),
|
|
37
|
+
/* @__PURE__ */ n(
|
|
38
|
+
g,
|
|
39
39
|
{
|
|
40
40
|
"data-testid": "minValueFilter",
|
|
41
41
|
lang: r.locale,
|
|
42
42
|
name: "minValue",
|
|
43
43
|
type: "number",
|
|
44
|
-
value:
|
|
44
|
+
value: t,
|
|
45
45
|
onInput: (e) => {
|
|
46
46
|
e.currentTarget && c(e.currentTarget.value !== "" ? e.currentTarget.value : void 0);
|
|
47
47
|
},
|
|
48
48
|
min: 0,
|
|
49
|
-
isInvalid:
|
|
49
|
+
isInvalid: t ? t < 0 : !1,
|
|
50
50
|
errorMessage: r.get("noNegativeNumbersAllowed")
|
|
51
51
|
}
|
|
52
52
|
)
|
|
53
53
|
] }),
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
|
|
54
|
+
/* @__PURE__ */ n("div", { className: "adyen-pe-range-selection-filter__input", children: [
|
|
55
|
+
/* @__PURE__ */ n("label", { htmlFor: "maxValue", children: `${r.get("to")}:` }),
|
|
56
|
+
/* @__PURE__ */ n(
|
|
57
|
+
g,
|
|
58
58
|
{
|
|
59
59
|
"data-testid": "maxValueFilter",
|
|
60
60
|
lang: r.locale,
|
|
61
61
|
name: "maxValue",
|
|
62
62
|
type: "number",
|
|
63
|
-
value:
|
|
63
|
+
value: a,
|
|
64
64
|
onInput: (e) => {
|
|
65
65
|
e.currentTarget && d(e.currentTarget.value !== "" ? e.currentTarget.value : void 0);
|
|
66
66
|
},
|
|
67
|
-
min:
|
|
68
|
-
isInvalid: !m(
|
|
67
|
+
min: t,
|
|
68
|
+
isInvalid: !m(a) && !m(t) && a < t,
|
|
69
69
|
errorMessage: r.get("toValueShouldBeGreaterThanTheFromValue")
|
|
70
70
|
}
|
|
71
71
|
)
|
|
@@ -2,8 +2,8 @@ import { jsx as a } from "../../../../../external/preact/jsx-runtime/dist/jsxRun
|
|
|
2
2
|
import { useResponsiveContainer as g, containerQueries as C } from "../../../../../hooks/useResponsiveContainer.js";
|
|
3
3
|
import $ from "../../components/FilterButton/FilterButton.js";
|
|
4
4
|
import q from "../../../Popover/Popover.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { PopoverContainerPosition as z, PopoverContainerVariant as H } from "../../../Popover/types.js";
|
|
6
|
+
import { TypographyVariant as B, TypographyElement as O } from "../../../Typography/types.js";
|
|
7
7
|
import S from "../../../Typography/Typography.js";
|
|
8
8
|
import L from "../../../../../hooks/element/useUniqueIdentifier.js";
|
|
9
9
|
import { memo as j } from "../../../../../external/preact/compat/dist/compat.module.js";
|
|
@@ -35,27 +35,27 @@ const Z = (r) => !r || X(r), ee = /* @__PURE__ */ (() => {
|
|
|
35
35
|
return (e) => /* @__PURE__ */ a(r, { ...e });
|
|
36
36
|
})(), te = ({ render: r, ...e }) => {
|
|
37
37
|
var N;
|
|
38
|
-
const f = g(C.down.xs), [i, u] = c(!1), [s, l] = c(!1), n = E(() => e.isValueEmpty ?? Z, [e.isValueEmpty]), [m, t] = c(n(e.value)), [y,
|
|
38
|
+
const f = g(C.down.xs), [i, u] = c(!1), [s, l] = c(!1), n = E(() => e.isValueEmpty ?? Z, [e.isValueEmpty]), [m, t] = c(n(e.value)), [y, v] = c(!1), [T, h] = c(!1), [I, M] = c(n(e.value)), b = L(), w = E(() => r ?? ee, [r]), k = D(
|
|
39
39
|
(o) => {
|
|
40
40
|
const d = n(o ?? void 0);
|
|
41
|
-
t(d), M(W(o)),
|
|
41
|
+
t(d), M(W(o)), h(y ? o !== e.value : !d);
|
|
42
42
|
},
|
|
43
|
-
[n, t, M,
|
|
43
|
+
[n, t, M, h, y, e.value]
|
|
44
44
|
), { commitAction: x, commitActionButtons: R, committing: V, resetCommitAction: P } = J({
|
|
45
45
|
applyDisabled: I || !T,
|
|
46
46
|
resetDisabled: m
|
|
47
47
|
}), [p, F] = E(() => {
|
|
48
48
|
const o = (d) => () => {
|
|
49
|
-
d !== i && (d && (P(),
|
|
49
|
+
d !== i && (d && (P(), h(!1), v(!1)), u(d), l(d));
|
|
50
50
|
};
|
|
51
51
|
return [o(!1), o(!0)];
|
|
52
|
-
}, [u, i, P, l,
|
|
52
|
+
}, [u, i, P, l, v, h]);
|
|
53
53
|
A(() => {
|
|
54
54
|
if (s) {
|
|
55
55
|
const o = n(e.value);
|
|
56
|
-
l(!1), t(o),
|
|
56
|
+
l(!1), t(o), v(!o);
|
|
57
57
|
}
|
|
58
|
-
}, [e.value, s, n, l, t,
|
|
58
|
+
}, [e.value, s, n, l, t, v]), A(() => {
|
|
59
59
|
V && p(), t(m);
|
|
60
60
|
}, [V, p, t, m]);
|
|
61
61
|
const U = g(C.only.sm), Y = g(C.only.md);
|
|
@@ -77,8 +77,8 @@ const Z = (r) => !r || X(r), ee = /* @__PURE__ */ (() => {
|
|
|
77
77
|
/* @__PURE__ */ a(
|
|
78
78
|
S,
|
|
79
79
|
{
|
|
80
|
-
el:
|
|
81
|
-
variant:
|
|
80
|
+
el: O.SPAN,
|
|
81
|
+
variant: B.BODY,
|
|
82
82
|
stronger: !0,
|
|
83
83
|
className: "adyen-pe-filter-button__label",
|
|
84
84
|
children: e.label
|
|
@@ -87,8 +87,8 @@ const Z = (r) => !r || X(r), ee = /* @__PURE__ */ (() => {
|
|
|
87
87
|
!!e.appliedFilterAmount && /* @__PURE__ */ a("div", { className: "adyen-pe-filter-button__counter-wrapper", children: /* @__PURE__ */ a(
|
|
88
88
|
S,
|
|
89
89
|
{
|
|
90
|
-
el:
|
|
91
|
-
variant:
|
|
90
|
+
el: O.SPAN,
|
|
91
|
+
variant: B.BODY,
|
|
92
92
|
stronger: !0,
|
|
93
93
|
className: "adyen-pe-filter-button__counter",
|
|
94
94
|
children: e.appliedFilterAmount
|
|
@@ -113,7 +113,7 @@ const Z = (r) => !r || X(r), ee = /* @__PURE__ */ (() => {
|
|
|
113
113
|
{
|
|
114
114
|
actions: R,
|
|
115
115
|
title: (N = e.title) == null ? void 0 : N.trim(),
|
|
116
|
-
variant:
|
|
116
|
+
variant: H.POPOVER,
|
|
117
117
|
modifiers: ["filter"],
|
|
118
118
|
open: i,
|
|
119
119
|
"aria-label": `${e.label}`,
|
|
@@ -123,7 +123,7 @@ const Z = (r) => !r || X(r), ee = /* @__PURE__ */ (() => {
|
|
|
123
123
|
divider: !0,
|
|
124
124
|
targetElement: b,
|
|
125
125
|
disableFocusTrap: !1,
|
|
126
|
-
position:
|
|
126
|
+
position: z.BOTTOM,
|
|
127
127
|
containerSize: e.containerSize,
|
|
128
128
|
showOverlay: f,
|
|
129
129
|
fitPosition: U || Y,
|
|
@@ -5,7 +5,7 @@ import { useMemo as C, useState as O, useCallback as P } from "../../../../../ex
|
|
|
5
5
|
import _ from "../../../../../core/Context/useCoreContext.js";
|
|
6
6
|
import { DateRangeFilterParam as T } from "./types.js";
|
|
7
7
|
import { EMPTY_OBJECT as A } from "../../../../../utils/value/constants.js";
|
|
8
|
-
const
|
|
8
|
+
const M = ({
|
|
9
9
|
timezone: l,
|
|
10
10
|
canResetFilters: s,
|
|
11
11
|
defaultParams: r,
|
|
@@ -60,5 +60,5 @@ const L = ({
|
|
|
60
60
|
);
|
|
61
61
|
};
|
|
62
62
|
export {
|
|
63
|
-
|
|
63
|
+
M as default
|
|
64
64
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as S } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import B from "../../../../../hooks/useTimezoneAwareDateFormatting.js";
|
|
3
|
-
import { useState as
|
|
3
|
+
import { useState as T, useCallback as M, useMemo as h, useEffect as E, useRef as L } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
4
4
|
import { BASE_LOCALE as x } from "../../../../../core/Localization/datetime/restamper/constants.js";
|
|
5
5
|
import k from "../../../../../core/Context/useCoreContext.js";
|
|
6
6
|
import { DateRangeFilterParam as b } from "./types.js";
|
|
@@ -39,20 +39,20 @@ const _ = {
|
|
|
39
39
|
sinceDate: m,
|
|
40
40
|
untilDate: y
|
|
41
41
|
}) => {
|
|
42
|
-
const { i18n: O } = k(), { fullDateFormat: d } = B(D), [g, R] =
|
|
43
|
-
(l,
|
|
44
|
-
F(v(O, d, i(l), i(
|
|
42
|
+
const { i18n: O } = k(), { fullDateFormat: d } = B(D), [g, R] = T(f), u = h(() => [new Date(n), new Date(o)], [n, o]), a = L(), P = M(
|
|
43
|
+
(l, C) => {
|
|
44
|
+
F(v(O, d, i(l), i(C)));
|
|
45
45
|
},
|
|
46
46
|
[O, d, F]
|
|
47
47
|
);
|
|
48
48
|
return E(() => {
|
|
49
|
-
var l,
|
|
49
|
+
var l, C, A;
|
|
50
50
|
switch (e) {
|
|
51
51
|
case p.APPLY:
|
|
52
52
|
r({
|
|
53
53
|
selectedPresetOption: g,
|
|
54
54
|
[b.FROM]: i((l = a.current) == null ? void 0 : l.from),
|
|
55
|
-
[b.TO]: i((
|
|
55
|
+
[b.TO]: i((C = a.current) == null ? void 0 : C.to)
|
|
56
56
|
});
|
|
57
57
|
break;
|
|
58
58
|
case p.CLEAR:
|
|
@@ -84,7 +84,7 @@ function U({
|
|
|
84
84
|
selectedPresetOption: o,
|
|
85
85
|
...t
|
|
86
86
|
}) {
|
|
87
|
-
const { i18n: r } = k(), { fullDateFormat: F } = B(t.timezone), [w, f] =
|
|
87
|
+
const { i18n: r } = k(), { fullDateFormat: F } = B(t.timezone), [w, f] = T(), [c, D] = T(), [m, y] = T(), O = M(
|
|
88
88
|
(u) => {
|
|
89
89
|
const { from: a, to: P, selectedPresetOption: l } = u ?? V;
|
|
90
90
|
try {
|
|
@@ -94,7 +94,7 @@ function U({
|
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
96
|
[w, c, m, t]
|
|
97
|
-
), d =
|
|
97
|
+
), d = h(() => r.get("rangePreset.custom"), [r]), g = h(() => {
|
|
98
98
|
const u = { ..._, timeZone: t.timezone };
|
|
99
99
|
let a = new Intl.DateTimeFormat(x, u);
|
|
100
100
|
try {
|
|
@@ -104,7 +104,7 @@ function U({
|
|
|
104
104
|
return a;
|
|
105
105
|
}, [r, t.timezone]);
|
|
106
106
|
E(() => f(o), [o]), E(() => D(i(e || Date.now())), [e]), E(() => y(i(n || Date.now())), [n]);
|
|
107
|
-
const R =
|
|
107
|
+
const R = h(() => o === d && c && m ? $(g, new Date(c), new Date(m)) : o ?? t.label, [d, g, c, m, o, t.label]);
|
|
108
108
|
return /* @__PURE__ */ S(
|
|
109
109
|
z,
|
|
110
110
|
{
|
|
@@ -7,7 +7,7 @@ import { useCallback as r } from "../../../external/preact/hooks/dist/hooks.modu
|
|
|
7
7
|
import { Fragment as w } from "../../../external/preact/dist/preact.module.js";
|
|
8
8
|
import { hasOwnProperty as P } from "../../../utils/struct/property.js";
|
|
9
9
|
function h({ onInput: i, onKeyUp: d, trimOnBlur: l, onBlurHandler: e, onBlur: t, onFocusHandler: s, errorMessage: f, ...p }, v) {
|
|
10
|
-
const { autoCorrect: A, classNameModifiers:
|
|
10
|
+
const { autoCorrect: A, classNameModifiers: m, isInvalid: n, isValid: C, readonly: I = !1, spellCheck: O, type: y, uniqueId: o, isCollatingErrors: $, disabled: g } = p;
|
|
11
11
|
P(p, "onChange") && console.error("Error: Form fields that rely on InputBase may not have an onChange property");
|
|
12
12
|
const N = r(
|
|
13
13
|
(a) => {
|
|
@@ -34,10 +34,10 @@ function h({ onInput: i, onKeyUp: d, trimOnBlur: l, onBlurHandler: e, onBlur: t,
|
|
|
34
34
|
[`adyen-pe-input--${y}`],
|
|
35
35
|
p.className,
|
|
36
36
|
{
|
|
37
|
-
"adyen-pe-input--invalid":
|
|
37
|
+
"adyen-pe-input--invalid": n,
|
|
38
38
|
"adyen-pe-input--valid": C
|
|
39
39
|
},
|
|
40
|
-
|
|
40
|
+
m == null ? void 0 : m.map((a) => `adyen-pe-input--${a}`)
|
|
41
41
|
), { classNameModifiers: V, uniqueId: j, isInvalid: D, isValid: F, isCollatingErrors: S, ..._ } = p;
|
|
42
42
|
return /* @__PURE__ */ c(w, { children: [
|
|
43
43
|
/* @__PURE__ */ c(
|
|
@@ -49,7 +49,7 @@ function h({ onInput: i, onKeyUp: d, trimOnBlur: l, onBlurHandler: e, onBlur: t,
|
|
|
49
49
|
className: E,
|
|
50
50
|
readOnly: I,
|
|
51
51
|
"aria-describedby": $ ? void 0 : `${o}${u}`,
|
|
52
|
-
"aria-invalid":
|
|
52
|
+
"aria-invalid": n,
|
|
53
53
|
onInput: N,
|
|
54
54
|
onBlurCapture: b,
|
|
55
55
|
onFocus: x,
|
|
@@ -58,7 +58,7 @@ function h({ onInput: i, onKeyUp: d, trimOnBlur: l, onBlurHandler: e, onBlur: t,
|
|
|
58
58
|
ref: v
|
|
59
59
|
}
|
|
60
60
|
),
|
|
61
|
-
|
|
61
|
+
n && f && /* @__PURE__ */ c("span", { className: "adyen-pe-input__invalid-value", id: `${o}${u}`, children: f })
|
|
62
62
|
] });
|
|
63
63
|
}
|
|
64
64
|
h.defaultProps = {
|
|
@@ -11,9 +11,9 @@ import { DROPDOWN_BASE_CLASS as K, DROPDOWN_MULTI_SELECT_CLASS as Ee } from "./c
|
|
|
11
11
|
import Re from "../../../../hooks/useCommitAction/useCommitAction.js";
|
|
12
12
|
import { CommitAction as U } from "../../../../hooks/useCommitAction/types.js";
|
|
13
13
|
import { uuid as Se } from "../../../../utils/random/uuid.js";
|
|
14
|
-
import { boolOrFalse as he } from "../../../../utils/value/bool.js";
|
|
15
14
|
import { EMPTY_ARRAY as Y } from "../../../../utils/value/constants.js";
|
|
16
|
-
import {
|
|
15
|
+
import { boolOrFalse as De } from "../../../../utils/value/bool.js";
|
|
16
|
+
import { noop as he } from "../../../../utils/common.js";
|
|
17
17
|
const $e = ({
|
|
18
18
|
className: O,
|
|
19
19
|
classNameModifiers: P = Y,
|
|
@@ -22,13 +22,13 @@ const $e = ({
|
|
|
22
22
|
filterable: u = !1,
|
|
23
23
|
multiSelect: m = !1,
|
|
24
24
|
readonly: j = !1,
|
|
25
|
-
onChange: F =
|
|
25
|
+
onChange: F = he,
|
|
26
26
|
selected: H,
|
|
27
27
|
name: _,
|
|
28
28
|
isInvalid: X,
|
|
29
29
|
isValid: q,
|
|
30
30
|
placeholder: z,
|
|
31
|
-
uniqueId:
|
|
31
|
+
uniqueId: D,
|
|
32
32
|
renderListItem: G,
|
|
33
33
|
isCollatingErrors: J,
|
|
34
34
|
setToTargetWidth: Q,
|
|
@@ -36,12 +36,12 @@ const $e = ({
|
|
|
36
36
|
showOverlay: Z = !1,
|
|
37
37
|
fitPosition: ee
|
|
38
38
|
}) => {
|
|
39
|
-
const { resetSelection: f, select: I, selection: n } = ge({ items: g, multiSelect: m, selected: H }), [o, i] = w(!1), [
|
|
39
|
+
const { resetSelection: f, select: I, selection: n } = ge({ items: g, multiSelect: m, selected: H }), [o, i] = w(!1), [h, d] = w(""), E = a(null), p = a(null), k = a(null), v = a(`select-${Se()}`), [te, B] = w(0), x = a(), R = a(!0), C = a(!1), L = a(n), y = a(n), re = l(() => {
|
|
40
40
|
d(""), i(!1), o && (f(L.current), R.current = !0);
|
|
41
41
|
}, [f, i, d, o]), se = de(
|
|
42
42
|
() => fe([
|
|
43
43
|
K,
|
|
44
|
-
{ [Ee]:
|
|
44
|
+
{ [Ee]: De(m) },
|
|
45
45
|
...P.map((e) => `${K}--${e}`),
|
|
46
46
|
O
|
|
47
47
|
]),
|
|
@@ -81,8 +81,8 @@ const $e = ({
|
|
|
81
81
|
b(() => {
|
|
82
82
|
y.current !== n && (y.current = n, (!m || C.current) && (S(), c())), C.current = !1;
|
|
83
83
|
}, [c, S, m, n]), b(() => {
|
|
84
|
-
W && (
|
|
85
|
-
}, [W, c,
|
|
84
|
+
W && (B(n.length), c());
|
|
85
|
+
}, [W, c, B, n.length]);
|
|
86
86
|
const oe = l(
|
|
87
87
|
(e) => {
|
|
88
88
|
switch (e.code) {
|
|
@@ -94,7 +94,7 @@ const $e = ({
|
|
|
94
94
|
case s.SPACE:
|
|
95
95
|
if (u && o) {
|
|
96
96
|
if (e.key === s.ENTER)
|
|
97
|
-
if (
|
|
97
|
+
if (h) A(e);
|
|
98
98
|
else break;
|
|
99
99
|
return;
|
|
100
100
|
}
|
|
@@ -107,7 +107,7 @@ const $e = ({
|
|
|
107
107
|
}
|
|
108
108
|
e.preventDefault(), i(!0);
|
|
109
109
|
},
|
|
110
|
-
[c, u, A, o, i,
|
|
110
|
+
[c, u, A, o, i, h]
|
|
111
111
|
);
|
|
112
112
|
b(() => {
|
|
113
113
|
o && (cancelAnimationFrame(x.current), x.current = requestAnimationFrame(() => {
|
|
@@ -191,7 +191,7 @@ const $e = ({
|
|
|
191
191
|
/* @__PURE__ */ T(
|
|
192
192
|
Ae,
|
|
193
193
|
{
|
|
194
|
-
id:
|
|
194
|
+
id: D ?? void 0,
|
|
195
195
|
appliedFilterNumber: te,
|
|
196
196
|
active: n,
|
|
197
197
|
filterInputRef: E,
|
|
@@ -203,12 +203,12 @@ const $e = ({
|
|
|
203
203
|
multiSelect: m,
|
|
204
204
|
placeholder: z,
|
|
205
205
|
readonly: j,
|
|
206
|
-
selectListId:
|
|
206
|
+
selectListId: v.current,
|
|
207
207
|
showList: o,
|
|
208
208
|
toggleButtonRef: k,
|
|
209
209
|
toggleList: ie,
|
|
210
210
|
withoutCollapseIndicator: V,
|
|
211
|
-
ariaDescribedBy: !J &&
|
|
211
|
+
ariaDescribedBy: !J && D ? `${D}${pe}` : ""
|
|
212
212
|
}
|
|
213
213
|
),
|
|
214
214
|
/* @__PURE__ */ T(
|
|
@@ -223,13 +223,13 @@ const $e = ({
|
|
|
223
223
|
multiSelect: m,
|
|
224
224
|
onKeyDown: ce,
|
|
225
225
|
onSelect: A,
|
|
226
|
-
selectListId:
|
|
226
|
+
selectListId: v.current,
|
|
227
227
|
ref: p,
|
|
228
228
|
toggleButtonRef: k,
|
|
229
229
|
renderListItem: G,
|
|
230
230
|
showList: o,
|
|
231
231
|
showOverlay: Z,
|
|
232
|
-
textFilter:
|
|
232
|
+
textFilter: h,
|
|
233
233
|
fitPosition: ee
|
|
234
234
|
}
|
|
235
235
|
)
|
|
@@ -1,88 +1,88 @@
|
|
|
1
1
|
import { jsx as a } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import D from "classnames";
|
|
3
|
-
import { useMemo as
|
|
4
|
-
import
|
|
5
|
-
import { ButtonVariant as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
3
|
+
import { useMemo as O } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
4
|
+
import C from "../../../../../core/Context/useCoreContext.js";
|
|
5
|
+
import { ButtonVariant as f } from "../../../Button/types.js";
|
|
6
|
+
import L from "../../../Typography/Typography.js";
|
|
7
|
+
import u from "../../../SVGIcons/ChevronDown.js";
|
|
8
|
+
import { TypographyVariant as B, TypographyElement as p } from "../../../Typography/types.js";
|
|
9
|
+
import { DROPDOWN_BUTTON_ICON_CLASS as R, DROPDOWN_BUTTON_TEXT_CLASS as h, DROPDOWN_BUTTON_MULTI_SELECT_COUNTER_CLASS as y, DROPDOWN_BUTTON_COLLAPSE_INDICATOR_CLASS as A, DROPDOWN_BUTTON_CLASS as E, DROPDOWN_BUTTON_VALID_CLASS as P, DROPDOWN_BUTTON_INVALID_CLASS as U, DROPDOWN_BUTTON_READONLY_CLASS as g, DROPDOWN_BUTTON_HAS_SELECTION_CLASS as x, DROPDOWN_BUTTON_ACTIVE_CLASS as I, DROPDOWN_BUTTON_CLASSNAME as W } from "../constants.js";
|
|
10
10
|
import { Fragment as b } from "../../../../../external/preact/dist/preact.module.js";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { boolOrFalse as
|
|
14
|
-
const
|
|
11
|
+
import v from "../../../Img/Img.js";
|
|
12
|
+
import w from "../../../Button/Button.js";
|
|
13
|
+
import { boolOrFalse as V } from "../../../../../utils/value/bool.js";
|
|
14
|
+
const F = ({
|
|
15
15
|
active: e,
|
|
16
|
-
disabled:
|
|
17
|
-
className:
|
|
18
|
-
filterable:
|
|
16
|
+
disabled: m,
|
|
17
|
+
className: o,
|
|
18
|
+
filterable: i,
|
|
19
19
|
toggleButtonRef: l,
|
|
20
|
-
...
|
|
20
|
+
...n
|
|
21
21
|
}) => {
|
|
22
|
-
const r =
|
|
23
|
-
return
|
|
24
|
-
|
|
22
|
+
const r = O(() => i ? D(W, o) : o, [o, i]);
|
|
23
|
+
return i ? /* @__PURE__ */ a("div", { ...n, className: r, ref: l }) : /* @__PURE__ */ a(
|
|
24
|
+
w,
|
|
25
25
|
{
|
|
26
|
-
...
|
|
26
|
+
...n,
|
|
27
27
|
className: r,
|
|
28
|
-
disabled:
|
|
29
|
-
variant:
|
|
28
|
+
disabled: m,
|
|
29
|
+
variant: f.SECONDARY,
|
|
30
30
|
ref: l
|
|
31
31
|
}
|
|
32
32
|
);
|
|
33
33
|
}, $ = (e) => {
|
|
34
34
|
var T, c;
|
|
35
|
-
const { i18n:
|
|
35
|
+
const { i18n: m } = C(), { active: o, filterable: i, multiSelect: l, placeholder: n, readonly: r, showList: s, withoutCollapseIndicator: S } = e, N = O(() => (n == null ? void 0 : n.trim()) || m.get("select.filter.placeholder"), [m, n]), t = O(() => V(l) ? void 0 : o[0], [o, l]), d = O(() => {
|
|
36
36
|
var _;
|
|
37
|
-
return ((_ = t == null ? void 0 : t.name) == null ? void 0 : _.trim()) ||
|
|
38
|
-
}, [t,
|
|
37
|
+
return ((_ = t == null ? void 0 : t.name) == null ? void 0 : _.trim()) || N;
|
|
38
|
+
}, [t, N]);
|
|
39
39
|
return /* @__PURE__ */ a(
|
|
40
|
-
|
|
40
|
+
F,
|
|
41
41
|
{
|
|
42
|
-
active:
|
|
42
|
+
active: o,
|
|
43
43
|
disabled: r,
|
|
44
44
|
"aria-disabled": r,
|
|
45
|
-
"aria-expanded":
|
|
45
|
+
"aria-expanded": s,
|
|
46
46
|
"aria-haspopup": "listbox",
|
|
47
|
-
className: D(
|
|
48
|
-
[
|
|
49
|
-
[
|
|
50
|
-
[
|
|
51
|
-
[
|
|
47
|
+
className: D(E, {
|
|
48
|
+
[I]: s,
|
|
49
|
+
[x]: !!o.length,
|
|
50
|
+
[g]: r,
|
|
51
|
+
[U]: e.isInvalid,
|
|
52
52
|
[P]: e.isValid
|
|
53
53
|
}),
|
|
54
|
-
filterable:
|
|
54
|
+
filterable: i,
|
|
55
55
|
onClick: r ? void 0 : e.toggleList,
|
|
56
56
|
onKeyDown: r ? void 0 : e.onButtonKeyDown,
|
|
57
|
-
role:
|
|
57
|
+
role: i ? "button" : void 0,
|
|
58
58
|
tabIndex: 0,
|
|
59
|
-
title:
|
|
59
|
+
title: d,
|
|
60
60
|
toggleButtonRef: e.toggleButtonRef,
|
|
61
|
-
type:
|
|
61
|
+
type: i ? void 0 : "button",
|
|
62
62
|
"aria-describedby": e.ariaDescribedBy,
|
|
63
63
|
id: e.id ?? "",
|
|
64
64
|
children: [
|
|
65
|
-
|
|
65
|
+
s && i ? /* @__PURE__ */ a(
|
|
66
66
|
"input",
|
|
67
67
|
{
|
|
68
68
|
"aria-autocomplete": "list",
|
|
69
69
|
"aria-controls": e.selectListId,
|
|
70
|
-
"aria-expanded":
|
|
70
|
+
"aria-expanded": s,
|
|
71
71
|
"aria-owns": e.selectListId,
|
|
72
72
|
autoComplete: "off",
|
|
73
73
|
className: "adyen-pe-filter-input",
|
|
74
74
|
onInput: e.onInput,
|
|
75
|
-
placeholder:
|
|
75
|
+
placeholder: N,
|
|
76
76
|
ref: e.filterInputRef,
|
|
77
77
|
role: "combobox",
|
|
78
78
|
type: "text"
|
|
79
79
|
}
|
|
80
80
|
) : /* @__PURE__ */ a(b, { children: [
|
|
81
|
-
(t == null ? void 0 : t.icon) && /* @__PURE__ */ a(
|
|
82
|
-
/* @__PURE__ */ a("span", { className:
|
|
83
|
-
l && e.appliedFilterNumber > 0 && /* @__PURE__ */ a("div", { className:
|
|
81
|
+
(t == null ? void 0 : t.icon) && /* @__PURE__ */ a(v, { className: R, src: t.icon, alt: ((T = t == null ? void 0 : t.name) == null ? void 0 : T.trim()) ?? "" }),
|
|
82
|
+
/* @__PURE__ */ a("span", { className: h, children: ((c = t == null ? void 0 : t.selectedOptionName) == null ? void 0 : c.trim()) || d }),
|
|
83
|
+
l && e.appliedFilterNumber > 0 && /* @__PURE__ */ a("div", { className: y, children: /* @__PURE__ */ a(L, { el: p.SPAN, variant: B.BODY, stronger: !0, children: e.appliedFilterNumber }) })
|
|
84
84
|
] }),
|
|
85
|
-
!S && /* @__PURE__ */ a("span", { className:
|
|
85
|
+
!S && /* @__PURE__ */ a("span", { className: A, children: /* @__PURE__ */ a(u, { role: "presentation" }) })
|
|
86
86
|
]
|
|
87
87
|
}
|
|
88
88
|
);
|