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,370 +1,371 @@
|
|
|
1
1
|
import { jsx as u, jsxs as W } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import { Cross as
|
|
2
|
+
import * as c from "react";
|
|
3
|
+
import { Cross as tt, CalendarMonth as rt } from "impact-nova-icons";
|
|
4
4
|
import { format as k } from "date-fns";
|
|
5
5
|
import { cn as Q } from "../../../lib/utils.js";
|
|
6
|
-
import { usePickerDismissActionsRef as
|
|
7
|
-
import { useFieldChrome as
|
|
8
|
-
import { Popover as mt, PopoverAnchor as
|
|
9
|
-
import { Calendar as
|
|
10
|
-
import { buildDateBoundsMatcher as
|
|
11
|
-
import { Tooltip as
|
|
12
|
-
import { resolveWeekSelection as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
import { usePickerDismissActionsRef as ot, usePickerFooterDismissNudge as nt, createRangePickerOpenChangeHandler as st, parseDateInput as U, normalizeOrderedRange as it, compareDates as ct, flashRangeReorder as at, isDateInputInvalid as le, resolveRangeFieldBlur as j, resolveRangePickerDismissFlash as lt, handlePickerEscapeKeyDown as fe, handlePickerSurfacePointerDown as ft, deferRangeInputBlur as dt, maskDateInput as de, resolveDateInputOnBlur as q } from "./date-input-behavior.js";
|
|
7
|
+
import { useFieldChrome as pt } from "../../../lib/primitives/use-field-chrome.js";
|
|
8
|
+
import { Popover as mt, PopoverAnchor as ut, PopoverContent as kt } from "../../feedback/popover/popover.js";
|
|
9
|
+
import { Calendar as gt } from "../../data-display/calendar/calendar.js";
|
|
10
|
+
import { buildDateBoundsMatcher as Rt } from "../../../lib/date-bounds-matcher.js";
|
|
11
|
+
import { Tooltip as pe, TooltipTrigger as me, TooltipContent as ue } from "../../feedback/tooltip/tooltip.js";
|
|
12
|
+
import { resolveWeekStartsOn as ht, resolveWeekSelection as Dt } from "../../../lib/fiscal-calendar/week-selection.js";
|
|
13
|
+
import { useImpactNovaI18n as yt } from "../../../i18n/use-impact-nova-i18n.js";
|
|
14
|
+
import { getDateFnsLocale as vt } from "../../../i18n/getDateFnsLocale.js";
|
|
15
|
+
import { coerceWeekRangeApply as xt, isWeekRangeSelection as bt } from "./calendar-selection-adapters.js";
|
|
16
|
+
import { fiscalCalendarPassThrough as Ct } from "./fiscal-pass-through.js";
|
|
17
|
+
const x = (t) => t?.from ? t.to ? t.to.endDate : t.from.endDate : void 0, S = (t) => t?.from ? { from: t.from, to: t.to } : void 0;
|
|
18
|
+
function ke(t, a) {
|
|
19
|
+
return !t && !a ? !0 : !t || !a ? !1 : t.startDate.getTime() === a.startDate.getTime();
|
|
19
20
|
}
|
|
20
|
-
function
|
|
21
|
-
return !t && !
|
|
21
|
+
function wt(t, a) {
|
|
22
|
+
return !t && !a ? !0 : !t || !a ? !1 : ke(t.from, a.from) && ke(t.to, a.to);
|
|
22
23
|
}
|
|
23
|
-
const
|
|
24
|
+
const It = c.forwardRef(
|
|
24
25
|
({
|
|
25
26
|
value: t,
|
|
26
|
-
onChange:
|
|
27
|
-
format:
|
|
28
|
-
placeholder:
|
|
29
|
-
minDate:
|
|
30
|
-
maxDate:
|
|
31
|
-
startMonth:
|
|
32
|
-
endMonth:
|
|
27
|
+
onChange: a,
|
|
28
|
+
format: n = "MM/dd/yyyy",
|
|
29
|
+
placeholder: ge,
|
|
30
|
+
minDate: Re,
|
|
31
|
+
maxDate: he,
|
|
32
|
+
startMonth: De,
|
|
33
|
+
endMonth: ye,
|
|
33
34
|
showFooter: g = !0,
|
|
34
35
|
calendarKind: N,
|
|
35
|
-
fiscalMode:
|
|
36
|
-
granularity:
|
|
37
|
-
fiscalMonthPattern:
|
|
38
|
-
fiscalYearStartMonth:
|
|
39
|
-
fiscalConfig:
|
|
40
|
-
weekStartsOn:
|
|
41
|
-
showPresets:
|
|
36
|
+
fiscalMode: z = "basic",
|
|
37
|
+
granularity: H,
|
|
38
|
+
fiscalMonthPattern: K,
|
|
39
|
+
fiscalYearStartMonth: M = 1,
|
|
40
|
+
fiscalConfig: O,
|
|
41
|
+
weekStartsOn: X,
|
|
42
|
+
showPresets: ve,
|
|
42
43
|
showPeriodBoundaries: xe,
|
|
43
|
-
autoNavigateToAvailable:
|
|
44
|
+
autoNavigateToAvailable: be,
|
|
44
45
|
comparison: Ce,
|
|
45
|
-
onComparisonChange:
|
|
46
|
+
onComparisonChange: we,
|
|
46
47
|
disabled: d,
|
|
47
|
-
className:
|
|
48
|
-
error:
|
|
49
|
-
isError:
|
|
50
|
-
size:
|
|
51
|
-
label:
|
|
52
|
-
helperText:
|
|
53
|
-
helperTextPosition:
|
|
54
|
-
required:
|
|
55
|
-
prefix:
|
|
56
|
-
prefixClick:
|
|
57
|
-
...
|
|
58
|
-
},
|
|
59
|
-
const
|
|
60
|
-
label:
|
|
61
|
-
helperText:
|
|
62
|
-
helperTextPosition:
|
|
63
|
-
error:
|
|
64
|
-
required:
|
|
48
|
+
className: Ie,
|
|
49
|
+
error: Te,
|
|
50
|
+
isError: Ee,
|
|
51
|
+
size: Z,
|
|
52
|
+
label: Pe,
|
|
53
|
+
helperText: We,
|
|
54
|
+
helperTextPosition: Se = "absolute",
|
|
55
|
+
required: Be,
|
|
56
|
+
prefix: Tt,
|
|
57
|
+
prefixClick: Et,
|
|
58
|
+
...Ne
|
|
59
|
+
}, Oe) => {
|
|
60
|
+
const _ = Te ?? Ee, Ve = pt({
|
|
61
|
+
label: Pe,
|
|
62
|
+
helperText: We,
|
|
63
|
+
helperTextPosition: Se,
|
|
64
|
+
error: _,
|
|
65
|
+
required: Be,
|
|
65
66
|
disabled: d ?? void 0,
|
|
66
67
|
rootClassName: "w-full min-w-[240px]"
|
|
67
|
-
}), {
|
|
68
|
-
|
|
69
|
-
const [
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}),
|
|
73
|
-
const e =
|
|
74
|
-
D(e?.from ? k(e.from.startDate, n, { locale: s }) : ""), x(
|
|
75
|
-
}, [
|
|
76
|
-
const
|
|
77
|
-
(e) =>
|
|
68
|
+
}), { locale: $, t: T } = yt(), s = c.useMemo(() => vt($), [$]), Y = ge ?? T("datePicker.selectWeekRange"), V = N === "fiscal", F = ht({ weekStartsOn: X, fiscalConfig: O }), G = c.useRef(null), ee = c.useRef(null), te = c.useRef(null), A = c.useRef(null), J = c.useRef(null);
|
|
69
|
+
c.useImperativeHandle(Oe, () => G.current);
|
|
70
|
+
const [p, R] = c.useState(!1), re = ot(), { footerFlashKey: Ae, footerFlashTarget: Le, popoverHandlers: je } = nt(g, p, re, te), E = c.useRef(!1), [l, h] = c.useState(t), [m, D] = c.useState(t?.from ? k(t.from.startDate, n, { locale: s }) : ""), [y, v] = c.useState(x(t) ? k(x(t), n, { locale: s }) : ""), [qe, P] = c.useState(t?.from?.startDate || /* @__PURE__ */ new Date()), ze = t?.from?.startDate.getTime(), He = x(t)?.getTime(), oe = c.useRef(t);
|
|
71
|
+
c.useEffect(() => {
|
|
72
|
+
oe.current = t;
|
|
73
|
+
}), c.useEffect(() => {
|
|
74
|
+
const e = oe.current;
|
|
75
|
+
D(e?.from ? k(e.from.startDate, n, { locale: s }) : ""), v(x(e) ? k(x(e), n, { locale: s }) : ""), h(e);
|
|
76
|
+
}, [ze, He, n, s]);
|
|
77
|
+
const Ke = c.useCallback(
|
|
78
|
+
(e) => st({
|
|
78
79
|
disabled: d ?? void 0,
|
|
79
80
|
showFooter: g,
|
|
80
81
|
containerRef: A,
|
|
81
|
-
popoverContentRef:
|
|
82
|
+
popoverContentRef: J,
|
|
82
83
|
setOpen: R
|
|
83
84
|
})(e),
|
|
84
85
|
[d, g]
|
|
85
|
-
),
|
|
86
|
-
|
|
87
|
-
if (
|
|
88
|
-
const e = U(
|
|
89
|
-
e.parsed ?
|
|
86
|
+
), ne = c.useRef(!1);
|
|
87
|
+
c.useEffect(() => {
|
|
88
|
+
if (p && !ne.current && !V) {
|
|
89
|
+
const e = U(m, n, s);
|
|
90
|
+
e.parsed ? P(e.parsed) : l?.from ? P(l.from.startDate) : t?.from && P(t.from.startDate);
|
|
90
91
|
}
|
|
91
|
-
|
|
92
|
-
}, [
|
|
93
|
-
const
|
|
94
|
-
const r =
|
|
95
|
-
h(r), r?.from ? (D(k(r.from.startDate, n, { locale: s })),
|
|
96
|
-
},
|
|
97
|
-
(e) =>
|
|
92
|
+
ne.current = p;
|
|
93
|
+
}, [p, m, n, s, l?.from, t?.from, V]);
|
|
94
|
+
const Me = (e) => {
|
|
95
|
+
const r = bt(e) ? e : void 0;
|
|
96
|
+
h(r), r?.from ? (D(k(r.from.startDate, n, { locale: s })), v(k(x(r), n, { locale: s }))) : (D(""), v("")), !g && r?.from && r?.to && r.from.startDate.getTime() !== r.to.startDate.getTime() && (a?.(r), R(!1));
|
|
97
|
+
}, b = c.useCallback(
|
|
98
|
+
(e) => Dt(e, {
|
|
98
99
|
calendarKind: N,
|
|
99
|
-
fiscalMode:
|
|
100
|
-
granularity:
|
|
101
|
-
fiscalMonthPattern:
|
|
102
|
-
fiscalYearStartMonth:
|
|
103
|
-
weekStartsOn:
|
|
104
|
-
fiscalConfig:
|
|
100
|
+
fiscalMode: z,
|
|
101
|
+
granularity: H,
|
|
102
|
+
fiscalMonthPattern: K,
|
|
103
|
+
fiscalYearStartMonth: M,
|
|
104
|
+
weekStartsOn: F,
|
|
105
|
+
fiscalConfig: O
|
|
105
106
|
}),
|
|
106
107
|
[
|
|
107
108
|
N,
|
|
108
|
-
q,
|
|
109
109
|
z,
|
|
110
110
|
H,
|
|
111
111
|
K,
|
|
112
|
-
|
|
113
|
-
F
|
|
112
|
+
M,
|
|
113
|
+
F,
|
|
114
|
+
O
|
|
114
115
|
]
|
|
115
|
-
), B =
|
|
116
|
-
const o =
|
|
116
|
+
), B = c.useCallback((e, r) => {
|
|
117
|
+
const o = it(
|
|
117
118
|
e,
|
|
118
119
|
r,
|
|
119
|
-
(
|
|
120
|
+
(i, f) => ct(i.startDate, f.startDate)
|
|
120
121
|
);
|
|
121
|
-
return o.swapped && (o.from && D(k(o.from.startDate, n, { locale: s })), o.to &&
|
|
122
|
-
}, [n, s]),
|
|
123
|
-
const r =
|
|
124
|
-
h(
|
|
125
|
-
},
|
|
126
|
-
h(t), D(t?.from ? k(t.from.startDate, n, { locale: s }) : ""), x(
|
|
127
|
-
},
|
|
128
|
-
h(void 0), D(""),
|
|
129
|
-
},
|
|
130
|
-
const r =
|
|
122
|
+
return o.swapped && (o.from && D(k(o.from.startDate, n, { locale: s })), o.to && v(k(x({ from: o.from, to: o.to }), n, { locale: s })), at(A.current)), { from: o.from, to: o.to };
|
|
123
|
+
}, [n, s]), se = (e) => {
|
|
124
|
+
const r = xt(e, S(l)), o = B(r?.from, r?.to), i = o.from ? { from: o.from, to: o.to } : void 0;
|
|
125
|
+
h(i), a?.(i), R(!1);
|
|
126
|
+
}, L = () => {
|
|
127
|
+
h(t), D(t?.from ? k(t.from.startDate, n, { locale: s }) : ""), v(x(t) ? k(x(t), n, { locale: s }) : ""), R(!1);
|
|
128
|
+
}, ie = () => {
|
|
129
|
+
h(void 0), D(""), v(""), a?.(void 0), g || R(!1);
|
|
130
|
+
}, Ge = (e) => {
|
|
131
|
+
const r = de(e.target.value, n, m);
|
|
131
132
|
if (D(r), r === "") {
|
|
132
133
|
const f = { to: l?.to };
|
|
133
|
-
h(f), g ||
|
|
134
|
+
h(f), g || a?.(void 0);
|
|
134
135
|
return;
|
|
135
136
|
}
|
|
136
|
-
const { parsed: o, isValid:
|
|
137
|
-
if (
|
|
138
|
-
const I = { from:
|
|
139
|
-
h(I), l?.to &&
|
|
137
|
+
const { parsed: o, isValid: i } = U(r, n, s);
|
|
138
|
+
if (i && o) {
|
|
139
|
+
const I = { from: b(o), to: l?.to };
|
|
140
|
+
h(I), l?.to && v(k(x(I), n, { locale: s })), V || P(o), g || a?.(S(I));
|
|
140
141
|
}
|
|
141
|
-
},
|
|
142
|
-
const r =
|
|
143
|
-
if (
|
|
142
|
+
}, Je = (e) => {
|
|
143
|
+
const r = de(e.target.value, n, y);
|
|
144
|
+
if (v(r), r === "") {
|
|
144
145
|
const f = { from: l?.from };
|
|
145
|
-
h(f), g ||
|
|
146
|
+
h(f), g || a?.(S(f));
|
|
146
147
|
return;
|
|
147
148
|
}
|
|
148
|
-
const { parsed: o, isValid:
|
|
149
|
-
if (
|
|
150
|
-
const f =
|
|
151
|
-
h(I), l?.from && D(k(l.from.startDate, n, { locale: s })), V ||
|
|
149
|
+
const { parsed: o, isValid: i } = U(r, n, s);
|
|
150
|
+
if (i && o) {
|
|
151
|
+
const f = b(o), I = { from: l?.from, to: f };
|
|
152
|
+
h(I), l?.from && D(k(l.from.startDate, n, { locale: s })), V || P(o), g || a?.(S(I));
|
|
152
153
|
}
|
|
153
|
-
},
|
|
154
|
-
const e =
|
|
155
|
-
e.resetToCommitted ? D(
|
|
156
|
-
let o = e.parsed ?
|
|
157
|
-
o &&
|
|
158
|
-
const f = o ? { from: o, to:
|
|
159
|
-
f ? (h(f),
|
|
160
|
-
},
|
|
161
|
-
|
|
154
|
+
}, Qe = () => {
|
|
155
|
+
const e = q(m, n, C, s), r = q(y, n, w, s);
|
|
156
|
+
e.resetToCommitted ? D(C) : e.parsed && D(e.display), r.resetToCommitted ? v(w) : r.parsed && v(r.display);
|
|
157
|
+
let o = e.parsed ? b(e.parsed) : l?.from, i = r.parsed ? b(r.parsed) : l?.to;
|
|
158
|
+
o && i && ({ from: o, to: i } = B(o, i));
|
|
159
|
+
const f = o ? { from: o, to: i } : void 0;
|
|
160
|
+
f ? (h(f), a?.(f)) : !m && !y && (h(void 0), a?.(void 0));
|
|
161
|
+
}, ce = () => {
|
|
162
|
+
dt(
|
|
162
163
|
A,
|
|
163
|
-
|
|
164
|
+
J,
|
|
164
165
|
() => {
|
|
165
|
-
const e = j(
|
|
166
|
-
e.resetToCommitted ? D(
|
|
167
|
-
let o = e.parsed ?
|
|
168
|
-
o &&
|
|
169
|
-
const f = o ||
|
|
170
|
-
h(f), g || (f ?
|
|
166
|
+
const e = j(m, n, C, s), r = j(y, n, w, s);
|
|
167
|
+
e.resetToCommitted ? D(C) : e.parsed && D(e.display), r.resetToCommitted ? v(w) : r.parsed && v(r.display);
|
|
168
|
+
let o = e.parsed ? b(e.parsed) : e.resetToCommitted ? t?.from : l?.from, i = r.parsed ? b(r.parsed) : r.resetToCommitted ? t?.to : l?.to;
|
|
169
|
+
o && i && ({ from: o, to: i } = B(o, i));
|
|
170
|
+
const f = o || i ? { from: o, to: i } : void 0;
|
|
171
|
+
h(f), g || (f ? a?.(f) : !m && !y && a?.(void 0));
|
|
171
172
|
}
|
|
172
173
|
);
|
|
173
174
|
}, ae = () => {
|
|
174
|
-
if (
|
|
175
|
-
|
|
175
|
+
if (p && g) {
|
|
176
|
+
se();
|
|
176
177
|
return;
|
|
177
178
|
}
|
|
178
|
-
if (!
|
|
179
|
+
if (!p) {
|
|
179
180
|
if (g) {
|
|
180
|
-
|
|
181
|
+
Qe();
|
|
181
182
|
return;
|
|
182
183
|
}
|
|
183
|
-
const e =
|
|
184
|
+
const e = q(m, n, C, s), r = q(y, n, w, s);
|
|
184
185
|
if (e.parsed || r.parsed) return;
|
|
185
|
-
|
|
186
|
+
E.current = !0, R(!0);
|
|
186
187
|
}
|
|
187
|
-
},
|
|
188
|
-
const e = j(
|
|
189
|
-
let o = e.parsed ?
|
|
190
|
-
o &&
|
|
191
|
-
const f = o ||
|
|
192
|
-
return
|
|
193
|
-
startInput:
|
|
188
|
+
}, C = t?.from ? k(t.from.startDate, n, { locale: s }) : "", w = x(t) ? k(x(t), n, { locale: s }) : "", Ue = C !== m, Xe = w !== y, Ze = le(m, n, s), _e = le(y, n, s), $e = "Start Date", Ye = "End Date", Fe = c.useCallback(() => {
|
|
189
|
+
const e = j(m, n, C, s), r = j(y, n, w, s);
|
|
190
|
+
let o = e.parsed ? b(e.parsed) : e.resetToCommitted ? t?.from : l?.from, i = r.parsed ? b(r.parsed) : r.resetToCommitted ? t?.to : l?.to;
|
|
191
|
+
o && i && ({ from: o, to: i } = B(o, i));
|
|
192
|
+
const f = o || i ? { from: o, to: i } : void 0;
|
|
193
|
+
return lt({
|
|
194
|
+
startInput: m,
|
|
194
195
|
endInput: y,
|
|
195
|
-
committedStart:
|
|
196
|
+
committedStart: C,
|
|
196
197
|
committedEnd: w,
|
|
197
198
|
committedRange: t,
|
|
198
199
|
pendingRange: S(l),
|
|
199
200
|
computeEffectiveRange: () => f,
|
|
200
|
-
rangesEqual: (I,
|
|
201
|
+
rangesEqual: (I, et) => wt(I, et)
|
|
201
202
|
});
|
|
202
203
|
}, [
|
|
203
|
-
|
|
204
|
+
m,
|
|
204
205
|
y,
|
|
205
|
-
|
|
206
|
+
C,
|
|
206
207
|
w,
|
|
207
208
|
t,
|
|
208
209
|
l,
|
|
209
210
|
n,
|
|
210
211
|
s,
|
|
211
212
|
B,
|
|
212
|
-
|
|
213
|
+
b
|
|
213
214
|
]);
|
|
214
|
-
return
|
|
215
|
-
|
|
216
|
-
onDismiss:
|
|
217
|
-
resolveFlash:
|
|
215
|
+
return c.useLayoutEffect(() => {
|
|
216
|
+
re.current = {
|
|
217
|
+
onDismiss: L,
|
|
218
|
+
resolveFlash: Fe
|
|
218
219
|
};
|
|
219
220
|
}), /* @__PURE__ */ u(
|
|
220
221
|
"div",
|
|
221
222
|
{
|
|
222
|
-
ref:
|
|
223
|
+
ref: te,
|
|
223
224
|
"data-component": "week-range-picker",
|
|
224
225
|
"data-disabled": d || void 0,
|
|
225
226
|
children: Ve.wrapControl(
|
|
226
|
-
/* @__PURE__ */ W(mt, { open: d ? !1 :
|
|
227
|
-
/* @__PURE__ */ u(
|
|
227
|
+
/* @__PURE__ */ W(mt, { open: d ? !1 : p, onOpenChange: Ke, children: [
|
|
228
|
+
/* @__PURE__ */ u(ut, { asChild: !0, children: /* @__PURE__ */ W(
|
|
228
229
|
"div",
|
|
229
230
|
{
|
|
230
231
|
ref: A,
|
|
231
|
-
"data-state":
|
|
232
|
-
onPointerDown: (e) =>
|
|
232
|
+
"data-state": p ? "open" : "closed",
|
|
233
|
+
onPointerDown: (e) => ft({
|
|
233
234
|
disabled: d,
|
|
234
235
|
event: e,
|
|
235
236
|
onOpen: () => R(!0),
|
|
236
237
|
focusField: (r) => {
|
|
237
|
-
r === "end" ?
|
|
238
|
+
r === "end" ? ee.current?.focus() : G.current?.focus();
|
|
238
239
|
}
|
|
239
240
|
}),
|
|
240
241
|
className: Q(
|
|
241
242
|
"flex w-full items-center justify-between gap-2 rounded-md border bg-canvas-elevated px-3 text-sm shadow-sm transition-colors hover:border-brand disabled:cursor-not-allowed disabled:bg-disabled-surface disabled:text-disabled-foreground disabled:border-stroke",
|
|
242
|
-
|
|
243
|
-
|
|
243
|
+
_ ? "border-destructive hover:border-destructive" : "border-field",
|
|
244
|
+
Z === "sm" ? "h-6" : Z === "md" ? "h-[28px]" : "h-8",
|
|
244
245
|
d && "pointer-events-none opacity-100 bg-disabled-surface border-stroke text-disabled-foreground hover:border-stroke",
|
|
245
246
|
"cursor-pointer",
|
|
246
|
-
|
|
247
|
+
Ie
|
|
247
248
|
),
|
|
248
249
|
children: [
|
|
249
250
|
/* @__PURE__ */ W("div", { className: "flex items-center gap-4 flex-1 min-w-0", children: [
|
|
250
251
|
/* @__PURE__ */ u(
|
|
251
252
|
"input",
|
|
252
253
|
{
|
|
253
|
-
ref:
|
|
254
|
+
ref: G,
|
|
254
255
|
type: "text",
|
|
255
|
-
value:
|
|
256
|
-
onChange:
|
|
257
|
-
onBlur:
|
|
256
|
+
value: m,
|
|
257
|
+
onChange: Ge,
|
|
258
|
+
onBlur: ce,
|
|
258
259
|
onClick: () => !d && R(!0),
|
|
259
260
|
onKeyDown: (e) => {
|
|
260
|
-
e.key === "Enter" && !d && (e.preventDefault(), ae()), e.key === "ArrowDown" && !
|
|
261
|
+
e.key === "Enter" && !d && (e.preventDefault(), ae()), e.key === "ArrowDown" && !p && !d && (e.preventDefault(), E.current = !0, R(!0)), e.key === "Escape" && p && fe(e, { open: p, onCancel: L });
|
|
261
262
|
},
|
|
262
|
-
placeholder:
|
|
263
|
+
placeholder: p ? n : Y,
|
|
263
264
|
disabled: !!d,
|
|
264
|
-
"aria-label":
|
|
265
|
+
"aria-label": $e,
|
|
265
266
|
"data-field": "start",
|
|
266
267
|
className: Q(
|
|
267
268
|
"flex-1 min-w-0 bg-transparent p-0 text-sm font-medium outline-none placeholder:font-medium placeholder:text-content-empty disabled:cursor-not-allowed disabled:opacity-50",
|
|
268
|
-
|
|
269
|
+
Ze ? "text-destructive" : Ue ? "text-content-placeholder" : ""
|
|
269
270
|
),
|
|
270
|
-
...
|
|
271
|
+
...Ne
|
|
271
272
|
}
|
|
272
273
|
),
|
|
273
274
|
/* @__PURE__ */ u(
|
|
274
275
|
"input",
|
|
275
276
|
{
|
|
276
|
-
ref:
|
|
277
|
+
ref: ee,
|
|
277
278
|
type: "text",
|
|
278
279
|
value: y,
|
|
279
|
-
onChange:
|
|
280
|
-
onBlur:
|
|
280
|
+
onChange: Je,
|
|
281
|
+
onBlur: ce,
|
|
281
282
|
onClick: () => !d && R(!0),
|
|
282
283
|
onKeyDown: (e) => {
|
|
283
|
-
e.key === "Enter" && !d && (e.preventDefault(), ae()), e.key === "ArrowDown" && !
|
|
284
|
+
e.key === "Enter" && !d && (e.preventDefault(), ae()), e.key === "ArrowDown" && !p && !d && (e.preventDefault(), E.current = !0, R(!0)), e.key === "Escape" && p && fe(e, { open: p, onCancel: L });
|
|
284
285
|
},
|
|
285
|
-
placeholder:
|
|
286
|
+
placeholder: p ? n : Y,
|
|
286
287
|
disabled: !!d,
|
|
287
|
-
"aria-label":
|
|
288
|
+
"aria-label": Ye,
|
|
288
289
|
"data-field": "end",
|
|
289
290
|
className: Q(
|
|
290
291
|
"flex-1 min-w-0 bg-transparent p-0 text-sm font-medium outline-none placeholder:font-medium placeholder:text-content-empty disabled:cursor-not-allowed disabled:opacity-50",
|
|
291
|
-
|
|
292
|
+
_e ? "text-destructive" : Xe ? "text-content-placeholder" : ""
|
|
292
293
|
)
|
|
293
294
|
}
|
|
294
295
|
)
|
|
295
296
|
] }),
|
|
296
297
|
/* @__PURE__ */ W("div", { className: "flex items-center gap-1 shrink-0", children: [
|
|
297
|
-
t?.from && !d && /* @__PURE__ */ W(
|
|
298
|
-
/* @__PURE__ */ u(
|
|
298
|
+
t?.from && !d && /* @__PURE__ */ W(pe, { children: [
|
|
299
|
+
/* @__PURE__ */ u(me, { asChild: !0, children: /* @__PURE__ */ u(
|
|
299
300
|
"button",
|
|
300
301
|
{
|
|
301
302
|
type: "button",
|
|
302
303
|
tabIndex: 0,
|
|
303
|
-
"aria-label":
|
|
304
|
+
"aria-label": T("calendar.clear"),
|
|
304
305
|
onClick: (e) => {
|
|
305
|
-
e.stopPropagation(),
|
|
306
|
+
e.stopPropagation(), ie();
|
|
306
307
|
},
|
|
307
308
|
className: "inline-flex size-4 items-center justify-center bg-transparent border-none p-0 cursor-pointer",
|
|
308
|
-
children: /* @__PURE__ */ u(
|
|
309
|
+
children: /* @__PURE__ */ u(tt, { className: "size-3 hover:text-content text-content-icon" })
|
|
309
310
|
}
|
|
310
311
|
) }),
|
|
311
|
-
/* @__PURE__ */ u(
|
|
312
|
+
/* @__PURE__ */ u(ue, { variant: "tertiary", side: "top", children: T("calendar.clear") })
|
|
312
313
|
] }),
|
|
313
|
-
/* @__PURE__ */ W(
|
|
314
|
-
/* @__PURE__ */ u(
|
|
315
|
-
e.stopPropagation(), d || R(!
|
|
314
|
+
/* @__PURE__ */ W(pe, { children: [
|
|
315
|
+
/* @__PURE__ */ u(me, { asChild: !0, children: /* @__PURE__ */ u("button", { type: "button", tabIndex: 0, "aria-label": T("datePicker.selectWeekRange"), onClick: (e) => {
|
|
316
|
+
e.stopPropagation(), d || R(!p);
|
|
316
317
|
}, onKeyDown: (e) => {
|
|
317
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), d || (
|
|
318
|
-
}, className: "inline-flex items-center justify-center bg-transparent border-none p-0 cursor-pointer", children: /* @__PURE__ */ u(
|
|
319
|
-
/* @__PURE__ */ u(
|
|
318
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), d || (E.current = !0, R(!p)));
|
|
319
|
+
}, className: "inline-flex items-center justify-center bg-transparent border-none p-0 cursor-pointer", children: /* @__PURE__ */ u(rt, { className: "h-4 w-4 text-secondary-foreground" }) }) }),
|
|
320
|
+
/* @__PURE__ */ u(ue, { variant: "tertiary", side: "top", children: T("datePicker.selectWeekRange") })
|
|
320
321
|
] })
|
|
321
322
|
] })
|
|
322
323
|
]
|
|
323
324
|
}
|
|
324
325
|
) }),
|
|
325
326
|
/* @__PURE__ */ u(
|
|
326
|
-
|
|
327
|
+
kt,
|
|
327
328
|
{
|
|
328
|
-
ref:
|
|
329
|
+
ref: J,
|
|
329
330
|
className: "w-auto p-0",
|
|
330
331
|
align: "start",
|
|
331
|
-
"aria-label":
|
|
332
|
+
"aria-label": T("datePicker.selectWeekRange"),
|
|
332
333
|
onOpenAutoFocus: (e) => {
|
|
333
|
-
|
|
334
|
+
E.current || e.preventDefault(), E.current = !1;
|
|
334
335
|
},
|
|
335
336
|
...je,
|
|
336
337
|
children: /* @__PURE__ */ u(
|
|
337
|
-
|
|
338
|
+
gt,
|
|
338
339
|
{
|
|
339
340
|
pickerType: "week",
|
|
340
341
|
weekMode: "range",
|
|
341
342
|
selectedWeeks: S(l),
|
|
342
343
|
footerFlashKey: Ae,
|
|
343
|
-
footerFlashTarget:
|
|
344
|
-
onWeekSelect:
|
|
345
|
-
month:
|
|
346
|
-
onMonthChange:
|
|
347
|
-
disabled:
|
|
348
|
-
startMonth:
|
|
349
|
-
endMonth:
|
|
344
|
+
footerFlashTarget: Le,
|
|
345
|
+
onWeekSelect: Me,
|
|
346
|
+
month: qe,
|
|
347
|
+
onMonthChange: P,
|
|
348
|
+
disabled: Rt(Re, he),
|
|
349
|
+
startMonth: De,
|
|
350
|
+
endMonth: ye,
|
|
350
351
|
showFooter: g,
|
|
351
|
-
...
|
|
352
|
+
...Ct({
|
|
352
353
|
calendarKind: N,
|
|
353
|
-
fiscalMode:
|
|
354
|
-
granularity:
|
|
355
|
-
fiscalMonthPattern:
|
|
356
|
-
fiscalYearStartMonth:
|
|
357
|
-
fiscalConfig:
|
|
358
|
-
weekStartsOn:
|
|
359
|
-
showPresets:
|
|
354
|
+
fiscalMode: z,
|
|
355
|
+
granularity: H,
|
|
356
|
+
fiscalMonthPattern: K,
|
|
357
|
+
fiscalYearStartMonth: M,
|
|
358
|
+
fiscalConfig: O,
|
|
359
|
+
weekStartsOn: X,
|
|
360
|
+
showPresets: ve,
|
|
360
361
|
showPeriodBoundaries: xe,
|
|
361
|
-
autoNavigateToAvailable:
|
|
362
|
+
autoNavigateToAvailable: be,
|
|
362
363
|
comparison: Ce,
|
|
363
|
-
onComparisonChange:
|
|
364
|
+
onComparisonChange: we
|
|
364
365
|
}),
|
|
365
|
-
onApply:
|
|
366
|
-
onCancel:
|
|
367
|
-
onClear:
|
|
366
|
+
onApply: se,
|
|
367
|
+
onCancel: L,
|
|
368
|
+
onClear: ie,
|
|
368
369
|
captionLayout: "dropdown"
|
|
369
370
|
}
|
|
370
371
|
)
|
|
@@ -376,7 +377,7 @@ const Ct = i.forwardRef(
|
|
|
376
377
|
);
|
|
377
378
|
}
|
|
378
379
|
);
|
|
379
|
-
|
|
380
|
+
It.displayName = "WeekRangePicker";
|
|
380
381
|
export {
|
|
381
|
-
|
|
382
|
+
It as WeekRangePicker
|
|
382
383
|
};
|