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
|
@@ -26,6 +26,8 @@ export declare function fingerprintColumnTreeVisibility(items: NestedListItem[])
|
|
|
26
26
|
export declare function fingerprintColumnTreeItems(items: NestedListItem[]): string;
|
|
27
27
|
/** Fingerprint for sort/filter indicator badges on column-picker leaves. */
|
|
28
28
|
export declare function fingerprintColumnTreeIndicators(items: NestedListItem[]): string;
|
|
29
|
+
/** Grid-only sort/filter indicator fingerprint — no tree walk, no per-column isFilterActive. */
|
|
30
|
+
export declare function fingerprintGridColumnIndicators(gridApi: GridApi): string;
|
|
29
31
|
/**
|
|
30
32
|
* Run after `applyColumnState` returns. AG Grid applies pin/order/hide synchronously;
|
|
31
33
|
* `queueMicrotask` lets any same-turn grid events finish before we release the panel lock.
|
|
@@ -1,119 +1,130 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Fnv1a128Hasher as u } from "../../../lib/hash/fnv1a128.js";
|
|
2
|
+
import { isPickerEligibleColumnId as h } from "./data-table-picker-column-eligibility.js";
|
|
3
|
+
const C = 150, I = 300;
|
|
4
|
+
function a(t) {
|
|
5
|
+
return t === "left" || t === !0 ? "left" : t === "right" ? "right" : null;
|
|
4
6
|
}
|
|
5
|
-
function
|
|
6
|
-
return "pinned" in
|
|
7
|
+
function s(t, e) {
|
|
8
|
+
return "pinned" in t && t.pinned !== void 0 ? a(t.pinned) : a(e.getPinned());
|
|
7
9
|
}
|
|
8
|
-
function
|
|
9
|
-
const
|
|
10
|
-
if (!
|
|
11
|
-
const
|
|
12
|
-
return
|
|
10
|
+
function G(t, e) {
|
|
11
|
+
const r = t.getColumn(e);
|
|
12
|
+
if (!r) return null;
|
|
13
|
+
const l = t.getColumnState().find((n) => n.colId === e);
|
|
14
|
+
return l ? s(l, r) : a(r.getPinned());
|
|
13
15
|
}
|
|
14
|
-
function
|
|
15
|
-
return
|
|
16
|
-
if ((
|
|
16
|
+
function f(t, e) {
|
|
17
|
+
return t.map((r) => {
|
|
18
|
+
if ((r.category === "group" || r.children && r.children.length > 0) && r.children)
|
|
17
19
|
return {
|
|
18
|
-
...
|
|
19
|
-
children:
|
|
20
|
+
...r,
|
|
21
|
+
children: f(r.children, e)
|
|
20
22
|
};
|
|
21
|
-
const n =
|
|
22
|
-
let
|
|
23
|
-
if (
|
|
24
|
-
const
|
|
25
|
-
|
|
23
|
+
const n = r.data ?? {};
|
|
24
|
+
let i = null;
|
|
25
|
+
if (e !== null) {
|
|
26
|
+
const o = n.pinned;
|
|
27
|
+
i = o === "left" || o === "right" ? o : e;
|
|
26
28
|
}
|
|
27
29
|
return {
|
|
28
|
-
...
|
|
30
|
+
...r,
|
|
29
31
|
data: {
|
|
30
32
|
...n,
|
|
31
|
-
pinned:
|
|
33
|
+
pinned: i
|
|
32
34
|
}
|
|
33
35
|
};
|
|
34
36
|
});
|
|
35
37
|
}
|
|
36
|
-
function
|
|
37
|
-
return
|
|
38
|
-
...
|
|
39
|
-
children:
|
|
40
|
-
} :
|
|
41
|
-
...
|
|
42
|
-
children:
|
|
43
|
-
} :
|
|
38
|
+
function S(t) {
|
|
39
|
+
return t.map((e) => e.id === "root-frozen" ? {
|
|
40
|
+
...e,
|
|
41
|
+
children: e.children ? f(e.children, "left") : []
|
|
42
|
+
} : e.id === "root-scrollable" ? {
|
|
43
|
+
...e,
|
|
44
|
+
children: e.children ? f(e.children, null) : []
|
|
45
|
+
} : e);
|
|
44
46
|
}
|
|
45
|
-
function
|
|
46
|
-
const
|
|
47
|
-
for (const
|
|
48
|
-
if (
|
|
49
|
-
|
|
47
|
+
function y(t) {
|
|
48
|
+
const e = new u(), r = (l, n) => {
|
|
49
|
+
for (const i of l) {
|
|
50
|
+
if (i.id === "root-frozen") {
|
|
51
|
+
i.children && r(i.children, "left");
|
|
50
52
|
continue;
|
|
51
53
|
}
|
|
52
|
-
if (
|
|
53
|
-
|
|
54
|
+
if (i.id === "root-scrollable") {
|
|
55
|
+
i.children && r(i.children, null);
|
|
54
56
|
continue;
|
|
55
57
|
}
|
|
56
|
-
if ((
|
|
57
|
-
|
|
58
|
+
if ((i.category === "group" || i.children && i.children.length > 0) && i.children) {
|
|
59
|
+
r(i.children, n);
|
|
58
60
|
continue;
|
|
59
61
|
}
|
|
60
|
-
let
|
|
62
|
+
let d = "0";
|
|
61
63
|
if (n !== null) {
|
|
62
|
-
const c =
|
|
63
|
-
|
|
64
|
+
const c = i.data?.pinned;
|
|
65
|
+
d = c === "left" || c === "right" ? c : "left";
|
|
64
66
|
}
|
|
65
|
-
|
|
67
|
+
e.update(i.id).update(":").update(d).update("|");
|
|
66
68
|
}
|
|
67
69
|
};
|
|
68
|
-
return
|
|
70
|
+
return r(t, null), e.digest();
|
|
69
71
|
}
|
|
70
|
-
function
|
|
71
|
-
const
|
|
72
|
-
for (const n of
|
|
72
|
+
function v(t) {
|
|
73
|
+
const e = new u(), r = (l) => {
|
|
74
|
+
for (const n of l) {
|
|
73
75
|
if (n.id === "root-frozen" || n.id === "root-scrollable") {
|
|
74
|
-
n.children &&
|
|
76
|
+
n.children && r(n.children);
|
|
75
77
|
continue;
|
|
76
78
|
}
|
|
77
79
|
if ((n.category === "group" || n.children && n.children.length > 0) && n.children) {
|
|
78
|
-
|
|
80
|
+
r(n.children);
|
|
79
81
|
continue;
|
|
80
82
|
}
|
|
81
|
-
|
|
83
|
+
e.update(n.id).update(":").update(n.checked ? "1" : "0").update("|");
|
|
82
84
|
}
|
|
83
85
|
};
|
|
84
|
-
return
|
|
86
|
+
return r(t), e.digest();
|
|
85
87
|
}
|
|
86
|
-
function
|
|
87
|
-
const
|
|
88
|
-
for (const n of
|
|
88
|
+
function M(t) {
|
|
89
|
+
const e = new u(), r = (l) => {
|
|
90
|
+
for (const n of l) {
|
|
89
91
|
if (n.id === "root-frozen" || n.id === "root-scrollable") {
|
|
90
|
-
n.children &&
|
|
92
|
+
n.children && r(n.children);
|
|
91
93
|
continue;
|
|
92
94
|
}
|
|
93
95
|
if ((n.category === "group" || n.children && n.children.length > 0) && n.children) {
|
|
94
|
-
|
|
96
|
+
r(n.children);
|
|
95
97
|
continue;
|
|
96
98
|
}
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
`${n.id}:${l?.hasSortApplied ? "1" : "0"}:${l?.hasFilterApplied ? "1" : "0"}`
|
|
100
|
-
);
|
|
99
|
+
const o = n.data;
|
|
100
|
+
e.update(n.id).update(":").update(o?.hasSortApplied ? "1" : "0").update(":").update(o?.hasFilterApplied ? "1" : "0").update("|");
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
|
-
return
|
|
103
|
+
return r(t), e.digest();
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
|
|
105
|
+
function P(t) {
|
|
106
|
+
const e = t.getGridOption("context"), r = typeof e?.activeSearchColumnId == "string" ? e.activeSearchColumnId : null, l = typeof t.getFilterModel == "function" ? t.getFilterModel() : {}, n = new Set(Object.keys(l ?? {})), i = new u();
|
|
107
|
+
for (const o of t.getColumnState()) {
|
|
108
|
+
if (!h(o.colId))
|
|
109
|
+
continue;
|
|
110
|
+
const d = n.has(o.colId) || r === o.colId;
|
|
111
|
+
i.update(o.colId).update(":").update(o.sort ? "1" : "0").update(":").update(d ? "1" : "0").update("|");
|
|
112
|
+
}
|
|
113
|
+
return i.digest();
|
|
114
|
+
}
|
|
115
|
+
function T(t) {
|
|
116
|
+
queueMicrotask(t);
|
|
107
117
|
}
|
|
108
118
|
export {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
+
C as EXTERNAL_SYNC_DEBOUNCE_MS,
|
|
120
|
+
I as GRID_AUTO_UNPIN_WAIT_MS,
|
|
121
|
+
T as afterSynchronousColumnApply,
|
|
122
|
+
S as alignColumnTreePinMetadata,
|
|
123
|
+
M as fingerprintColumnTreeIndicators,
|
|
124
|
+
y as fingerprintColumnTreeLayout,
|
|
125
|
+
v as fingerprintColumnTreeVisibility,
|
|
126
|
+
P as fingerprintGridColumnIndicators,
|
|
127
|
+
a as normalizeColumnPinned,
|
|
128
|
+
G as readGridColumnPinned,
|
|
129
|
+
s as resolveColumnPinnedFromGridState
|
|
119
130
|
};
|
|
@@ -1,44 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
function m(i) {
|
|
1
|
+
function h(i) {
|
|
3
2
|
const n = i.colId ?? i.field;
|
|
4
3
|
return typeof n == "string" && n.length > 0 ? n : void 0;
|
|
5
4
|
}
|
|
6
|
-
function c(i, n,
|
|
7
|
-
if (!
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return;
|
|
11
|
-
}
|
|
12
|
-
n === "right" && t.rightColIds.push(i);
|
|
5
|
+
function c(i, n, e) {
|
|
6
|
+
if (n === "left" || n === !0) {
|
|
7
|
+
e.leftColIds.push(i);
|
|
8
|
+
return;
|
|
13
9
|
}
|
|
10
|
+
n === "right" && e.rightColIds.push(i);
|
|
14
11
|
}
|
|
15
|
-
function
|
|
16
|
-
const
|
|
17
|
-
if (
|
|
12
|
+
function m(i, n) {
|
|
13
|
+
const e = h(i), d = i.pinned ?? i.initialPinned, t = i.hide ?? i.initialHide;
|
|
14
|
+
if (e && (d != null && c(e, d, n.columnPinning), t === !0 && n.columnVisibility.hiddenColIds.push(e)), !(i.pinned !== void 0 || i.hide !== void 0 || i.initialPinned !== void 0 || i.initialHide !== void 0))
|
|
18
15
|
return i;
|
|
19
|
-
const { pinned: o, hide: C, initialPinned:
|
|
20
|
-
return d !== void 0 && (l.initialPinned = d),
|
|
16
|
+
const { pinned: o, hide: C, initialPinned: f, initialHide: P, ...s } = i, l = { ...s };
|
|
17
|
+
return d !== void 0 && (l.initialPinned = d), t !== void 0 && (l.initialHide = t), l;
|
|
21
18
|
}
|
|
22
|
-
function
|
|
23
|
-
let
|
|
24
|
-
const d = i.map((
|
|
25
|
-
if ("children" in
|
|
26
|
-
const o =
|
|
27
|
-
|
|
19
|
+
function u(i, n) {
|
|
20
|
+
let e = !1;
|
|
21
|
+
const d = i.map((t) => {
|
|
22
|
+
if ("children" in t && t.children) {
|
|
23
|
+
const o = u(
|
|
24
|
+
t.children,
|
|
28
25
|
n
|
|
29
26
|
);
|
|
30
|
-
return o ===
|
|
31
|
-
...
|
|
27
|
+
return o === t.children ? t : (e = !0, {
|
|
28
|
+
...t,
|
|
32
29
|
children: o
|
|
33
30
|
});
|
|
34
31
|
}
|
|
35
|
-
const r =
|
|
36
|
-
|
|
32
|
+
const r = m(
|
|
33
|
+
t,
|
|
37
34
|
n
|
|
38
35
|
);
|
|
39
|
-
return r !==
|
|
36
|
+
return r !== t && (e = !0), r;
|
|
40
37
|
});
|
|
41
|
-
return
|
|
38
|
+
return e ? d : i;
|
|
42
39
|
}
|
|
43
40
|
function g() {
|
|
44
41
|
return {
|
|
@@ -46,24 +43,24 @@ function g() {
|
|
|
46
43
|
columnVisibility: { hiddenColIds: [] }
|
|
47
44
|
};
|
|
48
45
|
}
|
|
49
|
-
function
|
|
46
|
+
function v(i) {
|
|
50
47
|
const n = g();
|
|
51
48
|
return !i || i.length === 0 ? { runtimeColumnDefs: [], extractedRuntimeDefaults: n } : {
|
|
52
|
-
runtimeColumnDefs:
|
|
49
|
+
runtimeColumnDefs: u(
|
|
53
50
|
i,
|
|
54
51
|
n
|
|
55
52
|
),
|
|
56
53
|
extractedRuntimeDefaults: n
|
|
57
54
|
};
|
|
58
55
|
}
|
|
59
|
-
function
|
|
60
|
-
const d = !
|
|
61
|
-
if (!i && !d && !
|
|
56
|
+
function y(i, n, e) {
|
|
57
|
+
const d = !e?.columnPinning && (n.columnPinning.leftColIds.length > 0 || n.columnPinning.rightColIds.length > 0), t = !e?.columnVisibility && n.columnVisibility.hiddenColIds.length > 0;
|
|
58
|
+
if (!i && !d && !t)
|
|
62
59
|
return;
|
|
63
60
|
const r = { ...i };
|
|
64
|
-
return !i?.columnPinning && d && (r.columnPinning = n.columnPinning), !i?.columnVisibility &&
|
|
61
|
+
return !i?.columnPinning && d && (r.columnPinning = n.columnPinning), !i?.columnVisibility && t && (r.columnVisibility = n.columnVisibility), !r.columnPinning && !r.columnVisibility && Object.keys(r).length === 0 ? i : Object.keys(r).length > 0 ? r : void 0;
|
|
65
62
|
}
|
|
66
63
|
export {
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
v as extractRuntimeColumnDefs,
|
|
65
|
+
y as mergeInitialGridRuntimeState
|
|
69
66
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GridApi } from 'ag-grid-community';
|
|
2
|
+
import { NestedListItem } from '../nested-list/nested-list.types';
|
|
3
|
+
export interface TreeColumnChangeContext {
|
|
4
|
+
gridApi: GridApi;
|
|
5
|
+
newItems: NestedListItem[];
|
|
6
|
+
releaseLockAndRebuildTreeFromGrid: () => void;
|
|
7
|
+
applyExternalGridSync: () => void;
|
|
8
|
+
setIsUpdating: (isUpdating: boolean) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function applyTreeColumnChanges(context: TreeColumnChangeContext): void;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { mergePartialOrderedColumnState as T } from "./data-table-column-state.js";
|
|
2
|
+
import { afterSynchronousColumnApply as I, normalizeColumnPinned as C, GRID_AUTO_UNPIN_WAIT_MS as b } from "./data-table-column-apply.js";
|
|
3
|
+
import { buildColumnStateFromTree as P } from "./build-column-state-from-tree.js";
|
|
4
|
+
import { subscribeGridApiEvent as h } from "../ag-grid-react/grid-api-event-subscription.js";
|
|
5
|
+
function k(a) {
|
|
6
|
+
const {
|
|
7
|
+
gridApi: t,
|
|
8
|
+
newItems: r,
|
|
9
|
+
releaseLockAndRebuildTreeFromGrid: o,
|
|
10
|
+
applyExternalGridSync: s,
|
|
11
|
+
setIsUpdating: i
|
|
12
|
+
} = a;
|
|
13
|
+
i(!0);
|
|
14
|
+
const l = P(r);
|
|
15
|
+
if (l.length === 0) {
|
|
16
|
+
I(() => {
|
|
17
|
+
o();
|
|
18
|
+
});
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
const c = t.getColumnState(), d = T(c, l);
|
|
22
|
+
U({
|
|
23
|
+
gridApi: t,
|
|
24
|
+
mergedState: d,
|
|
25
|
+
releaseLockAndRebuildTreeFromGrid: o,
|
|
26
|
+
applyExternalGridSync: s,
|
|
27
|
+
setIsUpdating: i
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function U(a) {
|
|
31
|
+
const {
|
|
32
|
+
gridApi: t,
|
|
33
|
+
mergedState: r,
|
|
34
|
+
releaseLockAndRebuildTreeFromGrid: o,
|
|
35
|
+
applyExternalGridSync: s,
|
|
36
|
+
setIsUpdating: i
|
|
37
|
+
} = a, l = t.getColumnState(), c = new Set(
|
|
38
|
+
l.filter((e) => C(e.pinned)).map((e) => e.colId)
|
|
39
|
+
), d = r.filter(
|
|
40
|
+
(e) => C(e.pinned) && !c.has(e.colId)
|
|
41
|
+
), y = new Set(d.map((e) => e.colId));
|
|
42
|
+
t.applyColumnState({ state: r, applyOrder: !0 });
|
|
43
|
+
const A = () => {
|
|
44
|
+
o();
|
|
45
|
+
};
|
|
46
|
+
if (y.size === 0) {
|
|
47
|
+
I(A);
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
let u = !1, m = null, f = null;
|
|
51
|
+
f = h(t, "columnPinned", () => {
|
|
52
|
+
if (u || t.isDestroyed())
|
|
53
|
+
return;
|
|
54
|
+
const e = t.getColumnState();
|
|
55
|
+
if (d.filter((p) => {
|
|
56
|
+
const n = e.find((S) => S.colId === p.colId);
|
|
57
|
+
return n && !n.pinned;
|
|
58
|
+
}).length > 0) {
|
|
59
|
+
u = !0, m && clearTimeout(m), f?.();
|
|
60
|
+
const p = r.filter(
|
|
61
|
+
(n) => n.pinned && !y.has(n.colId)
|
|
62
|
+
);
|
|
63
|
+
if (p.length > 0) {
|
|
64
|
+
const n = p[0], S = r.map(
|
|
65
|
+
(g) => g.colId === n.colId ? { ...g, pinned: null } : g
|
|
66
|
+
);
|
|
67
|
+
t.applyColumnState({ state: S, applyOrder: !0 });
|
|
68
|
+
}
|
|
69
|
+
I(() => {
|
|
70
|
+
i(!1), s();
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}), m = setTimeout(() => {
|
|
74
|
+
f?.(), u || A();
|
|
75
|
+
}, b);
|
|
76
|
+
}
|
|
77
|
+
export {
|
|
78
|
+
k as applyTreeColumnChanges
|
|
79
|
+
};
|
|
@@ -1,86 +1,144 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { useDataTable as
|
|
4
|
-
import { useDataTableSheet as
|
|
5
|
-
import { NestedList as
|
|
6
|
-
import { SelectionMode as
|
|
7
|
-
import { useImpactNovaI18n as
|
|
8
|
-
import { countNestedListLeaves as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { jsxs as H, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as j, useState as G, useMemo as s, useCallback as d } from "react";
|
|
3
|
+
import { useDataTable as U } from "./data-table-context.js";
|
|
4
|
+
import { useDataTableSheet as W } from "./data-table-sheet-context.js";
|
|
5
|
+
import { NestedList as Z } from "../nested-list/nested-list.js";
|
|
6
|
+
import { SelectionMode as q } from "../nested-list/nested-list.types.js";
|
|
7
|
+
import { useImpactNovaI18n as J } from "../../../i18n/use-impact-nova-i18n.js";
|
|
8
|
+
import { countNestedListLeaves as K, buildCollapsedStateForAllGroups as Q } from "../nested-list/nested-list-tree-utils.js";
|
|
9
|
+
import { NESTED_LIST_VIRTUALIZATION_THRESHOLD as X, NESTED_LIST_ROOT_FROZEN_ID as Y } from "../nested-list/nested-list-constants.js";
|
|
10
|
+
import { PinSwitch as $ } from "./pin-switch.js";
|
|
11
|
+
import { ColumnIndicator as f } from "./column-indicator.js";
|
|
12
|
+
import { IndicatorLegend as ee } from "./indicator-legend.js";
|
|
13
|
+
import { useDataTableColumnListSync as te } from "./use-data-table-column-list-sync.js";
|
|
14
|
+
import { buildFlatColumnVirtualRowModel as ne } from "./data-table-flat-column-virtual-rows.js";
|
|
15
|
+
import { isValidColumnPickerGroupDrop as oe } from "./column-picker-drop-validation.js";
|
|
16
|
+
const le = 100, Ae = ({
|
|
17
|
+
enableApplyDiscard: p = !1,
|
|
18
|
+
showSearch: v = !0,
|
|
19
|
+
showSelectAll: g = !0,
|
|
20
|
+
showCollapse: A = !0
|
|
18
21
|
}) => {
|
|
19
|
-
const { gridApi:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
const { gridApi: L } = U(), { open: I } = W(), { t: u } = J(), T = j({}), [i, y] = G({}), c = s(
|
|
23
|
+
() => ({
|
|
24
|
+
frozenColumns: u("dataTable.frozenColumns"),
|
|
25
|
+
scrollableColumns: u("dataTable.scrollableColumns")
|
|
26
|
+
}),
|
|
27
|
+
[u]
|
|
28
|
+
), {
|
|
29
|
+
items: l,
|
|
30
|
+
columnPickerAuthority: t,
|
|
31
|
+
pickerMode: D,
|
|
32
|
+
isReady: N,
|
|
33
|
+
listWrapperRef: R,
|
|
34
|
+
handleChange: h,
|
|
35
|
+
handleSubmit: _,
|
|
36
|
+
handlePinChange: C,
|
|
37
|
+
handleAuthorityItemToggle: E,
|
|
38
|
+
handleAuthorityVirtualDrop: x,
|
|
39
|
+
handleAuthoritySelectAll: O
|
|
40
|
+
} = te({
|
|
41
|
+
gridApi: L,
|
|
42
|
+
frozenColumnsLabel: c.frozenColumns,
|
|
43
|
+
scrollableColumnsLabel: c.scrollableColumns,
|
|
44
|
+
isSyncActive: I
|
|
45
|
+
}), n = D === "authority-flat" && t != null, m = s(() => n && t ? t.orderedColumnIds.length : K(l), [n, t, l]), F = s(() => n || Object.keys(i).length > 0 || l.length === 0 || m <= le ? i : Q(l), [i, m, n, l]), V = s(() => m >= X ? "virtual-index" : "sortable", [m]), b = s(() => {
|
|
46
|
+
if (n && t) {
|
|
47
|
+
for (const r of t.nonSavableByColumnId.values())
|
|
48
|
+
if (r)
|
|
49
|
+
return !0;
|
|
50
|
+
return !1;
|
|
51
|
+
}
|
|
52
|
+
const e = [...l];
|
|
53
|
+
for (; e.length > 0; ) {
|
|
54
|
+
const r = e.pop();
|
|
55
|
+
if (!r)
|
|
56
|
+
continue;
|
|
57
|
+
if (r.children) {
|
|
58
|
+
e.push(...r.children);
|
|
59
|
+
continue;
|
|
60
|
+
}
|
|
61
|
+
if (r.data?.isNonSavable)
|
|
62
|
+
return !0;
|
|
63
|
+
}
|
|
64
|
+
return !1;
|
|
65
|
+
}, [t, n, l]), S = s(() => {
|
|
66
|
+
const e = [
|
|
67
|
+
{ type: "sort" },
|
|
68
|
+
{ type: "filter" }
|
|
69
|
+
];
|
|
70
|
+
return b && e.push({ type: "nonSavable" }), e;
|
|
71
|
+
}, [b]), M = d(
|
|
72
|
+
(e) => t ? ne(t, c, {
|
|
73
|
+
searchQuery: e,
|
|
74
|
+
sortAppliedByColumnId: t.sortAppliedByColumnId,
|
|
75
|
+
filterAppliedByColumnId: t.filterAppliedByColumnId,
|
|
76
|
+
nonSavableByColumnId: t.nonSavableByColumnId
|
|
77
|
+
}) : { rowCount: 0, getRowAt: () => ({ item: l[0], level: 0, indentLevel: 0 }) },
|
|
78
|
+
[t, c, l]
|
|
79
|
+
), B = d(
|
|
32
80
|
(e) => {
|
|
33
|
-
|
|
81
|
+
h(e, p);
|
|
34
82
|
},
|
|
35
|
-
[
|
|
36
|
-
),
|
|
37
|
-
(e
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
83
|
+
[p, h]
|
|
84
|
+
), k = d(
|
|
85
|
+
(e) => n ? !0 : oe(e),
|
|
86
|
+
[n]
|
|
87
|
+
), w = d(
|
|
88
|
+
(e, r) => {
|
|
89
|
+
if (!r.isLeaf) return null;
|
|
90
|
+
const o = e.data;
|
|
91
|
+
return !o?.hasSortApplied && !o?.hasFilterApplied && !o?.isNonSavable ? null : /* @__PURE__ */ H("span", { className: "inline-flex items-center gap-1 shrink-0", children: [
|
|
92
|
+
o?.hasSortApplied && /* @__PURE__ */ a(f, { type: "sort" }),
|
|
93
|
+
o?.hasFilterApplied && /* @__PURE__ */ a(f, { type: "filter" }),
|
|
94
|
+
o?.isNonSavable && /* @__PURE__ */ a(f, { type: "nonSavable" })
|
|
43
95
|
] });
|
|
44
96
|
},
|
|
45
97
|
[]
|
|
46
|
-
),
|
|
47
|
-
(e,
|
|
48
|
-
const
|
|
49
|
-
return e.category === "structure" ? e.id !==
|
|
50
|
-
|
|
98
|
+
), P = d(
|
|
99
|
+
(e, r) => {
|
|
100
|
+
const o = e.data;
|
|
101
|
+
return e.category === "structure" ? e.id !== Y ? null : /* @__PURE__ */ a(ee, { entries: S }) : !r.isLeaf || !(o?.pinned === "left" || o?.pinned === "right") ? null : /* @__PURE__ */ a(
|
|
102
|
+
$,
|
|
51
103
|
{
|
|
52
|
-
value:
|
|
53
|
-
onChange: (
|
|
104
|
+
value: o?.pinned ?? null,
|
|
105
|
+
onChange: (z) => C(e.id, z),
|
|
54
106
|
className: "shrink-0"
|
|
55
107
|
}
|
|
56
108
|
);
|
|
57
109
|
},
|
|
58
|
-
[
|
|
110
|
+
[C, S]
|
|
59
111
|
);
|
|
60
|
-
return
|
|
61
|
-
|
|
112
|
+
return N ? /* @__PURE__ */ a("div", { ref: R, className: "flex flex-col flex-1 min-h-0 bg-canvas-elevated", children: /* @__PURE__ */ a(
|
|
113
|
+
Z,
|
|
62
114
|
{
|
|
63
|
-
items:
|
|
64
|
-
onChange:
|
|
65
|
-
onSubmit:
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
115
|
+
items: l,
|
|
116
|
+
onChange: B,
|
|
117
|
+
onSubmit: _,
|
|
118
|
+
onItemToggle: n ? E : void 0,
|
|
119
|
+
onVirtualDrop: n ? x : void 0,
|
|
120
|
+
flatVirtualRowResolver: n ? M : void 0,
|
|
121
|
+
onFlatVirtualSelectAll: n ? O : void 0,
|
|
122
|
+
isValidDropTarget: n ? void 0 : k,
|
|
123
|
+
renderLabelExtras: w,
|
|
124
|
+
renderActions: P,
|
|
125
|
+
enableApplyDiscard: p,
|
|
126
|
+
enableSearch: v,
|
|
127
|
+
enableSelectAll: g,
|
|
71
128
|
enableDragDrop: !0,
|
|
129
|
+
dragMode: V,
|
|
72
130
|
enableCollapse: !0,
|
|
73
|
-
enableGlobalCollapse:
|
|
74
|
-
selectionMode:
|
|
75
|
-
searchPlaceholder:
|
|
131
|
+
enableGlobalCollapse: A,
|
|
132
|
+
selectionMode: q.CASCADE_DOWN,
|
|
133
|
+
searchPlaceholder: u("dataTable.searchColumnsPlaceholder"),
|
|
76
134
|
className: "flex-1 min-h-0",
|
|
77
|
-
initialCollapsedItems:
|
|
135
|
+
initialCollapsedItems: F,
|
|
78
136
|
onCollapseChange: (e) => {
|
|
79
|
-
|
|
137
|
+
T.current = e, y(e);
|
|
80
138
|
}
|
|
81
139
|
}
|
|
82
|
-
) }) : /* @__PURE__ */
|
|
140
|
+
) }) : /* @__PURE__ */ a("div", { className: "p-4 text-[13px] text-content-placeholder", children: u("dataTable.loadingColumns") });
|
|
83
141
|
};
|
|
84
142
|
export {
|
|
85
|
-
|
|
143
|
+
Ae as DataTableColumnList
|
|
86
144
|
};
|