impact-nova 2.6.3 → 3.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/data/ag-grid-react/ag-grid-cell-components.d.ts +9 -0
- package/dist/components/data/ag-grid-react/ag-grid-list.d.ts +16 -0
- package/dist/components/data/ag-grid-react/ag-grid-list.js +23 -0
- package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +7 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.d.ts +14 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +70 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.d.ts +10 -5
- package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +73 -41
- package/dist/components/data/ag-grid-react/cell-renderers/index.d.ts +7 -0
- package/dist/components/data/ag-grid-react/cell-renderers/index.js +42 -36
- package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.d.ts +19 -0
- package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +89 -0
- package/dist/components/data/ag-grid-react/cell-renderers/select-ai-insight-affordance.d.ts +28 -0
- package/dist/components/data/ag-grid-react/cell-renderers/select-ai-insight-affordance.js +96 -0
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.d.ts +30 -10
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +72 -24
- package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.d.ts +42 -0
- package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.js +86 -0
- package/dist/components/data/ag-grid-react/index.d.ts +1 -1
- package/dist/components/data/ag-grid-react/index.js +162 -146
- package/dist/components/data/data-table/data-table.js +85 -82
- package/dist/components/data/data-table/data-table.types.d.ts +5 -0
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +2 -3
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +2 -3
- package/dist/components/data/expandable-list-item/sku-next-page-coordinator.d.ts +14 -0
- package/dist/components/data/expandable-list-item/sku-strip-lookahead.d.ts +26 -0
- package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +10 -0
- package/dist/components/data/expandable-list-item/useSkuStripVirtualizer.d.ts +30 -0
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +81 -0
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.item-grid.d.ts +1 -0
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.product-card.d.ts +7 -0
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +2 -0
- package/dist/components/data-display/chart/chart-heatmap-demos.d.ts +3 -0
- package/dist/components/data-display/chart/chart-heatmap-play.d.ts +9 -0
- package/dist/components/data-display/chart/chart.category-cluster-heatmap.stories-data.d.ts +22 -0
- package/dist/components/data-display/chart/chart.diverging-heatmap.stories-data.d.ts +43 -0
- package/dist/components/data-display/chart/chart.js +100 -93
- package/dist/components/data-display/chart/chart.types.d.ts +10 -0
- package/dist/components/data-display/chart/chart.utils.d.ts +14 -2
- package/dist/components/data-display/chart/chart.utils.js +132 -35
- package/dist/components/data-display/chart/index.js +15 -13
- package/dist/components/data-display/chart/resolve-highcharts-options.js +19 -14
- package/dist/components/data-display/globe-map/globe-map.d.ts +8 -0
- package/dist/components/data-display/globe-map/globe-map.js +161 -0
- package/dist/components/data-display/globe-map/globe-map.stories-data.d.ts +12 -0
- package/dist/components/data-display/globe-map/globe-map.types.d.ts +83 -0
- package/dist/components/data-display/globe-map/globe-map.utils.d.ts +115 -0
- package/dist/components/data-display/globe-map/globe-map.utils.js +259 -0
- package/dist/components/data-display/globe-map/globe-map.variants.d.ts +19 -0
- package/dist/components/data-display/globe-map/globe-map.variants.js +80 -0
- package/dist/components/data-display/globe-map/index.d.ts +2 -0
- package/dist/components/data-display/globe-map/index.js +10 -0
- package/dist/components/data-display/globe-map/internals/globe-countries-110m.json.d.ts +4 -0
- package/dist/components/data-display/globe-map/internals/globe-countries-110m.json.js +7 -0
- package/dist/components/data-display/globe-map/internals/globe-map-context.d.ts +25 -0
- package/dist/components/data-display/globe-map/internals/globe-map-context.js +19 -0
- package/dist/components/data-display/globe-map/internals/globe-map-legend.d.ts +2 -0
- package/dist/components/data-display/globe-map/internals/globe-map-legend.js +51 -0
- package/dist/components/data-display/globe-map/internals/globe-map-point-card-carousel.d.ts +6 -0
- package/dist/components/data-display/globe-map/internals/globe-map-point-card-carousel.js +119 -0
- package/dist/components/data-display/globe-map/internals/globe-map-point-card.d.ts +2 -0
- package/dist/components/data-display/globe-map/internals/globe-map-point-card.js +106 -0
- package/dist/components/data-display/globe-map/internals/globe-map-scene.d.ts +17 -0
- package/dist/components/data-display/globe-map/internals/globe-map-scene.js +218 -0
- package/dist/components/data-display/globe-map/internals/globe-map-tooltip.d.ts +2 -0
- package/dist/components/data-display/globe-map/internals/globe-map-tooltip.js +33 -0
- package/dist/components/data-display/globe-map/internals/use-globe-map-scene.d.ts +45 -0
- package/dist/components/data-display/globe-map/internals/use-globe-map-scene.js +270 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.d.ts +9 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.js +94 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.stories-data.d.ts +7 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.types.d.ts +43 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.variants.d.ts +11 -0
- package/dist/components/data-display/hex-tilemap/hex-tilemap.variants.js +47 -0
- package/dist/components/data-display/hex-tilemap/index.d.ts +2 -0
- package/dist/components/data-display/hex-tilemap/index.js +12 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-camera.d.ts +40 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-camera.js +103 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-country-lattices.d.ts +9 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-country-lattices.js +1387 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-geometry.d.ts +21 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-geometry.js +82 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-lattice.d.ts +18 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-lattice.js +47 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-layout.d.ts +10 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-layout.js +35 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-new-zealand-grid.d.ts +31 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-new-zealand-grid.js +138 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-regions.d.ts +6 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-regions.js +18 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-context.d.ts +24 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-context.js +19 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-legend.d.ts +2 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-legend.js +51 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-tooltip.d.ts +2 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-tooltip.js +36 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-viewport.d.ts +3 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-viewport.js +147 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-zoom.d.ts +13 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-tilemap-zoom.js +99 -0
- package/dist/components/data-display/hex-tilemap/internals/hex-world-grid.d.ts +8 -0
- package/dist/components/data-display/hex-tilemap/internals/use-hex-camera.d.ts +27 -0
- package/dist/components/data-display/hex-tilemap/internals/use-hex-camera.js +137 -0
- package/dist/components/data-display/notch-card/index.d.ts +2 -0
- package/dist/components/data-display/notch-card/index.js +6 -0
- package/dist/components/data-display/notch-card/notch-card.d.ts +7 -0
- package/dist/components/data-display/notch-card/notch-card.js +151 -0
- package/dist/components/data-display/notch-card/notch-card.path.d.ts +19 -0
- package/dist/components/data-display/notch-card/notch-card.path.js +118 -0
- package/dist/components/data-display/notch-card/notch-card.types.d.ts +15 -0
- package/dist/components/data-display/notch-card/notch-card.variants.d.ts +15 -0
- package/dist/components/data-display/notch-card/notch-card.variants.js +86 -0
- package/dist/components/feedback/hover-card/hover-card.d.ts +3 -1
- package/dist/components/feedback/hover-card/hover-card.js +28 -24
- package/dist/components/feedback/tooltip/overflow-tooltip.d.ts +1 -1
- package/dist/components/feedback/tooltip/overflow-tooltip.js +63 -57
- package/dist/components/feedback/tooltip/overflow-tooltip.types.d.ts +4 -0
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +2 -3
- 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/filter-strip/index.d.ts +1 -0
- package/dist/components/flows/filter-strip/index.js +4 -2
- package/dist/components/flows/iris-chat/index.d.ts +10 -0
- package/dist/components/flows/iris-chat/index.js +55 -0
- package/dist/components/flows/iris-chat/iris-chat-artifact.d.ts +4 -0
- package/dist/components/flows/iris-chat/iris-chat-artifact.js +125 -0
- package/dist/components/flows/iris-chat/iris-chat-composer.d.ts +3 -0
- package/dist/components/flows/iris-chat/iris-chat-composer.js +297 -0
- package/dist/components/flows/iris-chat/iris-chat-context.d.ts +14 -0
- package/dist/components/flows/iris-chat/iris-chat-context.js +23 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +18 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.js +176 -0
- package/dist/components/flows/iris-chat/iris-chat-markdown.d.ts +3 -0
- package/dist/components/flows/iris-chat/iris-chat-markdown.js +62 -0
- package/dist/components/flows/iris-chat/iris-chat-menu.d.ts +15 -0
- package/dist/components/flows/iris-chat/iris-chat-menu.js +259 -0
- package/dist/components/flows/iris-chat/iris-chat-prompt.d.ts +3 -0
- package/dist/components/flows/iris-chat/iris-chat-prompt.js +46 -0
- package/dist/components/flows/iris-chat/iris-chat-thinking.d.ts +12 -0
- package/dist/components/flows/iris-chat/iris-chat-thinking.js +202 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +37 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.js +493 -0
- package/dist/components/flows/iris-chat/iris-chat.d.ts +43 -0
- package/dist/components/flows/iris-chat/iris-chat.js +336 -0
- package/dist/components/flows/iris-chat/iris-chat.types.d.ts +208 -0
- package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +14 -0
- package/dist/components/flows/iris-chat/iris-chat.variants.js +78 -0
- package/dist/components/flows/iris-chat/read-iris-greeting-period.d.ts +4 -0
- package/dist/components/flows/iris-chat/read-iris-greeting-period.js +16 -0
- package/dist/components/flows/wizard/index.d.ts +2 -2
- package/dist/components/flows/wizard/index.js +17 -13
- package/dist/components/flows/wizard/wizard-context.d.ts +6 -1
- package/dist/components/flows/wizard/wizard-context.js +15 -7
- package/dist/components/flows/wizard/wizard.d.ts +22 -4
- package/dist/components/flows/wizard/wizard.js +278 -174
- package/dist/components/flows/wizard/wizard.types.d.ts +40 -0
- package/dist/components/forms/choice-card/assets/featured-backdrop-baked.webp.js +4 -0
- package/dist/components/forms/choice-card/assets/featured-noise.webp.js +4 -0
- package/dist/components/forms/choice-card/choice-card-featured-arcs.d.ts +4 -0
- package/dist/components/forms/choice-card/choice-card-featured-arcs.js +42 -0
- package/dist/components/forms/choice-card/choice-card-featured-backdrop.d.ts +4 -0
- package/dist/components/forms/choice-card/choice-card-featured-backdrop.js +45 -0
- package/dist/components/forms/choice-card/choice-card-indicator.variants.d.ts +8 -0
- package/dist/components/forms/choice-card/choice-card-indicator.variants.js +5 -0
- package/dist/components/forms/choice-card/choice-card-percent.d.ts +11 -0
- package/dist/components/forms/choice-card/choice-card-percent.js +80 -0
- package/dist/components/forms/choice-card/choice-card.d.ts +40 -3
- package/dist/components/forms/choice-card/choice-card.js +651 -170
- package/dist/components/forms/choice-card/choice-card.types.d.ts +40 -0
- package/dist/components/forms/choice-card/choice-card.variants.d.ts +7 -0
- package/dist/components/forms/choice-card/choice-card.variants.js +100 -0
- package/dist/components/forms/choice-card/index.d.ts +2 -1
- package/dist/components/forms/choice-card/index.js +27 -10
- package/dist/components/forms/select/components/SelectTriggerValue.js +2 -3
- package/dist/components/forms/select/components/Submenu.js +2 -3
- package/dist/components/layout/header/header.d.ts +3 -2
- package/dist/components/layout/header/header.js +67 -47
- package/dist/components/layout/header/header.types.d.ts +1 -0
- package/dist/components/primitives/iris/iris-agent-cursor.d.ts +3 -0
- package/dist/components/primitives/iris/iris-agent-cursor.js +89 -0
- package/dist/components/primitives/iris/iris-alan-gradient-icon.d.ts +5 -0
- package/dist/components/primitives/iris/iris-alan-gradient-icon.js +69 -0
- package/dist/components/primitives/iris/iris-control-context.d.ts +15 -0
- package/dist/components/primitives/iris/iris-control-context.js +44 -0
- package/dist/components/primitives/iris/iris-control-region.d.ts +10 -0
- package/dist/components/primitives/iris/iris-control-region.js +102 -0
- package/dist/components/primitives/iris/iris-control.types.d.ts +24 -0
- package/dist/components/primitives/iris/iris-control.variants.d.ts +4 -0
- package/dist/components/primitives/iris/iris-control.variants.js +20 -0
- package/dist/components/primitives/iris/iris.d.ts +24 -0
- package/dist/components/primitives/iris/iris.js +232 -0
- package/dist/components/primitives/iris/iris.types.d.ts +35 -0
- package/dist/components/primitives/iris/iris.variants.d.ts +30 -0
- package/dist/components/primitives/iris/iris.variants.js +120 -0
- package/dist/components/primitives/stepper/internals/pipeline-current-mark.d.ts +6 -0
- package/dist/components/primitives/stepper/internals/pipeline-current-mark.js +35 -0
- package/dist/components/primitives/stepper/internals/rail-status-dot.d.ts +13 -0
- package/dist/components/primitives/stepper/internals/rail-status-dot.js +70 -0
- package/dist/components/primitives/stepper/internals/step-hit-target.d.ts +15 -0
- package/dist/components/primitives/stepper/internals/step-hit-target.js +51 -0
- package/dist/components/primitives/stepper/internals/step-model.d.ts +3 -0
- package/dist/components/primitives/stepper/internals/step-model.js +10 -0
- package/dist/components/primitives/stepper/internals/stepper-compact.d.ts +5 -0
- package/dist/components/primitives/stepper/internals/stepper-compact.js +68 -0
- package/dist/components/primitives/stepper/internals/stepper-pipeline.d.ts +7 -0
- package/dist/components/primitives/stepper/internals/stepper-pipeline.js +87 -0
- package/dist/components/primitives/stepper/internals/stepper-rail.d.ts +5 -0
- package/dist/components/primitives/stepper/internals/stepper-rail.js +105 -0
- package/dist/components/primitives/stepper/internals/stepper-summary.d.ts +5 -0
- package/dist/components/primitives/stepper/internals/stepper-summary.js +103 -0
- package/dist/components/primitives/stepper/internals/stepper-track.d.ts +8 -0
- package/dist/components/primitives/stepper/internals/stepper-track.js +170 -0
- package/dist/components/primitives/stepper/stepper.d.ts +1 -0
- package/dist/components/primitives/stepper/stepper.js +134 -52
- package/dist/components/primitives/stepper/stepper.types.d.ts +17 -0
- package/dist/components/primitives/stepper/stepper.variants.d.ts +26 -0
- package/dist/components/primitives/stepper/stepper.variants.js +165 -5
- package/dist/components/primitives/tabs/tabs.d.ts +4 -1
- package/dist/components/primitives/tabs/tabs.js +131 -59
- package/dist/components/primitives/tabs/tabs.types.d.ts +5 -1
- package/dist/i18n/defaultMessages.d.ts +100 -0
- package/dist/i18n/defaultMessages.js +118 -21
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/locales/de.js +99 -2
- package/dist/i18n/locales/es.js +99 -2
- package/dist/i18n/locales/hi.js +99 -2
- package/dist/i18n/locales/kn.js +99 -2
- package/dist/impact-nova-components.css +972 -2
- package/dist/impact-nova-tokens.scss +109 -1
- package/dist/impact-nova.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +585 -551
- package/dist/lib/virtualized/directional-range-extractor.d.ts +26 -0
- package/dist/lib/virtualized/directional-range-extractor.js +39 -0
- package/dist/lib/virtualized/index.d.ts +3 -0
- package/dist/lib/virtualized/index.js +35 -27
- package/dist/lib/virtualized/scroll-seek.d.ts +61 -0
- package/dist/lib/virtualized/scroll-seek.js +61 -0
- package/dist/lib/virtualized/usePaintedRangeVirtualizer.d.ts +19 -0
- package/dist/lib/virtualized/usePaintedRangeVirtualizer.js +30 -0
- package/dist/lib/virtualized/useResponsiveColumnCount.d.ts +35 -0
- package/dist/lib/virtualized/useResponsiveColumnCount.js +51 -0
- package/dist/lib/virtualized/useScrollSeekPaintedRange.d.ts +13 -0
- package/dist/lib/virtualized/useScrollSeekPaintedRange.js +45 -0
- package/dist/lib/virtualized/useVirtualizedList.d.ts +7 -0
- package/dist/lib/virtualized/useVirtualizedList.js +89 -87
- package/dist/lib/virtualized/useVirtualizedRows.d.ts +9 -2
- package/dist/lib/virtualized/useVirtualizedRows.js +15 -13
- package/dist/lib/virtualized/virtualized.types.d.ts +2 -0
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/tailwind.config.js +3 -1
- package/dist/theme/tailwind-colors.js +2 -1
- package/package.json +39 -4
|
@@ -31,6 +31,14 @@ export declare const AG_GRID_CELL_COMPONENTS: {
|
|
|
31
31
|
(props: import('./cell-renderers/select-display-renderer').SelectDisplayRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
32
32
|
displayName: string;
|
|
33
33
|
};
|
|
34
|
+
readonly styleDescriptionDisplay: {
|
|
35
|
+
(props: import('./cell-renderers/style-description-display-renderer').StyleDescriptionDisplayRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
displayName: string;
|
|
37
|
+
};
|
|
38
|
+
readonly listSelectDisplay: {
|
|
39
|
+
(props: import('./cell-renderers/list-select-display-renderer').ListSelectDisplayRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
displayName: string;
|
|
41
|
+
};
|
|
34
42
|
readonly checkboxDisplay: {
|
|
35
43
|
(props: import('./cell-renderers/checkbox-display-renderer').CheckboxDisplayRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
36
44
|
displayName: string;
|
|
@@ -53,6 +61,7 @@ export declare const AG_GRID_CELL_COMPONENTS: {
|
|
|
53
61
|
};
|
|
54
62
|
readonly inputEditor: import('react').NamedExoticComponent<import('./cell-renderers/editors/input-cell-editor').InputCellEditorProps & import('react').RefAttributes<import('./cell-renderers/editors/input-cell-editor').InputCellEditorHandle>>;
|
|
55
63
|
readonly selectEditor: import('react').ForwardRefExoticComponent<import('./cell-renderers/editors/select-cell-editor').SelectCellEditorProps & import('react').RefAttributes<unknown>>;
|
|
64
|
+
readonly listSelectEditor: import('react').ForwardRefExoticComponent<import('./cell-renderers/editors/list-select-cell-editor').ListSelectCellEditorProps & import('react').RefAttributes<unknown>>;
|
|
56
65
|
readonly textareaEditor: import('react').ForwardRefExoticComponent<import('./cell-renderers/editors/textarea-cell-editor').TextAreaCellEditorProps & import('react').RefAttributes<unknown>>;
|
|
57
66
|
readonly dateEditor: import('react').ForwardRefExoticComponent<import('./cell-renderers/editors/date-cell-editor').DateCellEditorProps & import('react').RefAttributes<unknown>>;
|
|
58
67
|
readonly splitEditor: import('react').ForwardRefExoticComponent<import('./cell-renderers/editors/split-cell-editor').SplitCellEditorProps & import('react').RefAttributes<unknown>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Visual card height in the list skin (Figma row). */
|
|
2
|
+
export declare const AG_GRID_LIST_CARD_HEIGHT_PX = 48;
|
|
3
|
+
/** Gap between list cards; also the space under the header bar. */
|
|
4
|
+
export declare const AG_GRID_LIST_ROW_GAP_PX = 12;
|
|
5
|
+
/** AG Grid `rowHeight` for `variant="list"`: card + gap so virtualization keeps a 12px gutter. */
|
|
6
|
+
export declare const AG_GRID_LIST_ROW_HEIGHT_PX: number;
|
|
7
|
+
/** List `rowHeight` by DataTable density. Card scales; the 12px gutter stays. */
|
|
8
|
+
export declare const AG_GRID_LIST_ROW_HEIGHT_BY_DENSITY: {
|
|
9
|
+
readonly default: number;
|
|
10
|
+
readonly compact: number;
|
|
11
|
+
readonly comfort: number;
|
|
12
|
+
};
|
|
13
|
+
/** Visible header bar height. Gap under the bar is CSS margin on the pinned header, not extra headerHeight — stuffing 12px into headerHeight made the bar read as 52px. */
|
|
14
|
+
export declare const AG_GRID_LIST_HEADER_HEIGHT_PX = 40;
|
|
15
|
+
export type { AgGridVisualVariant } from './ag-grid.types';
|
|
16
|
+
export declare const customAgGridListTheme: import('ag-stack').Theme<unknown>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { customAgGridTheme as o } from "./theme.js";
|
|
2
|
+
const e = 48, r = 12, _ = e + r, s = {
|
|
3
|
+
default: _,
|
|
4
|
+
compact: 30 + r,
|
|
5
|
+
comfort: 52 + r
|
|
6
|
+
}, t = 40, a = o.withParams({
|
|
7
|
+
columnBorder: !1,
|
|
8
|
+
rowBorder: !1,
|
|
9
|
+
headerColumnBorder: !1,
|
|
10
|
+
headerRowBorder: !1,
|
|
11
|
+
wrapperBorder: !1,
|
|
12
|
+
headerHeight: t,
|
|
13
|
+
// Card hover/selection is list CSS (::before on .ag-row); avoid full-slot theme overlay.
|
|
14
|
+
rowHoverColor: "transparent"
|
|
15
|
+
});
|
|
16
|
+
export {
|
|
17
|
+
e as AG_GRID_LIST_CARD_HEIGHT_PX,
|
|
18
|
+
t as AG_GRID_LIST_HEADER_HEIGHT_PX,
|
|
19
|
+
r as AG_GRID_LIST_ROW_GAP_PX,
|
|
20
|
+
s as AG_GRID_LIST_ROW_HEIGHT_BY_DENSITY,
|
|
21
|
+
_ as AG_GRID_LIST_ROW_HEIGHT_PX,
|
|
22
|
+
a as customAgGridListTheme
|
|
23
|
+
};
|
|
@@ -9,6 +9,8 @@ export interface ImpactNovaColDef<TData = unknown> extends ColDef<TData> {
|
|
|
9
9
|
/** Original column-level editable before addRowDataEditableCheck wraps the callback */
|
|
10
10
|
_originalEditable?: boolean;
|
|
11
11
|
}
|
|
12
|
+
/** Visual skin for `AgGridWrapper` / `DataTableContent`. */
|
|
13
|
+
export type AgGridVisualVariant = 'table' | 'list';
|
|
12
14
|
/**
|
|
13
15
|
* Extended header component params for custom header
|
|
14
16
|
* Extends IHeaderParams to include all AG Grid header properties plus custom ones
|
|
@@ -150,6 +152,11 @@ export interface AgGridWrapperProps<TData = unknown> extends Omit<AgGridReactPro
|
|
|
150
152
|
* Application code must rely on document CSS variables and the default theme.
|
|
151
153
|
*/
|
|
152
154
|
themeOverride?: Theme;
|
|
155
|
+
/**
|
|
156
|
+
* Visual skin. `"table"` is the default grid chrome. `"list"` keeps the same
|
|
157
|
+
* column model (sort, filter, search, pagination, SSRM) with card-row styling.
|
|
158
|
+
*/
|
|
159
|
+
variant?: AgGridVisualVariant;
|
|
153
160
|
}
|
|
154
161
|
/**
|
|
155
162
|
* Filter operators for advanced filtering.
|
package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ICellEditorParams } from 'ag-grid-community';
|
|
2
|
+
import { SelectOption } from '../types';
|
|
3
|
+
export interface ListSelectCellEditorProps extends ICellEditorParams {
|
|
4
|
+
options?: SelectOption[];
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
isSearchable?: boolean;
|
|
7
|
+
isClearable?: boolean;
|
|
8
|
+
onValueChange?: (value: string | null) => void;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* List-skin select editor. Real Select trigger so display and edit chrome match
|
|
12
|
+
* (32px field, border, clear + chevron). Table grids keep `SelectCellEditor`.
|
|
13
|
+
*/
|
|
14
|
+
export declare const ListSelectCellEditor: import('react').ForwardRefExoticComponent<ListSelectCellEditorProps & import('react').RefAttributes<unknown>>;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as E, useState as D, useRef as O, useImperativeHandle as R, useCallback as r } from "react";
|
|
3
|
+
import { Select as j } from "../../../../forms/select/select.js";
|
|
4
|
+
import { cn as y } from "../../../../../lib/utils.js";
|
|
5
|
+
const I = E((g, C) => {
|
|
6
|
+
const {
|
|
7
|
+
value: l,
|
|
8
|
+
options: v = [],
|
|
9
|
+
placeholder: h = "Select...",
|
|
10
|
+
isSearchable: S = !0,
|
|
11
|
+
isClearable: b = !0,
|
|
12
|
+
stopEditing: i,
|
|
13
|
+
onValueChange: u,
|
|
14
|
+
colDef: w
|
|
15
|
+
} = g, M = w?.cellRendererParams?.triggerClassName, t = l && typeof l == "object" && "value" in l, o = t ? l.cellMetadata : void 0, c = t ? l.value : l, d = v.map((e) => ({
|
|
16
|
+
value: e.value,
|
|
17
|
+
label: e.label,
|
|
18
|
+
isDisabled: e.isDisabled
|
|
19
|
+
})), [s, f] = D(
|
|
20
|
+
c != null ? String(c) : null
|
|
21
|
+
), m = O(!1);
|
|
22
|
+
R(C, () => ({
|
|
23
|
+
getValue() {
|
|
24
|
+
return t ? {
|
|
25
|
+
value: s,
|
|
26
|
+
...o !== void 0 && { cellMetadata: o }
|
|
27
|
+
} : s;
|
|
28
|
+
},
|
|
29
|
+
isCancelBeforeStart() {
|
|
30
|
+
return !1;
|
|
31
|
+
},
|
|
32
|
+
isCancelAfterEnd() {
|
|
33
|
+
return !1;
|
|
34
|
+
},
|
|
35
|
+
isPopup() {
|
|
36
|
+
return !1;
|
|
37
|
+
}
|
|
38
|
+
}));
|
|
39
|
+
const N = d.find((e) => e.value === s) ?? null, a = r(() => {
|
|
40
|
+
m.current || (m.current = !0, i());
|
|
41
|
+
}, [i]), x = r(
|
|
42
|
+
(e) => {
|
|
43
|
+
const p = e ? e.value : null;
|
|
44
|
+
f(p), u?.(p), a();
|
|
45
|
+
},
|
|
46
|
+
[a, f, u]
|
|
47
|
+
), V = r(() => {
|
|
48
|
+
a();
|
|
49
|
+
}, [a]);
|
|
50
|
+
return /* @__PURE__ */ n("div", { className: "flex h-full w-full min-w-0 items-center ag-cell-inner-padding", children: /* @__PURE__ */ n("div", { className: y("min-w-0 flex-1", M), children: /* @__PURE__ */ n(
|
|
51
|
+
j,
|
|
52
|
+
{
|
|
53
|
+
options: d,
|
|
54
|
+
value: N,
|
|
55
|
+
onChange: x,
|
|
56
|
+
onMenuClose: V,
|
|
57
|
+
placeholder: h,
|
|
58
|
+
isSearchable: S,
|
|
59
|
+
isClearable: b,
|
|
60
|
+
isMulti: !1,
|
|
61
|
+
defaultMenuIsOpen: !0,
|
|
62
|
+
className: "w-full max-w-full",
|
|
63
|
+
parentClassName: "w-full max-w-full gap-0"
|
|
64
|
+
}
|
|
65
|
+
) }) });
|
|
66
|
+
});
|
|
67
|
+
I.displayName = "ListSelectCellEditor";
|
|
68
|
+
export {
|
|
69
|
+
I as ListSelectCellEditor
|
|
70
|
+
};
|
|
@@ -11,6 +11,14 @@ export interface SelectCellEditorProps extends ICellEditorParams {
|
|
|
11
11
|
isClearable?: boolean;
|
|
12
12
|
/** Optional callback when value changes */
|
|
13
13
|
onValueChange?: (value: string | null) => void;
|
|
14
|
+
/** Force-show AI sparkle (same contract as SelectDisplayRenderer) */
|
|
15
|
+
showAiInsight?: boolean;
|
|
16
|
+
aiInsightField?: string;
|
|
17
|
+
confidenceScore?: number;
|
|
18
|
+
confidenceScoreField?: string;
|
|
19
|
+
confidenceReason?: string;
|
|
20
|
+
confidenceReasonField?: string;
|
|
21
|
+
confidenceLabel?: string;
|
|
14
22
|
}
|
|
15
23
|
/**
|
|
16
24
|
* SelectCellEditor - AG Grid cell editor using impact-nova's Select component.
|
|
@@ -18,11 +26,8 @@ export interface SelectCellEditorProps extends ICellEditorParams {
|
|
|
18
26
|
* Mounted by AG Grid when a cell enters edit mode. The Select dropdown opens
|
|
19
27
|
* automatically on mount so the user doesn't need a second click.
|
|
20
28
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* The Select trigger is styled to blend in seamlessly.
|
|
24
|
-
*
|
|
25
|
-
* Only holds a single piece of state: the currently selected value.
|
|
29
|
+
* Layout matches SelectDisplayRenderer (select + optional AI sparkle) so the
|
|
30
|
+
* sparkle does not disappear while editing.
|
|
26
31
|
*
|
|
27
32
|
* Usage in colDef:
|
|
28
33
|
* ```ts
|
|
@@ -1,28 +1,37 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { Select as
|
|
4
|
-
|
|
1
|
+
import { jsxs as O, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as y, useState as F, useRef as k, useImperativeHandle as B, useCallback as c } from "react";
|
|
3
|
+
import { Select as H } from "../../../../forms/select/select.js";
|
|
4
|
+
import { SelectAiInsightAffordance as L } from "../select-ai-insight-affordance.js";
|
|
5
|
+
const P = y((g, b) => {
|
|
5
6
|
const {
|
|
6
7
|
value: l,
|
|
7
8
|
options: v = [],
|
|
8
9
|
placeholder: C = "Select...",
|
|
9
|
-
isSearchable:
|
|
10
|
-
isClearable:
|
|
10
|
+
isSearchable: S = !0,
|
|
11
|
+
isClearable: w = !0,
|
|
11
12
|
stopEditing: r,
|
|
12
|
-
onValueChange:
|
|
13
|
-
|
|
13
|
+
onValueChange: u,
|
|
14
|
+
data: t,
|
|
15
|
+
showAiInsight: x,
|
|
16
|
+
aiInsightField: M,
|
|
17
|
+
confidenceScore: V,
|
|
18
|
+
confidenceScoreField: j,
|
|
19
|
+
confidenceReason: D,
|
|
20
|
+
confidenceReasonField: E,
|
|
21
|
+
confidenceLabel: I
|
|
22
|
+
} = g, n = l && typeof l == "object" && "value" in l, o = n ? l.cellMetadata : void 0, d = n ? l.value : l, f = v.map((e) => ({
|
|
14
23
|
value: e.value,
|
|
15
24
|
label: e.label,
|
|
16
25
|
isDisabled: e.isDisabled
|
|
17
|
-
})), [
|
|
18
|
-
|
|
19
|
-
),
|
|
20
|
-
|
|
26
|
+
})), [s, p] = F(
|
|
27
|
+
d != null ? String(d) : null
|
|
28
|
+
), h = k(!1);
|
|
29
|
+
B(b, () => ({
|
|
21
30
|
getValue() {
|
|
22
|
-
return
|
|
23
|
-
value:
|
|
24
|
-
...
|
|
25
|
-
} :
|
|
31
|
+
return n ? {
|
|
32
|
+
value: s,
|
|
33
|
+
...o !== void 0 && { cellMetadata: o }
|
|
34
|
+
} : s;
|
|
26
35
|
},
|
|
27
36
|
isCancelBeforeStart() {
|
|
28
37
|
return !1;
|
|
@@ -34,35 +43,58 @@ const D = E((h, m) => {
|
|
|
34
43
|
return !0;
|
|
35
44
|
}
|
|
36
45
|
}));
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
}, [r]),
|
|
46
|
+
const N = f.find((e) => e.value === s) ?? null, a = c(() => {
|
|
47
|
+
h.current || (h.current = !0, r());
|
|
48
|
+
}, [r]), R = c(
|
|
40
49
|
(e) => {
|
|
41
|
-
const
|
|
42
|
-
|
|
50
|
+
const m = e ? e.value : null;
|
|
51
|
+
p(m), u?.(m), a();
|
|
43
52
|
},
|
|
44
|
-
[
|
|
45
|
-
),
|
|
46
|
-
|
|
47
|
-
}, [
|
|
48
|
-
return /* @__PURE__ */
|
|
49
|
-
|
|
53
|
+
[a, u, p]
|
|
54
|
+
), A = c(() => {
|
|
55
|
+
a();
|
|
56
|
+
}, [a]);
|
|
57
|
+
return /* @__PURE__ */ O(
|
|
58
|
+
"div",
|
|
50
59
|
{
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
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
|
+
"data-component": "select-cell-editor",
|
|
62
|
+
children: [
|
|
63
|
+
/* @__PURE__ */ i("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ i(
|
|
64
|
+
H,
|
|
65
|
+
{
|
|
66
|
+
options: f,
|
|
67
|
+
value: N,
|
|
68
|
+
onChange: R,
|
|
69
|
+
onMenuClose: A,
|
|
70
|
+
placeholder: C,
|
|
71
|
+
isSearchable: S,
|
|
72
|
+
isClearable: w,
|
|
73
|
+
isMulti: !1,
|
|
74
|
+
defaultMenuIsOpen: !0,
|
|
75
|
+
className: "!border-none !shadow-none !ring-0 !h-7 !rounded-[8px] !px-1.5",
|
|
76
|
+
parentClassName: "!w-full !gap-0"
|
|
77
|
+
}
|
|
78
|
+
) }),
|
|
79
|
+
/* @__PURE__ */ i(
|
|
80
|
+
L,
|
|
81
|
+
{
|
|
82
|
+
showAiInsight: x,
|
|
83
|
+
aiInsightField: M,
|
|
84
|
+
confidenceScore: V,
|
|
85
|
+
confidenceScoreField: j,
|
|
86
|
+
confidenceReason: D,
|
|
87
|
+
confidenceReasonField: E,
|
|
88
|
+
confidenceLabel: I,
|
|
89
|
+
data: t && typeof t == "object" ? t : null,
|
|
90
|
+
cellMetadata: o
|
|
91
|
+
}
|
|
92
|
+
)
|
|
93
|
+
]
|
|
62
94
|
}
|
|
63
|
-
)
|
|
95
|
+
);
|
|
64
96
|
});
|
|
65
|
-
|
|
97
|
+
P.displayName = "SelectCellEditor";
|
|
66
98
|
export {
|
|
67
|
-
|
|
99
|
+
P as SelectCellEditor
|
|
68
100
|
};
|
|
@@ -12,6 +12,8 @@ export { LinkCellRenderer } from './link-with-batch-cell-renderer';
|
|
|
12
12
|
export { SplitCellRenderer } from './split-cell-renderer';
|
|
13
13
|
export { InputDisplayRenderer } from './input-display-renderer';
|
|
14
14
|
export { SelectDisplayRenderer } from './select-display-renderer';
|
|
15
|
+
export { StyleDescriptionDisplayRenderer } from './style-description-display-renderer';
|
|
16
|
+
export { ListSelectDisplayRenderer } from './list-select-display-renderer';
|
|
15
17
|
export { CheckboxDisplayRenderer } from './checkbox-display-renderer';
|
|
16
18
|
export { SwitchDisplayRenderer } from './switch-display-renderer';
|
|
17
19
|
export { TextAreaDisplayRenderer } from './textarea-display-renderer';
|
|
@@ -19,6 +21,7 @@ export { DateDisplayRenderer } from './date-display-renderer';
|
|
|
19
21
|
export { PercentProgressDisplayRenderer } from './percent-progress-display-renderer';
|
|
20
22
|
export { InputCellEditor } from './editors/input-cell-editor';
|
|
21
23
|
export { SelectCellEditor } from './editors/select-cell-editor';
|
|
24
|
+
export { ListSelectCellEditor } from './editors/list-select-cell-editor';
|
|
22
25
|
export { TextAreaCellEditor } from './editors/textarea-cell-editor';
|
|
23
26
|
export { DateCellEditor } from './editors/date-cell-editor';
|
|
24
27
|
export { SplitCellEditor } from './editors/split-cell-editor';
|
|
@@ -28,11 +31,15 @@ export type { StatusBadgeRendererProps } from './status-badge-renderer';
|
|
|
28
31
|
export type { ActionsCellRendererProps } from './actions-cell-renderer';
|
|
29
32
|
export type { InputDisplayRendererProps } from './input-display-renderer';
|
|
30
33
|
export type { SelectDisplayRendererProps } from './select-display-renderer';
|
|
34
|
+
export type { SelectAiInsightMetadata } from './select-ai-insight-affordance';
|
|
35
|
+
export type { StyleDescriptionDisplayRendererProps, StyleDescriptionCellValue, } from './style-description-display-renderer';
|
|
36
|
+
export type { ListSelectDisplayRendererProps } from './list-select-display-renderer';
|
|
31
37
|
export type { SplitCellRendererProps } from './split-cell-renderer';
|
|
32
38
|
export type { InputCellEditorProps } from './editors/input-cell-editor';
|
|
33
39
|
export type { PercentProgressDisplayRendererProps } from './percent-progress-display-renderer';
|
|
34
40
|
export type { PercentProgressCellEditorProps } from './editors/percent-progress-cell-editor';
|
|
35
41
|
export type { SelectCellEditorProps } from './editors/select-cell-editor';
|
|
42
|
+
export type { ListSelectCellEditorProps } from './editors/list-select-cell-editor';
|
|
36
43
|
export type { SplitCellEditorProps } from './editors/split-cell-editor';
|
|
37
44
|
export type { AutocompleteRule } from './editors/input-cell-editor';
|
|
38
45
|
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';
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
-
import { EmptyCellRenderer as
|
|
1
|
+
import { EmptyCellRenderer as p } from "./empty-cell-renderer.js";
|
|
2
2
|
import { BadgeCellRenderer as d } from "./badge-cell-renderer.js";
|
|
3
|
-
import { StatusBadgeRenderer as
|
|
3
|
+
import { StatusBadgeRenderer as n } from "./status-badge-renderer.js";
|
|
4
4
|
import { ActionsCellRenderer as x } from "./actions-cell-renderer.js";
|
|
5
5
|
import { LinkCellRenderer as s } from "./link-with-batch-cell-renderer.js";
|
|
6
6
|
import { SplitCellRenderer as R } from "./split-cell-renderer.js";
|
|
7
7
|
import { InputDisplayRenderer as D } from "./input-display-renderer.js";
|
|
8
8
|
import { SelectDisplayRenderer as g } from "./select-display-renderer.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
9
|
+
import { StyleDescriptionDisplayRenderer as L } from "./style-description-display-renderer.js";
|
|
10
|
+
import { ListSelectDisplayRenderer as S } from "./list-select-display-renderer.js";
|
|
11
|
+
import { CheckboxDisplayRenderer as A } from "./checkbox-display-renderer.js";
|
|
12
|
+
import { SwitchDisplayRenderer as P } from "./switch-display-renderer.js";
|
|
13
|
+
import { TextAreaDisplayRenderer as I } from "./textarea-display-renderer.js";
|
|
14
|
+
import { DateDisplayRenderer as B } from "./date-display-renderer.js";
|
|
15
|
+
import { PercentProgressDisplayRenderer as b } from "./percent-progress-display-renderer.js";
|
|
16
|
+
import { InputCellEditor as k } from "./editors/input-cell-editor.js";
|
|
17
|
+
import { SelectCellEditor as O } from "./editors/select-cell-editor.js";
|
|
18
|
+
import { ListSelectCellEditor as w } from "./editors/list-select-cell-editor.js";
|
|
19
|
+
import { TextAreaCellEditor as j } from "./editors/textarea-cell-editor.js";
|
|
20
|
+
import { DateCellEditor as z } from "./editors/date-cell-editor.js";
|
|
21
|
+
import { SplitCellEditor as J } from "./editors/split-cell-editor.js";
|
|
22
|
+
import { PercentProgressCellEditor as M } from "./editors/percent-progress-cell-editor.js";
|
|
23
|
+
import { applyValueFormatter as W, evaluateValidationRules as X, getFieldValue as Y, mapBadgeColor as Z, mapBadgeVariant as $, resolveCellEditable as ee, resolveValueFormatter as re } from "./cell-renderer-utils.js";
|
|
24
|
+
import { addRowDataEditableCheck as te } from "../editable-utils.js";
|
|
22
25
|
const e = "ag-cell-no-padding", r = "ag-cell-renderer-full-control", o = "ag-cell-inner-padding";
|
|
23
26
|
export {
|
|
24
27
|
r as AG_CELL_FULL_CONTROL,
|
|
@@ -26,29 +29,32 @@ export {
|
|
|
26
29
|
e as AG_CELL_NO_PADDING,
|
|
27
30
|
x as ActionsCellRenderer,
|
|
28
31
|
d as BadgeCellRenderer,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
A as CheckboxDisplayRenderer,
|
|
33
|
+
z as DateCellEditor,
|
|
34
|
+
B as DateDisplayRenderer,
|
|
35
|
+
p as EmptyCellRenderer,
|
|
36
|
+
k as InputCellEditor,
|
|
34
37
|
D as InputDisplayRenderer,
|
|
35
38
|
s as LinkCellRenderer,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
+
w as ListSelectCellEditor,
|
|
40
|
+
S as ListSelectDisplayRenderer,
|
|
41
|
+
M as PercentProgressCellEditor,
|
|
42
|
+
b as PercentProgressDisplayRenderer,
|
|
43
|
+
O as SelectCellEditor,
|
|
39
44
|
g as SelectDisplayRenderer,
|
|
40
|
-
|
|
45
|
+
J as SplitCellEditor,
|
|
41
46
|
R as SplitCellRenderer,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
47
|
+
n as StatusBadgeRenderer,
|
|
48
|
+
L as StyleDescriptionDisplayRenderer,
|
|
49
|
+
P as SwitchDisplayRenderer,
|
|
50
|
+
j as TextAreaCellEditor,
|
|
51
|
+
I as TextAreaDisplayRenderer,
|
|
52
|
+
te as addRowDataEditableCheck,
|
|
53
|
+
W as applyValueFormatter,
|
|
54
|
+
X as evaluateValidationRules,
|
|
55
|
+
Y as getFieldValue,
|
|
56
|
+
Z as mapBadgeColor,
|
|
57
|
+
$ as mapBadgeVariant,
|
|
58
|
+
ee as resolveCellEditable,
|
|
59
|
+
re as resolveValueFormatter
|
|
54
60
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ICellRendererParams } from 'ag-grid-community';
|
|
2
|
+
import { SelectOption } from './types';
|
|
3
|
+
export interface ListSelectDisplayRendererProps extends ICellRendererParams {
|
|
4
|
+
options?: SelectOption[];
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
isClearable?: boolean;
|
|
8
|
+
triggerClassName?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* List-skin select display. Impersonates the Select trigger (32px field, border,
|
|
12
|
+
* clear + chevron) without mounting a Select per virtualized row.
|
|
13
|
+
*
|
|
14
|
+
* Table grids keep `SelectDisplayRenderer`.
|
|
15
|
+
*/
|
|
16
|
+
export declare const ListSelectDisplayRenderer: {
|
|
17
|
+
(props: ListSelectDisplayRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { jsx as t, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { Cross as N, ChevronRight as D } from "impact-nova-icons";
|
|
3
|
+
import { cn as r } from "../../../../lib/utils.js";
|
|
4
|
+
import { selectTriggerVariants as j } from "../../../forms/select/select.variants.js";
|
|
5
|
+
const C = (b) => {
|
|
6
|
+
const {
|
|
7
|
+
value: l,
|
|
8
|
+
options: g = [],
|
|
9
|
+
placeholder: h = "Select...",
|
|
10
|
+
disabled: i,
|
|
11
|
+
isClearable: x = !0,
|
|
12
|
+
triggerClassName: w,
|
|
13
|
+
colDef: o,
|
|
14
|
+
data: s,
|
|
15
|
+
setValue: v
|
|
16
|
+
} = b, d = l && typeof l == "object" && "cellMetadata" in l ? l.cellMetadata?._isDisabled : void 0, f = s && typeof s == "object" && "rowMetadata" in s ? s.rowMetadata?._isDisabled : void 0;
|
|
17
|
+
let e = !1;
|
|
18
|
+
if (!i) {
|
|
19
|
+
const a = o?._originalEditable;
|
|
20
|
+
o?.editable === !1 ? e = !1 : d === !1 ? e = !0 : d === !0 ? e = !1 : f === !1 ? e = !0 : f === !0 ? e = !1 : e = a === !0 || o?.editable === !0;
|
|
21
|
+
}
|
|
22
|
+
const n = l && typeof l == "object" && "value" in l ? l.value : l, u = g.find((a) => a.value === String(n ?? ""))?.label ?? (n != null && n !== "" ? String(n) : ""), c = !u, y = x && e && !c && !i, p = (a) => {
|
|
23
|
+
a.preventDefault(), a.stopPropagation(), v?.(null);
|
|
24
|
+
};
|
|
25
|
+
return /* @__PURE__ */ t(
|
|
26
|
+
"div",
|
|
27
|
+
{
|
|
28
|
+
className: r(
|
|
29
|
+
"flex h-full w-full min-w-0 items-center ag-cell-inner-padding",
|
|
30
|
+
i && "cursor-not-allowed opacity-60",
|
|
31
|
+
!i && e && "in-ag-editable-cell-highlight"
|
|
32
|
+
),
|
|
33
|
+
children: /* @__PURE__ */ t("div", { className: r("min-w-0 flex-1", w), children: /* @__PURE__ */ t(
|
|
34
|
+
"div",
|
|
35
|
+
{
|
|
36
|
+
className: r(
|
|
37
|
+
j({
|
|
38
|
+
size: "default",
|
|
39
|
+
error: !1,
|
|
40
|
+
disabled: !!i,
|
|
41
|
+
readOnly: !e,
|
|
42
|
+
open: !1
|
|
43
|
+
}),
|
|
44
|
+
"w-full max-w-full"
|
|
45
|
+
),
|
|
46
|
+
"data-component": "select-trigger",
|
|
47
|
+
children: /* @__PURE__ */ m("div", { className: "flex w-full min-w-0 max-w-full items-center justify-between", children: [
|
|
48
|
+
/* @__PURE__ */ t(
|
|
49
|
+
"span",
|
|
50
|
+
{
|
|
51
|
+
className: r(
|
|
52
|
+
"block min-w-0 truncate text-[14px] text-content",
|
|
53
|
+
c ? "font-normal text-content-placeholder" : "font-normal"
|
|
54
|
+
),
|
|
55
|
+
children: c ? h : u
|
|
56
|
+
}
|
|
57
|
+
),
|
|
58
|
+
e ? /* @__PURE__ */ m("div", { className: "flex shrink-0 items-center gap-1 text-content-icon", children: [
|
|
59
|
+
y ? /* @__PURE__ */ t(
|
|
60
|
+
"span",
|
|
61
|
+
{
|
|
62
|
+
role: "presentation",
|
|
63
|
+
"data-clear-button": !0,
|
|
64
|
+
"aria-label": "Clear selection",
|
|
65
|
+
className: "relative z-10 inline-flex cursor-pointer p-0.5 hover:text-content-secondary",
|
|
66
|
+
onPointerDown: p,
|
|
67
|
+
onClick: p,
|
|
68
|
+
children: /* @__PURE__ */ t(N, { size: "11px", className: "text-content-icon" })
|
|
69
|
+
}
|
|
70
|
+
) : null,
|
|
71
|
+
/* @__PURE__ */ t(
|
|
72
|
+
D,
|
|
73
|
+
{
|
|
74
|
+
size: "16px",
|
|
75
|
+
"aria-hidden": !0,
|
|
76
|
+
className: "rotate-90 shrink-0"
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
] }) : null
|
|
80
|
+
] })
|
|
81
|
+
}
|
|
82
|
+
) })
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
};
|
|
86
|
+
C.displayName = "ListSelectDisplayRenderer";
|
|
87
|
+
export {
|
|
88
|
+
C as ListSelectDisplayRenderer
|
|
89
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface SelectAiInsightMetadata {
|
|
2
|
+
/** When true, show the AI sparkle affordance next to the select */
|
|
3
|
+
aiInsight?: boolean;
|
|
4
|
+
/** Confidence 0–100 shown in the hover card */
|
|
5
|
+
confidenceScore?: number;
|
|
6
|
+
/** Supporting copy under the confidence badge */
|
|
7
|
+
confidenceReason?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface SelectAiInsightAffordanceProps {
|
|
10
|
+
showAiInsight?: boolean;
|
|
11
|
+
aiInsightField?: string;
|
|
12
|
+
confidenceScore?: number;
|
|
13
|
+
confidenceScoreField?: string;
|
|
14
|
+
confidenceReason?: string;
|
|
15
|
+
confidenceReasonField?: string;
|
|
16
|
+
confidenceLabel?: string;
|
|
17
|
+
data?: Record<string, unknown> | null;
|
|
18
|
+
cellMetadata?: SelectAiInsightMetadata;
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Iris sparkle + optional confidence HoverCard for select cells.
|
|
23
|
+
* Stops mouse events from bubbling so AG Grid does not start cell edit.
|
|
24
|
+
*/
|
|
25
|
+
export declare function SelectAiInsightAffordance(props: SelectAiInsightAffordanceProps): import("react/jsx-runtime").JSX.Element | null;
|
|
26
|
+
export declare namespace SelectAiInsightAffordance {
|
|
27
|
+
var displayName: string;
|
|
28
|
+
}
|