@adyen/adyen-platform-experience-web 1.0.2 → 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/Calendar/calendar/facade/Calendar.js +221 -211
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +103 -94
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +201 -200
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +19 -18
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.js +18 -17
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js +17 -20
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.js +9 -12
- package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +39 -43
- package/dist/es/components/internal/Calendar/calendar/timeslice/TimeSlice.js +10 -10
- package/dist/es/components/internal/Calendar/calendar/timeslice/index.js +25 -26
- package/dist/es/components/internal/Calendar/calendar/utils.js +64 -16
- package/dist/es/components/internal/Calendar/hooks/useCalendar.js +40 -38
- package/dist/es/components/internal/Calendar/hooks/useTimezone.js +2 -2
- 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 +17 -16
- 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/AmountFilter.js +14 -14
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +58 -52
- package/dist/es/components/internal/FilterBar/filters/BaseFilter/BaseFilter.js +1 -1
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilterCore.js +81 -76
- 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/datetime/restamper/utils.js +26 -26
- 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/primitives/time/today/main.js +38 -43
- 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/Calendar/calendar/facade/Calendar.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts +3 -3
- package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeframe/frames/YearFrame.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeframe/frames/YearFrame.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/presets/lastNDays.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/presets/yearToDate.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts +0 -5
- package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeslice/TimeSlice.d.ts +2 -2
- package/dist/types/components/internal/Calendar/calendar/timeslice/TimeSlice.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeslice/index.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/types.d.ts +6 -1
- package/dist/types/components/internal/Calendar/calendar/types.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/utils.d.ts +13 -4
- package/dist/types/components/internal/Calendar/calendar/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/types.d.ts +1 -0
- package/dist/types/components/internal/Calendar/types.d.ts.map +1 -1
- 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/DatePicker.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/filters/DateFilter/DateFilterCore.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/datetime/restamper/utils.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/primitives/time/today/main.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 +8 -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
|
@@ -1,100 +1,104 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
if (!s.has(
|
|
5
|
-
throw TypeError("Cannot " +
|
|
1
|
+
var _t = Object.defineProperty;
|
|
2
|
+
var bt = (a, s, i) => s in a ? _t(a, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[s] = i;
|
|
3
|
+
var st = (a, s, i) => (bt(a, typeof s != "symbol" ? s + "" : s, i), i), ot = (a, s, i) => {
|
|
4
|
+
if (!s.has(a))
|
|
5
|
+
throw TypeError("Cannot " + i);
|
|
6
6
|
};
|
|
7
|
-
var t = (
|
|
8
|
-
if (s.has(
|
|
7
|
+
var t = (a, s, i) => (ot(a, s, "read from private field"), i ? i.call(a) : s.get(a)), r = (a, s, i) => {
|
|
8
|
+
if (s.has(a))
|
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
|
10
|
-
s instanceof WeakSet ? s.add(
|
|
11
|
-
},
|
|
12
|
-
var
|
|
10
|
+
s instanceof WeakSet ? s.add(a) : s.set(a, i);
|
|
11
|
+
}, e = (a, s, i, h) => (ot(a, s, "write to private field"), h ? h.call(a, i) : s.set(a, i), i);
|
|
12
|
+
var K = (a, s, i, h) => ({
|
|
13
13
|
set _(o) {
|
|
14
|
-
|
|
14
|
+
e(a, s, o, i);
|
|
15
15
|
},
|
|
16
16
|
get _() {
|
|
17
|
-
return t(
|
|
18
|
-
}
|
|
19
|
-
}), n = (
|
|
20
|
-
import { resolveTimeFrameBlockSize as
|
|
21
|
-
import { UNBOUNDED_SLICE as
|
|
22
|
-
import { computeTimestampOffset as
|
|
23
|
-
import { FIRST_WEEK_DAYS as
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
|
|
32
|
-
|
|
17
|
+
return t(a, s, h);
|
|
18
|
+
}
|
|
19
|
+
}), n = (a, s, i) => (ot(a, s, "access private method"), i);
|
|
20
|
+
import { resolveTimeFrameBlockSize as xt, downsizeTimeFrame as gt } from "../common/utils.js";
|
|
21
|
+
import Lt, { UNBOUNDED_SLICE as ft } from "../../timeslice/index.js";
|
|
22
|
+
import { computeTimestampOffset as Ut } from "../../utils.js";
|
|
23
|
+
import { FIRST_WEEK_DAYS as Nt, DAY_MS as pt, SHIFT_FRAME as ct, SHIFT_PERIOD as wt, SHIFT_BLOCK as zt, CURSOR_NEXT_BLOCK as Wt, CURSOR_PREV_BLOCK as Mt, CURSOR_LINE_END as Ht, CURSOR_LINE_START as Kt, CURSOR_BLOCK_END as vt, CURSOR_BLOCK_START as Yt, CURSOR_DOWNWARD as Vt, CURSOR_UPWARD as Xt, CURSOR_FORWARD as jt, CURSOR_BACKWARD as qt, SELECTION_COLLAPSE as Gt, SELECTION_NEAREST as Ot, SELECTION_FARTHEST as Ft, SELECTION_TO as kt, SELECTION_FROM as Tt } from "../../constants.js";
|
|
24
|
+
import Jt from "../common/flags.js";
|
|
25
|
+
import { BASE_LOCALE as Pt } from "../../../../../../core/Localization/datetime/restamper/constants.js";
|
|
26
|
+
import It from "../../../../../../primitives/time/today/main.js";
|
|
27
|
+
import { createIndexed as it } from "../../../../../../primitives/auxiliary/indexed/main.js";
|
|
28
|
+
import { isUndefined as et, isNullish as D, isBoolean as Bt, isFunction as Qt } from "../../../../../../utils/value/is.js";
|
|
29
|
+
import { isInfinity as lt, clamp as ut, mid as Zt, isBitSafeInteger as St, mod as $t } from "../../../../../../utils/value/number.js";
|
|
30
|
+
import { enumerable as I } from "../../../../../../utils/struct/property.js";
|
|
31
|
+
import { struct as ts } from "../../../../../../utils/struct/main.js";
|
|
32
|
+
var N, g, Y, V, X, j, k, F, B, w, z, W, _, S, q, l, f, c, M, E, b, H, T, G, J, R, C, P, Q, rt, ht, nt, Ct, at, Rt, y, L, mt, yt, p, O, x, v, Z, dt;
|
|
33
|
+
const U = class U {
|
|
33
34
|
constructor() {
|
|
34
|
-
r(this, ht);
|
|
35
|
-
r(this, C);
|
|
36
35
|
r(this, nt);
|
|
36
|
+
r(this, at);
|
|
37
|
+
r(this, y);
|
|
38
|
+
r(this, mt);
|
|
37
39
|
r(this, p);
|
|
38
40
|
r(this, x);
|
|
39
|
-
r(this,
|
|
41
|
+
r(this, Z);
|
|
40
42
|
r(this, g, 0);
|
|
41
|
-
r(this,
|
|
43
|
+
r(this, Y, void 0);
|
|
42
44
|
r(this, V, void 0);
|
|
43
45
|
r(this, X, -1);
|
|
44
|
-
r(this,
|
|
45
|
-
r(this,
|
|
46
|
+
r(this, j, -1);
|
|
47
|
+
r(this, k, void 0);
|
|
46
48
|
r(this, F, void 0);
|
|
47
|
-
r(this,
|
|
48
|
-
r(this,
|
|
49
|
-
r(this,
|
|
49
|
+
r(this, B, void 0);
|
|
50
|
+
r(this, w, !1);
|
|
51
|
+
r(this, z, void 0);
|
|
50
52
|
r(this, W, 0);
|
|
51
|
-
r(this,
|
|
52
|
-
r(this, S, t(
|
|
53
|
-
r(this,
|
|
53
|
+
r(this, _, []);
|
|
54
|
+
r(this, S, t(U, N));
|
|
55
|
+
r(this, q, 12);
|
|
54
56
|
r(this, l, void 0);
|
|
55
|
-
r(this,
|
|
56
|
-
r(this,
|
|
57
|
+
r(this, f, void 0);
|
|
58
|
+
r(this, c, 1);
|
|
59
|
+
r(this, M, void 0);
|
|
57
60
|
r(this, E, void 0);
|
|
58
|
-
r(this,
|
|
59
|
-
r(this,
|
|
60
|
-
r(this,
|
|
61
|
-
r(this, G, 1 / 0);
|
|
62
|
-
r(this, y, -1 / 0);
|
|
63
|
-
r(this, B, 1 / 0);
|
|
61
|
+
r(this, b, void 0);
|
|
62
|
+
r(this, H, It());
|
|
63
|
+
r(this, T, void 0);
|
|
64
|
+
r(this, G, -1 / 0);
|
|
64
65
|
r(this, J, 1 / 0);
|
|
65
|
-
r(this,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
66
|
+
r(this, R, -1 / 0);
|
|
67
|
+
r(this, C, 1 / 0);
|
|
68
|
+
r(this, P, 1 / 0);
|
|
69
|
+
r(this, Q, 0);
|
|
70
|
+
st(this, "daysInWeek", 0);
|
|
71
|
+
st(this, "origin");
|
|
72
|
+
st(this, "originTimestamp");
|
|
73
|
+
r(this, rt, it(() => this.daysInWeek, this.getDayOfWeekAtIndex.bind(this)));
|
|
74
|
+
r(this, ht, it(() => t(this, c), n(this, mt, yt).bind(this)));
|
|
71
75
|
}
|
|
72
76
|
get fromTimestamp() {
|
|
73
|
-
return t(this,
|
|
77
|
+
return t(this, G);
|
|
74
78
|
}
|
|
75
79
|
get toTimestamp() {
|
|
76
|
-
return t(this,
|
|
80
|
+
return t(this, J);
|
|
77
81
|
}
|
|
78
82
|
get numberOfBlocks() {
|
|
79
|
-
return t(this,
|
|
83
|
+
return t(this, P);
|
|
80
84
|
}
|
|
81
85
|
get blankSelection() {
|
|
82
|
-
return t(this, l) === t(this,
|
|
86
|
+
return t(this, l) === t(this, f) && et(t(this, f));
|
|
83
87
|
}
|
|
84
88
|
get cursor() {
|
|
85
|
-
return t(this,
|
|
89
|
+
return t(this, k) ?? -1;
|
|
86
90
|
}
|
|
87
91
|
get daysOfWeek() {
|
|
88
|
-
return t(this,
|
|
92
|
+
return t(this, rt);
|
|
89
93
|
}
|
|
90
94
|
get dynamicBlockHeight() {
|
|
91
|
-
return t(this,
|
|
95
|
+
return t(this, w);
|
|
92
96
|
}
|
|
93
97
|
set dynamicBlockHeight(s) {
|
|
94
|
-
D(s) ?
|
|
98
|
+
D(s) ? e(this, w, !!s) : Bt(s) && e(this, w, s);
|
|
95
99
|
}
|
|
96
100
|
set effect(s) {
|
|
97
|
-
D(s) ?
|
|
101
|
+
D(s) ? e(this, z, void 0) : Qt(s) && e(this, z, s);
|
|
98
102
|
}
|
|
99
103
|
get firstWeekDay() {
|
|
100
104
|
return t(this, W);
|
|
@@ -102,225 +106,222 @@ const b = class b {
|
|
|
102
106
|
set firstWeekDay(s) {
|
|
103
107
|
if (D(s))
|
|
104
108
|
this.firstWeekDay = 0;
|
|
105
|
-
else if (!
|
|
109
|
+
else if (!Nt.includes(s) || t(this, W) === e(this, W, s))
|
|
106
110
|
return;
|
|
107
111
|
}
|
|
108
112
|
get frameBlocks() {
|
|
109
|
-
return t(this,
|
|
113
|
+
return t(this, ht);
|
|
110
114
|
}
|
|
111
115
|
get isAtEnd() {
|
|
112
|
-
return !
|
|
116
|
+
return !lt(t(this, C)) && t(this, C) === t(this, c) - 1;
|
|
113
117
|
}
|
|
114
118
|
get isAtStart() {
|
|
115
|
-
return !
|
|
119
|
+
return !lt(t(this, R)) && t(this, R) === 0;
|
|
116
120
|
}
|
|
117
121
|
get locale() {
|
|
118
122
|
return t(this, S);
|
|
119
123
|
}
|
|
120
124
|
set locale(s) {
|
|
121
|
-
const
|
|
125
|
+
const i = t(this, S);
|
|
122
126
|
if (D(s))
|
|
123
|
-
|
|
127
|
+
e(this, S, t(U, N));
|
|
124
128
|
else if (typeof Intl < "u")
|
|
125
129
|
try {
|
|
126
|
-
|
|
130
|
+
e(this, S, new Intl.Locale(s).toString());
|
|
127
131
|
} catch {
|
|
128
|
-
|
|
132
|
+
e(this, S, t(U, N));
|
|
129
133
|
}
|
|
130
|
-
t(this, S) !==
|
|
134
|
+
t(this, S) !== i && this.refreshFrame(!0);
|
|
131
135
|
}
|
|
132
136
|
get selectionStart() {
|
|
133
137
|
return t(this, l);
|
|
134
138
|
}
|
|
135
139
|
get selectionEnd() {
|
|
136
|
-
return t(this,
|
|
140
|
+
return t(this, f);
|
|
137
141
|
}
|
|
138
142
|
get size() {
|
|
139
|
-
return t(this,
|
|
143
|
+
return t(this, c);
|
|
140
144
|
}
|
|
141
145
|
set size(s) {
|
|
142
|
-
const
|
|
143
|
-
t(this,
|
|
146
|
+
const i = Math.min(!D(s) && xt(s) || 1, t(this, q));
|
|
147
|
+
t(this, c) !== e(this, c, i) && (n(this, Z, dt).call(this), this.refreshFrame());
|
|
144
148
|
}
|
|
145
149
|
get timeslice() {
|
|
146
150
|
return t(this, E);
|
|
147
151
|
}
|
|
148
152
|
set timeslice(s) {
|
|
149
|
-
if (s === t(this,
|
|
153
|
+
if (s === t(this, M) || D(s) && t(this, M) === ft)
|
|
150
154
|
return;
|
|
151
155
|
const {
|
|
152
|
-
from:
|
|
156
|
+
from: i,
|
|
153
157
|
to: h,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
timezone: o
|
|
159
|
+
} = e(this, M, s ?? ft);
|
|
160
|
+
e(this, E, Lt(i, h)), this.timezone = o;
|
|
161
|
+
}
|
|
162
|
+
get timezone() {
|
|
163
|
+
return t(this, b);
|
|
164
|
+
}
|
|
165
|
+
set timezone(s) {
|
|
166
|
+
t(this, E).timezone = s, e(this, b, t(this, E).timezone), e(this, H, It(t(this, b))), t(this, T) && (t(this, T).call(this), e(this, T, t(this, H).subscribe(this.refreshFrame.bind(this, !0)))), n(this, nt, Ct).call(this);
|
|
160
167
|
}
|
|
161
168
|
set trackCurrentDay(s) {
|
|
162
|
-
|
|
169
|
+
Bt(s) ? s && !t(this, T) ? e(this, T, t(this, H).subscribe(this.refreshFrame.bind(this, !0))) : !s && t(this, T) && (t(this, T).call(this), e(this, T, void 0)) : D(s) && (this.trackCurrentDay = !1);
|
|
163
170
|
}
|
|
164
171
|
get units() {
|
|
165
|
-
return t(this,
|
|
172
|
+
return t(this, Q);
|
|
166
173
|
}
|
|
167
174
|
initialize() {
|
|
168
|
-
this.
|
|
175
|
+
this.timeslice = ft;
|
|
169
176
|
}
|
|
170
177
|
refreshFrame(s = !1) {
|
|
171
|
-
var
|
|
172
|
-
if (t(this,
|
|
178
|
+
var i;
|
|
179
|
+
if (t(this, _).length = 0, !(et(t(this, F)) || s)) {
|
|
173
180
|
const h = this.getFrameBlockAtIndex(t(this, g)), {
|
|
174
181
|
from: o,
|
|
175
|
-
to:
|
|
176
|
-
} = h.inner, [d] = n(this,
|
|
177
|
-
|
|
178
|
-
const
|
|
179
|
-
if (
|
|
180
|
-
return
|
|
181
|
-
if (
|
|
182
|
-
return
|
|
183
|
-
|
|
184
|
-
const
|
|
185
|
-
|
|
182
|
+
to: m
|
|
183
|
+
} = h.inner, [d] = n(this, y, L).call(this, this.getTimestampAtIndex(o + t(this, F)), !1);
|
|
184
|
+
e(this, F, this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(o), d));
|
|
185
|
+
const u = o + t(this, F), A = ut(o, u, m);
|
|
186
|
+
if (A > u)
|
|
187
|
+
return e(this, F, this.getUnitsForFrameBlockAtIndex(--K(this, g)._) + u - A), t(this, g) >= 0 ? this.refreshFrame() : (e(this, g, t(this, c) - 1), this.shiftFrameByOffset(-1, ct));
|
|
188
|
+
if (A < u)
|
|
189
|
+
return e(this, F, u - A - 1), ++K(this, g)._ < t(this, c) ? this.refreshFrame() : (e(this, g, 0), this.shiftFrameByOffset(1, ct));
|
|
190
|
+
e(this, Y, o), e(this, V, m), e(this, B, n(this, y, L).call(this, this.getTimestampAtIndex(u), !1)[0]), e(this, F, this.getCursorBlockOriginTimestampOffset(t(this, B))), e(this, k, o + t(this, F));
|
|
191
|
+
const $ = t(this, g) > 0 ? this.getFrameBlockAtIndex(0) : h, tt = t(this, g) < t(this, c) - 1 ? this.getFrameBlockAtIndex(t(this, c) - 1) : h;
|
|
192
|
+
e(this, X, $.inner.from), e(this, j, tt.inner.to), e(this, Q, tt.outer.to + 1);
|
|
186
193
|
}
|
|
187
|
-
this.withCurrentDayTimestamp(
|
|
188
|
-
}
|
|
189
|
-
shiftFrameByOffset(s,
|
|
190
|
-
if (s &&
|
|
191
|
-
switch (
|
|
192
|
-
case
|
|
193
|
-
return n(this, x,
|
|
194
|
-
case
|
|
195
|
-
return n(this, x,
|
|
196
|
-
case
|
|
194
|
+
this.withCurrentDayTimestamp(), (i = t(this, z)) == null || i.call(this);
|
|
195
|
+
}
|
|
196
|
+
shiftFrameByOffset(s, i) {
|
|
197
|
+
if (s && St(s))
|
|
198
|
+
switch (i) {
|
|
199
|
+
case zt:
|
|
200
|
+
return n(this, x, v).call(this, s);
|
|
201
|
+
case wt:
|
|
202
|
+
return n(this, x, v).call(this, s * 12);
|
|
203
|
+
case ct:
|
|
197
204
|
default:
|
|
198
|
-
return n(this, x,
|
|
205
|
+
return n(this, x, v).call(this, s * t(this, c));
|
|
199
206
|
}
|
|
200
207
|
}
|
|
201
208
|
shiftFrameCursor(s) {
|
|
202
209
|
switch (s) {
|
|
203
|
-
case
|
|
210
|
+
case qt:
|
|
204
211
|
return n(this, p, O).call(this, -1);
|
|
205
|
-
case
|
|
212
|
+
case jt:
|
|
206
213
|
return n(this, p, O).call(this, 1);
|
|
207
|
-
case
|
|
214
|
+
case Xt:
|
|
208
215
|
return n(this, p, O).call(this, -this.rowspan);
|
|
209
|
-
case
|
|
216
|
+
case Vt:
|
|
210
217
|
return n(this, p, O).call(this, this.rowspan);
|
|
211
|
-
case
|
|
212
|
-
return n(this, p, O).call(this, t(this,
|
|
213
|
-
case
|
|
214
|
-
return n(this, p, O).call(this, t(this, V) - t(this,
|
|
215
|
-
case
|
|
216
|
-
return n(this, p, O).call(this, -(t(this,
|
|
217
|
-
case
|
|
218
|
-
return n(this, p, O).call(this, this.rowspan - (t(this,
|
|
219
|
-
case
|
|
218
|
+
case Yt:
|
|
219
|
+
return n(this, p, O).call(this, t(this, Y) - t(this, k));
|
|
220
|
+
case vt:
|
|
221
|
+
return n(this, p, O).call(this, t(this, V) - t(this, k));
|
|
222
|
+
case Kt:
|
|
223
|
+
return n(this, p, O).call(this, -(t(this, k) % this.rowspan));
|
|
224
|
+
case Ht:
|
|
225
|
+
return n(this, p, O).call(this, this.rowspan - (t(this, k) % this.rowspan + 1));
|
|
226
|
+
case Mt:
|
|
220
227
|
return n(this, p, O).call(this, -this.getUnitsForFrameBlockAtIndex((t(this, g) ?? 0) - 1));
|
|
221
|
-
case
|
|
228
|
+
case Wt:
|
|
222
229
|
return n(this, p, O).call(this, this.getUnitsForFrameBlockAtIndex(t(this, g) ?? 0));
|
|
223
230
|
}
|
|
224
|
-
if (!(s < 0) && s >= t(this, X) && s <= t(this,
|
|
225
|
-
return n(this, p, O).call(this, s - t(this,
|
|
231
|
+
if (!(s < 0) && s >= t(this, X) && s <= t(this, j))
|
|
232
|
+
return n(this, p, O).call(this, s - t(this, k));
|
|
226
233
|
}
|
|
227
234
|
shiftFrameToTimestamp(s) {
|
|
228
|
-
|
|
229
|
-
i(this, F, this.getCursorBlockOriginTimestampOffset(i(this, _, this.originTimestamp = e))), this.reoriginate(), [v(this, y)._, v(this, B)._] = this.getEdgeBlockOffsetsFromOrigin(), n(this, Q, lt).call(this), this.refreshFrame(), n(this, p, O).call(this, this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(t(this, T)), e));
|
|
235
|
+
e(this, B, this.originTimestamp = n(this, y, L).call(this, s, !1).reduce((i, h) => i + h)), e(this, F, this.getCursorBlockOriginTimestampOffset(t(this, B))), this.reoriginate(), [K(this, R)._, K(this, C)._] = this.getEdgeBlockOffsetsFromOrigin(), n(this, Z, dt).call(this), this.refreshFrame(), n(this, p, O).call(this, this.getUnitsOffsetForTimestamp(this.getTimestampAtIndex(t(this, k)), t(this, B)));
|
|
230
236
|
}
|
|
231
237
|
clearSelection() {
|
|
232
|
-
this.blankSelection || (
|
|
238
|
+
this.blankSelection || (e(this, l, e(this, f, void 0)), this.refreshFrame(!0));
|
|
233
239
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
switch (
|
|
237
|
-
case
|
|
238
|
-
|
|
240
|
+
updateSelection(s, i) {
|
|
241
|
+
const h = t(this, l), o = t(this, f), m = n(this, y, L).call(this, s, !1).reduce((d, u) => d + u);
|
|
242
|
+
switch (i === Ft && (m <= h ? i = kt : m >= o && (i = Tt)), i) {
|
|
243
|
+
case Tt:
|
|
244
|
+
e(this, l, m), e(this, f, Math.max(t(this, l), o ?? m));
|
|
239
245
|
break;
|
|
240
|
-
case
|
|
241
|
-
|
|
242
|
-
break;
|
|
243
|
-
}
|
|
244
|
-
if (z(h))
|
|
245
|
-
return 0;
|
|
246
|
-
const a = n(this, C, A).call(this, s, !1).reduce((f, I) => f + I, 0), d = this.getUnitsOffsetForTimestamp(h, a) * (o ? -1 : 1);
|
|
247
|
-
return d && (d > 0 ? 1 : -1);
|
|
248
|
-
}
|
|
249
|
-
updateSelection(s, e) {
|
|
250
|
-
const h = t(this, l), o = t(this, c), a = n(this, C, A).call(this, s, !1).reduce((d, f) => d + f, 0);
|
|
251
|
-
switch (e === pt && (a <= h ? e = ot : a >= o && (e = st)), e) {
|
|
252
|
-
case st:
|
|
253
|
-
i(this, l, a), i(this, c, Math.max(t(this, l), o ?? a));
|
|
246
|
+
case kt:
|
|
247
|
+
e(this, f, m), e(this, l, Math.min(h ?? m, t(this, f)));
|
|
254
248
|
break;
|
|
255
|
-
case
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
case gt: {
|
|
260
|
-
let d = Math.abs(a - (h ?? a)), f = Math.abs(a - (o ?? a));
|
|
261
|
-
e === gt && ([d, f] = [f, d]), d > f ? i(this, l, a) : i(this, c, a);
|
|
249
|
+
case Ft:
|
|
250
|
+
case Ot: {
|
|
251
|
+
let d = Math.abs(m - (h ?? m)), u = Math.abs(m - (o ?? m));
|
|
252
|
+
i === Ot && ([d, u] = [u, d]), d > u ? e(this, l, m) : e(this, f, m);
|
|
262
253
|
break;
|
|
263
254
|
}
|
|
264
|
-
case
|
|
255
|
+
case Gt:
|
|
265
256
|
default:
|
|
266
|
-
|
|
257
|
+
e(this, l, e(this, f, m));
|
|
267
258
|
break;
|
|
268
259
|
}
|
|
269
|
-
(t(this, l) !== h || t(this,
|
|
260
|
+
(t(this, l) !== h || t(this, f) !== o) && this.refreshFrame(!0);
|
|
270
261
|
}
|
|
271
262
|
};
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
263
|
+
N = new WeakMap(), g = new WeakMap(), Y = new WeakMap(), V = new WeakMap(), X = new WeakMap(), j = new WeakMap(), k = new WeakMap(), F = new WeakMap(), B = new WeakMap(), w = new WeakMap(), z = new WeakMap(), W = new WeakMap(), _ = new WeakMap(), S = new WeakMap(), q = new WeakMap(), l = new WeakMap(), f = new WeakMap(), c = new WeakMap(), M = new WeakMap(), E = new WeakMap(), b = new WeakMap(), H = new WeakMap(), T = new WeakMap(), G = new WeakMap(), J = new WeakMap(), R = new WeakMap(), C = new WeakMap(), P = new WeakMap(), Q = new WeakMap(), rt = new WeakMap(), ht = new WeakMap(), nt = new WeakSet(), Ct = function() {
|
|
264
|
+
const {
|
|
265
|
+
from: s,
|
|
266
|
+
to: i,
|
|
267
|
+
span: h,
|
|
268
|
+
offsets: o
|
|
269
|
+
} = t(this, E);
|
|
270
|
+
e(this, G, s - o.from), e(this, J, i - o.to), e(this, P, h);
|
|
271
|
+
const m = et(t(this, l)) ? t(this, l) : Math.max(t(this, l), s), d = et(t(this, f)) ? t(this, f) : Math.min(t(this, f), i);
|
|
272
|
+
m === t(this, l) || d === t(this, f) ? (e(this, l, m), e(this, f, d)) : e(this, l, e(this, f, void 0)), this.reslice(), e(this, q, gt(12, this.numberOfBlocks)), e(this, c, gt(t(this, c), this.numberOfBlocks)), this.shiftFrameToTimestamp(t(this, B));
|
|
273
|
+
}, at = new WeakSet(), Rt = function(s) {
|
|
274
|
+
return ut(t(this, R), s || 0, t(this, C) - t(this, c) + 1);
|
|
275
|
+
}, y = new WeakSet(), L = function(s, i = !0) {
|
|
275
276
|
let h = new Date(s).getTime();
|
|
276
277
|
if (isNaN(h))
|
|
277
|
-
return n(this,
|
|
278
|
+
return n(this, y, L).call(this, Date.now());
|
|
278
279
|
const {
|
|
279
280
|
from: o,
|
|
280
|
-
to:
|
|
281
|
-
} = t(this, E), d =
|
|
282
|
-
d !== h &&
|
|
283
|
-
const
|
|
284
|
-
return [h -
|
|
285
|
-
},
|
|
286
|
-
if (
|
|
287
|
-
if (!t(this,
|
|
288
|
-
const
|
|
289
|
-
if (!
|
|
281
|
+
to: m
|
|
282
|
+
} = t(this, E), d = ut(o, h, m);
|
|
283
|
+
d !== h && i ? (h = Zt(o, m), (isNaN(h) || lt(h)) && (h = d)) : h = d;
|
|
284
|
+
const u = Ut(h, t(this, b));
|
|
285
|
+
return [h - u, u];
|
|
286
|
+
}, mt = new WeakSet(), yt = function(s) {
|
|
287
|
+
if (St(s) && s >= 0 && s < t(this, c)) {
|
|
288
|
+
if (!t(this, _)[s]) {
|
|
289
|
+
const i = this.getFrameBlockAtIndex(s);
|
|
290
|
+
if (!i)
|
|
290
291
|
return;
|
|
291
|
-
const h
|
|
292
|
-
t(this,
|
|
293
|
-
datetime:
|
|
294
|
-
label:
|
|
295
|
-
length:
|
|
296
|
-
month:
|
|
297
|
-
year:
|
|
298
|
-
}, (
|
|
299
|
-
const
|
|
300
|
-
return
|
|
301
|
-
const [
|
|
302
|
-
return
|
|
303
|
-
datetime:
|
|
304
|
-
flags:
|
|
305
|
-
index:
|
|
306
|
-
label:
|
|
307
|
-
timestamp:
|
|
292
|
+
const [h, o] = this.getFormattedDataForFrameBlock(i[i.inner.from][0] + pt / 2), m = i.outer.from;
|
|
293
|
+
t(this, _)[s] = it({
|
|
294
|
+
datetime: I(o),
|
|
295
|
+
label: I(h),
|
|
296
|
+
length: I(Math.ceil(i.outer.units / this.rowspan)),
|
|
297
|
+
month: I(i.month),
|
|
298
|
+
year: I(i.year)
|
|
299
|
+
}, (d) => {
|
|
300
|
+
const u = d * this.rowspan;
|
|
301
|
+
return it(this.rowspan, (A) => {
|
|
302
|
+
const [$, tt] = i[A + u], [At, Dt] = this.getFormattedDataForBlockCell($ + pt / 2);
|
|
303
|
+
return ts({
|
|
304
|
+
datetime: I(Dt),
|
|
305
|
+
flags: I(Jt(tt)),
|
|
306
|
+
index: I(m + A + u),
|
|
307
|
+
label: I(At),
|
|
308
|
+
timestamp: I($)
|
|
308
309
|
});
|
|
309
310
|
});
|
|
310
311
|
});
|
|
311
312
|
}
|
|
312
|
-
return t(this,
|
|
313
|
+
return t(this, _)[s];
|
|
313
314
|
}
|
|
314
315
|
}, p = new WeakSet(), O = function(s) {
|
|
315
|
-
s !== 0 && (
|
|
316
|
-
}, x = new WeakSet(),
|
|
317
|
-
const
|
|
318
|
-
|
|
319
|
-
},
|
|
320
|
-
const s = t(this,
|
|
321
|
-
|
|
322
|
-
}, r(
|
|
323
|
-
let
|
|
316
|
+
s !== 0 && (e(this, F, t(this, F) + s), this.refreshFrame());
|
|
317
|
+
}, x = new WeakSet(), v = function(s) {
|
|
318
|
+
const i = n(this, at, Rt).call(this, s);
|
|
319
|
+
i && (this.shiftOrigin(i), e(this, R, t(this, R) - i), e(this, C, t(this, C) - i), e(this, g, $t(t(this, g) - i, t(this, c))), this.refreshFrame());
|
|
320
|
+
}, Z = new WeakSet(), dt = function() {
|
|
321
|
+
const s = t(this, c) - 1, i = Math.min(s - this.origin % t(this, c), t(this, C)) - s;
|
|
322
|
+
i && n(this, x, v).call(this, i);
|
|
323
|
+
}, r(U, N, Pt);
|
|
324
|
+
let Et = U;
|
|
324
325
|
export {
|
|
325
|
-
|
|
326
|
+
Et as default
|
|
326
327
|
};
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import m from "../factory.js";
|
|
2
|
+
import { nowTimestamp as D, getRangeTimestampsContextIntegerPropertyFactory as c } from "../utils.js";
|
|
3
|
+
import { startOfDay as f } from "../../utils.js";
|
|
4
|
+
const p = 365, y = 1, i = 1, u = c(y, p, i), N = (o) => {
|
|
5
|
+
const e = u(o);
|
|
6
|
+
return m({
|
|
6
7
|
from: ({
|
|
7
|
-
now:
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
now: a,
|
|
9
|
+
timezone: r,
|
|
10
|
+
systemToTimezone: s,
|
|
11
|
+
timezoneToSystem: n
|
|
10
12
|
}) => {
|
|
11
|
-
const t = new Date(
|
|
12
|
-
|
|
13
|
-
return e && (o += e > 1 ? -1 : e < -1 ? 1 : e), f(t), t.setDate(t.getDate() - o), n(t);
|
|
13
|
+
const t = new Date(n(f(a, r)));
|
|
14
|
+
return t.setDate(t.getDate() - e.value + 1), s(t);
|
|
14
15
|
},
|
|
15
|
-
to:
|
|
16
|
+
to: D
|
|
16
17
|
}, {
|
|
17
|
-
numberOfDays:
|
|
18
|
+
numberOfDays: e.descriptor
|
|
18
19
|
})();
|
|
19
|
-
},
|
|
20
|
+
}, M = N;
|
|
20
21
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
i as DEFAULT_NUM_DAYS,
|
|
23
|
+
p as MAX_NUM_DAYS,
|
|
24
|
+
y as MIN_NUM_DAYS,
|
|
25
|
+
M as default
|
|
25
26
|
};
|
package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.js
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import m from "../../factory.js";
|
|
2
|
+
import { nowTimestamp as a } from "../../utils.js";
|
|
3
|
+
import { startOfMonth as c } from "../../../utils.js";
|
|
4
|
+
import { clamp as i } from "../../../../../../../utils/value/number.js";
|
|
5
|
+
const p = Object.freeze([0, 1, 0, 0, 0, 0, -1]), h = (e = 0) => {
|
|
6
|
+
const o = ~~i(0, e, 1 / 0) || 0;
|
|
7
|
+
return m({
|
|
7
8
|
from: ({
|
|
8
9
|
now: n,
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
timezone: r,
|
|
11
|
+
systemToTimezone: s,
|
|
12
|
+
timezoneToSystem: f
|
|
11
13
|
}) => {
|
|
12
|
-
const t = new Date(
|
|
13
|
-
|
|
14
|
-
return o && (s += o > 1 ? -1 : o < -1 ? 1 : o), i(t), t.setMonth(t.getMonth() - s), r(t);
|
|
14
|
+
const t = new Date(f(c(n, r)));
|
|
15
|
+
return t.setMonth(t.getMonth() - o), s(t);
|
|
15
16
|
},
|
|
16
|
-
...
|
|
17
|
-
offsets:
|
|
17
|
+
...o ? {
|
|
18
|
+
offsets: p
|
|
18
19
|
} : {
|
|
19
|
-
to:
|
|
20
|
+
to: a
|
|
20
21
|
}
|
|
21
22
|
});
|
|
22
|
-
},
|
|
23
|
+
}, F = h;
|
|
23
24
|
export {
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
p as ONE_MONTH_OFFSETS,
|
|
26
|
+
F as default
|
|
26
27
|
};
|