impact-nova 3.0.0-alpha.2 → 3.0.0-alpha.20
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 +1 -1
- package/dist/_virtual/index.js +4 -4
- package/dist/_virtual/index2.js +4 -4
- package/dist/components/data/ag-grid-react/ag-grid-list.d.ts +3 -1
- package/dist/components/data/ag-grid-react/ag-grid-list.demo-board.d.ts +46 -0
- package/dist/components/data/ag-grid-react/ag-grid-list.js +9 -8
- package/dist/components/data/ag-grid-react/ag-grid-list.key-attributes.d.ts +1 -0
- package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +65 -3
- package/dist/components/data/ag-grid-react/build-list-drag-column-defs.d.ts +8 -0
- package/dist/components/data/ag-grid-react/build-list-drag-column-defs.js +28 -0
- package/dist/components/data/ag-grid-react/cell-renderers/badge-cell-renderer.d.ts +2 -0
- package/dist/components/data/ag-grid-react/cell-renderers/badge-cell-renderer.js +15 -14
- package/dist/components/data/ag-grid-react/cell-renderers/badge-icon-registry.d.ts +10 -0
- package/dist/components/data/ag-grid-react/cell-renderers/badge-icon-registry.js +17 -0
- package/dist/components/data/ag-grid-react/cell-renderers/drag-handle-cell-renderer.d.ts +18 -0
- package/dist/components/data/ag-grid-react/cell-renderers/drag-handle-cell-renderer.js +32 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +71 -46
- package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +48 -45
- package/dist/components/data/ag-grid-react/cell-renderers/index.d.ts +45 -7
- package/dist/components/data/ag-grid-react/cell-renderers/index.js +70 -58
- package/dist/components/data/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +88 -76
- package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +31 -33
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +18 -17
- package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.d.ts +5 -11
- package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.js +127 -51
- package/dist/components/data/ag-grid-react/editable-utils.d.ts +9 -1
- package/dist/components/data/ag-grid-react/editable-utils.js +46 -41
- package/dist/components/data/ag-grid-react/headers/custom-header.js +110 -108
- package/dist/components/data/ag-grid-react/headers/header-search-input.js +203 -199
- package/dist/components/data/ag-grid-react/index.d.ts +6 -1
- package/dist/components/data/ag-grid-react/index.js +316 -248
- package/dist/components/data/ag-grid-react/list-drag-grid-options.d.ts +34 -0
- package/dist/components/data/ag-grid-react/list-drag-grid-options.js +110 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-card.d.ts +4 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-card.js +14 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-snapshot.d.ts +20 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-snapshot.js +42 -0
- package/dist/components/data/ag-grid-react/list-find-highlight.d.ts +6 -0
- package/dist/components/data/ag-grid-react/list-find-highlight.js +7 -0
- package/dist/components/data/ag-grid-react/list-row-move.d.ts +84 -0
- package/dist/components/data/ag-grid-react/list-row-move.js +74 -0
- package/dist/components/data/ag-grid-react/numeric-column-header-alignment.d.ts +9 -0
- package/dist/components/data/ag-grid-react/numeric-column-header-alignment.js +67 -0
- package/dist/components/data/ag-grid-react/process-backend-columndefs.d.ts +10 -2
- package/dist/components/data/ag-grid-react/process-backend-columndefs.js +84 -0
- package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.d.ts +67 -0
- package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.js +162 -0
- package/dist/components/data/ag-grid-react/use-list-drag-preview.d.ts +20 -0
- package/dist/components/data/ag-grid-react/use-list-drag-preview.js +148 -0
- package/dist/components/data/ag-grid-react/use-list-find.d.ts +36 -0
- package/dist/components/data/ag-grid-react/use-list-row-drop-zones.d.ts +46 -0
- package/dist/components/data/ag-grid-react/use-list-row-drop-zones.js +92 -0
- package/dist/components/data/data-table/build-column-tree-from-grid.js +15 -15
- package/dist/components/data/data-table/column-picker-authority.js +9 -9
- package/dist/components/data/data-table/data-table-column-apply.js +30 -29
- package/dist/components/data/data-table/data-table-column-tree-cache.js +62 -60
- package/dist/components/data/data-table/data-table-list-header.d.ts +7 -0
- package/dist/components/data/data-table/data-table-list-header.js +31 -0
- package/dist/components/data/data-table/data-table-overlay.d.ts +6 -0
- package/dist/components/data/data-table/data-table-overlay.js +18 -0
- package/dist/components/data/data-table/data-table-picker-column-eligibility.d.ts +3 -0
- package/dist/components/data/data-table/data-table-picker-column-eligibility.js +24 -4
- package/dist/components/data/data-table/data-table.js +35 -34
- package/dist/components/data/data-table/data-table.types.d.ts +13 -2
- package/dist/components/data/data-table/index.d.ts +10 -0
- package/dist/components/data/data-table/index.js +64 -52
- package/dist/components/data/data-table/use-data-table-viewport.d.ts +10 -0
- package/dist/components/data/data-table/use-data-table-viewport.js +31 -0
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +3 -2
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +3 -2
- package/dist/components/data/expandable-list-item/index.d.ts +2 -0
- package/dist/components/data/expandable-list-item/index.js +20 -16
- package/dist/components/data/expandable-list-item/product-card-hero.d.ts +15 -0
- package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.d.ts +8 -0
- package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.js +41 -0
- package/dist/components/data/expandable-list-item/product-card-metrics-toggle.d.ts +13 -0
- package/dist/components/data/expandable-list-item/product-card-metrics-toggle.js +27 -0
- package/dist/components/data/expandable-list-item/sku-picker-chrome.d.ts +40 -0
- package/dist/components/data/expandable-list-item/sku-picker-chrome.js +150 -0
- package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +2 -1
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +5 -4
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +3 -2
- package/dist/components/data/scenario-comparison/flatten-scenario-comparison-rows.d.ts +2 -0
- package/dist/components/data/scenario-comparison/flatten-scenario-comparison-rows.js +16 -0
- package/dist/components/data/scenario-comparison/index.d.ts +3 -0
- package/dist/components/data/scenario-comparison/index.js +6 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-column.d.ts +12 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-column.js +172 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-label.d.ts +6 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-label.js +64 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.d.ts +5 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.js +127 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.types.d.ts +56 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.variants.d.ts +7 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.variants.js +29 -0
- package/dist/components/data-display/badge/index.d.ts +2 -0
- package/dist/components/data-display/badge/index.js +4 -2
- package/dist/components/data-display/badge/trophy-icon.d.ts +6 -0
- package/dist/components/data-display/badge/trophy-icon.js +28 -0
- package/dist/components/data-display/chart/chart-scatter3d.d.ts +39 -0
- package/dist/components/data-display/chart/chart-scatter3d.js +180 -0
- package/dist/components/data-display/chart/chart.js +125 -112
- package/dist/components/data-display/chart/chart.utils.js +122 -92
- package/dist/components/data-display/stereo-scatter/index.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/index.js +10 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.d.ts +41 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.js +178 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.d.ts +14 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.js +29 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.d.ts +23 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.js +80 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine.d.ts +120 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine.js +519 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-math.d.ts +64 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-math.js +129 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-model.d.ts +37 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-model.js +71 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.d.ts +33 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.js +19 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.d.ts +4 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.js +19 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.js +75 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.js +149 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.d.ts +13 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.js +93 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.js +62 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.d.ts +3 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.js +41 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.d.ts +12 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.js +107 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.stories-data.d.ts +11 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.types.d.ts +69 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.d.ts +13 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.js +42 -0
- package/dist/components/feedback/find-bar/collect-find-matches.d.ts +35 -0
- package/dist/components/feedback/find-bar/collect-find-matches.js +68 -0
- package/dist/components/feedback/find-bar/find-bar-shortcuts.d.ts +5 -0
- package/dist/components/feedback/find-bar/find-bar-shortcuts.js +27 -0
- package/dist/components/feedback/find-bar/find-bar.d.ts +7 -0
- package/dist/components/feedback/find-bar/find-bar.js +266 -0
- package/dist/components/feedback/find-bar/find-bar.types.d.ts +32 -0
- package/dist/components/feedback/find-bar/index.d.ts +4 -0
- package/dist/components/feedback/find-bar/index.js +11 -0
- package/dist/components/feedback/tooltip/button-icon-tooltip.d.ts +6 -1
- package/dist/components/feedback/tooltip/button-icon-tooltip.js +22 -17
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +3 -2
- package/dist/components/feedback/tooltip/use-overflow-tooltip.js +44 -36
- package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
- package/dist/components/flows/filter-panel/filter-panel.js +4 -4
- package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.d.ts +5 -0
- package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.js +73 -0
- package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.d.ts +5 -0
- package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.js +49 -0
- package/dist/components/flows/iris-chat/IrisChatSnapTile.d.ts +8 -0
- package/dist/components/flows/iris-chat/IrisChatSnapTile.js +30 -0
- package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.d.ts +3 -0
- package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.js +25 -0
- package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.d.ts +4 -0
- package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.js +113 -0
- package/dist/components/flows/iris-chat/index.d.ts +3 -1
- package/dist/components/flows/iris-chat/index.js +58 -53
- package/dist/components/flows/iris-chat/iris-chat-artifact.js +46 -36
- package/dist/components/flows/iris-chat/iris-chat-chrome.d.ts +39 -0
- package/dist/components/flows/iris-chat/iris-chat-chrome.js +311 -0
- package/dist/components/flows/iris-chat/iris-chat-close-animation.d.ts +12 -0
- package/dist/components/flows/iris-chat/iris-chat-close-animation.js +21 -0
- package/dist/components/flows/iris-chat/iris-chat-composer.js +291 -234
- package/dist/components/flows/iris-chat/iris-chat-context.d.ts +16 -0
- package/dist/components/flows/iris-chat/iris-chat-context.js +14 -10
- package/dist/components/flows/iris-chat/iris-chat-copy-feedback.d.ts +4 -0
- package/dist/components/flows/iris-chat/iris-chat-copy-feedback.js +16 -0
- package/dist/components/flows/iris-chat/iris-chat-frame.d.ts +32 -0
- package/dist/components/flows/iris-chat/iris-chat-frame.js +88 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +2 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.js +46 -20
- package/dist/components/flows/iris-chat/iris-chat-launch-animation.d.ts +11 -0
- package/dist/components/flows/iris-chat/iris-chat-launch-animation.js +35 -0
- package/dist/components/flows/iris-chat/iris-chat-markdown.js +82 -42
- package/dist/components/flows/iris-chat/iris-chat-menu.js +149 -117
- package/dist/components/flows/iris-chat/iris-chat-snap-presets.d.ts +7 -0
- package/dist/components/flows/iris-chat/iris-chat-snap-presets.js +83 -0
- package/dist/components/flows/iris-chat/iris-chat-speech.d.ts +52 -0
- package/dist/components/flows/iris-chat/iris-chat-speech.js +121 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +4 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.js +277 -220
- package/dist/components/flows/iris-chat/iris-chat-window-chrome.d.ts +33 -0
- package/dist/components/flows/iris-chat/iris-chat-window-chrome.js +37 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.d.ts +14 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.js +15 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry.d.ts +12 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry.js +113 -0
- package/dist/components/flows/iris-chat/iris-chat-window-handles.d.ts +6 -0
- package/dist/components/flows/iris-chat/iris-chat-window-handles.js +50 -0
- package/dist/components/flows/iris-chat/iris-chat-window-shell.d.ts +8 -0
- package/dist/components/flows/iris-chat/iris-chat-window-shell.js +37 -0
- package/dist/components/flows/iris-chat/iris-chat.d.ts +3 -39
- package/dist/components/flows/iris-chat/iris-chat.js +22 -330
- package/dist/components/flows/iris-chat/iris-chat.types.d.ts +20 -0
- package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +4 -3
- package/dist/components/flows/iris-chat/iris-chat.variants.js +45 -22
- package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.d.ts +6 -0
- package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.js +23 -0
- package/dist/components/flows/iris-chat/use-iris-chat-root.d.ts +29 -0
- package/dist/components/flows/iris-chat/use-iris-chat-root.js +162 -0
- package/dist/components/forms/choice-card/choice-card-compare-scroll.d.ts +4 -0
- package/dist/components/forms/choice-card/choice-card-compare-scroll.js +6 -0
- package/dist/components/forms/choice-card/choice-card-percent.js +82 -51
- package/dist/components/forms/choice-card/choice-card.d.ts +14 -2
- package/dist/components/forms/choice-card/choice-card.js +470 -381
- package/dist/components/forms/choice-card/choice-card.types.d.ts +9 -2
- package/dist/components/forms/choice-card/choice-card.variants.js +24 -3
- package/dist/components/forms/input/input.js +5 -5
- package/dist/components/forms/select/components/SelectMenuPanel.js +15 -15
- package/dist/components/forms/select/components/SelectTriggerValue.js +3 -2
- package/dist/components/forms/select/components/Submenu.js +3 -2
- package/dist/components/layout/header/header.js +1 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.d.ts +3 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.js +12 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller.js +181 -125
- package/dist/components/layout/horizontal-scroller/horizontal-scroller.types.d.ts +2 -0
- package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.d.ts +3 -1
- package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.js +77 -67
- package/dist/components/primitives/button/button.variants.js +1 -1
- package/dist/components/primitives/iris/iris-insight-truncated-text.d.ts +3 -0
- package/dist/components/primitives/iris/iris-insight-truncated-text.js +33 -0
- package/dist/components/primitives/iris/iris.d.ts +3 -1
- package/dist/components/primitives/iris/iris.js +85 -91
- package/dist/components/primitives/iris/iris.types.d.ts +9 -0
- package/dist/components/primitives/stepper/internals/step-model.d.ts +1 -1
- package/dist/components/primitives/stepper/internals/step-model.js +5 -5
- package/dist/components/primitives/stepper/internals/stepper-compact.js +13 -13
- package/dist/components/primitives/stepper/internals/stepper-pipeline.js +6 -6
- package/dist/components/primitives/stepper/internals/stepper-rail.js +15 -15
- package/dist/components/primitives/stepper/internals/stepper-summary.js +7 -7
- package/dist/components/primitives/stepper/internals/stepper-track.js +2 -2
- package/dist/components/primitives/stepper/stepper.js +99 -97
- package/dist/components/primitives/stepper/stepper.types.d.ts +4 -0
- package/dist/components/primitives/tabs/folder-tab-path.d.ts +6 -0
- package/dist/components/primitives/tabs/folder-tab-path.js +16 -0
- package/dist/components/primitives/tabs/tabs.js +178 -112
- package/dist/components/primitives/tabs/tabs.types.d.ts +1 -1
- package/dist/form-react/Fields/SelectField.js +66 -57
- package/dist/form-react/Fields/VirtualizedListField.d.ts +3 -0
- package/dist/form-react/Fields/VirtualizedListField.js +223 -0
- package/dist/form-react/fields.d.ts +1 -0
- package/dist/form-react/fields.js +28 -26
- package/dist/form-react/index.d.ts +1 -1
- package/dist/form-react/registry/defaultFieldRegistrations.d.ts +1 -1
- package/dist/form-react/registry/defaultFieldRegistrations.js +13 -12
- package/dist/form-react/types/fields.types.d.ts +48 -1
- package/dist/form-react/types/fieldsOutput.types.d.ts +4 -1
- package/dist/form-react/types/reactHookForm.types.d.ts +18 -1
- package/dist/form-react/utils/fieldDefaults.utils.js +1 -1
- package/dist/i18n/defaultMessages.d.ts +69 -0
- package/dist/i18n/defaultMessages.js +107 -42
- package/dist/i18n/impact-nova-i18n-defaults.d.ts +5 -0
- package/dist/i18n/impact-nova-i18n-defaults.js +4 -9
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/locales/de.js +66 -1
- package/dist/i18n/locales/es.js +66 -1
- package/dist/i18n/locales/hi.js +66 -1
- package/dist/i18n/locales/kn.js +66 -1
- package/dist/impact-nova-components.css +372 -14
- package/dist/impact-nova-tokens.scss +4 -0
- package/dist/impact-nova.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +627 -601
- package/dist/lib/alphabetical-sort.d.ts +3 -0
- package/dist/lib/alphabetical-sort.js +13 -0
- package/dist/lib/guidance/engine/guidance-engine.js +26 -27
- package/dist/lib/guidance/engine/step-navigation.d.ts +1 -0
- package/dist/lib/guidance/engine/step-navigation.js +16 -9
- package/dist/lib/guidance/types/guidance.types.d.ts +9 -1
- package/dist/lib/virtualized/index.d.ts +2 -0
- package/dist/lib/virtualized/index.js +35 -31
- package/dist/lib/virtualized/list-index.d.ts +5 -0
- package/dist/lib/virtualized/list-index.js +13 -0
- package/dist/lib/virtualized/read-infinite-query-list.d.ts +14 -0
- package/dist/lib/virtualized/read-infinite-query-list.js +12 -0
- package/dist/lib/virtualized/types.d.ts +4 -2
- package/dist/lib/virtualized/useRowState.js +60 -56
- package/dist/lib/virtualized/useVirtualizedList.d.ts +5 -0
- package/dist/llms/rules/ag-grid.js +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/real-world-patterns.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/tailwind.config.js +3 -0
- package/dist/theme/tailwind-colors.js +3 -0
- package/package.json +23 -4
|
@@ -1,256 +1,282 @@
|
|
|
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 {
|
|
1
|
+
import { jsxs as We, jsx as G } from "react/jsx-runtime";
|
|
2
|
+
import { lazy as Ke, useRef as V, useState as W, useId as $e, useEffect as K, useCallback as m, useMemo as g, Suspense as Ue } from "react";
|
|
3
|
+
import { ModuleRegistry as ze, AllCommunityModule as qe } from "ag-grid-community";
|
|
4
|
+
import { AllEnterpriseModule as Xe } from "ag-grid-enterprise";
|
|
5
|
+
import { AgGridReact as Je } from "ag-grid-react";
|
|
6
|
+
import { useAgGridDragList as Ze } from "./use-ag-grid-list-drag.js";
|
|
7
|
+
import { customAgGridTheme as Be } from "./theme.js";
|
|
8
|
+
import { AG_GRID_LIST_ROW_HEIGHT_PX as Qe, customAgGridListTheme as Ye } from "./ag-grid-list.js";
|
|
9
|
+
import { AG_GRID_LIST_RANK_GRADIENT as Pt } from "./ag-grid-list.js";
|
|
10
|
+
import { syncAgGridThemeMode as et } from "./sync-ag-grid-theme-mode.js";
|
|
11
|
+
import { CustomHeader as tt } from "./headers/custom-header.js";
|
|
12
|
+
import { CustomHeaderGroup as Y } from "./headers/custom-inner-header-group.js";
|
|
13
|
+
import { mergeColumnGroupDefsWithDefault as rt } from "./merge-column-group-defs.js";
|
|
14
|
+
import { DefaultTextCellRenderer as ot } from "./cell-renderers/default-text-cell-renderer.js";
|
|
15
|
+
import { GridHeaderContext as nt } from "./headers/context/grid-header-context.js";
|
|
16
|
+
import { convertToAgGridFilterModel as it, getMultiFilterIndices as lt, convertFromAgGridFilterModel as st } from "./headers/utils/filter-utils.js";
|
|
17
|
+
import { AG_GRID_VALUE_FORMATTERS as at } from "./value-formatters.js";
|
|
18
|
+
import { useGridAutoSizeStrategyOnResize as ct } from "./useGridAutoSizeStrategyOnResize.js";
|
|
19
|
+
import { subscribeGridApiEvent as Vt, subscribeGridApiEvents as Wt } from "./grid-api-event-subscription.js";
|
|
20
|
+
import { notifyColumnIndicatorSync as I } from "./notify-column-indicator-sync.js";
|
|
21
|
+
import { setActiveSearchColumnId as $, clearHeaderSearchActiveState as ut } from "./headers/header-search-active-state.js";
|
|
20
22
|
/* empty css */
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
|
|
23
|
+
import { readNumericColumnTypeConfig as dt, normalizeColumnDefsNumericHeaderAlignment as pt } from "./numeric-column-header-alignment.js";
|
|
24
|
+
import { useAgGridTruncationTooltip as $t } from "./use-ag-grid-truncation-tooltip.js";
|
|
25
|
+
import { useListRowDropZones as zt } from "./use-list-row-drop-zones.js";
|
|
26
|
+
import { isAgGridHeaderLabelTooltipOverflowing as Xt, isAgGridTextOverflowing as Jt } from "./ag-grid-tooltip-overflow.js";
|
|
27
|
+
const ft = Ke(
|
|
24
28
|
() => import("./headers/advanced-filter/advanced-filter-dialog.js").then((c) => ({
|
|
25
29
|
default: c.AdvancedFilterDialog
|
|
26
30
|
}))
|
|
27
31
|
);
|
|
28
|
-
|
|
29
|
-
const
|
|
32
|
+
ze.registerModules([qe, Xe]);
|
|
33
|
+
const R = "", U = "", ee = (c) => {
|
|
30
34
|
if (!c) return;
|
|
31
|
-
const
|
|
32
|
-
if (Array.isArray(
|
|
35
|
+
const o = c.cellRendererParams?.splits;
|
|
36
|
+
if (Array.isArray(o) && o.length > 0) return o;
|
|
33
37
|
const s = c.cellEditorParams?.splits;
|
|
34
38
|
if (Array.isArray(s) && s.length > 0) return s;
|
|
35
|
-
},
|
|
39
|
+
}, te = (c, o) => {
|
|
36
40
|
const s = [];
|
|
37
|
-
for (const
|
|
38
|
-
const
|
|
39
|
-
if (!
|
|
41
|
+
for (const C of o) {
|
|
42
|
+
const y = C?.field?.split(".").pop();
|
|
43
|
+
if (!y) {
|
|
40
44
|
s.push("");
|
|
41
45
|
continue;
|
|
42
46
|
}
|
|
43
|
-
const
|
|
44
|
-
if (
|
|
47
|
+
const d = c[y];
|
|
48
|
+
if (d == null) {
|
|
45
49
|
s.push("");
|
|
46
50
|
continue;
|
|
47
51
|
}
|
|
48
|
-
if (typeof
|
|
49
|
-
const
|
|
50
|
-
s.push(
|
|
52
|
+
if (typeof d == "object" && "value" in d) {
|
|
53
|
+
const p = d.value;
|
|
54
|
+
s.push(p == null ? "" : String(p));
|
|
51
55
|
continue;
|
|
52
56
|
}
|
|
53
|
-
if (typeof
|
|
54
|
-
s.push(String(
|
|
57
|
+
if (typeof d != "object") {
|
|
58
|
+
s.push(String(d));
|
|
55
59
|
continue;
|
|
56
60
|
}
|
|
57
61
|
s.push("");
|
|
58
62
|
}
|
|
59
63
|
return s;
|
|
60
|
-
},
|
|
64
|
+
}, re = (c) => {
|
|
61
65
|
if (typeof navigator < "u" && navigator.clipboard?.writeText) {
|
|
62
|
-
navigator.clipboard.writeText(c).catch(() =>
|
|
66
|
+
navigator.clipboard.writeText(c).catch(() => oe(c));
|
|
63
67
|
return;
|
|
64
68
|
}
|
|
65
|
-
|
|
66
|
-
},
|
|
69
|
+
oe(c);
|
|
70
|
+
}, oe = (c) => {
|
|
67
71
|
if (typeof document > "u") return;
|
|
68
|
-
const
|
|
69
|
-
|
|
72
|
+
const o = document.createElement("textarea");
|
|
73
|
+
o.value = c, 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);
|
|
70
74
|
try {
|
|
71
|
-
|
|
75
|
+
o.select(), document.execCommand("copy");
|
|
72
76
|
} finally {
|
|
73
|
-
document.body.removeChild(
|
|
77
|
+
document.body.removeChild(o);
|
|
74
78
|
}
|
|
75
79
|
};
|
|
76
|
-
function
|
|
80
|
+
function Ot({
|
|
77
81
|
children: c,
|
|
78
|
-
defaultColDef:
|
|
82
|
+
defaultColDef: o,
|
|
79
83
|
defaultColGroupDef: s,
|
|
80
|
-
columnDefs:
|
|
81
|
-
valueFormatters:
|
|
82
|
-
onGridReady:
|
|
83
|
-
onGridPreDestroyed:
|
|
84
|
-
onFilterChanged:
|
|
85
|
-
onSelectionChanged:
|
|
86
|
-
onModelUpdated:
|
|
87
|
-
ensureDomOrder:
|
|
88
|
-
autoSizeStrategy:
|
|
89
|
-
tooltipShowMode:
|
|
90
|
-
tooltipShowDelay:
|
|
91
|
-
tooltipHideDelay:
|
|
92
|
-
tooltipInteraction:
|
|
93
|
-
themeOverride:
|
|
94
|
-
variant:
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
84
|
+
columnDefs: C,
|
|
85
|
+
valueFormatters: y,
|
|
86
|
+
onGridReady: d,
|
|
87
|
+
onGridPreDestroyed: p,
|
|
88
|
+
onFilterChanged: w,
|
|
89
|
+
onSelectionChanged: x,
|
|
90
|
+
onModelUpdated: D,
|
|
91
|
+
ensureDomOrder: L = !1,
|
|
92
|
+
autoSizeStrategy: k,
|
|
93
|
+
tooltipShowMode: j = "whenTruncated",
|
|
94
|
+
tooltipShowDelay: O = 500,
|
|
95
|
+
tooltipHideDelay: ne = 5e3,
|
|
96
|
+
tooltipInteraction: ie = !0,
|
|
97
|
+
themeOverride: le,
|
|
98
|
+
variant: z = "table",
|
|
99
|
+
listRowGradient: se,
|
|
100
|
+
listDragPreview: ae,
|
|
101
|
+
listHeader: ce = "columns",
|
|
102
|
+
onRowReorder: ue,
|
|
103
|
+
onRowMoveBeyondEdge: de,
|
|
104
|
+
isRowDragDisabled: pe,
|
|
105
|
+
getRowDragHandleLabel: fe,
|
|
106
|
+
canDropRow: me,
|
|
107
|
+
rowLoading: ge = !1,
|
|
108
|
+
numericColumnHeaderAlignment: h = "right",
|
|
109
|
+
className: q,
|
|
110
|
+
...a
|
|
98
111
|
}) {
|
|
99
|
-
const
|
|
100
|
-
|
|
112
|
+
const u = V(null), E = V(null), [b, X] = W(null), J = $e(), S = V(J);
|
|
113
|
+
S.current = J, ct(b, E, k), K(() => {
|
|
101
114
|
const e = document.documentElement, t = () => {
|
|
102
|
-
|
|
115
|
+
et(e.classList.contains("dark") ? "dark" : "light", e);
|
|
103
116
|
};
|
|
104
117
|
t();
|
|
105
|
-
const
|
|
106
|
-
return
|
|
118
|
+
const n = new MutationObserver(t);
|
|
119
|
+
return n.observe(e, { attributes: !0, attributeFilter: ["class"] }), () => n.disconnect();
|
|
107
120
|
}, []);
|
|
108
|
-
const [
|
|
121
|
+
const [he, Z] = W(!1), [ve, B] = W(null), Ce = m(() => [], []), F = g(
|
|
122
|
+
() => dt(h),
|
|
123
|
+
[h]
|
|
124
|
+
), ye = g(() => ({
|
|
109
125
|
numericColumn: {
|
|
110
|
-
|
|
111
|
-
headerClass: "ag-right-aligned-header",
|
|
112
|
-
filter: "agNumberColumnFilter"
|
|
126
|
+
...F
|
|
113
127
|
},
|
|
114
128
|
currency: {
|
|
115
|
-
|
|
116
|
-
headerClass: "ag-right-aligned-header",
|
|
117
|
-
filter: "agNumberColumnFilter",
|
|
129
|
+
...F,
|
|
118
130
|
valueFormatter: (e) => e.value != null ? `$${Number(e.value).toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}` : ""
|
|
119
131
|
},
|
|
120
132
|
percentage: {
|
|
121
|
-
|
|
122
|
-
headerClass: "ag-right-aligned-header",
|
|
123
|
-
filter: "agNumberColumnFilter",
|
|
133
|
+
...F,
|
|
124
134
|
valueFormatter: (e) => e.value != null ? `${Number(e.value).toFixed(2)}%` : ""
|
|
125
135
|
},
|
|
126
136
|
dateColumn: {
|
|
127
137
|
filter: "agDateColumnFilter"
|
|
128
138
|
}
|
|
129
|
-
}), []),
|
|
130
|
-
gridScopeId:
|
|
139
|
+
}), [F]), H = g(() => ({
|
|
140
|
+
gridScopeId: S.current,
|
|
131
141
|
openSearch: (e) => {
|
|
132
|
-
if (!
|
|
133
|
-
const t =
|
|
134
|
-
|
|
142
|
+
if (!u.current) return;
|
|
143
|
+
const t = u.current.getGridOption("context") || {};
|
|
144
|
+
u.current.setGridOption("context", { ...t, activeSearchColumnId: e }), $(S.current, e), I(u.current);
|
|
135
145
|
},
|
|
136
146
|
closeSearch: () => {
|
|
137
|
-
if (!
|
|
138
|
-
const e =
|
|
139
|
-
|
|
147
|
+
if (!u.current) return;
|
|
148
|
+
const e = u.current.getGridOption("context") || {};
|
|
149
|
+
u.current.setGridOption("context", { ...e, activeSearchColumnId: null }), $(S.current, null), I(u.current);
|
|
140
150
|
},
|
|
141
151
|
openAdvancedFilter: (e) => {
|
|
142
|
-
|
|
152
|
+
B(e || null), Z(!0);
|
|
143
153
|
},
|
|
144
154
|
closeAdvancedFilter: () => {
|
|
145
|
-
|
|
155
|
+
Z(!1), B(null);
|
|
146
156
|
},
|
|
147
157
|
applyAdvancedFilter: (e) => {
|
|
148
|
-
if (!
|
|
149
|
-
const t =
|
|
150
|
-
|
|
158
|
+
if (!u.current) return;
|
|
159
|
+
const t = it(e);
|
|
160
|
+
u.current.setFilterModel(t), u.current.onFilterChanged(), I(u.current);
|
|
151
161
|
}
|
|
152
|
-
}), []),
|
|
153
|
-
|
|
162
|
+
}), []), xe = m((e) => {
|
|
163
|
+
u.current = e.api, X(e.api);
|
|
154
164
|
const t = e.api.getGridOption("context") || {};
|
|
155
165
|
e.api.setGridOption("context", {
|
|
156
166
|
...t,
|
|
157
167
|
activeSearchColumnId: null,
|
|
158
|
-
headerSearchScopeId:
|
|
159
|
-
|
|
160
|
-
|
|
168
|
+
headerSearchScopeId: S.current,
|
|
169
|
+
numericColumnHeaderAlignment: h
|
|
170
|
+
}), $(S.current, null), d && d(e);
|
|
171
|
+
}, [h, d]);
|
|
172
|
+
K(() => {
|
|
173
|
+
if (!b) return;
|
|
174
|
+
const e = b.getGridOption("context") || {};
|
|
175
|
+
b.setGridOption("context", {
|
|
176
|
+
...e,
|
|
177
|
+
numericColumnHeaderAlignment: h
|
|
178
|
+
}), b.refreshHeader();
|
|
179
|
+
}, [b, h]);
|
|
180
|
+
const be = m(
|
|
161
181
|
(e) => {
|
|
162
|
-
|
|
182
|
+
ut(S.current), u.current = null, X(null), p?.(e);
|
|
163
183
|
},
|
|
164
|
-
[
|
|
165
|
-
),
|
|
184
|
+
[p]
|
|
185
|
+
), Se = m(
|
|
166
186
|
(e) => {
|
|
167
|
-
|
|
187
|
+
I(e.api), w?.(e);
|
|
168
188
|
},
|
|
169
|
-
[
|
|
170
|
-
),
|
|
189
|
+
[w]
|
|
190
|
+
), we = m(
|
|
171
191
|
(e) => {
|
|
172
|
-
|
|
192
|
+
x?.(e);
|
|
173
193
|
},
|
|
174
|
-
[
|
|
175
|
-
),
|
|
194
|
+
[x]
|
|
195
|
+
), Re = m(
|
|
176
196
|
(e) => {
|
|
177
|
-
|
|
197
|
+
D?.(e);
|
|
178
198
|
},
|
|
179
|
-
[
|
|
199
|
+
[D]
|
|
180
200
|
);
|
|
181
|
-
|
|
182
|
-
const e =
|
|
201
|
+
K(() => {
|
|
202
|
+
const e = E.current;
|
|
183
203
|
if (!e) return;
|
|
184
|
-
const t = (
|
|
185
|
-
if (
|
|
186
|
-
const
|
|
187
|
-
if (!
|
|
188
|
-
const r =
|
|
204
|
+
const t = (n) => {
|
|
205
|
+
if (n.key !== "Enter" && n.key !== " ") return;
|
|
206
|
+
const l = n.target;
|
|
207
|
+
if (!l.classList.contains("ag-cell") && !l.classList.contains("ag-header-cell")) return;
|
|
208
|
+
const r = l.querySelector(
|
|
189
209
|
'button, [role="checkbox"], [role="switch"], [role="combobox"], [role="button"], [role="link"], a, input, select, textarea, .cursor-pointer'
|
|
190
210
|
);
|
|
191
|
-
r && (
|
|
211
|
+
r && (n.preventDefault(), n.stopPropagation(), r.click(), r.focus());
|
|
192
212
|
};
|
|
193
213
|
return e.addEventListener("keydown", t, !0), () => e.removeEventListener("keydown", t, !0);
|
|
194
214
|
}, []);
|
|
195
|
-
const
|
|
196
|
-
headerComponent:
|
|
215
|
+
const Ge = g(() => ({
|
|
216
|
+
headerComponent: tt,
|
|
197
217
|
// Default cell renderer wraps text in a span so display:flex centering
|
|
198
218
|
// and text-overflow:ellipsis both work (ellipsis doesn't work on
|
|
199
219
|
// anonymous flex text nodes, but works on flex child elements).
|
|
200
|
-
cellRenderer:
|
|
201
|
-
...
|
|
220
|
+
cellRenderer: ot,
|
|
221
|
+
...o,
|
|
202
222
|
suppressHeaderKeyboardEvent: (e) => {
|
|
203
|
-
const { event: t } = e,
|
|
204
|
-
if (
|
|
223
|
+
const { event: t } = e, n = t.target;
|
|
224
|
+
if (n.tagName === "INPUT" || n.tagName === "TEXTAREA")
|
|
205
225
|
return !(t.key === "Escape" || t.key === "Tab");
|
|
206
226
|
if (t.key === "Enter" || t.key === " ") {
|
|
207
|
-
const r =
|
|
227
|
+
const r = n.closest(".ag-header-cell");
|
|
208
228
|
if (r) {
|
|
209
|
-
const
|
|
210
|
-
if (
|
|
211
|
-
return t.preventDefault(),
|
|
229
|
+
const i = r.querySelector('[role="checkbox"], button, [role="switch"], input');
|
|
230
|
+
if (i)
|
|
231
|
+
return t.preventDefault(), i.click(), !0;
|
|
212
232
|
}
|
|
213
233
|
}
|
|
214
|
-
return
|
|
234
|
+
return o?.suppressHeaderKeyboardEvent?.(e) ?? !1;
|
|
215
235
|
},
|
|
216
236
|
headerComponentParams: {
|
|
217
|
-
...
|
|
237
|
+
...o?.headerComponentParams
|
|
218
238
|
}
|
|
219
|
-
}), [
|
|
239
|
+
}), [o]), _ = g(() => ({
|
|
220
240
|
...s,
|
|
221
241
|
headerGroupComponentParams: {
|
|
222
242
|
...s?.headerGroupComponentParams,
|
|
223
243
|
innerHeaderGroupComponent: s?.headerGroupComponentParams?.innerHeaderGroupComponent ?? "CustomInnerHeaderGroup"
|
|
224
244
|
}
|
|
225
|
-
}), [s]),
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
245
|
+
}), [s]), De = g(() => {
|
|
246
|
+
const e = rt(
|
|
247
|
+
C ?? void 0,
|
|
248
|
+
_
|
|
249
|
+
);
|
|
250
|
+
return pt(
|
|
251
|
+
e ?? void 0,
|
|
252
|
+
h
|
|
253
|
+
);
|
|
254
|
+
}, [C, _, h]), Ee = g(() => ({
|
|
255
|
+
...at,
|
|
230
256
|
// Always available - value formatters
|
|
231
|
-
CustomInnerHeaderGroup:
|
|
232
|
-
CustomHeaderGroup:
|
|
233
|
-
...
|
|
257
|
+
CustomInnerHeaderGroup: Y,
|
|
258
|
+
CustomHeaderGroup: Y,
|
|
259
|
+
...a.components,
|
|
234
260
|
// User components override
|
|
235
|
-
...
|
|
261
|
+
...y
|
|
236
262
|
// Optional custom formatters override defaults
|
|
237
|
-
}), [
|
|
263
|
+
}), [y, a.components]), Fe = m((e) => {
|
|
238
264
|
const t = e.value;
|
|
239
265
|
if (t != null && typeof t == "object") {
|
|
240
|
-
const
|
|
241
|
-
if (
|
|
242
|
-
const
|
|
243
|
-
if (
|
|
244
|
-
const P =
|
|
245
|
-
return
|
|
266
|
+
const l = ee(e.column?.getColDef());
|
|
267
|
+
if (l && l.length > 0) {
|
|
268
|
+
const i = te(t, l);
|
|
269
|
+
if (l.length === 1) {
|
|
270
|
+
const P = l[0]?.field?.split(".").pop(), v = P ? t[P] : void 0;
|
|
271
|
+
return v && typeof v == "object" && "value" in v ? v.value ?? "" : i[0];
|
|
246
272
|
}
|
|
247
|
-
return
|
|
273
|
+
return U + i.join(R);
|
|
248
274
|
}
|
|
249
|
-
const r = Object.entries(t).map(([,
|
|
250
|
-
return r.length === 0 ? "" : r.length === 1 ? r[0] : r.join(
|
|
275
|
+
const r = Object.entries(t).map(([, i]) => i && typeof i == "object" && "value" in i ? i.value : typeof i != "object" && typeof i < "u" ? i : null).filter((i) => i != null);
|
|
276
|
+
return r.length === 0 ? "" : r.length === 1 ? r[0] : r.join(R);
|
|
251
277
|
}
|
|
252
278
|
return t == null ? t : e.column?.getColDef()?.useValueFormatterForExport === !0 ? e.formatValue?.(t) ?? t : t;
|
|
253
|
-
}, []),
|
|
279
|
+
}, []), Ae = m((e) => {
|
|
254
280
|
if (typeof e.value == "string") {
|
|
255
281
|
const t = e.value.trim();
|
|
256
282
|
if (t.startsWith("{") || t.startsWith("["))
|
|
@@ -261,159 +287,201 @@ function ft({
|
|
|
261
287
|
}
|
|
262
288
|
}
|
|
263
289
|
return e.value;
|
|
264
|
-
}, []),
|
|
290
|
+
}, []), Te = m((e) => {
|
|
265
291
|
const t = e?.data ?? "";
|
|
266
|
-
if (!t.includes(
|
|
267
|
-
|
|
292
|
+
if (!t.includes(R) && !t.includes(U)) {
|
|
293
|
+
re(t);
|
|
268
294
|
return;
|
|
269
295
|
}
|
|
270
|
-
const
|
|
296
|
+
const n = [], l = t.split(`
|
|
271
297
|
`);
|
|
272
|
-
for (let r = 0; r <
|
|
273
|
-
const
|
|
274
|
-
if (
|
|
275
|
-
|
|
298
|
+
for (let r = 0; r < l.length; r++) {
|
|
299
|
+
const i = l[r];
|
|
300
|
+
if (i.length === 0 && r === l.length - 1) {
|
|
301
|
+
n.push("");
|
|
276
302
|
continue;
|
|
277
303
|
}
|
|
278
|
-
const
|
|
279
|
-
if (
|
|
280
|
-
|
|
304
|
+
const v = i.split(" ").map((f) => f.startsWith(U) ? { isSplit: !0, slots: f.slice(1).split(R) } : { isSplit: !1, slots: f.split(R) }), N = Math.max(1, ...v.map((f) => f.slots.length));
|
|
305
|
+
if (N === 1) {
|
|
306
|
+
n.push(v.map((f) => f.slots[0] ?? "").join(" "));
|
|
281
307
|
continue;
|
|
282
308
|
}
|
|
283
|
-
for (let
|
|
284
|
-
const
|
|
285
|
-
|
|
309
|
+
for (let f = 0; f < N; f++) {
|
|
310
|
+
const Ve = v.map((M) => !M.isSplit && M.slots.length === 1 ? M.slots[0] : M.slots[f] ?? "");
|
|
311
|
+
n.push(Ve.join(" "));
|
|
286
312
|
}
|
|
287
313
|
}
|
|
288
|
-
|
|
314
|
+
re(n.join(`
|
|
289
315
|
`));
|
|
290
|
-
}, []),
|
|
316
|
+
}, []), A = m((e) => {
|
|
291
317
|
const t = e.value;
|
|
292
318
|
if (t == null) return "";
|
|
293
319
|
if (typeof t != "object")
|
|
294
320
|
return e.column?.getColDef()?.useValueFormatterForExport === !0 ? String(e.formatValue?.(t) ?? t) : String(t);
|
|
295
|
-
const
|
|
296
|
-
if (
|
|
297
|
-
const r =
|
|
298
|
-
return
|
|
321
|
+
const n = ee(e.column?.getColDef());
|
|
322
|
+
if (n && n.length > 0) {
|
|
323
|
+
const r = te(t, n);
|
|
324
|
+
return n.length === 1 ? r[0] : r.join(`
|
|
299
325
|
`);
|
|
300
326
|
}
|
|
301
|
-
const
|
|
327
|
+
const l = [];
|
|
302
328
|
for (const r of Object.values(t)) {
|
|
303
329
|
if (r && typeof r == "object" && "value" in r) {
|
|
304
|
-
const
|
|
305
|
-
if (
|
|
306
|
-
|
|
330
|
+
const i = r.value;
|
|
331
|
+
if (i == null) continue;
|
|
332
|
+
l.push(String(i));
|
|
307
333
|
continue;
|
|
308
334
|
}
|
|
309
|
-
r != null && typeof r != "object" &&
|
|
335
|
+
r != null && typeof r != "object" && l.push(String(r));
|
|
310
336
|
}
|
|
311
|
-
return
|
|
337
|
+
return l.length === 0 ? "" : l.length === 1 ? l[0] : l.join(`
|
|
312
338
|
`);
|
|
313
|
-
}, []),
|
|
314
|
-
processCellCallback:
|
|
315
|
-
...
|
|
316
|
-
}), [
|
|
317
|
-
processCellCallback:
|
|
318
|
-
...
|
|
319
|
-
}), [
|
|
320
|
-
|
|
321
|
-
|
|
339
|
+
}, []), Me = g(() => ({
|
|
340
|
+
processCellCallback: A,
|
|
341
|
+
...a.defaultCsvExportParams ?? {}
|
|
342
|
+
}), [A, a.defaultCsvExportParams]), Ie = g(() => ({
|
|
343
|
+
processCellCallback: A,
|
|
344
|
+
...a.defaultExcelExportParams ?? {}
|
|
345
|
+
}), [A, a.defaultExcelExportParams]), {
|
|
346
|
+
isDragList: Le,
|
|
347
|
+
isListVariant: T,
|
|
348
|
+
hideColumnHeader: ke,
|
|
349
|
+
dragListColumnDefs: je,
|
|
350
|
+
dragListGridProps: Oe,
|
|
351
|
+
listHeaderGridProps: He,
|
|
352
|
+
dragPreviewPortal: _e,
|
|
353
|
+
liveRegion: Pe
|
|
354
|
+
} = Ze({
|
|
355
|
+
variant: z,
|
|
356
|
+
listHeader: ce,
|
|
357
|
+
columnDefs: C,
|
|
358
|
+
mergedColumnDefs: De,
|
|
359
|
+
listRowGradient: se,
|
|
360
|
+
listDragPreview: ae,
|
|
361
|
+
isRowDragDisabled: pe,
|
|
362
|
+
getRowDragHandleLabel: fe,
|
|
363
|
+
canDropRow: me,
|
|
364
|
+
onRowReorder: ue,
|
|
365
|
+
onRowMoveBeyondEdge: de,
|
|
366
|
+
getRowStyle: a.getRowStyle,
|
|
367
|
+
getRowId: a.getRowId,
|
|
368
|
+
rowData: a.rowData,
|
|
369
|
+
rowDragManaged: a.rowDragManaged,
|
|
370
|
+
rowDragText: a.rowDragText,
|
|
371
|
+
onRowDragEnter: a.onRowDragEnter,
|
|
372
|
+
onRowDragMove: a.onRowDragMove,
|
|
373
|
+
onRowDragLeave: a.onRowDragLeave,
|
|
374
|
+
onRowDragCancel: a.onRowDragCancel,
|
|
375
|
+
onRowDragEnd: a.onRowDragEnd,
|
|
376
|
+
gridContainerRef: E,
|
|
377
|
+
gridApiRef: u
|
|
378
|
+
}), Q = a.rowHeight ?? Qe, Ne = le ?? (T ? Ye : Be);
|
|
379
|
+
return /* @__PURE__ */ We(nt.Provider, { value: H, children: [
|
|
380
|
+
/* @__PURE__ */ G(
|
|
322
381
|
"div",
|
|
323
382
|
{
|
|
324
|
-
ref:
|
|
383
|
+
ref: E,
|
|
325
384
|
"data-component": "ag-grid-react",
|
|
326
|
-
"data-variant":
|
|
327
|
-
"data-
|
|
328
|
-
|
|
385
|
+
"data-variant": T ? "list" : z,
|
|
386
|
+
"data-list-drag": Le ? "true" : void 0,
|
|
387
|
+
"data-list-header": ke ? "none" : void 0,
|
|
388
|
+
"data-row-loading": ge ? "true" : "false",
|
|
389
|
+
className: `table-with-loader${q ? ` ${q}` : ""}`,
|
|
329
390
|
style: {
|
|
330
391
|
width: "100%",
|
|
331
392
|
height: "100%",
|
|
332
|
-
...
|
|
393
|
+
...T ? { "--ag-row-height": `${Q}px` } : null
|
|
333
394
|
},
|
|
334
|
-
children: /* @__PURE__ */
|
|
335
|
-
|
|
395
|
+
children: /* @__PURE__ */ G(
|
|
396
|
+
Je,
|
|
336
397
|
{
|
|
337
|
-
theme:
|
|
338
|
-
defaultColDef:
|
|
339
|
-
columnDefs:
|
|
398
|
+
theme: Ne,
|
|
399
|
+
defaultColDef: Ge,
|
|
400
|
+
columnDefs: je,
|
|
340
401
|
cellSelection: !0,
|
|
341
|
-
defaultColGroupDef:
|
|
342
|
-
onGridReady:
|
|
343
|
-
onGridPreDestroyed:
|
|
344
|
-
onFilterChanged:
|
|
345
|
-
onSelectionChanged:
|
|
346
|
-
onModelUpdated:
|
|
347
|
-
tooltipShowMode:
|
|
348
|
-
tooltipShowDelay:
|
|
349
|
-
tooltipHideDelay:
|
|
350
|
-
tooltipInteraction:
|
|
351
|
-
processCellForClipboard:
|
|
352
|
-
processCellFromClipboard:
|
|
353
|
-
sendToClipboard:
|
|
354
|
-
ensureDomOrder:
|
|
402
|
+
defaultColGroupDef: _,
|
|
403
|
+
onGridReady: xe,
|
|
404
|
+
onGridPreDestroyed: be,
|
|
405
|
+
onFilterChanged: Se,
|
|
406
|
+
onSelectionChanged: we,
|
|
407
|
+
onModelUpdated: Re,
|
|
408
|
+
tooltipShowMode: j,
|
|
409
|
+
tooltipShowDelay: O,
|
|
410
|
+
tooltipHideDelay: ne,
|
|
411
|
+
tooltipInteraction: ie,
|
|
412
|
+
processCellForClipboard: Fe,
|
|
413
|
+
processCellFromClipboard: Ae,
|
|
414
|
+
sendToClipboard: Te,
|
|
415
|
+
ensureDomOrder: L,
|
|
355
416
|
suppressHeaderFocus: !1,
|
|
356
417
|
suppressFocusAfterRefresh: !0,
|
|
357
418
|
suppressGroupRowsSticky: !0,
|
|
358
419
|
hidePaddedHeaderRows: !0,
|
|
359
420
|
suppressServerSideFullWidthLoadingRow: !0,
|
|
360
|
-
columnTypes:
|
|
361
|
-
autoSizeStrategy:
|
|
362
|
-
...
|
|
363
|
-
...
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
421
|
+
columnTypes: ye,
|
|
422
|
+
autoSizeStrategy: k,
|
|
423
|
+
...a,
|
|
424
|
+
...T ? { rowHeight: Q, cellSelection: a.cellSelection ?? !1 } : null,
|
|
425
|
+
...He,
|
|
426
|
+
...Oe,
|
|
427
|
+
components: Ee,
|
|
428
|
+
defaultCsvExportParams: Me,
|
|
429
|
+
defaultExcelExportParams: Ie,
|
|
430
|
+
getMainMenuItems: Ce
|
|
368
431
|
}
|
|
369
432
|
)
|
|
370
433
|
}
|
|
371
434
|
),
|
|
435
|
+
_e,
|
|
436
|
+
Pe,
|
|
372
437
|
c,
|
|
373
|
-
/* @__PURE__ */
|
|
374
|
-
|
|
438
|
+
/* @__PURE__ */ G(
|
|
439
|
+
mt,
|
|
375
440
|
{
|
|
376
|
-
isOpen:
|
|
377
|
-
columnId:
|
|
378
|
-
gridApi:
|
|
379
|
-
onClose:
|
|
380
|
-
onApply:
|
|
441
|
+
isOpen: he,
|
|
442
|
+
columnId: ve,
|
|
443
|
+
gridApi: b,
|
|
444
|
+
onClose: H.closeAdvancedFilter,
|
|
445
|
+
onApply: H.applyAdvancedFilter
|
|
381
446
|
}
|
|
382
447
|
)
|
|
383
448
|
] });
|
|
384
449
|
}
|
|
385
|
-
function
|
|
450
|
+
function mt({
|
|
386
451
|
isOpen: c,
|
|
387
|
-
columnId:
|
|
452
|
+
columnId: o,
|
|
388
453
|
gridApi: s,
|
|
389
|
-
onClose:
|
|
390
|
-
onApply:
|
|
454
|
+
onClose: C,
|
|
455
|
+
onApply: y
|
|
391
456
|
}) {
|
|
392
|
-
if (!c || !
|
|
393
|
-
const
|
|
394
|
-
if (!
|
|
395
|
-
const
|
|
396
|
-
return /* @__PURE__ */
|
|
397
|
-
|
|
457
|
+
if (!c || !o || !s) return null;
|
|
458
|
+
const d = s.getColumn(o);
|
|
459
|
+
if (!d) return null;
|
|
460
|
+
const p = d.getColDef(), w = p.headerComponentParams, x = lt(p), D = x.text !== -1 || x.number !== -1 || x.date !== -1, L = x.set !== -1, j = p.filter === "agMultiColumnFilter" && (D || L) ? "multi" : p.filter === "agNumberColumnFilter" ? "number" : p.filter === "agDateColumnFilter" ? "date" : p.filter === "agSetColumnFilter" || w?.selectOptions ? "select" : "text", O = st(s.getFilterModel());
|
|
461
|
+
return /* @__PURE__ */ G(Ue, { fallback: null, children: /* @__PURE__ */ G(
|
|
462
|
+
ft,
|
|
398
463
|
{
|
|
399
464
|
isOpen: c,
|
|
400
|
-
onClose:
|
|
401
|
-
onApply:
|
|
402
|
-
columnId:
|
|
403
|
-
columnLabel:
|
|
404
|
-
columnType:
|
|
405
|
-
selectOptions:
|
|
406
|
-
isMultiSelect:
|
|
407
|
-
initialModel:
|
|
465
|
+
onClose: C,
|
|
466
|
+
onApply: y,
|
|
467
|
+
columnId: o,
|
|
468
|
+
columnLabel: p.headerName || o,
|
|
469
|
+
columnType: j,
|
|
470
|
+
selectOptions: w?.selectOptions,
|
|
471
|
+
isMultiSelect: w?.isMultiSelect,
|
|
472
|
+
initialModel: O,
|
|
408
473
|
api: s
|
|
409
474
|
}
|
|
410
475
|
) });
|
|
411
476
|
}
|
|
412
477
|
export {
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
478
|
+
Pt as AG_GRID_LIST_RANK_GRADIENT,
|
|
479
|
+
Ot as AgGridWrapper,
|
|
480
|
+
Xt as isAgGridHeaderLabelTooltipOverflowing,
|
|
481
|
+
Jt as isAgGridTextOverflowing,
|
|
482
|
+
pt as normalizeColumnDefsNumericHeaderAlignment,
|
|
483
|
+
Vt as subscribeGridApiEvent,
|
|
484
|
+
Wt as subscribeGridApiEvents,
|
|
485
|
+
$t as useAgGridTruncationTooltip,
|
|
486
|
+
zt as useListRowDropZones
|
|
419
487
|
};
|