impact-nova 3.0.0-alpha.2 → 3.0.0-alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/_virtual/index.js +4 -4
- package/dist/_virtual/index2.js +4 -4
- package/dist/components/data/ag-grid-react/ag-grid-list.d.ts +3 -1
- package/dist/components/data/ag-grid-react/ag-grid-list.demo-board.d.ts +46 -0
- package/dist/components/data/ag-grid-react/ag-grid-list.js +9 -8
- package/dist/components/data/ag-grid-react/ag-grid-list.key-attributes.d.ts +1 -0
- package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +65 -3
- package/dist/components/data/ag-grid-react/build-list-drag-column-defs.d.ts +8 -0
- package/dist/components/data/ag-grid-react/build-list-drag-column-defs.js +28 -0
- package/dist/components/data/ag-grid-react/cell-renderers/badge-cell-renderer.d.ts +2 -0
- package/dist/components/data/ag-grid-react/cell-renderers/badge-cell-renderer.js +15 -14
- package/dist/components/data/ag-grid-react/cell-renderers/badge-icon-registry.d.ts +10 -0
- package/dist/components/data/ag-grid-react/cell-renderers/badge-icon-registry.js +17 -0
- package/dist/components/data/ag-grid-react/cell-renderers/drag-handle-cell-renderer.d.ts +18 -0
- package/dist/components/data/ag-grid-react/cell-renderers/drag-handle-cell-renderer.js +32 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +71 -46
- package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +48 -45
- package/dist/components/data/ag-grid-react/cell-renderers/index.d.ts +45 -7
- package/dist/components/data/ag-grid-react/cell-renderers/index.js +70 -58
- package/dist/components/data/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +88 -76
- package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +31 -33
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +18 -17
- package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.d.ts +5 -11
- package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.js +127 -51
- package/dist/components/data/ag-grid-react/editable-utils.d.ts +9 -1
- package/dist/components/data/ag-grid-react/editable-utils.js +46 -41
- package/dist/components/data/ag-grid-react/headers/custom-header.js +110 -108
- package/dist/components/data/ag-grid-react/headers/header-search-input.js +203 -199
- package/dist/components/data/ag-grid-react/index.d.ts +6 -1
- package/dist/components/data/ag-grid-react/index.js +316 -248
- package/dist/components/data/ag-grid-react/list-drag-grid-options.d.ts +34 -0
- package/dist/components/data/ag-grid-react/list-drag-grid-options.js +110 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-card.d.ts +4 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-card.js +14 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-snapshot.d.ts +20 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-snapshot.js +42 -0
- package/dist/components/data/ag-grid-react/list-find-highlight.d.ts +6 -0
- package/dist/components/data/ag-grid-react/list-find-highlight.js +7 -0
- package/dist/components/data/ag-grid-react/list-row-move.d.ts +84 -0
- package/dist/components/data/ag-grid-react/list-row-move.js +74 -0
- package/dist/components/data/ag-grid-react/numeric-column-header-alignment.d.ts +9 -0
- package/dist/components/data/ag-grid-react/numeric-column-header-alignment.js +67 -0
- package/dist/components/data/ag-grid-react/process-backend-columndefs.d.ts +10 -2
- package/dist/components/data/ag-grid-react/process-backend-columndefs.js +84 -0
- package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.d.ts +67 -0
- package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.js +162 -0
- package/dist/components/data/ag-grid-react/use-list-drag-preview.d.ts +20 -0
- package/dist/components/data/ag-grid-react/use-list-drag-preview.js +148 -0
- package/dist/components/data/ag-grid-react/use-list-find.d.ts +36 -0
- package/dist/components/data/ag-grid-react/use-list-row-drop-zones.d.ts +46 -0
- package/dist/components/data/ag-grid-react/use-list-row-drop-zones.js +92 -0
- package/dist/components/data/data-table/build-column-tree-from-grid.js +15 -15
- package/dist/components/data/data-table/column-picker-authority.js +9 -9
- package/dist/components/data/data-table/data-table-column-apply.js +30 -29
- package/dist/components/data/data-table/data-table-column-tree-cache.js +62 -60
- package/dist/components/data/data-table/data-table-list-header.d.ts +7 -0
- package/dist/components/data/data-table/data-table-list-header.js +31 -0
- package/dist/components/data/data-table/data-table-overlay.d.ts +6 -0
- package/dist/components/data/data-table/data-table-overlay.js +18 -0
- package/dist/components/data/data-table/data-table-picker-column-eligibility.d.ts +3 -0
- package/dist/components/data/data-table/data-table-picker-column-eligibility.js +24 -4
- package/dist/components/data/data-table/data-table.js +35 -34
- package/dist/components/data/data-table/data-table.types.d.ts +13 -2
- package/dist/components/data/data-table/index.d.ts +10 -0
- package/dist/components/data/data-table/index.js +64 -52
- package/dist/components/data/data-table/use-data-table-viewport.d.ts +10 -0
- package/dist/components/data/data-table/use-data-table-viewport.js +31 -0
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +3 -2
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +3 -2
- package/dist/components/data/expandable-list-item/index.d.ts +2 -0
- package/dist/components/data/expandable-list-item/index.js +20 -16
- package/dist/components/data/expandable-list-item/product-card-hero.d.ts +15 -0
- package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.d.ts +8 -0
- package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.js +41 -0
- package/dist/components/data/expandable-list-item/product-card-metrics-toggle.d.ts +13 -0
- package/dist/components/data/expandable-list-item/product-card-metrics-toggle.js +27 -0
- package/dist/components/data/expandable-list-item/sku-picker-chrome.d.ts +40 -0
- package/dist/components/data/expandable-list-item/sku-picker-chrome.js +150 -0
- package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +2 -1
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +5 -4
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +3 -2
- package/dist/components/data/scenario-comparison/flatten-scenario-comparison-rows.d.ts +2 -0
- package/dist/components/data/scenario-comparison/flatten-scenario-comparison-rows.js +16 -0
- package/dist/components/data/scenario-comparison/index.d.ts +3 -0
- package/dist/components/data/scenario-comparison/index.js +6 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-column.d.ts +12 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-column.js +172 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-label.d.ts +6 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-label.js +64 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.d.ts +5 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.js +127 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.types.d.ts +56 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.variants.d.ts +7 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.variants.js +29 -0
- package/dist/components/data-display/badge/index.d.ts +2 -0
- package/dist/components/data-display/badge/index.js +4 -2
- package/dist/components/data-display/badge/trophy-icon.d.ts +6 -0
- package/dist/components/data-display/badge/trophy-icon.js +28 -0
- package/dist/components/data-display/chart/chart-scatter3d.d.ts +39 -0
- package/dist/components/data-display/chart/chart-scatter3d.js +180 -0
- package/dist/components/data-display/chart/chart.js +125 -112
- package/dist/components/data-display/chart/chart.utils.js +122 -92
- package/dist/components/data-display/stereo-scatter/index.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/index.js +10 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.d.ts +41 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.js +178 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.d.ts +14 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.js +29 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.d.ts +23 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.js +80 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine.d.ts +120 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine.js +519 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-math.d.ts +64 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-math.js +129 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-model.d.ts +37 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-model.js +71 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.d.ts +33 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.js +19 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.d.ts +4 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.js +19 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.js +75 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.js +149 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.d.ts +13 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.js +93 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.js +62 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.d.ts +3 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.js +41 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.d.ts +12 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.js +107 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.stories-data.d.ts +11 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.types.d.ts +69 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.d.ts +13 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.js +42 -0
- package/dist/components/feedback/find-bar/collect-find-matches.d.ts +35 -0
- package/dist/components/feedback/find-bar/collect-find-matches.js +68 -0
- package/dist/components/feedback/find-bar/find-bar-shortcuts.d.ts +5 -0
- package/dist/components/feedback/find-bar/find-bar-shortcuts.js +27 -0
- package/dist/components/feedback/find-bar/find-bar.d.ts +7 -0
- package/dist/components/feedback/find-bar/find-bar.js +266 -0
- package/dist/components/feedback/find-bar/find-bar.types.d.ts +32 -0
- package/dist/components/feedback/find-bar/index.d.ts +4 -0
- package/dist/components/feedback/find-bar/index.js +11 -0
- package/dist/components/feedback/tooltip/button-icon-tooltip.d.ts +6 -1
- package/dist/components/feedback/tooltip/button-icon-tooltip.js +22 -17
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +3 -2
- package/dist/components/feedback/tooltip/use-overflow-tooltip.js +44 -36
- package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
- package/dist/components/flows/filter-panel/filter-panel.js +4 -4
- package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.d.ts +5 -0
- package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.js +73 -0
- package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.d.ts +5 -0
- package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.js +49 -0
- package/dist/components/flows/iris-chat/IrisChatSnapTile.d.ts +8 -0
- package/dist/components/flows/iris-chat/IrisChatSnapTile.js +30 -0
- package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.d.ts +3 -0
- package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.js +25 -0
- package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.d.ts +4 -0
- package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.js +113 -0
- package/dist/components/flows/iris-chat/index.d.ts +3 -1
- package/dist/components/flows/iris-chat/index.js +58 -53
- package/dist/components/flows/iris-chat/iris-chat-artifact.js +46 -36
- package/dist/components/flows/iris-chat/iris-chat-chrome.d.ts +39 -0
- package/dist/components/flows/iris-chat/iris-chat-chrome.js +311 -0
- package/dist/components/flows/iris-chat/iris-chat-close-animation.d.ts +12 -0
- package/dist/components/flows/iris-chat/iris-chat-close-animation.js +21 -0
- package/dist/components/flows/iris-chat/iris-chat-composer.js +291 -234
- package/dist/components/flows/iris-chat/iris-chat-context.d.ts +16 -0
- package/dist/components/flows/iris-chat/iris-chat-context.js +14 -10
- package/dist/components/flows/iris-chat/iris-chat-copy-feedback.d.ts +4 -0
- package/dist/components/flows/iris-chat/iris-chat-copy-feedback.js +16 -0
- package/dist/components/flows/iris-chat/iris-chat-frame.d.ts +32 -0
- package/dist/components/flows/iris-chat/iris-chat-frame.js +88 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +2 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.js +46 -20
- package/dist/components/flows/iris-chat/iris-chat-launch-animation.d.ts +11 -0
- package/dist/components/flows/iris-chat/iris-chat-launch-animation.js +35 -0
- package/dist/components/flows/iris-chat/iris-chat-markdown.js +82 -42
- package/dist/components/flows/iris-chat/iris-chat-menu.js +149 -117
- package/dist/components/flows/iris-chat/iris-chat-snap-presets.d.ts +7 -0
- package/dist/components/flows/iris-chat/iris-chat-snap-presets.js +83 -0
- package/dist/components/flows/iris-chat/iris-chat-speech.d.ts +52 -0
- package/dist/components/flows/iris-chat/iris-chat-speech.js +121 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +4 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.js +277 -220
- package/dist/components/flows/iris-chat/iris-chat-window-chrome.d.ts +33 -0
- package/dist/components/flows/iris-chat/iris-chat-window-chrome.js +37 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.d.ts +14 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.js +15 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry.d.ts +12 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry.js +113 -0
- package/dist/components/flows/iris-chat/iris-chat-window-handles.d.ts +6 -0
- package/dist/components/flows/iris-chat/iris-chat-window-handles.js +50 -0
- package/dist/components/flows/iris-chat/iris-chat-window-shell.d.ts +8 -0
- package/dist/components/flows/iris-chat/iris-chat-window-shell.js +37 -0
- package/dist/components/flows/iris-chat/iris-chat.d.ts +3 -39
- package/dist/components/flows/iris-chat/iris-chat.js +22 -330
- package/dist/components/flows/iris-chat/iris-chat.types.d.ts +20 -0
- package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +4 -3
- package/dist/components/flows/iris-chat/iris-chat.variants.js +45 -22
- package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.d.ts +6 -0
- package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.js +23 -0
- package/dist/components/flows/iris-chat/use-iris-chat-root.d.ts +29 -0
- package/dist/components/flows/iris-chat/use-iris-chat-root.js +162 -0
- package/dist/components/forms/choice-card/choice-card-compare-scroll.d.ts +4 -0
- package/dist/components/forms/choice-card/choice-card-compare-scroll.js +6 -0
- package/dist/components/forms/choice-card/choice-card-percent.js +82 -51
- package/dist/components/forms/choice-card/choice-card.d.ts +14 -2
- package/dist/components/forms/choice-card/choice-card.js +470 -381
- package/dist/components/forms/choice-card/choice-card.types.d.ts +9 -2
- package/dist/components/forms/choice-card/choice-card.variants.js +24 -3
- package/dist/components/forms/input/input.js +5 -5
- package/dist/components/forms/select/components/SelectMenuPanel.js +15 -15
- package/dist/components/forms/select/components/SelectTriggerValue.js +3 -2
- package/dist/components/forms/select/components/Submenu.js +3 -2
- package/dist/components/layout/header/header.js +1 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.d.ts +3 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.js +12 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller.js +181 -125
- package/dist/components/layout/horizontal-scroller/horizontal-scroller.types.d.ts +2 -0
- package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.d.ts +3 -1
- package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.js +77 -67
- package/dist/components/primitives/button/button.variants.js +1 -1
- package/dist/components/primitives/iris/iris-insight-truncated-text.d.ts +3 -0
- package/dist/components/primitives/iris/iris-insight-truncated-text.js +33 -0
- package/dist/components/primitives/iris/iris.d.ts +3 -1
- package/dist/components/primitives/iris/iris.js +85 -91
- package/dist/components/primitives/iris/iris.types.d.ts +9 -0
- package/dist/components/primitives/stepper/internals/step-model.d.ts +1 -1
- package/dist/components/primitives/stepper/internals/step-model.js +5 -5
- package/dist/components/primitives/stepper/internals/stepper-compact.js +13 -13
- package/dist/components/primitives/stepper/internals/stepper-pipeline.js +6 -6
- package/dist/components/primitives/stepper/internals/stepper-rail.js +15 -15
- package/dist/components/primitives/stepper/internals/stepper-summary.js +7 -7
- package/dist/components/primitives/stepper/internals/stepper-track.js +2 -2
- package/dist/components/primitives/stepper/stepper.js +99 -97
- package/dist/components/primitives/stepper/stepper.types.d.ts +4 -0
- package/dist/components/primitives/tabs/folder-tab-path.d.ts +6 -0
- package/dist/components/primitives/tabs/folder-tab-path.js +16 -0
- package/dist/components/primitives/tabs/tabs.js +178 -112
- package/dist/components/primitives/tabs/tabs.types.d.ts +1 -1
- package/dist/form-react/Fields/SelectField.js +66 -57
- package/dist/form-react/Fields/VirtualizedListField.d.ts +3 -0
- package/dist/form-react/Fields/VirtualizedListField.js +223 -0
- package/dist/form-react/fields.d.ts +1 -0
- package/dist/form-react/fields.js +28 -26
- package/dist/form-react/index.d.ts +1 -1
- package/dist/form-react/registry/defaultFieldRegistrations.d.ts +1 -1
- package/dist/form-react/registry/defaultFieldRegistrations.js +13 -12
- package/dist/form-react/types/fields.types.d.ts +48 -1
- package/dist/form-react/types/fieldsOutput.types.d.ts +4 -1
- package/dist/form-react/types/reactHookForm.types.d.ts +18 -1
- package/dist/form-react/utils/fieldDefaults.utils.js +1 -1
- package/dist/i18n/defaultMessages.d.ts +69 -0
- package/dist/i18n/defaultMessages.js +107 -42
- package/dist/i18n/impact-nova-i18n-defaults.d.ts +5 -0
- package/dist/i18n/impact-nova-i18n-defaults.js +4 -9
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/locales/de.js +66 -1
- package/dist/i18n/locales/es.js +66 -1
- package/dist/i18n/locales/hi.js +66 -1
- package/dist/i18n/locales/kn.js +66 -1
- package/dist/impact-nova-components.css +372 -14
- package/dist/impact-nova-tokens.scss +4 -0
- package/dist/impact-nova.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +627 -601
- package/dist/lib/alphabetical-sort.d.ts +3 -0
- package/dist/lib/alphabetical-sort.js +13 -0
- package/dist/lib/guidance/engine/guidance-engine.js +26 -27
- package/dist/lib/guidance/engine/step-navigation.d.ts +1 -0
- package/dist/lib/guidance/engine/step-navigation.js +16 -9
- package/dist/lib/guidance/types/guidance.types.d.ts +9 -1
- package/dist/lib/virtualized/index.d.ts +2 -0
- package/dist/lib/virtualized/index.js +35 -31
- package/dist/lib/virtualized/list-index.d.ts +5 -0
- package/dist/lib/virtualized/list-index.js +13 -0
- package/dist/lib/virtualized/read-infinite-query-list.d.ts +14 -0
- package/dist/lib/virtualized/read-infinite-query-list.js +12 -0
- package/dist/lib/virtualized/types.d.ts +4 -2
- package/dist/lib/virtualized/useRowState.js +60 -56
- package/dist/lib/virtualized/useVirtualizedList.d.ts +5 -0
- package/dist/llms/rules/ag-grid.js +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/real-world-patterns.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/tailwind.config.js +3 -0
- package/dist/theme/tailwind-colors.js +3 -0
- package/package.json +23 -4
package/README.md
CHANGED
|
@@ -315,7 +315,7 @@ Impact Nova provides a rich set of components structured for any enterprise use-
|
|
|
315
315
|
### 📊 Data Display
|
|
316
316
|
|
|
317
317
|
- Avatar, Badge, Tag, Chips
|
|
318
|
-
- Calendar, Chart
|
|
318
|
+
- Calendar, Chart, Stereo Scatter (`molecule` and `crystal`)
|
|
319
319
|
- Empty Container, Notification Panel
|
|
320
320
|
- Table (AG Grid), Data Table
|
|
321
321
|
- Product Tile, Value With Unit
|
package/dist/_virtual/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as
|
|
2
|
-
import { __require as
|
|
3
|
-
var t =
|
|
4
|
-
const a = /* @__PURE__ */
|
|
1
|
+
import { getDefaultExportFromCjs as e } from "./_commonjsHelpers.js";
|
|
2
|
+
import { __require as r } from "../node_modules/extend/index.js";
|
|
3
|
+
var t = r();
|
|
4
|
+
const a = /* @__PURE__ */ e(t);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
package/dist/_virtual/index2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as
|
|
2
|
-
import { __require as
|
|
3
|
-
var t =
|
|
4
|
-
const a = /* @__PURE__ */
|
|
1
|
+
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
+
import { __require as o } from "../node_modules/style-to-js/cjs/index.js";
|
|
3
|
+
var t = o();
|
|
4
|
+
const a = /* @__PURE__ */ r(t);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -12,5 +12,7 @@ export declare const AG_GRID_LIST_ROW_HEIGHT_BY_DENSITY: {
|
|
|
12
12
|
};
|
|
13
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
14
|
export declare const AG_GRID_LIST_HEADER_HEIGHT_PX = 40;
|
|
15
|
-
export type { AgGridVisualVariant } from './ag-grid.types';
|
|
15
|
+
export type { AgGridVisualVariant, AgGridListHeaderMode } from './ag-grid.types';
|
|
16
|
+
/** Token-based rank wash: solid through the 68px handle, fade across the rank cell. */
|
|
17
|
+
export declare const AG_GRID_LIST_RANK_GRADIENT = "linear-gradient(to right, var(--color-list-row-gradient-start) 0px, var(--color-list-row-gradient-start) 68px, transparent 218px)";
|
|
16
18
|
export declare const customAgGridListTheme: import('ag-stack').Theme<unknown>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ListRowReorderMeta, ListRowTransferMeta } from './list-row-move';
|
|
2
|
+
import { BadgeColor } from './cell-renderers/types';
|
|
3
|
+
export declare const KEY_ATTRIBUTES_TOP_CAP = 5;
|
|
4
|
+
/** Demo-only: top-list row with a disabled drag handle (Storybook verification). */
|
|
5
|
+
export declare const KEY_ATTRIBUTES_DEMO_DRAG_DISABLED_ID = "brand";
|
|
6
|
+
/** Demo-only: bench → top transfer rejected by `canDropRow` (Storybook verification). */
|
|
7
|
+
export declare const KEY_ATTRIBUTES_DEMO_TRANSFER_REJECTED_ID = "closure";
|
|
8
|
+
export interface KeyAttributeRecord {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
12
|
+
export interface KeyAttributeRow extends KeyAttributeRecord {
|
|
13
|
+
rank: string;
|
|
14
|
+
defaultRank: string;
|
|
15
|
+
rankColor: BadgeColor;
|
|
16
|
+
note: string;
|
|
17
|
+
}
|
|
18
|
+
export interface KeyAttributesBoardState {
|
|
19
|
+
topIds: string[];
|
|
20
|
+
benchIds: string[];
|
|
21
|
+
}
|
|
22
|
+
export declare const KEY_ATTRIBUTE_CATALOG: KeyAttributeRecord[];
|
|
23
|
+
export declare const INITIAL_KEY_ATTRIBUTES_BOARD: KeyAttributesBoardState;
|
|
24
|
+
export declare function originalRankById(catalog?: KeyAttributeRecord[]): Record<string, number>;
|
|
25
|
+
export declare function deriveKeyAttributeRows(options: {
|
|
26
|
+
ids: string[];
|
|
27
|
+
catalog?: KeyAttributeRecord[];
|
|
28
|
+
originalRank?: Record<string, number>;
|
|
29
|
+
ranked: boolean;
|
|
30
|
+
/** Continue a single ranking across lists. Bench uses the top-list length. */
|
|
31
|
+
rankOffset?: number;
|
|
32
|
+
}): KeyAttributeRow[];
|
|
33
|
+
export declare function reorderKeyAttributesBoard(state: KeyAttributesBoardState, listId: 'top' | 'bench', meta: ListRowReorderMeta<KeyAttributeRow>): KeyAttributesBoardState;
|
|
34
|
+
/**
|
|
35
|
+
* Cross-list drop with a fixed Top N. The dropped row stays on the list the user
|
|
36
|
+
* targeted. Bench → top inserts at the slot (clamped so it cannot overflow itself)
|
|
37
|
+
* and the previous last top row becomes #N+1. Top → bench closes the hole and
|
|
38
|
+
* promotes the first remaining bench row until `top.length === cap`.
|
|
39
|
+
*/
|
|
40
|
+
export declare function transferKeyAttributesBoard(state: KeyAttributesBoardState, meta: ListRowTransferMeta<KeyAttributeRow>, cap?: number): KeyAttributesBoardState;
|
|
41
|
+
export declare function applyKeyAttributesDrag(options: {
|
|
42
|
+
ids: string[];
|
|
43
|
+
draggedId: string;
|
|
44
|
+
overId: string | undefined;
|
|
45
|
+
position: 'above' | 'below';
|
|
46
|
+
}): ListRowReorderMeta<string> | null;
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { customAgGridTheme as o } from "./theme.js";
|
|
2
|
-
const
|
|
3
|
-
default:
|
|
2
|
+
const t = 48, r = 12, e = t + r, s = {
|
|
3
|
+
default: e,
|
|
4
4
|
compact: 30 + r,
|
|
5
5
|
comfort: 52 + r
|
|
6
|
-
},
|
|
6
|
+
}, _ = 40, G = "linear-gradient(to right, var(--color-list-row-gradient-start) 0px, var(--color-list-row-gradient-start) 68px, transparent 218px)", I = o.withParams({
|
|
7
7
|
columnBorder: !1,
|
|
8
8
|
rowBorder: !1,
|
|
9
9
|
headerColumnBorder: !1,
|
|
10
10
|
headerRowBorder: !1,
|
|
11
11
|
wrapperBorder: !1,
|
|
12
|
-
headerHeight:
|
|
12
|
+
headerHeight: _,
|
|
13
13
|
// Card hover/selection is list CSS (::before on .ag-row); avoid full-slot theme overlay.
|
|
14
14
|
rowHoverColor: "transparent"
|
|
15
15
|
});
|
|
16
16
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
t as AG_GRID_LIST_CARD_HEIGHT_PX,
|
|
18
|
+
_ as AG_GRID_LIST_HEADER_HEIGHT_PX,
|
|
19
|
+
G as AG_GRID_LIST_RANK_GRADIENT,
|
|
19
20
|
r as AG_GRID_LIST_ROW_GAP_PX,
|
|
20
21
|
s as AG_GRID_LIST_ROW_HEIGHT_BY_DENSITY,
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
e as AG_GRID_LIST_ROW_HEIGHT_PX,
|
|
23
|
+
I as customAgGridListTheme
|
|
23
24
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function KeyAttributesBoard(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { ListRowDropCheck, ListRowReorderMeta } from './list-row-move';
|
|
2
3
|
import { ColDef, ColGroupDef, IHeaderParams, IHeaderGroupParams, Column, ValueFormatterParams } from 'ag-grid-community';
|
|
3
4
|
import { Theme } from 'ag-grid-enterprise';
|
|
4
5
|
import { FiscalPickerProps } from '../../forms/date-picker/date-picker.types';
|
|
5
6
|
import { FiscalCalendarConfig } from '../../../lib/fiscal-calendar';
|
|
6
7
|
import { AgGridReactProps } from 'ag-grid-react';
|
|
8
|
+
import { NumericColumnHeaderAlignment } from './numeric-column-header-alignment';
|
|
7
9
|
/** ColDef extended with Impact Nova runtime metadata set during column processing */
|
|
8
10
|
export interface ImpactNovaColDef<TData = unknown> extends ColDef<TData> {
|
|
9
11
|
/** Original column-level editable before addRowDataEditableCheck wraps the callback */
|
|
10
12
|
_originalEditable?: boolean;
|
|
11
13
|
}
|
|
12
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* Visual skin for `AgGridWrapper` / `DataTableContent`.
|
|
16
|
+
* `"list"` is the card-row skin. Pass `onRowReorder` (and `getRowId`) on that
|
|
17
|
+
* skin to enable row drag — there is no separate drag component or variant.
|
|
18
|
+
*/
|
|
13
19
|
export type AgGridVisualVariant = 'table' | 'list';
|
|
20
|
+
/** Column header bar for list skins. `"none"` hides AG Grid headers (`headerHeight: 0`). */
|
|
21
|
+
export type AgGridListHeaderMode = 'columns' | 'none';
|
|
14
22
|
/**
|
|
15
23
|
* Extended header component params for custom header
|
|
16
24
|
* Extends IHeaderParams to include all AG Grid header properties plus custom ones
|
|
@@ -153,15 +161,69 @@ export interface AgGridWrapperProps<TData = unknown> extends Omit<AgGridReactPro
|
|
|
153
161
|
*/
|
|
154
162
|
themeOverride?: Theme;
|
|
155
163
|
/**
|
|
156
|
-
* Visual skin. `"table"` is
|
|
157
|
-
* column model
|
|
164
|
+
* Visual skin. `"table"` (default) is grid chrome. `"list"` is card-row styling
|
|
165
|
+
* on the same column model. Row drag is not a second variant — pass `onRowReorder`
|
|
166
|
+
* and `getRowId` on `"list"` (handles, drop, Alt+Arrow).
|
|
158
167
|
*/
|
|
159
168
|
variant?: AgGridVisualVariant;
|
|
169
|
+
/**
|
|
170
|
+
* List + `onRowReorder` only. Custom card that follows the cursor while a row is dragged
|
|
171
|
+
* (replaces AG Grid's text ghost). Receives the dragged row's data, read once at drag start.
|
|
172
|
+
*/
|
|
173
|
+
listDragPreview?: (params: {
|
|
174
|
+
data: TData;
|
|
175
|
+
}) => ReactNode;
|
|
176
|
+
/**
|
|
177
|
+
* List skin only. Background gradient on each row card.
|
|
178
|
+
* Pass a CSS `background-image` string, or a function per row. Return `undefined` for a plain card.
|
|
179
|
+
*
|
|
180
|
+
* @example "linear-gradient(to right, var(--color-primary-soft), transparent 220px)"
|
|
181
|
+
*/
|
|
182
|
+
listRowGradient?: string | ((params: {
|
|
183
|
+
data: TData | undefined;
|
|
184
|
+
rowIndex: number | null;
|
|
185
|
+
}) => string | undefined);
|
|
186
|
+
/**
|
|
187
|
+
* List skin only. `"columns"` (default) keeps the AG Grid header bar. `"none"` hides it
|
|
188
|
+
* so a `DataTableListHeader` (or no heading) can sit above the cards.
|
|
189
|
+
*/
|
|
190
|
+
listHeader?: AgGridListHeaderMode;
|
|
191
|
+
/**
|
|
192
|
+
* List skin only. Enables row drag. After drop or Alt+Arrow, called with the next `rows`
|
|
193
|
+
* in full `rowData` order (including when a quick filter is active). You own the data:
|
|
194
|
+
* set state from `meta.rows`. Requires `getRowId`.
|
|
195
|
+
*
|
|
196
|
+
* @example onRowReorder={({ rows }) => setRows(rows)}
|
|
197
|
+
*/
|
|
198
|
+
onRowReorder?: (meta: ListRowReorderMeta<TData>) => void;
|
|
199
|
+
/**
|
|
200
|
+
* List + `onRowReorder` only. Alt+Arrow at the first or last displayed row,
|
|
201
|
+
* where a within-list move is impossible.
|
|
202
|
+
*/
|
|
203
|
+
onRowMoveBeyondEdge?: (meta: {
|
|
204
|
+
rowId: string;
|
|
205
|
+
direction: 'up' | 'down';
|
|
206
|
+
row: TData;
|
|
207
|
+
}) => void;
|
|
208
|
+
/** List + `onRowReorder` only. Disable the handle for a given row. */
|
|
209
|
+
isRowDragDisabled?: (data: TData | undefined) => boolean;
|
|
210
|
+
/** List + `onRowReorder` only. Accessible name for the row drag handle. */
|
|
211
|
+
getRowDragHandleLabel?: (data: TData | undefined) => string;
|
|
212
|
+
/**
|
|
213
|
+
* List + `onRowReorder` only. Return false to ignore the drop and hide the indicator.
|
|
214
|
+
* Cross-list transfers use the same check via `useListRowDropZones`.
|
|
215
|
+
*/
|
|
216
|
+
canDropRow?: (params: ListRowDropCheck<TData>) => boolean;
|
|
160
217
|
/**
|
|
161
218
|
* Viewport row shimmer while more pages load. Does **not** show AG Grid's
|
|
162
219
|
* centered overlay — use `loading` only when the grid has no rows yet.
|
|
163
220
|
*/
|
|
164
221
|
rowLoading?: boolean;
|
|
222
|
+
/**
|
|
223
|
+
* Numeric column header alignment. Cells stay right-aligned via `ag-right-aligned-cell`.
|
|
224
|
+
* Default `right` preserves existing apps (ItemSmart). Pass `left` for label-style headers.
|
|
225
|
+
*/
|
|
226
|
+
numericColumnHeaderAlignment?: NumericColumnHeaderAlignment;
|
|
165
227
|
}
|
|
166
228
|
/**
|
|
167
229
|
* Filter operators for advanced filtering.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ColDef, ColGroupDef } from 'ag-grid-community';
|
|
2
|
+
export declare const AG_GRID_DRAG_HANDLE_WIDTH_PX = 68;
|
|
3
|
+
/** Prepends the custom drag-handle column unless a column already sets `rowDrag`. */
|
|
4
|
+
export declare function buildDragListColumnDefs<TData>(options: {
|
|
5
|
+
columnDefs: Array<ColDef<TData> | ColGroupDef<TData>> | null | undefined;
|
|
6
|
+
isRowDragDisabled?: (data: TData | undefined) => boolean;
|
|
7
|
+
getRowDragHandleLabel?: (data: TData | undefined) => string;
|
|
8
|
+
}): Array<ColDef<TData> | ColGroupDef<TData>> | null | undefined;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DragHandleCellRenderer as n, AG_GRID_DRAG_HANDLE_COL_ID as i } from "./cell-renderers/drag-handle-cell-renderer.js";
|
|
2
|
+
const l = 68;
|
|
3
|
+
function a(r) {
|
|
4
|
+
return r.some((e) => "children" in e && e.children ? a(e.children) : "rowDrag" in e && e.rowDrag !== void 0);
|
|
5
|
+
}
|
|
6
|
+
function t(r) {
|
|
7
|
+
const { columnDefs: e } = r;
|
|
8
|
+
return !e || a(e) ? e : [{
|
|
9
|
+
colId: i,
|
|
10
|
+
headerName: "",
|
|
11
|
+
width: l,
|
|
12
|
+
maxWidth: l,
|
|
13
|
+
minWidth: l,
|
|
14
|
+
sortable: !1,
|
|
15
|
+
filter: !1,
|
|
16
|
+
resizable: !1,
|
|
17
|
+
suppressMovable: !0,
|
|
18
|
+
cellRenderer: n,
|
|
19
|
+
cellRendererParams: {
|
|
20
|
+
isRowDragDisabled: r.isRowDragDisabled,
|
|
21
|
+
getRowDragHandleLabel: r.getRowDragHandleLabel
|
|
22
|
+
}
|
|
23
|
+
}, ...e];
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
l as AG_GRID_DRAG_HANDLE_WIDTH_PX,
|
|
27
|
+
t as buildDragListColumnDefs
|
|
28
|
+
};
|
|
@@ -11,6 +11,8 @@ export interface BadgeCellRendererProps extends ICellRendererParams {
|
|
|
11
11
|
isIconField?: string;
|
|
12
12
|
/** Icon element to display inside the badge */
|
|
13
13
|
icon?: React.ReactNode;
|
|
14
|
+
/** Named icon from the badge registry, for example `trophy`. */
|
|
15
|
+
iconName?: string;
|
|
14
16
|
iconField?: string;
|
|
15
17
|
/** Badge label (overrides cell value) */
|
|
16
18
|
badgeLabel?: string;
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as n, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { Badge as g } from "../../../data-display/badge/badge.js";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import { BadgeNamedIcon as f } from "./badge-icon-registry.js";
|
|
4
|
+
import { getFieldValue as a, mapBadgeColor as u, mapBadgeVariant as h } from "./cell-renderer-utils.js";
|
|
5
|
+
const v = (e) => {
|
|
6
|
+
const { data: i, value: t } = e, l = a(e.badgeLabelField, e.badgeLabel, i) ?? (t != null ? String(t) : void 0), c = a(e.variantField, e.variant, i) ?? "filled", o = a(e.colorField, e.color, i) ?? "default", m = a(e.isIconField, e.isIcon, i), d = a(e.iconField, e.icon, i), r = a(e.sizeField, e.size, i);
|
|
7
|
+
return l ? /* @__PURE__ */ n("div", { className: "w-full h-full flex items-center justify-start ag-cell-inner-padding", children: /* @__PURE__ */ n(
|
|
7
8
|
g,
|
|
8
9
|
{
|
|
9
|
-
variant:
|
|
10
|
-
color:
|
|
11
|
-
size:
|
|
10
|
+
variant: h(c),
|
|
11
|
+
color: u(o),
|
|
12
|
+
size: r === "small" ? "sm" : "md",
|
|
12
13
|
style: { fontSize: "inherit", lineHeight: "inherit" },
|
|
13
|
-
children:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
] }) :
|
|
14
|
+
children: m && (e.iconName || d) ? /* @__PURE__ */ s("span", { className: "flex items-center gap-1", children: [
|
|
15
|
+
e.iconName ? /* @__PURE__ */ n(f, { name: e.iconName }) : d,
|
|
16
|
+
l
|
|
17
|
+
] }) : l
|
|
17
18
|
}
|
|
18
19
|
) }) : null;
|
|
19
20
|
};
|
|
20
|
-
|
|
21
|
+
v.displayName = "BadgeCellRenderer";
|
|
21
22
|
export {
|
|
22
|
-
|
|
23
|
+
v as BadgeCellRenderer
|
|
23
24
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactElement, ComponentType, SVGProps } from 'react';
|
|
2
|
+
type BadgeIcon = ComponentType<SVGProps<SVGSVGElement> & {
|
|
3
|
+
size?: number | string;
|
|
4
|
+
}>;
|
|
5
|
+
export declare function resolveBadgeIcon(iconName: string | undefined): BadgeIcon | null;
|
|
6
|
+
/** Module-level renderer so AG Grid cells never create a component during render. */
|
|
7
|
+
export declare function BadgeNamedIcon(props: {
|
|
8
|
+
name?: string;
|
|
9
|
+
}): ReactElement | null;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createElement as o } from "react";
|
|
2
|
+
import { Trophy as t } from "../../../data-display/badge/trophy-icon.js";
|
|
3
|
+
const u = {
|
|
4
|
+
trophy: t
|
|
5
|
+
}, e = /* @__PURE__ */ new Set();
|
|
6
|
+
function a(n) {
|
|
7
|
+
if (!n) return null;
|
|
8
|
+
const r = u[n];
|
|
9
|
+
return r || (e.has(n) || (e.add(n), console.warn(`Unknown badge iconName: ${n}`)), null);
|
|
10
|
+
}
|
|
11
|
+
function f(n) {
|
|
12
|
+
return n.name === "trophy" ? o(t) : (a(n.name), null);
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
f as BadgeNamedIcon,
|
|
16
|
+
a as resolveBadgeIcon
|
|
17
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ICellRendererParams } from 'ag-grid-community';
|
|
2
|
+
import { CustomCellRendererProps } from 'ag-grid-react';
|
|
3
|
+
type RegisterRowDragger = ICellRendererParams['registerRowDragger'] | undefined;
|
|
4
|
+
export interface DragHandleProps {
|
|
5
|
+
registerRowDragger: RegisterRowDragger;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
label?: string;
|
|
8
|
+
}
|
|
9
|
+
/** Drag icon registered as the AG Grid row dragger. Shared by the handle column and row-only lists. */
|
|
10
|
+
export declare function DragHandle({ registerRowDragger, disabled, label }: DragHandleProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export interface DragHandleCellRendererParams {
|
|
12
|
+
isRowDragDisabled?: (data: unknown) => boolean;
|
|
13
|
+
getRowDragHandleLabel?: (data: unknown) => string;
|
|
14
|
+
}
|
|
15
|
+
/** Row drag handle for list drag (`variant="list"` + `onRowReorder`). */
|
|
16
|
+
export declare function DragHandleCellRenderer(props: CustomCellRendererProps & DragHandleCellRendererParams): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const AG_GRID_DRAG_HANDLE_COL_ID = "__drag-handle";
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as t, useEffect as l } from "react";
|
|
3
|
+
import { Drag as i } from "impact-nova-icons";
|
|
4
|
+
function d({ registerRowDragger: r, disabled: e = !1, label: a = "Drag to reorder" }) {
|
|
5
|
+
const n = t(null);
|
|
6
|
+
return l(() => {
|
|
7
|
+
e || !n.current || r?.(n.current, 0, void 0, !0);
|
|
8
|
+
}, [e, r]), /* @__PURE__ */ o(
|
|
9
|
+
"span",
|
|
10
|
+
{
|
|
11
|
+
ref: n,
|
|
12
|
+
role: "button",
|
|
13
|
+
tabIndex: e ? -1 : 0,
|
|
14
|
+
"aria-label": a,
|
|
15
|
+
"aria-disabled": e || void 0,
|
|
16
|
+
"aria-roledescription": "sortable",
|
|
17
|
+
"data-component": "ag-grid-drag-handle",
|
|
18
|
+
className: e ? "inline-flex shrink-0 cursor-not-allowed opacity-50" : "inline-flex shrink-0 cursor-grab active:cursor-grabbing",
|
|
19
|
+
children: /* @__PURE__ */ o(i, { size: "14px", className: "text-secondary-foreground" })
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
function f(r) {
|
|
24
|
+
const e = r.isRowDragDisabled?.(r.data) ?? !1, a = r.getRowDragHandleLabel?.(r.data) ?? "Drag to reorder";
|
|
25
|
+
return /* @__PURE__ */ o(d, { registerRowDragger: e ? void 0 : r.registerRowDragger, disabled: e, label: a });
|
|
26
|
+
}
|
|
27
|
+
const u = "__drag-handle";
|
|
28
|
+
export {
|
|
29
|
+
u as AG_GRID_DRAG_HANDLE_COL_ID,
|
|
30
|
+
d as DragHandle,
|
|
31
|
+
f as DragHandleCellRenderer
|
|
32
|
+
};
|
package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js
CHANGED
|
@@ -1,30 +1,42 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as E, useState as
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as E, useState as O, useRef as b, useImperativeHandle as R, useCallback as r } from "react";
|
|
3
3
|
import { Select as j } from "../../../../forms/select/select.js";
|
|
4
|
-
import { cn as
|
|
5
|
-
|
|
4
|
+
import { cn as k } from "../../../../../lib/utils.js";
|
|
5
|
+
function L(t) {
|
|
6
|
+
if (typeof t.onValueChange == "function")
|
|
7
|
+
return t.onValueChange;
|
|
8
|
+
const n = t.colDef?.cellEditorParams, l = typeof n == "function" ? n(t) : n;
|
|
9
|
+
if (!l || typeof l != "object" || !("onValueChange" in l))
|
|
10
|
+
return;
|
|
11
|
+
const a = l.onValueChange;
|
|
12
|
+
if (typeof a == "function")
|
|
13
|
+
return a;
|
|
14
|
+
}
|
|
15
|
+
const B = E((t, n) => {
|
|
6
16
|
const {
|
|
7
17
|
value: l,
|
|
8
|
-
options:
|
|
9
|
-
placeholder:
|
|
10
|
-
isSearchable:
|
|
11
|
-
isClearable:
|
|
12
|
-
stopEditing:
|
|
13
|
-
|
|
14
|
-
|
|
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) => ({
|
|
18
|
+
options: a = [],
|
|
19
|
+
placeholder: S = "Select...",
|
|
20
|
+
isSearchable: V = !0,
|
|
21
|
+
isClearable: w = !0,
|
|
22
|
+
stopEditing: d,
|
|
23
|
+
colDef: M
|
|
24
|
+
} = t, m = L(t), D = M?.cellRendererParams?.triggerClassName, u = l && typeof l == "object" && "value" in l, g = u ? l.cellMetadata : void 0, o = u ? l.value : l, p = a.map((e) => ({
|
|
16
25
|
value: e.value,
|
|
17
26
|
label: e.label,
|
|
18
27
|
isDisabled: e.isDisabled
|
|
19
|
-
})), [
|
|
20
|
-
|
|
21
|
-
),
|
|
22
|
-
|
|
28
|
+
})), [N, C] = O(
|
|
29
|
+
o != null ? String(o) : null
|
|
30
|
+
), v = b(
|
|
31
|
+
o != null ? String(o) : null
|
|
32
|
+
), h = b(!1);
|
|
33
|
+
R(n, () => ({
|
|
23
34
|
getValue() {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
35
|
+
const e = v.current;
|
|
36
|
+
return u ? {
|
|
37
|
+
value: e,
|
|
38
|
+
...g !== void 0 && { cellMetadata: g }
|
|
39
|
+
} : e;
|
|
28
40
|
},
|
|
29
41
|
isCancelBeforeStart() {
|
|
30
42
|
return !1;
|
|
@@ -33,38 +45,51 @@ const I = E((g, C) => {
|
|
|
33
45
|
return !1;
|
|
34
46
|
},
|
|
35
47
|
isPopup() {
|
|
36
|
-
return !
|
|
48
|
+
return !0;
|
|
37
49
|
}
|
|
38
50
|
}));
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
}, [
|
|
51
|
+
const P = p.find((e) => e.value === N) ?? null, s = r(() => {
|
|
52
|
+
h.current || (h.current = !0, d());
|
|
53
|
+
}, [d]), x = r(
|
|
42
54
|
(e) => {
|
|
43
|
-
const
|
|
44
|
-
|
|
55
|
+
const c = e ? e.value : null;
|
|
56
|
+
v.current = c, C(c), m?.(c), s();
|
|
45
57
|
},
|
|
46
|
-
[
|
|
47
|
-
),
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
58
|
+
[s, C, m]
|
|
59
|
+
), y = r(() => {
|
|
60
|
+
queueMicrotask(() => {
|
|
61
|
+
s();
|
|
62
|
+
});
|
|
63
|
+
}, [s]), i = r((e) => {
|
|
64
|
+
e.stopPropagation();
|
|
65
|
+
}, []);
|
|
66
|
+
return /* @__PURE__ */ f(
|
|
67
|
+
"div",
|
|
52
68
|
{
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
69
|
+
className: "flex h-full w-full min-w-0 items-center ag-cell-inner-padding",
|
|
70
|
+
onPointerDown: i,
|
|
71
|
+
onMouseDown: i,
|
|
72
|
+
onClick: i,
|
|
73
|
+
children: /* @__PURE__ */ f("div", { className: k("min-w-0 flex-1", D), children: /* @__PURE__ */ f(
|
|
74
|
+
j,
|
|
75
|
+
{
|
|
76
|
+
options: p,
|
|
77
|
+
value: P,
|
|
78
|
+
onChange: x,
|
|
79
|
+
onMenuClose: y,
|
|
80
|
+
placeholder: S,
|
|
81
|
+
isSearchable: V,
|
|
82
|
+
isClearable: w,
|
|
83
|
+
isMulti: !1,
|
|
84
|
+
defaultMenuIsOpen: !0,
|
|
85
|
+
className: "w-full max-w-full",
|
|
86
|
+
parentClassName: "w-full max-w-full gap-0"
|
|
87
|
+
}
|
|
88
|
+
) })
|
|
64
89
|
}
|
|
65
|
-
)
|
|
90
|
+
);
|
|
66
91
|
});
|
|
67
|
-
|
|
92
|
+
B.displayName = "ListSelectCellEditor";
|
|
68
93
|
export {
|
|
69
|
-
|
|
94
|
+
B as ListSelectCellEditor
|
|
70
95
|
};
|