@adyen/adyen-platform-experience-web 1.0.3 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/da-DK-a148e492.cjs +2 -0
- package/dist/da-DK-a148e492.cjs.map +1 -0
- package/dist/de-DE-a39a50e8.cjs +2 -0
- package/dist/de-DE-a39a50e8.cjs.map +1 -0
- package/dist/es/components/external/PayoutDetails/components/PayoutData.js +41 -41
- package/dist/es/components/external/PayoutsOverview/components/PayoutsOverview/PayoutsOverview.js +93 -94
- package/dist/es/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.js +76 -69
- package/dist/es/components/external/ReportsOverview/ReportsOverviewElement.js +25 -0
- package/dist/es/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.js +112 -0
- package/dist/es/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.scss.js +4 -0
- package/dist/es/components/external/ReportsOverview/components/ReportsOverview/constants.js +5 -0
- package/dist/es/components/external/ReportsOverview/components/ReportsOverviewContainer/ReportsOverviewContainer.js +30 -0
- package/dist/es/components/external/ReportsOverview/components/ReportsOverviewContainer/constants.js +4 -0
- package/dist/es/components/external/ReportsOverview/components/ReportsTable/ReportsTable.js +149 -0
- package/dist/es/components/external/ReportsOverview/components/ReportsTable/ReportsTable.scss.js +4 -0
- package/dist/es/components/external/ReportsOverview/components/ReportsTable/constants.js +7 -0
- package/dist/es/components/external/TransactionDetails/components/TransactionData.js +67 -46
- package/dist/es/components/external/TransactionDetails/components/TransactionDataSkeleton.js +28 -17
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +13 -13
- package/dist/es/components/external/TransactionsOverview/components/Category/Category.js +19 -14
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +1 -1
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +10 -10
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +11 -11
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +1 -1
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +183 -164
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/PaymentMethodCell.js +31 -24
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +95 -89
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/constants.js +6 -5
- package/dist/es/components/hooks/useCustomColumnsData.js +29 -0
- package/dist/es/components/hooks/useFreezePeriod.js +18 -0
- package/dist/es/components/{external/TransactionsOverview/hooks → hooks}/useResponsiveViewport.js +2 -2
- package/dist/es/components/hooks/useTableColumns.js +46 -0
- package/dist/es/components/internal/Accordion/Accordion.js +15 -15
- package/dist/es/components/internal/Alert/Alert.js +62 -0
- package/dist/es/components/internal/Alert/Alert.scss.js +4 -0
- package/dist/es/components/internal/Alert/types.js +4 -0
- package/dist/es/components/internal/Button/DownloadButton/DownloadButton.js +81 -0
- package/dist/es/components/internal/Button/DownloadButton/DownloadButton.scss.js +4 -0
- package/dist/es/components/internal/Button/DownloadButton/useDownload.js +18 -0
- package/dist/es/components/internal/Card/Card.js +15 -15
- package/dist/es/components/internal/DataGrid/DataGrid.js +4 -4
- package/dist/es/components/internal/DataGrid/DataGridCell.js +12 -12
- package/dist/es/components/internal/DataGrid/components/Icon.js +17 -0
- package/dist/es/components/internal/DataGrid/components/SkeletonBody.js +7 -7
- package/dist/es/components/internal/DataGrid/components/TableCells.js +54 -37
- package/dist/es/components/internal/DataOverviewContainer/DataOverviewContainer.js +11 -11
- package/dist/es/components/internal/DataOverviewDetails/DataOverviewDetails.js +54 -54
- package/dist/es/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.js +45 -0
- package/dist/es/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.scss.js +4 -0
- package/dist/es/components/internal/DataOverviewDisplay/constants.js +30 -24
- package/dist/es/components/internal/DatePicker/DatePicker.js +10 -10
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +13 -13
- package/dist/es/components/internal/FilterBar/FilterBar.js +50 -42
- package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +7 -7
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +54 -50
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +1 -1
- package/dist/es/components/internal/FormFields/InputBase.js +25 -25
- package/dist/es/components/internal/FormFields/Select/BalanceAccountSelector/BalanceAccountSelector.js +1 -1
- package/dist/es/components/internal/FormFields/Select/Select.js +5 -5
- package/dist/es/components/internal/FormFields/Select/components/SelectList.js +5 -5
- package/dist/es/components/internal/Image/Image.js +6 -6
- package/dist/es/components/internal/Img/Img.js +4 -4
- package/dist/es/components/internal/Modal/Modal.js +6 -6
- package/dist/es/components/internal/Pagination/Pagination.js +17 -17
- package/dist/es/components/internal/Popover/Popover.js +11 -11
- package/dist/es/components/internal/SVGIcons/Download.js +21 -0
- package/dist/es/components/internal/SVGIcons/Warning.js +23 -0
- package/dist/es/components/internal/SVGIcons/WarningFilled.js +18 -0
- package/dist/es/components/internal/StructuredList/StructuredList.js +8 -8
- package/dist/es/components/internal/Tag/Tag.js +8 -8
- package/dist/es/components/internal/Tooltip/Tooltip.js +20 -20
- package/dist/es/components/internal/Typography/Typography.js +12 -12
- package/dist/es/components/utils/getLabel.js +6 -3
- package/dist/es/core/Http/http.js +34 -31
- package/dist/es/core/Http/utils.js +39 -30
- package/dist/es/core/Localization/Localization.js +74 -76
- package/dist/es/core/Localization/constants/localization.js +9 -6
- package/dist/es/core/Localization/localization-utils.js +11 -12
- package/dist/es/core/Localization/utils.js +45 -47
- package/dist/es/core/core.js +1 -1
- package/dist/es/index.js +14 -12
- package/dist/es/translations/da-DK.json.js +2 -218
- package/dist/es/translations/de-DE.json.js +2 -218
- package/dist/es/translations/en-US.json.js +2 -218
- package/dist/es/translations/es-ES.json.js +2 -218
- package/dist/es/translations/fr-FR.json.js +2 -218
- package/dist/es/translations/index.js +39 -45
- package/dist/es/translations/it-IT.json.js +2 -218
- package/dist/es/translations/nl-NL.json.js +2 -218
- package/dist/es/translations/no-NO.json.js +2 -218
- package/dist/es/translations/pt-BR.json.js +2 -218
- package/dist/es/translations/sv-SE.json.js +2 -218
- package/dist/es/utils/preact/className.js +3 -3
- package/dist/es-ES-153e5f15.cjs +2 -0
- package/dist/es-ES-153e5f15.cjs.map +1 -0
- package/dist/fr-FR-69b3df0d.cjs +2 -0
- package/dist/fr-FR-69b3df0d.cjs.map +1 -0
- package/dist/it-IT-efca230f.cjs +2 -0
- package/dist/it-IT-efca230f.cjs.map +1 -0
- package/dist/nl-NL-ffbb8184.cjs +2 -0
- package/dist/nl-NL-ffbb8184.cjs.map +1 -0
- package/dist/no-NO-eaf65f6f.cjs +2 -0
- package/dist/no-NO-eaf65f6f.cjs.map +1 -0
- package/dist/pt-BR-590ccc53.cjs +2 -0
- package/dist/pt-BR-590ccc53.cjs.map +1 -0
- package/dist/style.css +1 -1
- package/dist/sv-SE-18f4e86e.cjs +2 -0
- package/dist/sv-SE-18f4e86e.cjs.map +1 -0
- 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 +2 -2
- package/dist/types/components/external/PayoutsOverview/components/PayoutsTable/PayoutsTable.d.ts.map +1 -1
- package/dist/types/components/external/ReportsOverview/ReportsOverviewElement.d.ts +9 -0
- package/dist/types/components/external/ReportsOverview/ReportsOverviewElement.d.ts.map +1 -0
- package/dist/types/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.d.ts +8 -0
- package/dist/types/components/external/ReportsOverview/components/ReportsOverview/ReportsOverview.d.ts.map +1 -0
- package/dist/types/components/external/ReportsOverview/components/ReportsOverview/constants.d.ts +3 -0
- package/dist/types/components/external/ReportsOverview/components/ReportsOverview/constants.d.ts.map +1 -0
- package/dist/types/components/external/ReportsOverview/components/ReportsOverviewContainer/ReportsOverviewContainer.d.ts +4 -0
- package/dist/types/components/external/ReportsOverview/components/ReportsOverviewContainer/ReportsOverviewContainer.d.ts.map +1 -0
- package/dist/types/components/external/ReportsOverview/components/ReportsOverviewContainer/constants.d.ts +2 -0
- package/dist/types/components/external/ReportsOverview/components/ReportsOverviewContainer/constants.d.ts.map +1 -0
- package/dist/types/components/external/ReportsOverview/components/ReportsTable/ReportsTable.d.ts +15 -0
- package/dist/types/components/external/ReportsOverview/components/ReportsTable/ReportsTable.d.ts.map +1 -0
- package/dist/types/components/external/ReportsOverview/components/ReportsTable/constants.d.ts +5 -0
- package/dist/types/components/external/ReportsOverview/components/ReportsTable/constants.d.ts.map +1 -0
- package/dist/types/components/external/ReportsOverview/index.d.ts +2 -0
- package/dist/types/components/external/ReportsOverview/index.d.ts.map +1 -0
- package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts +20 -2
- package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionDataSkeleton.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/types.d.ts +5 -1
- package/dist/types/components/external/TransactionDetails/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/Category/Category.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/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/PaymentMethodCell.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts +3 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/constants.d.ts +1 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/constants.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts +5 -0
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts.map +1 -1
- package/dist/types/components/external/index.d.ts +1 -0
- package/dist/types/components/external/index.d.ts.map +1 -1
- package/dist/types/components/hooks/useCustomColumnsData.d.ts +13 -0
- package/dist/types/components/hooks/useCustomColumnsData.d.ts.map +1 -0
- package/dist/types/components/hooks/useFreezePeriod.d.ts +6 -0
- package/dist/types/components/hooks/useFreezePeriod.d.ts.map +1 -0
- package/dist/types/components/{external/TransactionsOverview/hooks → hooks}/useResponsiveViewport.d.ts +1 -1
- package/dist/types/components/hooks/useResponsiveViewport.d.ts.map +1 -0
- package/dist/types/components/hooks/useTableColumns.d.ts +20 -0
- package/dist/types/components/hooks/useTableColumns.d.ts.map +1 -0
- package/dist/types/components/internal/Alert/Alert.d.ts +5 -0
- package/dist/types/components/internal/Alert/Alert.d.ts.map +1 -0
- package/dist/types/components/internal/Alert/types.d.ts +17 -0
- package/dist/types/components/internal/Alert/types.d.ts.map +1 -0
- package/dist/types/components/internal/Button/DownloadButton/DownloadButton.d.ts +16 -0
- package/dist/types/components/internal/Button/DownloadButton/DownloadButton.d.ts.map +1 -0
- package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts +143 -0
- package/dist/types/components/internal/Button/DownloadButton/useDownload.d.ts.map +1 -0
- package/dist/types/components/internal/DataGrid/DataGrid.d.ts +2 -5
- package/dist/types/components/internal/DataGrid/DataGrid.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/Icon.d.ts +7 -0
- package/dist/types/components/internal/DataGrid/components/Icon.d.ts.map +1 -0
- package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/types.d.ts +4 -3
- package/dist/types/components/internal/DataGrid/types.d.ts.map +1 -1
- package/dist/types/components/internal/DataOverviewContainer/DataOverviewContainer.d.ts +1 -1
- package/dist/types/components/internal/DataOverviewContainer/DataOverviewContainer.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 +3 -2
- package/dist/types/components/internal/DataOverviewDetails/types.d.ts.map +1 -1
- package/dist/types/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.d.ts +13 -0
- package/dist/types/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.d.ts.map +1 -0
- 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/DataOverviewDisplay/constants.d.ts +5 -2
- package/dist/types/components/internal/DataOverviewDisplay/constants.d.ts.map +1 -1
- package/dist/types/components/internal/DataOverviewError/DataOverviewError.d.ts +1 -1
- package/dist/types/components/internal/DataOverviewError/DataOverviewError.d.ts.map +1 -1
- package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts +1 -1
- package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts.map +1 -1
- package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts +1 -1
- package/dist/types/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/FilterBar.d.ts +9 -2
- package/dist/types/components/internal/FilterBar/FilterBar.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/AmountFilter/RangeSelection.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/index.d.ts +1 -0
- package/dist/types/components/internal/FilterBar/index.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/types.d.ts +11 -1
- package/dist/types/components/internal/FilterBar/types.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/hooks/useSelect.d.ts +1 -1
- package/dist/types/components/internal/Pagination/Pagination.d.ts.map +1 -1
- package/dist/types/components/internal/SVGIcons/Download.d.ts +4 -0
- package/dist/types/components/internal/SVGIcons/Download.d.ts.map +1 -0
- package/dist/types/components/internal/SVGIcons/Warning.d.ts +4 -0
- package/dist/types/components/internal/SVGIcons/Warning.d.ts.map +1 -0
- package/dist/types/components/internal/SVGIcons/WarningFilled.d.ts +4 -0
- package/dist/types/components/internal/SVGIcons/WarningFilled.d.ts.map +1 -0
- package/dist/types/components/internal/StructuredList/types.d.ts +1 -1
- package/dist/types/components/internal/StructuredList/types.d.ts.map +1 -1
- package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts +2 -2
- package/dist/types/components/internal/StructuredList/useStructuredListItem.d.ts.map +1 -1
- package/dist/types/components/types.d.ts +33 -1
- package/dist/types/components/types.d.ts.map +1 -1
- package/dist/types/components/utils/getCommonErrorCode.d.ts +1 -1
- package/dist/types/components/utils/getCommonErrorCode.d.ts.map +1 -1
- package/dist/types/components/utils/getErrorMessage.d.ts +1 -1
- package/dist/types/components/utils/getErrorMessage.d.ts.map +1 -1
- package/dist/types/components/utils/getLabel.d.ts +4 -1
- package/dist/types/components/utils/getLabel.d.ts.map +1 -1
- package/dist/types/core/Auth/context.d.ts +8 -6
- package/dist/types/core/Auth/context.d.ts.map +1 -1
- package/dist/types/core/Auth/session/AuthSession.d.ts +8 -6
- package/dist/types/core/Auth/session/AuthSession.d.ts.map +1 -1
- package/dist/types/core/Auth/session/AuthSetupContext.d.ts +8 -6
- package/dist/types/core/Auth/session/AuthSetupContext.d.ts.map +1 -1
- package/dist/types/core/Http/http.d.ts.map +1 -1
- package/dist/types/core/Http/utils.d.ts +2 -0
- package/dist/types/core/Http/utils.d.ts.map +1 -1
- package/dist/types/core/Localization/Localization.d.ts +8 -10
- package/dist/types/core/Localization/Localization.d.ts.map +1 -1
- package/dist/types/core/Localization/constants/localization.d.ts +5 -2
- package/dist/types/core/Localization/constants/localization.d.ts.map +1 -1
- package/dist/types/core/Localization/localization-utils.d.ts +4 -4
- package/dist/types/core/Localization/localization-utils.d.ts.map +1 -1
- package/dist/types/core/Localization/types.d.ts +0 -19
- package/dist/types/core/Localization/types.d.ts.map +1 -1
- package/dist/types/core/Localization/utils.d.ts +7 -271
- package/dist/types/core/Localization/utils.d.ts.map +1 -1
- package/dist/types/core/core.d.ts +2 -3
- package/dist/types/core/core.d.ts.map +1 -1
- package/dist/types/core/types.d.ts +5 -4
- package/dist/types/core/types.d.ts.map +1 -1
- package/dist/types/hooks/useFetch/useFetch.d.ts +1 -1
- package/dist/types/hooks/useFetch/useFetch.d.ts.map +1 -1
- package/dist/types/hooks/useModalDetails/types.d.ts +1 -1
- package/dist/types/hooks/useModalDetails/types.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/translations/index.d.ts +44 -2529
- package/dist/types/translations/index.d.ts.map +1 -1
- package/dist/types/types/api/models/reports.d.ts +1 -1
- package/dist/types/types/api/models/reports.d.ts.map +1 -1
- package/dist/types/types/api/resources/ReportsResource.d.ts +18 -19
- package/dist/types/types/api/resources/ReportsResource.d.ts.map +1 -1
- package/dist/types/utils/types.d.ts +3 -0
- package/dist/types/utils/types.d.ts.map +1 -1
- package/package.json +7 -5
- package/dist/es/core/Localization/constants/locale.js +0 -7
- package/dist/types/components/external/TransactionsOverview/hooks/useResponsiveViewport.d.ts.map +0 -1
- package/dist/types/core/Localization/constants/locale.d.ts +0 -139
- package/dist/types/core/Localization/constants/locale.d.ts.map +0 -1
|
@@ -4,9 +4,9 @@ import "./DataGrid.scss.js";
|
|
|
4
4
|
import { TableBody as w } from "./components/TableBody.js";
|
|
5
5
|
import { InteractiveBody as C } from "./components/InteractiveBody.js";
|
|
6
6
|
import _ from "./components/SkeletonBody.js";
|
|
7
|
-
import { ErrorMessageDisplay as
|
|
7
|
+
import { ErrorMessageDisplay as T } from "../ErrorMessageDisplay/ErrorMessageDisplay.js";
|
|
8
8
|
import { useMemo as n } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
9
|
-
import
|
|
9
|
+
import N from "../../../images/no-data-female.svg.js";
|
|
10
10
|
import { DataGridProvider as k } from "./utils/DataGridProvider.js";
|
|
11
11
|
import { useDataGridContext as x } from "./hooks/useDataGridContext.js";
|
|
12
12
|
import { TableHeaderCell as B } from "./components/TableHeaderCell.js";
|
|
@@ -80,10 +80,10 @@ function R({
|
|
|
80
80
|
columns: o,
|
|
81
81
|
emptyBody: l
|
|
82
82
|
})]
|
|
83
|
-
}), u && (l && !a.error ? d(
|
|
83
|
+
}), u && (l && !a.error ? d(T, {
|
|
84
84
|
title: ((r = a.emptyTableMessage) == null ? void 0 : r.title) ?? "thereAreNoResults",
|
|
85
85
|
message: (m = a.emptyTableMessage) == null ? void 0 : m.message,
|
|
86
|
-
imageDesktop:
|
|
86
|
+
imageDesktop: N,
|
|
87
87
|
centered: !0
|
|
88
88
|
}) : a.error && e ? e() : null)]
|
|
89
89
|
}), g]
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { useDataGridContext as
|
|
2
|
-
import { useRef as
|
|
1
|
+
import { useDataGridContext as n } from "./hooks/useDataGridContext.js";
|
|
2
|
+
import { useRef as m, useEffect as f } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
3
3
|
import { isValidElement as d, cloneElement as p } from "../../../external/preact/dist/preact.module.js";
|
|
4
4
|
import u from "classnames";
|
|
5
|
-
import { CellTextPosition as
|
|
5
|
+
import { CellTextPosition as s } from "./types.js";
|
|
6
6
|
import { jsx as c } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
7
7
|
function G({
|
|
8
8
|
children: t,
|
|
9
|
-
column:
|
|
10
|
-
position:
|
|
9
|
+
column: r,
|
|
10
|
+
position: a,
|
|
11
11
|
...i
|
|
12
12
|
}) {
|
|
13
13
|
const {
|
|
14
|
-
registerCells:
|
|
15
|
-
} =
|
|
14
|
+
registerCells: o
|
|
15
|
+
} = n(), e = m(null);
|
|
16
16
|
return f(() => {
|
|
17
17
|
var l;
|
|
18
|
-
e.current &&
|
|
19
|
-
column:
|
|
18
|
+
e.current && o({
|
|
19
|
+
column: r,
|
|
20
20
|
width: (l = e.current) == null ? void 0 : l.getBoundingClientRect().width
|
|
21
21
|
});
|
|
22
|
-
}, [
|
|
22
|
+
}, [r, o]), c("div", {
|
|
23
23
|
role: "cell",
|
|
24
24
|
className: u("adyen-pe-data-grid__cell", {
|
|
25
|
-
"adyen-pe-data-grid__cell--right":
|
|
26
|
-
"adyen-pe-data-grid__cell--center":
|
|
25
|
+
"adyen-pe-data-grid__cell--right": a === s.RIGHT,
|
|
26
|
+
"adyen-pe-data-grid__cell--center": a === s.CENTER
|
|
27
27
|
}),
|
|
28
28
|
...i,
|
|
29
29
|
children: t && d(t) ? p(t, {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import r from "classnames";
|
|
2
|
+
import { jsx as a } from "../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
3
|
+
const e = ({
|
|
4
|
+
className: c,
|
|
5
|
+
alt: n,
|
|
6
|
+
url: o
|
|
7
|
+
}) => a("div", {
|
|
8
|
+
className: "adyen-pe-data-grid__icon-container",
|
|
9
|
+
children: a("img", {
|
|
10
|
+
className: r("adyen-pe-data-grid__icon", c),
|
|
11
|
+
alt: n,
|
|
12
|
+
src: o
|
|
13
|
+
})
|
|
14
|
+
}), t = e;
|
|
15
|
+
export {
|
|
16
|
+
t as default
|
|
17
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import s from "classnames";
|
|
2
2
|
import "../DataGrid.scss.js";
|
|
3
3
|
import { jsx as a } from "../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
4
4
|
import { Fragment as m } from "../../../../external/preact/dist/preact.module.js";
|
|
@@ -7,23 +7,23 @@ const _ = ({
|
|
|
7
7
|
loading: t,
|
|
8
8
|
emptyMessageDisplay: d
|
|
9
9
|
}) => {
|
|
10
|
-
const
|
|
10
|
+
const o = Array.from({
|
|
11
11
|
length: 10
|
|
12
|
-
}, (n, e) => e),
|
|
12
|
+
}, (n, e) => e), l = Array.from({
|
|
13
13
|
length: r
|
|
14
14
|
}, (n, e) => e);
|
|
15
15
|
return a(m, {
|
|
16
|
-
children: [
|
|
16
|
+
children: [o.map((n, e) => a("div", {
|
|
17
17
|
className: "adyen-pe-data-grid__row",
|
|
18
|
-
children:
|
|
18
|
+
children: l.map((i, c) => a("div", {
|
|
19
19
|
className: "adyen-pe-data-grid__cell adyen-pe-data-grid__skeleton-cell",
|
|
20
20
|
children: a("span", {
|
|
21
|
-
className:
|
|
21
|
+
className: s({
|
|
22
22
|
"adyen-pe-data-grid__skeleton-cell-content adyen-pe-data-grid__skeleton-cell-content--loading": t,
|
|
23
23
|
"adyen-pe-data-grid__empty-cell": !t
|
|
24
24
|
})
|
|
25
25
|
})
|
|
26
|
-
}, `adyen-pe-data-grid-skeleton-cell-${
|
|
26
|
+
}, `adyen-pe-data-grid-skeleton-cell-${c}`))
|
|
27
27
|
}, `adyen-pe-data-grid-skeleton-row-${e}`)), !t && d && d]
|
|
28
28
|
});
|
|
29
29
|
}, f = _;
|
|
@@ -1,42 +1,59 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import o from "../DataGridCell.js";
|
|
2
|
+
import u from "./Icon.js";
|
|
3
|
+
import { jsx as a } from "../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
4
|
+
import { Fragment as v } from "../../../../external/preact/dist/preact.module.js";
|
|
5
|
+
const b = (n) => !!n && typeof n == "object" && "value" in n, m = ({
|
|
6
|
+
columns: n,
|
|
7
|
+
customCells: d,
|
|
8
|
+
item: l,
|
|
9
|
+
rowIndex: c
|
|
10
|
+
}) => a(v, {
|
|
11
|
+
children: n.map(({
|
|
11
12
|
key: r,
|
|
12
|
-
position:
|
|
13
|
-
}) =>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
13
|
+
position: t
|
|
14
|
+
}) => {
|
|
15
|
+
if (d != null && d[r])
|
|
16
|
+
return a(o, {
|
|
17
|
+
"aria-labelledby": String(r),
|
|
18
|
+
column: r,
|
|
19
|
+
position: t,
|
|
20
|
+
children: a("div", {
|
|
21
|
+
style: {
|
|
22
|
+
width: "min-content"
|
|
23
|
+
},
|
|
24
|
+
children: (
|
|
25
|
+
// TODO create safeguard to remove "as any" assertion
|
|
26
|
+
d[r]({
|
|
27
|
+
key: r,
|
|
28
|
+
value: l[r],
|
|
29
|
+
item: l,
|
|
30
|
+
rowIndex: c
|
|
31
|
+
})
|
|
32
|
+
)
|
|
28
33
|
})
|
|
29
|
-
)
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
}, r);
|
|
35
|
+
const {
|
|
36
|
+
icon: i,
|
|
37
|
+
value: e
|
|
38
|
+
} = b(l[r]) ? l[r] : {
|
|
39
|
+
value: l[r],
|
|
40
|
+
icon: void 0
|
|
41
|
+
};
|
|
42
|
+
return a(o, {
|
|
43
|
+
"aria-labelledby": String(r),
|
|
44
|
+
column: r,
|
|
45
|
+
position: t,
|
|
46
|
+
children: a("div", {
|
|
47
|
+
className: "adyen-pe-data-grid__cell-value",
|
|
48
|
+
children: [(i == null ? void 0 : i.url) && a(u, {
|
|
49
|
+
...i
|
|
50
|
+
}), a("div", {
|
|
51
|
+
children: e
|
|
52
|
+
})]
|
|
53
|
+
})
|
|
54
|
+
}, r);
|
|
55
|
+
})
|
|
39
56
|
});
|
|
40
57
|
export {
|
|
41
|
-
|
|
58
|
+
m as TableCells
|
|
42
59
|
};
|
|
@@ -5,22 +5,22 @@ import { getErrorMessage as g } from "../../utils/getErrorMessage.js";
|
|
|
5
5
|
import { jsx as e } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
6
6
|
import { Fragment as h } from "../../../external/preact/dist/preact.module.js";
|
|
7
7
|
import { useAuthContext as f } from "../../../core/Auth/context.js";
|
|
8
|
-
function
|
|
8
|
+
function x({
|
|
9
9
|
balanceAccountsError: r,
|
|
10
|
-
children:
|
|
10
|
+
children: a,
|
|
11
11
|
className: n,
|
|
12
12
|
errorMessage: o,
|
|
13
|
-
isBalanceAccountIdWrong:
|
|
14
|
-
onContactSupport:
|
|
13
|
+
isBalanceAccountIdWrong: i,
|
|
14
|
+
onContactSupport: s
|
|
15
15
|
}) {
|
|
16
16
|
const {
|
|
17
|
-
hasError:
|
|
17
|
+
hasError: m
|
|
18
18
|
} = f();
|
|
19
19
|
return e("div", {
|
|
20
20
|
className: c(n, {
|
|
21
|
-
[u]:
|
|
21
|
+
[u]: m
|
|
22
22
|
}),
|
|
23
|
-
children:
|
|
23
|
+
children: m ? e(t, {
|
|
24
24
|
withImage: !0,
|
|
25
25
|
centered: !0,
|
|
26
26
|
title: "somethingWentWrong",
|
|
@@ -29,17 +29,17 @@ function R({
|
|
|
29
29
|
}) : r ? e(t, {
|
|
30
30
|
withImage: !0,
|
|
31
31
|
centered: !0,
|
|
32
|
-
...g(r, "weCouldNotLoadYourBalanceAccounts",
|
|
33
|
-
}) :
|
|
32
|
+
...g(r, "weCouldNotLoadYourBalanceAccounts", s)
|
|
33
|
+
}) : i ? e(t, {
|
|
34
34
|
withImage: !0,
|
|
35
35
|
centered: !0,
|
|
36
36
|
title: "somethingWentWrong",
|
|
37
37
|
message: [o, "theSelectedBalanceAccountIsIncorrect"]
|
|
38
38
|
}) : e(h, {
|
|
39
|
-
children:
|
|
39
|
+
children: a
|
|
40
40
|
})
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
export {
|
|
44
|
-
|
|
44
|
+
x as default
|
|
45
45
|
};
|
|
@@ -1,88 +1,88 @@
|
|
|
1
1
|
import "./DataOverviewDetails.scss.js";
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import
|
|
4
|
-
import { useFetch as
|
|
5
|
-
import { PayoutData as
|
|
6
|
-
import { TransactionData as
|
|
7
|
-
import
|
|
8
|
-
import { getErrorMessage as
|
|
9
|
-
import { ErrorMessageDisplay as
|
|
10
|
-
import
|
|
11
|
-
import { TypographyVariant as
|
|
2
|
+
import { useMemo as o } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
3
|
+
import b from "../../../core/Context/useCoreContext.js";
|
|
4
|
+
import { useFetch as E } from "../../../hooks/useFetch/useFetch.js";
|
|
5
|
+
import { PayoutData as P } from "../../external/PayoutDetails/components/PayoutData.js";
|
|
6
|
+
import { TransactionData as C } from "../../external/TransactionDetails/components/TransactionData.js";
|
|
7
|
+
import w from "../../hooks/useBalanceAccounts.js";
|
|
8
|
+
import { getErrorMessage as x } from "../../utils/getErrorMessage.js";
|
|
9
|
+
import { ErrorMessageDisplay as N } from "../ErrorMessageDisplay/ErrorMessageDisplay.js";
|
|
10
|
+
import Y from "../Typography/Typography.js";
|
|
11
|
+
import { TypographyVariant as B } from "../Typography/types.js";
|
|
12
12
|
import { jsx as e } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import { EMPTY_OBJECT as _ } from "../../../utils/value/constants.js";
|
|
13
|
+
import { useAuthContext as _ } from "../../../core/Auth/context.js";
|
|
14
|
+
import { EMPTY_OBJECT as s } from "../../../utils/value/constants.js";
|
|
16
15
|
const q = {
|
|
17
16
|
transaction: "getTransaction",
|
|
18
17
|
payout: "getPayout"
|
|
19
|
-
},
|
|
18
|
+
}, M = {
|
|
20
19
|
transaction: "transactionDetails",
|
|
21
20
|
payout: "payoutDetails"
|
|
22
|
-
},
|
|
23
|
-
function
|
|
24
|
-
var
|
|
25
|
-
const a =
|
|
26
|
-
i18n:
|
|
27
|
-
} =
|
|
28
|
-
data:
|
|
29
|
-
error:
|
|
30
|
-
isFetching:
|
|
31
|
-
} =
|
|
21
|
+
}, d = (t) => !("data" in t);
|
|
22
|
+
function R(t) {
|
|
23
|
+
var f, D;
|
|
24
|
+
const a = o(() => d(t) ? null : t.data, [t]), c = o(() => d(t) ? t.id : null, [t]), {
|
|
25
|
+
i18n: h
|
|
26
|
+
} = b(), l = _().endpoints[q[t.type]], T = o(() => M[t.type], [t.type]), {
|
|
27
|
+
data: r,
|
|
28
|
+
error: i,
|
|
29
|
+
isFetching: y
|
|
30
|
+
} = E(o(() => ({
|
|
32
31
|
fetchOptions: {
|
|
33
|
-
enabled: !!
|
|
32
|
+
enabled: !!c && !!l
|
|
34
33
|
},
|
|
35
34
|
queryFn: async () => {
|
|
36
|
-
const
|
|
35
|
+
const I = t.type === "transaction" ? {
|
|
37
36
|
path: {
|
|
38
|
-
transactionId:
|
|
37
|
+
transactionId: c
|
|
39
38
|
}
|
|
40
39
|
} : {
|
|
41
40
|
query: {
|
|
42
|
-
balanceAccountId:
|
|
41
|
+
balanceAccountId: c,
|
|
43
42
|
createdAt: t.date
|
|
44
43
|
}
|
|
45
44
|
};
|
|
46
|
-
return
|
|
47
|
-
...
|
|
45
|
+
return l(s, {
|
|
46
|
+
...I
|
|
48
47
|
});
|
|
49
48
|
}
|
|
50
|
-
}), [
|
|
49
|
+
}), [c, l, t])), v = t.type === "payout" ? t.balanceAccountDescription : r == null ? void 0 : r.balanceAccountId, A = t.type === "payout" ? t == null ? void 0 : t.balanceAccountDescription : (f = a == null ? void 0 : a.balanceAccount) == null ? void 0 : f.description, {
|
|
51
50
|
balanceAccounts: n
|
|
52
|
-
} =
|
|
53
|
-
if (
|
|
54
|
-
return
|
|
55
|
-
}, [
|
|
56
|
-
return
|
|
51
|
+
} = w(v, !A), m = o(() => {
|
|
52
|
+
if (i)
|
|
53
|
+
return x(i, "weCouldNotLoadYourTransactions", t.onContactSupport);
|
|
54
|
+
}, [i, t.onContactSupport]), g = d(t) && t.type === "transaction" ? t.extraDetails : s, u = a ?? r;
|
|
55
|
+
return e("div", {
|
|
57
56
|
className: "adyen-pe-overview-details",
|
|
58
57
|
children: [!t.hideTitle && e("div", {
|
|
59
58
|
className: "adyen-pe-overview-details--title",
|
|
60
|
-
children: e(
|
|
61
|
-
variant:
|
|
59
|
+
children: e(Y, {
|
|
60
|
+
variant: B.TITLE,
|
|
62
61
|
medium: !0,
|
|
63
|
-
children:
|
|
62
|
+
children: h.get(T)
|
|
64
63
|
})
|
|
65
|
-
}),
|
|
64
|
+
}), i && m && e("div", {
|
|
66
65
|
className: "adyen-pe-overview-details--error-container",
|
|
67
|
-
children: e(
|
|
68
|
-
centered: !0,
|
|
66
|
+
children: e(N, {
|
|
69
67
|
withImage: !0,
|
|
70
|
-
...
|
|
68
|
+
...m
|
|
71
69
|
})
|
|
72
|
-
}), t.type === "transaction" &&
|
|
73
|
-
transaction: {
|
|
74
|
-
...u,
|
|
75
|
-
balanceAccount: (a == null ? void 0 : a.balanceAccount) || (n == null ? void 0 : n[0])
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
70
|
+
}), t.type === "transaction" && e(C, {
|
|
71
|
+
transaction: u ? {
|
|
72
|
+
...u || s,
|
|
73
|
+
balanceAccount: (a == null ? void 0 : a.balanceAccount) || (n == null ? void 0 : n[0]),
|
|
74
|
+
...g
|
|
75
|
+
} : void 0,
|
|
76
|
+
error: !!(i && m),
|
|
77
|
+
isFetching: y
|
|
78
|
+
}), t.type === "payout" && u && e(P, {
|
|
79
|
+
balanceAccountId: c,
|
|
80
80
|
payout: u,
|
|
81
|
-
balanceAccountDescription: (t == null ? void 0 : t.balanceAccountDescription) || ((
|
|
82
|
-
isFetching:
|
|
81
|
+
balanceAccountDescription: (t == null ? void 0 : t.balanceAccountDescription) || ((D = n == null ? void 0 : n[0]) == null ? void 0 : D.description),
|
|
82
|
+
isFetching: y
|
|
83
83
|
})]
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
export {
|
|
87
|
-
|
|
87
|
+
R as default
|
|
88
88
|
};
|
package/dist/es/components/internal/DataOverviewDisplay/DataOverviewHeader/DataOverviewHeader.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import a from "../../Typography/Typography.js";
|
|
2
|
+
import m from "../../../../core/Context/useCoreContext.js";
|
|
3
|
+
import { TypographyElement as d, TypographyVariant as c } from "../../Typography/types.js";
|
|
4
|
+
import "./DataOverviewHeader.scss.js";
|
|
5
|
+
import { jsx as r } from "../../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
6
|
+
const h = "adyen-pe-data-overview-header", u = ({
|
|
7
|
+
baseClassName: e = h,
|
|
8
|
+
children: t,
|
|
9
|
+
hideTitle: p,
|
|
10
|
+
titleKey: i,
|
|
11
|
+
descriptionKey: o
|
|
12
|
+
}) => {
|
|
13
|
+
const {
|
|
14
|
+
i18n: n
|
|
15
|
+
} = m();
|
|
16
|
+
return r("header", {
|
|
17
|
+
className: e,
|
|
18
|
+
children: [r("div", {
|
|
19
|
+
className: `${e}__headings`,
|
|
20
|
+
children: [!p && i && r("div", {
|
|
21
|
+
className: `${e}__title`,
|
|
22
|
+
children: r(a, {
|
|
23
|
+
el: d.SPAN,
|
|
24
|
+
variant: c.TITLE,
|
|
25
|
+
medium: !0,
|
|
26
|
+
children: n.get(i)
|
|
27
|
+
})
|
|
28
|
+
}), o && r("p", {
|
|
29
|
+
className: `${e}__description`,
|
|
30
|
+
children: r(a, {
|
|
31
|
+
el: d.SPAN,
|
|
32
|
+
variant: c.BODY,
|
|
33
|
+
children: n.get(o)
|
|
34
|
+
})
|
|
35
|
+
})]
|
|
36
|
+
}), t && r("div", {
|
|
37
|
+
className: `${e}__controls`,
|
|
38
|
+
children: t
|
|
39
|
+
})]
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
h as BASE_CLASS,
|
|
44
|
+
u as DataOverviewHeader
|
|
45
|
+
};
|
|
@@ -1,30 +1,36 @@
|
|
|
1
|
-
const
|
|
2
|
-
month:
|
|
3
|
-
day:
|
|
4
|
-
year:
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
const _ = "2-digit", A = "long", o = "numeric", t = "short", s = "shortOffset", T = {
|
|
2
|
+
month: A,
|
|
3
|
+
day: o,
|
|
4
|
+
year: o
|
|
5
|
+
}, O = {
|
|
6
|
+
hour: _,
|
|
7
|
+
minute: _
|
|
8
|
+
}, E = {
|
|
9
|
+
...T,
|
|
10
|
+
...O,
|
|
11
|
+
month: t,
|
|
7
12
|
hour12: !1
|
|
8
13
|
}, n = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
month:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
weekday:
|
|
21
|
-
|
|
22
|
-
day: "numeric",
|
|
23
|
-
year: "numeric"
|
|
14
|
+
...E,
|
|
15
|
+
year: void 0
|
|
16
|
+
}, R = T, M = n, S = {
|
|
17
|
+
...T,
|
|
18
|
+
weekday: A
|
|
19
|
+
}, c = {
|
|
20
|
+
...T,
|
|
21
|
+
month: t
|
|
22
|
+
}, e = E, I = n, D = {
|
|
23
|
+
...T,
|
|
24
|
+
...O,
|
|
25
|
+
weekday: A,
|
|
26
|
+
timeZoneName: s
|
|
24
27
|
};
|
|
25
28
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
29
|
+
R as DATE_FORMAT_PAYOUTS,
|
|
30
|
+
M as DATE_FORMAT_PAYOUTS_MOBILE,
|
|
31
|
+
S as DATE_FORMAT_PAYOUT_DETAILS,
|
|
32
|
+
c as DATE_FORMAT_REPORTS,
|
|
28
33
|
e as DATE_FORMAT_TRANSACTIONS,
|
|
29
|
-
|
|
34
|
+
I as DATE_FORMAT_TRANSACTIONS_MOBILE,
|
|
35
|
+
D as DATE_FORMAT_TRANSACTION_DETAILS
|
|
30
36
|
};
|
|
@@ -3,13 +3,13 @@ import { forwardRef as p } from "../../../external/preact/compat/dist/compat.mod
|
|
|
3
3
|
import { useState as y, useMemo as r, useCallback as N } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
4
4
|
import O from "../../../core/Context/useCoreContext.js";
|
|
5
5
|
import P from "../Calendar/hooks/useTimezone.js";
|
|
6
|
-
import { DEFAULT_FIRST_WEEK_DAY as
|
|
7
|
-
import
|
|
6
|
+
import { DEFAULT_FIRST_WEEK_DAY as x } from "../Calendar/calendar/timerange/presets/shared/offsetWeek.js";
|
|
7
|
+
import D from "../Calendar/hooks/useCalendarControlsRendering.js";
|
|
8
8
|
import "./DatePicker.scss.js";
|
|
9
9
|
import { jsx as n } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
10
|
+
import I from "../../../hooks/useReflex/useReflex.js";
|
|
11
|
+
import M from "./components/TimeRangeSelector/TimeRangeSelector.js";
|
|
12
|
+
import v from "../Calendar/Calendar.js";
|
|
13
13
|
import u from "../Calendar/calendar/facade/index.js";
|
|
14
14
|
import { boolOrTrue as E } from "../../../utils/value/bool.js";
|
|
15
15
|
import { EMPTY_OBJECT as S } from "../../../utils/value/constants.js";
|
|
@@ -17,7 +17,7 @@ import { noop as A } from "../../../utils/common.js";
|
|
|
17
17
|
const b = p((e, g) => {
|
|
18
18
|
const {
|
|
19
19
|
i18n: i
|
|
20
|
-
} = O(), [T, k] =
|
|
20
|
+
} = O(), [T, k] = D(e.renderControl), [C, a] = y(performance.now()), t = r(() => E(e.showTimezoneInfo), [e.showTimezoneInfo]), {
|
|
21
21
|
clockTime: m,
|
|
22
22
|
GMTOffset: c
|
|
23
23
|
} = P({
|
|
@@ -30,7 +30,7 @@ const b = p((e, g) => {
|
|
|
30
30
|
offset: c,
|
|
31
31
|
time: m
|
|
32
32
|
}
|
|
33
|
-
} : S, [c, m, t]), o =
|
|
33
|
+
} : S, [c, m, t]), o = I(A, g), R = N(() => {
|
|
34
34
|
var l, s, d, f, h;
|
|
35
35
|
a(performance.now()), (l = o.current) != null && l.from && ((s = o.current) != null && s.to) && ((h = e.onHighlight) == null || h.call(e, +((d = o.current) == null ? void 0 : d.from), +((f = o.current) == null ? void 0 : f.to)));
|
|
36
36
|
}, [a, e.onHighlight]);
|
|
@@ -38,7 +38,7 @@ const b = p((e, g) => {
|
|
|
38
38
|
className: z,
|
|
39
39
|
children: [n("div", {
|
|
40
40
|
className: "adyen-pe-datepicker__selector-container",
|
|
41
|
-
children: n(
|
|
41
|
+
children: n(M, {
|
|
42
42
|
now: e.now,
|
|
43
43
|
calendarRef: o,
|
|
44
44
|
onTimeRangeSelected: e.onPresetOptionSelected,
|
|
@@ -52,10 +52,10 @@ const b = p((e, g) => {
|
|
|
52
52
|
role: "group",
|
|
53
53
|
className: "adyen-pe-datepicker__controls",
|
|
54
54
|
"aria-label": i.get("calendar.controls")
|
|
55
|
-
}), n(
|
|
55
|
+
}), n(v, {
|
|
56
56
|
...e,
|
|
57
57
|
ref: o,
|
|
58
|
-
firstWeekDay:
|
|
58
|
+
firstWeekDay: x,
|
|
59
59
|
dynamicBlockRows: !0,
|
|
60
60
|
onlyCellsWithin: !0,
|
|
61
61
|
controls: e.controls ?? u.controls.MINIMAL,
|