impact-nova 3.0.0-alpha.2 → 3.0.0-alpha.22
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/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 +53 -49
- 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-heatmap-layout.d.ts +31 -0
- package/dist/components/data-display/chart/chart-heatmap-layout.js +72 -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.category-cluster-heatmap.stories-data.d.ts +1 -1
- package/dist/components/data-display/chart/chart.js +171 -143
- package/dist/components/data-display/chart/chart.types.d.ts +17 -0
- package/dist/components/data-display/chart/chart.utils.js +122 -92
- package/dist/components/data-display/heatmap-grid/heatmap-grid-play.d.ts +9 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.d.ts +32 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.js +93 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.layout.d.ts +46 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.layout.js +80 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.types.d.ts +54 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.variants.d.ts +18 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.variants.js +80 -0
- package/dist/components/data-display/heatmap-grid/index.d.ts +3 -0
- package/dist/components/data-display/heatmap-grid/index.js +14 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-cell.d.ts +14 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-cell.js +39 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-context.d.ts +29 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-context.js +33 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-tooltip.d.ts +4 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-tooltip.js +49 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-viewport.d.ts +3 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-viewport.js +173 -0
- package/dist/components/data-display/heatmap-grid/internals/use-heatmap-grid-viewport.d.ts +12 -0
- package/dist/components/data-display/heatmap-grid/internals/use-heatmap-grid-viewport.js +161 -0
- 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 +75 -0
- package/dist/i18n/defaultMessages.js +112 -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 +71 -1
- package/dist/i18n/locales/es.js +71 -1
- package/dist/i18n/locales/hi.js +71 -1
- package/dist/i18n/locales/kn.js +71 -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/tailwind.config.js +3 -0
- package/dist/theme/tailwind-colors.js +3 -0
- package/package.json +27 -4
|
@@ -1,37 +1,40 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { Select as
|
|
4
|
-
import { SelectAiInsightAffordance as
|
|
5
|
-
const
|
|
1
|
+
import { jsxs as W, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as k, useState as B, useRef as b, useImperativeHandle as H, useCallback as r } from "react";
|
|
3
|
+
import { Select as L } from "../../../../forms/select/select.js";
|
|
4
|
+
import { SelectAiInsightAffordance as P } from "../select-ai-insight-affordance.js";
|
|
5
|
+
const q = k((u, v) => {
|
|
6
6
|
const {
|
|
7
7
|
value: l,
|
|
8
|
-
options:
|
|
8
|
+
options: S = [],
|
|
9
9
|
placeholder: C = "Select...",
|
|
10
|
-
isSearchable:
|
|
11
|
-
isClearable:
|
|
12
|
-
stopEditing:
|
|
13
|
-
onValueChange:
|
|
14
|
-
data:
|
|
15
|
-
showAiInsight:
|
|
16
|
-
aiInsightField:
|
|
17
|
-
confidenceScore:
|
|
10
|
+
isSearchable: x = !0,
|
|
11
|
+
isClearable: M = !0,
|
|
12
|
+
stopEditing: d,
|
|
13
|
+
onValueChange: f,
|
|
14
|
+
data: n,
|
|
15
|
+
showAiInsight: w,
|
|
16
|
+
aiInsightField: V,
|
|
17
|
+
confidenceScore: R,
|
|
18
18
|
confidenceScoreField: j,
|
|
19
|
-
confidenceReason:
|
|
19
|
+
confidenceReason: A,
|
|
20
20
|
confidenceReasonField: E,
|
|
21
21
|
confidenceLabel: I
|
|
22
|
-
} =
|
|
22
|
+
} = u, o = l && typeof l == "object" && "value" in l, s = o ? l.cellMetadata : void 0, t = o ? l.value : l, p = S.map((e) => ({
|
|
23
23
|
value: e.value,
|
|
24
24
|
label: e.label,
|
|
25
25
|
isDisabled: e.isDisabled
|
|
26
|
-
})), [
|
|
27
|
-
|
|
28
|
-
), h =
|
|
29
|
-
|
|
26
|
+
})), [N, m] = B(
|
|
27
|
+
t != null ? String(t) : null
|
|
28
|
+
), h = b(
|
|
29
|
+
t != null ? String(t) : null
|
|
30
|
+
), g = b(!1);
|
|
31
|
+
H(v, () => ({
|
|
30
32
|
getValue() {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
const e = h.current;
|
|
34
|
+
return o ? {
|
|
35
|
+
value: e,
|
|
36
|
+
...s !== void 0 && { cellMetadata: s }
|
|
37
|
+
} : e;
|
|
35
38
|
},
|
|
36
39
|
isCancelBeforeStart() {
|
|
37
40
|
return !1;
|
|
@@ -43,33 +46,34 @@ const P = y((g, b) => {
|
|
|
43
46
|
return !0;
|
|
44
47
|
}
|
|
45
48
|
}));
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
}, [
|
|
49
|
+
const y = p.find((e) => e.value === N) ?? null, a = r(() => {
|
|
50
|
+
g.current || (g.current = !0, d());
|
|
51
|
+
}, [d]), D = r(
|
|
49
52
|
(e) => {
|
|
50
|
-
const
|
|
51
|
-
|
|
53
|
+
const c = e ? e.value : null;
|
|
54
|
+
h.current = c, m(c), f?.(c), a();
|
|
52
55
|
},
|
|
53
|
-
[a,
|
|
54
|
-
),
|
|
56
|
+
[a, f, m]
|
|
57
|
+
), O = r(() => {
|
|
55
58
|
a();
|
|
56
|
-
}, [a]);
|
|
57
|
-
return /* @__PURE__ */
|
|
59
|
+
}, [a]), F = n && typeof n == "object" ? n : null;
|
|
60
|
+
return /* @__PURE__ */ W(
|
|
58
61
|
"div",
|
|
59
62
|
{
|
|
60
63
|
className: "box-border flex h-full w-full min-w-0 items-center gap-2 ps-2 pe-2.5 ag-editable-cell-highlight",
|
|
61
64
|
"data-component": "select-cell-editor",
|
|
65
|
+
style: { minWidth: u.column?.getActualWidth() },
|
|
62
66
|
children: [
|
|
63
67
|
/* @__PURE__ */ i("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ i(
|
|
64
|
-
|
|
68
|
+
L,
|
|
65
69
|
{
|
|
66
|
-
options:
|
|
67
|
-
value:
|
|
68
|
-
onChange:
|
|
69
|
-
onMenuClose:
|
|
70
|
+
options: p,
|
|
71
|
+
value: y,
|
|
72
|
+
onChange: D,
|
|
73
|
+
onMenuClose: O,
|
|
70
74
|
placeholder: C,
|
|
71
|
-
isSearchable:
|
|
72
|
-
isClearable:
|
|
75
|
+
isSearchable: x,
|
|
76
|
+
isClearable: M,
|
|
73
77
|
isMulti: !1,
|
|
74
78
|
defaultMenuIsOpen: !0,
|
|
75
79
|
className: "!border-none !shadow-none !ring-0 !h-7 !rounded-[8px] !px-1.5",
|
|
@@ -77,24 +81,24 @@ const P = y((g, b) => {
|
|
|
77
81
|
}
|
|
78
82
|
) }),
|
|
79
83
|
/* @__PURE__ */ i(
|
|
80
|
-
|
|
84
|
+
P,
|
|
81
85
|
{
|
|
82
|
-
showAiInsight:
|
|
83
|
-
aiInsightField:
|
|
84
|
-
confidenceScore:
|
|
86
|
+
showAiInsight: w,
|
|
87
|
+
aiInsightField: V,
|
|
88
|
+
confidenceScore: R,
|
|
85
89
|
confidenceScoreField: j,
|
|
86
|
-
confidenceReason:
|
|
90
|
+
confidenceReason: A,
|
|
87
91
|
confidenceReasonField: E,
|
|
88
92
|
confidenceLabel: I,
|
|
89
|
-
data:
|
|
90
|
-
cellMetadata:
|
|
93
|
+
data: F,
|
|
94
|
+
cellMetadata: s
|
|
91
95
|
}
|
|
92
96
|
)
|
|
93
97
|
]
|
|
94
98
|
}
|
|
95
99
|
);
|
|
96
100
|
});
|
|
97
|
-
|
|
101
|
+
q.displayName = "SelectCellEditor";
|
|
98
102
|
export {
|
|
99
|
-
|
|
103
|
+
q as SelectCellEditor
|
|
100
104
|
};
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import { ActionsCellRenderer } from './actions-cell-renderer';
|
|
2
|
+
import { BadgeCellRenderer } from './badge-cell-renderer';
|
|
3
|
+
import { DateDisplayRenderer } from './date-display-renderer';
|
|
4
|
+
import { LinkCellRenderer } from './link-with-batch-cell-renderer';
|
|
5
|
+
import { PercentProgressDisplayRenderer } from './percent-progress-display-renderer';
|
|
6
|
+
import { SplitCellRenderer } from './split-cell-renderer';
|
|
7
|
+
import { StatusBadgeRenderer } from './status-badge-renderer';
|
|
1
8
|
/** Removes AG Grid's default cell horizontal padding so the renderer fills edge-to-edge */
|
|
2
9
|
export declare const AG_CELL_NO_PADDING = "ag-cell-no-padding";
|
|
3
10
|
/** Full control: resets padding, overflow, and line-height so the renderer owns the cell entirely */
|
|
@@ -5,11 +12,11 @@ export declare const AG_CELL_FULL_CONTROL = "ag-cell-renderer-full-control";
|
|
|
5
12
|
/** Design-system inner padding (6px) for custom cell renderer wrappers */
|
|
6
13
|
export declare const AG_CELL_INNER_PADDING = "ag-cell-inner-padding";
|
|
7
14
|
export { EmptyCellRenderer } from './empty-cell-renderer';
|
|
8
|
-
export { BadgeCellRenderer }
|
|
9
|
-
export { StatusBadgeRenderer }
|
|
10
|
-
export { ActionsCellRenderer }
|
|
11
|
-
export { LinkCellRenderer }
|
|
12
|
-
export { SplitCellRenderer }
|
|
15
|
+
export { BadgeCellRenderer };
|
|
16
|
+
export { StatusBadgeRenderer };
|
|
17
|
+
export { ActionsCellRenderer };
|
|
18
|
+
export { LinkCellRenderer };
|
|
19
|
+
export { SplitCellRenderer };
|
|
13
20
|
export { InputDisplayRenderer } from './input-display-renderer';
|
|
14
21
|
export { SelectDisplayRenderer } from './select-display-renderer';
|
|
15
22
|
export { StyleDescriptionDisplayRenderer } from './style-description-display-renderer';
|
|
@@ -17,8 +24,8 @@ export { ListSelectDisplayRenderer } from './list-select-display-renderer';
|
|
|
17
24
|
export { CheckboxDisplayRenderer } from './checkbox-display-renderer';
|
|
18
25
|
export { SwitchDisplayRenderer } from './switch-display-renderer';
|
|
19
26
|
export { TextAreaDisplayRenderer } from './textarea-display-renderer';
|
|
20
|
-
export { DateDisplayRenderer }
|
|
21
|
-
export { PercentProgressDisplayRenderer }
|
|
27
|
+
export { DateDisplayRenderer };
|
|
28
|
+
export { PercentProgressDisplayRenderer };
|
|
22
29
|
export { InputCellEditor } from './editors/input-cell-editor';
|
|
23
30
|
export { SelectCellEditor } from './editors/select-cell-editor';
|
|
24
31
|
export { ListSelectCellEditor } from './editors/list-select-cell-editor';
|
|
@@ -45,3 +52,34 @@ export type { AutocompleteRule } from './editors/input-cell-editor';
|
|
|
45
52
|
export { type BadgeVariant, type BadgeColor, type SelectOption, type ActionButton, type RightSideIcon, type RightSideBadge, type RightSideContentItem, type RightSideContent, type SplitConfig, type CellMetadata, type RowMetadata, type ValueFormatter, } from './types';
|
|
46
53
|
export { mapBadgeVariant, mapBadgeColor, getFieldValue, resolveValueFormatter, applyValueFormatter, resolveCellEditable, evaluateValidationRules, } from './cell-renderer-utils';
|
|
47
54
|
export { addRowDataEditableCheck } from '../editable-utils';
|
|
55
|
+
/** Standard renderer keys, plus any feature renderers the app registers. */
|
|
56
|
+
export declare function createAgGridCellComponents<TExtra extends Record<string, unknown>>(extra?: TExtra): {
|
|
57
|
+
badge: {
|
|
58
|
+
(props: import('./badge-cell-renderer').BadgeCellRendererProps): import("react/jsx-runtime").JSX.Element | null;
|
|
59
|
+
displayName: string;
|
|
60
|
+
};
|
|
61
|
+
statusBadge: {
|
|
62
|
+
(props: import('./status-badge-renderer').StatusBadgeRendererProps): import("react/jsx-runtime").JSX.Element | null;
|
|
63
|
+
displayName: string;
|
|
64
|
+
};
|
|
65
|
+
actions: {
|
|
66
|
+
(props: import('./actions-cell-renderer').ActionsCellRendererProps): import("react/jsx-runtime").JSX.Element | null;
|
|
67
|
+
displayName: string;
|
|
68
|
+
};
|
|
69
|
+
link: {
|
|
70
|
+
(props: import('./link-with-batch-cell-renderer').LinkCellRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
71
|
+
displayName: string;
|
|
72
|
+
};
|
|
73
|
+
split: {
|
|
74
|
+
(props: import('./split-cell-renderer').SplitCellRendererProps): import("react/jsx-runtime").JSX.Element | null;
|
|
75
|
+
displayName: string;
|
|
76
|
+
};
|
|
77
|
+
dateDisplay: {
|
|
78
|
+
(props: import('./date-display-renderer').DateDisplayRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
79
|
+
displayName: string;
|
|
80
|
+
};
|
|
81
|
+
percentProgress: {
|
|
82
|
+
(props: import('./percent-progress-display-renderer').PercentProgressDisplayRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
83
|
+
displayName: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
@@ -1,60 +1,72 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BadgeCellRenderer as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { SplitCellRenderer as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { InputCellEditor as
|
|
17
|
-
import { SelectCellEditor as
|
|
18
|
-
import { ListSelectCellEditor as
|
|
19
|
-
import { TextAreaCellEditor as
|
|
20
|
-
import { DateCellEditor as
|
|
21
|
-
import { SplitCellEditor as
|
|
22
|
-
import { PercentProgressCellEditor as
|
|
23
|
-
import { applyValueFormatter as
|
|
24
|
-
import { addRowDataEditableCheck as
|
|
25
|
-
const
|
|
1
|
+
import { ActionsCellRenderer as r } from "./actions-cell-renderer.js";
|
|
2
|
+
import { BadgeCellRenderer as o } from "./badge-cell-renderer.js";
|
|
3
|
+
import { DateDisplayRenderer as t } from "./date-display-renderer.js";
|
|
4
|
+
import { LinkCellRenderer as l } from "./link-with-batch-cell-renderer.js";
|
|
5
|
+
import { PercentProgressDisplayRenderer as p } from "./percent-progress-display-renderer.js";
|
|
6
|
+
import { SplitCellRenderer as a } from "./split-cell-renderer.js";
|
|
7
|
+
import { StatusBadgeRenderer as i } from "./status-badge-renderer.js";
|
|
8
|
+
import { EmptyCellRenderer as u } from "./empty-cell-renderer.js";
|
|
9
|
+
import { InputDisplayRenderer as S } from "./input-display-renderer.js";
|
|
10
|
+
import { SelectDisplayRenderer as N } from "./select-display-renderer.js";
|
|
11
|
+
import { StyleDescriptionDisplayRenderer as G } from "./style-description-display-renderer.js";
|
|
12
|
+
import { ListSelectDisplayRenderer as I } from "./list-select-display-renderer.js";
|
|
13
|
+
import { CheckboxDisplayRenderer as T } from "./checkbox-display-renderer.js";
|
|
14
|
+
import { SwitchDisplayRenderer as b } from "./switch-display-renderer.js";
|
|
15
|
+
import { TextAreaDisplayRenderer as F } from "./textarea-display-renderer.js";
|
|
16
|
+
import { InputCellEditor as v } from "./editors/input-cell-editor.js";
|
|
17
|
+
import { SelectCellEditor as M } from "./editors/select-cell-editor.js";
|
|
18
|
+
import { ListSelectCellEditor as j } from "./editors/list-select-cell-editor.js";
|
|
19
|
+
import { TextAreaCellEditor as z } from "./editors/textarea-cell-editor.js";
|
|
20
|
+
import { DateCellEditor as J } from "./editors/date-cell-editor.js";
|
|
21
|
+
import { SplitCellEditor as Q } from "./editors/split-cell-editor.js";
|
|
22
|
+
import { PercentProgressCellEditor as X } from "./editors/percent-progress-cell-editor.js";
|
|
23
|
+
import { applyValueFormatter as Z, evaluateValidationRules as $, getFieldValue as ee, mapBadgeColor as re, mapBadgeVariant as oe, resolveCellEditable as te, resolveValueFormatter as le } from "./cell-renderer-utils.js";
|
|
24
|
+
import { addRowDataEditableCheck as ae } from "../editable-utils.js";
|
|
25
|
+
const D = "ag-cell-no-padding", R = "ag-cell-renderer-full-control", g = "ag-cell-inner-padding", n = {
|
|
26
|
+
badge: o,
|
|
27
|
+
statusBadge: i,
|
|
28
|
+
actions: r,
|
|
29
|
+
link: l,
|
|
30
|
+
split: a,
|
|
31
|
+
dateDisplay: t,
|
|
32
|
+
percentProgress: p
|
|
33
|
+
};
|
|
34
|
+
function E(e) {
|
|
35
|
+
return { ...n, ...e };
|
|
36
|
+
}
|
|
26
37
|
export {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
38
|
+
R as AG_CELL_FULL_CONTROL,
|
|
39
|
+
g as AG_CELL_INNER_PADDING,
|
|
40
|
+
D as AG_CELL_NO_PADDING,
|
|
41
|
+
r as ActionsCellRenderer,
|
|
42
|
+
o as BadgeCellRenderer,
|
|
43
|
+
T as CheckboxDisplayRenderer,
|
|
44
|
+
J as DateCellEditor,
|
|
45
|
+
t as DateDisplayRenderer,
|
|
46
|
+
u as EmptyCellRenderer,
|
|
47
|
+
v as InputCellEditor,
|
|
48
|
+
S as InputDisplayRenderer,
|
|
49
|
+
l as LinkCellRenderer,
|
|
50
|
+
j as ListSelectCellEditor,
|
|
51
|
+
I as ListSelectDisplayRenderer,
|
|
52
|
+
X as PercentProgressCellEditor,
|
|
53
|
+
p as PercentProgressDisplayRenderer,
|
|
54
|
+
M as SelectCellEditor,
|
|
55
|
+
N as SelectDisplayRenderer,
|
|
56
|
+
Q as SplitCellEditor,
|
|
57
|
+
a as SplitCellRenderer,
|
|
58
|
+
i as StatusBadgeRenderer,
|
|
59
|
+
G as StyleDescriptionDisplayRenderer,
|
|
60
|
+
b as SwitchDisplayRenderer,
|
|
61
|
+
z as TextAreaCellEditor,
|
|
62
|
+
F as TextAreaDisplayRenderer,
|
|
63
|
+
ae as addRowDataEditableCheck,
|
|
64
|
+
Z as applyValueFormatter,
|
|
65
|
+
E as createAgGridCellComponents,
|
|
66
|
+
$ as evaluateValidationRules,
|
|
67
|
+
ee as getFieldValue,
|
|
68
|
+
re as mapBadgeColor,
|
|
69
|
+
oe as mapBadgeVariant,
|
|
70
|
+
te as resolveCellEditable,
|
|
71
|
+
le as resolveValueFormatter
|
|
60
72
|
};
|
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
1
|
+
import { jsx as s, jsxs as j } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as L, useMemo as x, useCallback as U } from "react";
|
|
3
|
+
import { useAgGridTruncationTooltip as G } from "../use-ag-grid-truncation-tooltip.js";
|
|
4
|
+
import { Badge as H } from "../../../data-display/badge/badge.js";
|
|
5
|
+
import { evaluateValidationRules as _, getFieldValue as m, mapBadgeVariant as z, mapBadgeColor as A } from "./cell-renderer-utils.js";
|
|
6
|
+
import { resolveGridIcon as M } from "./gridIconResolver.js";
|
|
7
|
+
import { Tooltip as Q, TooltipTrigger as q, TooltipContent as J } from "../../../feedback/tooltip/tooltip.js";
|
|
8
|
+
const W = (e, n, r, a) => {
|
|
8
9
|
if (!n) return e;
|
|
9
10
|
let t = e;
|
|
10
|
-
return t = t.replace(/\$\{value\}/g, String(a ?? "")), t = t.replace(/\$\{field\}/g, String(r ?? "")), Object.keys(n).forEach((
|
|
11
|
-
const
|
|
12
|
-
t = t.replace(
|
|
11
|
+
return t = t.replace(/\$\{value\}/g, String(a ?? "")), t = t.replace(/\$\{field\}/g, String(r ?? "")), Object.keys(n).forEach((o) => {
|
|
12
|
+
const i = new RegExp(`\\$\\{${o}\\}`, "g");
|
|
13
|
+
t = t.replace(i, String(n[o] ?? ""));
|
|
13
14
|
}), t;
|
|
14
|
-
},
|
|
15
|
+
}, X = ({
|
|
15
16
|
iconConfig: e,
|
|
16
17
|
rowData: n,
|
|
17
18
|
rowId: r,
|
|
18
19
|
field: a
|
|
19
20
|
}) => {
|
|
20
21
|
let t = null;
|
|
21
|
-
const
|
|
22
|
-
if (typeof
|
|
23
|
-
const
|
|
22
|
+
const o = m(e.iconField, e.icon, n);
|
|
23
|
+
if (typeof o == "string" ? t = M(o, { size: 16 }) : t = o, !t) return null;
|
|
24
|
+
const i = m(e.backgroundColorField, e.backgroundColor, n), d = m(e.colorField, e.color, n) ?? "var(--color-foreground-icon)", f = m(e.tooltipField, e.tooltip, n), g = /* @__PURE__ */ s(
|
|
24
25
|
"div",
|
|
25
26
|
{
|
|
26
27
|
className: `flex shrink-0 items-center justify-center bg-[var(--icon-bg)] text-[var(--icon-fg)] ${e.onClick ? "cursor-pointer" : ""} ${e.showOnHover ? "max-w-0 min-w-0 overflow-hidden p-0 opacity-0 pointer-events-none group-hover:max-w-none group-hover:min-w-[18px] group-hover:p-0.5 group-hover:opacity-100 group-hover:pointer-events-auto" : "p-0.5 min-w-[18px]"}`,
|
|
27
28
|
style: {
|
|
28
|
-
"--icon-bg":
|
|
29
|
-
"--icon-fg":
|
|
29
|
+
"--icon-bg": i,
|
|
30
|
+
"--icon-fg": d,
|
|
30
31
|
borderRadius: "4px",
|
|
31
32
|
minHeight: "18px"
|
|
32
33
|
},
|
|
@@ -34,11 +35,11 @@ const M = (e, n, r, a) => {
|
|
|
34
35
|
children: t
|
|
35
36
|
}
|
|
36
37
|
);
|
|
37
|
-
return f ? /* @__PURE__ */ j(
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
] }) :
|
|
41
|
-
},
|
|
38
|
+
return f ? /* @__PURE__ */ j(Q, { children: [
|
|
39
|
+
/* @__PURE__ */ s(q, { asChild: !0, children: g }),
|
|
40
|
+
/* @__PURE__ */ s(J, { variant: "tertiary", side: e.tooltipSide || "top", children: f })
|
|
41
|
+
] }) : g;
|
|
42
|
+
}, Y = ({
|
|
42
43
|
badgeConfig: e,
|
|
43
44
|
rowData: n,
|
|
44
45
|
rowId: r,
|
|
@@ -46,101 +47,112 @@ const M = (e, n, r, a) => {
|
|
|
46
47
|
}) => {
|
|
47
48
|
const t = m(e.labelField, e.label, n);
|
|
48
49
|
if (!t) return null;
|
|
49
|
-
const
|
|
50
|
-
return /* @__PURE__ */
|
|
51
|
-
|
|
50
|
+
const o = m(e.colorField, e.color, n), i = m(e.variantField, e.variant, n);
|
|
51
|
+
return /* @__PURE__ */ s(
|
|
52
|
+
H,
|
|
52
53
|
{
|
|
53
54
|
className: "font-medium",
|
|
54
|
-
color:
|
|
55
|
-
variant:
|
|
55
|
+
color: A(o),
|
|
56
|
+
variant: z(i),
|
|
56
57
|
onClick: e.onClick ? () => e.onClick?.({ rowId: r, field: a, rowData: n ?? {} }) : void 0,
|
|
57
58
|
children: t
|
|
58
59
|
}
|
|
59
60
|
);
|
|
60
|
-
},
|
|
61
|
+
}, Z = (e) => {
|
|
61
62
|
const {
|
|
62
63
|
value: n,
|
|
63
64
|
data: r,
|
|
64
65
|
node: a,
|
|
65
66
|
colDef: t,
|
|
66
|
-
onClick:
|
|
67
|
-
redirectUrl:
|
|
68
|
-
updateQueryParams:
|
|
67
|
+
onClick: o,
|
|
68
|
+
redirectUrl: i,
|
|
69
|
+
updateQueryParams: d,
|
|
69
70
|
navigate: f,
|
|
70
|
-
setSearchParams:
|
|
71
|
-
rightSideContent:
|
|
72
|
-
valueFormatter:
|
|
71
|
+
setSearchParams: g,
|
|
72
|
+
rightSideContent: k,
|
|
73
|
+
valueFormatter: h,
|
|
73
74
|
disableOnPinnedRows: S = !0,
|
|
74
75
|
disableLinkStyle: w,
|
|
75
|
-
validationRules:
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
p =
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
76
|
+
validationRules: R,
|
|
77
|
+
setTooltip: N
|
|
78
|
+
} = e, $ = L(null), y = a.id ?? String(r?.id ?? ""), u = t?.field ?? "", T = r && typeof r == "object" && "_isPinned" in r && r._isPinned === !0, E = x(() => w || S && T || _(R, r) ? !1 : !!(d || i || o), [w, S, T, d, i, o, R, r]), B = U(
|
|
79
|
+
(c) => {
|
|
80
|
+
if (c.stopPropagation(), d && g)
|
|
81
|
+
g((l) => {
|
|
82
|
+
const v = new URLSearchParams(l);
|
|
83
|
+
return Object.entries(d).forEach(([b, V]) => {
|
|
84
|
+
let p = String(V);
|
|
85
|
+
p = p.replace(/\$\{value\}/g, String(n ?? "")), p = p.replace(/\$\{field\}/g, u), r && Object.keys(r).forEach((P) => {
|
|
86
|
+
const I = new RegExp(`\\$\\{${P}\\}`, "g");
|
|
87
|
+
p = p.replace(I, String(r[P] ?? ""));
|
|
88
|
+
}), v.set(b, p);
|
|
89
|
+
}), v;
|
|
88
90
|
});
|
|
89
|
-
else if (
|
|
90
|
-
const l =
|
|
91
|
+
else if (i && f) {
|
|
92
|
+
const l = W(i, r, u, n);
|
|
91
93
|
f(l);
|
|
92
|
-
} else
|
|
94
|
+
} else o && o({ rowId: y, field: u, rowData: r ?? {}, value: n });
|
|
93
95
|
},
|
|
94
|
-
[
|
|
95
|
-
),
|
|
96
|
-
if (
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
[d, g, i, f, o, r, u, n, y]
|
|
97
|
+
), C = x(() => h ? h(n, r ?? {}) : String(n ?? ""), [n, h, r]), O = x(() => {
|
|
98
|
+
if (h) {
|
|
99
|
+
const c = h(n, r ?? {});
|
|
100
|
+
if (typeof c == "string" || typeof c == "number")
|
|
101
|
+
return String(c);
|
|
102
|
+
}
|
|
103
|
+
return String(n ?? "");
|
|
104
|
+
}, [n, h, r]);
|
|
105
|
+
G(N, O, $, "ellipsis");
|
|
106
|
+
const F = x(() => {
|
|
107
|
+
if (!k?.items || k.items.length === 0) return null;
|
|
108
|
+
const c = [];
|
|
109
|
+
return k.items.forEach((l, v) => {
|
|
99
110
|
if (l.type === "icon" && l.icon)
|
|
100
|
-
|
|
101
|
-
/* @__PURE__ */
|
|
102
|
-
|
|
111
|
+
c.push(
|
|
112
|
+
/* @__PURE__ */ s(
|
|
113
|
+
X,
|
|
103
114
|
{
|
|
104
115
|
iconConfig: l.icon,
|
|
105
116
|
rowData: r,
|
|
106
|
-
rowId:
|
|
107
|
-
field:
|
|
117
|
+
rowId: y,
|
|
118
|
+
field: u
|
|
108
119
|
},
|
|
109
|
-
`icon-${
|
|
120
|
+
`icon-${v}`
|
|
110
121
|
)
|
|
111
122
|
);
|
|
112
123
|
else if (l.type === "badge" && l.badge)
|
|
113
|
-
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
|
|
124
|
+
c.push(
|
|
125
|
+
/* @__PURE__ */ s(
|
|
126
|
+
Y,
|
|
116
127
|
{
|
|
117
128
|
badgeConfig: l.badge,
|
|
118
129
|
rowData: r,
|
|
119
|
-
rowId:
|
|
120
|
-
field:
|
|
130
|
+
rowId: y,
|
|
131
|
+
field: u
|
|
121
132
|
},
|
|
122
|
-
`badge-${
|
|
133
|
+
`badge-${v}`
|
|
123
134
|
)
|
|
124
135
|
);
|
|
125
136
|
else if (l.type === "dynamic" && l.dynamic) {
|
|
126
|
-
const
|
|
127
|
-
|
|
137
|
+
const b = typeof l.dynamic == "function" ? l.dynamic(r ?? {}) : l.dynamic;
|
|
138
|
+
c.push(/* @__PURE__ */ s("span", { children: b }, `dyn-${v}`));
|
|
128
139
|
}
|
|
129
|
-
}),
|
|
130
|
-
}, [
|
|
140
|
+
}), c.length > 0 ? c : null;
|
|
141
|
+
}, [k, r, y, u]);
|
|
131
142
|
return /* @__PURE__ */ j("div", { className: "w-full h-full flex items-center justify-between gap-2 group ag-cell-inner-padding", children: [
|
|
132
|
-
/* @__PURE__ */
|
|
143
|
+
/* @__PURE__ */ s(
|
|
133
144
|
"div",
|
|
134
145
|
{
|
|
146
|
+
ref: $,
|
|
135
147
|
className: `flex-1 truncate min-w-0 ${E ? "text-brand cursor-pointer hover:underline font-medium" : ""}`,
|
|
136
|
-
onClick: E ?
|
|
137
|
-
children:
|
|
148
|
+
onClick: E ? B : void 0,
|
|
149
|
+
children: C
|
|
138
150
|
}
|
|
139
151
|
),
|
|
140
|
-
F && /* @__PURE__ */
|
|
152
|
+
F && /* @__PURE__ */ s("div", { className: "flex items-center gap-1 flex-shrink-0", children: F })
|
|
141
153
|
] });
|
|
142
154
|
};
|
|
143
|
-
|
|
155
|
+
Z.displayName = "LinkCellRenderer";
|
|
144
156
|
export {
|
|
145
|
-
|
|
157
|
+
Z as LinkCellRenderer
|
|
146
158
|
};
|