@adyen/adyen-platform-experience-web 1.3.1 → 1.4.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-reGJ7jfy.cjs → angle-right-DpuNqT0j.cjs} +2 -2
- package/dist/{angle-right-reGJ7jfy.cjs.map → angle-right-DpuNqT0j.cjs.map} +1 -1
- package/dist/{checkmark-DLQ0eQ9B.cjs → checkmark-CC7Mmd_x.cjs} +2 -2
- package/dist/{checkmark-DLQ0eQ9B.cjs.map → checkmark-CC7Mmd_x.cjs.map} +1 -1
- package/dist/{checkmark-circle-fill-daKF6pt4.cjs → checkmark-circle-fill-1IL4ERtO.cjs} +2 -2
- package/dist/{checkmark-circle-fill-daKF6pt4.cjs.map → checkmark-circle-fill-1IL4ERtO.cjs.map} +1 -1
- package/dist/{checkmark-square-fill-B6wYCtwy.cjs → checkmark-square-fill-Bu2jdGU3.cjs} +2 -2
- package/dist/{checkmark-square-fill-B6wYCtwy.cjs.map → checkmark-square-fill-Bu2jdGU3.cjs.map} +1 -1
- package/dist/{chevron-down-DN0sbcES.cjs → chevron-down-BVCFqkLo.cjs} +2 -2
- package/dist/{chevron-down-DN0sbcES.cjs.map → chevron-down-BVCFqkLo.cjs.map} +1 -1
- package/dist/{chevron-left-DQy9RoLd.cjs → chevron-left-DfGEXTbq.cjs} +2 -2
- package/dist/{chevron-left-DQy9RoLd.cjs.map → chevron-left-DfGEXTbq.cjs.map} +1 -1
- package/dist/{chevron-right-C1v8rslw.cjs → chevron-right-DzkYlomK.cjs} +2 -2
- package/dist/{chevron-right-C1v8rslw.cjs.map → chevron-right-DzkYlomK.cjs.map} +1 -1
- package/dist/{chevron-up-DLQHTfYo.cjs → chevron-up-CpmBSOon.cjs} +2 -2
- package/dist/{chevron-up-DLQHTfYo.cjs.map → chevron-up-CpmBSOon.cjs.map} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/{copy-BAyT_BYn.cjs → copy-DuV1z0-c.cjs} +2 -2
- package/dist/{copy-BAyT_BYn.cjs.map → copy-DuV1z0-c.cjs.map} +1 -1
- package/dist/{cross-8jn1CRBO.cjs → cross-C5L4gQrS.cjs} +2 -2
- package/dist/{cross-8jn1CRBO.cjs.map → cross-C5L4gQrS.cjs.map} +1 -1
- package/dist/{cross-circle-fill-DUcHCmLb.cjs → cross-circle-fill-D6Ir0xDO.cjs} +2 -2
- package/dist/{cross-circle-fill-DUcHCmLb.cjs.map → cross-circle-fill-D6Ir0xDO.cjs.map} +1 -1
- package/dist/da-DK-DHGqGo8Q.cjs +2 -0
- package/dist/da-DK-DHGqGo8Q.cjs.map +1 -0
- package/dist/de-DE-k_BRPv7a.cjs +2 -0
- package/dist/de-DE-k_BRPv7a.cjs.map +1 -0
- package/dist/{download-BwO4dcZi.cjs → download-IwqY_7gX.cjs} +2 -2
- package/dist/{download-BwO4dcZi.cjs.map → download-IwqY_7gX.cjs.map} +1 -1
- package/dist/es/components/external/CapitalOffer/components/CapitalOfferSummary/CapitalOfferSummary.js +5 -5
- package/dist/es/components/external/CapitalOverview/components/AccountDetails/AccountDetail.js +22 -0
- package/dist/es/components/external/CapitalOverview/components/AccountDetails/AccountDetails.js +34 -0
- package/dist/es/components/external/CapitalOverview/components/AccountDetails/utils.js +46 -0
- package/dist/es/components/external/CapitalOverview/components/CapitalOverview/CapitalOverview.js +58 -58
- package/dist/es/components/external/CapitalOverview/components/GrantAdjustmentDetails/GrantAdjustmentDetails.js +34 -0
- package/dist/es/components/external/CapitalOverview/components/GrantAdjustmentDetails/constants.js +7 -0
- package/dist/es/components/external/CapitalOverview/components/GrantItem/GrantItem.js +71 -51
- package/dist/es/components/external/CapitalOverview/components/GrantItem/constants.js +4 -2
- package/dist/es/components/external/CapitalOverview/components/GrantItem/utils.js +17 -10
- package/dist/es/components/external/CapitalOverview/components/GrantList/GrantList.js +24 -23
- package/dist/es/components/external/CapitalOverview/components/GrantList/GrantsDisplay.js +36 -23
- package/dist/es/components/external/CapitalOverview/components/GrantRepaymentDetails/GrantRepaymentDetails.js +54 -0
- package/dist/es/components/external/PayoutDetails/components/PayoutData.js +142 -92
- package/dist/es/components/external/PayoutDetails/components/constants.js +14 -9
- package/dist/es/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.js +108 -90
- package/dist/es/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.js +33 -31
- package/dist/es/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.js +81 -64
- package/dist/es/components/external/ReportsOverview/components/ReportsTable/ReportsTable.js +69 -75
- package/dist/es/components/external/TransactionDetails/components/TransactionData/TransactionData.js +5 -5
- package/dist/es/components/external/TransactionDetails/components/TransactionData/TransactionDataContent.js +138 -129
- package/dist/es/components/external/TransactionDetails/components/details/TransactionDataProperties.js +72 -42
- package/dist/es/components/external/TransactionDetails/context/details/context.js +46 -38
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +8 -8
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +19 -19
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +23 -23
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +144 -141
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/PaymentMethodCell.js +13 -13
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +37 -38
- package/dist/es/components/external/UIElement/UIElement.js +29 -26
- package/dist/es/components/internal/AnchorButton/AnchorButton.js +11 -11
- package/dist/es/components/internal/Button/Button.js +16 -16
- package/dist/es/components/internal/Button/ButtonActions/ButtonActions.js +15 -13
- package/dist/es/components/internal/Button/DownloadButton/DownloadButton.js +27 -27
- package/dist/es/components/internal/Button/constants.js +12 -11
- package/dist/es/components/internal/CopyText/CopyText.js +17 -21
- package/dist/es/components/internal/DataGrid/DataGridCell.js +16 -17
- package/dist/es/components/internal/DataGrid/components/TableCells.js +40 -19
- package/dist/es/components/internal/DataGrid/components/TableHeaderCell.js +12 -13
- package/dist/es/components/internal/DataOverviewDetails/DataOverviewDetails.js +62 -47
- package/dist/es/components/internal/DataOverviewDisplay/DataDetailsModal.js +14 -13
- package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +1 -1
- package/dist/es/components/internal/FilterBar/FilterBar.js +20 -20
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +50 -50
- package/dist/es/components/internal/FormFields/Select/BalanceAccountSelector/BalanceAccountSelector.js +23 -21
- package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +42 -42
- package/dist/es/components/internal/FormFields/Select/components/SelectList.js +15 -15
- package/dist/es/components/internal/Icon/Icon.js +1 -0
- package/dist/es/components/internal/Link/Link.js +40 -0
- package/dist/es/components/internal/Modal/Modal.js +18 -18
- package/dist/es/components/internal/Modal/ModalContent/ModalContent.js +13 -13
- package/dist/es/components/internal/StructuredList/StructuredList.js +24 -23
- package/dist/es/components/internal/StructuredList/constants.js +6 -5
- package/dist/es/components/internal/StructuredList/useStructuredListItem.js +9 -7
- package/dist/es/components/internal/Tooltip/Tooltip.js +32 -28
- package/dist/es/components/utils/customData/hasCustomField.js +22 -0
- package/dist/es/components/utils/customData/mergeRecords.js +13 -0
- package/dist/es/core/Context/CoreContext.js +4 -3
- package/dist/es/core/Context/CoreProvider.js +15 -14
- package/dist/es/core/Http/utils.js +1 -1
- package/dist/es/core/Localization/datetime/restamper/constants.js +1 -1
- package/dist/es/core/Localization/datetime/restamper/utils.js +12 -12
- package/dist/es/core/core.js +1 -1
- package/dist/es/external/preact/compat/dist/compat.module.js +18 -17
- package/dist/es/external/preact/dist/preact.module.js +10 -6
- package/dist/es/hooks/useContainerQuery.js +37 -0
- package/dist/es/hooks/useCustomColumnsData.js +24 -21
- package/dist/es/hooks/useResponsiveContainer.js +24 -0
- package/dist/es/hooks/useTableColumns.js +43 -23
- package/dist/es/images/icons/external-link.svg.js +6 -0
- package/dist/es/translations/da-DK.json.js +51 -41
- package/dist/es/translations/de-DE.json.js +63 -53
- package/dist/es/translations/en-US.json.js +39 -29
- package/dist/es/translations/es-ES.json.js +79 -69
- package/dist/es/translations/fi-FI.json.js +59 -49
- package/dist/es/translations/fr-FR.json.js +77 -67
- package/dist/es/translations/it-IT.json.js +55 -45
- package/dist/es/translations/nl-NL.json.js +35 -25
- package/dist/es/translations/no-NO.json.js +43 -33
- package/dist/es/translations/pt-BR.json.js +100 -90
- package/dist/es/translations/sv-SE.json.js +47 -37
- package/dist/es-ES-Cy-9bm8z.cjs +2 -0
- package/dist/es-ES-Cy-9bm8z.cjs.map +1 -0
- package/dist/external-link-r39cGU4L.cjs +2 -0
- package/dist/external-link-r39cGU4L.cjs.map +1 -0
- package/dist/fi-FI-C7ICLuS8.cjs +2 -0
- package/dist/fi-FI-C7ICLuS8.cjs.map +1 -0
- package/dist/{filter-DGCUlKbX.cjs → filter-BGBP3TAU.cjs} +2 -2
- package/dist/{filter-DGCUlKbX.cjs.map → filter-BGBP3TAU.cjs.map} +1 -1
- package/dist/fr-FR-DH8euUOp.cjs +2 -0
- package/dist/fr-FR-DH8euUOp.cjs.map +1 -0
- package/dist/index-BeWwE_B0.cjs +12 -0
- package/dist/index-BeWwE_B0.cjs.map +1 -0
- package/dist/{info-filled-y_-s_7-J.cjs → info-filled-C_zUEZ2b.cjs} +2 -2
- package/dist/{info-filled-y_-s_7-J.cjs.map → info-filled-C_zUEZ2b.cjs.map} +1 -1
- package/dist/it-IT-DsfPVAun.cjs +2 -0
- package/dist/it-IT-DsfPVAun.cjs.map +1 -0
- package/dist/{minus-circle-outline-BombUmpi.cjs → minus-circle-outline-1CJ3DOVB.cjs} +2 -2
- package/dist/{minus-circle-outline-BombUmpi.cjs.map → minus-circle-outline-1CJ3DOVB.cjs.map} +1 -1
- package/dist/nl-NL-DP_t6EpF.cjs +2 -0
- package/dist/nl-NL-DP_t6EpF.cjs.map +1 -0
- package/dist/no-NO-ARsXLWv0.cjs +2 -0
- package/dist/no-NO-ARsXLWv0.cjs.map +1 -0
- package/dist/{plus-circle-outline-2EQEIXAM.cjs → plus-circle-outline-CPQ_oOtQ.cjs} +2 -2
- package/dist/{plus-circle-outline-2EQEIXAM.cjs.map → plus-circle-outline-CPQ_oOtQ.cjs.map} +1 -1
- package/dist/pt-BR-CuTqntp7.cjs +2 -0
- package/dist/pt-BR-CuTqntp7.cjs.map +1 -0
- package/dist/{square-Ds2_OrAo.cjs → square-BmHyYgat.cjs} +2 -2
- package/dist/{square-Ds2_OrAo.cjs.map → square-BmHyYgat.cjs.map} +1 -1
- package/dist/sv-SE-DDAIHLKD.cjs +2 -0
- package/dist/sv-SE-DDAIHLKD.cjs.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/AccountDetails/AccountDetail.d.ts +14 -0
- package/dist/types/components/external/CapitalOverview/components/AccountDetails/AccountDetail.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/AccountDetails/AccountDetails.d.ts +5 -0
- package/dist/types/components/external/CapitalOverview/components/AccountDetails/AccountDetails.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/AccountDetails/types.d.ts +10 -0
- package/dist/types/components/external/CapitalOverview/components/AccountDetails/types.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/AccountDetails/utils.d.ts +5 -0
- package/dist/types/components/external/CapitalOverview/components/AccountDetails/utils.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/GrantAdjustmentDetails/GrantAdjustmentDetails.d.ts +10 -0
- package/dist/types/components/external/CapitalOverview/components/GrantAdjustmentDetails/GrantAdjustmentDetails.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/GrantAdjustmentDetails/constants.d.ts +5 -0
- package/dist/types/components/external/CapitalOverview/components/GrantAdjustmentDetails/constants.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/GrantAdjustmentDetails/types.d.ts +10 -0
- package/dist/types/components/external/CapitalOverview/components/GrantAdjustmentDetails/types.d.ts.map +1 -0
- package/dist/types/components/external/CapitalOverview/components/GrantItem/GrantItem.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOverview/components/GrantItem/constants.d.ts +2 -0
- package/dist/types/components/external/CapitalOverview/components/GrantItem/constants.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOverview/components/GrantItem/types.d.ts +21 -0
- package/dist/types/components/external/CapitalOverview/components/GrantItem/types.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOverview/components/GrantItem/utils.d.ts +2 -19
- package/dist/types/components/external/CapitalOverview/components/GrantItem/utils.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOverview/components/GrantList/GrantList.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOverview/components/GrantList/GrantsDisplay.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOverview/components/GrantList/types.d.ts +2 -1
- package/dist/types/components/external/CapitalOverview/components/GrantList/types.d.ts.map +1 -1
- package/dist/types/components/external/CapitalOverview/components/GrantRepaymentDetails/GrantRepaymentDetails.d.ts +5 -0
- package/dist/types/components/external/CapitalOverview/components/GrantRepaymentDetails/GrantRepaymentDetails.d.ts.map +1 -0
- package/dist/types/components/external/PayoutDetails/PayoutDetails.d.ts +3 -3
- package/dist/types/components/external/PayoutDetails/PayoutDetails.d.ts.map +1 -1
- package/dist/types/components/external/PayoutDetails/components/PayoutData.d.ts +6 -1
- package/dist/types/components/external/PayoutDetails/components/PayoutData.d.ts.map +1 -1
- package/dist/types/components/external/PayoutDetails/components/constants.d.ts +5 -0
- package/dist/types/components/external/PayoutDetails/components/constants.d.ts.map +1 -1
- package/dist/types/components/external/PayoutDetails/types.d.ts +8 -0
- package/dist/types/components/external/PayoutDetails/types.d.ts.map +1 -0
- package/dist/types/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.d.ts +1 -1
- package/dist/types/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.d.ts.map +1 -1
- package/dist/types/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.d.ts +5 -0
- package/dist/types/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.d.ts.map +1 -1
- package/dist/types/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.d.ts +1 -1
- package/dist/types/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.d.ts.map +1 -1
- package/dist/types/components/external/ReportsOverview/components/ReportsTable/ReportsTable.d.ts +5 -0
- package/dist/types/components/external/ReportsOverview/components/ReportsTable/ReportsTable.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/TransactionDetails.d.ts +3 -3
- package/dist/types/components/external/TransactionDetails/TransactionDetails.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionData/TransactionData.d.ts +1 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionData/TransactionData.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionData/TransactionDataContent.d.ts +2 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionData/TransactionDataContent.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/components/constants.d.ts +1 -1
- package/dist/types/components/external/TransactionDetails/components/constants.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/components/details/TransactionDataProperties.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/context/details/context.d.ts +1 -1
- package/dist/types/components/external/TransactionDetails/context/details/context.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/context/details/types.d.ts +3 -1
- package/dist/types/components/external/TransactionDetails/context/details/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/context/refund/hooks/useRefundAction.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/types.d.ts +15 -3
- package/dist/types/components/external/TransactionDetails/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts.map +1 -1
- package/dist/types/components/external/UIElement/UIElement.d.ts +2 -0
- package/dist/types/components/external/UIElement/UIElement.d.ts.map +1 -1
- package/dist/types/components/internal/Button/Button.d.ts.map +1 -1
- package/dist/types/components/internal/Button/ButtonActions/ButtonActions.d.ts.map +1 -1
- package/dist/types/components/internal/Button/ButtonActions/types.d.ts +1 -0
- package/dist/types/components/internal/Button/ButtonActions/types.d.ts.map +1 -1
- package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts +16 -0
- package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts.map +1 -1
- package/dist/types/components/internal/Button/constants.d.ts +1 -0
- package/dist/types/components/internal/Button/constants.d.ts.map +1 -1
- package/dist/types/components/internal/CopyText/CopyText.d.ts +8 -6
- package/dist/types/components/internal/CopyText/CopyText.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/TableCells.d.ts +3 -2
- package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/TableHeaderCell.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/types.d.ts +1 -4
- package/dist/types/components/internal/DataGrid/types.d.ts.map +1 -1
- package/dist/types/components/internal/DataOverviewDetails/DataOverviewDetails.d.ts.map +1 -1
- package/dist/types/components/internal/DataOverviewDetails/types.d.ts +8 -3
- package/dist/types/components/internal/DataOverviewDetails/types.d.ts.map +1 -1
- package/dist/types/components/internal/DataOverviewDisplay/DataDetailsModal.d.ts +2 -0
- package/dist/types/components/internal/DataOverviewDisplay/DataDetailsModal.d.ts.map +1 -1
- package/dist/types/components/internal/DataOverviewDisplay/DataOverviewHeader/index.d.ts +3 -0
- package/dist/types/components/internal/DataOverviewDisplay/DataOverviewHeader/index.d.ts.map +1 -0
- package/dist/types/components/internal/FilterBar/FilterBar.d.ts +2 -2
- package/dist/types/components/internal/FilterBar/FilterBar.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/types.d.ts +1 -1
- package/dist/types/components/internal/FilterBar/types.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/BalanceAccountSelector/BalanceAccountSelector.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/components/SelectButton.d.ts.map +1 -1
- package/dist/types/components/internal/Icon/Icon.d.ts +1 -0
- package/dist/types/components/internal/Icon/Icon.d.ts.map +1 -1
- package/dist/types/components/internal/Link/Link.d.ts +6 -0
- package/dist/types/components/internal/Link/Link.d.ts.map +1 -0
- package/dist/types/components/internal/Link/types.d.ts +15 -0
- package/dist/types/components/internal/Link/types.d.ts.map +1 -0
- package/dist/types/components/internal/Modal/ModalContent/ModalContent.d.ts +1 -1
- package/dist/types/components/internal/Modal/ModalContent/ModalContent.d.ts.map +1 -1
- package/dist/types/components/internal/StructuredList/StructuredList.d.ts +1 -1
- package/dist/types/components/internal/StructuredList/StructuredList.d.ts.map +1 -1
- package/dist/types/components/internal/StructuredList/constants.d.ts +1 -0
- package/dist/types/components/internal/StructuredList/constants.d.ts.map +1 -1
- package/dist/types/components/internal/StructuredList/types.d.ts +6 -1
- package/dist/types/components/internal/StructuredList/types.d.ts.map +1 -1
- package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +3 -1
- package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts.map +1 -1
- package/dist/types/components/internal/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/types/components/types.d.ts +63 -13
- package/dist/types/components/types.d.ts.map +1 -1
- package/dist/types/components/utils/customData/hasCustomField.d.ts +5 -0
- package/dist/types/components/utils/customData/hasCustomField.d.ts.map +1 -0
- package/dist/types/components/utils/customData/mergeRecords.d.ts +5 -0
- package/dist/types/components/utils/customData/mergeRecords.d.ts.map +1 -0
- package/dist/types/core/ConfigContext/context.d.ts +64 -32
- package/dist/types/core/ConfigContext/context.d.ts.map +1 -1
- package/dist/types/core/ConfigContext/session/AuthSession.d.ts +128 -64
- package/dist/types/core/ConfigContext/session/AuthSession.d.ts.map +1 -1
- package/dist/types/core/ConfigContext/session/SetupContext.d.ts +64 -32
- package/dist/types/core/ConfigContext/session/SetupContext.d.ts.map +1 -1
- package/dist/types/core/Context/CoreContext.d.ts.map +1 -1
- package/dist/types/core/Context/CoreProvider.d.ts +1 -1
- package/dist/types/core/Context/CoreProvider.d.ts.map +1 -1
- package/dist/types/core/Context/types.d.ts +2 -0
- package/dist/types/core/Context/types.d.ts.map +1 -1
- package/dist/types/core/Localization/datetime/restamper/constants.d.ts.map +1 -1
- package/dist/types/hooks/useContainerQuery.d.ts +6 -0
- package/dist/types/hooks/useContainerQuery.d.ts.map +1 -0
- package/dist/types/hooks/useCustomColumnsData.d.ts +3 -2
- package/dist/types/hooks/useCustomColumnsData.d.ts.map +1 -1
- package/dist/types/hooks/useResponsiveContainer.d.ts +42 -0
- package/dist/types/hooks/useResponsiveContainer.d.ts.map +1 -0
- package/dist/types/hooks/useTableColumns.d.ts +4 -4
- package/dist/types/hooks/useTableColumns.d.ts.map +1 -1
- package/dist/types/translations/index.d.ts +10 -0
- package/dist/types/translations/index.d.ts.map +1 -1
- package/dist/types/types/api/resources/CapitalResource.d.ts +10 -0
- package/dist/types/types/api/resources/CapitalResource.d.ts.map +1 -1
- package/dist/{warning-CqutbHgk.cjs → warning-eizPFTg-.cjs} +2 -2
- package/dist/{warning-CqutbHgk.cjs.map → warning-eizPFTg-.cjs.map} +1 -1
- package/dist/{warning-filled-DL73IbMz.cjs → warning-filled-CiVuOE_O.cjs} +2 -2
- package/dist/{warning-filled-DL73IbMz.cjs.map → warning-filled-CiVuOE_O.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/da-DK-UDr4zLEm.cjs +0 -2
- package/dist/da-DK-UDr4zLEm.cjs.map +0 -1
- package/dist/de-DE-CRXo3Lip.cjs +0 -2
- package/dist/de-DE-CRXo3Lip.cjs.map +0 -1
- package/dist/es/components/internal/DataGrid/types.js +0 -4
- package/dist/es/hooks/useMediaQuery.js +0 -14
- package/dist/es/hooks/useResponsiveViewport.js +0 -24
- package/dist/es-ES-DKE_miHr.cjs +0 -2
- package/dist/es-ES-DKE_miHr.cjs.map +0 -1
- package/dist/fi-FI-MQMNSR--.cjs +0 -2
- package/dist/fi-FI-MQMNSR--.cjs.map +0 -1
- package/dist/fr-FR-Bq797--M.cjs +0 -2
- package/dist/fr-FR-Bq797--M.cjs.map +0 -1
- package/dist/index-BU9H-9Gn.cjs +0 -12
- package/dist/index-BU9H-9Gn.cjs.map +0 -1
- package/dist/it-IT-P4aG92g4.cjs +0 -2
- package/dist/it-IT-P4aG92g4.cjs.map +0 -1
- package/dist/nl-NL-CkNmbOjk.cjs +0 -2
- package/dist/nl-NL-CkNmbOjk.cjs.map +0 -1
- package/dist/no-NO-Cb48UzO1.cjs +0 -2
- package/dist/no-NO-Cb48UzO1.cjs.map +0 -1
- package/dist/pt-BR-7QdWAx4z.cjs +0 -2
- package/dist/pt-BR-7QdWAx4z.cjs.map +0 -1
- package/dist/sv-SE-DDU8uUdf.cjs +0 -2
- package/dist/sv-SE-DDU8uUdf.cjs.map +0 -1
- package/dist/types/hooks/useMediaQuery.d.ts +0 -3
- package/dist/types/hooks/useMediaQuery.d.ts.map +0 -1
- package/dist/types/hooks/useResponsiveViewport.d.ts +0 -28
- package/dist/types/hooks/useResponsiveViewport.d.ts.map +0 -1
|
@@ -1,71 +1,70 @@
|
|
|
1
1
|
import { jsx as t } from "../../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
2
|
+
import { useState as F, useCallback as Y, useMemo as k } from "../../../../../external/preact/hooks/dist/hooks.module.js";
|
|
3
|
+
import x from "../Category/Category.js";
|
|
4
|
+
import $ from "../../../../internal/DataOverviewError/DataOverviewError.js";
|
|
5
|
+
import H from "../../../../../core/Context/useCoreContext.js";
|
|
6
6
|
import { getCurrencyCode as I } from "../../../../../core/Localization/amount/amount-util.js";
|
|
7
7
|
import P from "../../../../../hooks/useTimezoneAwareDateFormatting.js";
|
|
8
|
-
import { CellTextPosition as V } from "../../../../internal/DataGrid/types.js";
|
|
9
8
|
import { TypographyVariant as n } from "../../../../internal/Typography/types.js";
|
|
10
9
|
import a from "../../../../internal/Typography/Typography.js";
|
|
11
|
-
import {
|
|
12
|
-
import { BASE_CLASS as B, AMOUNT_CLASS as
|
|
10
|
+
import { useResponsiveContainer as d, containerQueries as c } from "../../../../../hooks/useResponsiveContainer.js";
|
|
11
|
+
import { BASE_CLASS as B, AMOUNT_CLASS as U, DATE_AND_PAYMENT_METHOD_CLASS as G, DATE_METHOD_CLASS as W } from "./constants.js";
|
|
13
12
|
/* empty css */
|
|
14
13
|
import A from "./PaymentMethodCell.js";
|
|
15
14
|
import { useTableColumns as j } from "../../../../../hooks/useTableColumns.js";
|
|
16
15
|
import f from "../../../../internal/DataGrid/DataGrid.js";
|
|
17
16
|
import { DATE_FORMAT_TRANSACTIONS_MOBILE as q, DATE_FORMAT_TRANSACTIONS as z } from "../../../../../constants/dateFormats.js";
|
|
18
17
|
import K from "../../../../internal/Pagination/Pagination.js";
|
|
19
|
-
const Q = ["createdAt", "paymentMethod", "transactionType", "amount"],
|
|
18
|
+
const Q = ["createdAt", "paymentMethod", "transactionType", "amount"], yo = ({
|
|
20
19
|
activeBalanceAccount: s,
|
|
21
20
|
availableCurrencies: i,
|
|
22
21
|
error: m,
|
|
23
|
-
hasMultipleCurrencies:
|
|
22
|
+
hasMultipleCurrencies: p,
|
|
24
23
|
loading: h,
|
|
25
24
|
onContactSupport: l,
|
|
26
|
-
onRowClick:
|
|
27
|
-
showDetails:
|
|
25
|
+
onRowClick: C,
|
|
26
|
+
showDetails: V,
|
|
28
27
|
showPagination: g,
|
|
29
|
-
transactions:
|
|
30
|
-
customColumns:
|
|
31
|
-
...
|
|
28
|
+
transactions: M,
|
|
29
|
+
customColumns: D,
|
|
30
|
+
...S
|
|
32
31
|
}) => {
|
|
33
|
-
const { i18n: e } =
|
|
32
|
+
const { i18n: e } = H(), { dateFormat: u } = P(s == null ? void 0 : s.timeZone), [_, T] = F(), y = d(c.up.sm), E = d(c.up.md), O = d(c.down.xs), N = e.get("amount"), b = j({
|
|
34
33
|
fields: Q,
|
|
35
|
-
customColumns:
|
|
34
|
+
customColumns: D,
|
|
36
35
|
columnConfig: {
|
|
37
36
|
amount: {
|
|
38
|
-
label:
|
|
39
|
-
position:
|
|
37
|
+
label: p ? void 0 : `${N} ${i && i[0] ? `(${I(i[0])})` : ""}`,
|
|
38
|
+
position: "right",
|
|
40
39
|
flex: y ? 1.5 : void 0
|
|
41
40
|
},
|
|
42
41
|
transactionType: { visible: E },
|
|
43
42
|
paymentMethod: { visible: y }
|
|
44
43
|
}
|
|
45
|
-
}),
|
|
44
|
+
}), v = {
|
|
46
45
|
title: "noTransactionsFound",
|
|
47
46
|
message: ["tryDifferentSearchOrResetYourFiltersAndWeWillTryAgain"]
|
|
48
|
-
},
|
|
47
|
+
}, R = Y(
|
|
49
48
|
(o) => {
|
|
50
|
-
|
|
49
|
+
T(o ?? void 0);
|
|
51
50
|
},
|
|
52
|
-
[
|
|
53
|
-
),
|
|
54
|
-
() => () => /* @__PURE__ */ t(
|
|
51
|
+
[T]
|
|
52
|
+
), w = k(
|
|
53
|
+
() => () => /* @__PURE__ */ t($, { error: m, onContactSupport: l, errorMessage: "weCouldNotLoadYourTransactions" }),
|
|
55
54
|
[m, l]
|
|
56
55
|
);
|
|
57
56
|
return /* @__PURE__ */ t("div", { className: B, children: /* @__PURE__ */ t(
|
|
58
57
|
f,
|
|
59
58
|
{
|
|
60
|
-
errorDisplay:
|
|
59
|
+
errorDisplay: w,
|
|
61
60
|
error: m,
|
|
62
|
-
columns:
|
|
63
|
-
data:
|
|
61
|
+
columns: b,
|
|
62
|
+
data: M,
|
|
64
63
|
loading: h,
|
|
65
64
|
outline: !1,
|
|
66
|
-
onRowClick: { callback:
|
|
67
|
-
onRowHover:
|
|
68
|
-
emptyTableMessage:
|
|
65
|
+
onRowClick: { callback: C },
|
|
66
|
+
onRowHover: R,
|
|
67
|
+
emptyTableMessage: v,
|
|
69
68
|
customCells: {
|
|
70
69
|
// Remove status column temporarily
|
|
71
70
|
/* status: ({ value }) => {
|
|
@@ -78,23 +77,23 @@ const Q = ["createdAt", "paymentMethod", "transactionType", "amount"], fo = ({
|
|
|
78
77
|
},*/
|
|
79
78
|
transactionType: ({ item: o, rowIndex: r }) => {
|
|
80
79
|
const L = `tooltip.${o.category}`;
|
|
81
|
-
return o.category ? e.has(L) ? /* @__PURE__ */ t(
|
|
80
|
+
return o.category ? e.has(L) ? /* @__PURE__ */ t(x, { isContainerHovered: r === _, value: o.category }) : /* @__PURE__ */ t(a, { variant: n.BODY, children: e.has(`txType.${o.category}`) ? e.get(`txType.${o.category}`) : `${o.category}` }) : null;
|
|
82
81
|
},
|
|
83
82
|
amount: ({ value: o }) => {
|
|
84
|
-
const r = e.amount(o.value, o.currency, { hideCurrency: !
|
|
85
|
-
return /* @__PURE__ */ t(a, { variant: n.BODY, className:
|
|
83
|
+
const r = e.amount(o.value, o.currency, { hideCurrency: !p });
|
|
84
|
+
return /* @__PURE__ */ t(a, { variant: n.BODY, className: U, children: r });
|
|
86
85
|
},
|
|
87
|
-
createdAt: ({ item: o, value: r }) => O ? /* @__PURE__ */ t("div", { className:
|
|
86
|
+
createdAt: ({ item: o, value: r }) => O ? /* @__PURE__ */ t("div", { className: G, children: [
|
|
88
87
|
/* @__PURE__ */ t(A, { paymentMethod: o.paymentMethod, bankAccount: o.bankAccount }),
|
|
89
|
-
/* @__PURE__ */ t(a, { variant: n.BODY, className: W, children:
|
|
90
|
-
] }) : /* @__PURE__ */ t(a, { variant: n.BODY, children:
|
|
88
|
+
/* @__PURE__ */ t(a, { variant: n.BODY, className: W, children: u(o.createdAt, q) })
|
|
89
|
+
] }) : /* @__PURE__ */ t(a, { variant: n.BODY, children: u(r, z) }),
|
|
91
90
|
paymentMethod: ({ item: o }) => /* @__PURE__ */ t(A, { paymentMethod: o.paymentMethod, bankAccount: o.bankAccount })
|
|
92
91
|
},
|
|
93
|
-
children: g && /* @__PURE__ */ t(f.Footer, { children: /* @__PURE__ */ t(K, { ...
|
|
92
|
+
children: g && /* @__PURE__ */ t(f.Footer, { children: /* @__PURE__ */ t(K, { ...S }) })
|
|
94
93
|
}
|
|
95
94
|
) });
|
|
96
95
|
};
|
|
97
96
|
export {
|
|
98
97
|
Q as TRANSACTION_FIELDS,
|
|
99
|
-
|
|
98
|
+
yo as TransactionsTable
|
|
100
99
|
};
|
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
var m = Object.defineProperty;
|
|
2
|
-
var p = (
|
|
3
|
-
var
|
|
4
|
-
import { jsx as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
2
|
+
var p = (s, e, t) => e in s ? m(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
|
|
3
|
+
var o = (s, e, t) => p(s, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { jsx as r } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
5
|
+
import c from "../../../core/Context/CoreProvider.js";
|
|
6
|
+
import l from "../BaseElement.js";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
|
|
8
|
+
import h from "classnames";
|
|
9
|
+
import { createRef as d } from "../../../external/preact/dist/preact.module.js";
|
|
10
|
+
import { ConfigProvider as u } from "../../../core/ConfigContext/context.js";
|
|
11
|
+
class N extends l {
|
|
11
12
|
constructor(t) {
|
|
12
13
|
super(t);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
o(this, "componentRef", null);
|
|
15
|
+
o(this, "componentToRender", null);
|
|
16
|
+
o(this, "elementRef");
|
|
17
|
+
o(this, "onContactSupport");
|
|
18
|
+
o(this, "customClassNames");
|
|
19
|
+
o(this, "compRef");
|
|
20
|
+
o(this, "setUIElementStatus");
|
|
21
|
+
this.setState = this.setState.bind(this), this.onContactSupport = t.onContactSupport, this.elementRef = this, this.compRef = d();
|
|
20
22
|
}
|
|
21
23
|
get isValid() {
|
|
22
24
|
return !!this.state.isValid;
|
|
@@ -54,25 +56,26 @@ class x extends c {
|
|
|
54
56
|
setState(t) {
|
|
55
57
|
this.state = { ...this.state, ...t };
|
|
56
58
|
}
|
|
57
|
-
setStatus(t,
|
|
58
|
-
var
|
|
59
|
-
return (
|
|
59
|
+
setStatus(t, i) {
|
|
60
|
+
var n, a;
|
|
61
|
+
return (n = this.componentRef) != null && n.setStatus ? this.componentRef.setStatus(t, i) : (a = this.setUIElementStatus) == null || a.call(this, t), this;
|
|
60
62
|
}
|
|
61
63
|
render() {
|
|
62
|
-
const t = this.props.core,
|
|
63
|
-
return t.session.errorHandler =
|
|
64
|
-
|
|
64
|
+
const t = this.props.core, i = t.update.bind(t), n = this.props.onError || t.onError || null;
|
|
65
|
+
return t.session.errorHandler = n, /* @__PURE__ */ r(u, { type: this.type, session: t.session, children: /* @__PURE__ */ r(
|
|
66
|
+
c,
|
|
65
67
|
{
|
|
66
68
|
i18n: t.localization.i18n,
|
|
67
69
|
loadingContext: t.loadingContext,
|
|
68
|
-
updateCore:
|
|
69
|
-
externalErrorHandler:
|
|
70
|
-
|
|
70
|
+
updateCore: i,
|
|
71
|
+
externalErrorHandler: n,
|
|
72
|
+
componentRef: this.compRef,
|
|
73
|
+
children: this.componentToRender && /* @__PURE__ */ r("div", { ref: this.compRef, className: h("adyen-pe-component", this.customClassNames), children: /* @__PURE__ */ r("div", { className: "adyen-pe-component__container", children: this.componentToRender() }) })
|
|
71
74
|
}
|
|
72
75
|
) }, performance.now());
|
|
73
76
|
}
|
|
74
77
|
}
|
|
75
78
|
export {
|
|
76
|
-
|
|
77
|
-
|
|
79
|
+
N as UIElement,
|
|
80
|
+
N as default
|
|
78
81
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { DEFAULT_BUTTON_CLASSNAME as
|
|
4
|
-
import { ButtonVariant as
|
|
1
|
+
import { jsx as A } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
+
import C from "../Button/hooks/useButton.js";
|
|
3
|
+
import { DEFAULT_BUTTON_CLASSNAME as N, BUTTON_ANCHOR_CLASSNAME as B } from "../Button/constants.js";
|
|
4
|
+
import { ButtonVariant as h } from "../Button/types.js";
|
|
5
5
|
import { useMemo as t } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
6
|
-
import { fixedForwardRef as
|
|
7
|
-
import { parseClassName as
|
|
6
|
+
import { fixedForwardRef as p } from "../../../utils/preact/fixedForwardRef.js";
|
|
7
|
+
import { parseClassName as T } from "../../../utils/preact/className.js";
|
|
8
8
|
import { parseBooleanProp as k } from "../../../utils/preact/props.js";
|
|
9
9
|
const M = (o, n) => {
|
|
10
|
-
const { variant: i =
|
|
10
|
+
const { variant: i = h.PRIMARY, disabled: a = !1, onClick: l, classNameModifiers: m = [], className: e } = o, c = t(() => T("", e) || "", [e]), f = t(() => k(a), [a]), { click: r, allChildren: u, allProps: s } = C(
|
|
11
11
|
c,
|
|
12
12
|
[...m, i],
|
|
13
|
-
|
|
13
|
+
`${N} ${B}`,
|
|
14
14
|
f,
|
|
15
15
|
o,
|
|
16
16
|
l
|
|
17
17
|
), d = t(() => ({ ...s, ...o.onClick && r ? { onClick: r } : {} }), [r, s, o.onClick]);
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
-
},
|
|
18
|
+
return /* @__PURE__ */ A("a", { ...d, href: o.href, ref: n, children: u });
|
|
19
|
+
}, U = p(M);
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
U as default
|
|
22
22
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { jsx as n } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
-
import
|
|
3
|
-
import { DEFAULT_BUTTON_CLASSNAME as
|
|
4
|
-
import { useMemo as
|
|
5
|
-
import { ButtonVariant as
|
|
2
|
+
import c from "./hooks/useButton.js";
|
|
3
|
+
import { DEFAULT_BUTTON_CLASSNAME as f } from "./constants.js";
|
|
4
|
+
import { useMemo as o } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
5
|
+
import { ButtonVariant as u } from "./types.js";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { fixedForwardRef as
|
|
8
|
-
import { parseClassName as
|
|
9
|
-
import { parseBooleanProp as
|
|
10
|
-
function
|
|
11
|
-
const e =
|
|
7
|
+
import { fixedForwardRef as d } from "../../../utils/preact/fixedForwardRef.js";
|
|
8
|
+
import { parseClassName as N } from "../../../utils/preact/className.js";
|
|
9
|
+
import { parseBooleanProp as B } from "../../../utils/preact/props.js";
|
|
10
|
+
function b(t, a) {
|
|
11
|
+
const e = o(() => N("", t.className) || "", [t.className]), r = o(() => B(t.disabled || !1), [t.disabled]), { click: s, allChildren: i, allProps: l } = c(
|
|
12
12
|
e,
|
|
13
|
-
[...t.classNameModifiers || [], t.variant ||
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
[...t.classNameModifiers || [], t.variant || u.PRIMARY],
|
|
14
|
+
f,
|
|
15
|
+
r,
|
|
16
16
|
t,
|
|
17
17
|
t.onClick
|
|
18
|
-
);
|
|
19
|
-
return /* @__PURE__ */ n("button", { ...
|
|
18
|
+
), { classNameModifiers: A, ...m } = l;
|
|
19
|
+
return /* @__PURE__ */ n("button", { ...m, ref: a, type: t.type || "button", onClick: s, children: i });
|
|
20
20
|
}
|
|
21
|
-
const
|
|
21
|
+
const y = d(b);
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
y as default
|
|
24
24
|
};
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as a } from "../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import { ButtonActionsLayout as c } from "./types.js";
|
|
3
|
-
import { BUTTON_ACTION_CLASSNAME as
|
|
4
|
-
import { ButtonVariant as
|
|
3
|
+
import { BUTTON_ACTION_CLASSNAME as i, BUTTON_ACTION_CONTAINER_CLASSNAME as d } from "../constants.js";
|
|
4
|
+
import { ButtonVariant as s } from "../types.js";
|
|
5
5
|
/* empty css */
|
|
6
|
-
import { memo as
|
|
7
|
-
import { useMemo as
|
|
6
|
+
import { memo as N } from "../../../../external/preact/compat/dist/compat.module.js";
|
|
7
|
+
import { useMemo as A } from "../../../../external/preact/hooks/dist/hooks.module.js";
|
|
8
|
+
import p from "classnames";
|
|
8
9
|
import T from "../Button.js";
|
|
9
|
-
function
|
|
10
|
-
const
|
|
10
|
+
function f({ actions: t, layout: o = c.BUTTONS_END }) {
|
|
11
|
+
const l = () => `${i}--${o}`, m = (e) => {
|
|
11
12
|
const r = t.length - 1;
|
|
12
|
-
return e === r ?
|
|
13
|
-
},
|
|
14
|
-
return /* @__PURE__ */
|
|
13
|
+
return e === r ? s.PRIMARY : s.SECONDARY;
|
|
14
|
+
}, n = A(() => [...t].reverse(), [t]);
|
|
15
|
+
return /* @__PURE__ */ a("div", { className: i, children: /* @__PURE__ */ a("div", { className: `${d} ${l()}`, role: "group", children: n.map((e, r) => /* @__PURE__ */ a(
|
|
15
16
|
T,
|
|
16
17
|
{
|
|
18
|
+
className: p(e.classNames),
|
|
17
19
|
"aria-label": e.title,
|
|
18
20
|
disabled: e.disabled,
|
|
19
|
-
variant: e.variant ||
|
|
21
|
+
variant: e.variant || m(r),
|
|
20
22
|
onClick: e.event,
|
|
21
23
|
state: e.state ?? "default",
|
|
22
24
|
children: e.renderTitle ? e.renderTitle(e.title) : e.title
|
|
@@ -24,7 +26,7 @@ function p({ actions: t, layout: s = c.BUTTONS_END }) {
|
|
|
24
26
|
`${r}_${e.title || "0"}`
|
|
25
27
|
)) }) });
|
|
26
28
|
}
|
|
27
|
-
const
|
|
29
|
+
const E = N(f);
|
|
28
30
|
export {
|
|
29
|
-
|
|
31
|
+
E as default
|
|
30
32
|
};
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import { jsx as o } from "../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
-
import
|
|
3
|
-
import { useState as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
2
|
+
import _ from "classnames";
|
|
3
|
+
import { useState as g, useEffect as m } from "../../../../external/preact/hooks/dist/hooks.module.js";
|
|
4
|
+
import k from "../../../../core/Context/useCoreContext.js";
|
|
5
|
+
import { useResponsiveContainer as x, containerQueries as B } from "../../../../hooks/useResponsiveContainer.js";
|
|
6
|
+
import w from "../../SVGIcons/Download.js";
|
|
7
7
|
import v from "../Button.js";
|
|
8
8
|
import { ButtonVariant as b } from "../types.js";
|
|
9
|
-
import
|
|
9
|
+
import y from "./useDownload.js";
|
|
10
10
|
/* empty css */
|
|
11
|
-
import
|
|
12
|
-
function
|
|
13
|
-
const t = document.createElement("a"),
|
|
14
|
-
t.href =
|
|
15
|
-
const
|
|
11
|
+
import C from "../../Spinner/Spinner.js";
|
|
12
|
+
function N({ blob: r, filename: c }) {
|
|
13
|
+
const t = document.createElement("a"), a = URL.createObjectURL(r);
|
|
14
|
+
t.href = a, t.download = c || "download";
|
|
15
|
+
const n = () => {
|
|
16
16
|
setTimeout(() => {
|
|
17
|
-
URL.revokeObjectURL(
|
|
17
|
+
URL.revokeObjectURL(a);
|
|
18
18
|
}, 150);
|
|
19
19
|
};
|
|
20
|
-
t.addEventListener("click",
|
|
20
|
+
t.addEventListener("click", n, { once: !0 }), t.click();
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
const { i18n:
|
|
22
|
+
function D({ className: r, disabled: c, endpointName: t, params: a, setError: n, errorDisplay: f, onDownloadRequested: d }) {
|
|
23
|
+
const { i18n: u } = k(), [s, p] = g(!1), L = x(B.down.xs), { data: l, error: i, isFetching: e } = y(t, a, s);
|
|
24
24
|
m(() => {
|
|
25
|
-
s &&
|
|
25
|
+
s && p(!1);
|
|
26
26
|
}, [s]), m(() => {
|
|
27
|
-
l &&
|
|
27
|
+
l && N(l);
|
|
28
28
|
}, [l]), m(() => {
|
|
29
|
-
|
|
30
|
-
}, [i]);
|
|
31
|
-
const
|
|
32
|
-
|
|
29
|
+
n && i && n(i);
|
|
30
|
+
}, [i, n]);
|
|
31
|
+
const h = () => {
|
|
32
|
+
p(!0), d == null || d();
|
|
33
33
|
};
|
|
34
34
|
return /* @__PURE__ */ o("div", { className: "adyen-pe-download", children: [
|
|
35
|
-
|
|
35
|
+
L ? /* @__PURE__ */ o(v, { iconButton: !0, variant: b.TERTIARY, onClick: h, children: e ? /* @__PURE__ */ o(C, { size: "small" }) : /* @__PURE__ */ o(w, {}) }) : /* @__PURE__ */ o(
|
|
36
36
|
v,
|
|
37
37
|
{
|
|
38
|
-
className:
|
|
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(
|
|
43
|
-
children: e ? `${
|
|
41
|
+
onClick: h,
|
|
42
|
+
iconLeft: e ? /* @__PURE__ */ o(C, { size: "small" }) : /* @__PURE__ */ o(w, {}),
|
|
43
|
+
children: e ? `${u.get("downloading")}..` : u.get("download")
|
|
44
44
|
}
|
|
45
45
|
),
|
|
46
46
|
i && f && /* @__PURE__ */ o("div", { className: "adyen-pe-download__error", children: f })
|
|
47
47
|
] });
|
|
48
48
|
}
|
|
49
49
|
export {
|
|
50
|
-
|
|
50
|
+
D as default
|
|
51
51
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _ = "adyen-pe-button", T = "adyen-pe-button__anchor", N = `${_}-actions`, A = `${_}--icon`, n = `${_}--icon-content`, o = `${N}__container-wrapper`, S = `${_}__label`, t = `${_}__icon-right`, O = `${_}__icon-left`, C = `${_}--condensed`, c = `${_}--full-width`, E = `${_}--loading`;
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
C as
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
N as BUTTON_ACTION_CLASSNAME,
|
|
4
|
+
o as BUTTON_ACTION_CONTAINER_CLASSNAME,
|
|
5
|
+
T as BUTTON_ANCHOR_CLASSNAME,
|
|
6
|
+
C as BUTTON_CONDENSED_CLASSNAME,
|
|
7
|
+
c as BUTTON_FULL_WIDTH_CLASSNAME,
|
|
8
|
+
O as BUTTON_ICON_LEFT_CLASSNAME,
|
|
9
|
+
t as BUTTON_ICON_RIGHT_CLASSNAME,
|
|
9
10
|
S as BUTTON_LABEL_CLASSNAME,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
E as BUTTON_LOADING_CLASSNAME,
|
|
12
|
+
_ as DEFAULT_BUTTON_CLASSNAME,
|
|
13
|
+
A as ICON_BUTTON_CLASSNAME,
|
|
14
|
+
n as ICON_BUTTON_CONTENT_CLASSNAME
|
|
14
15
|
};
|
|
@@ -1,25 +1,19 @@
|
|
|
1
1
|
import { jsx as t } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
2
|
import a from "classnames";
|
|
3
3
|
import { useState as f, useCallback as p } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
4
|
-
import
|
|
5
|
-
import { ButtonVariant as
|
|
4
|
+
import u from "../../../core/Context/useCoreContext.js";
|
|
5
|
+
import { ButtonVariant as h } from "../Button/types.js";
|
|
6
6
|
import { Tooltip as s } from "../Tooltip/Tooltip.js";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import
|
|
9
|
-
import { Icon as
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
isHovered: l,
|
|
13
|
-
buttonLabel: i,
|
|
14
|
-
showCopyTextTooltip: m = !0,
|
|
15
|
-
type: e = "Link"
|
|
16
|
-
}) => {
|
|
17
|
-
const { i18n: n } = x(), [d, c] = f(n.get("copy")), _ = p(async () => {
|
|
8
|
+
import L from "../Button/Button.js";
|
|
9
|
+
import { Icon as k } from "../Icon/Icon.js";
|
|
10
|
+
const I = ({ textToCopy: o, isHovered: l, buttonLabel: i, showCopyTextTooltip: d = !0, type: e = "Link", ...m }) => {
|
|
11
|
+
const { i18n: n } = u(), [_, c] = f(n.get("copy")), y = p(async () => {
|
|
18
12
|
if (o)
|
|
19
13
|
try {
|
|
20
14
|
await navigator.clipboard.writeText(o), c(n.get("copied"));
|
|
21
|
-
} catch (
|
|
22
|
-
console.log(
|
|
15
|
+
} catch (x) {
|
|
16
|
+
console.log(x);
|
|
23
17
|
}
|
|
24
18
|
}, [n, o]), r = p(() => {
|
|
25
19
|
c(n.get("copy"));
|
|
@@ -30,8 +24,9 @@ const D = ({
|
|
|
30
24
|
className: a("adyen-pe-copy-text__container", {
|
|
31
25
|
"adyen-pe-copy-text__container--information": e === "Link"
|
|
32
26
|
}),
|
|
27
|
+
...m,
|
|
33
28
|
children: [
|
|
34
|
-
|
|
29
|
+
d ? /* @__PURE__ */ t(s, { content: o, isContainerHovered: l, children: /* @__PURE__ */ t(
|
|
35
30
|
"span",
|
|
36
31
|
{
|
|
37
32
|
className: a({
|
|
@@ -52,21 +47,22 @@ const D = ({
|
|
|
52
47
|
children: i || o
|
|
53
48
|
}
|
|
54
49
|
),
|
|
55
|
-
/* @__PURE__ */ t(s, { content:
|
|
56
|
-
|
|
50
|
+
/* @__PURE__ */ t(s, { content: _, children: /* @__PURE__ */ t(
|
|
51
|
+
L,
|
|
57
52
|
{
|
|
58
|
-
variant:
|
|
53
|
+
variant: h.TERTIARY,
|
|
59
54
|
className: "adyen-pe-copy-text",
|
|
60
|
-
onClick:
|
|
55
|
+
onClick: y,
|
|
61
56
|
onBlur: r,
|
|
62
57
|
onMouseLeaveCapture: r,
|
|
58
|
+
"data-testid": "copyText",
|
|
63
59
|
children: /* @__PURE__ */ t(
|
|
64
60
|
"div",
|
|
65
61
|
{
|
|
66
62
|
className: a("adyen-pe-copy-text__icon", {
|
|
67
63
|
"adyen-pe-copy-text__icon--information": e === "Link"
|
|
68
64
|
}),
|
|
69
|
-
children: /* @__PURE__ */ t(
|
|
65
|
+
children: /* @__PURE__ */ t(k, { name: "copy", "data-testid": "copy-icon" })
|
|
70
66
|
}
|
|
71
67
|
)
|
|
72
68
|
}
|
|
@@ -76,5 +72,5 @@ const D = ({
|
|
|
76
72
|
);
|
|
77
73
|
};
|
|
78
74
|
export {
|
|
79
|
-
|
|
75
|
+
I as default
|
|
80
76
|
};
|
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useDataGridContext as
|
|
3
|
-
import { useRef as
|
|
4
|
-
import { isValidElement as
|
|
1
|
+
import { jsx as i } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
+
import { useDataGridContext as n } from "./hooks/useDataGridContext.js";
|
|
3
|
+
import { useRef as m, useEffect as d } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
4
|
+
import { isValidElement as f, cloneElement as u } from "../../../external/preact/dist/preact.module.js";
|
|
5
5
|
import c from "classnames";
|
|
6
|
-
|
|
7
|
-
function G({
|
|
6
|
+
function C({
|
|
8
7
|
children: t,
|
|
9
8
|
column: r,
|
|
10
9
|
position: a,
|
|
11
|
-
...
|
|
10
|
+
...o
|
|
12
11
|
}) {
|
|
13
|
-
const { registerCells:
|
|
12
|
+
const { registerCells: l } = n(), e = m(null);
|
|
14
13
|
return d(() => {
|
|
15
|
-
var
|
|
16
|
-
e.current &&
|
|
14
|
+
var s;
|
|
15
|
+
e.current && l({
|
|
17
16
|
column: r,
|
|
18
|
-
width: (
|
|
17
|
+
width: (s = e.current) == null ? void 0 : s.getBoundingClientRect().width
|
|
19
18
|
});
|
|
20
|
-
}, [r,
|
|
19
|
+
}, [r, l]), /* @__PURE__ */ i(
|
|
21
20
|
"div",
|
|
22
21
|
{
|
|
23
22
|
role: "cell",
|
|
24
23
|
className: c("adyen-pe-data-grid__cell", {
|
|
25
|
-
"adyen-pe-data-grid__cell--right": a ===
|
|
26
|
-
"adyen-pe-data-grid__cell--center": a ===
|
|
24
|
+
"adyen-pe-data-grid__cell--right": a === "right",
|
|
25
|
+
"adyen-pe-data-grid__cell--center": a === "center"
|
|
27
26
|
}),
|
|
28
|
-
...
|
|
29
|
-
children: t &&
|
|
27
|
+
...o,
|
|
28
|
+
children: t && f(t) ? u(t, {
|
|
30
29
|
...t == null ? void 0 : t.props,
|
|
31
30
|
ref: e,
|
|
32
31
|
style: { width: "min-content" }
|
|
@@ -35,5 +34,5 @@ function G({
|
|
|
35
34
|
);
|
|
36
35
|
}
|
|
37
36
|
export {
|
|
38
|
-
|
|
37
|
+
C as default
|
|
39
38
|
};
|