impact-nova 2.6.0-alpha.0 → 2.6.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/README.md +25 -27
- package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +3 -28
- package/dist/components/data/ag-grid-react/cell-renderers/date-display-renderer.d.ts +3 -0
- package/dist/components/data/ag-grid-react/cell-renderers/date-display-renderer.js +38 -31
- package/dist/components/data/ag-grid-react/cell-renderers/input-display-renderer.d.ts +1 -1
- package/dist/components/data/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js +65 -75
- package/dist/components/data/ag-grid-react/headers/advanced-filter/column-filter-section.d.ts +1 -1
- package/dist/components/data/ag-grid-react/headers/advanced-filter/column-filter-section.js +54 -54
- package/dist/components/data/ag-grid-react/headers/components/date-filter-picker.d.ts +1 -1
- package/dist/components/data/ag-grid-react/headers/components/header-info.d.ts +9 -3
- package/dist/components/data/ag-grid-react/headers/components/header-info.js +69 -61
- package/dist/components/data/ag-grid-react/headers/components/info-modal.js +8 -8
- package/dist/components/data/ag-grid-react/headers/header-search-input.js +119 -122
- package/dist/components/data/ag-grid-react/headers/utils/date-utils.d.ts +1 -2
- package/dist/components/data/ag-grid-react/headers/utils/date-utils.js +20 -25
- package/dist/components/data/ag-grid-react/headers/utils/filter-utils.d.ts +1 -1
- package/dist/components/data/ag-grid-react/index.d.ts +1 -1
- package/dist/components/data/ag-grid-react/index.js +254 -481
- package/dist/components/data/ag-grid-react/theme.js +2 -6
- package/dist/components/data/ag-grid-react/value-formatter.types.d.ts +0 -4
- package/dist/components/data/ag-grid-react/value-formatters.d.ts +19 -0
- package/dist/components/data/ag-grid-react/value-formatters.js +90 -88
- package/dist/components/data/data-table/build-column-tree-from-grid.d.ts +2 -0
- package/dist/components/data/data-table/build-column-tree-from-grid.js +64 -58
- package/dist/components/data/data-table/column-picker-authority.d.ts +35 -0
- package/dist/components/data/data-table/column-picker-authority.js +118 -0
- package/dist/components/data/data-table/column-picker-drop-validation.d.ts +7 -0
- package/dist/components/data/data-table/column-picker-drop-validation.js +37 -0
- package/dist/components/data/data-table/column-savability.d.ts +3 -0
- package/dist/components/data/data-table/column-savability.js +10 -0
- package/dist/components/data/data-table/data-table-column-apply.d.ts +2 -0
- package/dist/components/data/data-table/data-table-column-apply.js +84 -73
- package/dist/components/data/data-table/data-table-column-def-pin.js +31 -34
- package/dist/components/data/data-table/data-table-column-list-tree-apply.d.ts +10 -0
- package/dist/components/data/data-table/data-table-column-list-tree-apply.js +79 -0
- package/dist/components/data/data-table/data-table-column-list.js +122 -64
- package/dist/components/data/data-table/data-table-column-tree-cache.d.ts +12 -6
- package/dist/components/data/data-table/data-table-column-tree-cache.js +250 -131
- package/dist/components/data/data-table/data-table-context.js +5 -5
- package/dist/components/data/data-table/data-table-flat-column-virtual-rows.d.ts +27 -0
- package/dist/components/data/data-table/data-table-flat-column-virtual-rows.js +196 -0
- package/dist/components/data/data-table/data-table-picker-column-eligibility.d.ts +1 -0
- package/dist/components/data/data-table/data-table-picker-column-eligibility.js +7 -0
- package/dist/components/data/data-table/data-table-sheet-context.js +1 -1
- package/dist/components/data/data-table/data-table-sheet.js +1 -2
- package/dist/components/data/data-table/index.d.ts +2 -0
- package/dist/components/data/data-table/index.js +32 -28
- package/dist/components/data/data-table/patch-column-tree-indicators-from-grid.d.ts +5 -0
- package/dist/components/data/data-table/patch-column-tree-indicators-from-grid.js +28 -10
- package/dist/components/data/data-table/reconcile-column-tree-from-grid.d.ts +12 -0
- package/dist/components/data/data-table/reconcile-column-tree-from-grid.js +12 -0
- package/dist/components/data/data-table/use-data-table-column-list-sync.d.ts +10 -0
- package/dist/components/data/data-table/use-data-table-column-list-sync.js +250 -196
- package/dist/components/data/nested-list/components/NestedListContent.d.ts +10 -2
- package/dist/components/data/nested-list/components/NestedListContent.js +253 -138
- package/dist/components/data/nested-list/components/SortableItem.d.ts +2 -1
- package/dist/components/data/nested-list/components/SortableItem.js +62 -60
- package/dist/components/data/nested-list/hooks/useNestedListDragDrop.d.ts +10 -20
- package/dist/components/data/nested-list/hooks/useNestedListDragDrop.js +44 -233
- package/dist/components/data/nested-list/hooks/useVirtualNestedListDrag.d.ts +24 -0
- package/dist/components/data/nested-list/hooks/useVirtualNestedListDrag.js +128 -0
- package/dist/components/data/nested-list/nested-list-constants.d.ts +4 -1
- package/dist/components/data/nested-list/nested-list-constants.js +10 -4
- package/dist/components/data/nested-list/nested-list-display-utils.d.ts +11 -0
- package/dist/components/data/nested-list/nested-list-display-utils.js +74 -0
- package/dist/components/data/nested-list/nested-list-drop-engine.d.ts +31 -0
- package/dist/components/data/nested-list/nested-list-drop-engine.js +209 -0
- package/dist/components/data/nested-list/nested-list-flat-virtual-handlers.d.ts +26 -0
- package/dist/components/data/nested-list/nested-list-flat-virtual-handlers.js +67 -0
- package/dist/components/data/nested-list/nested-list-item-tree-mutations.d.ts +4 -0
- package/dist/components/data/nested-list/nested-list-item-tree-mutations.js +43 -0
- package/dist/components/data/nested-list/nested-list-lazy-flat-rows.d.ts +3 -0
- package/dist/components/data/nested-list/nested-list-lazy-flat-rows.js +34 -0
- package/dist/components/data/nested-list/nested-list-row-estimates.d.ts +9 -0
- package/dist/components/data/nested-list/nested-list-row-estimates.js +14 -0
- package/dist/components/data/nested-list/nested-list-scroll-anchor.d.ts +36 -0
- package/dist/components/data/nested-list/nested-list-scroll-anchor.js +47 -0
- package/dist/components/data/nested-list/nested-list-virtual-drop.d.ts +59 -0
- package/dist/components/data/nested-list/nested-list-virtual-drop.js +341 -0
- package/dist/components/data/nested-list/nested-list.js +322 -336
- package/dist/components/data/nested-list/nested-list.types.d.ts +17 -0
- package/dist/components/data-display/calendar/calendar-available-view.d.ts +6 -2
- package/dist/components/data-display/calendar/calendar-available-view.js +18 -19
- package/dist/components/data-display/calendar/calendar-config.js +21 -22
- package/dist/components/data-display/calendar/calendar-day-button.js +21 -21
- package/dist/components/data-display/calendar/calendar-day-picker-view.js +35 -36
- package/dist/components/data-display/calendar/calendar-fiscal-labels.d.ts +3 -3
- package/dist/components/data-display/calendar/calendar-fiscal-labels.js +62 -50
- package/dist/components/data-display/calendar/calendar-quarter-utils.js +12 -12
- package/dist/components/data-display/calendar/calendar-week-utils.d.ts +6 -0
- package/dist/components/data-display/calendar/calendar-week-utils.js +33 -33
- package/dist/components/data-display/calendar/calendar-year-panes.js +68 -58
- package/dist/components/data-display/calendar/calendar-year-utils.d.ts +13 -0
- package/dist/components/data-display/calendar/calendar-year-utils.js +59 -50
- package/dist/components/data-display/calendar/calendar.js +156 -153
- package/dist/components/data-display/calendar/fiscal-period-caption-select.js +22 -23
- package/dist/components/data-display/calendar/use-calendar-i18n.d.ts +0 -1
- package/dist/components/data-display/calendar/use-calendar-i18n.js +9 -10
- package/dist/components/data-display/chart/chart.js +72 -72
- package/dist/components/data-display/chart/chart.utils.d.ts +1 -1
- package/dist/components/data-display/chart/chart.utils.js +31 -40
- package/dist/components/feedback/sheet/sheet.js +1 -1
- package/dist/components/feedback/toast/toast.d.ts +1 -1
- package/dist/components/feedback/toast/toast.variants.d.ts +1 -1
- package/dist/components/flows/filter-panel/filter-panel.d.ts +1 -1
- package/dist/components/flows/filter-panel/filter-panel.js +64 -65
- package/dist/components/flows/filter-panel/filter-panel.types.d.ts +0 -1
- package/dist/components/flows/guidance/guidance-layer.js +34 -31
- package/dist/components/flows/guidance/hooks/useGuidanceOverlayGeometry.js +29 -20
- package/dist/components/flows/guidance/renderers/announcement-renderer.d.ts +1 -1
- package/dist/components/flows/guidance/renderers/announcement-renderer.js +74 -28
- package/dist/components/flows/guidance/renderers/guidance-action-tap-icon.d.ts +5 -0
- package/dist/components/flows/guidance/renderers/guidance-action-tap-icon.js +68 -0
- package/dist/components/flows/guidance/renderers/guidance-announcement-surface.d.ts +5 -0
- package/dist/components/flows/guidance/renderers/guidance-announcement-surface.js +76 -0
- package/dist/components/flows/guidance/renderers/guidance-card-shared.d.ts +43 -2
- package/dist/components/flows/guidance/renderers/guidance-card-shared.js +322 -99
- package/dist/components/flows/guidance/renderers/guidance-renderer-shared.d.ts +3 -0
- package/dist/components/flows/guidance/renderers/guidance-renderer-shared.js +189 -148
- package/dist/components/flows/guidance/renderers/guidance-shortcut-display.d.ts +9 -0
- package/dist/components/flows/guidance/renderers/guidance-shortcut-display.js +36 -0
- package/dist/components/flows/guidance/renderers/guidance-tour-overlay.d.ts +2 -1
- package/dist/components/flows/guidance/renderers/guidance-tour-overlay.js +152 -89
- package/dist/components/forms/date-picker/date-picker.js +126 -125
- package/dist/components/forms/date-picker/date-range-picker.js +192 -191
- package/dist/components/forms/date-picker/fiscal-pass-through.d.ts +6 -6
- package/dist/components/forms/date-picker/fiscal-pass-through.js +7 -3
- package/dist/components/forms/date-picker/multi-date-picker.js +67 -66
- package/dist/components/forms/date-picker/multi-quarter-picker.js +87 -87
- package/dist/components/forms/date-picker/multi-week-picker.js +83 -82
- package/dist/components/forms/date-picker/multi-year-picker.js +81 -81
- package/dist/components/forms/date-picker/quarter-range-picker.js +84 -84
- package/dist/components/forms/date-picker/week-picker.js +175 -174
- package/dist/components/forms/date-picker/week-range-picker.js +214 -213
- package/dist/components/forms/date-picker/year-range-picker.js +79 -79
- package/dist/components/ui/local-raster-icons/rasterIcons.d.ts +0 -1
- package/dist/components/ui/local-raster-icons/rasterIcons.js +25 -27
- package/dist/form-react/Fields/ChipsField.js +49 -48
- package/dist/form-react/Fields/DateRangeField.js +25 -25
- package/dist/form-react/Fields/MonthRangeField.js +57 -57
- package/dist/form-react/Fields/MultiMonthPickerField.js +28 -26
- package/dist/form-react/Fields/MultiWeekPickerField.js +41 -38
- package/dist/form-react/Fields/MultiYearPickerField.js +45 -45
- package/dist/form-react/Fields/SelectField.js +24 -26
- package/dist/form-react/Fields/TextFieldWithBackendValidation.js +27 -26
- package/dist/form-react/Fields/WeekRangePicker.js +18 -16
- package/dist/form-react/Fields/YearPickerField.js +27 -27
- package/dist/form-react/Fields/YearRangePickerField.js +29 -29
- package/dist/form-react/fields.d.ts +3 -0
- package/dist/form-react/fields.js +35 -29
- package/dist/form-react/types/fields.types.d.ts +39 -0
- package/dist/form-react/utils/date.utils.d.ts +52 -2
- package/dist/form-react/utils/date.utils.js +198 -62
- package/dist/i18n/defaultMessages.d.ts +5 -143
- package/dist/i18n/defaultMessages.js +25 -163
- package/dist/i18n/getDateFnsLocale.d.ts +4 -5
- package/dist/i18n/getDateFnsLocale.js +16 -46
- package/dist/i18n/i18n.types.d.ts +0 -13
- package/dist/i18n/impact-nova-i18n-context.d.ts +1 -1
- package/dist/i18n/impact-nova-i18n-context.js +25 -33
- package/dist/i18n/impact-nova-i18n-defaults.js +6 -8
- package/dist/i18n/index.d.ts +1 -4
- package/dist/i18n/index.js +16 -41
- package/dist/i18n/locales/de.js +3 -141
- package/dist/i18n/locales/es.js +3 -141
- package/dist/i18n/locales/hi.js +3 -141
- package/dist/i18n/locales/kn.js +3 -141
- package/dist/impact-nova-components.css +0 -249
- package/dist/impact-nova-tokens.scss +22 -6
- package/dist/impact-nova.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +603 -622
- package/dist/lib/fiscal-calendar/index.d.ts +2 -2
- package/dist/lib/fiscal-calendar/index.js +26 -24
- package/dist/lib/fiscal-calendar/week-selection.d.ts +5 -0
- package/dist/lib/fiscal-calendar/week-selection.js +56 -49
- package/dist/lib/guidance/engine/guidance-engine.d.ts +9 -0
- package/dist/lib/guidance/engine/guidance-engine.js +127 -65
- package/dist/lib/guidance/engine/manifest-validator.js +37 -30
- package/dist/lib/guidance/targets/target-resolver.d.ts +1 -1
- package/dist/lib/guidance/targets/target-resolver.js +32 -30
- package/dist/lib/guidance/types/guidance.types.d.ts +41 -0
- package/dist/lib/hash/fnv1a128.d.ts +16 -0
- package/dist/lib/hash/fnv1a128.js +21 -0
- package/dist/llms/index.js +2 -26
- package/dist/llms/rules/ag-grid.js +1 -1
- package/dist/llms/rules/best-practices.js +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/migration.js +1 -1
- package/dist/llms/rules/real-world-patterns.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/llms/rules/troubleshooting.js +1 -1
- package/dist/providers/app-providers.d.ts +1 -3
- package/dist/providers/app-providers.js +11 -22
- package/package.json +2 -13
- package/dist/components/data/ag-grid-react/chat/chat-capabilities.d.ts +0 -9
- package/dist/components/data/ag-grid-react/chat/chat-capabilities.js +0 -22
- package/dist/components/data/ag-grid-react/chat/chat-column.d.ts +0 -20
- package/dist/components/data/ag-grid-react/chat/chat-column.js +0 -81
- package/dist/components/data/ag-grid-react/chat/chat-composer.d.ts +0 -10
- package/dist/components/data/ag-grid-react/chat/chat-composer.js +0 -352
- package/dist/components/data/ag-grid-react/chat/chat-constants.d.ts +0 -17
- package/dist/components/data/ag-grid-react/chat/chat-constants.js +0 -22
- package/dist/components/data/ag-grid-react/chat/chat-format.d.ts +0 -41
- package/dist/components/data/ag-grid-react/chat/chat-format.js +0 -94
- package/dist/components/data/ag-grid-react/chat/chat-host.d.ts +0 -10
- package/dist/components/data/ag-grid-react/chat/chat-host.js +0 -651
- package/dist/components/data/ag-grid-react/chat/chat-host.types.d.ts +0 -13
- package/dist/components/data/ag-grid-react/chat/chat-html.d.ts +0 -2
- package/dist/components/data/ag-grid-react/chat/chat-html.js +0 -40
- package/dist/components/data/ag-grid-react/chat/chat-identity.d.ts +0 -13
- package/dist/components/data/ag-grid-react/chat/chat-identity.js +0 -24
- package/dist/components/data/ag-grid-react/chat/chat-menu.d.ts +0 -13
- package/dist/components/data/ag-grid-react/chat/chat-menu.js +0 -15
- package/dist/components/data/ag-grid-react/chat/chat-notify.d.ts +0 -17
- package/dist/components/data/ag-grid-react/chat/chat-notify.js +0 -124
- package/dist/components/data/ag-grid-react/chat/chat-persist.d.ts +0 -13
- package/dist/components/data/ag-grid-react/chat/chat-persist.js +0 -34
- package/dist/components/data/ag-grid-react/chat/chat-priority.d.ts +0 -13
- package/dist/components/data/ag-grid-react/chat/chat-priority.js +0 -79
- package/dist/components/data/ag-grid-react/chat/chat-summaries.d.ts +0 -2
- package/dist/components/data/ag-grid-react/chat/chat-summaries.js +0 -24
- package/dist/components/data/ag-grid-react/chat/chat-thread-ui.d.ts +0 -72
- package/dist/components/data/ag-grid-react/chat/chat-thread-ui.js +0 -713
- package/dist/components/data/ag-grid-react/chat/chat-toggle.d.ts +0 -6
- package/dist/components/data/ag-grid-react/chat/chat-toggle.js +0 -25
- package/dist/components/data/ag-grid-react/chat/chat-ui-actions.d.ts +0 -13
- package/dist/components/data/ag-grid-react/chat/chat-ui-actions.js +0 -26
- package/dist/components/data/ag-grid-react/chat/chat-window.d.ts +0 -14
- package/dist/components/data/ag-grid-react/chat/chat-window.js +0 -82
- package/dist/components/data/ag-grid-react/chat/chat-workspace.d.ts +0 -91
- package/dist/components/data/ag-grid-react/chat/chat-workspace.js +0 -555
- package/dist/components/data/ag-grid-react/chat/chat.types.d.ts +0 -319
- package/dist/components/data/ag-grid-react/chat/index.d.ts +0 -6
- package/dist/components/data/ag-grid-react/chat/index.js +0 -24
- package/dist/components/data/ag-grid-react/chat.story-data.d.ts +0 -34
- package/dist/components/data/ag-grid-react/chat.story-sources.d.ts +0 -4
- package/dist/components/data/ag-grid-react/comments/assets/comments-no-results.png.js +0 -4
- package/dist/components/data/ag-grid-react/comments/comment-mode-toggle.d.ts +0 -6
- package/dist/components/data/ag-grid-react/comments/comment-mode-toggle.js +0 -29
- package/dist/components/data/ag-grid-react/comments/comments-actions-menu.d.ts +0 -8
- package/dist/components/data/ag-grid-react/comments/comments-actions-menu.js +0 -18
- package/dist/components/data/ag-grid-react/comments/comments-ag-grid-presence.d.ts +0 -18
- package/dist/components/data/ag-grid-react/comments/comments-ag-grid-presence.js +0 -16
- package/dist/components/data/ag-grid-react/comments/comments-capabilities.d.ts +0 -11
- package/dist/components/data/ag-grid-react/comments/comments-capabilities.js +0 -26
- package/dist/components/data/ag-grid-react/comments/comments-constants.d.ts +0 -12
- package/dist/components/data/ag-grid-react/comments/comments-constants.js +0 -21
- package/dist/components/data/ag-grid-react/comments/comments-format.d.ts +0 -20
- package/dist/components/data/ag-grid-react/comments/comments-format.js +0 -49
- package/dist/components/data/ag-grid-react/comments/comments-generation.d.ts +0 -14
- package/dist/components/data/ag-grid-react/comments/comments-generation.js +0 -18
- package/dist/components/data/ag-grid-react/comments/comments-host.d.ts +0 -10
- package/dist/components/data/ag-grid-react/comments/comments-host.js +0 -343
- package/dist/components/data/ag-grid-react/comments/comments-host.types.d.ts +0 -18
- package/dist/components/data/ag-grid-react/comments/comments-identity.d.ts +0 -7
- package/dist/components/data/ag-grid-react/comments/comments-identity.js +0 -20
- package/dist/components/data/ag-grid-react/comments/comments-menu.d.ts +0 -29
- package/dist/components/data/ag-grid-react/comments/comments-menu.js +0 -35
- package/dist/components/data/ag-grid-react/comments/comments-overlay-anchor.d.ts +0 -22
- package/dist/components/data/ag-grid-react/comments/comments-overlay-anchor.js +0 -98
- package/dist/components/data/ag-grid-react/comments/comments-overlay.d.ts +0 -21
- package/dist/components/data/ag-grid-react/comments/comments-overlay.js +0 -406
- package/dist/components/data/ag-grid-react/comments/comments-panel.d.ts +0 -9
- package/dist/components/data/ag-grid-react/comments/comments-panel.js +0 -272
- package/dist/components/data/ag-grid-react/comments/comments-persist.d.ts +0 -11
- package/dist/components/data/ag-grid-react/comments/comments-persist.js +0 -19
- package/dist/components/data/ag-grid-react/comments/comments-reveal.d.ts +0 -11
- package/dist/components/data/ag-grid-react/comments/comments-reveal.js +0 -31
- package/dist/components/data/ag-grid-react/comments/comments-ui-actions.d.ts +0 -18
- package/dist/components/data/ag-grid-react/comments/comments-ui-actions.js +0 -22
- package/dist/components/data/ag-grid-react/comments/comments-window.d.ts +0 -10
- package/dist/components/data/ag-grid-react/comments/comments-window.js +0 -62
- package/dist/components/data/ag-grid-react/comments/comments.types.d.ts +0 -178
- package/dist/components/data/ag-grid-react/comments/index.d.ts +0 -5
- package/dist/components/data/ag-grid-react/comments/index.js +0 -15
- package/dist/components/data/ag-grid-react/comments-cell-renderers-showcase.d.ts +0 -25
- package/dist/components/data/ag-grid-react/comments.story-data.d.ts +0 -37
- package/dist/components/data/ag-grid-react/comments.story-sources.d.ts +0 -11
- package/dist/components/data/ag-grid-react/grid-cell-address.d.ts +0 -21
- package/dist/components/data/ag-grid-react/grid-cell-address.js +0 -21
- package/dist/components/data/ag-grid-react/grid-row-reveal.d.ts +0 -34
- package/dist/components/data/ag-grid-react/grid-row-reveal.js +0 -33
- package/dist/components/data/ag-grid-react/notes/index.d.ts +0 -2
- package/dist/components/data/ag-grid-react/notes/index.js +0 -1
- package/dist/components/data/ag-grid-react/notes/notes-ag-grid-adapter.d.ts +0 -25
- package/dist/components/data/ag-grid-react/notes/notes-ag-grid-adapter.js +0 -32
- package/dist/components/data/ag-grid-react/notes/notes-constants.d.ts +0 -2
- package/dist/components/data/ag-grid-react/notes/notes-constants.js +0 -4
- package/dist/components/data/ag-grid-react/notes/notes.types.d.ts +0 -12
- package/dist/components/data/ag-grid-react/notes.story-sources.d.ts +0 -7
- package/dist/components/data/ag-grid-react/nova-system-column.d.ts +0 -7
- package/dist/components/data/ag-grid-react/nova-system-column.js +0 -18
- package/dist/components/forms/date-picker/use-picker-i18n.d.ts +0 -6
- package/dist/components/forms/date-picker/use-picker-i18n.js +0 -11
- package/dist/components/ui/local-raster-icons/message3d.webp.js +0 -4
- package/dist/i18n/format/collator.d.ts +0 -1
- package/dist/i18n/format/collator.js +0 -7
- package/dist/i18n/format/date-pattern.d.ts +0 -5
- package/dist/i18n/format/date-pattern.js +0 -20
- package/dist/i18n/format/format-date.d.ts +0 -9
- package/dist/i18n/format/format-date.js +0 -56
- package/dist/i18n/format/format-number.d.ts +0 -20
- package/dist/i18n/format/format-number.js +0 -68
- package/dist/i18n/format/formatter-cache.d.ts +0 -9
- package/dist/i18n/format/formatter-cache.js +0 -66
- package/dist/i18n/format/index.d.ts +0 -6
- package/dist/i18n/format/parse-number.d.ts +0 -6
- package/dist/i18n/format/parse-number.js +0 -53
- package/dist/i18n/locale-config.d.ts +0 -28
- package/dist/i18n/locale-config.js +0 -32
- package/dist/i18n/week-start.d.ts +0 -6
- package/dist/i18n/week-start.js +0 -30
- package/dist/llms/rules/data-table-chat.js +0 -1
- package/dist/llms/rules/data-table-comments.js +0 -1
- package/dist/llms/rules/data-table-notes.js +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { localDateFromCivil as m } from "../../../lib/fiscal-calendar/civil-date.js";
|
|
2
2
|
import { buildFiscalYear as Q } from "../../../lib/fiscal-calendar/build-year.js";
|
|
3
3
|
import { isDateIntervalDisabled as D } from "./calendar-month-utils.js";
|
|
4
|
-
function
|
|
4
|
+
function A(r) {
|
|
5
5
|
return r.fy ?? r.year;
|
|
6
6
|
}
|
|
7
7
|
function x(r) {
|
|
8
|
-
return r ? new Date(
|
|
8
|
+
return r ? new Date(A(r), 0, 1) : /* @__PURE__ */ new Date();
|
|
9
9
|
}
|
|
10
10
|
function u(r) {
|
|
11
11
|
return (r.fy ?? r.year) * 4 + r.quarter;
|
|
@@ -19,7 +19,7 @@ function c(r) {
|
|
|
19
19
|
function y(r, n, f) {
|
|
20
20
|
return r ? (r.fy ?? r.year) === n && r.quarter === f : !1;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function F(r, n, f) {
|
|
23
23
|
if (!c(f))
|
|
24
24
|
return { isStart: !1, isEnd: !1, isMiddle: !1 };
|
|
25
25
|
const s = f.from, t = f.to;
|
|
@@ -36,16 +36,16 @@ function A(r, n, f) {
|
|
|
36
36
|
isMiddle: a > i && a < o
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function R(r, n, f) {
|
|
40
40
|
if (f === "single") return r;
|
|
41
41
|
if (f === "multiple") {
|
|
42
|
-
const t = n
|
|
42
|
+
const t = Array.isArray(n) ? n : [];
|
|
43
43
|
return t.some((i) => e(i, r)) ? t.filter((i) => !e(i, r)) : [...t, r];
|
|
44
44
|
}
|
|
45
45
|
const s = n;
|
|
46
46
|
return !s?.from || s.to ? { from: r } : e(r, s.from) ? s : u(r) < u(s.from) ? { from: r, to: s.from } : { from: s.from, to: r };
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function b(r, n, f) {
|
|
49
49
|
if (!f) return !1;
|
|
50
50
|
const s = { year: r, quarter: n, fy: r };
|
|
51
51
|
if (Array.isArray(f))
|
|
@@ -68,7 +68,7 @@ function l(r, n) {
|
|
|
68
68
|
end: new Date(r, n * 3, 0, 23, 59, 59, 999)
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function g(r, n, f, s) {
|
|
72
72
|
let t, a;
|
|
73
73
|
if (s?.calendarKind === "fiscal" && s.fiscalConfig)
|
|
74
74
|
try {
|
|
@@ -82,14 +82,14 @@ function b(r, n, f, s) {
|
|
|
82
82
|
return D(t, a, f);
|
|
83
83
|
}
|
|
84
84
|
export {
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
F as getQuarterRangeProps,
|
|
86
|
+
g as isQuarterDisabledForBounds,
|
|
87
87
|
y as isQuarterRangeEndpoint,
|
|
88
88
|
c as isQuarterRangeSelection,
|
|
89
|
-
|
|
89
|
+
b as isQuarterSelected,
|
|
90
90
|
e as isSameQuarter,
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
R as nextQuarterSelection,
|
|
92
|
+
A as quarterPaneYear,
|
|
93
93
|
u as quarterRank,
|
|
94
94
|
x as viewMonthFromQuarter
|
|
95
95
|
};
|
|
@@ -29,6 +29,12 @@ export declare function shouldHideCalendarWeekRow(week: {
|
|
|
29
29
|
outside?: boolean;
|
|
30
30
|
}>;
|
|
31
31
|
}, options: FiscalWeekRowOptions): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Weeks are the same when they share a start day.
|
|
34
|
+
* Do not use year/month/weekOfMonth — that civil week-of-month key can collide for
|
|
35
|
+
* boundary weeks (e.g. 26 Oct–1 Nov vs 2–8 Nov both become "Nov week 1").
|
|
36
|
+
* Same rule as WeekRangePicker `weekSelectionEqual`.
|
|
37
|
+
*/
|
|
32
38
|
export declare function isSameWeek(w1: WeekSelection, w2: WeekSelection): boolean;
|
|
33
39
|
export declare function calculateWeekSelection(weekOrDate: WeekPickerInput, options: {
|
|
34
40
|
calendarKind: CalendarKind;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { civilFromLocalDate as l } from "../../../lib/fiscal-calendar/civil-date.js";
|
|
2
2
|
import { resolveWeekSelection as S } from "../../../lib/fiscal-calendar/week-selection.js";
|
|
3
|
-
import { isCalendarPaddingWeek as
|
|
4
|
-
function
|
|
3
|
+
import { isCalendarPaddingWeek as T } from "./calendar-padding-week.utils.js";
|
|
4
|
+
function k(e, n) {
|
|
5
5
|
const a = e.days[0]?.date;
|
|
6
6
|
if (a)
|
|
7
|
-
return
|
|
7
|
+
return n?.(a)?.fiscalPeriod;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function w(e) {
|
|
10
10
|
return e.calendarKind !== "fiscal" || e.weekPeriod == null || e.panePeriod == null ? !1 : e.weekPeriod !== e.panePeriod;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function y(e) {
|
|
13
13
|
return e.calendarKind !== "fiscal" || e.weekPeriod == null || e.panePeriod == null ? !1 : e.weekPeriod === e.panePeriod;
|
|
14
14
|
}
|
|
15
|
-
function E(e,
|
|
16
|
-
return
|
|
15
|
+
function E(e, n) {
|
|
16
|
+
return y(n) ? !1 : T(e) || w(n);
|
|
17
17
|
}
|
|
18
|
-
function d(e,
|
|
19
|
-
return e.
|
|
18
|
+
function d(e, n) {
|
|
19
|
+
return e.startDate.getTime() === n.startDate.getTime();
|
|
20
20
|
}
|
|
21
|
-
function F(e,
|
|
21
|
+
function F(e, n) {
|
|
22
22
|
const a = e instanceof Date ? e : e.days.find((t) => !t.outside)?.date ?? e.days[0]?.date ?? /* @__PURE__ */ new Date();
|
|
23
|
-
return S(a,
|
|
23
|
+
return S(a, n);
|
|
24
24
|
}
|
|
25
|
-
function H(e,
|
|
25
|
+
function H(e, n, a) {
|
|
26
26
|
if (a === "single") return e;
|
|
27
27
|
if (a === "multiple") {
|
|
28
|
-
const i =
|
|
28
|
+
const i = n || [];
|
|
29
29
|
return i.some((f) => d(f, e)) ? i.filter((f) => !d(f, e)) : [...i, e];
|
|
30
30
|
}
|
|
31
|
-
const t =
|
|
31
|
+
const t = n;
|
|
32
32
|
if (!t?.from || t.to) return { from: e };
|
|
33
33
|
if (d(e, t.from)) return t;
|
|
34
34
|
const s = { from: t.from, to: e };
|
|
@@ -36,12 +36,12 @@ function H(e, r, a) {
|
|
|
36
36
|
}
|
|
37
37
|
function R(e) {
|
|
38
38
|
if (!e) return;
|
|
39
|
-
const
|
|
39
|
+
const n = [], a = (t) => {
|
|
40
40
|
const s = new Date(t.startDate);
|
|
41
41
|
s.setHours(0, 0, 0, 0);
|
|
42
42
|
const i = new Date(t.endDate);
|
|
43
43
|
for (i.setHours(0, 0, 0, 0); s <= i; )
|
|
44
|
-
|
|
44
|
+
n.push(new Date(s)), s.setDate(s.getDate() + 1);
|
|
45
45
|
};
|
|
46
46
|
if (Array.isArray(e))
|
|
47
47
|
e.forEach(a);
|
|
@@ -54,39 +54,39 @@ function R(e) {
|
|
|
54
54
|
t.setHours(0, 0, 0, 0);
|
|
55
55
|
const s = new Date(e.to.endDate);
|
|
56
56
|
for (s.setHours(0, 0, 0, 0); t <= s; )
|
|
57
|
-
|
|
57
|
+
n.push(new Date(t)), t.setDate(t.getDate() + 1);
|
|
58
58
|
}
|
|
59
59
|
} else
|
|
60
60
|
a(e);
|
|
61
|
-
return
|
|
61
|
+
return n;
|
|
62
62
|
}
|
|
63
|
-
function x(e,
|
|
63
|
+
function x(e, n, a) {
|
|
64
64
|
if (!e || e.length === 0)
|
|
65
65
|
return { range_start: [], range_middle: [], range_end: [] };
|
|
66
|
-
const t = [...e].sort((
|
|
67
|
-
|
|
68
|
-
f.add(l(
|
|
66
|
+
const t = [...e].sort((r, o) => r.getTime() - o.getTime()), s = [], i = [], u = [], f = /* @__PURE__ */ new Set(), m = /* @__PURE__ */ new Set();
|
|
67
|
+
n === "multiple" && Array.isArray(a) && a.forEach((r) => {
|
|
68
|
+
f.add(l(r.startDate)), m.add(l(r.endDate));
|
|
69
69
|
});
|
|
70
|
-
const
|
|
70
|
+
const h = (r, o) => {
|
|
71
71
|
if (o === 0) return !1;
|
|
72
72
|
const c = t[o - 1];
|
|
73
|
-
return
|
|
74
|
-
}, p = (
|
|
75
|
-
return t.forEach((
|
|
76
|
-
const c = l(
|
|
77
|
-
if (
|
|
78
|
-
W ? s.push(
|
|
73
|
+
return r.getTime() - c.getTime() <= 1440 * 60 * 1e3;
|
|
74
|
+
}, p = (r, o) => o === t.length - 1 ? !1 : t[o + 1].getTime() - r.getTime() <= 1440 * 60 * 1e3;
|
|
75
|
+
return t.forEach((r, o) => {
|
|
76
|
+
const c = l(r), W = f.has(c), P = m.has(c), g = h(r, o), D = p(r, o);
|
|
77
|
+
if (n === "multiple") {
|
|
78
|
+
W ? s.push(r) : P ? u.push(r) : i.push(r);
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
|
-
!
|
|
81
|
+
!g && !D ? (s.push(r), u.push(r)) : g ? D ? i.push(r) : u.push(r) : s.push(r);
|
|
82
82
|
}), { range_start: s, range_middle: i, range_end: u };
|
|
83
83
|
}
|
|
84
84
|
export {
|
|
85
85
|
F as calculateWeekSelection,
|
|
86
86
|
x as computeWeekRangeModifiers,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
k as fiscalPeriodForWeek,
|
|
88
|
+
w as isForeignFiscalWeekRow,
|
|
89
|
+
y as isOwnedFiscalWeekRow,
|
|
90
90
|
d as isSameWeek,
|
|
91
91
|
H as nextWeekSelection,
|
|
92
92
|
E as shouldHideCalendarWeekRow,
|
|
@@ -1,64 +1,74 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { ChevronRight as
|
|
3
|
-
import { cn as
|
|
4
|
-
import { Button as
|
|
5
|
-
import { CalendarPeriodCell as
|
|
6
|
-
import { PERIOD_RANGE_GRID_CLASSNAME as
|
|
7
|
-
import { getYearRangeProps as
|
|
8
|
-
const
|
|
9
|
-
function
|
|
10
|
-
pickerYear:
|
|
11
|
-
resolvedStartYear:
|
|
12
|
-
resolvedEndYear:
|
|
1
|
+
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronRight as u } from "impact-nova-icons";
|
|
3
|
+
import { cn as S } from "../../../lib/utils.js";
|
|
4
|
+
import { Button as x } from "../../primitives/button/button.js";
|
|
5
|
+
import { CalendarPeriodCell as Y } from "./calendar-period-cell.js";
|
|
6
|
+
import { PERIOD_RANGE_GRID_CLASSNAME as Z } from "./calendar-selection-appearance.js";
|
|
7
|
+
import { getYearPageYears as D, yearPageHasSelectableYear as E, getYearRangeProps as W, isYearRangeSelection as q } from "./calendar-year-utils.js";
|
|
8
|
+
const F = 12, J = 6, K = "w-[320px] min-w-[320px] max-w-[320px]";
|
|
9
|
+
function ot({
|
|
10
|
+
pickerYear: A,
|
|
11
|
+
resolvedStartYear: c,
|
|
12
|
+
resolvedEndYear: a,
|
|
13
13
|
previousYearLabel: R,
|
|
14
|
-
nextYearLabel:
|
|
15
|
-
yearLabels:
|
|
14
|
+
nextYearLabel: _,
|
|
15
|
+
yearLabels: l,
|
|
16
16
|
yearCaptions: p,
|
|
17
17
|
showFooter: v = !0,
|
|
18
|
-
pendingYearSelection:
|
|
19
|
-
selectedYear:
|
|
20
|
-
isYearSelected:
|
|
21
|
-
isYearDisabled:
|
|
22
|
-
onYearPageChange:
|
|
23
|
-
onYearClick:
|
|
18
|
+
pendingYearSelection: P,
|
|
19
|
+
selectedYear: w,
|
|
20
|
+
isYearSelected: C,
|
|
21
|
+
isYearDisabled: r,
|
|
22
|
+
onYearPageChange: g,
|
|
23
|
+
onYearClick: B
|
|
24
24
|
}) {
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
const s = !!p, t = s ? J : F, n = Math.floor(A / t) * t, G = n + t - 1, i = D(n, t), h = i[0] ?? n, f = i[i.length - 1] ?? G, d = v ? P : w, N = q(d) ? d : void 0, I = E({
|
|
26
|
+
pageStart: n - t,
|
|
27
|
+
pageSize: t,
|
|
28
|
+
resolvedStartYear: c,
|
|
29
|
+
resolvedEndYear: a,
|
|
30
|
+
isYearDisabled: r
|
|
31
|
+
}), b = E({
|
|
32
|
+
pageStart: n + t,
|
|
33
|
+
pageSize: t,
|
|
34
|
+
resolvedStartYear: c,
|
|
35
|
+
resolvedEndYear: a,
|
|
36
|
+
isYearDisabled: r
|
|
37
|
+
});
|
|
38
|
+
return /* @__PURE__ */ m(
|
|
29
39
|
"div",
|
|
30
40
|
{
|
|
31
41
|
"data-slot": "year-panes",
|
|
32
|
-
className:
|
|
42
|
+
className: S("flex flex-col gap-4 overflow-hidden p-3", K),
|
|
33
43
|
children: [
|
|
34
|
-
/* @__PURE__ */
|
|
44
|
+
/* @__PURE__ */ m("div", { className: "flex items-center justify-between", children: [
|
|
35
45
|
/* @__PURE__ */ e(
|
|
36
|
-
|
|
46
|
+
x,
|
|
37
47
|
{
|
|
38
48
|
variant: "ghost",
|
|
39
49
|
size: "icon",
|
|
40
50
|
className: "h-7 w-7 shrink-0",
|
|
41
51
|
"aria-label": R,
|
|
42
|
-
disabled:
|
|
43
|
-
onClick: () =>
|
|
44
|
-
children: /* @__PURE__ */ e(
|
|
52
|
+
disabled: !I,
|
|
53
|
+
onClick: () => g(n - t),
|
|
54
|
+
children: /* @__PURE__ */ e(u, { size: 16, className: "rotate-180" })
|
|
45
55
|
}
|
|
46
56
|
),
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
|
|
57
|
+
/* @__PURE__ */ m("div", { className: "text-sm font-medium text-content", children: [
|
|
58
|
+
l?.(h) ?? h,
|
|
49
59
|
" – ",
|
|
50
|
-
|
|
60
|
+
l?.(f) ?? f
|
|
51
61
|
] }),
|
|
52
62
|
/* @__PURE__ */ e(
|
|
53
|
-
|
|
63
|
+
x,
|
|
54
64
|
{
|
|
55
65
|
variant: "ghost",
|
|
56
66
|
size: "icon",
|
|
57
67
|
className: "h-7 w-7",
|
|
58
|
-
"aria-label":
|
|
59
|
-
disabled:
|
|
60
|
-
onClick: () =>
|
|
61
|
-
children: /* @__PURE__ */ e(
|
|
68
|
+
"aria-label": _,
|
|
69
|
+
disabled: !b,
|
|
70
|
+
onClick: () => g(n + t),
|
|
71
|
+
children: /* @__PURE__ */ e(u, { className: "h-4 w-4" })
|
|
62
72
|
}
|
|
63
73
|
)
|
|
64
74
|
] }),
|
|
@@ -66,26 +76,26 @@ function V({
|
|
|
66
76
|
"div",
|
|
67
77
|
{
|
|
68
78
|
"data-period-grid": "",
|
|
69
|
-
className:
|
|
70
|
-
children:
|
|
71
|
-
const
|
|
79
|
+
className: S(Z, s ? "grid-cols-2" : "grid-cols-3"),
|
|
80
|
+
children: i.map((o) => {
|
|
81
|
+
const z = o < c || o > a || r(o), k = C(o), O = !!N, { isStart: j, isEnd: M, isMiddle: H } = W(o, d), T = p?.(o);
|
|
72
82
|
return /* @__PURE__ */ e(
|
|
73
|
-
|
|
83
|
+
Y,
|
|
74
84
|
{
|
|
75
|
-
selected:
|
|
85
|
+
selected: k,
|
|
76
86
|
disabled: z,
|
|
77
|
-
isRange:
|
|
78
|
-
isStart:
|
|
79
|
-
isEnd:
|
|
80
|
-
isMiddle:
|
|
81
|
-
hasRangeEnd: !!
|
|
82
|
-
size:
|
|
83
|
-
columns:
|
|
84
|
-
onClick: () =>
|
|
85
|
-
caption:
|
|
86
|
-
children:
|
|
87
|
+
isRange: O,
|
|
88
|
+
isStart: j,
|
|
89
|
+
isEnd: M,
|
|
90
|
+
isMiddle: H,
|
|
91
|
+
hasRangeEnd: !!N?.to,
|
|
92
|
+
size: s ? "year-caption" : "year",
|
|
93
|
+
columns: s ? 2 : 3,
|
|
94
|
+
onClick: () => B(o),
|
|
95
|
+
caption: T,
|
|
96
|
+
children: l?.(o) ?? String(o)
|
|
87
97
|
},
|
|
88
|
-
|
|
98
|
+
o
|
|
89
99
|
);
|
|
90
100
|
})
|
|
91
101
|
}
|
|
@@ -95,8 +105,8 @@ function V({
|
|
|
95
105
|
);
|
|
96
106
|
}
|
|
97
107
|
export {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
108
|
+
ot as CalendarYearPanes,
|
|
109
|
+
J as YEAR_CAPTION_PAGE_SIZE,
|
|
110
|
+
F as YEAR_PAGE_SIZE,
|
|
111
|
+
K as YEAR_PANE_WIDTH_CLASS
|
|
102
112
|
};
|
|
@@ -11,6 +11,19 @@ export declare function getYearRangeProps(year: number, currentSelection: YearSe
|
|
|
11
11
|
};
|
|
12
12
|
export declare function nextYearSelection(selection: YearSelection, prev: YearSelection | YearSelection[] | YearRange | undefined, yearMode: "single" | "multiple" | "range" | "multi-range"): YearSelection | YearSelection[] | YearRange | undefined;
|
|
13
13
|
export declare function isYearSelectedForSelection(year: number, currentSelection: YearSelection | YearSelection[] | YearRange | undefined): boolean;
|
|
14
|
+
/** Full page of years (never shrink the grid when bounds are tight). */
|
|
15
|
+
export declare function getYearPageYears(pageStart: number, pageSize: number): number[];
|
|
16
|
+
/**
|
|
17
|
+
* Prev/next stay enabled only when the target page has at least one selectable year.
|
|
18
|
+
* Disabled / out-of-nav years still render on the current page.
|
|
19
|
+
*/
|
|
20
|
+
export declare function yearPageHasSelectableYear(options: {
|
|
21
|
+
pageStart: number;
|
|
22
|
+
pageSize: number;
|
|
23
|
+
resolvedStartYear: number;
|
|
24
|
+
resolvedEndYear: number;
|
|
25
|
+
isYearDisabled: (year: number) => boolean;
|
|
26
|
+
}): boolean;
|
|
14
27
|
export declare function isYearDisabledForBounds(year: number, disabled?: unknown, options?: {
|
|
15
28
|
calendarKind?: "gregorian" | "fiscal";
|
|
16
29
|
fiscalConfig?: FiscalCalendarConfig;
|
|
@@ -1,75 +1,84 @@
|
|
|
1
1
|
import { localDateFromCivil as d } from "../../../lib/fiscal-calendar/civil-date.js";
|
|
2
|
-
import { buildFiscalYear as
|
|
3
|
-
import { isDateIntervalDisabled as
|
|
4
|
-
function
|
|
2
|
+
import { buildFiscalYear as u } from "../../../lib/fiscal-calendar/build-year.js";
|
|
3
|
+
import { isDateIntervalDisabled as m } from "./calendar-month-utils.js";
|
|
4
|
+
function A(r) {
|
|
5
5
|
return r ? new Date(r.fy ?? r.year, 0, 1) : /* @__PURE__ */ new Date();
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function e(r) {
|
|
8
8
|
return r.fy ?? r.year;
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
return
|
|
10
|
+
function o(r, s) {
|
|
11
|
+
return e(r) === e(s);
|
|
12
12
|
}
|
|
13
13
|
function l(r) {
|
|
14
14
|
return !!(r && !Array.isArray(r) && ("from" in r || "to" in r));
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
if (!l(
|
|
16
|
+
function E(r, s) {
|
|
17
|
+
if (!l(s))
|
|
18
18
|
return { isStart: !1, isEnd: !1, isMiddle: !1 };
|
|
19
|
-
const
|
|
20
|
-
if (!
|
|
21
|
-
if (!
|
|
22
|
-
return { isStart: !1, isEnd: t ?
|
|
23
|
-
const
|
|
24
|
-
if (!t) return { isStart: r ===
|
|
25
|
-
const
|
|
19
|
+
const f = s.from, t = s.to;
|
|
20
|
+
if (!f && !t) return { isStart: !1, isEnd: !1, isMiddle: !1 };
|
|
21
|
+
if (!f)
|
|
22
|
+
return { isStart: !1, isEnd: t ? e(t) === r : !1, isMiddle: !1 };
|
|
23
|
+
const n = e(f);
|
|
24
|
+
if (!t) return { isStart: r === n, isEnd: !1, isMiddle: !1 };
|
|
25
|
+
const i = e(t);
|
|
26
26
|
return {
|
|
27
|
-
isStart: r ===
|
|
28
|
-
isEnd: r ===
|
|
29
|
-
isMiddle: r >
|
|
27
|
+
isStart: r === n,
|
|
28
|
+
isEnd: r === i,
|
|
29
|
+
isMiddle: r > n && r < i
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
if (
|
|
34
|
-
if (
|
|
35
|
-
const
|
|
36
|
-
return
|
|
32
|
+
function b(r, s, f) {
|
|
33
|
+
if (f === "single") return r;
|
|
34
|
+
if (f === "multiple") {
|
|
35
|
+
const n = Array.isArray(s) ? s : [];
|
|
36
|
+
return n.some((a) => o(a, r)) ? n.filter((a) => !o(a, r)) : [...n, r];
|
|
37
37
|
}
|
|
38
|
-
const t =
|
|
39
|
-
return !t?.from || t.to ? { from: r } :
|
|
38
|
+
const t = s;
|
|
39
|
+
return !t?.from || t.to ? { from: r } : o(r, t.from) ? t : e(r) < e(t.from) ? { from: r, to: t.from } : { from: t.from, to: r };
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
if (!
|
|
43
|
-
const
|
|
44
|
-
if (Array.isArray(
|
|
45
|
-
return
|
|
46
|
-
if (l(
|
|
47
|
-
const t =
|
|
48
|
-
if (!t) return
|
|
49
|
-
const
|
|
50
|
-
if (!
|
|
51
|
-
const a = n
|
|
52
|
-
return r >=
|
|
41
|
+
function w(r, s) {
|
|
42
|
+
if (!s) return !1;
|
|
43
|
+
const f = { year: r, fy: r };
|
|
44
|
+
if (Array.isArray(s))
|
|
45
|
+
return s.some((t) => e(t) === r);
|
|
46
|
+
if (l(s)) {
|
|
47
|
+
const t = s.from, n = s.to;
|
|
48
|
+
if (!t) return n ? e(n) === r : !1;
|
|
49
|
+
const i = e(t);
|
|
50
|
+
if (!n) return r === i;
|
|
51
|
+
const a = e(n);
|
|
52
|
+
return r >= i && r <= a;
|
|
53
53
|
}
|
|
54
|
-
return
|
|
54
|
+
return o(s, f) || s.year === r;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
function c(r, s) {
|
|
57
|
+
return Array.from({ length: s }, (f, t) => r + t);
|
|
58
|
+
}
|
|
59
|
+
function F(r) {
|
|
60
|
+
const { pageStart: s, pageSize: f, resolvedStartYear: t, resolvedEndYear: n, isYearDisabled: i } = r;
|
|
61
|
+
return c(s, f).some((a) => a < t || a > n ? !1 : !i(a));
|
|
62
|
+
}
|
|
63
|
+
function M(r, s, f) {
|
|
64
|
+
let t = new Date(r, 0, 1), n = new Date(r, 11, 31, 23, 59, 59, 999);
|
|
65
|
+
if (f?.calendarKind === "fiscal" && f.fiscalConfig)
|
|
59
66
|
try {
|
|
60
|
-
const
|
|
61
|
-
t = d(
|
|
67
|
+
const i = u(f.fiscalConfig, r);
|
|
68
|
+
t = d(i.start), n = d(i.end);
|
|
62
69
|
} catch {
|
|
63
70
|
}
|
|
64
|
-
return
|
|
71
|
+
return m(t, n, s);
|
|
65
72
|
}
|
|
66
73
|
export {
|
|
67
|
-
|
|
68
|
-
|
|
74
|
+
c as getYearPageYears,
|
|
75
|
+
E as getYearRangeProps,
|
|
76
|
+
o as isSameYear,
|
|
69
77
|
M as isYearDisabledForBounds,
|
|
70
78
|
l as isYearRangeSelection,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
79
|
+
w as isYearSelectedForSelection,
|
|
80
|
+
b as nextYearSelection,
|
|
81
|
+
A as viewMonthFromYear,
|
|
82
|
+
e as yearKey,
|
|
83
|
+
F as yearPageHasSelectableYear
|
|
75
84
|
};
|