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,178 +1,107 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { lazy as
|
|
3
|
-
import { ModuleRegistry as
|
|
4
|
-
import { AllEnterpriseModule as
|
|
5
|
-
import { AgGridReact as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { CustomHeaderGroup as Me } from "./headers/custom-inner-header-group.js";
|
|
20
|
-
import { mergeColumnGroupDefsWithDefault as Mt } from "./merge-column-group-defs.js";
|
|
21
|
-
import { DefaultTextCellRenderer as Et } from "./cell-renderers/default-text-cell-renderer.js";
|
|
22
|
-
import { GridHeaderContext as Gt } from "./headers/context/grid-header-context.js";
|
|
23
|
-
import { convertToAgGridFilterModel as wt, getMultiFilterIndices as Tt, convertFromAgGridFilterModel as Nt } from "./headers/utils/filter-utils.js";
|
|
24
|
-
import { AG_GRID_VALUE_FORMATTERS as Dt } from "./value-formatters.js";
|
|
25
|
-
import { useGridAutoSizeStrategyOnResize as kt } from "./useGridAutoSizeStrategyOnResize.js";
|
|
26
|
-
import { subscribeGridApiEvent as xn, subscribeGridApiEvents as In } from "./grid-api-event-subscription.js";
|
|
27
|
-
import { notifyColumnIndicatorSync as J } from "./notify-column-indicator-sync.js";
|
|
28
|
-
import { setActiveSearchColumnId as oe, clearHeaderSearchActiveState as _t } from "./headers/header-search-active-state.js";
|
|
1
|
+
import { jsxs as ye, jsx as F } from "react/jsx-runtime";
|
|
2
|
+
import { lazy as be, useRef as L, useState as O, useId as xe, useEffect as q, useCallback as m, useMemo as f, Suspense as Se } from "react";
|
|
3
|
+
import { ModuleRegistry as Fe, AllCommunityModule as Ae } from "ag-grid-community";
|
|
4
|
+
import { AllEnterpriseModule as Ee } from "ag-grid-enterprise";
|
|
5
|
+
import { AgGridReact as Ge } from "ag-grid-react";
|
|
6
|
+
import { customAgGridTheme as Me } from "./theme.js";
|
|
7
|
+
import { syncAgGridThemeMode as Re } from "./sync-ag-grid-theme-mode.js";
|
|
8
|
+
import { CustomHeader as Te } from "./headers/custom-header.js";
|
|
9
|
+
import { CustomHeaderGroup as z } from "./headers/custom-inner-header-group.js";
|
|
10
|
+
import { mergeColumnGroupDefsWithDefault as we } from "./merge-column-group-defs.js";
|
|
11
|
+
import { DefaultTextCellRenderer as ke } from "./cell-renderers/default-text-cell-renderer.js";
|
|
12
|
+
import { GridHeaderContext as Ie } from "./headers/context/grid-header-context.js";
|
|
13
|
+
import { convertToAgGridFilterModel as je, getMultiFilterIndices as Pe, convertFromAgGridFilterModel as De } from "./headers/utils/filter-utils.js";
|
|
14
|
+
import { AG_GRID_VALUE_FORMATTERS as Le } from "./value-formatters.js";
|
|
15
|
+
import { useGridAutoSizeStrategyOnResize as Oe } from "./useGridAutoSizeStrategyOnResize.js";
|
|
16
|
+
import { subscribeGridApiEvent as ct, subscribeGridApiEvents as at } from "./grid-api-event-subscription.js";
|
|
17
|
+
import { notifyColumnIndicatorSync as R } from "./notify-column-indicator-sync.js";
|
|
18
|
+
import { setActiveSearchColumnId as H, clearHeaderSearchActiveState as He } from "./headers/header-search-active-state.js";
|
|
29
19
|
/* empty css */
|
|
30
|
-
import { useAgGridTruncationTooltip as
|
|
31
|
-
import { isAgGridHeaderLabelTooltipOverflowing as
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
default: c.AdvancedFilterDialog
|
|
36
|
-
}))
|
|
37
|
-
), Pt = ie(
|
|
38
|
-
() => import("./comments/comments-host.js").then((c) => ({
|
|
39
|
-
default: c.CommentsHost
|
|
40
|
-
}))
|
|
41
|
-
), Wt = ie(
|
|
42
|
-
() => import("./chat/chat-host.js").then((c) => ({
|
|
43
|
-
default: c.ChatHost
|
|
20
|
+
import { useAgGridTruncationTooltip as dt } from "./use-ag-grid-truncation-tooltip.js";
|
|
21
|
+
import { isAgGridHeaderLabelTooltipOverflowing as mt, isAgGridTextOverflowing as ft } from "./ag-grid-tooltip-overflow.js";
|
|
22
|
+
const Ne = be(
|
|
23
|
+
() => import("./headers/advanced-filter/advanced-filter-dialog.js").then((s) => ({
|
|
24
|
+
default: s.AdvancedFilterDialog
|
|
44
25
|
}))
|
|
45
26
|
);
|
|
46
|
-
|
|
47
|
-
const
|
|
48
|
-
if (!
|
|
49
|
-
const
|
|
50
|
-
if (Array.isArray(
|
|
51
|
-
const
|
|
52
|
-
if (Array.isArray(
|
|
53
|
-
},
|
|
54
|
-
const
|
|
55
|
-
for (const
|
|
56
|
-
const
|
|
57
|
-
if (!
|
|
58
|
-
|
|
27
|
+
Fe.registerModules([Ae, Ee]);
|
|
28
|
+
const S = "", N = "", J = (s) => {
|
|
29
|
+
if (!s) return;
|
|
30
|
+
const o = s.cellRendererParams?.splits;
|
|
31
|
+
if (Array.isArray(o) && o.length > 0) return o;
|
|
32
|
+
const l = s.cellEditorParams?.splits;
|
|
33
|
+
if (Array.isArray(l) && l.length > 0) return l;
|
|
34
|
+
}, X = (s, o) => {
|
|
35
|
+
const l = [];
|
|
36
|
+
for (const y of o) {
|
|
37
|
+
const g = y?.field?.split(".").pop();
|
|
38
|
+
if (!g) {
|
|
39
|
+
l.push("");
|
|
59
40
|
continue;
|
|
60
41
|
}
|
|
61
|
-
const
|
|
62
|
-
if (
|
|
63
|
-
|
|
42
|
+
const a = s[g];
|
|
43
|
+
if (a == null) {
|
|
44
|
+
l.push("");
|
|
64
45
|
continue;
|
|
65
46
|
}
|
|
66
|
-
if (typeof
|
|
67
|
-
const
|
|
68
|
-
|
|
47
|
+
if (typeof a == "object" && "value" in a) {
|
|
48
|
+
const u = a.value;
|
|
49
|
+
l.push(u == null ? "" : String(u));
|
|
69
50
|
continue;
|
|
70
51
|
}
|
|
71
|
-
if (typeof
|
|
72
|
-
|
|
52
|
+
if (typeof a != "object") {
|
|
53
|
+
l.push(String(a));
|
|
73
54
|
continue;
|
|
74
55
|
}
|
|
75
|
-
|
|
56
|
+
l.push("");
|
|
76
57
|
}
|
|
77
|
-
return
|
|
78
|
-
},
|
|
58
|
+
return l;
|
|
59
|
+
}, B = (s) => {
|
|
79
60
|
if (typeof navigator < "u" && navigator.clipboard?.writeText) {
|
|
80
|
-
navigator.clipboard.writeText(
|
|
61
|
+
navigator.clipboard.writeText(s).catch(() => Q(s));
|
|
81
62
|
return;
|
|
82
63
|
}
|
|
83
|
-
|
|
84
|
-
},
|
|
64
|
+
Q(s);
|
|
65
|
+
}, Q = (s) => {
|
|
85
66
|
if (typeof document > "u") return;
|
|
86
|
-
const
|
|
87
|
-
|
|
67
|
+
const o = document.createElement("textarea");
|
|
68
|
+
o.value = s, o.setAttribute("readonly", ""), o.style.position = "fixed", o.style.top = "0", o.style.left = "0", o.style.opacity = "0", o.style.pointerEvents = "none", document.body.appendChild(o);
|
|
88
69
|
try {
|
|
89
|
-
|
|
70
|
+
o.select(), document.execCommand("copy");
|
|
90
71
|
} finally {
|
|
91
|
-
document.body.removeChild(
|
|
72
|
+
document.body.removeChild(o);
|
|
92
73
|
}
|
|
93
74
|
};
|
|
94
|
-
function
|
|
95
|
-
children:
|
|
96
|
-
defaultColDef:
|
|
97
|
-
defaultColGroupDef:
|
|
98
|
-
columnDefs:
|
|
99
|
-
valueFormatters:
|
|
100
|
-
onGridReady:
|
|
101
|
-
onGridPreDestroyed:
|
|
102
|
-
onFilterChanged:
|
|
103
|
-
onSelectionChanged:
|
|
104
|
-
onModelUpdated:
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
ensureDomOrder: Ne = !1,
|
|
113
|
-
autoSizeStrategy: ce,
|
|
114
|
-
tooltipShowMode: De = "whenTruncated",
|
|
115
|
-
tooltipShowDelay: ke = 500,
|
|
116
|
-
tooltipHideDelay: _e = 5e3,
|
|
117
|
-
tooltipInteraction: je = !0,
|
|
118
|
-
themeOverride: He,
|
|
75
|
+
function lt({
|
|
76
|
+
children: s,
|
|
77
|
+
defaultColDef: o,
|
|
78
|
+
defaultColGroupDef: l,
|
|
79
|
+
columnDefs: y,
|
|
80
|
+
valueFormatters: g,
|
|
81
|
+
onGridReady: a,
|
|
82
|
+
onGridPreDestroyed: u,
|
|
83
|
+
onFilterChanged: b,
|
|
84
|
+
onSelectionChanged: h,
|
|
85
|
+
onModelUpdated: A,
|
|
86
|
+
ensureDomOrder: T = !1,
|
|
87
|
+
autoSizeStrategy: w,
|
|
88
|
+
tooltipShowMode: k = "whenTruncated",
|
|
89
|
+
tooltipShowDelay: I = 500,
|
|
90
|
+
tooltipHideDelay: Y = 5e3,
|
|
91
|
+
tooltipInteraction: Z = !0,
|
|
92
|
+
themeOverride: ee,
|
|
119
93
|
...C
|
|
120
94
|
}) {
|
|
121
|
-
const
|
|
122
|
-
|
|
123
|
-
const { t: b, locale: ue, dateLocale: de, numberLocale: me, messages: U } = mt(), I = j != null, S = X != null, f = p != null, T = g(null), B = g(null), L = g(j);
|
|
124
|
-
L.current = j;
|
|
125
|
-
const P = g(X);
|
|
126
|
-
P.current = X;
|
|
127
|
-
const W = g(p);
|
|
128
|
-
W.current = p;
|
|
129
|
-
const pe = g(!1), fe = g(!1), ge = g(!1), V = g(void 0), Q = y(
|
|
130
|
-
() => ({
|
|
131
|
-
...C.context,
|
|
132
|
-
locale: ue,
|
|
133
|
-
dateLocale: de,
|
|
134
|
-
numberLocale: me,
|
|
135
|
-
booleanYes: U.dataTable.booleanYes,
|
|
136
|
-
booleanNo: U.dataTable.booleanNo
|
|
137
|
-
}),
|
|
138
|
-
[C.context, ue, de, me, U.dataTable.booleanYes, U.dataTable.booleanNo]
|
|
139
|
-
);
|
|
140
|
-
z(() => {
|
|
141
|
-
x && (x.setGridOption("context", Q), x.refreshCells({ force: !0 }));
|
|
142
|
-
}, [x, Q]);
|
|
143
|
-
const Le = y(() => {
|
|
144
|
-
if (S)
|
|
145
|
-
return Ct(
|
|
146
|
-
{
|
|
147
|
-
getNote: (e) => P.current.getNote(e),
|
|
148
|
-
setNote: (e, t) => P.current.setNote(e, t)
|
|
149
|
-
},
|
|
150
|
-
() => {
|
|
151
|
-
fe.current || (fe.current = !0, console.warn(Ae));
|
|
152
|
-
}
|
|
153
|
-
);
|
|
154
|
-
}, [S]);
|
|
155
|
-
z(() => {
|
|
156
|
-
if (!C.getRowId) {
|
|
157
|
-
if (I) {
|
|
158
|
-
console.warn(Ie);
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
if (S) {
|
|
162
|
-
console.warn(Ae);
|
|
163
|
-
return;
|
|
164
|
-
}
|
|
165
|
-
f && !ge.current && (ge.current = !0, console.warn(yt));
|
|
166
|
-
}
|
|
167
|
-
}, [f, I, S, C.getRowId]), kt(x, H, ce), z(() => {
|
|
95
|
+
const c = L(null), j = L(null), [W, _] = O(null), K = xe(), v = L(K);
|
|
96
|
+
v.current = K, Oe(W, j, w), q(() => {
|
|
168
97
|
const e = document.documentElement, t = () => {
|
|
169
|
-
|
|
98
|
+
Re(e.classList.contains("dark") ? "dark" : "light", e);
|
|
170
99
|
};
|
|
171
100
|
t();
|
|
172
101
|
const n = new MutationObserver(t);
|
|
173
102
|
return n.observe(e, { attributes: !0, attributeFilter: ["class"] }), () => n.disconnect();
|
|
174
103
|
}, []);
|
|
175
|
-
const [
|
|
104
|
+
const [te, U] = O(!1), [re, V] = O(null), ne = m(() => [], []), oe = f(() => ({
|
|
176
105
|
numericColumn: {
|
|
177
106
|
cellClass: "ag-right-aligned-cell",
|
|
178
107
|
headerClass: "ag-right-aligned-header",
|
|
@@ -182,106 +111,90 @@ function yn({
|
|
|
182
111
|
cellClass: "ag-right-aligned-cell",
|
|
183
112
|
headerClass: "ag-right-aligned-header",
|
|
184
113
|
filter: "agNumberColumnFilter",
|
|
185
|
-
valueFormatter: (e) => e.value != null ?
|
|
186
|
-
minimumFractionDigits: 2,
|
|
187
|
-
maximumFractionDigits: 2
|
|
188
|
-
}) : ""
|
|
114
|
+
valueFormatter: (e) => e.value != null ? `$${Number(e.value).toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}` : ""
|
|
189
115
|
},
|
|
190
116
|
percentage: {
|
|
191
117
|
cellClass: "ag-right-aligned-cell",
|
|
192
118
|
headerClass: "ag-right-aligned-header",
|
|
193
119
|
filter: "agNumberColumnFilter",
|
|
194
|
-
valueFormatter: (e) => e.value != null ?
|
|
195
|
-
minimumFractionDigits: 2,
|
|
196
|
-
maximumFractionDigits: 2
|
|
197
|
-
}) : ""
|
|
120
|
+
valueFormatter: (e) => e.value != null ? `${Number(e.value).toFixed(2)}%` : ""
|
|
198
121
|
},
|
|
199
122
|
dateColumn: {
|
|
200
123
|
filter: "agDateColumnFilter"
|
|
201
124
|
}
|
|
202
|
-
}), []),
|
|
203
|
-
gridScopeId:
|
|
125
|
+
}), []), P = f(() => ({
|
|
126
|
+
gridScopeId: v.current,
|
|
204
127
|
openSearch: (e) => {
|
|
205
|
-
if (!
|
|
206
|
-
const t =
|
|
207
|
-
|
|
128
|
+
if (!c.current) return;
|
|
129
|
+
const t = c.current.getGridOption("context") || {};
|
|
130
|
+
c.current.setGridOption("context", { ...t, activeSearchColumnId: e }), H(v.current, e), R(c.current);
|
|
208
131
|
},
|
|
209
132
|
closeSearch: () => {
|
|
210
|
-
if (!
|
|
211
|
-
const e =
|
|
212
|
-
|
|
133
|
+
if (!c.current) return;
|
|
134
|
+
const e = c.current.getGridOption("context") || {};
|
|
135
|
+
c.current.setGridOption("context", { ...e, activeSearchColumnId: null }), H(v.current, null), R(c.current);
|
|
213
136
|
},
|
|
214
137
|
openAdvancedFilter: (e) => {
|
|
215
|
-
|
|
138
|
+
V(e || null), U(!0);
|
|
216
139
|
},
|
|
217
140
|
closeAdvancedFilter: () => {
|
|
218
|
-
|
|
141
|
+
U(!1), V(null);
|
|
219
142
|
},
|
|
220
143
|
applyAdvancedFilter: (e) => {
|
|
221
|
-
if (!
|
|
222
|
-
const t =
|
|
223
|
-
|
|
144
|
+
if (!c.current) return;
|
|
145
|
+
const t = je(e);
|
|
146
|
+
c.current.setFilterModel(t), c.current.onFilterChanged(), R(c.current);
|
|
224
147
|
}
|
|
225
|
-
}), []),
|
|
226
|
-
|
|
227
|
-
e.api.getAllDisplayedColumns?.() ?? e.api.getColumns?.()
|
|
228
|
-
);
|
|
148
|
+
}), []), le = m((e) => {
|
|
149
|
+
c.current = e.api, _(e.api);
|
|
229
150
|
const t = e.api.getGridOption("context") || {};
|
|
230
151
|
e.api.setGridOption("context", {
|
|
231
152
|
...t,
|
|
232
153
|
activeSearchColumnId: null,
|
|
233
|
-
headerSearchScopeId:
|
|
234
|
-
}),
|
|
235
|
-
|
|
236
|
-
if (n && n.column !== !1 && n.colId == null) {
|
|
237
|
-
const l = typeof n.column == "object" ? n.column.pinned : void 0, r = l === void 0 ? "right" : l;
|
|
238
|
-
(r === "left" || r === "right") && e.api.setColumnsPinned([bt], r);
|
|
239
|
-
}
|
|
240
|
-
d && d(e);
|
|
241
|
-
}, [d]), Ve = u(
|
|
154
|
+
headerSearchScopeId: v.current
|
|
155
|
+
}), H(v.current, null), a && a(e);
|
|
156
|
+
}, [a]), ie = m(
|
|
242
157
|
(e) => {
|
|
243
|
-
|
|
158
|
+
He(v.current), c.current = null, _(null), u?.(e);
|
|
244
159
|
},
|
|
245
|
-
[
|
|
246
|
-
),
|
|
160
|
+
[u]
|
|
161
|
+
), se = m(
|
|
247
162
|
(e) => {
|
|
248
|
-
|
|
163
|
+
R(e.api), b?.(e);
|
|
249
164
|
},
|
|
250
|
-
[
|
|
251
|
-
),
|
|
165
|
+
[b]
|
|
166
|
+
), ce = m(
|
|
252
167
|
(e) => {
|
|
253
|
-
|
|
168
|
+
h?.(e);
|
|
254
169
|
},
|
|
255
|
-
[
|
|
256
|
-
),
|
|
170
|
+
[h]
|
|
171
|
+
), ae = m(
|
|
257
172
|
(e) => {
|
|
258
|
-
|
|
259
|
-
e.api.getAllDisplayedColumns?.() ?? e.api.getColumns?.()
|
|
260
|
-
), K?.(e);
|
|
173
|
+
A?.(e);
|
|
261
174
|
},
|
|
262
|
-
[
|
|
175
|
+
[A]
|
|
263
176
|
);
|
|
264
|
-
|
|
265
|
-
const e =
|
|
177
|
+
q(() => {
|
|
178
|
+
const e = j.current;
|
|
266
179
|
if (!e) return;
|
|
267
180
|
const t = (n) => {
|
|
268
181
|
if (n.key !== "Enter" && n.key !== " ") return;
|
|
269
|
-
const
|
|
270
|
-
if (!
|
|
271
|
-
const r =
|
|
182
|
+
const i = n.target;
|
|
183
|
+
if (!i.classList.contains("ag-cell") && !i.classList.contains("ag-header-cell")) return;
|
|
184
|
+
const r = i.querySelector(
|
|
272
185
|
'button, [role="checkbox"], [role="switch"], [role="combobox"], [role="button"], [role="link"], a, input, select, textarea, .cursor-pointer'
|
|
273
186
|
);
|
|
274
187
|
r && (n.preventDefault(), n.stopPropagation(), r.click(), r.focus());
|
|
275
188
|
};
|
|
276
189
|
return e.addEventListener("keydown", t, !0), () => e.removeEventListener("keydown", t, !0);
|
|
277
190
|
}, []);
|
|
278
|
-
const
|
|
279
|
-
headerComponent:
|
|
191
|
+
const ue = f(() => ({
|
|
192
|
+
headerComponent: Te,
|
|
280
193
|
// Default cell renderer wraps text in a span so display:flex centering
|
|
281
194
|
// and text-overflow:ellipsis both work (ellipsis doesn't work on
|
|
282
195
|
// anonymous flex text nodes, but works on flex child elements).
|
|
283
|
-
cellRenderer:
|
|
284
|
-
...
|
|
196
|
+
cellRenderer: ke,
|
|
197
|
+
...o,
|
|
285
198
|
suppressHeaderKeyboardEvent: (e) => {
|
|
286
199
|
const { event: t } = e, n = t.target;
|
|
287
200
|
if (n.tagName === "INPUT" || n.tagName === "TEXTAREA")
|
|
@@ -289,87 +202,49 @@ function yn({
|
|
|
289
202
|
if (t.key === "Enter" || t.key === " ") {
|
|
290
203
|
const r = n.closest(".ag-header-cell");
|
|
291
204
|
if (r) {
|
|
292
|
-
const
|
|
293
|
-
if (
|
|
294
|
-
return t.preventDefault(),
|
|
205
|
+
const d = r.querySelector('[role="checkbox"], button, [role="switch"], input');
|
|
206
|
+
if (d)
|
|
207
|
+
return t.preventDefault(), d.click(), !0;
|
|
295
208
|
}
|
|
296
209
|
}
|
|
297
|
-
return
|
|
210
|
+
return o?.suppressHeaderKeyboardEvent?.(e) ?? !1;
|
|
298
211
|
},
|
|
299
212
|
headerComponentParams: {
|
|
300
|
-
...
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
...i?.cellClassRules,
|
|
305
|
-
[gt]: (e) => {
|
|
306
|
-
const t = L.current;
|
|
307
|
-
return t ? pt(e, t.hasIndicator, () => {
|
|
308
|
-
pe.current || (pe.current = !0, console.warn(Ie));
|
|
309
|
-
}) : !1;
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
} : {}
|
|
313
|
-
}), [i, I]), $ = y(() => ({
|
|
314
|
-
...s,
|
|
213
|
+
...o?.headerComponentParams
|
|
214
|
+
}
|
|
215
|
+
}), [o]), D = f(() => ({
|
|
216
|
+
...l,
|
|
315
217
|
headerGroupComponentParams: {
|
|
316
|
-
...
|
|
317
|
-
innerHeaderGroupComponent:
|
|
218
|
+
...l?.headerGroupComponentParams,
|
|
219
|
+
innerHeaderGroupComponent: l?.headerGroupComponentParams?.innerHeaderGroupComponent ?? "CustomInnerHeaderGroup"
|
|
318
220
|
}
|
|
319
|
-
}), [
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
hasConversation: (t) => e.hasConversation(t),
|
|
325
|
-
unreadCount: (t) => e.unreadCount?.(t) ?? 0,
|
|
326
|
-
priority: (t) => e.priority?.(t),
|
|
327
|
-
label: (t, n) => {
|
|
328
|
-
const l = e.getRowTitle?.(t) ?? t;
|
|
329
|
-
return n > 0 ? b("chat.cellLabelUnread", { title: l, count: n }) : b("chat.cellLabel", { title: l });
|
|
330
|
-
}
|
|
331
|
-
};
|
|
332
|
-
});
|
|
333
|
-
}, [f, b]), Xe = y(
|
|
334
|
-
() => {
|
|
335
|
-
const e = Mt(D ?? void 0, $);
|
|
336
|
-
return !ye || !ee ? e : xt(
|
|
337
|
-
e ?? [],
|
|
338
|
-
It({
|
|
339
|
-
headerName: b("chat.columnHeader"),
|
|
340
|
-
cellRenderer: ee,
|
|
341
|
-
pinned: be,
|
|
342
|
-
width: ve
|
|
343
|
-
})
|
|
344
|
-
);
|
|
345
|
-
},
|
|
346
|
-
[ee, be, ve, D, ye, $, b]
|
|
347
|
-
), Be = y(() => ({
|
|
348
|
-
...Dt,
|
|
221
|
+
}), [l]), de = f(
|
|
222
|
+
() => we(y ?? void 0, D),
|
|
223
|
+
[y, D]
|
|
224
|
+
), pe = f(() => ({
|
|
225
|
+
...Le,
|
|
349
226
|
// Always available - value formatters
|
|
350
|
-
CustomInnerHeaderGroup:
|
|
351
|
-
CustomHeaderGroup:
|
|
227
|
+
CustomInnerHeaderGroup: z,
|
|
228
|
+
CustomHeaderGroup: z,
|
|
352
229
|
...C.components,
|
|
353
230
|
// User components override
|
|
354
|
-
...
|
|
231
|
+
...g
|
|
355
232
|
// Optional custom formatters override defaults
|
|
356
|
-
}), [
|
|
357
|
-
const t = e.
|
|
358
|
-
if (
|
|
359
|
-
const n = e.
|
|
360
|
-
if (n
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
const N = l[0]?.field?.split(".").pop(), A = N ? n[N] : void 0;
|
|
366
|
-
return A && typeof A == "object" && "value" in A ? A.value ?? "" : o[0];
|
|
233
|
+
}), [g, C.components]), me = m((e) => {
|
|
234
|
+
const t = e.value;
|
|
235
|
+
if (t == null || typeof t != "object") return t;
|
|
236
|
+
const n = J(e.column?.getColDef());
|
|
237
|
+
if (n && n.length > 0) {
|
|
238
|
+
const r = X(t, n);
|
|
239
|
+
if (n.length === 1) {
|
|
240
|
+
const d = n[0]?.field?.split(".").pop(), x = d ? t[d] : void 0;
|
|
241
|
+
return x && typeof x == "object" && "value" in x ? x.value ?? "" : r[0];
|
|
367
242
|
}
|
|
368
|
-
return
|
|
243
|
+
return N + r.join(S);
|
|
369
244
|
}
|
|
370
|
-
const
|
|
371
|
-
return
|
|
372
|
-
}, []),
|
|
245
|
+
const i = Object.entries(t).map(([, r]) => r && typeof r == "object" && "value" in r ? r.value : typeof r != "object" && typeof r < "u" ? r : null).filter((r) => r != null);
|
|
246
|
+
return i.length === 0 ? "" : i.length === 1 ? i[0] : i.join(S);
|
|
247
|
+
}, []), fe = m((e) => {
|
|
373
248
|
if (typeof e.value == "string") {
|
|
374
249
|
const t = e.value.trim();
|
|
375
250
|
if (t.startsWith("{") || t.startsWith("["))
|
|
@@ -380,244 +255,142 @@ function yn({
|
|
|
380
255
|
}
|
|
381
256
|
}
|
|
382
257
|
return e.value;
|
|
383
|
-
}, []),
|
|
258
|
+
}, []), ge = m((e) => {
|
|
384
259
|
const t = e?.data ?? "";
|
|
385
|
-
if (!t.includes(
|
|
386
|
-
|
|
260
|
+
if (!t.includes(S) && !t.includes(N)) {
|
|
261
|
+
B(t);
|
|
387
262
|
return;
|
|
388
263
|
}
|
|
389
|
-
const n = [],
|
|
264
|
+
const n = [], i = t.split(`
|
|
390
265
|
`);
|
|
391
|
-
for (let r = 0; r <
|
|
392
|
-
const
|
|
393
|
-
if (
|
|
266
|
+
for (let r = 0; r < i.length; r++) {
|
|
267
|
+
const d = i[r];
|
|
268
|
+
if (d.length === 0 && r === i.length - 1) {
|
|
394
269
|
n.push("");
|
|
395
270
|
continue;
|
|
396
271
|
}
|
|
397
|
-
const
|
|
398
|
-
if (
|
|
399
|
-
n.push(
|
|
272
|
+
const G = d.split(" ").map((p) => p.startsWith(N) ? { isSplit: !0, slots: p.slice(1).split(S) } : { isSplit: !1, slots: p.split(S) }), $ = Math.max(1, ...G.map((p) => p.slots.length));
|
|
273
|
+
if ($ === 1) {
|
|
274
|
+
n.push(G.map((p) => p.slots[0] ?? "").join(" "));
|
|
400
275
|
continue;
|
|
401
276
|
}
|
|
402
|
-
for (let
|
|
403
|
-
const
|
|
404
|
-
n.push(
|
|
277
|
+
for (let p = 0; p < $; p++) {
|
|
278
|
+
const ve = G.map((M) => !M.isSplit && M.slots.length === 1 ? M.slots[0] : M.slots[p] ?? "");
|
|
279
|
+
n.push(ve.join(" "));
|
|
405
280
|
}
|
|
406
281
|
}
|
|
407
|
-
|
|
282
|
+
B(n.join(`
|
|
408
283
|
`));
|
|
409
|
-
}, []),
|
|
410
|
-
const t = e.
|
|
411
|
-
if (
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
if (
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
const o = Ge(n, l);
|
|
418
|
-
return l.length === 1 ? o[0] : o.join(`
|
|
284
|
+
}, []), E = m((e) => {
|
|
285
|
+
const t = e.value;
|
|
286
|
+
if (t == null) return "";
|
|
287
|
+
if (typeof t != "object") return String(t);
|
|
288
|
+
const n = J(e.column?.getColDef());
|
|
289
|
+
if (n && n.length > 0) {
|
|
290
|
+
const r = X(t, n);
|
|
291
|
+
return n.length === 1 ? r[0] : r.join(`
|
|
419
292
|
`);
|
|
420
293
|
}
|
|
421
|
-
const
|
|
422
|
-
for (const
|
|
423
|
-
if (
|
|
424
|
-
const
|
|
425
|
-
if (
|
|
426
|
-
|
|
294
|
+
const i = [];
|
|
295
|
+
for (const r of Object.values(t)) {
|
|
296
|
+
if (r && typeof r == "object" && "value" in r) {
|
|
297
|
+
const d = r.value;
|
|
298
|
+
if (d == null) continue;
|
|
299
|
+
i.push(String(d));
|
|
427
300
|
continue;
|
|
428
301
|
}
|
|
429
|
-
|
|
302
|
+
r != null && typeof r != "object" && i.push(String(r));
|
|
430
303
|
}
|
|
431
|
-
return
|
|
304
|
+
return i.length === 0 ? "" : i.length === 1 ? i[0] : i.join(`
|
|
432
305
|
`);
|
|
433
|
-
}, []),
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
};
|
|
444
|
-
}, [f, Y, C.defaultCsvExportParams]), tt = y(() => {
|
|
445
|
-
const e = C.defaultExcelExportParams ?? {};
|
|
446
|
-
return {
|
|
447
|
-
processCellCallback: Y,
|
|
448
|
-
...e,
|
|
449
|
-
...f && !("columnKeys" in e) ? {
|
|
450
|
-
get columnKeys() {
|
|
451
|
-
return V.current;
|
|
452
|
-
}
|
|
453
|
-
} : {}
|
|
454
|
-
};
|
|
455
|
-
}, [f, Y, C.defaultExcelExportParams]), nt = u(
|
|
456
|
-
(e) => {
|
|
457
|
-
v?.(e), !Se(P.current, L.current?.commentMode, e) && T.current?.onCellMouseOver(e);
|
|
458
|
-
},
|
|
459
|
-
[v]
|
|
460
|
-
), ot = u(
|
|
461
|
-
(e) => {
|
|
462
|
-
E?.(e), T.current?.onCellMouseOut(e);
|
|
463
|
-
},
|
|
464
|
-
[E]
|
|
465
|
-
), rt = u(
|
|
466
|
-
(e) => {
|
|
467
|
-
_?.(e);
|
|
468
|
-
const t = W.current, n = t ? St(t) : void 0;
|
|
469
|
-
if (n && e.column?.getColId() === n) {
|
|
470
|
-
B.current?.onCellClicked(e);
|
|
471
|
-
return;
|
|
472
|
-
}
|
|
473
|
-
Se(P.current, L.current?.commentMode, e) || T.current?.onCellClicked(e);
|
|
474
|
-
},
|
|
475
|
-
[_]
|
|
476
|
-
), lt = u(
|
|
477
|
-
(e) => {
|
|
478
|
-
const t = (G ? G(e) : e.defaultItems) ?? [];
|
|
479
|
-
let n = Array.isArray(t) ? t : [];
|
|
480
|
-
const l = L.current;
|
|
481
|
-
l && (n = ft({
|
|
482
|
-
items: n,
|
|
483
|
-
config: l,
|
|
484
|
-
address: e.node?.id && e.column ? { rowId: e.node.id, colId: e.column.getColId() } : void 0,
|
|
485
|
-
labels: {
|
|
486
|
-
addComment: b("comments.addComment"),
|
|
487
|
-
openComment: b("comments.openComment"),
|
|
488
|
-
deleteThread: b("comments.deleteThread")
|
|
489
|
-
},
|
|
490
|
-
onAdd: (o) => T.current?.openAt(o, "composer"),
|
|
491
|
-
onOpen: (o) => T.current?.openAt(o, "expanded"),
|
|
492
|
-
onDeleteThread: (o) => T.current?.openAt(o, "expanded"),
|
|
493
|
-
preserveNativeNoteItems: S
|
|
494
|
-
}));
|
|
495
|
-
const r = W.current;
|
|
496
|
-
return r && (n = ht({
|
|
497
|
-
items: n,
|
|
498
|
-
config: r,
|
|
499
|
-
rowId: e.node?.id ?? void 0,
|
|
500
|
-
openLabel: b("chat.openChat"),
|
|
501
|
-
onOpen: (o) => B.current?.openRow(o)
|
|
502
|
-
})), n;
|
|
503
|
-
},
|
|
504
|
-
[S, b, G]
|
|
505
|
-
);
|
|
506
|
-
return /* @__PURE__ */ xe(Gt.Provider, { value: Z, children: [
|
|
507
|
-
/* @__PURE__ */ xe(
|
|
508
|
-
"div",
|
|
306
|
+
}, []), he = f(() => ({
|
|
307
|
+
processCellCallback: E,
|
|
308
|
+
...C.defaultCsvExportParams ?? {}
|
|
309
|
+
}), [E, C.defaultCsvExportParams]), Ce = f(() => ({
|
|
310
|
+
processCellCallback: E,
|
|
311
|
+
...C.defaultExcelExportParams ?? {}
|
|
312
|
+
}), [E, C.defaultExcelExportParams]);
|
|
313
|
+
return /* @__PURE__ */ ye(Ie.Provider, { value: P, children: [
|
|
314
|
+
/* @__PURE__ */ F("div", { ref: j, "data-component": "ag-grid-react", style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ F(
|
|
315
|
+
Ge,
|
|
509
316
|
{
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
suppressFocusAfterRefresh: !0,
|
|
541
|
-
suppressGroupRowsSticky: !0,
|
|
542
|
-
hidePaddedHeaderRows: !0,
|
|
543
|
-
suppressServerSideFullWidthLoadingRow: !0,
|
|
544
|
-
columnTypes: Ke,
|
|
545
|
-
autoSizeStrategy: ce,
|
|
546
|
-
...C,
|
|
547
|
-
context: Q,
|
|
548
|
-
components: Be,
|
|
549
|
-
defaultCsvExportParams: et,
|
|
550
|
-
defaultExcelExportParams: tt,
|
|
551
|
-
getMainMenuItems: Oe,
|
|
552
|
-
...I || f ? {
|
|
553
|
-
...I ? {
|
|
554
|
-
onCellMouseOver: nt,
|
|
555
|
-
onCellMouseOut: ot
|
|
556
|
-
} : {
|
|
557
|
-
...v ? { onCellMouseOver: v } : {},
|
|
558
|
-
...E ? { onCellMouseOut: E } : {}
|
|
559
|
-
},
|
|
560
|
-
onCellClicked: rt,
|
|
561
|
-
getContextMenuItems: lt
|
|
562
|
-
} : {
|
|
563
|
-
...v ? { onCellMouseOver: v } : {},
|
|
564
|
-
...E ? { onCellMouseOut: E } : {},
|
|
565
|
-
..._ ? { onCellClicked: _ } : {},
|
|
566
|
-
...G ? { getContextMenuItems: G } : {}
|
|
567
|
-
},
|
|
568
|
-
...S ? { notesDataSource: Le } : {}
|
|
569
|
-
}
|
|
570
|
-
),
|
|
571
|
-
j ? /* @__PURE__ */ R(le, { fallback: null, children: /* @__PURE__ */ R(Pt, { ref: T, comments: j, gridApi: x, containerRef: H }) }) : null,
|
|
572
|
-
p ? /* @__PURE__ */ R(le, { fallback: null, children: /* @__PURE__ */ R(Wt, { ref: B, chat: p, gridApi: x, containerRef: H }) }) : null
|
|
573
|
-
]
|
|
317
|
+
theme: ee ?? Me,
|
|
318
|
+
defaultColDef: ue,
|
|
319
|
+
columnDefs: de,
|
|
320
|
+
cellSelection: !0,
|
|
321
|
+
defaultColGroupDef: D,
|
|
322
|
+
onGridReady: le,
|
|
323
|
+
onGridPreDestroyed: ie,
|
|
324
|
+
onFilterChanged: se,
|
|
325
|
+
onSelectionChanged: ce,
|
|
326
|
+
onModelUpdated: ae,
|
|
327
|
+
tooltipShowMode: k,
|
|
328
|
+
tooltipShowDelay: I,
|
|
329
|
+
tooltipHideDelay: Y,
|
|
330
|
+
tooltipInteraction: Z,
|
|
331
|
+
processCellForClipboard: me,
|
|
332
|
+
processCellFromClipboard: fe,
|
|
333
|
+
sendToClipboard: ge,
|
|
334
|
+
ensureDomOrder: T,
|
|
335
|
+
suppressHeaderFocus: !1,
|
|
336
|
+
suppressFocusAfterRefresh: !0,
|
|
337
|
+
suppressGroupRowsSticky: !0,
|
|
338
|
+
hidePaddedHeaderRows: !0,
|
|
339
|
+
suppressServerSideFullWidthLoadingRow: !0,
|
|
340
|
+
columnTypes: oe,
|
|
341
|
+
autoSizeStrategy: w,
|
|
342
|
+
...C,
|
|
343
|
+
components: pe,
|
|
344
|
+
defaultCsvExportParams: he,
|
|
345
|
+
defaultExcelExportParams: Ce,
|
|
346
|
+
getMainMenuItems: ne
|
|
574
347
|
}
|
|
575
|
-
),
|
|
576
|
-
|
|
577
|
-
/* @__PURE__ */
|
|
578
|
-
|
|
348
|
+
) }),
|
|
349
|
+
s,
|
|
350
|
+
/* @__PURE__ */ F(
|
|
351
|
+
We,
|
|
579
352
|
{
|
|
580
|
-
isOpen:
|
|
581
|
-
columnId:
|
|
582
|
-
gridApi:
|
|
583
|
-
onClose:
|
|
584
|
-
onApply:
|
|
353
|
+
isOpen: te,
|
|
354
|
+
columnId: re,
|
|
355
|
+
gridApi: W,
|
|
356
|
+
onClose: P.closeAdvancedFilter,
|
|
357
|
+
onApply: P.applyAdvancedFilter
|
|
585
358
|
}
|
|
586
359
|
)
|
|
587
360
|
] });
|
|
588
361
|
}
|
|
589
|
-
function
|
|
590
|
-
isOpen:
|
|
591
|
-
columnId:
|
|
592
|
-
gridApi:
|
|
593
|
-
onClose:
|
|
594
|
-
onApply:
|
|
362
|
+
function We({
|
|
363
|
+
isOpen: s,
|
|
364
|
+
columnId: o,
|
|
365
|
+
gridApi: l,
|
|
366
|
+
onClose: y,
|
|
367
|
+
onApply: g
|
|
595
368
|
}) {
|
|
596
|
-
if (!
|
|
597
|
-
const
|
|
598
|
-
if (!
|
|
599
|
-
const
|
|
600
|
-
return /* @__PURE__ */
|
|
601
|
-
|
|
369
|
+
if (!s || !o || !l) return null;
|
|
370
|
+
const a = l.getColumn(o);
|
|
371
|
+
if (!a) return null;
|
|
372
|
+
const u = a.getColDef(), b = u.headerComponentParams, h = Pe(u), A = h.text !== -1 || h.number !== -1 || h.date !== -1, T = h.set !== -1, k = u.filter === "agMultiColumnFilter" && (A || T) ? "multi" : u.filter === "agNumberColumnFilter" ? "number" : u.filter === "agDateColumnFilter" ? "date" : u.filter === "agSetColumnFilter" || b?.selectOptions ? "select" : "text", I = De(l.getFilterModel());
|
|
373
|
+
return /* @__PURE__ */ F(Se, { fallback: null, children: /* @__PURE__ */ F(
|
|
374
|
+
Ne,
|
|
602
375
|
{
|
|
603
|
-
isOpen:
|
|
604
|
-
onClose:
|
|
605
|
-
onApply:
|
|
606
|
-
columnId:
|
|
607
|
-
columnLabel:
|
|
608
|
-
columnType:
|
|
609
|
-
selectOptions:
|
|
610
|
-
isMultiSelect:
|
|
611
|
-
initialModel:
|
|
612
|
-
api:
|
|
376
|
+
isOpen: s,
|
|
377
|
+
onClose: y,
|
|
378
|
+
onApply: g,
|
|
379
|
+
columnId: o,
|
|
380
|
+
columnLabel: u.headerName || o,
|
|
381
|
+
columnType: k,
|
|
382
|
+
selectOptions: b?.selectOptions,
|
|
383
|
+
isMultiSelect: b?.isMultiSelect,
|
|
384
|
+
initialModel: I,
|
|
385
|
+
api: l
|
|
613
386
|
}
|
|
614
387
|
) });
|
|
615
388
|
}
|
|
616
389
|
export {
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
390
|
+
lt as AgGridWrapper,
|
|
391
|
+
mt as isAgGridHeaderLabelTooltipOverflowing,
|
|
392
|
+
ft as isAgGridTextOverflowing,
|
|
393
|
+
ct as subscribeGridApiEvent,
|
|
394
|
+
at as subscribeGridApiEvents,
|
|
395
|
+
dt as useAgGridTruncationTooltip
|
|
623
396
|
};
|