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,22 +1,26 @@
|
|
|
1
|
-
import { GridApi } from 'ag-grid-community';
|
|
1
|
+
import { ColumnState, GridApi } from 'ag-grid-community';
|
|
2
2
|
import { NestedListItem } from '../nested-list/nested-list.types';
|
|
3
3
|
import { BuildColumnTreeLabels } from './build-column-tree-from-grid';
|
|
4
4
|
import { ColumnListSyncFingerprints, ColumnListSyncMode } from './data-table-column-list-sync';
|
|
5
|
+
import { ColumnPickerAuthority } from './column-picker-authority';
|
|
6
|
+
export type ColumnPickerMode = 'tree' | 'authority-flat';
|
|
5
7
|
interface ColumnTreeCacheEntry {
|
|
6
8
|
fingerprints: ColumnListSyncFingerprints;
|
|
7
9
|
items: NestedListItem[];
|
|
10
|
+
pickerMode: ColumnPickerMode;
|
|
11
|
+
authority: ColumnPickerAuthority | null;
|
|
8
12
|
gridLayoutFingerprint: string;
|
|
9
13
|
gridVisibilityFingerprint: string;
|
|
10
|
-
/**
|
|
11
|
-
* Leaf column ids captured at write time (single tree walk here) so the
|
|
12
|
-
* structural stale-check at read time needs no tree traversal.
|
|
13
|
-
*/
|
|
14
14
|
leafColumnIds: ReadonlySet<string>;
|
|
15
15
|
}
|
|
16
16
|
export declare function readGridLayoutFingerprint(gridApi: GridApi): string;
|
|
17
17
|
export declare function readGridVisibilityFingerprint(gridApi: GridApi): string;
|
|
18
|
+
export declare function hasColumnTreeCache(gridApi: GridApi): boolean;
|
|
19
|
+
/** Column counts at or above this threshold prewarm immediately instead of on idle. */
|
|
20
|
+
export declare const LARGE_COLUMN_PREWARM_THRESHOLD = 5000;
|
|
18
21
|
export declare function readColumnTreeCache(gridApi: GridApi, labels: BuildColumnTreeLabels): ColumnTreeCacheEntry | null;
|
|
19
22
|
export declare function writeColumnTreeCache(gridApi: GridApi, rootItems: NestedListItem[]): ColumnListSyncFingerprints;
|
|
23
|
+
export declare function writeColumnTreeAuthorityCache(gridApi: GridApi, authority: ColumnPickerAuthority): ColumnListSyncFingerprints;
|
|
20
24
|
export declare function buildColumnTreeWithCache(gridApi: GridApi, labels: BuildColumnTreeLabels): NestedListItem[] | null;
|
|
21
25
|
/**
|
|
22
26
|
* True when the live grid's column-id set differs from the cached tree's leaf ids.
|
|
@@ -27,13 +31,15 @@ export declare function buildColumnTreeWithCache(gridApi: GridApi, labels: Build
|
|
|
27
31
|
* ({@link writeColumnTreeCache}), so this does no tree traversal at read time;
|
|
28
32
|
* it only scans `getColumnState()`, which callers already fetch for fingerprints.
|
|
29
33
|
*/
|
|
30
|
-
export declare function isGridColumnSetDifferentFromCachedLeaves(gridApi: GridApi, cachedLeafColumnIds: ReadonlySet<string
|
|
34
|
+
export declare function isGridColumnSetDifferentFromCachedLeaves(gridApi: GridApi, cachedLeafColumnIds: ReadonlySet<string>, precomputedColumnState?: ColumnState[]): boolean;
|
|
31
35
|
export declare function resolveColumnTreeFromCacheOrGrid(options: {
|
|
32
36
|
gridApi: GridApi;
|
|
33
37
|
labels: BuildColumnTreeLabels;
|
|
34
38
|
previousFingerprints: ColumnListSyncFingerprints;
|
|
35
39
|
}): {
|
|
36
40
|
rootItems: NestedListItem[] | null;
|
|
41
|
+
authority: ColumnPickerAuthority | null;
|
|
42
|
+
pickerMode: ColumnPickerMode;
|
|
37
43
|
syncMode: ColumnListSyncMode;
|
|
38
44
|
fingerprints: ColumnListSyncFingerprints;
|
|
39
45
|
};
|
|
@@ -1,187 +1,306 @@
|
|
|
1
|
-
import { buildColumnTreeFromGrid as
|
|
2
|
-
import { computeColumnListSyncFingerprints as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const
|
|
1
|
+
import { buildColumnTreeFromGrid as W } from "./build-column-tree-from-grid.js";
|
|
2
|
+
import { computeColumnListSyncFingerprints as U } from "./data-table-column-list-sync.js";
|
|
3
|
+
import { fingerprintGridColumnIndicators as g, normalizeColumnPinned as x } from "./data-table-column-apply.js";
|
|
4
|
+
import { isPickerEligibleColumnId as Z } from "./data-table-picker-column-eligibility.js";
|
|
5
|
+
import { patchColumnTreeIndicatorsFromGrid as w } from "./patch-column-tree-indicators-from-grid.js";
|
|
6
|
+
import { patchColumnTreeVisibilityFromGrid as G } from "./patch-column-tree-visibility-from-grid.js";
|
|
7
|
+
import { Fnv1a128Hasher as V } from "../../../lib/hash/fnv1a128.js";
|
|
8
|
+
import { buildAuthorityFromGrid as k, fingerprintAuthority as j } from "./column-picker-authority.js";
|
|
9
|
+
import { buildAuthorityFlatShellItems as y, isFlatLargeColumnPicker as D } from "./data-table-flat-column-virtual-rows.js";
|
|
10
|
+
import { NESTED_LIST_ROOT_FROZEN_ID as O, NESTED_LIST_ROOT_SCROLLABLE_ID as R } from "../nested-list/nested-list-constants.js";
|
|
11
|
+
function m(e) {
|
|
12
|
+
const i = new V();
|
|
13
|
+
for (const r of e) {
|
|
14
|
+
const n = x(r.pinned) ?? "0";
|
|
15
|
+
i.update(r.colId).update(":").update(n).update("|");
|
|
16
|
+
}
|
|
17
|
+
return i.digest();
|
|
18
|
+
}
|
|
19
|
+
function p(e) {
|
|
20
|
+
const i = new V();
|
|
21
|
+
for (const r of e)
|
|
22
|
+
i.update(r.colId).update(":").update(r.hide ? "0" : "1").update("|");
|
|
23
|
+
return i.digest();
|
|
24
|
+
}
|
|
25
|
+
function ut(e) {
|
|
26
|
+
return m(e.getColumnState());
|
|
27
|
+
}
|
|
28
|
+
function lt(e) {
|
|
29
|
+
return p(e.getColumnState());
|
|
30
|
+
}
|
|
31
|
+
const C = /* @__PURE__ */ new WeakMap(), S = {
|
|
22
32
|
frozenColumns: "__prewarm_frozen__",
|
|
23
33
|
scrollableColumns: "__prewarm_scrollable__"
|
|
24
|
-
};
|
|
25
|
-
function
|
|
26
|
-
return typeof
|
|
34
|
+
}, L = 5e3;
|
|
35
|
+
function B(e) {
|
|
36
|
+
return typeof e.isDestroyed == "function" && e.isDestroyed();
|
|
27
37
|
}
|
|
28
|
-
function
|
|
29
|
-
return
|
|
38
|
+
function T(e, i) {
|
|
39
|
+
return e.map((r) => r.id === O ? { ...r, label: i.frozenColumns } : r.id === R ? { ...r, label: i.scrollableColumns } : r);
|
|
30
40
|
}
|
|
31
|
-
function
|
|
32
|
-
const
|
|
33
|
-
for (const t of
|
|
34
|
-
if (t.id ===
|
|
35
|
-
t.children &&
|
|
41
|
+
function J(e) {
|
|
42
|
+
const i = /* @__PURE__ */ new Set(), r = (n) => {
|
|
43
|
+
for (const t of n) {
|
|
44
|
+
if (t.id === O || t.id === R) {
|
|
45
|
+
t.children && r(t.children);
|
|
36
46
|
continue;
|
|
37
47
|
}
|
|
38
48
|
if (t.children && t.children.length > 0) {
|
|
39
|
-
|
|
49
|
+
r(t.children);
|
|
40
50
|
continue;
|
|
41
51
|
}
|
|
42
|
-
t.id &&
|
|
52
|
+
t.id && i.add(t.id);
|
|
43
53
|
}
|
|
44
54
|
};
|
|
45
|
-
return e
|
|
46
|
-
}
|
|
47
|
-
function
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
55
|
+
return r(e), i;
|
|
56
|
+
}
|
|
57
|
+
function v(e, i) {
|
|
58
|
+
const r = C.get(e);
|
|
59
|
+
if (!r)
|
|
60
|
+
return null;
|
|
61
|
+
const n = r.pickerMode === "authority-flat" && r.authority ? y(r.authority, i) : T(r.items, i);
|
|
62
|
+
return {
|
|
63
|
+
fingerprints: r.fingerprints,
|
|
64
|
+
items: n,
|
|
65
|
+
pickerMode: r.pickerMode,
|
|
66
|
+
authority: r.authority,
|
|
67
|
+
gridLayoutFingerprint: r.gridLayoutFingerprint,
|
|
68
|
+
gridVisibilityFingerprint: r.gridVisibilityFingerprint,
|
|
69
|
+
leafColumnIds: r.leafColumnIds
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function f(e, i) {
|
|
73
|
+
const r = U(i), n = {
|
|
74
|
+
layout: r.layout,
|
|
75
|
+
visibility: r.visibility,
|
|
76
|
+
indicators: g(e)
|
|
77
|
+
}, t = e.getColumnState(), o = J(i);
|
|
78
|
+
return C.set(e, {
|
|
79
|
+
fingerprints: n,
|
|
80
|
+
items: T(i, S),
|
|
81
|
+
pickerMode: "tree",
|
|
82
|
+
authority: null,
|
|
83
|
+
gridLayoutFingerprint: m(t),
|
|
84
|
+
gridVisibilityFingerprint: p(t),
|
|
85
|
+
leafColumnIds: o
|
|
86
|
+
}), n;
|
|
87
|
+
}
|
|
88
|
+
function M(e, i) {
|
|
89
|
+
const r = j(i), n = {
|
|
90
|
+
layout: r.layout,
|
|
91
|
+
visibility: r.visibility,
|
|
92
|
+
indicators: g(e)
|
|
93
|
+
}, t = e.getColumnState(), o = new Set(i.orderedColumnIds);
|
|
94
|
+
return C.set(e, {
|
|
95
|
+
fingerprints: n,
|
|
96
|
+
items: y(i, S),
|
|
97
|
+
pickerMode: "authority-flat",
|
|
98
|
+
authority: i,
|
|
99
|
+
gridLayoutFingerprint: m(t),
|
|
100
|
+
gridVisibilityFingerprint: p(t),
|
|
101
|
+
leafColumnIds: o
|
|
102
|
+
}), n;
|
|
103
|
+
}
|
|
104
|
+
function K(e) {
|
|
105
|
+
const i = k(e);
|
|
106
|
+
if (i) {
|
|
107
|
+
if (D(i, L)) {
|
|
108
|
+
M(e, i);
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
z(e, S);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
function z(e, i) {
|
|
115
|
+
const r = W(e, i);
|
|
116
|
+
return r ? (f(e, r), r) : null;
|
|
117
|
+
}
|
|
118
|
+
function A(e, i, r) {
|
|
119
|
+
if (B(e))
|
|
73
120
|
return !1;
|
|
74
|
-
const
|
|
75
|
-
let
|
|
76
|
-
for (const
|
|
77
|
-
if (
|
|
121
|
+
const n = r ?? e.getColumnState();
|
|
122
|
+
let t = 0;
|
|
123
|
+
for (const o of n)
|
|
124
|
+
if (Z(o.colId) && (t += 1, !i.has(o.colId)))
|
|
78
125
|
return !0;
|
|
79
|
-
return
|
|
80
|
-
}
|
|
81
|
-
function
|
|
82
|
-
const { gridApi:
|
|
83
|
-
if (t != null && !
|
|
84
|
-
const
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
return {
|
|
92
|
-
rootItems: o,
|
|
126
|
+
return t !== i.size;
|
|
127
|
+
}
|
|
128
|
+
function at(e) {
|
|
129
|
+
const { gridApi: i, labels: r, previousFingerprints: n } = e, t = v(i, r), o = i.getColumnState(), b = m(o), I = p(o), F = n.layout === "" && n.visibility === "" && n.indicators === "";
|
|
130
|
+
if (t != null && !A(i, t.leafColumnIds, o) && t) {
|
|
131
|
+
const l = b !== t.gridLayoutFingerprint, c = I !== t.gridVisibilityFingerprint, d = g(i) !== t.fingerprints.indicators;
|
|
132
|
+
if (!l && !c && !d) {
|
|
133
|
+
if (t.pickerMode === "authority-flat" && t.authority)
|
|
134
|
+
return F ? {
|
|
135
|
+
rootItems: y(t.authority, r),
|
|
136
|
+
authority: t.authority,
|
|
137
|
+
pickerMode: "authority-flat",
|
|
93
138
|
syncMode: "structural",
|
|
94
|
-
fingerprints:
|
|
139
|
+
fingerprints: t.fingerprints
|
|
140
|
+
} : n.layout !== t.fingerprints.layout || n.visibility !== t.fingerprints.visibility || n.indicators !== t.fingerprints.indicators ? {
|
|
141
|
+
rootItems: t.items,
|
|
142
|
+
authority: t.authority,
|
|
143
|
+
pickerMode: "authority-flat",
|
|
144
|
+
syncMode: "structural",
|
|
145
|
+
fingerprints: t.fingerprints
|
|
146
|
+
} : {
|
|
147
|
+
rootItems: null,
|
|
148
|
+
authority: t.authority,
|
|
149
|
+
pickerMode: "authority-flat",
|
|
150
|
+
syncMode: "skip",
|
|
151
|
+
fingerprints: t.fingerprints
|
|
95
152
|
};
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
153
|
+
if (F) {
|
|
154
|
+
const u = T(t.items, r), E = w(
|
|
155
|
+
u,
|
|
156
|
+
i
|
|
157
|
+
), N = f(i, E);
|
|
99
158
|
return {
|
|
100
|
-
rootItems:
|
|
101
|
-
|
|
102
|
-
|
|
159
|
+
rootItems: E,
|
|
160
|
+
authority: null,
|
|
161
|
+
pickerMode: "tree",
|
|
162
|
+
syncMode: "indicators-only",
|
|
163
|
+
fingerprints: N
|
|
103
164
|
};
|
|
104
165
|
}
|
|
105
|
-
return {
|
|
166
|
+
return n.layout !== t.fingerprints.layout || n.visibility !== t.fingerprints.visibility || n.indicators !== t.fingerprints.indicators ? {
|
|
167
|
+
rootItems: t.items,
|
|
168
|
+
authority: null,
|
|
169
|
+
pickerMode: "tree",
|
|
170
|
+
syncMode: "structural",
|
|
171
|
+
fingerprints: t.fingerprints
|
|
172
|
+
} : {
|
|
106
173
|
rootItems: null,
|
|
174
|
+
authority: null,
|
|
175
|
+
pickerMode: "tree",
|
|
107
176
|
syncMode: "skip",
|
|
108
177
|
fingerprints: t.fingerprints
|
|
109
178
|
};
|
|
110
179
|
}
|
|
111
|
-
if (
|
|
112
|
-
const
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
180
|
+
if (t.pickerMode === "authority-flat" && t.authority) {
|
|
181
|
+
const s = k(i);
|
|
182
|
+
if (s) {
|
|
183
|
+
const u = M(i, s);
|
|
184
|
+
return {
|
|
185
|
+
rootItems: y(s, r),
|
|
186
|
+
authority: s,
|
|
187
|
+
pickerMode: "authority-flat",
|
|
188
|
+
syncMode: l ? "structural" : c ? "visibility-only" : "indicators-only",
|
|
189
|
+
fingerprints: u
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
const h = d ? w(t.items, i) : t.items;
|
|
194
|
+
if (!l && c && !d) {
|
|
195
|
+
const s = G(
|
|
196
|
+
h,
|
|
197
|
+
i
|
|
198
|
+
), u = f(i, s);
|
|
116
199
|
return {
|
|
117
|
-
rootItems:
|
|
200
|
+
rootItems: s,
|
|
201
|
+
authority: null,
|
|
202
|
+
pickerMode: "tree",
|
|
118
203
|
syncMode: "visibility-only",
|
|
119
|
-
fingerprints:
|
|
204
|
+
fingerprints: u
|
|
120
205
|
};
|
|
121
206
|
}
|
|
122
|
-
if (!
|
|
123
|
-
const
|
|
207
|
+
if (!l && !c && d) {
|
|
208
|
+
const s = f(i, h);
|
|
124
209
|
return {
|
|
125
|
-
rootItems:
|
|
210
|
+
rootItems: h,
|
|
211
|
+
authority: null,
|
|
212
|
+
pickerMode: "tree",
|
|
126
213
|
syncMode: "indicators-only",
|
|
127
|
-
fingerprints:
|
|
214
|
+
fingerprints: s
|
|
128
215
|
};
|
|
129
216
|
}
|
|
130
|
-
if (!
|
|
131
|
-
const
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
),
|
|
217
|
+
if (!l && c && d) {
|
|
218
|
+
const s = G(
|
|
219
|
+
h,
|
|
220
|
+
i
|
|
221
|
+
), u = f(i, s);
|
|
135
222
|
return {
|
|
136
|
-
rootItems:
|
|
223
|
+
rootItems: s,
|
|
224
|
+
authority: null,
|
|
225
|
+
pickerMode: "tree",
|
|
137
226
|
syncMode: "visibility-only",
|
|
138
|
-
fingerprints:
|
|
227
|
+
fingerprints: u
|
|
139
228
|
};
|
|
140
229
|
}
|
|
141
230
|
}
|
|
142
|
-
const
|
|
143
|
-
if (
|
|
231
|
+
const a = k(i);
|
|
232
|
+
if (a && D(a, L)) {
|
|
233
|
+
const l = M(i, a);
|
|
234
|
+
return {
|
|
235
|
+
rootItems: y(a, r),
|
|
236
|
+
authority: a,
|
|
237
|
+
pickerMode: "authority-flat",
|
|
238
|
+
syncMode: "structural",
|
|
239
|
+
fingerprints: l
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
const _ = z(i, r);
|
|
243
|
+
if (!_)
|
|
144
244
|
return {
|
|
145
245
|
rootItems: null,
|
|
246
|
+
authority: null,
|
|
247
|
+
pickerMode: "tree",
|
|
146
248
|
syncMode: "skip",
|
|
147
|
-
fingerprints:
|
|
249
|
+
fingerprints: n
|
|
148
250
|
};
|
|
149
|
-
const
|
|
251
|
+
const H = v(i, r)?.fingerprints ?? {
|
|
150
252
|
layout: "",
|
|
151
253
|
visibility: "",
|
|
152
254
|
indicators: ""
|
|
153
255
|
};
|
|
154
256
|
return {
|
|
155
|
-
rootItems:
|
|
257
|
+
rootItems: _,
|
|
258
|
+
authority: null,
|
|
259
|
+
pickerMode: "tree",
|
|
156
260
|
syncMode: "structural",
|
|
157
|
-
fingerprints:
|
|
261
|
+
fingerprints: H
|
|
158
262
|
};
|
|
159
263
|
}
|
|
160
|
-
function
|
|
161
|
-
return typeof
|
|
264
|
+
function P(e) {
|
|
265
|
+
return typeof e.getColumnState == "function" && (typeof e.getAllGridColumns == "function" || typeof e.getColumns == "function");
|
|
162
266
|
}
|
|
163
|
-
function
|
|
164
|
-
|
|
267
|
+
function ct(e) {
|
|
268
|
+
const { gridApi: i, labels: r, previousFingerprints: n } = e, t = v(i, r);
|
|
269
|
+
if (!t)
|
|
270
|
+
return !1;
|
|
271
|
+
const o = i.getColumnState();
|
|
272
|
+
if (A(
|
|
273
|
+
i,
|
|
274
|
+
t.leafColumnIds,
|
|
275
|
+
o
|
|
276
|
+
))
|
|
277
|
+
return !1;
|
|
278
|
+
const b = m(o), I = p(o);
|
|
279
|
+
return b !== t.gridLayoutFingerprint || I !== t.gridVisibilityFingerprint || g(i) !== t.fingerprints.indicators ? !1 : !(n.layout !== t.fingerprints.layout || n.visibility !== t.fingerprints.visibility || n.indicators !== t.fingerprints.indicators);
|
|
165
280
|
}
|
|
166
|
-
function
|
|
167
|
-
let
|
|
281
|
+
function dt(e) {
|
|
282
|
+
let i = !1, r = 0, n;
|
|
168
283
|
const t = () => {
|
|
169
|
-
|
|
284
|
+
i || B(e) || !P(e) || C.has(e) || K(e);
|
|
170
285
|
};
|
|
171
|
-
return e
|
|
172
|
-
|
|
286
|
+
return P(e) && e.getColumnState().length >= L ? (queueMicrotask(t), () => {
|
|
287
|
+
i = !0;
|
|
288
|
+
}) : (r = requestAnimationFrame(() => {
|
|
289
|
+
i || (typeof requestIdleCallback < "u" ? n = requestIdleCallback(t, { timeout: 3e3 }) : setTimeout(t, 0));
|
|
173
290
|
}), () => {
|
|
174
|
-
|
|
175
|
-
};
|
|
291
|
+
i = !0, r && cancelAnimationFrame(r), n !== void 0 && typeof cancelIdleCallback < "u" && cancelIdleCallback(n);
|
|
292
|
+
});
|
|
176
293
|
}
|
|
177
294
|
export {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
295
|
+
L as LARGE_COLUMN_PREWARM_THRESHOLD,
|
|
296
|
+
z as buildColumnTreeWithCache,
|
|
297
|
+
A as isGridColumnSetDifferentFromCachedLeaves,
|
|
298
|
+
ct as peekColumnListSyncWouldSkip,
|
|
299
|
+
v as readColumnTreeCache,
|
|
300
|
+
ut as readGridLayoutFingerprint,
|
|
301
|
+
lt as readGridVisibilityFingerprint,
|
|
302
|
+
at as resolveColumnTreeFromCacheOrGrid,
|
|
303
|
+
dt as scheduleColumnTreePrewarm,
|
|
304
|
+
M as writeColumnTreeAuthorityCache,
|
|
305
|
+
f as writeColumnTreeCache
|
|
187
306
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createContext as e, useContext as a } from "react";
|
|
2
2
|
import { useDataTableSheetPortalSnapshot as s } from "./data-table-sheet-portal-store.js";
|
|
3
|
-
const n =
|
|
3
|
+
const n = e(
|
|
4
4
|
null
|
|
5
|
-
), l =
|
|
6
|
-
const t =
|
|
5
|
+
), l = e(null), b = () => {
|
|
6
|
+
const t = a(n);
|
|
7
7
|
if (!t)
|
|
8
8
|
throw new Error("useDataTable must be used within a DataTable");
|
|
9
9
|
return t;
|
|
10
10
|
}, u = () => {
|
|
11
|
-
const t =
|
|
11
|
+
const t = a(l);
|
|
12
12
|
if (!t)
|
|
13
13
|
throw new Error(
|
|
14
14
|
"useDataTableSheetPortalStore must be used within a DataTable"
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { FlatNestedListRow } from '../nested-list/nested-list-virtual-drop';
|
|
2
|
+
import { NestedListItem } from '../nested-list/nested-list.types';
|
|
3
|
+
import { ColumnPickerAuthority } from './column-picker-authority';
|
|
4
|
+
import { BuildColumnTreeLabels } from './build-column-tree-from-grid';
|
|
5
|
+
export interface FlatColumnVirtualRowModelOptions {
|
|
6
|
+
searchQuery?: string;
|
|
7
|
+
sortAppliedByColumnId?: ReadonlyMap<string, boolean>;
|
|
8
|
+
filterAppliedByColumnId?: ReadonlyMap<string, boolean>;
|
|
9
|
+
nonSavableByColumnId?: ReadonlyMap<string, boolean>;
|
|
10
|
+
}
|
|
11
|
+
export interface FlatColumnVirtualRowModel {
|
|
12
|
+
rowCount: number;
|
|
13
|
+
frozenColumnIds: readonly string[];
|
|
14
|
+
scrollableColumnIds: readonly string[];
|
|
15
|
+
getRowAt: (index: number) => FlatNestedListRow;
|
|
16
|
+
getColumnIdAt: (index: number) => string | null;
|
|
17
|
+
findFlatIndexByColumnId: (columnId: string) => number;
|
|
18
|
+
}
|
|
19
|
+
export declare function buildFlatColumnVirtualRowModel(authority: ColumnPickerAuthority, labels: BuildColumnTreeLabels, options?: FlatColumnVirtualRowModelOptions): FlatColumnVirtualRowModel;
|
|
20
|
+
export declare function buildAuthorityFlatShellItems(authority: ColumnPickerAuthority, labels: BuildColumnTreeLabels): NestedListItem[];
|
|
21
|
+
export declare function isFlatLargeColumnPicker(authority: ColumnPickerAuthority, threshold: number): boolean;
|
|
22
|
+
export interface FlatVirtualDropToAuthorityOptions {
|
|
23
|
+
draggedColumnId: string;
|
|
24
|
+
overId: string;
|
|
25
|
+
insertAfter: boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare function applyFlatVirtualDropToAuthority(authority: ColumnPickerAuthority, rowModel: FlatColumnVirtualRowModel, options: FlatVirtualDropToAuthorityOptions): ColumnPickerAuthority | null;
|