@adyen/adyen-platform-experience-web 1.0.0-beta → 1.0.0-beta.2
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/ModalContent-88fdb6f4.js +2 -0
- package/dist/ModalContent-88fdb6f4.js.map +1 -0
- package/dist/cjs/index.js +1 -35
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/components/external/BaseElement.js +48 -88
- package/dist/es/components/external/EventEmitter.js +17 -28
- package/dist/es/components/external/TransactionDetails/TransactionDetails.js +15 -20
- package/dist/es/components/external/TransactionDetails/components/TransactionData.js +41 -42
- package/dist/es/components/external/TransactionDetails/components/TransactionDataSkeleton.js +13 -13
- package/dist/es/components/external/TransactionDetails/components/TransactionDetails.js +28 -39
- package/dist/es/components/external/TransactionDetails/components/TransactionDetails.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/TransactionsOverviewElement.js +25 -31
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.js +7 -10
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/AmountSkeleton/constants.js +4 -6
- package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/BalanceAccountSelector.js +21 -22
- package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/BalanceAccountSelector.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.js +13 -21
- package/dist/es/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.js +22 -25
- package/dist/es/components/external/TransactionsOverview/components/Balances/Balances.js +36 -47
- package/dist/es/components/external/TransactionsOverview/components/Balances/constants.js +2 -2
- package/dist/es/components/external/TransactionsOverview/components/Category/Category.js +8 -9
- package/dist/es/components/external/TransactionsOverview/components/ModalContent.js +9 -9
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.js +23 -25
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.js +13 -16
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/useMultiSelectionFilter.js +16 -26
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.js +7 -9
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.js +42 -50
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.js +18 -19
- package/dist/es/components/external/TransactionsOverview/components/SummaryItem/constants.js +8 -14
- package/dist/es/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.js +16 -16
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.js +37 -42
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.js +36 -39
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.js +48 -60
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionTotals/constants.js +3 -4
- package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.js +62 -73
- package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsDisplay/constants.js +3 -4
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.js +133 -152
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverview/constants.js +4 -6
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.js +32 -40
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/TransactionsOverviewContainer.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewContainer/constants.js +3 -4
- package/dist/es/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.js +49 -53
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionTable.scss.js +4 -0
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.js +75 -84
- package/dist/es/components/external/TransactionsOverview/components/TransactionsTable/constants.js +6 -10
- package/dist/es/components/external/TransactionsOverview/components/utils.js +6 -12
- package/dist/es/components/external/TransactionsOverview/hooks/useDefaultTransactionsOverviewFilterParams.js +21 -39
- package/dist/es/components/external/TransactionsOverview/hooks/useMaxWidths.js +9 -10
- package/dist/es/components/external/TransactionsOverview/hooks/useMediaQuery.js +23 -28
- package/dist/es/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.js +24 -28
- package/dist/es/components/external/TransactionsOverview/types.js +4 -0
- package/dist/es/components/external/UIElement.js +38 -51
- package/dist/es/components/internal/BaseButton/BaseButton.js +18 -21
- package/dist/es/components/internal/BaseButton/BaseButton.scss.js +4 -0
- package/dist/es/components/internal/BaseButton/constants.js +2 -2
- package/dist/es/components/internal/BaseList/BaseList.js +5 -8
- package/dist/es/components/internal/BaseList/BaseList.scss.js +4 -0
- package/dist/es/components/internal/BaseList/constants.js +2 -2
- package/dist/es/components/internal/Button/Button.js +39 -41
- package/dist/es/components/internal/Button/Button.scss.js +4 -0
- package/dist/es/components/internal/Button/ButtonActions/ButtonActions.js +27 -8
- package/dist/es/components/internal/Button/ButtonActions/ButtonActions.scss.js +4 -0
- package/dist/es/components/internal/Button/ButtonActions/types.js +7 -0
- package/dist/es/components/internal/Button/constants.js +9 -16
- package/dist/es/components/internal/Button/hooks/useButton.js +13 -17
- package/dist/es/components/internal/Button/types.js +4 -0
- package/dist/es/components/internal/Calendar/Calendar.js +20 -21
- package/dist/es/components/internal/Calendar/Calendar.scss.js +4 -0
- package/dist/es/components/internal/Calendar/calendar/constants.js +35 -70
- package/dist/es/components/internal/Calendar/calendar/facade/Calendar.js +322 -552
- package/dist/es/components/internal/Calendar/calendar/facade/index.js +37 -46
- package/dist/es/components/internal/Calendar/calendar/shared/indexed/index.js +34 -46
- package/dist/es/components/internal/Calendar/calendar/timeframe/common/flags.js +31 -5
- package/dist/es/components/internal/Calendar/calendar/timeframe/common/utils.js +14 -16
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +122 -221
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +238 -418
- package/dist/es/components/internal/Calendar/calendar/timerange/factory.js +40 -63
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastMonth.js +3 -3
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +16 -27
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastWeek.js +3 -3
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.js +14 -23
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js +21 -29
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisMonth.js +3 -3
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisWeek.js +3 -3
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.js +9 -13
- package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +49 -83
- package/dist/es/components/internal/Calendar/calendar/timeslice/TimeSlice.js +38 -61
- package/dist/es/components/internal/Calendar/calendar/timeslice/index.js +17 -21
- package/dist/es/components/internal/Calendar/calendar/types.js +15 -0
- package/dist/es/components/internal/Calendar/calendar/utils.js +15 -22
- package/dist/es/components/internal/Calendar/clock/clock.js +23 -41
- package/dist/es/components/internal/Calendar/clock/today.js +37 -57
- package/dist/es/components/internal/Calendar/components/CalendarControls/CalendarControls.js +7 -12
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGrid.js +26 -28
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDate.js +33 -58
- package/dist/es/components/internal/Calendar/components/CalendarGrid/CalendarGridDayOfWeek.js +30 -40
- package/dist/es/components/internal/Calendar/components/CalendarGrid/utils.js +44 -49
- package/dist/es/components/internal/Calendar/hooks/useCalendar.js +84 -115
- package/dist/es/components/internal/Calendar/hooks/useCalendarControlsRendering.js +35 -40
- package/dist/es/components/internal/Calendar/hooks/useTimezone.js +24 -46
- package/dist/es/components/internal/Calendar/types.js +4 -0
- package/dist/es/components/internal/CopyText/CopyText.js +26 -31
- package/dist/es/components/internal/CopyText/CopyText.scss.js +4 -0
- package/dist/es/components/internal/DataGrid/DataGrid.js +93 -10
- package/dist/es/components/internal/DataGrid/DataGrid.scss.js +4 -0
- package/dist/es/components/internal/DataGrid/DataGridCell.js +4 -4
- package/dist/es/components/internal/DataGrid/components/InteractiveBody.js +38 -8
- package/dist/es/components/internal/DataGrid/components/SkeletonBody.js +15 -17
- package/dist/es/components/internal/DataGrid/components/TableBody.js +19 -19
- package/dist/es/components/internal/DataGrid/components/TableCells.js +19 -25
- package/dist/es/components/internal/DataGrid/hooks/useInteractiveDataGrid.js +76 -5
- package/dist/es/components/internal/DataGrid/types.js +4 -0
- package/dist/es/components/internal/DatePicker/DatePicker.js +45 -62
- package/dist/es/components/internal/DatePicker/DatePicker.scss.js +4 -0
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/TimeRangeSelector.js +26 -43
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.js +56 -85
- package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.js +45 -53
- package/dist/es/components/internal/ErrorMessageDisplay/ErrorMessageDisplay.scss.js +4 -0
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.js +56 -75
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.scss.js +4 -0
- package/dist/es/components/internal/ExpandableCard/constants.js +11 -20
- package/dist/es/components/internal/FilterBar/FilterBar.js +32 -35
- package/dist/es/components/internal/FilterBar/FilterBar.scss.js +4 -0
- package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.js +15 -17
- package/dist/es/components/internal/FilterBar/components/FilterButton/FilterButton.scss.js +4 -0
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +41 -63
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.scss.js +4 -0
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +53 -68
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/constants.js +2 -2
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +104 -153
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.js +118 -10
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilter.scss.js +4 -0
- package/dist/es/components/internal/FilterBar/filters/DateFilter/types.js +4 -0
- package/dist/es/components/internal/FormFields/FormFields.scss.js +4 -0
- package/dist/es/components/internal/FormFields/InputBase.js +53 -66
- package/dist/es/components/internal/FormFields/InputText.js +6 -6
- package/dist/es/components/internal/FormFields/Select/Select.js +187 -246
- package/dist/es/components/internal/FormFields/Select/Select.scss.js +4 -0
- package/dist/es/components/internal/FormFields/Select/components/SelectButton.js +68 -72
- package/dist/es/components/internal/FormFields/Select/components/SelectList.js +62 -71
- package/dist/es/components/internal/FormFields/Select/components/SelectListItem.js +37 -41
- package/dist/es/components/internal/FormFields/Select/constants.js +27 -49
- package/dist/es/components/internal/FormFields/Select/hooks/useSelect.js +27 -35
- package/dist/es/components/internal/Image/Image.js +10 -10
- package/dist/es/components/internal/Img/Img.js +18 -32
- package/dist/es/components/internal/Img/Img.scss.js +4 -0
- package/dist/es/components/internal/Modal/Modal.js +58 -77
- package/dist/es/components/internal/Modal/Modal.scss.js +4 -0
- package/dist/es/components/internal/Pagination/Pagination.js +52 -58
- package/dist/es/components/internal/Pagination/Pagination.scss.js +4 -0
- package/dist/es/components/internal/Pagination/constants.js +4 -6
- package/dist/es/components/internal/Pagination/hooks/useCursorPaginatedRecords.js +7 -8
- package/dist/es/components/internal/Pagination/hooks/useCursorPagination.js +18 -30
- package/dist/es/components/internal/Pagination/hooks/useOffsetPagination.js +14 -21
- package/dist/es/components/internal/Pagination/hooks/usePageLimit.js +52 -60
- package/dist/es/components/internal/Pagination/hooks/usePaginatedRecords.js +80 -11
- package/dist/es/components/internal/Pagination/hooks/usePaginatedRecordsFilters.js +12 -13
- package/dist/es/components/internal/Pagination/hooks/usePagination.js +43 -87
- package/dist/es/components/internal/Pagination/types.js +5 -0
- package/dist/es/components/internal/Pagination/utils.js +5 -5
- package/dist/es/components/internal/Popover/Popover.js +106 -139
- package/dist/es/components/internal/Popover/Popover.scss.js +4 -0
- package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.js +18 -22
- package/dist/es/components/internal/Popover/PopoverDismissButton/PopoverDismissButton.scss.js +4 -0
- package/dist/es/components/internal/Popover/PopoverTitle/PopoverTitle.js +8 -10
- package/dist/es/components/internal/Popover/constants.js +9 -16
- package/dist/es/components/internal/Popover/types.js +6 -0
- package/dist/es/components/internal/Popover/utils/popoverUtil.js +27 -45
- package/dist/es/components/internal/Popover/utils/utils.js +23 -29
- package/dist/es/components/internal/SVGIcons/CheckedBox.js +6 -6
- package/dist/es/components/internal/SVGIcons/Checkmark.js +7 -7
- package/dist/es/components/internal/SVGIcons/ChevronDown.js +6 -6
- package/dist/es/components/internal/SVGIcons/ChevronLeft.js +8 -8
- package/dist/es/components/internal/SVGIcons/ChevronRight.js +8 -8
- package/dist/es/components/internal/SVGIcons/ChevronUp.js +7 -7
- package/dist/es/components/internal/SVGIcons/Close.js +4 -4
- package/dist/es/components/internal/SVGIcons/Copy.js +3 -3
- package/dist/es/components/internal/SVGIcons/Filter.js +4 -4
- package/dist/es/components/internal/SVGIcons/UncheckedBox.js +6 -6
- package/dist/es/components/internal/Spinner/Spinner.js +4 -5
- package/dist/es/components/internal/Spinner/Spinner.scss.js +4 -0
- package/dist/es/components/internal/Tag/Tag.js +19 -5
- package/dist/es/components/internal/Tag/Tag.scss.js +4 -0
- package/dist/es/components/internal/Tag/types.js +4 -0
- package/dist/es/components/internal/Tooltip/Tooltip.js +31 -38
- package/dist/es/components/internal/Tooltip/Tooltip.scss.js +4 -0
- package/dist/es/components/internal/Tooltip/useTooltipListeners.js +17 -20
- package/dist/es/components/internal/Typography/Typography.js +33 -7
- package/dist/es/components/internal/Typography/Typography.scss.js +4 -0
- package/dist/es/components/internal/Typography/constants.js +2 -2
- package/dist/es/components/internal/Typography/types.js +6 -0
- package/dist/es/components/shared.scss.js +4 -0
- package/dist/es/components/types.js +4 -0
- package/dist/es/components/utils/transactionResourceErrorCodes.js +14 -15
- package/dist/es/constants.js +2 -2
- package/dist/es/core/Auth/AuthContext.js +7 -7
- package/dist/es/core/Auth/AuthProvider.js +15 -23
- package/dist/es/core/Auth/useAuthContext.js +4 -4
- package/dist/es/core/Context/CoreContext.js +5 -5
- package/dist/es/core/Context/CoreProvider.js +17 -23
- package/dist/es/core/Context/useCoreContext.js +4 -4
- package/dist/es/core/Errors/AdyenPlatformExperienceError.js +12 -17
- package/dist/es/core/Errors/constants.js +2 -4
- package/dist/es/core/Localization/Localization.js +155 -12
- package/dist/es/core/Localization/amount/amount-util.js +19 -42
- package/dist/es/core/Localization/constants/currency-codes.js +3 -3
- package/dist/es/core/Localization/constants/currency-decimals.js +3 -3
- package/dist/es/core/Localization/constants/locale.js +5 -7
- package/dist/es/core/Localization/constants/localization.js +6 -9
- package/dist/es/core/Localization/datetime/restamper/constants.js +20 -29
- package/dist/es/core/Localization/datetime/restamper/restamper.js +32 -44
- package/dist/es/core/Localization/datetime/restamper/utils.js +26 -44
- package/dist/es/core/Localization/localization-utils.js +31 -7
- package/dist/es/core/Localization/translations/ar.json.js +4 -0
- package/dist/es/core/Localization/translations/cs-CZ.json.js +4 -0
- package/dist/es/core/Localization/translations/da-DK.json.js +4 -0
- package/dist/es/core/Localization/translations/de-DE.json.js +4 -0
- package/dist/es/core/Localization/translations/el-GR.json.js +4 -0
- package/dist/es/core/Localization/translations/en-US.json.js +371 -0
- package/dist/es/core/Localization/translations/es-ES.json.js +255 -0
- package/dist/es/core/Localization/translations/fi-FI.json.js +4 -0
- package/dist/es/core/Localization/translations/fr-FR.json.js +4 -0
- package/dist/es/core/Localization/translations/hr-HR.json.js +4 -0
- package/dist/es/core/Localization/translations/hu-HU.json.js +4 -0
- package/dist/es/core/Localization/translations/index.js +79 -356
- package/dist/es/core/Localization/translations/it-IT.json.js +4 -0
- package/dist/es/core/Localization/translations/ja-JP.json.js +4 -0
- package/dist/es/core/Localization/translations/ko-KR.json.js +4 -0
- package/dist/es/core/Localization/translations/nl-NL.json.js +4 -0
- package/dist/es/core/Localization/translations/no-NO.json.js +4 -0
- package/dist/es/core/Localization/translations/pl-PL.json.js +4 -0
- package/dist/es/core/Localization/translations/pt-BR.json.js +4 -0
- package/dist/es/core/Localization/translations/pt-PT.json.js +4 -0
- package/dist/es/core/Localization/translations/ro-RO.json.js +4 -0
- package/dist/es/core/Localization/translations/ru-RU.json.js +4 -0
- package/dist/es/core/Localization/translations/sk-SK.json.js +4 -0
- package/dist/es/core/Localization/translations/sl-SI.json.js +4 -0
- package/dist/es/core/Localization/translations/sv-SE.json.js +4 -0
- package/dist/es/core/Localization/translations/zh-CN.json.js +4 -0
- package/dist/es/core/Localization/translations/zh-TW.json.js +4 -0
- package/dist/es/core/Localization/utils.js +44 -72
- package/dist/es/core/Services/requests/http.js +31 -49
- package/dist/es/core/Services/requests/utils.js +34 -49
- package/dist/es/core/Services/sessions/constants.js +2 -2
- package/dist/es/core/Services/sessions/setup-session.js +9 -9
- package/dist/es/core/Session/Session.js +23 -38
- package/dist/es/core/Session/utils.js +5 -5
- package/dist/es/core/config.js +2 -6
- package/dist/es/core/core.js +44 -85
- package/dist/es/core/utils.js +8 -10
- package/dist/es/external/preact/compat/dist/compat.module.js +253 -0
- package/dist/es/external/preact/dist/preact.module.js +316 -0
- package/dist/es/external/preact/hooks/dist/hooks.module.js +161 -0
- package/dist/es/external/preact/jsx-runtime/dist/jsxRuntime.module.js +19 -0
- package/dist/es/hooks/element/useClickOutside.js +32 -73
- package/dist/es/hooks/element/useDetachedRender.js +15 -17
- package/dist/es/hooks/element/useFocusCursor.js +14 -19
- package/dist/es/hooks/element/useFocusTrap.js +48 -91
- package/dist/es/hooks/element/usePopoverPositioner.js +105 -5
- package/dist/es/hooks/element/useUniqueIdentifier.js +13 -17
- package/dist/es/hooks/useBooleanState/useBooleanState.js +6 -8
- package/dist/es/hooks/useCommitAction/types.js +4 -0
- package/dist/es/hooks/useCommitAction/useCommitAction.js +27 -38
- package/dist/es/hooks/useFetch/useFetch.js +27 -37
- package/dist/es/hooks/useImageUrl/useImageUrl.js +22 -26
- package/dist/es/hooks/useModalDetails/types.js +6 -0
- package/dist/es/hooks/useModalDetails/useModalDetails.js +28 -37
- package/dist/es/hooks/useMounted/useMounted.js +8 -14
- package/dist/es/hooks/useReactiveState/useReactiveState.js +27 -53
- package/dist/es/hooks/useReflex/constants.js +2 -2
- package/dist/es/hooks/useReflex/core/reflex.js +47 -66
- package/dist/es/hooks/useReflex/core/registry.js +46 -68
- package/dist/es/hooks/useReflex/core/utils.js +16 -18
- package/dist/es/hooks/useReflex/errors.js +6 -6
- package/dist/es/hooks/useReflex/hooks/useReflex.js +7 -12
- package/dist/es/hooks/useSessionAwareRequest/useSessionAwareRequest.js +22 -36
- package/dist/es/hooks/useSetupEndpoint/useSetupEndpoint.js +20 -26
- package/dist/es/images/no-data-female.svg.js +4 -0
- package/dist/es/images/no-results.svg.js +4 -0
- package/dist/es/index.js +41 -45
- package/dist/es/style/index.scss.js +4 -0
- package/dist/es/utils/Storage.js +17 -21
- package/dist/es/utils/class-name-utils.js +5 -11
- package/dist/es/utils/common/constants.js +6 -10
- package/dist/es/utils/common/index.js +32 -59
- package/dist/es/utils/fixedForwardRef.js +3 -3
- package/dist/es/utils/get-image.js +11 -12
- package/dist/es/utils/idGenerator.js +3 -6
- package/dist/es/utils/memoComparator/memoComparator.js +17 -26
- package/dist/es/utils/tabbable.js +71 -110
- package/dist/es/utils/uuid.js +5 -5
- package/dist/es/utils/validator-utils.js +3 -44
- package/dist/es/utils/watchable/constants.js +2 -2
- package/dist/es/utils/watchable/core/Watchable.js +45 -83
- package/dist/es/utils/watchable/core/helpers.js +19 -26
- package/dist/es/utils/watchable/core/syncEffect.js +15 -19
- package/dist/es/utils/watchable/index.js +16 -17
- package/dist/index-7e2df524.js +12 -0
- package/dist/index-7e2df524.js.map +1 -0
- package/dist/style.css +1 -0
- package/dist/types/components/external/TransactionDetails/TransactionDetails.d.ts +1 -1
- package/dist/types/components/external/TransactionDetails/TransactionDetails.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts +1 -1
- package/dist/types/components/external/TransactionDetails/components/TransactionData.d.ts.map +1 -1
- package/dist/types/components/external/TransactionDetails/types.d.ts +3 -3
- package/dist/types/components/external/TransactionDetails/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/AmountSkeleton/AmountSkeleton.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/components/BalanceAccountSelector/useBalanceAccountSelection.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/BalanceItem/BalanceItem.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/BalanceItem/types.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/BalanceItem/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/Balances/Balances.d.ts +3 -3
- package/dist/types/components/external/TransactionsOverview/components/Balances/Balances.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/Category/Category.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/Category/Category.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/Category/types.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/components/Category/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/ModalContent.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/ModalContent.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/MultiSelectionFilter.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/constants.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/types.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/utils.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItem.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/SummaryItemLabel.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/components/SummaryItem/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionListError/TransactionListError.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/TransactionTotalItem.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/types.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotalItem/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TotalsCard.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.d.ts +3 -3
- package/dist/types/components/external/TransactionsOverview/components/TransactionTotals/TransactionTotals.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/TransactionsDisplay.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/types.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsDisplay/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts +2 -2
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverview/TransactionsOverview.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsOverviewDateFilter.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/TransactionsTable.d.ts +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 +4 -4
- package/dist/types/components/external/TransactionsOverview/components/TransactionsTable/types.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useDefaultTransactionsOverviewFilterParams.d.ts +1 -0
- package/dist/types/components/external/TransactionsOverview/hooks/useDefaultTransactionsOverviewFilterParams.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useMediaQuery.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useMediaQuery.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts +1 -1
- package/dist/types/components/external/TransactionsOverview/hooks/useTransactionsOverviewMultiSelectionFilters.d.ts.map +1 -1
- package/dist/types/components/external/TransactionsOverview/types.d.ts +2 -1
- package/dist/types/components/external/TransactionsOverview/types.d.ts.map +1 -1
- package/dist/types/components/external/UIElement.d.ts +1 -1
- package/dist/types/components/external/UIElement.d.ts.map +1 -1
- package/dist/types/components/internal/BaseList/BaseList.d.ts +1 -1
- package/dist/types/components/internal/BaseList/BaseList.d.ts.map +1 -1
- package/dist/types/components/internal/Button/ButtonActions/ButtonActions.d.ts +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 -1
- package/dist/types/components/internal/Button/ButtonActions/types.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/shared/indexed/index.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/types.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/types.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/types.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/types.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/clock/today.d.ts +1 -1
- package/dist/types/components/internal/Calendar/clock/today.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/clock/types.d.ts +2 -2
- package/dist/types/components/internal/Calendar/clock/types.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/components/CalendarGrid/utils.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/hooks/useCalendar.d.ts +1 -1
- package/dist/types/components/internal/Calendar/hooks/useCalendar.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/hooks/useTimezone.d.ts +1 -1
- package/dist/types/components/internal/Calendar/hooks/useTimezone.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/InteractiveBody.d.ts +1 -1
- package/dist/types/components/internal/DataGrid/components/InteractiveBody.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/TableBody.d.ts +1 -1
- package/dist/types/components/internal/DataGrid/components/TableBody.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/components/TableCells.d.ts +2 -2
- package/dist/types/components/internal/DataGrid/components/TableCells.d.ts.map +1 -1
- package/dist/types/components/internal/DataGrid/hooks/useInteractiveDataGrid.d.ts +1 -1
- package/dist/types/components/internal/DataGrid/types.d.ts +2 -2
- package/dist/types/components/internal/DataGrid/types.d.ts.map +1 -1
- package/dist/types/components/internal/DatePicker/DatePicker.d.ts +1 -1
- package/dist/types/components/internal/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/types/components/internal/DatePicker/components/TimeRangeSelector/useTimeRangeSelection.d.ts +3 -3
- 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/filters/AmountFilter/types.d.ts +2 -2
- package/dist/types/components/internal/FilterBar/filters/AmountFilter/types.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/BaseFilter/types.d.ts +2 -2
- package/dist/types/components/internal/FilterBar/filters/BaseFilter/types.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/DateFilter/types.d.ts +1 -1
- package/dist/types/components/internal/FilterBar/filters/DateFilter/types.d.ts.map +1 -1
- package/dist/types/components/internal/FormFields/Select/types.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/types.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/types.d.ts +1 -1
- package/dist/types/components/internal/Pagination/hooks/types.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePaginatedRecordsFilters.d.ts +1 -1
- package/dist/types/components/internal/Pagination/hooks/usePaginatedRecordsFilters.d.ts.map +1 -1
- package/dist/types/components/internal/Pagination/types.d.ts +1 -1
- package/dist/types/components/internal/Pagination/types.d.ts.map +1 -1
- package/dist/types/components/internal/Popover/Popover.d.ts +1 -1
- package/dist/types/components/internal/Popover/Popover.d.ts.map +1 -1
- package/dist/types/components/internal/Popover/types.d.ts +1 -1
- package/dist/types/components/internal/Popover/types.d.ts.map +1 -1
- package/dist/types/components/internal/Tooltip/types.d.ts +2 -2
- package/dist/types/components/internal/Tooltip/types.d.ts.map +1 -1
- package/dist/types/components/utils/transactionResourceErrorCodes.d.ts +2 -2
- package/dist/types/components/utils/transactionResourceErrorCodes.d.ts.map +1 -1
- package/dist/types/core/Auth/AuthContext.d.ts +1 -1
- package/dist/types/core/Auth/AuthContext.d.ts.map +1 -1
- package/dist/types/core/Auth/AuthProvider.d.ts +1 -1
- package/dist/types/core/Auth/AuthProvider.d.ts.map +1 -1
- package/dist/types/core/Auth/types.d.ts +1 -1
- package/dist/types/core/Auth/types.d.ts.map +1 -1
- package/dist/types/core/Context/CoreContext.d.ts +1 -1
- package/dist/types/core/Context/CoreContext.d.ts.map +1 -1
- package/dist/types/core/Context/types.d.ts +1 -1
- package/dist/types/core/Context/types.d.ts.map +1 -1
- package/dist/types/core/Errors/AdyenPlatformExperienceError.d.ts +1 -1
- package/dist/types/core/Errors/AdyenPlatformExperienceError.d.ts.map +1 -1
- package/dist/types/core/Localization/localization-utils.d.ts.map +1 -1
- package/dist/types/core/Localization/types.d.ts +3 -3
- package/dist/types/core/Localization/types.d.ts.map +1 -1
- package/dist/types/core/Session/types.d.ts +1 -1
- package/dist/types/core/Session/types.d.ts.map +1 -1
- package/dist/types/hooks/element/useClickOutside.d.ts +2 -2
- package/dist/types/hooks/element/useClickOutside.d.ts.map +1 -1
- package/dist/types/hooks/element/usePopoverPositioner.d.ts +1 -1
- package/dist/types/hooks/element/usePopoverPositioner.d.ts.map +1 -1
- package/dist/types/hooks/useCommitAction/types.d.ts +1 -1
- package/dist/types/hooks/useCommitAction/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 +2 -2
- package/dist/types/hooks/useModalDetails/types.d.ts.map +1 -1
- package/dist/types/hooks/useSessionAwareRequest/useSessionAwareRequest.d.ts +1 -1
- package/dist/types/hooks/useSessionAwareRequest/useSessionAwareRequest.d.ts.map +1 -1
- package/dist/types/hooks/useSetupEndpoint/useSetupEndpoint.d.ts +2 -2
- package/dist/types/hooks/useSetupEndpoint/useSetupEndpoint.d.ts.map +1 -1
- package/dist/types/utils/Validator/types.d.ts +1 -1
- package/dist/types/utils/Validator/types.d.ts.map +1 -1
- package/dist/types/utils/useForm/types.d.ts +1 -1
- package/dist/types/utils/useForm/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/AmountSkeleton.css +0 -23
- package/dist/BalanceAccountSelector.css +0 -4
- package/dist/BaseButton.css +0 -14
- package/dist/BaseList.css +0 -5
- package/dist/Button.css +0 -114
- package/dist/ButtonActions-eb064f69.mjs +0 -46
- package/dist/ButtonActions.css +0 -28
- package/dist/CalendarGrid.css +0 -113
- package/dist/CopyText.css +0 -18
- package/dist/DatePicker.css +0 -64
- package/dist/ErrorMessageDisplay.css +0 -20
- package/dist/ErrorPanel.css +0 -15
- package/dist/ExpandableCard.css +0 -71
- package/dist/FilterBar.css +0 -40
- package/dist/FilterButton.css +0 -48
- package/dist/Img.css +0 -7
- package/dist/InputBase.css +0 -175
- package/dist/Modal.css +0 -110
- package/dist/Pagination.css +0 -25
- package/dist/Popover.css +0 -127
- package/dist/PopoverDismissButton.css +0 -12
- package/dist/RangeSelection.css +0 -26
- package/dist/Select.css +0 -149
- package/dist/SkeletonBody.css +0 -154
- package/dist/Spinner.css +0 -50
- package/dist/SummaryItem.css +0 -37
- package/dist/Tag-6d02fd64.mjs +0 -32
- package/dist/Tag.css +0 -34
- package/dist/Tooltip.css +0 -7
- package/dist/TotalsCard.css +0 -14
- package/dist/TransactionDetails.css +0 -74
- package/dist/TransactionsDisplay.css +0 -4
- package/dist/TransactionsOverview.css +0 -29
- package/dist/TransactionsOverviewContainer.css +0 -3
- package/dist/TransactionsTable.css +0 -18
- package/dist/Typography-11b95870.mjs +0 -68
- package/dist/Typography.css +0 -57
- package/dist/cjs/ModalContent-f4990141.js +0 -10
- package/dist/cjs/ModalContent-f4990141.js.map +0 -1
- package/dist/cjs/index-8c098f20.js +0 -10401
- package/dist/cjs/index-8c098f20.js.map +0 -1
- package/dist/cjs/index.css +0 -1709
- package/dist/compat.module-a4d537ff.mjs +0 -237
- package/dist/en-US-1daadfc1.mjs +0 -371
- package/dist/es/components/external/FormElement.js +0 -78
- package/dist/es/components/external/TransactionDetails/index.js +0 -4
- package/dist/es/components/external/TransactionsOverview/components/BalanceAccountSelector/index.js +0 -6
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/index.js +0 -15
- package/dist/es/components/external/TransactionsOverview/components/MultiSelectionFilter/useMultiSelectionFilter/index.js +0 -13
- package/dist/es/components/external/TransactionsOverview/index.js +0 -6
- package/dist/es/components/external/index.js +0 -8
- package/dist/es/components/index.js +0 -11
- package/dist/es/components/internal/BaseButton/index.js +0 -4
- package/dist/es/components/internal/Button/index.js +0 -4
- package/dist/es/components/internal/Calendar/calendar/index.js +0 -4
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/YearFrame.js +0 -197
- package/dist/es/components/internal/Calendar/calendar/timeframe/index.js +0 -8
- package/dist/es/components/internal/Calendar/calendar/timerange/factory.test.js +0 -139
- package/dist/es/components/internal/Calendar/calendar/timerange/index.js +0 -4
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/index.js +0 -14
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastMonth.test.js +0 -69
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.test.js +0 -69
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastWeek.test.js +0 -108
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/testing/fixtures.js +0 -15
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/testing/helpers.js +0 -19
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisMonth.test.js +0 -46
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/thisWeek.test.js +0 -85
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.test.js +0 -49
- package/dist/es/components/internal/Calendar/clock/clock.test.js +0 -43
- package/dist/es/components/internal/Calendar/clock/index.js +0 -7
- package/dist/es/components/internal/Calendar/clock/testing/fixtures.js +0 -60
- package/dist/es/components/internal/Calendar/clock/today.test.js +0 -98
- package/dist/es/components/internal/Calendar/components/CalendarControls/index.js +0 -4
- package/dist/es/components/internal/Calendar/components/CalendarGrid/index.js +0 -4
- package/dist/es/components/internal/Calendar/index.js +0 -4
- package/dist/es/components/internal/DataGrid/index.js +0 -4
- package/dist/es/components/internal/DataGrid/tests/DataGrid.test.js +0 -190
- package/dist/es/components/internal/DatePicker/components/TimeRangeSelector/index.js +0 -7
- package/dist/es/components/internal/DatePicker/index.js +0 -4
- package/dist/es/components/internal/ExpandableCard/ExpandableCard.test.js +0 -45
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/index.js +0 -4
- package/dist/es/components/internal/FilterBar/filters/DateFilter/index.js +0 -4
- package/dist/es/components/internal/FilterBar/filters/TextFilter/TextFilter.js +0 -8
- package/dist/es/components/internal/FilterBar/filters/TextFilter/index.js +0 -4
- package/dist/es/components/internal/FilterBar/index.js +0 -4
- package/dist/es/components/internal/FormFields/Select/index.js +0 -4
- package/dist/es/components/internal/FormFields/index.js +0 -18
- package/dist/es/components/internal/FormFields/utils.js +0 -4
- package/dist/es/components/internal/Img/index.js +0 -4
- package/dist/es/components/internal/Modal/index.js +0 -4
- package/dist/es/components/internal/Pagination/components/LimitSelect.js +0 -1
- package/dist/es/components/internal/Pagination/hooks/index.js +0 -6
- package/dist/es/components/internal/Pagination/hooks/useOffsetPaginatedRecords.js +0 -10
- package/dist/es/components/internal/Pagination/index.js +0 -4
- package/dist/es/components/internal/Popover/Popover.test.js +0 -119
- package/dist/es/components/internal/Spinner/index.js +0 -4
- package/dist/es/components/utils/utils.js +0 -34
- package/dist/es/core/Analytics/Analytics.js +0 -63
- package/dist/es/core/Analytics/EventsQueue.js +0 -22
- package/dist/es/core/Analytics/index.js +0 -4
- package/dist/es/core/Errors/ErrorPanel.js +0 -19
- package/dist/es/core/Localization/Localization.test.js +0 -70
- package/dist/es/core/Localization/amount/amount-util.test.js +0 -54
- package/dist/es/core/Localization/datetime/restamper/index.js +0 -9
- package/dist/es/core/Localization/datetime/restamper/restamper.test.js +0 -179
- package/dist/es/core/Localization/datetime/restamper/testing/fixtures.js +0 -21
- package/dist/es/core/Localization/datetime/restamper/testing/helpers.js +0 -27
- package/dist/es/core/Localization/index.js +0 -32
- package/dist/es/core/Localization/utils.test.js +0 -215
- package/dist/es/core/ProcessResponse/index.js +0 -4
- package/dist/es/core/ProcessResponse/process-response.js +0 -40
- package/dist/es/core/Services/analytics/collect-id.js +0 -37
- package/dist/es/core/Services/analytics/log-event.js +0 -14
- package/dist/es/core/Services/analytics/post-telemetry.js +0 -22
- package/dist/es/core/Services/data-set.js +0 -1
- package/dist/es/core/Services/get-dataset.js +0 -13
- package/dist/es/core/Services/requests/endpoints.js +0 -9
- package/dist/es/core/Session/index.js +0 -4
- package/dist/es/core/index.js +0 -36
- package/dist/es/hooks/element/useIdentifierString.js +0 -61
- package/dist/es/hooks/useBooleanState/index.js +0 -4
- package/dist/es/hooks/useCommitAction/index.js +0 -6
- package/dist/es/hooks/useDefinedValue/index.js +0 -4
- package/dist/es/hooks/useDefinedValue/useDefinedValue.js +0 -16
- package/dist/es/hooks/useMounted/index.js +0 -4
- package/dist/es/hooks/useReactiveState/index.js +0 -4
- package/dist/es/hooks/useReflex/core/reflex.test.js +0 -170
- package/dist/es/hooks/useReflex/core/registry.test.js +0 -114
- package/dist/es/hooks/useReflex/core/utils.test.js +0 -59
- package/dist/es/hooks/useReflex/index.js +0 -8
- package/dist/es/utils/Validator/ValidationRuleResult.js +0 -28
- package/dist/es/utils/Validator/Validator.js +0 -67
- package/dist/es/utils/Validator/Validator.test.js +0 -27
- package/dist/es/utils/Validator/defaultRules.js +0 -12
- package/dist/es/utils/Validator/index.js +0 -4
- package/dist/es/utils/get-image.test.js +0 -38
- package/dist/es/utils/memoComparator/index.js +0 -4
- package/dist/es/utils/regex.js +0 -6
- package/dist/es/utils/useForm/index.js +0 -4
- package/dist/es/utils/useForm/reducer.js +0 -153
- package/dist/es/utils/useForm/useForm.js +0 -85
- package/dist/es/utils/useForm/useForm.test.js +0 -107
- package/dist/es/utils/uuid.test.js +0 -13
- package/dist/es/utils/watchable/core/Watchable.test.js +0 -103
- package/dist/es/utils/watchable/core/helpers.test.js +0 -106
- package/dist/es/utils/watchable/core/syncEffect.test.js +0 -103
- package/dist/flags-41c36e13.mjs +0 -83
- package/dist/hooks.module-8565d716.mjs +0 -161
- package/dist/index-2c0f6175.mjs +0 -12069
- package/dist/index-6e47f755.mjs +0 -231
- package/dist/index-944be685.mjs +0 -6609
- package/dist/index-c88cd37e.mjs +0 -243
- package/dist/index-f5bc0382.mjs +0 -155
- package/dist/index.css +0 -65
- package/dist/index2.css +0 -4
- package/dist/jsxRuntime.module-69493d81.mjs +0 -15
- package/dist/magic-string.es-219c273f.mjs +0 -1146
- package/dist/preact.module-38e5a571.mjs +0 -323
- package/dist/types-0027b7c2.mjs +0 -9
- package/dist/types-0aaff3aa.mjs +0 -19
- package/dist/types-7ad6576a.mjs +0 -10
- package/dist/types-e4bbd37f.mjs +0 -13
- package/dist/types-e6a6a3ff.mjs +0 -9
- package/dist/usePaginatedRecords-63a69bf1.mjs +0 -131
- package/dist/usePopoverPositioner-882fea89.mjs +0 -182
- package/dist/vendor-vi.a3ff54b1-5e924357.mjs +0 -22389
|
@@ -1,9 +1,35 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "./constants.js";
|
|
3
|
-
import "classnames";
|
|
4
|
-
import "
|
|
5
|
-
import { T } from "
|
|
6
|
-
import "
|
|
1
|
+
import { jsx as Y } from "../../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
+
import { DEFAULT_TYPOGRAPHY_CLASSNAME as o } from "./constants.js";
|
|
3
|
+
import f from "classnames";
|
|
4
|
+
import { useMemo as s } from "../../../external/preact/hooks/dist/hooks.module.js";
|
|
5
|
+
import { TypographyVariant as T, TypographyModifier as E } from "./types.js";
|
|
6
|
+
import { memo as R } from "../../../external/preact/compat/dist/compat.module.js";
|
|
7
|
+
import "./Typography.scss.js";
|
|
8
|
+
function y({ el: B, className: D, stronger: I, strongest: L, variant: $, medium: O, large: p, wide: m, children: N }) {
|
|
9
|
+
const A = B || "p", S = s(
|
|
10
|
+
() => ({
|
|
11
|
+
// Caption
|
|
12
|
+
[`${o}--${T.CAPTION}`]: $ === T.CAPTION,
|
|
13
|
+
[`${o}--${T.CAPTION}-${E.WIDE}`]: $ === T.CAPTION && m,
|
|
14
|
+
[`${o}--${T.CAPTION}-${E.STRONGER}`]: $ === T.CAPTION && I,
|
|
15
|
+
// Body
|
|
16
|
+
[`${o}--${T.BODY}`]: $ === T.BODY,
|
|
17
|
+
[`${o}--${T.BODY}-${E.WIDE}`]: $ === T.BODY && m,
|
|
18
|
+
[`${o}--${T.BODY}-${E.STRONGER}`]: $ === T.BODY && I,
|
|
19
|
+
[`${o}--${T.BODY}-${E.STRONGEST}`]: $ === T.BODY && L,
|
|
20
|
+
// Subtitle
|
|
21
|
+
[`${o}--${T.SUBTITLE}`]: $ === T.SUBTITLE,
|
|
22
|
+
[`${o}--${T.SUBTITLE}-${E.STRONGER}`]: $ === T.SUBTITLE && I,
|
|
23
|
+
// Title
|
|
24
|
+
[`${o}--${T.TITLE}`]: $ === T.TITLE && !O && !p,
|
|
25
|
+
[`${o}--${T.TITLE}-${E.MEDIUM}`]: $ === T.TITLE && O,
|
|
26
|
+
[`${o}--${T.TITLE}-${E.LARGE}`]: $ === T.TITLE && p
|
|
27
|
+
}),
|
|
28
|
+
[$, m, I, O, p, L]
|
|
29
|
+
);
|
|
30
|
+
return /* @__PURE__ */ Y(A, { className: f([`${o}`, S, D]), children: N });
|
|
31
|
+
}
|
|
32
|
+
const x = R(y);
|
|
7
33
|
export {
|
|
8
|
-
|
|
34
|
+
x as default
|
|
9
35
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var R = /* @__PURE__ */ ((I) => (I.CAPTION = "caption", I.BODY = "body", I.SUBTITLE = "subtitle", I.TITLE = "title", I))(R || {}), s = /* @__PURE__ */ ((I) => (I.WIDE = "wide", I.STRONGER = "stronger", I.STRONGER_WIDE = "stronger-wide", I.STRONGEST = "strongest", I.STRONGEST_WIDE = "strongest-wide", I.MEDIUM = "m", I.LARGE = "l", I.MOBILE = "mobile", I))(s || {}), S = /* @__PURE__ */ ((I) => (I.H1 = "h1", I.H2 = "h2", I.H3 = "h3", I.H4 = "h4", I.H5 = "h5", I.H6 = "h6", I.DIV = "div", I.PARAGRAPH = "p", I.SPAN = "span", I))(S || {});
|
|
2
|
+
export {
|
|
3
|
+
S as TypographyElement,
|
|
4
|
+
s as TypographyModifier,
|
|
5
|
+
R as TypographyVariant
|
|
6
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var E = /* @__PURE__ */ ((A) => (A.ARROW_DOWN = "ArrowDown", A.ARROW_LEFT = "ArrowLeft", A.ARROW_RIGHT = "ArrowRight", A.ARROW_UP = "ArrowUp", A.BACKSPACE = "Backspace", A.END = "End", A.ENTER = "Enter", A.ESCAPE = "Escape", A.HOME = "Home", A.PAGE_DOWN = "PageDown", A.PAGE_UP = "PageUp", A.SPACE = "Space", A.TAB = "Tab", A))(E || {});
|
|
2
|
+
export {
|
|
3
|
+
E as InteractionKeyCode
|
|
4
|
+
};
|
|
@@ -1,40 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
switch (error.errorCode) {
|
|
1
|
+
import { jsx as s } from "../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
+
import a from "../internal/CopyText/CopyText.js";
|
|
3
|
+
const o = { title: "thereWasAnUnexpectedError", message: ["pleaseReachOutToSupportForAssistance"] }, i = (e, t) => {
|
|
4
|
+
if (!e)
|
|
5
|
+
return o;
|
|
6
|
+
switch (e.errorCode) {
|
|
8
7
|
case void 0:
|
|
9
8
|
return {
|
|
10
9
|
title: "somethingWentWrong",
|
|
11
10
|
message: ["weCouldNotLoadYourTransactions", "tryRefreshingThePageOrComeBackLater"],
|
|
12
|
-
refreshComponent:
|
|
11
|
+
refreshComponent: !0
|
|
13
12
|
};
|
|
14
13
|
case "00_500":
|
|
15
14
|
return {
|
|
16
15
|
title: "somethingWentWrong",
|
|
17
|
-
message:
|
|
18
|
-
onContactSupport,
|
|
19
|
-
translationValues:
|
|
16
|
+
message: t ? ["weCouldNotLoadYourTransactions", "theErrorCodeIs"] : ["weCouldNotLoadYourTransactions", "contactSupportForHelpAndShareErrorCode"],
|
|
17
|
+
onContactSupport: t,
|
|
18
|
+
translationValues: t ? { theErrorCodeIs: e != null && e.requestId ? /* @__PURE__ */ s(a, { text: e.requestId }) : null } : { contactSupportForHelpAndShareErrorCode: e.requestId ? /* @__PURE__ */ s(a, { text: e.requestId }) : null }
|
|
20
19
|
};
|
|
21
20
|
case "29_001":
|
|
22
21
|
return {
|
|
23
22
|
title: "theRequestIsMissingRequiredFieldsOrContainsInvalidData",
|
|
24
23
|
message: ["pleaseReachOutToSupportForAssistance"],
|
|
25
|
-
onContactSupport
|
|
24
|
+
onContactSupport: t
|
|
26
25
|
};
|
|
27
26
|
case "30_112":
|
|
28
27
|
return {
|
|
29
28
|
title: "entityWasNotFound",
|
|
30
29
|
message: ["entityWasNotFoundDetail"],
|
|
31
|
-
onContactSupport
|
|
30
|
+
onContactSupport: t
|
|
32
31
|
};
|
|
33
32
|
case "00_403":
|
|
34
33
|
default:
|
|
35
|
-
return
|
|
34
|
+
return o;
|
|
36
35
|
}
|
|
37
36
|
};
|
|
38
37
|
export {
|
|
39
|
-
getErrorMessage
|
|
38
|
+
i as getErrorMessage
|
|
40
39
|
};
|
package/dist/es/constants.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { noop } from "../../utils/common/index.js";
|
|
3
|
-
import { EMPTY_OBJECT } from "../../utils/common/constants.js";
|
|
4
|
-
const
|
|
1
|
+
import { createContext as o } from "../../external/preact/dist/preact.module.js";
|
|
2
|
+
import { noop as t } from "../../utils/common/index.js";
|
|
3
|
+
import { EMPTY_OBJECT as e } from "../../utils/common/constants.js";
|
|
4
|
+
const m = o({
|
|
5
5
|
token: "",
|
|
6
|
-
endpoints:
|
|
7
|
-
updateCore:
|
|
6
|
+
endpoints: e,
|
|
7
|
+
updateCore: t
|
|
8
8
|
});
|
|
9
9
|
export {
|
|
10
|
-
AuthContext
|
|
10
|
+
m as AuthContext
|
|
11
11
|
};
|
|
@@ -1,26 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AuthContext } from "./AuthContext.js";
|
|
3
|
-
import "../../
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
setIsUpdatingToken(false);
|
|
14
|
-
}
|
|
15
|
-
}, [token]);
|
|
16
|
-
const update = async () => {
|
|
17
|
-
setIsUpdatingToken(true);
|
|
18
|
-
if (updateCore) {
|
|
19
|
-
await updateCore(EMPTY_OBJECT, true);
|
|
20
|
-
}
|
|
1
|
+
import { jsx as f } from "../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
+
import { AuthContext as c } from "./AuthContext.js";
|
|
3
|
+
import { toChildArray as m } from "../../external/preact/dist/preact.module.js";
|
|
4
|
+
import { useState as p, useRef as d, useEffect as h } from "../../external/preact/hooks/dist/hooks.module.js";
|
|
5
|
+
import { EMPTY_OBJECT as l } from "../../utils/common/constants.js";
|
|
6
|
+
const T = ({ token: r, endpoints: s, children: a, updateCore: t, sessionSetupError: i }) => {
|
|
7
|
+
const [u, e] = p(), o = d("");
|
|
8
|
+
h(() => {
|
|
9
|
+
o.current !== r && (o.current = r, e(!1));
|
|
10
|
+
}, [r]);
|
|
11
|
+
const n = async () => {
|
|
12
|
+
e(!0), t && await t(l, !0);
|
|
21
13
|
};
|
|
22
|
-
return /* @__PURE__ */
|
|
23
|
-
};
|
|
14
|
+
return /* @__PURE__ */ f(c.Provider, { value: { token: r, endpoints: s, updateCore: n, sessionSetupError: i, isUpdatingToken: u }, children: m(a) });
|
|
15
|
+
}, E = T;
|
|
24
16
|
export {
|
|
25
|
-
|
|
17
|
+
E as default
|
|
26
18
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AuthContext } from "./AuthContext.js";
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { AuthContext as t } from "./AuthContext.js";
|
|
2
|
+
import { useContext as o } from "../../external/preact/hooks/dist/hooks.module.js";
|
|
3
|
+
const e = () => o(t), n = e;
|
|
4
4
|
export {
|
|
5
|
-
|
|
5
|
+
n as default
|
|
6
6
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
i18n: new
|
|
1
|
+
import { createContext as o } from "../../external/preact/dist/preact.module.js";
|
|
2
|
+
import t from "../Localization/Localization.js";
|
|
3
|
+
const r = o({
|
|
4
|
+
i18n: new t().i18n,
|
|
5
5
|
loadingContext: "",
|
|
6
6
|
commonProps: {}
|
|
7
7
|
});
|
|
8
8
|
export {
|
|
9
|
-
CoreContext
|
|
9
|
+
r as CoreContext
|
|
10
10
|
};
|
|
@@ -1,28 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { CoreContext } from "./CoreContext.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
const
|
|
8
|
-
i18n = new
|
|
9
|
-
children,
|
|
10
|
-
commonProps:
|
|
11
|
-
loadingContext:
|
|
1
|
+
import { jsx as i } from "../../external/preact/jsx-runtime/dist/jsxRuntime.module.js";
|
|
2
|
+
import { toChildArray as f } from "../../external/preact/dist/preact.module.js";
|
|
3
|
+
import { useMemo as t, useEffect as d } from "../../external/preact/hooks/dist/hooks.module.js";
|
|
4
|
+
import { CoreContext as l } from "./CoreContext.js";
|
|
5
|
+
import p from "../../hooks/useBooleanState/useBooleanState.js";
|
|
6
|
+
import u from "../Localization/Localization.js";
|
|
7
|
+
const C = ({
|
|
8
|
+
i18n: o = new u().i18n,
|
|
9
|
+
children: a,
|
|
10
|
+
commonProps: r,
|
|
11
|
+
loadingContext: e
|
|
12
12
|
}) => {
|
|
13
|
-
const [
|
|
14
|
-
|
|
15
|
-
const loadingContext = F(() => _loadingContext ?? "", [_loadingContext]);
|
|
16
|
-
p(() => {
|
|
13
|
+
const [s, m] = p(!1), n = t(() => r || {}, [r]), c = t(() => e ?? "", [e]);
|
|
14
|
+
return d(() => {
|
|
17
15
|
(async () => {
|
|
18
|
-
await (
|
|
19
|
-
setReady(true);
|
|
16
|
+
await (o == null ? void 0 : o.ready), m(!0);
|
|
20
17
|
})().catch();
|
|
21
|
-
}, []);
|
|
22
|
-
|
|
23
|
-
return null;
|
|
24
|
-
return /* @__PURE__ */ o(CoreContext.Provider, { value: { i18n, commonProps, loadingContext }, children: C(children) });
|
|
25
|
-
};
|
|
18
|
+
}, []), s ? /* @__PURE__ */ i(l.Provider, { value: { i18n: o, commonProps: n, loadingContext: c }, children: f(a) }) : null;
|
|
19
|
+
}, g = C;
|
|
26
20
|
export {
|
|
27
|
-
|
|
21
|
+
g as default
|
|
28
22
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CoreContext } from "./CoreContext.js";
|
|
3
|
-
const
|
|
1
|
+
import { useContext as o } from "../../external/preact/hooks/dist/hooks.module.js";
|
|
2
|
+
import { CoreContext as t } from "./CoreContext.js";
|
|
3
|
+
const e = () => o(t), C = e;
|
|
4
4
|
export {
|
|
5
|
-
|
|
5
|
+
C as default
|
|
6
6
|
};
|
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
__publicField(this, "errorCode");
|
|
12
|
-
__publicField(this, "requestId");
|
|
13
|
-
this.type = type;
|
|
14
|
-
this.name = type;
|
|
15
|
-
this.errorCode = errorCode;
|
|
16
|
-
this.requestId = requestId;
|
|
1
|
+
var a = Object.defineProperty;
|
|
2
|
+
var c = (t, r, e) => r in t ? a(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
|
|
3
|
+
var o = (t, r, e) => (c(t, typeof r != "symbol" ? r + "" : r, e), e);
|
|
4
|
+
class i extends Error {
|
|
5
|
+
constructor(e, s, d, n) {
|
|
6
|
+
super(d);
|
|
7
|
+
o(this, "type");
|
|
8
|
+
o(this, "errorCode");
|
|
9
|
+
o(this, "requestId");
|
|
10
|
+
this.type = e, this.name = e, this.errorCode = n, this.requestId = s;
|
|
17
11
|
}
|
|
18
12
|
}
|
|
13
|
+
const u = i;
|
|
19
14
|
export {
|
|
20
|
-
|
|
15
|
+
u as default
|
|
21
16
|
};
|
|
@@ -1,14 +1,157 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
var S = Object.defineProperty;
|
|
2
|
+
var $ = (r, t, e) => t in r ? S(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
3
|
+
var w = (r, t, e) => ($(r, typeof t != "symbol" ? t + "" : t, e), e), z = (r, t, e) => {
|
|
4
|
+
if (!t.has(r))
|
|
5
|
+
throw TypeError("Cannot " + e);
|
|
6
|
+
};
|
|
7
|
+
var s = (r, t, e) => (z(r, t, "read from private field"), e ? e.call(r) : t.get(r)), a = (r, t, e) => {
|
|
8
|
+
if (t.has(r))
|
|
9
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
10
|
+
t instanceof WeakSet ? t.add(r) : t.set(r, e);
|
|
11
|
+
}, n = (r, t, e, o) => (z(r, t, "write to private field"), o ? o.call(r, e) : t.set(r, e), e);
|
|
12
|
+
var O = (r, t, e) => (z(r, t, "access private method"), e);
|
|
13
|
+
import { getLocalisedAmount as F } from "./amount/amount-util.js";
|
|
14
|
+
import { FALLBACK_LOCALE as C, defaultTranslation as U } from "./constants/locale.js";
|
|
15
|
+
import { DEFAULT_LOCALES as v, DEFAULT_DATETIME_FORMAT as x } from "./constants/localization.js";
|
|
16
|
+
import { createTranslationsLoader as P, getLocalizationProxyDescriptors as M } from "./localization-utils.js";
|
|
17
|
+
import { toTwoLetterCode as R, formatCustomTranslations as j, getTranslation as _ } from "./utils.js";
|
|
18
|
+
import { struct as k, noop as B } from "../../utils/common/index.js";
|
|
19
|
+
import I from "../../utils/watchable/index.js";
|
|
20
|
+
import { en_US as K } from "./translations/index.js";
|
|
21
|
+
import W from "./datetime/restamper/restamper.js";
|
|
22
|
+
import { systemToTimezone as Z } from "./datetime/restamper/utils.js";
|
|
23
|
+
var l, T, y, f, d, h, D, c, m, L, u, A, E;
|
|
24
|
+
class st {
|
|
25
|
+
constructor(t = C, e) {
|
|
26
|
+
a(this, A);
|
|
27
|
+
a(this, l, C);
|
|
28
|
+
a(this, T, R(s(this, l)));
|
|
29
|
+
a(this, y, v);
|
|
30
|
+
a(this, f, void 0);
|
|
31
|
+
a(this, d, U);
|
|
32
|
+
a(this, h, P.call(this));
|
|
33
|
+
a(this, D, Promise.resolve());
|
|
34
|
+
a(this, c, void 0);
|
|
35
|
+
a(this, m, void 0);
|
|
36
|
+
a(this, L, I({ timestamp: () => performance.now() }));
|
|
37
|
+
a(this, u, W());
|
|
38
|
+
w(this, "watch", s(this, L).watch.bind(void 0));
|
|
39
|
+
w(this, "i18n", k(M.call(this)));
|
|
40
|
+
w(this, "preferredTranslations");
|
|
41
|
+
this.watch(B), this.preferredTranslations = e && e.reduce((o, i) => ({ ...o, ...i }), {
|
|
42
|
+
[C]: K.en_US
|
|
43
|
+
}), this.locale = t;
|
|
44
|
+
}
|
|
45
|
+
get customTranslations() {
|
|
46
|
+
return s(this, f) ?? {};
|
|
47
|
+
}
|
|
48
|
+
set customTranslations(t) {
|
|
49
|
+
let e, o = [...v];
|
|
50
|
+
if (t != null) {
|
|
51
|
+
e = j(t, v);
|
|
52
|
+
const i = Object.keys(e);
|
|
53
|
+
o = [...v, ...i].filter(
|
|
54
|
+
(g, p, b) => b.indexOf(g) === p
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
s(this, h).supportedLocales = o, O(this, A, E).call(this, e);
|
|
58
|
+
}
|
|
59
|
+
get languageCode() {
|
|
60
|
+
return s(this, T);
|
|
61
|
+
}
|
|
62
|
+
get lastRefreshTimestamp() {
|
|
63
|
+
return s(this, L).snapshot.timestamp;
|
|
64
|
+
}
|
|
65
|
+
get locale() {
|
|
66
|
+
return s(this, l);
|
|
67
|
+
}
|
|
68
|
+
set locale(t) {
|
|
69
|
+
if (t != null) {
|
|
70
|
+
if (s(this, h).locale = t, s(this, l) === s(this, h).locale)
|
|
71
|
+
return;
|
|
72
|
+
O(this, A, E).call(this, s(this, f));
|
|
73
|
+
} else
|
|
74
|
+
this.locale = C;
|
|
75
|
+
}
|
|
76
|
+
get ready() {
|
|
77
|
+
return s(this, D);
|
|
78
|
+
}
|
|
79
|
+
get supportedLocales() {
|
|
80
|
+
return s(this, y);
|
|
81
|
+
}
|
|
82
|
+
get timezone() {
|
|
83
|
+
return s(this, u).tz.current;
|
|
84
|
+
}
|
|
85
|
+
set timezone(t) {
|
|
86
|
+
s(this, u).tz = t;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Returns a translated string from a key in the current {@link Localization.locale}
|
|
90
|
+
* @param key - Translation key
|
|
91
|
+
* @param options - Translation options
|
|
92
|
+
* @returns Translated string
|
|
93
|
+
*/
|
|
94
|
+
get(t, e) {
|
|
95
|
+
const o = _(s(this, d), t, e);
|
|
96
|
+
return o !== null ? o : t;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Returns a boolean that checks if the translation key exists in the current {@link Localization.locale}
|
|
100
|
+
* @param key - Translation key
|
|
101
|
+
* @param options - Translation options
|
|
102
|
+
* @returns boolean
|
|
103
|
+
*/
|
|
104
|
+
has(t, e) {
|
|
105
|
+
return !!_(s(this, d), t, e);
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Returns a localized string for an amount
|
|
109
|
+
* @param amount - Amount to be converted
|
|
110
|
+
* @param currencyCode - Currency code of the amount
|
|
111
|
+
* @param options - Options for String.prototype.toLocaleString
|
|
112
|
+
*/
|
|
113
|
+
amount(t, e, o) {
|
|
114
|
+
const { hideCurrency: i, ...g } = o || {}, p = F(t, s(this, l), e, i, {
|
|
115
|
+
...g,
|
|
116
|
+
currencyDisplay: "symbol",
|
|
117
|
+
signDisplay: "never"
|
|
118
|
+
});
|
|
119
|
+
return t < 0 ? `- ${p}` : p;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Returns a localized string for a date
|
|
123
|
+
* @param date - Date to be localized
|
|
124
|
+
* @param options - Options for {@link Date.toLocaleDateString}
|
|
125
|
+
*/
|
|
126
|
+
date(t, e = {}) {
|
|
127
|
+
const o = { ...x, timeZone: s(this, u).tz.current, ...e };
|
|
128
|
+
return new Date(t).toLocaleDateString(s(this, l), o);
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Returns a localized string for a full date
|
|
132
|
+
* @param date - Date to be localized
|
|
133
|
+
*/
|
|
134
|
+
fullDate(t) {
|
|
135
|
+
const e = Z(s(this, u), t), [, o, i, g, p] = new Date(e).toString().split(/\s+/g);
|
|
136
|
+
return `${o} ${i}, ${g}, ${p}`;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
l = new WeakMap(), T = new WeakMap(), y = new WeakMap(), f = new WeakMap(), d = new WeakMap(), h = new WeakMap(), D = new WeakMap(), c = new WeakMap(), m = new WeakMap(), L = new WeakMap(), u = new WeakMap(), A = new WeakSet(), E = function(t) {
|
|
140
|
+
s(this, m) === void 0 && n(this, D, new Promise((i) => {
|
|
141
|
+
n(this, m, () => {
|
|
142
|
+
i(s(this, c)), n(this, c, n(this, m, void 0));
|
|
143
|
+
});
|
|
144
|
+
}));
|
|
145
|
+
const e = () => {
|
|
146
|
+
var i;
|
|
147
|
+
s(this, c) === o && ((i = s(this, m)) == null || i.call(this));
|
|
148
|
+
}, o = n(this, c, (async () => {
|
|
149
|
+
n(this, d, await s(this, h).load(t)), n(this, l, s(this, h).locale), n(this, y, s(this, h).supportedLocales), n(this, f, t), n(this, T, R(s(this, l))), s(this, L).notify();
|
|
150
|
+
})());
|
|
151
|
+
o.then(e).catch((i) => {
|
|
152
|
+
e(), console.error(i);
|
|
153
|
+
});
|
|
154
|
+
};
|
|
12
155
|
export {
|
|
13
|
-
|
|
156
|
+
st as default
|
|
14
157
|
};
|
|
@@ -1,49 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
return parseInt(String(amount), 10) / divider;
|
|
9
|
-
};
|
|
10
|
-
const getLocalisedAmount = (amount, locale, currencyCode, hideCurrency = false, options = {}) => {
|
|
11
|
-
const stringAmount = amount.toString();
|
|
12
|
-
const decimalAmount = getDecimalAmount(stringAmount, currencyCode);
|
|
13
|
-
const formatterLocale = locale.replace("_", "-");
|
|
14
|
-
const formatterOptions = {
|
|
1
|
+
import u from "../constants/currency-codes.js";
|
|
2
|
+
import a from "../constants/currency-decimals.js";
|
|
3
|
+
const l = (t) => a[t] || 100, y = (t) => !!u[t], A = (t) => y(t) ? u[t] : null, C = (t, e) => {
|
|
4
|
+
const r = l(e);
|
|
5
|
+
return parseInt(String(t), 10) / r;
|
|
6
|
+
}, D = (t, e, r, o = !1, n = {}) => {
|
|
7
|
+
const c = t.toString(), s = C(c, r), i = e.replace("_", "-"), m = {
|
|
15
8
|
style: "currency",
|
|
16
|
-
currency:
|
|
9
|
+
currency: r,
|
|
17
10
|
currencyDisplay: "symbol",
|
|
18
|
-
...
|
|
11
|
+
...n
|
|
19
12
|
};
|
|
20
13
|
try {
|
|
21
|
-
return
|
|
22
|
-
} catch
|
|
23
|
-
return
|
|
14
|
+
return o ? f(i, m, s) : s.toLocaleString(i, m);
|
|
15
|
+
} catch {
|
|
16
|
+
return c;
|
|
24
17
|
}
|
|
25
|
-
};
|
|
26
|
-
const formatAmountWithoutCurrency = (locale, options, amount) => {
|
|
27
|
-
return Intl.NumberFormat(locale, options).formatToParts(amount).filter((p) => p.type !== "currency").reduce((s, p) => s + p.value, "").trim();
|
|
28
|
-
};
|
|
29
|
-
const getLocalisedPercentage = (percent = 0, locale) => {
|
|
30
|
-
const decimalPercent = percent / 100 / 100;
|
|
31
|
-
const localeOptions = {
|
|
32
|
-
style: "percent",
|
|
33
|
-
maximumFractionDigits: 2
|
|
34
|
-
};
|
|
35
|
-
try {
|
|
36
|
-
return decimalPercent.toLocaleString(locale, localeOptions);
|
|
37
|
-
} catch (e) {
|
|
38
|
-
return null;
|
|
39
|
-
}
|
|
40
|
-
};
|
|
18
|
+
}, f = (t, e, r) => Intl.NumberFormat(t, e).formatToParts(r).filter((o) => o.type !== "currency").reduce((o, n) => o + n.value, "").trim();
|
|
41
19
|
export {
|
|
42
|
-
formatAmountWithoutCurrency,
|
|
43
|
-
getCurrencyCode,
|
|
44
|
-
getDecimalAmount,
|
|
45
|
-
getDivider,
|
|
46
|
-
getLocalisedAmount,
|
|
47
|
-
|
|
48
|
-
isValidCurrencyCode
|
|
20
|
+
f as formatAmountWithoutCurrency,
|
|
21
|
+
A as getCurrencyCode,
|
|
22
|
+
C as getDecimalAmount,
|
|
23
|
+
l as getDivider,
|
|
24
|
+
D as getLocalisedAmount,
|
|
25
|
+
y as isValidCurrencyCode
|
|
49
26
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const D = {
|
|
2
2
|
AED: "د.إ",
|
|
3
3
|
AFN: "؋",
|
|
4
4
|
ALL: "L",
|
|
@@ -163,7 +163,7 @@ const CURRENCY_CODES = {
|
|
|
163
163
|
YER: "﷼",
|
|
164
164
|
ZAR: "R",
|
|
165
165
|
ZWD: "Z$"
|
|
166
|
-
};
|
|
166
|
+
}, R = D;
|
|
167
167
|
export {
|
|
168
|
-
|
|
168
|
+
R as default
|
|
169
169
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const D = {
|
|
2
2
|
// ZERO_DECIMAL_CURRENCIES
|
|
3
3
|
IDR: 1,
|
|
4
4
|
JPY: 1,
|
|
@@ -27,7 +27,7 @@ const CURRENCY_DECIMALS = {
|
|
|
27
27
|
OMR: 1e3,
|
|
28
28
|
LYD: 1e3,
|
|
29
29
|
TND: 1e3
|
|
30
|
-
};
|
|
30
|
+
}, R = D;
|
|
31
31
|
export {
|
|
32
|
-
|
|
32
|
+
R as default
|
|
33
33
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
3
|
-
const LOCALE_FORMAT_REGEX = /^[a-z]{2}-[A-Z]{2}$/;
|
|
4
|
-
const defaultTranslation = _en_US;
|
|
1
|
+
import n from "../translations/en-US.json.js";
|
|
2
|
+
const t = "en-US", A = /^[a-z]{2}-[A-Z]{2}$/, L = n;
|
|
5
3
|
export {
|
|
6
|
-
FALLBACK_LOCALE,
|
|
7
|
-
LOCALE_FORMAT_REGEX,
|
|
8
|
-
defaultTranslation
|
|
4
|
+
t as FALLBACK_LOCALE,
|
|
5
|
+
A as LOCALE_FORMAT_REGEX,
|
|
6
|
+
L as defaultTranslation
|
|
9
7
|
};
|