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,116 +1,117 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
1
|
+
import { jsxs as u, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import * as n from "react";
|
|
3
3
|
import { Cross as ne, CalendarMonth as oe } from "impact-nova-icons";
|
|
4
|
-
import { format as
|
|
4
|
+
import { format as b } from "date-fns";
|
|
5
5
|
import { cn as se } from "../../../lib/utils.js";
|
|
6
|
-
import { Input as
|
|
7
|
-
import { Popover as
|
|
6
|
+
import { Input as ae } from "../input/input.js";
|
|
7
|
+
import { Popover as ie, PopoverAnchor as ce, PopoverContent as le } from "../../feedback/popover/popover.js";
|
|
8
8
|
import { Calendar as pe } from "../../data-display/calendar/calendar.js";
|
|
9
|
-
import { Tooltip as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
9
|
+
import { Tooltip as x, TooltipTrigger as A, TooltipContent as M } from "../../feedback/tooltip/tooltip.js";
|
|
10
|
+
import { useImpactNovaI18n as de } from "../../../i18n/use-impact-nova-i18n.js";
|
|
11
|
+
import { getDateFnsLocale as fe } from "../../../i18n/getDateFnsLocale.js";
|
|
12
|
+
import { coerceWeekArrayApply as me, coerceWeekArray as ue } from "./calendar-selection-adapters.js";
|
|
13
|
+
import { usePickerDismissActionsRef as he, usePickerFooterDismissNudge as ye, handlePickerSurfacePointerDown as ke } from "./date-input-behavior.js";
|
|
14
|
+
import { buildDateBoundsMatcher as ge } from "../../../lib/date-bounds-matcher.js";
|
|
15
|
+
import { fiscalCalendarPassThrough as Pe } from "./fiscal-pass-through.js";
|
|
16
|
+
const Ce = (t, a = "MM/dd/yyyy", i) => {
|
|
17
|
+
const h = b(t.startDate, a, i ? { locale: i } : {}), y = b(t.endDate, a, i ? { locale: i } : {});
|
|
18
|
+
return `${h} - ${y}`;
|
|
19
|
+
}, De = n.forwardRef(
|
|
19
20
|
({
|
|
20
21
|
value: t,
|
|
21
|
-
onChange:
|
|
22
|
-
format:
|
|
22
|
+
onChange: a,
|
|
23
|
+
format: i = "MM/dd/yyyy",
|
|
23
24
|
placeholder: h,
|
|
24
|
-
minDate:
|
|
25
|
-
maxDate:
|
|
26
|
-
startMonth:
|
|
25
|
+
minDate: y,
|
|
26
|
+
maxDate: N,
|
|
27
|
+
startMonth: T,
|
|
27
28
|
endMonth: R,
|
|
28
29
|
showFooter: d = !0,
|
|
29
30
|
calendarKind: S,
|
|
30
|
-
fiscalMode:
|
|
31
|
+
fiscalMode: v = "basic",
|
|
31
32
|
granularity: w,
|
|
32
|
-
fiscalMonthPattern:
|
|
33
|
-
fiscalYearStartMonth:
|
|
34
|
-
fiscalConfig:
|
|
35
|
-
weekStartsOn:
|
|
36
|
-
showPresets:
|
|
33
|
+
fiscalMonthPattern: I,
|
|
34
|
+
fiscalYearStartMonth: L = 1,
|
|
35
|
+
fiscalConfig: O,
|
|
36
|
+
weekStartsOn: j,
|
|
37
|
+
showPresets: F,
|
|
37
38
|
showPeriodBoundaries: E,
|
|
38
39
|
autoNavigateToAvailable: K,
|
|
39
|
-
comparison:
|
|
40
|
-
onComparisonChange:
|
|
41
|
-
disabled:
|
|
42
|
-
className:
|
|
43
|
-
...
|
|
44
|
-
},
|
|
45
|
-
const {
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
comparison: $,
|
|
41
|
+
onComparisonChange: z,
|
|
42
|
+
disabled: o,
|
|
43
|
+
className: V,
|
|
44
|
+
...q
|
|
45
|
+
}, B) => {
|
|
46
|
+
const { locale: P, t: c } = de(), H = n.useMemo(() => fe(P), [P]), G = h ?? c("datePicker.selectWeeks"), [l, s] = n.useState(!1), k = n.useRef(!1), g = n.useRef(null), C = he(), { footerFlashKey: J, footerFlashTarget: Q, popoverHandlers: U } = ye(d, l, C, g), [f, m] = n.useState(t);
|
|
47
|
+
n.useEffect(() => {
|
|
48
|
+
m(t);
|
|
48
49
|
}, [l, t]);
|
|
49
50
|
const X = (e) => {
|
|
50
51
|
const p = ue(e);
|
|
51
|
-
|
|
52
|
+
m(p), d || a?.(p);
|
|
52
53
|
}, Y = (e) => {
|
|
53
|
-
const p =
|
|
54
|
-
|
|
55
|
-
}, C = () => {
|
|
56
|
-
u(t), o(!1);
|
|
54
|
+
const p = me(e, f);
|
|
55
|
+
a?.(p), s(!1);
|
|
57
56
|
}, D = () => {
|
|
58
|
-
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
},
|
|
57
|
+
m(t), s(!1);
|
|
58
|
+
}, W = () => {
|
|
59
|
+
m(void 0), a?.(void 0), d || s(!1);
|
|
60
|
+
}, Z = t && t.length > 0 ? t.length === 1 ? Ce(t[0], i, H) : `${t.length} weeks selected` : "", _ = (e) => {
|
|
61
|
+
o || !e && d || s(e);
|
|
62
|
+
}, ee = n.useCallback(() => {
|
|
62
63
|
const e = f?.length ?? 0, p = t?.length ?? 0;
|
|
63
64
|
return e === p && (f ?? []).every(
|
|
64
65
|
(te, re) => te.startDate.getTime() === t?.[re]?.startDate.getTime()
|
|
65
66
|
) ? "dismiss" : e > 0 ? "apply" : "cancel";
|
|
66
67
|
}, [f, t]);
|
|
67
|
-
return
|
|
68
|
-
|
|
69
|
-
onDismiss:
|
|
68
|
+
return n.useLayoutEffect(() => {
|
|
69
|
+
C.current = {
|
|
70
|
+
onDismiss: D,
|
|
70
71
|
resolveFlash: ee
|
|
71
72
|
};
|
|
72
|
-
}), /* @__PURE__ */
|
|
73
|
+
}), /* @__PURE__ */ u(ie, { open: o ? !1 : l, onOpenChange: _, children: [
|
|
73
74
|
/* @__PURE__ */ r(ce, { asChild: !0, children: /* @__PURE__ */ r(
|
|
74
75
|
"div",
|
|
75
76
|
{
|
|
76
77
|
ref: g,
|
|
77
78
|
onPointerDown: (e) => ke({
|
|
78
|
-
disabled:
|
|
79
|
+
disabled: o,
|
|
79
80
|
event: e,
|
|
80
|
-
onOpen: () =>
|
|
81
|
+
onOpen: () => s(!0),
|
|
81
82
|
focusField: () => g.current?.querySelector("input")?.focus()
|
|
82
83
|
}),
|
|
83
84
|
children: /* @__PURE__ */ r(
|
|
84
|
-
|
|
85
|
+
ae,
|
|
85
86
|
{
|
|
86
|
-
ref:
|
|
87
|
+
ref: B,
|
|
87
88
|
value: Z,
|
|
88
89
|
placeholder: G,
|
|
89
90
|
readOnly: !0,
|
|
90
|
-
disabled:
|
|
91
|
+
disabled: o,
|
|
91
92
|
onClick: () => {
|
|
92
|
-
!
|
|
93
|
+
!o && !l && s(!0);
|
|
93
94
|
},
|
|
94
|
-
className: se("cursor-pointer",
|
|
95
|
-
suffix: /* @__PURE__ */
|
|
96
|
-
t && t.length > 0 && !
|
|
97
|
-
/* @__PURE__ */ r(
|
|
95
|
+
className: se("cursor-pointer", V),
|
|
96
|
+
suffix: /* @__PURE__ */ u("div", { className: "flex items-center gap-1", children: [
|
|
97
|
+
t && t.length > 0 && !o && /* @__PURE__ */ u(x, { children: [
|
|
98
|
+
/* @__PURE__ */ r(A, { asChild: !0, children: /* @__PURE__ */ r(
|
|
98
99
|
"button",
|
|
99
100
|
{
|
|
100
101
|
type: "button",
|
|
101
102
|
tabIndex: 0,
|
|
102
103
|
"aria-label": c("calendar.clear"),
|
|
103
104
|
onClick: (e) => {
|
|
104
|
-
e.stopPropagation(),
|
|
105
|
+
e.stopPropagation(), W();
|
|
105
106
|
},
|
|
106
107
|
className: "inline-flex size-4 items-center justify-center bg-transparent border-none p-0 cursor-pointer",
|
|
107
108
|
children: /* @__PURE__ */ r(ne, { className: "size-3 hover:text-content" })
|
|
108
109
|
}
|
|
109
110
|
) }),
|
|
110
|
-
/* @__PURE__ */ r(
|
|
111
|
+
/* @__PURE__ */ r(M, { variant: "tertiary", side: "top", children: c("calendar.clear") })
|
|
111
112
|
] }),
|
|
112
|
-
/* @__PURE__ */
|
|
113
|
-
/* @__PURE__ */ r(
|
|
113
|
+
/* @__PURE__ */ u(x, { children: [
|
|
114
|
+
/* @__PURE__ */ r(A, { asChild: !0, children: /* @__PURE__ */ r(
|
|
114
115
|
"button",
|
|
115
116
|
{
|
|
116
117
|
type: "button",
|
|
@@ -118,19 +119,19 @@ const Pe = (t, i = "MM/dd/yyyy", a) => {
|
|
|
118
119
|
"data-component": "calendar-trigger",
|
|
119
120
|
"aria-label": c("datePicker.selectWeeks"),
|
|
120
121
|
onPointerDown: (e) => {
|
|
121
|
-
e.preventDefault(), e.stopPropagation(),
|
|
122
|
+
e.preventDefault(), e.stopPropagation(), o || s(!l);
|
|
122
123
|
},
|
|
123
124
|
onKeyDown: (e) => {
|
|
124
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(),
|
|
125
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), o || (k.current = !0, s(!l)));
|
|
125
126
|
},
|
|
126
127
|
className: "inline-flex items-center justify-center bg-transparent border-none p-0 cursor-pointer",
|
|
127
128
|
children: /* @__PURE__ */ r(oe, { className: "h-4 w-4 text-secondary-foreground" })
|
|
128
129
|
}
|
|
129
130
|
) }),
|
|
130
|
-
/* @__PURE__ */ r(
|
|
131
|
+
/* @__PURE__ */ r(M, { variant: "tertiary", side: "top", children: c("datePicker.selectWeeks") })
|
|
131
132
|
] })
|
|
132
133
|
] }),
|
|
133
|
-
...
|
|
134
|
+
...q
|
|
134
135
|
}
|
|
135
136
|
)
|
|
136
137
|
}
|
|
@@ -142,7 +143,7 @@ const Pe = (t, i = "MM/dd/yyyy", a) => {
|
|
|
142
143
|
align: "start",
|
|
143
144
|
"aria-label": c("datePicker.selectWeeks"),
|
|
144
145
|
onOpenAutoFocus: (e) => {
|
|
145
|
-
|
|
146
|
+
k.current || e.preventDefault(), k.current = !1;
|
|
146
147
|
},
|
|
147
148
|
...U,
|
|
148
149
|
children: /* @__PURE__ */ r(
|
|
@@ -154,27 +155,27 @@ const Pe = (t, i = "MM/dd/yyyy", a) => {
|
|
|
154
155
|
footerFlashKey: J,
|
|
155
156
|
footerFlashTarget: Q,
|
|
156
157
|
onWeekSelect: X,
|
|
157
|
-
disabled:
|
|
158
|
-
startMonth:
|
|
158
|
+
disabled: ge(y, N),
|
|
159
|
+
startMonth: T,
|
|
159
160
|
endMonth: R,
|
|
160
161
|
showFooter: d,
|
|
161
|
-
...
|
|
162
|
+
...Pe({
|
|
162
163
|
calendarKind: S,
|
|
163
|
-
fiscalMode:
|
|
164
|
+
fiscalMode: v,
|
|
164
165
|
granularity: w,
|
|
165
|
-
fiscalMonthPattern:
|
|
166
|
-
fiscalYearStartMonth:
|
|
167
|
-
fiscalConfig:
|
|
168
|
-
weekStartsOn:
|
|
169
|
-
showPresets:
|
|
166
|
+
fiscalMonthPattern: I,
|
|
167
|
+
fiscalYearStartMonth: L,
|
|
168
|
+
fiscalConfig: O,
|
|
169
|
+
weekStartsOn: j,
|
|
170
|
+
showPresets: F,
|
|
170
171
|
showPeriodBoundaries: E,
|
|
171
172
|
autoNavigateToAvailable: K,
|
|
172
|
-
comparison:
|
|
173
|
-
onComparisonChange:
|
|
173
|
+
comparison: $,
|
|
174
|
+
onComparisonChange: z
|
|
174
175
|
}),
|
|
175
176
|
onApply: Y,
|
|
176
|
-
onCancel:
|
|
177
|
-
onClear:
|
|
177
|
+
onCancel: D,
|
|
178
|
+
onClear: W,
|
|
178
179
|
captionLayout: "dropdown"
|
|
179
180
|
}
|
|
180
181
|
)
|
|
@@ -183,7 +184,7 @@ const Pe = (t, i = "MM/dd/yyyy", a) => {
|
|
|
183
184
|
] });
|
|
184
185
|
}
|
|
185
186
|
);
|
|
186
|
-
|
|
187
|
+
De.displayName = "MultiWeekPicker";
|
|
187
188
|
export {
|
|
188
|
-
|
|
189
|
+
De as MultiWeekPicker
|
|
189
190
|
};
|
|
@@ -1,73 +1,73 @@
|
|
|
1
1
|
import { jsx as r, jsxs as y } from "react/jsx-runtime";
|
|
2
2
|
import * as n from "react";
|
|
3
|
-
import { Cross as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { Input as
|
|
6
|
-
import { Calendar as
|
|
3
|
+
import { Cross as te, CalendarMonth as re } from "impact-nova-icons";
|
|
4
|
+
import { cn as ne } from "../../../lib/utils.js";
|
|
5
|
+
import { Input as oe } from "../input/input.js";
|
|
6
|
+
import { Calendar as ae } from "../../data-display/calendar/calendar.js";
|
|
7
7
|
import { Tooltip as M, TooltipTrigger as x, TooltipContent as R } from "../../feedback/tooltip/tooltip.js";
|
|
8
|
-
import { useImpactNovaI18n as
|
|
9
|
-
import { buildDateBoundsMatcher as
|
|
8
|
+
import { useImpactNovaI18n as ie } from "../../../i18n/use-impact-nova-i18n.js";
|
|
9
|
+
import { buildDateBoundsMatcher as le } from "../../../lib/date-bounds-matcher.js";
|
|
10
10
|
import { fiscalCalendarPassThrough as se } from "./fiscal-pass-through.js";
|
|
11
11
|
import { DatePickerShell as ce } from "./date-picker-shell.js";
|
|
12
|
-
import { usePickerDismissActionsRef as
|
|
13
|
-
import { formatYearInput as
|
|
14
|
-
import { viewMonthFromYear as
|
|
15
|
-
const
|
|
12
|
+
import { usePickerDismissActionsRef as pe, usePickerFooterDismissNudge as ue, handleReadonlyPickerKeyDown as fe, handlePickerSurfacePointerDown as de } from "./date-input-behavior.js";
|
|
13
|
+
import { formatYearInput as me } from "../../data-display/calendar/calendar-fiscal-labels.js";
|
|
14
|
+
import { viewMonthFromYear as he } from "../../data-display/calendar/calendar-year-utils.js";
|
|
15
|
+
const ye = n.forwardRef(
|
|
16
16
|
({
|
|
17
|
-
value:
|
|
18
|
-
onChange:
|
|
19
|
-
placeholder:
|
|
20
|
-
minDate:
|
|
21
|
-
maxDate:
|
|
22
|
-
startMonth:
|
|
23
|
-
endMonth:
|
|
24
|
-
showFooter:
|
|
17
|
+
value: g,
|
|
18
|
+
onChange: u,
|
|
19
|
+
placeholder: Y,
|
|
20
|
+
minDate: D,
|
|
21
|
+
maxDate: A,
|
|
22
|
+
startMonth: N,
|
|
23
|
+
endMonth: S,
|
|
24
|
+
showFooter: s = !0,
|
|
25
25
|
disabled: o,
|
|
26
26
|
className: I,
|
|
27
27
|
calendarKind: O,
|
|
28
28
|
fiscalMode: T,
|
|
29
29
|
granularity: w,
|
|
30
|
-
fiscalMonthPattern:
|
|
31
|
-
fiscalYearStartMonth:
|
|
32
|
-
fiscalConfig:
|
|
33
|
-
weekStartsOn:
|
|
34
|
-
showPresets:
|
|
35
|
-
showPeriodBoundaries:
|
|
36
|
-
autoNavigateToAvailable:
|
|
37
|
-
showIntervalCaption:
|
|
38
|
-
...
|
|
39
|
-
},
|
|
40
|
-
const { t: a } =
|
|
41
|
-
n.useImperativeHandle(
|
|
42
|
-
const [i,
|
|
30
|
+
fiscalMonthPattern: K,
|
|
31
|
+
fiscalYearStartMonth: j,
|
|
32
|
+
fiscalConfig: k,
|
|
33
|
+
weekStartsOn: F,
|
|
34
|
+
showPresets: L,
|
|
35
|
+
showPeriodBoundaries: z,
|
|
36
|
+
autoNavigateToAvailable: E,
|
|
37
|
+
showIntervalCaption: H = !1,
|
|
38
|
+
...V
|
|
39
|
+
}, B) => {
|
|
40
|
+
const { t: a } = ie(), q = Y ?? a("datePicker.selectMultipleYears"), G = k?.fyLabel ?? "fy-long", f = n.useRef(null), P = n.useRef(null);
|
|
41
|
+
n.useImperativeHandle(B, () => f.current);
|
|
42
|
+
const [i, l] = n.useState(!1), d = n.useRef(!1), v = pe(), { footerFlashKey: J, footerFlashTarget: Q, popoverHandlers: U } = ue(s, i, v, P), t = Array.isArray(g) ? g : void 0, [C, c] = n.useState(t), [W, X] = n.useState(he(t?.[0]));
|
|
43
43
|
n.useEffect(() => {
|
|
44
|
-
i ||
|
|
44
|
+
i || c(t);
|
|
45
45
|
}, [i, t]);
|
|
46
|
-
const m = n.useCallback(() =>
|
|
46
|
+
const m = n.useCallback(() => l(!1), []), Z = se({
|
|
47
47
|
calendarKind: O,
|
|
48
48
|
fiscalMode: T,
|
|
49
49
|
granularity: w,
|
|
50
|
-
fiscalMonthPattern:
|
|
51
|
-
fiscalYearStartMonth:
|
|
52
|
-
fiscalConfig:
|
|
53
|
-
weekStartsOn:
|
|
54
|
-
showPresets:
|
|
55
|
-
showPeriodBoundaries:
|
|
56
|
-
autoNavigateToAvailable:
|
|
57
|
-
}),
|
|
50
|
+
fiscalMonthPattern: K,
|
|
51
|
+
fiscalYearStartMonth: j,
|
|
52
|
+
fiscalConfig: k,
|
|
53
|
+
weekStartsOn: F,
|
|
54
|
+
showPresets: L,
|
|
55
|
+
showPeriodBoundaries: z,
|
|
56
|
+
autoNavigateToAvailable: E
|
|
57
|
+
}), _ = (e) => {
|
|
58
58
|
const p = Array.isArray(e) && e.length > 0 ? e : void 0;
|
|
59
|
-
|
|
60
|
-
},
|
|
61
|
-
|
|
59
|
+
c(p), s || u?.(p);
|
|
60
|
+
}, $ = () => {
|
|
61
|
+
u?.(C), m();
|
|
62
62
|
}, h = () => {
|
|
63
|
-
|
|
63
|
+
c(t), m();
|
|
64
64
|
}, b = () => {
|
|
65
|
-
|
|
65
|
+
c(void 0), u?.(void 0), s || m();
|
|
66
66
|
};
|
|
67
67
|
n.useLayoutEffect(() => {
|
|
68
|
-
|
|
68
|
+
v.current = { onDismiss: h, resolveFlash: () => "cancel" };
|
|
69
69
|
});
|
|
70
|
-
const
|
|
70
|
+
const ee = t && t.length > 0 ? t.length === 1 ? me(t[0], G) : a("datePicker.yearsSelected", { count: t.length }) : "";
|
|
71
71
|
return /* @__PURE__ */ r(
|
|
72
72
|
ce,
|
|
73
73
|
{
|
|
@@ -75,44 +75,44 @@ const he = n.forwardRef(
|
|
|
75
75
|
disabled: o,
|
|
76
76
|
ariaLabel: a("datePicker.selectMultipleYears"),
|
|
77
77
|
onOpenChange: (e) => {
|
|
78
|
-
o ||
|
|
78
|
+
o || l(e);
|
|
79
79
|
},
|
|
80
80
|
onOpenAutoFocus: (e) => {
|
|
81
|
-
|
|
81
|
+
d.current || e.preventDefault(), d.current = !1;
|
|
82
82
|
},
|
|
83
|
-
popoverHandlers:
|
|
83
|
+
popoverHandlers: U,
|
|
84
84
|
trigger: /* @__PURE__ */ r(
|
|
85
85
|
"div",
|
|
86
86
|
{
|
|
87
|
-
ref:
|
|
87
|
+
ref: P,
|
|
88
88
|
"data-component": "multi-year-picker",
|
|
89
89
|
"data-state": i ? "open" : "closed",
|
|
90
90
|
onPointerDown: (e) => de({
|
|
91
91
|
disabled: o,
|
|
92
92
|
event: e,
|
|
93
|
-
onOpen: () =>
|
|
94
|
-
focusField: () =>
|
|
93
|
+
onOpen: () => l(!0),
|
|
94
|
+
focusField: () => f.current?.focus()
|
|
95
95
|
}),
|
|
96
96
|
children: /* @__PURE__ */ r(
|
|
97
|
-
|
|
97
|
+
oe,
|
|
98
98
|
{
|
|
99
|
-
ref:
|
|
100
|
-
value:
|
|
99
|
+
ref: f,
|
|
100
|
+
value: ee,
|
|
101
101
|
readOnly: !0,
|
|
102
102
|
onKeyDown: (e) => fe(e, {
|
|
103
103
|
disabled: o,
|
|
104
104
|
open: i,
|
|
105
|
-
onOpen: () =>
|
|
105
|
+
onOpen: () => l(!0),
|
|
106
106
|
onCancel: h,
|
|
107
107
|
onKeyboardOpen: () => {
|
|
108
|
-
|
|
108
|
+
d.current = !0;
|
|
109
109
|
}
|
|
110
110
|
}),
|
|
111
|
-
onClick: () => !o &&
|
|
112
|
-
placeholder:
|
|
111
|
+
onClick: () => !o && l(!0),
|
|
112
|
+
placeholder: q,
|
|
113
113
|
disabled: o,
|
|
114
114
|
"data-form-control": "input",
|
|
115
|
-
className:
|
|
115
|
+
className: ne("cursor-pointer", I),
|
|
116
116
|
suffix: /* @__PURE__ */ y("div", { className: "flex items-center gap-1", children: [
|
|
117
117
|
t && t.length > 0 && !o ? /* @__PURE__ */ y(M, { children: [
|
|
118
118
|
/* @__PURE__ */ r(x, { asChild: !0, children: /* @__PURE__ */ r(
|
|
@@ -125,7 +125,7 @@ const he = n.forwardRef(
|
|
|
125
125
|
e.stopPropagation(), b();
|
|
126
126
|
},
|
|
127
127
|
className: "inline-flex size-4 items-center justify-center border-none bg-transparent p-0",
|
|
128
|
-
children: /* @__PURE__ */ r(
|
|
128
|
+
children: /* @__PURE__ */ r(te, { className: "size-3 hover:text-content" })
|
|
129
129
|
}
|
|
130
130
|
) }),
|
|
131
131
|
/* @__PURE__ */ r(R, { variant: "tertiary", side: "top", children: a("calendar.clear") })
|
|
@@ -139,47 +139,47 @@ const he = n.forwardRef(
|
|
|
139
139
|
"data-component": "calendar-trigger",
|
|
140
140
|
"aria-label": a("datePicker.selectMultipleYears"),
|
|
141
141
|
onClick: (e) => {
|
|
142
|
-
e.stopPropagation(), o ||
|
|
142
|
+
e.stopPropagation(), o || l((p) => !p);
|
|
143
143
|
},
|
|
144
144
|
className: "inline-flex items-center justify-center border-none bg-transparent p-0",
|
|
145
|
-
children: /* @__PURE__ */ r(
|
|
145
|
+
children: /* @__PURE__ */ r(re, { className: "h-4 w-4 text-secondary-foreground" })
|
|
146
146
|
}
|
|
147
147
|
) }),
|
|
148
148
|
/* @__PURE__ */ r(R, { variant: "tertiary", side: "top", children: a("datePicker.selectMultipleYears") })
|
|
149
149
|
] })
|
|
150
150
|
] }),
|
|
151
|
-
...
|
|
151
|
+
...V
|
|
152
152
|
}
|
|
153
153
|
)
|
|
154
154
|
}
|
|
155
155
|
),
|
|
156
156
|
children: /* @__PURE__ */ r(
|
|
157
|
-
|
|
157
|
+
ae,
|
|
158
158
|
{
|
|
159
159
|
pickerType: "year",
|
|
160
160
|
yearMode: "multiple",
|
|
161
161
|
selectedYear: C,
|
|
162
|
-
footerFlashKey:
|
|
163
|
-
footerFlashTarget:
|
|
164
|
-
onYearSelect:
|
|
165
|
-
month:
|
|
166
|
-
onMonthChange:
|
|
167
|
-
disabled:
|
|
168
|
-
startMonth:
|
|
169
|
-
endMonth:
|
|
170
|
-
showFooter:
|
|
171
|
-
onApply:
|
|
162
|
+
footerFlashKey: J,
|
|
163
|
+
footerFlashTarget: Q,
|
|
164
|
+
onYearSelect: _,
|
|
165
|
+
month: W,
|
|
166
|
+
onMonthChange: X,
|
|
167
|
+
disabled: le(D, A),
|
|
168
|
+
startMonth: N,
|
|
169
|
+
endMonth: S,
|
|
170
|
+
showFooter: s,
|
|
171
|
+
onApply: $,
|
|
172
172
|
onCancel: h,
|
|
173
173
|
onClear: b,
|
|
174
|
-
showIntervalCaption:
|
|
175
|
-
...
|
|
174
|
+
showIntervalCaption: H,
|
|
175
|
+
...Z
|
|
176
176
|
}
|
|
177
177
|
)
|
|
178
178
|
}
|
|
179
179
|
);
|
|
180
180
|
}
|
|
181
181
|
);
|
|
182
|
-
|
|
182
|
+
ye.displayName = "MultiYearPicker";
|
|
183
183
|
export {
|
|
184
|
-
|
|
184
|
+
ye as MultiYearPicker
|
|
185
185
|
};
|