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,19 +1,19 @@
|
|
|
1
1
|
import { jsxs as y, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { Filter as
|
|
2
|
+
import { useRef as Ve, useCallback as X, useState as Le } from "react";
|
|
3
|
+
import { Filter as _e, Cross as j } from "impact-nova-icons";
|
|
4
4
|
import { cn as Ue } from "../../../../lib/utils.js";
|
|
5
5
|
import { DatePicker as Te } from "../../../forms/date-picker/date-picker.js";
|
|
6
6
|
import { MonthPicker as De } from "../../../forms/date-picker/month-picker.js";
|
|
7
7
|
import { WeekPicker as Ne } from "../../../forms/date-picker/week-picker.js";
|
|
8
8
|
import { Input as q } from "../../../forms/input/input.js";
|
|
9
9
|
import { Select as Pe } from "../../../forms/select/select.js";
|
|
10
|
-
import { Popover as
|
|
11
|
-
import { useImpactNovaI18n as
|
|
12
|
-
import { useGridHeader as
|
|
13
|
-
import { getMultiFilterIndices as
|
|
14
|
-
import {
|
|
15
|
-
import { useHeaderSearchEditingState as
|
|
16
|
-
const
|
|
10
|
+
import { Popover as Je, PopoverTrigger as Qe, PopoverContent as Xe, PopoverHeader as Ze, PopoverTitle as $e, PopoverBody as et } from "../../../feedback/popover/popover.js";
|
|
11
|
+
import { useImpactNovaI18n as tt } from "../../../../i18n/use-impact-nova-i18n.js";
|
|
12
|
+
import { useGridHeader as rt } from "./context/grid-header-context.js";
|
|
13
|
+
import { getMultiFilterIndices as H, parseInputPattern as we, mapOperatorToAgGrid as ke } from "./utils/filter-utils.js";
|
|
14
|
+
import { DEFAULT_DATE_DISPLAY_FORMAT as lt, serializeWeek as nt, serializeMonth as at, serializeDate as ot, displayDateToIso as Z } from "./utils/date-utils.js";
|
|
15
|
+
import { useHeaderSearchEditingState as it } from "./use-header-search-editing-state.js";
|
|
16
|
+
const Tt = ({
|
|
17
17
|
column: P,
|
|
18
18
|
api: F,
|
|
19
19
|
onClose: $,
|
|
@@ -22,21 +22,18 @@ const Dt = ({
|
|
|
22
22
|
onAdvanceSearchClick: re,
|
|
23
23
|
toggleAdvanceSearch: le,
|
|
24
24
|
advanceSearchEnabled: Se = !1,
|
|
25
|
-
selectOptions:
|
|
25
|
+
selectOptions: Y,
|
|
26
26
|
isMultiSelect: C,
|
|
27
|
-
onSelectScrollToBottom:
|
|
28
|
-
onSelectSearchChange:
|
|
29
|
-
onSelectOpen:
|
|
30
|
-
isLoadingSelect:
|
|
31
|
-
enableSpaceSplitting:
|
|
32
|
-
enableBooleanParsing:
|
|
27
|
+
onSelectScrollToBottom: Ae,
|
|
28
|
+
onSelectSearchChange: He,
|
|
29
|
+
onSelectOpen: ne,
|
|
30
|
+
isLoadingSelect: ae,
|
|
31
|
+
enableSpaceSplitting: ze = !1,
|
|
32
|
+
enableBooleanParsing: Be = !1,
|
|
33
33
|
enableDateParsing: Ie = !1
|
|
34
34
|
}) => {
|
|
35
|
-
const { t: s
|
|
36
|
-
|
|
37
|
-
Oe
|
|
38
|
-
), oe = lt(), L = Le(null), {
|
|
39
|
-
searchText: J,
|
|
35
|
+
const { t: s } = tt(), l = P.getColDef(), d = P.getColId(), G = l?.filter || "agTextColumnFilter", M = G === "agDateColumnFilter", K = G === "agSetColumnFilter" || Y && Y.length > 0 || l?.cellDataType === "boolean", V = l?.headerComponentParams?.datePickerVariant || "date", z = M && V === "month", B = M && V === "week", c = l?.headerComponentParams?.fiscalConfig, x = l?.headerComponentParams?.dateDisplayFormat || lt, oe = rt(), L = Ve(null), {
|
|
36
|
+
searchText: _,
|
|
40
37
|
dateDisplayString: I,
|
|
41
38
|
selectedDate: ie,
|
|
42
39
|
selectedMonth: se,
|
|
@@ -44,35 +41,35 @@ const Dt = ({
|
|
|
44
41
|
updateDraft: w,
|
|
45
42
|
handleFocus: p,
|
|
46
43
|
handleBlur: h,
|
|
47
|
-
clearEditingOverlay:
|
|
48
|
-
} =
|
|
44
|
+
clearEditingOverlay: Oe
|
|
45
|
+
} = it({
|
|
49
46
|
api: F,
|
|
50
47
|
colId: d,
|
|
51
48
|
colDef: l,
|
|
52
49
|
isDateFilter: M,
|
|
53
|
-
isMonthVariant:
|
|
54
|
-
isWeekVariant:
|
|
55
|
-
datePickerVariant:
|
|
50
|
+
isMonthVariant: z,
|
|
51
|
+
isWeekVariant: B,
|
|
52
|
+
datePickerVariant: V,
|
|
56
53
|
dateDisplayFormat: x
|
|
57
54
|
}), D = (e, t) => {
|
|
58
|
-
const
|
|
55
|
+
const n = (a) => a.replace(/[^0-9.\-+eE]/g, ""), i = (a, R) => {
|
|
59
56
|
const S = we(
|
|
60
|
-
|
|
57
|
+
a,
|
|
58
|
+
ze,
|
|
61
59
|
Be,
|
|
62
|
-
Ae,
|
|
63
60
|
Ie
|
|
64
61
|
);
|
|
65
62
|
if (S.conditions.length === 0) return null;
|
|
66
63
|
const Ce = (u) => {
|
|
67
64
|
let b = ke(u.operator);
|
|
68
|
-
if (
|
|
69
|
-
const Me = parseFloat(
|
|
65
|
+
if (R === "number") {
|
|
66
|
+
const Me = parseFloat(n(u.value));
|
|
70
67
|
return ["contains", "notContains", "startsWith", "endsWith"].includes(
|
|
71
68
|
b
|
|
72
69
|
) && (b = b === "notContains" ? "notEqual" : "equals"), u.operator === "inRange" ? {
|
|
73
70
|
type: b,
|
|
74
|
-
filter: parseFloat(
|
|
75
|
-
filterTo: parseFloat(
|
|
71
|
+
filter: parseFloat(n(u.value)) || 0,
|
|
72
|
+
filterTo: parseFloat(n(u.valueTo || "")) || 0,
|
|
76
73
|
filterType: "number"
|
|
77
74
|
} : isNaN(Me) ? null : { type: b, filter: Me, filterType: "number" };
|
|
78
75
|
}
|
|
@@ -83,18 +80,18 @@ const Dt = ({
|
|
|
83
80
|
filterType: "text"
|
|
84
81
|
};
|
|
85
82
|
};
|
|
86
|
-
let
|
|
83
|
+
let A = null;
|
|
87
84
|
if (S.conditions.length === 1)
|
|
88
|
-
|
|
85
|
+
A = Ce(S.conditions[0]);
|
|
89
86
|
else {
|
|
90
87
|
const u = S.conditions.map(Ce).filter((b) => b !== null);
|
|
91
|
-
u.length === 0 ?
|
|
92
|
-
filterType:
|
|
88
|
+
u.length === 0 ? A = null : u.length === 1 ? A = u[0] : A = {
|
|
89
|
+
filterType: R,
|
|
93
90
|
operator: S.logic,
|
|
94
91
|
conditions: u
|
|
95
92
|
};
|
|
96
93
|
}
|
|
97
|
-
return
|
|
94
|
+
return A;
|
|
98
95
|
};
|
|
99
96
|
let o = null;
|
|
100
97
|
if (!(e === null || e === "" || Array.isArray(e) && e.length === 0))
|
|
@@ -104,33 +101,33 @@ const Dt = ({
|
|
|
104
101
|
filterType: "set"
|
|
105
102
|
};
|
|
106
103
|
else if (t === "date")
|
|
107
|
-
if (
|
|
108
|
-
const
|
|
104
|
+
if (B && e && typeof e == "object" && "startDate" in e && "endDate" in e) {
|
|
105
|
+
const a = nt(e);
|
|
109
106
|
o = {
|
|
110
107
|
type: "inRange",
|
|
111
|
-
dateFrom:
|
|
112
|
-
dateTo:
|
|
108
|
+
dateFrom: a.dateFrom,
|
|
109
|
+
dateTo: a.dateTo,
|
|
113
110
|
filterType: "date"
|
|
114
111
|
};
|
|
115
|
-
} else if (
|
|
116
|
-
const
|
|
112
|
+
} else if (z && e && typeof e == "object" && "month" in e && "year" in e) {
|
|
113
|
+
const a = at(e);
|
|
117
114
|
o = {
|
|
118
115
|
type: "inRange",
|
|
119
|
-
dateFrom:
|
|
120
|
-
dateTo:
|
|
116
|
+
dateFrom: a.dateFrom,
|
|
117
|
+
dateTo: a.dateTo,
|
|
121
118
|
filterType: "date"
|
|
122
119
|
};
|
|
123
120
|
} else {
|
|
124
|
-
const
|
|
125
|
-
o =
|
|
121
|
+
const a = e instanceof Date ? ot(e) : null;
|
|
122
|
+
o = a ? { type: "equals", dateFrom: a, filterType: "date" } : null;
|
|
126
123
|
}
|
|
127
124
|
else {
|
|
128
|
-
const
|
|
129
|
-
o = i(String(e),
|
|
125
|
+
const a = l.filter === "agMultiColumnFilter" ? H(l) : null, R = a ? a.text !== -1 ? "text" : "number" : G === "agNumberColumnFilter" ? "number" : "text";
|
|
126
|
+
o = i(String(e), R);
|
|
130
127
|
}
|
|
131
|
-
const f = l.filter === "agMultiColumnFilter" ?
|
|
132
|
-
|
|
133
|
-
},
|
|
128
|
+
const f = l.filter === "agMultiColumnFilter" ? H(l) : null, T = f ? t === "text" ? f.text !== -1 ? f.text : f.number : t === "set" ? f.set : f.date : 0;
|
|
129
|
+
J(o, T);
|
|
130
|
+
}, U = (e) => {
|
|
134
131
|
if (ee) {
|
|
135
132
|
ee(Array.isArray(e) ? e.join(",") : e);
|
|
136
133
|
return;
|
|
@@ -138,31 +135,31 @@ const Dt = ({
|
|
|
138
135
|
D(e, M ? "date" : "text");
|
|
139
136
|
}, de = (e) => {
|
|
140
137
|
const t = e.target.value;
|
|
141
|
-
w({ searchText: t }),
|
|
138
|
+
w({ searchText: t }), U(t);
|
|
142
139
|
}, ue = (e) => {
|
|
143
|
-
w({ selectedDate: e }),
|
|
140
|
+
w({ selectedDate: e }), U(e);
|
|
144
141
|
}, fe = (e) => {
|
|
145
142
|
w({ selectedMonth: e }), D(e || null, "date");
|
|
146
143
|
}, pe = (e) => {
|
|
147
144
|
w({ selectedWeek: e }), D(e || null, "date");
|
|
148
|
-
},
|
|
145
|
+
}, We = (e) => {
|
|
149
146
|
if (!e.trim()) return null;
|
|
150
147
|
const t = we(e, !1, !1, !1);
|
|
151
148
|
if (t.conditions.length === 0) return null;
|
|
152
|
-
const
|
|
149
|
+
const n = (o) => {
|
|
153
150
|
let v = ke(o.operator);
|
|
154
151
|
if (["contains", "notContains", "startsWith", "endsWith"].includes(
|
|
155
152
|
v
|
|
156
153
|
) && (v = v === "notContains" ? "notEqual" : "equals"), o.operator === "inRange") {
|
|
157
|
-
let T =
|
|
158
|
-
return !T || !
|
|
154
|
+
let T = Z(o.value, x), a = Z(o.valueTo || "", x);
|
|
155
|
+
return !T || !a ? null : (T > a && ([T, a] = [a, T]), {
|
|
159
156
|
type: "inRange",
|
|
160
157
|
dateFrom: T,
|
|
161
|
-
dateTo:
|
|
158
|
+
dateTo: a,
|
|
162
159
|
filterType: "date"
|
|
163
160
|
});
|
|
164
161
|
}
|
|
165
|
-
const f =
|
|
162
|
+
const f = Z(o.value, x);
|
|
166
163
|
return f ? {
|
|
167
164
|
type: v,
|
|
168
165
|
dateFrom: f,
|
|
@@ -170,19 +167,19 @@ const Dt = ({
|
|
|
170
167
|
} : null;
|
|
171
168
|
};
|
|
172
169
|
if (t.conditions.length === 1)
|
|
173
|
-
return
|
|
174
|
-
const i = t.conditions.map(
|
|
170
|
+
return n(t.conditions[0]);
|
|
171
|
+
const i = t.conditions.map(n).filter((o) => o !== null);
|
|
175
172
|
return i.length === 0 ? null : i.length === 1 ? i[0] : {
|
|
176
173
|
filterType: "date",
|
|
177
174
|
operator: t.logic,
|
|
178
175
|
conditions: i
|
|
179
176
|
};
|
|
180
|
-
},
|
|
177
|
+
}, J = X(
|
|
181
178
|
(e, t) => {
|
|
182
|
-
const
|
|
179
|
+
const n = F.getFilterModel(), i = { ...n };
|
|
183
180
|
if (l.filter === "agMultiColumnFilter") {
|
|
184
181
|
if (t === -1) return;
|
|
185
|
-
const o =
|
|
182
|
+
const o = n[d], v = o && o.filterType === "multi" ? [...o.filterModels || []] : Array(l.filterParams?.filters?.length || 1).fill(null);
|
|
186
183
|
v[t] = e, v.every((f) => f === null) ? delete i[d] : i[d] = {
|
|
187
184
|
filterType: "multi",
|
|
188
185
|
filterModels: v
|
|
@@ -192,34 +189,34 @@ const Dt = ({
|
|
|
192
189
|
F.setFilterModel(i);
|
|
193
190
|
},
|
|
194
191
|
[F, d, l]
|
|
195
|
-
), he =
|
|
192
|
+
), he = X(
|
|
196
193
|
(e) => {
|
|
197
|
-
const t = l.filter === "agMultiColumnFilter" ?
|
|
198
|
-
|
|
194
|
+
const t = l.filter === "agMultiColumnFilter" ? H(l).date : 0;
|
|
195
|
+
J(e, t);
|
|
199
196
|
},
|
|
200
|
-
[l,
|
|
197
|
+
[l, J]
|
|
201
198
|
), me = (e) => {
|
|
202
199
|
const t = e.target.value.replace(/[^0-9/\-!=><+,~]/g, "");
|
|
203
200
|
if (w({ dateDisplayString: t }), !t.trim()) {
|
|
204
201
|
he(null);
|
|
205
202
|
return;
|
|
206
203
|
}
|
|
207
|
-
const
|
|
208
|
-
|
|
209
|
-
},
|
|
210
|
-
|
|
204
|
+
const n = We(t);
|
|
205
|
+
n && he(n);
|
|
206
|
+
}, Q = () => {
|
|
207
|
+
Oe(), U(""), te && te();
|
|
211
208
|
}, O = (e) => {
|
|
212
209
|
D(e, "set");
|
|
213
|
-
}, W =
|
|
210
|
+
}, W = Y || (l?.cellDataType === "boolean" ? [
|
|
214
211
|
{ label: s("gridHeader.true"), value: "true" },
|
|
215
212
|
{ label: s("gridHeader.false"), value: "false" }
|
|
216
|
-
] : []), ge =
|
|
213
|
+
] : []), ge = X(() => {
|
|
217
214
|
const e = F.getFilterModel()[d];
|
|
218
215
|
if (!e) return [];
|
|
219
216
|
if ("filterType" in e && e.filterType === "multi" && e.filterModels) {
|
|
220
|
-
const
|
|
221
|
-
if (
|
|
222
|
-
const i = e.filterModels[
|
|
217
|
+
const n = H(P.getColDef()).set;
|
|
218
|
+
if (n !== -1) {
|
|
219
|
+
const i = e.filterModels[n];
|
|
223
220
|
if (i?.filterType === "set" && i.values)
|
|
224
221
|
return i.values.filter((o) => o != null);
|
|
225
222
|
}
|
|
@@ -230,12 +227,12 @@ const Dt = ({
|
|
|
230
227
|
return [String(e.filter)];
|
|
231
228
|
}
|
|
232
229
|
return [];
|
|
233
|
-
}, [F, d, P]), [
|
|
234
|
-
const e =
|
|
230
|
+
}, [F, d, P]), [E, k] = Le(null), ve = () => {
|
|
231
|
+
const e = E !== null ? E : ge();
|
|
235
232
|
return C ? W.filter((t) => e.includes(t.value)) : W.find((t) => e.includes(t.value)) || null;
|
|
236
233
|
}, ye = (e) => {
|
|
237
234
|
let t = [];
|
|
238
|
-
if (Array.isArray(e) ? t = e.map((
|
|
235
|
+
if (Array.isArray(e) ? t = e.map((n) => n.value) : e && typeof e == "object" && "value" in e && (t = [e.value]), !C) {
|
|
239
236
|
O(t), e && $();
|
|
240
237
|
return;
|
|
241
238
|
}
|
|
@@ -246,14 +243,14 @@ const Dt = ({
|
|
|
246
243
|
if (C) {
|
|
247
244
|
if (e !== void 0) {
|
|
248
245
|
let t = [];
|
|
249
|
-
Array.isArray(e) ? t = e.map((
|
|
246
|
+
Array.isArray(e) ? t = e.map((n) => n.value) : e && typeof e == "object" && "value" in e ? t = [e.value] : e === null && (t = []), O(t), k(null);
|
|
250
247
|
return;
|
|
251
248
|
}
|
|
252
|
-
|
|
249
|
+
E !== null && (O(E), k(null));
|
|
253
250
|
}
|
|
254
|
-
},
|
|
255
|
-
k(ge()),
|
|
256
|
-
},
|
|
251
|
+
}, je = () => {
|
|
252
|
+
k(ge()), ne && ne();
|
|
253
|
+
}, qe = () => Se ? /* @__PURE__ */ r(
|
|
257
254
|
"svg",
|
|
258
255
|
{
|
|
259
256
|
className: "cursor-pointer text-navigation-muted hover:text-brand-variant-hover shrink-0",
|
|
@@ -268,19 +265,19 @@ const Dt = ({
|
|
|
268
265
|
},
|
|
269
266
|
children: /* @__PURE__ */ r("path", { d: "M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z" })
|
|
270
267
|
}
|
|
271
|
-
) : null,
|
|
268
|
+
) : null, Ye = () => /* @__PURE__ */ r(
|
|
272
269
|
"button",
|
|
273
270
|
{
|
|
274
271
|
onClick: $,
|
|
275
272
|
className: "cursor-pointer shrink-0 text-brand hover:text-brand-strong",
|
|
276
|
-
children: /* @__PURE__ */ r(
|
|
273
|
+
children: /* @__PURE__ */ r(j, { size: "xs" })
|
|
277
274
|
}
|
|
278
|
-
), N = l.filter === "agMultiColumnFilter", m =
|
|
275
|
+
), N = l.filter === "agMultiColumnFilter", m = H(l);
|
|
279
276
|
let g = "text";
|
|
280
|
-
N ? g = m.set !== -1 ? "set" : m.date !== -1 ? "date" : "text" :
|
|
281
|
-
const
|
|
282
|
-
const
|
|
283
|
-
return e !== null &&
|
|
277
|
+
N ? g = m.set !== -1 ? "set" : m.date !== -1 ? "date" : "text" : K ? g = "set" : M && (g = "date");
|
|
278
|
+
const Ge = N ? m.text !== -1 || m.number !== -1 : !M && !K, xe = N ? m.set !== -1 : K, be = N ? m.date !== -1 : M, Ke = F.getFilterModel()[d], Fe = N && Ke?.filterModels?.some((e, t) => {
|
|
279
|
+
const n = t === m.text || t === m.number ? "text" : t === m.set ? "set" : "date";
|
|
280
|
+
return e !== null && n !== g;
|
|
284
281
|
});
|
|
285
282
|
return /* @__PURE__ */ y("div", { className: "ag-header-cell-label flex items-center gap-1 w-full bg-brand-tint px-1 py-2 ag-header-cell-search-active h-full", children: [
|
|
286
283
|
g === "set" && xe ? /* @__PURE__ */ r(
|
|
@@ -296,12 +293,12 @@ const Dt = ({
|
|
|
296
293
|
menuWidth: "200px",
|
|
297
294
|
menuPortalTarget: document.body,
|
|
298
295
|
autoFocus: !0,
|
|
299
|
-
onMenuOpen:
|
|
296
|
+
onMenuOpen: je,
|
|
300
297
|
onMenuClose: Re,
|
|
301
|
-
onMenuScrollToBottom:
|
|
302
|
-
onInputChange:
|
|
298
|
+
onMenuScrollToBottom: Ae,
|
|
299
|
+
onInputChange: He,
|
|
303
300
|
onClearAll: Ee,
|
|
304
|
-
isLoading:
|
|
301
|
+
isLoading: ae,
|
|
305
302
|
onFocus: p,
|
|
306
303
|
onBlur: h
|
|
307
304
|
}
|
|
@@ -319,14 +316,14 @@ const Dt = ({
|
|
|
319
316
|
"button",
|
|
320
317
|
{
|
|
321
318
|
onClick: (e) => {
|
|
322
|
-
e.stopPropagation(),
|
|
319
|
+
e.stopPropagation(), Q();
|
|
323
320
|
},
|
|
324
321
|
className: "cursor-pointer text-navigation-muted hover:text-brand-variant-hover",
|
|
325
|
-
children: /* @__PURE__ */ r(
|
|
322
|
+
children: /* @__PURE__ */ r(j, { size: "xs" })
|
|
326
323
|
}
|
|
327
324
|
)
|
|
328
325
|
}
|
|
329
|
-
) :
|
|
326
|
+
) : B ? /* @__PURE__ */ r(
|
|
330
327
|
Ne,
|
|
331
328
|
{
|
|
332
329
|
value: ce || void 0,
|
|
@@ -344,7 +341,7 @@ const Dt = ({
|
|
|
344
341
|
fiscalYearStartMonth: c?.fiscalYearStartMonth,
|
|
345
342
|
weekStartsOn: c?.weekStartsOn
|
|
346
343
|
}
|
|
347
|
-
) :
|
|
344
|
+
) : z ? /* @__PURE__ */ r(
|
|
348
345
|
De,
|
|
349
346
|
{
|
|
350
347
|
value: se || void 0,
|
|
@@ -374,7 +371,7 @@ const Dt = ({
|
|
|
374
371
|
) : /* @__PURE__ */ r(
|
|
375
372
|
q,
|
|
376
373
|
{
|
|
377
|
-
value:
|
|
374
|
+
value: _,
|
|
378
375
|
onChange: de,
|
|
379
376
|
placeholder: s("filter.search"),
|
|
380
377
|
type: "text",
|
|
@@ -382,21 +379,21 @@ const Dt = ({
|
|
|
382
379
|
ref: L,
|
|
383
380
|
onFocus: p,
|
|
384
381
|
onBlur: h,
|
|
385
|
-
suffix:
|
|
382
|
+
suffix: _ && /* @__PURE__ */ r(
|
|
386
383
|
"button",
|
|
387
384
|
{
|
|
388
385
|
onClick: (e) => {
|
|
389
|
-
e.stopPropagation(),
|
|
386
|
+
e.stopPropagation(), Q();
|
|
390
387
|
},
|
|
391
388
|
className: "cursor-pointer text-navigation-muted hover:text-brand-variant-hover",
|
|
392
|
-
children: /* @__PURE__ */ r(
|
|
389
|
+
children: /* @__PURE__ */ r(j, { size: "xs" })
|
|
393
390
|
}
|
|
394
391
|
)
|
|
395
392
|
}
|
|
396
393
|
),
|
|
397
394
|
/* @__PURE__ */ y("div", { className: "flex items-center gap-1.5 shrink-0", children: [
|
|
398
|
-
N && /* @__PURE__ */ y(
|
|
399
|
-
/* @__PURE__ */ r(
|
|
395
|
+
N && /* @__PURE__ */ y(Je, { children: [
|
|
396
|
+
/* @__PURE__ */ r(Qe, { asChild: !0, children: /* @__PURE__ */ y(
|
|
400
397
|
"button",
|
|
401
398
|
{
|
|
402
399
|
type: "button",
|
|
@@ -404,7 +401,7 @@ const Dt = ({
|
|
|
404
401
|
className: "relative group p-1 hover:bg-brand-tint rounded-md transition-colors cursor-pointer bg-transparent border-none",
|
|
405
402
|
children: [
|
|
406
403
|
/* @__PURE__ */ r(
|
|
407
|
-
|
|
404
|
+
_e,
|
|
408
405
|
{
|
|
409
406
|
size: "md",
|
|
410
407
|
className: Ue(
|
|
@@ -417,15 +414,15 @@ const Dt = ({
|
|
|
417
414
|
]
|
|
418
415
|
}
|
|
419
416
|
) }),
|
|
420
|
-
/* @__PURE__ */ y(
|
|
421
|
-
/* @__PURE__ */ r(
|
|
422
|
-
/* @__PURE__ */ y(
|
|
423
|
-
g !== "text" &&
|
|
417
|
+
/* @__PURE__ */ y(Xe, { align: "end", className: "w-[300px]", children: [
|
|
418
|
+
/* @__PURE__ */ r(Ze, { children: /* @__PURE__ */ r($e, { children: s("gridHeader.activeFilters") }) }),
|
|
419
|
+
/* @__PURE__ */ y(et, { className: "flex flex-col gap-4", children: [
|
|
420
|
+
g !== "text" && Ge && /* @__PURE__ */ y("div", { className: "flex flex-col gap-1.5", children: [
|
|
424
421
|
/* @__PURE__ */ r("span", { className: "text-xs font-semibold text-content-tertiary", children: s("gridHeader.textSearch") }),
|
|
425
422
|
/* @__PURE__ */ r(
|
|
426
423
|
q,
|
|
427
424
|
{
|
|
428
|
-
value:
|
|
425
|
+
value: _,
|
|
429
426
|
onChange: de,
|
|
430
427
|
placeholder: s("filter.searchPlaceholder"),
|
|
431
428
|
className: "bg-canvas-elevated",
|
|
@@ -445,7 +442,7 @@ const Dt = ({
|
|
|
445
442
|
isMulti: C !== void 0 ? C : l?.cellDataType !== "boolean",
|
|
446
443
|
placeholder: s("filter.select"),
|
|
447
444
|
className: "w-full bg-canvas-elevated",
|
|
448
|
-
isLoading:
|
|
445
|
+
isLoading: ae,
|
|
449
446
|
onFocus: p,
|
|
450
447
|
onBlur: h
|
|
451
448
|
}
|
|
@@ -465,14 +462,14 @@ const Dt = ({
|
|
|
465
462
|
"button",
|
|
466
463
|
{
|
|
467
464
|
onClick: (e) => {
|
|
468
|
-
e.stopPropagation(),
|
|
465
|
+
e.stopPropagation(), Q();
|
|
469
466
|
},
|
|
470
467
|
className: "cursor-pointer text-navigation-muted hover:text-brand-variant-hover",
|
|
471
|
-
children: /* @__PURE__ */ r(
|
|
468
|
+
children: /* @__PURE__ */ r(j, { size: "xs" })
|
|
472
469
|
}
|
|
473
470
|
)
|
|
474
471
|
}
|
|
475
|
-
) :
|
|
472
|
+
) : B ? /* @__PURE__ */ r(
|
|
476
473
|
Ne,
|
|
477
474
|
{
|
|
478
475
|
value: ce || void 0,
|
|
@@ -487,7 +484,7 @@ const Dt = ({
|
|
|
487
484
|
fiscalYearStartMonth: c?.fiscalYearStartMonth,
|
|
488
485
|
weekStartsOn: c?.weekStartsOn
|
|
489
486
|
}
|
|
490
|
-
) :
|
|
487
|
+
) : z ? /* @__PURE__ */ r(
|
|
491
488
|
De,
|
|
492
489
|
{
|
|
493
490
|
value: se || void 0,
|
|
@@ -513,11 +510,11 @@ const Dt = ({
|
|
|
513
510
|
] })
|
|
514
511
|
] })
|
|
515
512
|
] }),
|
|
516
|
-
|
|
517
|
-
|
|
513
|
+
qe(),
|
|
514
|
+
Ye()
|
|
518
515
|
] })
|
|
519
516
|
] });
|
|
520
517
|
};
|
|
521
518
|
export {
|
|
522
|
-
|
|
519
|
+
Tt as HeaderSearchInput
|
|
523
520
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MonthSelection, WeekSelection } from '../../../../data-display/calendar';
|
|
2
|
-
/**
|
|
2
|
+
/** Default display format used across AG Grid date filters */
|
|
3
3
|
export declare const DEFAULT_DATE_DISPLAY_FORMAT = "MM/dd/yyyy";
|
|
4
|
-
export declare function resolveDateDisplayFormat(explicit: string | undefined, locale: string): string;
|
|
5
4
|
/**
|
|
6
5
|
* Convert a MonthSelection to an AG Grid inRange date filter range.
|
|
7
6
|
* Returns { dateFrom: 'YYYY-MM-01', dateTo: 'YYYY-MM-lastDay' }.
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { parse as c, isValid as f, format as g } from "date-fns";
|
|
2
|
-
import { getLocalizedDatePattern as y } from "../../../../../i18n/format/date-pattern.js";
|
|
3
2
|
const D = "MM/dd/yyyy";
|
|
4
|
-
function
|
|
5
|
-
return t && t.length > 0 ? t : y(n);
|
|
6
|
-
}
|
|
7
|
-
function M(t) {
|
|
3
|
+
function d(t) {
|
|
8
4
|
if (t.start && t.end) {
|
|
9
5
|
const s = t.start, u = t.end, o = (p) => String(p).padStart(2, "0");
|
|
10
6
|
return {
|
|
@@ -18,7 +14,7 @@ function M(t) {
|
|
|
18
14
|
dateTo: `${n}-${a}-${String(r).padStart(2, "0")}`
|
|
19
15
|
};
|
|
20
16
|
}
|
|
21
|
-
function
|
|
17
|
+
function $(t) {
|
|
22
18
|
if (!t || typeof t != "string") return null;
|
|
23
19
|
const n = t.split(" ")[0].split("T")[0], [e, r] = n.split("-").map(Number);
|
|
24
20
|
return isNaN(e) || isNaN(r) ? null : { year: e, month: r - 1 };
|
|
@@ -33,43 +29,43 @@ function l(t) {
|
|
|
33
29
|
const n = t.split(" ")[0].split("T")[0], [e, r, a] = n.split("-").map(Number);
|
|
34
30
|
return isNaN(e) || isNaN(r) || isNaN(a) ? null : new Date(e, r - 1, a);
|
|
35
31
|
}
|
|
36
|
-
function
|
|
32
|
+
function M() {
|
|
37
33
|
return i(/* @__PURE__ */ new Date());
|
|
38
34
|
}
|
|
39
|
-
function
|
|
35
|
+
function m() {
|
|
40
36
|
const t = /* @__PURE__ */ new Date();
|
|
41
37
|
return t.setDate(t.getDate() - 1), i(t);
|
|
42
38
|
}
|
|
43
|
-
function
|
|
39
|
+
function N(t, n = D) {
|
|
44
40
|
if (!t || typeof t != "string") return null;
|
|
45
41
|
const e = c(t, n, /* @__PURE__ */ new Date());
|
|
46
42
|
return f(e) ? g(e, "yyyy-MM-dd") : null;
|
|
47
43
|
}
|
|
48
|
-
function
|
|
44
|
+
function T(t, n = D) {
|
|
49
45
|
if (!t || typeof t != "string") return "";
|
|
50
46
|
const e = t.split(" ")[0].split("T")[0], r = c(e, "yyyy-MM-dd", /* @__PURE__ */ new Date());
|
|
51
47
|
return f(r) ? g(r, n) : "";
|
|
52
48
|
}
|
|
53
|
-
function
|
|
49
|
+
function h(t) {
|
|
54
50
|
return {
|
|
55
51
|
from: `${t}-01-01`,
|
|
56
52
|
to: `${t}-12-31`
|
|
57
53
|
};
|
|
58
54
|
}
|
|
59
|
-
function
|
|
55
|
+
function S(t, n) {
|
|
60
56
|
const e = new Date(n, t, 0).getDate(), r = String(t).padStart(2, "0");
|
|
61
57
|
return {
|
|
62
58
|
from: `${n}-${r}-01`,
|
|
63
59
|
to: `${n}-${r}-${e}`
|
|
64
60
|
};
|
|
65
61
|
}
|
|
66
|
-
function
|
|
62
|
+
function F(t) {
|
|
67
63
|
return {
|
|
68
64
|
dateFrom: i(t.startDate),
|
|
69
65
|
dateTo: i(t.endDate)
|
|
70
66
|
};
|
|
71
67
|
}
|
|
72
|
-
function
|
|
68
|
+
function w(t, n) {
|
|
73
69
|
if (!t || !n) return null;
|
|
74
70
|
const e = l(t), r = l(n);
|
|
75
71
|
return !e || !r ? null : {
|
|
@@ -83,16 +79,15 @@ function A(t, n) {
|
|
|
83
79
|
export {
|
|
84
80
|
D as DEFAULT_DATE_DISPLAY_FORMAT,
|
|
85
81
|
l as deserializeDate,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
m as resolveDateDisplayFormat,
|
|
82
|
+
$ as deserializeMonth,
|
|
83
|
+
w as deserializeWeek,
|
|
84
|
+
N as displayDateToIso,
|
|
85
|
+
S as getMonthRange,
|
|
86
|
+
M as getTodayStr,
|
|
87
|
+
h as getYearRange,
|
|
88
|
+
m as getYesterdayStr,
|
|
89
|
+
T as isoToDisplay,
|
|
95
90
|
i as serializeDate,
|
|
96
|
-
|
|
97
|
-
|
|
91
|
+
d as serializeMonth,
|
|
92
|
+
F as serializeWeek
|
|
98
93
|
};
|
|
@@ -65,7 +65,7 @@ export declare function hasAdvancedPatternSyntax(input: string): boolean;
|
|
|
65
65
|
* Detects ISO date strings and formats them using the given dateFormat.
|
|
66
66
|
*
|
|
67
67
|
* @param rule - The filter rule to format
|
|
68
|
-
* @param dateFormat - The date-fns display format for date values
|
|
68
|
+
* @param dateFormat - The date-fns display format for date values (default: MM/dd/yyyy)
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* formatRuleForDisplay({ operator: 'contains', value: 'john' }) // 'john'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AgGridWrapperProps } from './ag-grid.types';
|
|
2
2
|
import { subscribeGridApiEvent, subscribeGridApiEvents } from './grid-api-event-subscription';
|
|
3
3
|
export { subscribeGridApiEvent, subscribeGridApiEvents };
|
|
4
|
-
export declare function AgGridWrapper<TData>({ children, defaultColDef, defaultColGroupDef, columnDefs, valueFormatters, onGridReady: userOnGridReady, onGridPreDestroyed: userOnGridPreDestroyed, onFilterChanged: userOnFilterChanged, onSelectionChanged: userOnSelectionChanged, onModelUpdated: userOnModelUpdated,
|
|
4
|
+
export declare function AgGridWrapper<TData>({ children, defaultColDef, defaultColGroupDef, columnDefs, valueFormatters, onGridReady: userOnGridReady, onGridPreDestroyed: userOnGridPreDestroyed, onFilterChanged: userOnFilterChanged, onSelectionChanged: userOnSelectionChanged, onModelUpdated: userOnModelUpdated, ensureDomOrder, autoSizeStrategy, tooltipShowMode, tooltipShowDelay, tooltipHideDelay, tooltipInteraction, themeOverride, ...restProps }: AgGridWrapperProps<TData> & {
|
|
5
5
|
className?: string;
|
|
6
6
|
}): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export { useAgGridTruncationTooltip } from './use-ag-grid-truncation-tooltip';
|