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,4 +1,9 @@
|
|
|
1
|
+
import { FlatNestedListRow } from './nested-list-virtual-drop';
|
|
1
2
|
import type * as React from "react";
|
|
3
|
+
export interface FlatVirtualRowModel {
|
|
4
|
+
rowCount: number;
|
|
5
|
+
getRowAt: (index: number) => FlatNestedListRow;
|
|
6
|
+
}
|
|
2
7
|
export interface NestedListItem {
|
|
3
8
|
id: string;
|
|
4
9
|
label: string;
|
|
@@ -47,9 +52,21 @@ export interface NestedListProps {
|
|
|
47
52
|
initialCollapsedItems?: Record<string, boolean>;
|
|
48
53
|
onCollapseChange?: (collapsedItems: Record<string, boolean>) => void;
|
|
49
54
|
canDrag?: (item: NestedListItem, level: number) => boolean;
|
|
55
|
+
isValidDropTarget?: (options: {
|
|
56
|
+
activeItemId: string;
|
|
57
|
+
overItemId: string;
|
|
58
|
+
items: NestedListItem[];
|
|
59
|
+
insertAfter?: boolean;
|
|
60
|
+
}) => boolean;
|
|
50
61
|
searchPlaceholder?: string;
|
|
51
62
|
className?: string;
|
|
52
63
|
groupLabel?: string;
|
|
53
64
|
submitButtonLabel?: string;
|
|
54
65
|
cancelButtonLabel?: string;
|
|
66
|
+
dragMode?: NestedListDragMode;
|
|
67
|
+
onVirtualReorder?: (fromIndex: number, toIndex: number) => void;
|
|
68
|
+
onVirtualDrop?: (activeId: string, overId: string, insertAfter: boolean) => void;
|
|
69
|
+
flatVirtualRowResolver?: (searchQuery: string) => FlatVirtualRowModel;
|
|
70
|
+
onFlatVirtualSelectAll?: (shouldSelectAll: boolean) => void;
|
|
55
71
|
}
|
|
72
|
+
export type NestedListDragMode = 'sortable' | 'virtual-index';
|
|
@@ -21,7 +21,11 @@ export declare function hasCalendarValue(value: unknown): boolean;
|
|
|
21
21
|
/** Clamp `from` into `[minDate, maxDate]`. O(1). */
|
|
22
22
|
export declare function firstAvailableDate(minDate?: Date, maxDate?: Date, from?: Date): Date;
|
|
23
23
|
/**
|
|
24
|
-
* When auto-navigate is on and there is no selection, land the
|
|
25
|
-
* first enabled period. Does not write a selected value.
|
|
24
|
+
* When auto-navigate is on and there is no selection, land the **left** pane on
|
|
25
|
+
* the first enabled period. Does not write a selected value.
|
|
26
|
+
*
|
|
27
|
+
* For dual-month date/week pickers, "already visible on the right pane" is not
|
|
28
|
+
* enough — the first enabled month must become the left pane so users do not
|
|
29
|
+
* open onto a disabled neighbor month.
|
|
26
30
|
*/
|
|
27
31
|
export declare function resolveAvailableViewMonth(options: ResolveAvailableViewMonthOptions): Date;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const
|
|
1
|
+
const m = 12;
|
|
2
2
|
function u(t) {
|
|
3
3
|
return new Date(t.getFullYear(), t.getMonth(), t.getDate());
|
|
4
4
|
}
|
|
5
5
|
function f(t) {
|
|
6
6
|
return new Date(t.getFullYear(), t.getMonth(), 1);
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function F(t, e) {
|
|
9
9
|
return t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth();
|
|
10
10
|
}
|
|
11
11
|
function A(t) {
|
|
@@ -17,7 +17,7 @@ function A(t) {
|
|
|
17
17
|
...e.after instanceof Date ? { maxDate: e.after } : {}
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function h(t) {
|
|
21
21
|
if (t == null) return !1;
|
|
22
22
|
if (Array.isArray(t)) return t.length > 0;
|
|
23
23
|
if (t instanceof Date) return !0;
|
|
@@ -30,7 +30,7 @@ function Y(t) {
|
|
|
30
30
|
}
|
|
31
31
|
return !1;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function s(t, e, n = /* @__PURE__ */ new Date()) {
|
|
34
34
|
const r = u(n);
|
|
35
35
|
if (t) {
|
|
36
36
|
const a = u(t);
|
|
@@ -42,7 +42,7 @@ function g(t, e, n = /* @__PURE__ */ new Date()) {
|
|
|
42
42
|
}
|
|
43
43
|
return r;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function g(t, e, n) {
|
|
46
46
|
const r = f(t), a = new Date(
|
|
47
47
|
t.getFullYear(),
|
|
48
48
|
t.getMonth() + e,
|
|
@@ -54,32 +54,31 @@ function D(t, e, n) {
|
|
|
54
54
|
), i = u(n).getTime();
|
|
55
55
|
return i >= r.getTime() && i <= a.getTime();
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function D(t, e, n) {
|
|
58
58
|
const r = Math.floor(t / n) * n;
|
|
59
59
|
return e >= r && e <= r + n - 1;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Y(t) {
|
|
62
62
|
const {
|
|
63
63
|
seed: e,
|
|
64
64
|
pickerType: n,
|
|
65
65
|
minDate: r,
|
|
66
66
|
maxDate: a,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
yearPageSize: s = 12
|
|
67
|
+
hasSelection: i = !1,
|
|
68
|
+
autoNavigateToAvailable: l = !1,
|
|
69
|
+
yearPageSize: c = 12
|
|
71
70
|
} = t;
|
|
72
|
-
if (!
|
|
73
|
-
const o =
|
|
74
|
-
return n === "date" || n === "week" ?
|
|
71
|
+
if (!l || i) return e;
|
|
72
|
+
const o = s(r, a, e);
|
|
73
|
+
return n === "date" || n === "week" ? g(e, 1, o) ? e : f(o) : n === "month" || n === "quarter" ? e.getFullYear() === o.getFullYear() ? e : new Date(o.getFullYear(), 0, 1) : D(e.getFullYear(), o.getFullYear(), c) ? e : new Date(o.getFullYear(), 0, 1);
|
|
75
74
|
}
|
|
76
75
|
export {
|
|
77
|
-
|
|
76
|
+
m as DEFAULT_YEAR_PAGE_SIZE,
|
|
78
77
|
A as boundsFromDisabled,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
78
|
+
s as firstAvailableDate,
|
|
79
|
+
h as hasCalendarValue,
|
|
80
|
+
F as isSameCalendarMonth,
|
|
81
|
+
Y as resolveAvailableViewMonth,
|
|
83
82
|
u as startOfDayDate,
|
|
84
83
|
f as startOfMonthDate
|
|
85
84
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { FISCAL_PATTERNS as
|
|
2
|
-
import { toFiscalCalendarConfig as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return t.fiscalConfig ? t.fiscalConfig : o({
|
|
1
|
+
import { FISCAL_PATTERNS as a } from "../../../lib/fiscal-calendar/types.js";
|
|
2
|
+
import { toFiscalCalendarConfig as i } from "../../../lib/fiscal-calendar/week-selection.js";
|
|
3
|
+
const f = new Date(1900, 0, 1), u = new Date(2100, 11, 31);
|
|
4
|
+
function c(t) {
|
|
5
|
+
return t.fiscalConfig ? t.fiscalConfig : i({
|
|
7
6
|
calendarKind: t.calendarKind,
|
|
8
7
|
fiscalMode: t.fiscalMode,
|
|
9
8
|
fiscalMonthPattern: t.fiscalMonthPattern,
|
|
@@ -11,40 +10,40 @@ function s(t) {
|
|
|
11
10
|
weekStartsOn: t.weekStartsOn
|
|
12
11
|
});
|
|
13
12
|
}
|
|
14
|
-
function
|
|
13
|
+
function g(t) {
|
|
15
14
|
const { calendarKind: n, fiscalMode: r, fiscalMonthPattern: e } = t;
|
|
16
15
|
if (n === "fiscal") {
|
|
17
16
|
if (e) return e;
|
|
18
|
-
if (r === "advanced") return
|
|
17
|
+
if (r === "advanced") return a["4-5-4"];
|
|
19
18
|
}
|
|
20
19
|
}
|
|
21
|
-
function
|
|
20
|
+
function s(t) {
|
|
22
21
|
return Array.from(
|
|
23
22
|
{ length: 12 },
|
|
24
|
-
(n, r) =>
|
|
23
|
+
(n, r) => new Date(2024, r, 1).toLocaleString(t, { month: "long" })
|
|
25
24
|
);
|
|
26
25
|
}
|
|
27
|
-
function
|
|
26
|
+
function d(t) {
|
|
28
27
|
return Array.from(
|
|
29
28
|
{ length: 12 },
|
|
30
|
-
(n, r) =>
|
|
29
|
+
(n, r) => new Date(2024, r, 1).toLocaleString(t, { month: "short" })
|
|
31
30
|
);
|
|
32
31
|
}
|
|
33
|
-
function
|
|
32
|
+
function h(t, n) {
|
|
34
33
|
if (!(t !== "month" && t !== "quarter"))
|
|
35
34
|
return n === "range" || n === "multiple" || n === "multi-range" ? "dual" : "single";
|
|
36
35
|
}
|
|
37
|
-
function
|
|
36
|
+
function A(t, n, r) {
|
|
38
37
|
if (!(t === "month" || t === "quarter" || t === "year"))
|
|
39
38
|
return n === "range" || n === "multiple" || n === "multi-range" || r === "range" || r === "multiple" || r === "multi-range" ? "dual" : "single";
|
|
40
39
|
}
|
|
41
40
|
export {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
41
|
+
u as CALENDAR_DEFAULT_END_MONTH,
|
|
42
|
+
f as CALENDAR_DEFAULT_START_MONTH,
|
|
43
|
+
A as getCalendarDayLayoutAttr,
|
|
44
|
+
h as getCalendarMonthLayoutAttr,
|
|
45
|
+
s as getMonthNamesLong,
|
|
46
|
+
d as getMonthNamesShort,
|
|
47
|
+
c as resolveFiscalConfig,
|
|
48
|
+
g as resolveFiscalPattern
|
|
50
49
|
};
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
3
|
import "react-day-picker";
|
|
4
|
-
import { cn as
|
|
5
|
-
import { Button as
|
|
6
|
-
import { useCalendarDayHover as
|
|
4
|
+
import { cn as p } from "../../../lib/utils.js";
|
|
5
|
+
import { Button as v } from "../../primitives/button/button.js";
|
|
6
|
+
import { useCalendarDayHover as g } from "./calendar-day-hover.js";
|
|
7
7
|
import { dayButtonAppearanceClassName as _ } from "./calendar-selection-appearance.js";
|
|
8
8
|
import { selectionKindFromModifiers as y } from "./calendar-selection.js";
|
|
9
|
-
function
|
|
10
|
-
className:
|
|
11
|
-
day:
|
|
9
|
+
function B({
|
|
10
|
+
className: r,
|
|
11
|
+
day: n,
|
|
12
12
|
modifiers: a,
|
|
13
13
|
pickerType: c,
|
|
14
|
-
...
|
|
14
|
+
...t
|
|
15
15
|
}) {
|
|
16
|
-
const
|
|
17
|
-
(
|
|
18
|
-
|
|
16
|
+
const o = g(), d = y(a), l = s.useCallback(
|
|
17
|
+
(e) => {
|
|
18
|
+
e && a.focused && e.focus({ preventScroll: !0 });
|
|
19
19
|
},
|
|
20
20
|
[a.focused]
|
|
21
21
|
);
|
|
22
22
|
return /* @__PURE__ */ u(
|
|
23
|
-
|
|
23
|
+
v,
|
|
24
24
|
{
|
|
25
|
-
...
|
|
25
|
+
...t,
|
|
26
26
|
ref: l,
|
|
27
27
|
tabIndex: a.focused ? 0 : -1,
|
|
28
28
|
variant: "ghost",
|
|
29
29
|
size: "sm",
|
|
30
|
-
"data-day":
|
|
30
|
+
"data-day": n.date.toLocaleDateString(),
|
|
31
31
|
"data-selection": d,
|
|
32
32
|
"data-preview": a.preview || a.preview_cap ? !0 : void 0,
|
|
33
33
|
"data-today": a.today || void 0,
|
|
@@ -36,22 +36,22 @@ function k({
|
|
|
36
36
|
"data-range-end": a.range_end,
|
|
37
37
|
"data-range-middle": a.range_middle,
|
|
38
38
|
"aria-current": a.today ? "date" : void 0,
|
|
39
|
-
className:
|
|
39
|
+
className: p(
|
|
40
40
|
_(d, c === "week" ? "week" : "date"),
|
|
41
|
-
|
|
41
|
+
r
|
|
42
42
|
),
|
|
43
43
|
"data-component": "calendar-day",
|
|
44
|
-
onMouseEnter: (
|
|
45
|
-
|
|
44
|
+
onMouseEnter: (e) => {
|
|
45
|
+
t.onMouseEnter?.(e), o(n.date);
|
|
46
46
|
},
|
|
47
|
-
onMouseLeave: (
|
|
48
|
-
|
|
47
|
+
onMouseLeave: (e) => {
|
|
48
|
+
t.onMouseLeave?.(e), o(void 0);
|
|
49
49
|
},
|
|
50
50
|
"data-period-boundary": a.fiscal_period_start ? "start" : a.fiscal_period_end ? "end" : void 0,
|
|
51
|
-
disabled:
|
|
51
|
+
disabled: t.disabled || a.disabled
|
|
52
52
|
}
|
|
53
53
|
);
|
|
54
54
|
}
|
|
55
55
|
export {
|
|
56
|
-
|
|
56
|
+
B as CalendarDayButton
|
|
57
57
|
};
|
|
@@ -5,10 +5,9 @@ import { cn as ur } from "../../../lib/utils.js";
|
|
|
5
5
|
import { formatPeriodOption as dr } from "./calendar-fiscal-labels.js";
|
|
6
6
|
import { CalendarDayHoverProvider as gr } from "./calendar-day-hover.js";
|
|
7
7
|
import { previewModifierClassNames as vr, fiscalPeriodBoundaryClassNames as Pr } from "./calendar-day-picker-classnames.js";
|
|
8
|
-
import { isPreviewCap as u, dayKey as l, isPreviewMiddle as
|
|
9
|
-
import { useCalendarDayPickerConfig as
|
|
10
|
-
|
|
11
|
-
function Fr({
|
|
8
|
+
import { isPreviewCap as u, dayKey as l, isPreviewMiddle as _r } from "./calendar-selection.js";
|
|
9
|
+
import { useCalendarDayPickerConfig as yr } from "./use-calendar-day-picker-config.js";
|
|
10
|
+
function Br({
|
|
12
11
|
className: E,
|
|
13
12
|
pickerType: s,
|
|
14
13
|
mode: e,
|
|
@@ -17,18 +16,18 @@ function Fr({
|
|
|
17
16
|
granularity: F,
|
|
18
17
|
showOutsideDays: d,
|
|
19
18
|
fixedWeeks: g,
|
|
20
|
-
captionLayout:
|
|
21
|
-
buttonVariant:
|
|
19
|
+
captionLayout: L,
|
|
20
|
+
buttonVariant: O,
|
|
22
21
|
weekStartsOn: v,
|
|
23
|
-
formatters:
|
|
24
|
-
classNames:
|
|
25
|
-
components:
|
|
22
|
+
formatters: V,
|
|
23
|
+
classNames: Y,
|
|
24
|
+
components: k,
|
|
26
25
|
selected: P,
|
|
27
|
-
showFooter:
|
|
26
|
+
showFooter: _,
|
|
28
27
|
showPeriodBoundaries: p,
|
|
29
|
-
pendingSelection:
|
|
28
|
+
pendingSelection: y,
|
|
30
29
|
selectedDaysFromWeeks: R,
|
|
31
|
-
currentMonth:
|
|
30
|
+
currentMonth: D,
|
|
32
31
|
monthsFull: $,
|
|
33
32
|
monthsShort: q,
|
|
34
33
|
weekNumberHeader: z,
|
|
@@ -47,23 +46,23 @@ function Fr({
|
|
|
47
46
|
nextMonthLabel: Z,
|
|
48
47
|
monthPlaceholder: W,
|
|
49
48
|
yearPlaceholder: K,
|
|
50
|
-
weekNumberLabel:
|
|
49
|
+
weekNumberLabel: S,
|
|
51
50
|
weekLabel: T,
|
|
52
51
|
fiscalWeekAriaLabel: rr,
|
|
53
52
|
getCellMeta: n,
|
|
54
53
|
formatWeekNumber: or,
|
|
55
|
-
disabled:
|
|
56
|
-
showWeekNumber:
|
|
54
|
+
disabled: h,
|
|
55
|
+
showWeekNumber: j = !0,
|
|
57
56
|
...tr
|
|
58
57
|
}) {
|
|
59
|
-
const { dayPickerClassNames: ar, dayPickerComponents: ir } =
|
|
60
|
-
buttonVariant:
|
|
58
|
+
const { dayPickerClassNames: ar, dayPickerComponents: ir } = yr({
|
|
59
|
+
buttonVariant: O,
|
|
61
60
|
pickerType: s,
|
|
62
61
|
calendarKind: m,
|
|
63
62
|
granularity: F,
|
|
64
63
|
showOutsideDays: d,
|
|
65
|
-
classNames:
|
|
66
|
-
currentMonth:
|
|
64
|
+
classNames: Y,
|
|
65
|
+
currentMonth: D,
|
|
67
66
|
monthsFull: $,
|
|
68
67
|
monthsShort: q,
|
|
69
68
|
weekNumberHeader: z,
|
|
@@ -77,40 +76,40 @@ function Fr({
|
|
|
77
76
|
nextMonthLabel: Z,
|
|
78
77
|
monthPlaceholder: W,
|
|
79
78
|
yearPlaceholder: K,
|
|
80
|
-
weekNumberLabel:
|
|
79
|
+
weekNumberLabel: S,
|
|
81
80
|
weekLabel: T,
|
|
82
|
-
fiscalWeekNumberLabel:
|
|
81
|
+
fiscalWeekNumberLabel: S,
|
|
83
82
|
fiscalWeekAriaLabel: rr,
|
|
84
83
|
getCellMeta: n,
|
|
85
84
|
onMonthChange: N,
|
|
86
85
|
onWeekSelect: U,
|
|
87
86
|
weekMode: f,
|
|
88
87
|
showPeriodBoundaries: p,
|
|
89
|
-
showWeekNumber:
|
|
90
|
-
disabled:
|
|
91
|
-
components:
|
|
92
|
-
}), er = e === "range" || e === "multiple" || e === "multi-range" || f === "range" || f === "multiple" || f === "multi-range" ? 2 : 1, nr = s === "week" || e === "multi-range" ? "multiple" : e, sr = g || m === "fiscal" || d,
|
|
88
|
+
showWeekNumber: j,
|
|
89
|
+
disabled: h,
|
|
90
|
+
components: k
|
|
91
|
+
}), er = e === "range" || e === "multiple" || e === "multi-range" || f === "range" || f === "multiple" || f === "multi-range" ? 2 : 1, nr = s === "week" || e === "multi-range" ? "multiple" : e, sr = g || m === "fiscal" || d, H = p && n ? {
|
|
93
92
|
fiscal_period_start: (r) => !!n(r)?.isPeriodStart,
|
|
94
93
|
fiscal_period_end: (r) => !!n(r)?.isPeriodEnd
|
|
95
94
|
} : void 0, [t, cr] = B.useState(), fr = B.useCallback((r) => {
|
|
96
95
|
cr((o) => !o && !r || o && r && o.getFullYear() === r.getFullYear() && o.getMonth() === r.getMonth() && o.getDate() === r.getDate() ? o : r);
|
|
97
|
-
}, []), a =
|
|
96
|
+
}, []), a = _ ? y : P, i = e === "range" && a && typeof a == "object" && "from" in a ? a.from : void 0, mr = e === "range" && a && typeof a == "object" && "to" in a ? a.to : void 0;
|
|
98
97
|
return /* @__PURE__ */ x(gr, { onDayHover: fr, children: /* @__PURE__ */ x(
|
|
99
98
|
pr,
|
|
100
99
|
{
|
|
101
100
|
mode: nr,
|
|
102
|
-
selected: s === "week" ? R :
|
|
101
|
+
selected: s === "week" ? R : _ ? y : P,
|
|
103
102
|
onSelect: (...r) => {
|
|
104
103
|
const [o, c] = r;
|
|
105
104
|
Q(o, c instanceof Date ? c : void 0);
|
|
106
105
|
},
|
|
107
|
-
month:
|
|
106
|
+
month: D,
|
|
108
107
|
onMonthChange: N,
|
|
109
108
|
fixedWeeks: g,
|
|
110
109
|
showOutsideDays: sr,
|
|
111
110
|
weekStartsOn: v,
|
|
112
|
-
modifiers: s === "week" ? { ...M, ...
|
|
113
|
-
preview: (r) =>
|
|
111
|
+
modifiers: s === "week" ? { ...M, ...H } : { ...H, ...s === "date" && !!(i && !mr && t) && i && t ? {
|
|
112
|
+
preview: (r) => _r(r, i, t),
|
|
114
113
|
preview_cap: (r) => u(r, i, t),
|
|
115
114
|
preview_cap_start: (r) => u(r, i, t) && l(t) < l(i),
|
|
116
115
|
preview_cap_end: (r) => u(r, i, t) && l(t) > l(i)
|
|
@@ -126,11 +125,11 @@ function Fr({
|
|
|
126
125
|
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
127
126
|
E
|
|
128
127
|
),
|
|
129
|
-
captionLayout:
|
|
128
|
+
captionLayout: L,
|
|
130
129
|
navLayout: "around",
|
|
131
130
|
startMonth: w,
|
|
132
131
|
endMonth: b,
|
|
133
|
-
disabled:
|
|
132
|
+
disabled: h,
|
|
134
133
|
numberOfMonths: er,
|
|
135
134
|
formatters: {
|
|
136
135
|
formatMonthDropdown: (r) => {
|
|
@@ -139,18 +138,18 @@ function Fr({
|
|
|
139
138
|
if (c) return dr(c);
|
|
140
139
|
if (o?.fiscalPeriod != null) return `P${o.fiscalPeriod}`;
|
|
141
140
|
}
|
|
142
|
-
return
|
|
141
|
+
return r.toLocaleString(J, { month: "short" });
|
|
143
142
|
},
|
|
144
143
|
formatWeekNumber: or,
|
|
145
|
-
...
|
|
144
|
+
...V
|
|
146
145
|
},
|
|
147
146
|
classNames: ar,
|
|
148
147
|
components: ir,
|
|
149
148
|
...tr,
|
|
150
|
-
showWeekNumber:
|
|
149
|
+
showWeekNumber: j
|
|
151
150
|
}
|
|
152
151
|
) });
|
|
153
152
|
}
|
|
154
153
|
export {
|
|
155
|
-
|
|
154
|
+
Br as CalendarDayPickerView
|
|
156
155
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { CivilDate, FiscalCalendarConfig, FyLabelStyle } from '../../../lib/fiscal-calendar';
|
|
2
2
|
import { QuarterSelection, YearSelection } from './calendar.types';
|
|
3
|
+
export declare function formatFiscalYearLabel(fy: number, style?: FyLabelStyle): string;
|
|
4
|
+
export declare function formatYearIntervalCaption(year: number, fiscalConfig?: FiscalCalendarConfig): string;
|
|
3
5
|
export declare function formatPeriodTooltip(period: {
|
|
4
6
|
period: number;
|
|
5
7
|
start: CivilDate;
|
|
6
8
|
end: CivilDate;
|
|
7
|
-
}
|
|
8
|
-
export declare function formatFiscalYearLabel(fy: number, style?: FyLabelStyle): string;
|
|
9
|
-
export declare function formatYearIntervalCaption(year: number, fiscalConfig?: FiscalCalendarConfig): string;
|
|
9
|
+
}): string;
|
|
10
10
|
export declare function formatPeriodCell(period: {
|
|
11
11
|
period: number;
|
|
12
12
|
start: CivilDate;
|
|
@@ -1,78 +1,90 @@
|
|
|
1
|
-
import { formatCivilRange as
|
|
2
|
-
import { formatFyLabel as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { formatCivilRange as o, parseCivilDate as l } from "../../../lib/fiscal-calendar/civil-date.js";
|
|
2
|
+
import { formatFyLabel as c, buildFiscalYear as f } from "../../../lib/fiscal-calendar/build-year.js";
|
|
3
|
+
const a = [
|
|
4
|
+
"January",
|
|
5
|
+
"February",
|
|
6
|
+
"March",
|
|
7
|
+
"April",
|
|
8
|
+
"May",
|
|
9
|
+
"June",
|
|
10
|
+
"July",
|
|
11
|
+
"August",
|
|
12
|
+
"September",
|
|
13
|
+
"October",
|
|
14
|
+
"November",
|
|
15
|
+
"December"
|
|
16
|
+
];
|
|
17
|
+
function u(r, t = "fy-short") {
|
|
18
|
+
return c(r, t);
|
|
14
19
|
}
|
|
15
|
-
function
|
|
16
|
-
if (
|
|
20
|
+
function d(r, t) {
|
|
21
|
+
if (t)
|
|
17
22
|
try {
|
|
18
|
-
const n =
|
|
19
|
-
return `(${
|
|
23
|
+
const n = f(t, r);
|
|
24
|
+
return `(${o(n.start, n.end)})`;
|
|
20
25
|
} catch {
|
|
21
26
|
}
|
|
22
|
-
return `(${
|
|
27
|
+
return `(${o(`${r}-01-01`, `${r}-12-31`)})`;
|
|
28
|
+
}
|
|
29
|
+
function $(r, t) {
|
|
30
|
+
const n = l(r), e = l(t);
|
|
31
|
+
return n.y === e.y ? `${a[n.m - 1]} ${n.d} – ${a[e.m - 1]} ${e.d}` : `${a[n.m - 1]} ${n.d} ${n.y} – ${a[e.m - 1]} ${e.d} ${e.y}`;
|
|
32
|
+
}
|
|
33
|
+
function Q(r) {
|
|
34
|
+
return `Period ${r.period} (${$(r.start, r.end)})`;
|
|
23
35
|
}
|
|
24
|
-
function
|
|
36
|
+
function m(r) {
|
|
25
37
|
return {
|
|
26
|
-
label: `P${
|
|
27
|
-
caption: `(${
|
|
38
|
+
label: `P${r.period}`,
|
|
39
|
+
caption: `(${o(r.start, r.end)})`
|
|
28
40
|
};
|
|
29
41
|
}
|
|
30
|
-
function
|
|
31
|
-
const
|
|
32
|
-
return `${
|
|
42
|
+
function F(r) {
|
|
43
|
+
const t = m(r);
|
|
44
|
+
return `${t.label} ${t.caption}`;
|
|
33
45
|
}
|
|
34
|
-
function
|
|
46
|
+
function s(r) {
|
|
35
47
|
return {
|
|
36
|
-
label: `Q${
|
|
37
|
-
caption: `(${
|
|
48
|
+
label: `Q${r.quarter}`,
|
|
49
|
+
caption: `(${o(r.start, r.end)})`
|
|
38
50
|
};
|
|
39
51
|
}
|
|
40
|
-
function
|
|
41
|
-
return `P${
|
|
52
|
+
function L(r, t) {
|
|
53
|
+
return `P${r} ${u(t)}`;
|
|
42
54
|
}
|
|
43
|
-
function b(
|
|
44
|
-
return `Q${
|
|
55
|
+
function b(r, t) {
|
|
56
|
+
return `Q${r} ${u(t)}`;
|
|
45
57
|
}
|
|
46
|
-
function
|
|
47
|
-
return
|
|
58
|
+
function P(r) {
|
|
59
|
+
return r.fy != null ? b(r.quarter, r.fy) : `Q${r.quarter} ${r.year}`;
|
|
48
60
|
}
|
|
49
|
-
function
|
|
50
|
-
return
|
|
61
|
+
function I(r, t = "fy-long") {
|
|
62
|
+
return r.fy != null ? u(r.fy, t) : String(r.year);
|
|
51
63
|
}
|
|
52
|
-
const
|
|
64
|
+
const i = [
|
|
53
65
|
{ label: "Q1" },
|
|
54
66
|
{ label: "Q2" },
|
|
55
67
|
{ label: "Q3" },
|
|
56
68
|
{ label: "Q4" }
|
|
57
69
|
];
|
|
58
|
-
function
|
|
59
|
-
if (!
|
|
70
|
+
function R(r, t) {
|
|
71
|
+
if (!t) return i;
|
|
60
72
|
try {
|
|
61
|
-
return
|
|
73
|
+
return f(t, r).quarters.map(s);
|
|
62
74
|
} catch {
|
|
63
|
-
return
|
|
75
|
+
return i;
|
|
64
76
|
}
|
|
65
77
|
}
|
|
66
78
|
export {
|
|
67
|
-
|
|
79
|
+
L as formatFiscalPeriodInput,
|
|
68
80
|
b as formatFiscalQuarterInput,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
81
|
+
u as formatFiscalYearLabel,
|
|
82
|
+
m as formatPeriodCell,
|
|
83
|
+
F as formatPeriodOption,
|
|
84
|
+
Q as formatPeriodTooltip,
|
|
85
|
+
s as formatQuarterCell,
|
|
86
|
+
P as formatQuarterInput,
|
|
87
|
+
R as formatQuarterLabelsForYear,
|
|
88
|
+
I as formatYearInput,
|
|
89
|
+
d as formatYearIntervalCaption
|
|
78
90
|
};
|