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,5 +1,5 @@
|
|
|
1
|
-
import { themeQuartz as
|
|
2
|
-
const d =
|
|
1
|
+
import { themeQuartz as e, iconSetMaterial as o } from "ag-grid-enterprise";
|
|
2
|
+
const d = e.withPart(o).withParams({
|
|
3
3
|
accentColor: "#4259EE",
|
|
4
4
|
backgroundColor: "#FFFFFF",
|
|
5
5
|
borderColor: "#D9DDE7",
|
|
@@ -57,8 +57,6 @@ const d = o.withPart(e).withParams({
|
|
|
57
57
|
menuBorder: !1,
|
|
58
58
|
tooltipBorder: !1,
|
|
59
59
|
pinnedRowBorder: !1,
|
|
60
|
-
noteIndicatorColor: "#E1BC29",
|
|
61
|
-
noteIndicatorSize: 12,
|
|
62
60
|
browserColorScheme: "light"
|
|
63
61
|
}, "light").withParams({
|
|
64
62
|
accentColor: "#E5E5E5",
|
|
@@ -118,8 +116,6 @@ const d = o.withPart(e).withParams({
|
|
|
118
116
|
menuBorder: !1,
|
|
119
117
|
tooltipBorder: !1,
|
|
120
118
|
pinnedRowBorder: !1,
|
|
121
|
-
noteIndicatorColor: "#F59E0B",
|
|
122
|
-
noteIndicatorSize: 12,
|
|
123
119
|
browserColorScheme: "dark"
|
|
124
120
|
}, "dark");
|
|
125
121
|
export {
|
|
@@ -6,10 +6,6 @@ export interface FormatterGridContext {
|
|
|
6
6
|
currency?: string;
|
|
7
7
|
decimals?: number;
|
|
8
8
|
locale?: string;
|
|
9
|
-
dateLocale?: string;
|
|
10
|
-
numberLocale?: string;
|
|
11
|
-
booleanYes?: string;
|
|
12
|
-
booleanNo?: string;
|
|
13
9
|
[key: string]: unknown;
|
|
14
10
|
}
|
|
15
11
|
export interface BackendFormatterConfigBase {
|
|
@@ -1,3 +1,22 @@
|
|
|
1
1
|
import { ValueFormatterParams } from 'ag-grid-community';
|
|
2
|
+
/**
|
|
3
|
+
* AG Grid value formatters registry
|
|
4
|
+
* Use with AgGridWrapper's valueFormatters prop
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* <AgGridWrapper
|
|
9
|
+
* valueFormatters={AG_GRID_VALUE_FORMATTERS}
|
|
10
|
+
* context={{ currency: 'EUR', decimals: 0 }}
|
|
11
|
+
* columnDefs={[
|
|
12
|
+
* { field: 'price', valueFormatter: 'currency' },
|
|
13
|
+
* { field: 'discount', valueFormatter: 'percentage' },
|
|
14
|
+
* ]}
|
|
15
|
+
* />
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
2
18
|
export declare const AG_GRID_VALUE_FORMATTERS: Record<string, (params: ValueFormatterParams) => string>;
|
|
19
|
+
/**
|
|
20
|
+
* Type-safe formatter names
|
|
21
|
+
*/
|
|
3
22
|
export type AGGridFormatterName = keyof typeof AG_GRID_VALUE_FORMATTERS;
|
|
@@ -1,108 +1,110 @@
|
|
|
1
|
-
import { getBackendFormatterColDef as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return t.context;
|
|
8
|
-
}
|
|
9
|
-
function g(t, e) {
|
|
10
|
-
return t || e?.numberLocale || e?.locale || T;
|
|
11
|
-
}
|
|
12
|
-
function $(t, e) {
|
|
13
|
-
return t || e?.dateLocale || e?.locale || T;
|
|
14
|
-
}
|
|
15
|
-
function D(t) {
|
|
16
|
-
return t === "thou" || t === "mil" || t === "bil" ? t : null;
|
|
17
|
-
}
|
|
18
|
-
const C = (t) => {
|
|
19
|
-
const e = S(m(t)), o = s(t);
|
|
1
|
+
import { getBackendFormatterColDef as s, getNullDisplay as a, getFormatterConfig as b } from "./value-formatter.types.js";
|
|
2
|
+
const d = (t, e) => {
|
|
3
|
+
let o, n;
|
|
4
|
+
return e === "bil" ? (o = t / 1e9, n = "B") : e === "mil" ? (o = t / 1e6, n = "M") : (o = t / 1e3, n = "K"), isNaN(o) || !isFinite(o) ? `0.0${n}` : o.toFixed(1) + n;
|
|
5
|
+
}, N = (t, e) => !e || e === "full_no" || e === "full_precision" ? null : d(t, e), f = (t) => t.context, v = (t) => {
|
|
6
|
+
const e = b(s(t)), o = f(t);
|
|
20
7
|
if (t.value == null) return a(e, o);
|
|
21
|
-
const n = e.currency || "USD",
|
|
22
|
-
if (isNaN(
|
|
23
|
-
const
|
|
24
|
-
if (
|
|
25
|
-
const
|
|
26
|
-
|
|
8
|
+
const n = e.currency || "USD", r = e.locale || "en-US", c = o?.formatType || e.formatType, i = Number(t.value);
|
|
9
|
+
if (isNaN(i)) return String(t.value);
|
|
10
|
+
const u = N(Math.abs(i), c);
|
|
11
|
+
if (u) {
|
|
12
|
+
const l = i < 0 ? "-" : "", m = new Intl.NumberFormat(r, {
|
|
13
|
+
style: "currency",
|
|
14
|
+
currency: n
|
|
15
|
+
}).formatToParts(0).find((F) => F.type === "currency")?.value || n;
|
|
16
|
+
return `${l}${m}${u}`;
|
|
27
17
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
maximumFractionDigits: 20
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
18
|
+
if (c === "full_precision") {
|
|
19
|
+
const l = i < 0 ? "-" : "", m = new Intl.NumberFormat(r, { style: "currency", currency: n }).formatToParts(0).find((F) => F.type === "currency")?.value || n;
|
|
20
|
+
return `${l}${m}${new Intl.NumberFormat(r, { minimumFractionDigits: 2, maximumFractionDigits: 20 }).format(Math.abs(i))}`;
|
|
21
|
+
}
|
|
22
|
+
return new Intl.NumberFormat(r, {
|
|
23
|
+
style: "currency",
|
|
24
|
+
currency: n
|
|
25
|
+
}).format(i);
|
|
26
|
+
}, D = (t) => {
|
|
27
|
+
const e = b(s(t)), o = f(t);
|
|
34
28
|
if (t.value == null) return a(e, o);
|
|
35
|
-
const n = e.symbol || "$",
|
|
36
|
-
if (isNaN(
|
|
37
|
-
const
|
|
38
|
-
let
|
|
39
|
-
return
|
|
40
|
-
minimumFractionDigits:
|
|
41
|
-
maximumFractionDigits:
|
|
42
|
-
})
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}), c === "prefix" ? `${n}${f}` : `${f}${n}`;
|
|
46
|
-
}, A = (t) => {
|
|
47
|
-
const e = m(t), o = s(t);
|
|
29
|
+
const n = e.symbol || "$", r = e.position || "prefix", c = e.decimals ?? 2, i = e.locale || "en-US", u = o?.formatType || e.formatType, l = Number(t.value);
|
|
30
|
+
if (isNaN(l)) return String(t.value);
|
|
31
|
+
const g = N(Math.abs(l), u);
|
|
32
|
+
let m;
|
|
33
|
+
return g ? m = `${l < 0 ? "-" : ""}${g}` : u === "full_precision" ? m = `${l < 0 ? "-" : ""}${new Intl.NumberFormat(i, { minimumFractionDigits: c, maximumFractionDigits: 20 }).format(Math.abs(l))}` : m = new Intl.NumberFormat(i, {
|
|
34
|
+
minimumFractionDigits: c,
|
|
35
|
+
maximumFractionDigits: c
|
|
36
|
+
}).format(l), r === "prefix" ? `${n}${m}` : `${m}${n}`;
|
|
37
|
+
}, x = (t) => {
|
|
38
|
+
const e = s(t), o = f(t);
|
|
48
39
|
if (t.value == null) return a(e, o);
|
|
49
|
-
const n = e.decimals ?? 0,
|
|
50
|
-
if (isNaN(
|
|
51
|
-
const
|
|
52
|
-
return
|
|
53
|
-
minimumFractionDigits: n,
|
|
54
|
-
maximumFractionDigits: 20
|
|
55
|
-
}) : d(r, c, {
|
|
40
|
+
const n = e.decimals ?? 0, r = e.locale || "en-US", c = o?.formatType || e.formatType, i = Number(t.value);
|
|
41
|
+
if (isNaN(i)) return String(t.value);
|
|
42
|
+
const u = N(Math.abs(i), c);
|
|
43
|
+
return u ? `${i < 0 ? "-" : ""}${u}` : c === "full_precision" ? `${i < 0 ? "-" : ""}${new Intl.NumberFormat(r, { minimumFractionDigits: n, maximumFractionDigits: 20 }).format(Math.abs(i))}` : new Intl.NumberFormat(r, {
|
|
56
44
|
minimumFractionDigits: n,
|
|
57
45
|
maximumFractionDigits: n
|
|
58
|
-
});
|
|
59
|
-
},
|
|
60
|
-
const e =
|
|
46
|
+
}).format(i);
|
|
47
|
+
}, y = (t) => {
|
|
48
|
+
const e = s(t), o = f(t);
|
|
61
49
|
if (t.value == null) return a(e, o);
|
|
62
50
|
const n = Number(t.value);
|
|
63
51
|
if (isNaN(n)) return String(t.value);
|
|
64
|
-
const
|
|
65
|
-
return
|
|
66
|
-
|
|
67
|
-
|
|
52
|
+
const r = Math.abs(n), c = n < 0 ? "-" : "";
|
|
53
|
+
return r >= 1e9 ? `${c}${(r / 1e9).toFixed(1)}B` : r >= 1e6 ? `${c}${(r / 1e6).toFixed(1)}M` : r >= 1e3 ? `${c}${(r / 1e3).toFixed(1)}K` : new Intl.NumberFormat("en-US", {
|
|
54
|
+
maximumFractionDigits: 2
|
|
55
|
+
}).format(n);
|
|
56
|
+
}, $ = (t) => {
|
|
57
|
+
const e = s(t), o = f(t);
|
|
68
58
|
if (t.value == null) return a(e, o);
|
|
69
59
|
const n = Number(t.value);
|
|
70
60
|
if (isNaN(n)) return String(t.value);
|
|
71
|
-
const
|
|
72
|
-
return
|
|
61
|
+
const r = e.decimals ?? 2, c = e.divideBy ?? 100, i = o?.formatType || e.formatType, u = n / c;
|
|
62
|
+
return i === "full_precision" ? new Intl.NumberFormat("en-US", {
|
|
63
|
+
style: "percent",
|
|
73
64
|
minimumFractionDigits: 2,
|
|
74
65
|
maximumFractionDigits: 20
|
|
75
|
-
}) :
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
|
|
66
|
+
}).format(u) : new Intl.NumberFormat("en-US", {
|
|
67
|
+
style: "percent",
|
|
68
|
+
minimumFractionDigits: r,
|
|
69
|
+
maximumFractionDigits: r
|
|
70
|
+
}).format(u);
|
|
71
|
+
}, S = (t) => {
|
|
72
|
+
const e = s(t), o = f(t);
|
|
81
73
|
if (!t.value) return a(e, o);
|
|
82
|
-
const n = e.dateStyle || "medium",
|
|
83
|
-
return
|
|
84
|
-
|
|
85
|
-
|
|
74
|
+
const n = e.dateStyle || "medium", r = e.locale || "en-US", c = new Date(t.value);
|
|
75
|
+
return isNaN(c.getTime()) ? String(t.value) : new Intl.DateTimeFormat(r, {
|
|
76
|
+
dateStyle: n
|
|
77
|
+
}).format(c);
|
|
78
|
+
}, T = (t) => {
|
|
79
|
+
const e = s(t), o = f(t);
|
|
86
80
|
if (!t.value) return a(e, o);
|
|
87
|
-
const n = e.dateStyle || "medium",
|
|
88
|
-
return
|
|
89
|
-
|
|
90
|
-
|
|
81
|
+
const n = e.dateStyle || "medium", r = e.timeStyle || "short", c = e.locale || "en-US", i = new Date(t.value);
|
|
82
|
+
return isNaN(i.getTime()) ? String(t.value) : new Intl.DateTimeFormat(c, {
|
|
83
|
+
dateStyle: n,
|
|
84
|
+
timeStyle: r
|
|
85
|
+
}).format(i);
|
|
86
|
+
}, w = (t) => {
|
|
87
|
+
const e = s(t), o = f(t);
|
|
91
88
|
if (t.value == null) return a(e, o);
|
|
92
|
-
const n = e.trueValue ||
|
|
93
|
-
return t.value ? n :
|
|
94
|
-
},
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
89
|
+
const n = e.trueValue || "Yes", r = e.falseValue || "No";
|
|
90
|
+
return t.value ? n : r;
|
|
91
|
+
}, M = {
|
|
92
|
+
// Currency formatters
|
|
93
|
+
currency: v,
|
|
94
|
+
currencySymbol: D,
|
|
95
|
+
// Number formatters
|
|
96
|
+
number: x,
|
|
97
|
+
compact: y,
|
|
98
|
+
compactNumber: y,
|
|
99
|
+
largeNumber: y,
|
|
100
|
+
// Percentage formatter
|
|
101
|
+
percentage: $,
|
|
102
|
+
// Date formatters
|
|
103
|
+
date: S,
|
|
104
|
+
dateTime: T,
|
|
105
|
+
// Boolean formatter
|
|
106
|
+
boolean: w
|
|
105
107
|
};
|
|
106
108
|
export {
|
|
107
|
-
|
|
109
|
+
M as AG_GRID_VALUE_FORMATTERS
|
|
108
110
|
};
|
|
@@ -3,7 +3,9 @@ import { NestedListItem } from '../nested-list/nested-list.types';
|
|
|
3
3
|
export interface ColumnItemData extends Record<string, unknown> {
|
|
4
4
|
hasSortApplied?: boolean;
|
|
5
5
|
hasFilterApplied?: boolean;
|
|
6
|
+
isNonSavable?: boolean;
|
|
6
7
|
pinned?: 'left' | 'right' | null;
|
|
8
|
+
columnGroupChain?: readonly string[];
|
|
7
9
|
}
|
|
8
10
|
export interface BuildColumnTreeLabels {
|
|
9
11
|
frozenColumns: string;
|
|
@@ -1,88 +1,94 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { resolveColumnPinnedFromGridState as E } from "./data-table-column-apply.js";
|
|
2
|
+
import { isPickerEligibleColumnId as H } from "./data-table-picker-column-eligibility.js";
|
|
3
|
+
import { resolveColumnSavability as q } from "./column-savability.js";
|
|
4
|
+
function K(l) {
|
|
5
|
+
const a = [];
|
|
5
6
|
let c = l.getOriginalParent();
|
|
6
7
|
for (; c; ) {
|
|
7
|
-
const
|
|
8
|
-
|
|
8
|
+
const u = c.getColGroupDef();
|
|
9
|
+
u?.headerName && u?.children && a.push(c), c = c.getOriginalParent();
|
|
9
10
|
}
|
|
10
|
-
return
|
|
11
|
+
return a.reverse(), a;
|
|
11
12
|
}
|
|
12
|
-
function
|
|
13
|
-
const c = l.getColumnState(),
|
|
14
|
-
|
|
15
|
-
), f = [], h = [],
|
|
13
|
+
function A(l, a) {
|
|
14
|
+
const c = l.getColumnState(), u = l.getGridOption("context"), _ = typeof u?.activeSearchColumnId == "string" ? u.activeSearchColumnId : null, F = l.getAllGridColumns?.() ?? l.getColumns() ?? [], M = new Map(
|
|
15
|
+
F.map((o) => [o.getColId(), o])
|
|
16
|
+
), f = [], h = [], v = /* @__PURE__ */ new Map(), S = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map();
|
|
16
17
|
m.set(f, "f"), m.set(h, "s");
|
|
17
|
-
let
|
|
18
|
-
const
|
|
19
|
-
let
|
|
20
|
-
return
|
|
21
|
-
},
|
|
22
|
-
const
|
|
23
|
-
if (
|
|
24
|
-
return
|
|
25
|
-
const s =
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
id: s === 0 ? `${
|
|
29
|
-
label:
|
|
18
|
+
let x = 0;
|
|
19
|
+
const O = (o) => {
|
|
20
|
+
let e = m.get(o);
|
|
21
|
+
return e === void 0 && (e = `n${x++}`, m.set(o, e)), e;
|
|
22
|
+
}, P = (o, e) => {
|
|
23
|
+
const t = o.getGroupId(), i = O(e), r = `${t}::${i}`, n = v.get(r);
|
|
24
|
+
if (n && n.list === e && e[e.length - 1] === n.node)
|
|
25
|
+
return n.node;
|
|
26
|
+
const s = S.get(r) || 0;
|
|
27
|
+
S.set(r, s + 1);
|
|
28
|
+
const k = o.getColGroupDef(), d = {
|
|
29
|
+
id: s === 0 ? `${t}__${i}` : `${t}__${i}__${s}`,
|
|
30
|
+
label: k?.headerName || t,
|
|
30
31
|
checked: !0,
|
|
31
32
|
children: [],
|
|
32
33
|
category: "group"
|
|
33
34
|
};
|
|
34
|
-
return
|
|
35
|
+
return e.push(d), v.set(r, { list: e, node: d }), d;
|
|
35
36
|
};
|
|
36
|
-
let
|
|
37
|
-
c.forEach((
|
|
38
|
-
const
|
|
39
|
-
if (!
|
|
40
|
-
const
|
|
41
|
-
if (i != null && i.trim() === "" ||
|
|
37
|
+
let g = 0, y = 0, I = 0, N = 0;
|
|
38
|
+
c.forEach((o) => {
|
|
39
|
+
const e = M.get(o.colId) ?? l.getColumn(o.colId);
|
|
40
|
+
if (!e) return;
|
|
41
|
+
const t = e.getColDef(), i = t.headerName;
|
|
42
|
+
if (i != null && i.trim() === "" || !H(o.colId))
|
|
42
43
|
return;
|
|
43
|
-
const r =
|
|
44
|
-
let
|
|
45
|
-
if ((!
|
|
44
|
+
const r = t.headerName;
|
|
45
|
+
let n = typeof r == "string" && r.trim() !== "" ? r : l.getDisplayNameForColumn(e, "header");
|
|
46
|
+
if ((!n || n.trim() === "") && (n = t.field ?? o.colId), !n || n.trim() === "")
|
|
46
47
|
return;
|
|
47
|
-
const s = !
|
|
48
|
-
id:
|
|
49
|
-
label:
|
|
48
|
+
const s = !o.hide, k = !!o.sort, $ = e.isFilterActive() || _ === o.colId, d = E(o, e), w = !q(e), p = {
|
|
49
|
+
id: o.colId,
|
|
50
|
+
label: n,
|
|
50
51
|
checked: s,
|
|
51
52
|
data: {
|
|
52
|
-
hasSortApplied:
|
|
53
|
-
hasFilterApplied:
|
|
53
|
+
hasSortApplied: k,
|
|
54
|
+
hasFilterApplied: $,
|
|
55
|
+
isNonSavable: w,
|
|
54
56
|
pinned: d
|
|
55
57
|
}
|
|
56
58
|
};
|
|
57
|
-
d ? (
|
|
58
|
-
const
|
|
59
|
-
if (
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
d ? (g++, s && y++) : (I++, s && N++);
|
|
60
|
+
const z = d ? f : h, G = K(e), T = G.map((C) => C.getGroupId());
|
|
61
|
+
if (G.length > 0) {
|
|
62
|
+
p.data = {
|
|
63
|
+
...p.data,
|
|
64
|
+
columnGroupChain: T
|
|
65
|
+
};
|
|
66
|
+
let C = z, D = null;
|
|
67
|
+
for (const B of G)
|
|
68
|
+
D = P(B, C), C = D.children;
|
|
69
|
+
D.children.push(p);
|
|
64
70
|
} else
|
|
65
|
-
|
|
71
|
+
z.push(p);
|
|
66
72
|
});
|
|
67
|
-
const
|
|
68
|
-
let
|
|
69
|
-
for (const
|
|
70
|
-
|
|
71
|
-
return
|
|
73
|
+
const b = (o) => {
|
|
74
|
+
let e = o.length > 0;
|
|
75
|
+
for (const t of o)
|
|
76
|
+
t.children && (t.checked = b(t.children)), t.checked || (e = !1);
|
|
77
|
+
return e;
|
|
72
78
|
};
|
|
73
|
-
return
|
|
79
|
+
return b(f), b(h), [
|
|
74
80
|
{
|
|
75
81
|
id: "root-frozen",
|
|
76
|
-
label:
|
|
77
|
-
checked:
|
|
82
|
+
label: a.frozenColumns,
|
|
83
|
+
checked: g > 0 && y === g,
|
|
78
84
|
children: f,
|
|
79
85
|
category: "structure",
|
|
80
86
|
isDragDisabled: !0
|
|
81
87
|
},
|
|
82
88
|
{
|
|
83
89
|
id: "root-scrollable",
|
|
84
|
-
label:
|
|
85
|
-
checked:
|
|
90
|
+
label: a.scrollableColumns,
|
|
91
|
+
checked: I > 0 && N === I,
|
|
86
92
|
children: h,
|
|
87
93
|
category: "structure",
|
|
88
94
|
isDragDisabled: !0
|
|
@@ -90,5 +96,5 @@ function K(l, u) {
|
|
|
90
96
|
];
|
|
91
97
|
}
|
|
92
98
|
export {
|
|
93
|
-
|
|
99
|
+
A as buildColumnTreeFromGrid
|
|
94
100
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ColumnState, GridApi } from 'ag-grid-community';
|
|
2
|
+
import { NormalizedColumnPin } from './data-table-column-apply';
|
|
3
|
+
export interface GroupNodeMeta {
|
|
4
|
+
groupId: string;
|
|
5
|
+
label: string;
|
|
6
|
+
parentGroupId: string | null;
|
|
7
|
+
}
|
|
8
|
+
export interface ColumnLeafMeta {
|
|
9
|
+
columnId: string;
|
|
10
|
+
label: string;
|
|
11
|
+
groupChain: string[];
|
|
12
|
+
}
|
|
13
|
+
export interface ColumnPickerAuthority {
|
|
14
|
+
readonly orderedColumnIds: readonly string[];
|
|
15
|
+
readonly visibilityByColumnId: ReadonlyMap<string, boolean>;
|
|
16
|
+
readonly pinByColumnId: ReadonlyMap<string, NormalizedColumnPin>;
|
|
17
|
+
readonly labelByColumnId: ReadonlyMap<string, string>;
|
|
18
|
+
readonly groupMetadata: ReadonlyMap<string, GroupNodeMeta>;
|
|
19
|
+
readonly columnGroupChain: ReadonlyMap<string, string[]>;
|
|
20
|
+
readonly sortAppliedByColumnId: ReadonlyMap<string, boolean>;
|
|
21
|
+
readonly filterAppliedByColumnId: ReadonlyMap<string, boolean>;
|
|
22
|
+
readonly nonSavableByColumnId: ReadonlyMap<string, boolean>;
|
|
23
|
+
readonly revision: number;
|
|
24
|
+
}
|
|
25
|
+
export declare function buildAuthorityFromGrid(gridApi: GridApi): ColumnPickerAuthority | null;
|
|
26
|
+
export declare function toggleColumnVisibility(authority: ColumnPickerAuthority, columnId: string, isVisible: boolean): ColumnPickerAuthority;
|
|
27
|
+
export declare function toggleAllColumnsVisibility(authority: ColumnPickerAuthority, isVisible: boolean): ColumnPickerAuthority;
|
|
28
|
+
export declare function toggleColumnsVisibility(authority: ColumnPickerAuthority, columnIds: readonly string[], isVisible: boolean): ColumnPickerAuthority;
|
|
29
|
+
export declare function reorderColumn(authority: ColumnPickerAuthority, fromIndex: number, toIndex: number): ColumnPickerAuthority;
|
|
30
|
+
export declare function updateColumnPin(authority: ColumnPickerAuthority, columnId: string, pin: NormalizedColumnPin): ColumnPickerAuthority;
|
|
31
|
+
export declare function buildColumnStateFromAuthority(authority: ColumnPickerAuthority): ColumnState[];
|
|
32
|
+
export declare function fingerprintAuthority(authority: ColumnPickerAuthority): {
|
|
33
|
+
layout: string;
|
|
34
|
+
visibility: string;
|
|
35
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { resolveColumnPinnedFromGridState as P } from "./data-table-column-apply.js";
|
|
2
|
+
import { isPickerEligibleColumnId as F } from "./data-table-picker-column-eligibility.js";
|
|
3
|
+
import { buildColumnIndicatorMapsFromGrid as S } from "./patch-column-tree-indicators-from-grid.js";
|
|
4
|
+
import { resolveColumnSavability as V } from "./column-savability.js";
|
|
5
|
+
import { Fnv1a128Hasher as N } from "../../../lib/hash/fnv1a128.js";
|
|
6
|
+
let d = 0;
|
|
7
|
+
function E(n) {
|
|
8
|
+
const o = n.getColumnState(), i = n.getAllGridColumns?.() ?? n.getColumns?.() ?? [], e = new Map(
|
|
9
|
+
i.map((t) => [t.getColId(), t])
|
|
10
|
+
), l = [], y = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
|
|
11
|
+
for (const t of o) {
|
|
12
|
+
const r = e.get(t.colId) ?? n.getColumn(t.colId);
|
|
13
|
+
if (!r) continue;
|
|
14
|
+
const a = r.getColDef(), p = a.headerName;
|
|
15
|
+
if (p != null && p.trim() === "" || !F(t.colId))
|
|
16
|
+
continue;
|
|
17
|
+
const C = a.headerName;
|
|
18
|
+
let s = typeof C == "string" && C.trim() !== "" ? C : n.getDisplayNameForColumn(r, "header");
|
|
19
|
+
if ((!s || s.trim() === "") && (s = a.field ?? t.colId), !s || s.trim() === "")
|
|
20
|
+
continue;
|
|
21
|
+
const D = P(t, r);
|
|
22
|
+
l.push(t.colId), y.set(t.colId, !t.hide), g.set(t.colId, D), b.set(t.colId, s), B.set(t.colId, !V(r));
|
|
23
|
+
const h = [];
|
|
24
|
+
let u = r.getOriginalParent();
|
|
25
|
+
for (; u; ) {
|
|
26
|
+
const I = u.getColGroupDef();
|
|
27
|
+
if (I?.headerName && I?.children) {
|
|
28
|
+
const m = u.getGroupId();
|
|
29
|
+
if (h.unshift(m), !c.has(m)) {
|
|
30
|
+
const f = u.getOriginalParent();
|
|
31
|
+
let M = null;
|
|
32
|
+
for (; f; ) {
|
|
33
|
+
const G = f.getColGroupDef();
|
|
34
|
+
if (G?.headerName && G?.children) {
|
|
35
|
+
M = f.getGroupId();
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
c.set(m, {
|
|
40
|
+
groupId: m,
|
|
41
|
+
label: I.headerName,
|
|
42
|
+
parentGroupId: M
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
u = u.getOriginalParent();
|
|
47
|
+
}
|
|
48
|
+
v.set(t.colId, h);
|
|
49
|
+
}
|
|
50
|
+
if (l.length === 0)
|
|
51
|
+
return null;
|
|
52
|
+
const w = S(n);
|
|
53
|
+
return {
|
|
54
|
+
orderedColumnIds: l,
|
|
55
|
+
visibilityByColumnId: y,
|
|
56
|
+
pinByColumnId: g,
|
|
57
|
+
labelByColumnId: b,
|
|
58
|
+
groupMetadata: c,
|
|
59
|
+
columnGroupChain: v,
|
|
60
|
+
sortAppliedByColumnId: w.sortAppliedByColumnId,
|
|
61
|
+
filterAppliedByColumnId: w.filterAppliedByColumnId,
|
|
62
|
+
nonSavableByColumnId: B,
|
|
63
|
+
revision: ++d
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function j(n, o, i) {
|
|
67
|
+
const e = new Map(n.visibilityByColumnId);
|
|
68
|
+
return e.set(o, i), { ...n, visibilityByColumnId: e, revision: ++d };
|
|
69
|
+
}
|
|
70
|
+
function q(n, o) {
|
|
71
|
+
const i = /* @__PURE__ */ new Map();
|
|
72
|
+
for (const e of n.orderedColumnIds)
|
|
73
|
+
i.set(e, o);
|
|
74
|
+
return { ...n, visibilityByColumnId: i, revision: ++d };
|
|
75
|
+
}
|
|
76
|
+
function z(n, o, i) {
|
|
77
|
+
const e = new Map(n.visibilityByColumnId);
|
|
78
|
+
for (const l of o)
|
|
79
|
+
e.set(l, i);
|
|
80
|
+
return { ...n, visibilityByColumnId: e, revision: ++d };
|
|
81
|
+
}
|
|
82
|
+
function J(n, o, i) {
|
|
83
|
+
if (o === i) return n;
|
|
84
|
+
const e = [...n.orderedColumnIds], [l] = e.splice(o, 1);
|
|
85
|
+
return e.splice(i, 0, l), { ...n, orderedColumnIds: e, revision: ++d };
|
|
86
|
+
}
|
|
87
|
+
function K(n, o, i) {
|
|
88
|
+
const e = new Map(n.pinByColumnId);
|
|
89
|
+
return e.set(o, i), { ...n, pinByColumnId: e, revision: ++d };
|
|
90
|
+
}
|
|
91
|
+
function L(n) {
|
|
92
|
+
return n.orderedColumnIds.map((o) => ({
|
|
93
|
+
colId: o,
|
|
94
|
+
hide: !n.visibilityByColumnId.get(o),
|
|
95
|
+
pinned: n.pinByColumnId.get(o) ?? null
|
|
96
|
+
}));
|
|
97
|
+
}
|
|
98
|
+
function Q(n) {
|
|
99
|
+
const o = new N(), i = new N();
|
|
100
|
+
for (const e of n.orderedColumnIds) {
|
|
101
|
+
const l = n.pinByColumnId.get(e) ?? "0";
|
|
102
|
+
o.update(e).update(":").update(l === null ? "0" : l).update("|"), i.update(e).update(":").update(n.visibilityByColumnId.get(e) ? "1" : "0").update("|");
|
|
103
|
+
}
|
|
104
|
+
return {
|
|
105
|
+
layout: o.digest(),
|
|
106
|
+
visibility: i.digest()
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
export {
|
|
110
|
+
E as buildAuthorityFromGrid,
|
|
111
|
+
L as buildColumnStateFromAuthority,
|
|
112
|
+
Q as fingerprintAuthority,
|
|
113
|
+
J as reorderColumn,
|
|
114
|
+
q as toggleAllColumnsVisibility,
|
|
115
|
+
j as toggleColumnVisibility,
|
|
116
|
+
z as toggleColumnsVisibility,
|
|
117
|
+
K as updateColumnPin
|
|
118
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { findNestedListItemById as c, findNestedListParentId as i } from "../nested-list/nested-list-drop-engine.js";
|
|
2
|
+
import { NESTED_LIST_SECTION_IDS as l } from "../nested-list/nested-list-constants.js";
|
|
3
|
+
function f(t) {
|
|
4
|
+
const e = t.indexOf("__");
|
|
5
|
+
return e === -1 ? t : t.slice(0, e);
|
|
6
|
+
}
|
|
7
|
+
function m(t) {
|
|
8
|
+
return t?.data?.columnGroupChain ?? [];
|
|
9
|
+
}
|
|
10
|
+
function h(t, e) {
|
|
11
|
+
const n = [];
|
|
12
|
+
let r = i(t, e);
|
|
13
|
+
for (; r && !l.has(r); ) {
|
|
14
|
+
const o = c(t, r);
|
|
15
|
+
(o?.category === "group" || o?.children) && n.unshift(f(r)), r = i(t, r);
|
|
16
|
+
}
|
|
17
|
+
return n;
|
|
18
|
+
}
|
|
19
|
+
function v(t, e) {
|
|
20
|
+
return t.length !== e.length ? !1 : t.every((n, r) => n === e[r]);
|
|
21
|
+
}
|
|
22
|
+
function C(t) {
|
|
23
|
+
const { items: e, activeItemId: n, overItemId: r, insertAfter: o } = t, I = c(e, n), u = m(I);
|
|
24
|
+
if (u.length === 0)
|
|
25
|
+
return !0;
|
|
26
|
+
const d = i(e, n), p = i(e, r);
|
|
27
|
+
if (d === p)
|
|
28
|
+
return !0;
|
|
29
|
+
const a = c(e, r);
|
|
30
|
+
if (a?.category !== "group" || o === !1)
|
|
31
|
+
return !0;
|
|
32
|
+
const s = h(e, r);
|
|
33
|
+
return s.push(f(a.id)), v(u, s);
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
C as isValidColumnPickerGroupDrop
|
|
37
|
+
};
|