impact-nova 3.0.0-alpha.2 → 3.0.0-alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/_virtual/index.js +4 -4
- package/dist/_virtual/index2.js +4 -4
- package/dist/components/data/ag-grid-react/ag-grid-list.d.ts +3 -1
- package/dist/components/data/ag-grid-react/ag-grid-list.demo-board.d.ts +46 -0
- package/dist/components/data/ag-grid-react/ag-grid-list.js +9 -8
- package/dist/components/data/ag-grid-react/ag-grid-list.key-attributes.d.ts +1 -0
- package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +65 -3
- package/dist/components/data/ag-grid-react/build-list-drag-column-defs.d.ts +8 -0
- package/dist/components/data/ag-grid-react/build-list-drag-column-defs.js +28 -0
- package/dist/components/data/ag-grid-react/cell-renderers/badge-cell-renderer.d.ts +2 -0
- package/dist/components/data/ag-grid-react/cell-renderers/badge-cell-renderer.js +15 -14
- package/dist/components/data/ag-grid-react/cell-renderers/badge-icon-registry.d.ts +10 -0
- package/dist/components/data/ag-grid-react/cell-renderers/badge-icon-registry.js +17 -0
- package/dist/components/data/ag-grid-react/cell-renderers/drag-handle-cell-renderer.d.ts +18 -0
- package/dist/components/data/ag-grid-react/cell-renderers/drag-handle-cell-renderer.js +32 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +71 -46
- package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +48 -45
- package/dist/components/data/ag-grid-react/cell-renderers/index.d.ts +45 -7
- package/dist/components/data/ag-grid-react/cell-renderers/index.js +70 -58
- package/dist/components/data/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +88 -76
- package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +31 -33
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +18 -17
- package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.d.ts +5 -11
- package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.js +127 -51
- package/dist/components/data/ag-grid-react/editable-utils.d.ts +9 -1
- package/dist/components/data/ag-grid-react/editable-utils.js +46 -41
- package/dist/components/data/ag-grid-react/headers/custom-header.js +110 -108
- package/dist/components/data/ag-grid-react/headers/header-search-input.js +203 -199
- package/dist/components/data/ag-grid-react/index.d.ts +6 -1
- package/dist/components/data/ag-grid-react/index.js +316 -248
- package/dist/components/data/ag-grid-react/list-drag-grid-options.d.ts +34 -0
- package/dist/components/data/ag-grid-react/list-drag-grid-options.js +110 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-card.d.ts +4 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-card.js +14 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-snapshot.d.ts +20 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-snapshot.js +42 -0
- package/dist/components/data/ag-grid-react/list-find-highlight.d.ts +6 -0
- package/dist/components/data/ag-grid-react/list-find-highlight.js +7 -0
- package/dist/components/data/ag-grid-react/list-row-move.d.ts +84 -0
- package/dist/components/data/ag-grid-react/list-row-move.js +74 -0
- package/dist/components/data/ag-grid-react/numeric-column-header-alignment.d.ts +9 -0
- package/dist/components/data/ag-grid-react/numeric-column-header-alignment.js +67 -0
- package/dist/components/data/ag-grid-react/process-backend-columndefs.d.ts +10 -2
- package/dist/components/data/ag-grid-react/process-backend-columndefs.js +84 -0
- package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.d.ts +67 -0
- package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.js +162 -0
- package/dist/components/data/ag-grid-react/use-list-drag-preview.d.ts +20 -0
- package/dist/components/data/ag-grid-react/use-list-drag-preview.js +148 -0
- package/dist/components/data/ag-grid-react/use-list-find.d.ts +36 -0
- package/dist/components/data/ag-grid-react/use-list-row-drop-zones.d.ts +46 -0
- package/dist/components/data/ag-grid-react/use-list-row-drop-zones.js +92 -0
- package/dist/components/data/data-table/build-column-tree-from-grid.js +15 -15
- package/dist/components/data/data-table/column-picker-authority.js +9 -9
- package/dist/components/data/data-table/data-table-column-apply.js +30 -29
- package/dist/components/data/data-table/data-table-column-tree-cache.js +62 -60
- package/dist/components/data/data-table/data-table-list-header.d.ts +7 -0
- package/dist/components/data/data-table/data-table-list-header.js +31 -0
- package/dist/components/data/data-table/data-table-overlay.d.ts +6 -0
- package/dist/components/data/data-table/data-table-overlay.js +18 -0
- package/dist/components/data/data-table/data-table-picker-column-eligibility.d.ts +3 -0
- package/dist/components/data/data-table/data-table-picker-column-eligibility.js +24 -4
- package/dist/components/data/data-table/data-table.js +35 -34
- package/dist/components/data/data-table/data-table.types.d.ts +13 -2
- package/dist/components/data/data-table/index.d.ts +10 -0
- package/dist/components/data/data-table/index.js +64 -52
- package/dist/components/data/data-table/use-data-table-viewport.d.ts +10 -0
- package/dist/components/data/data-table/use-data-table-viewport.js +31 -0
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +3 -2
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +3 -2
- package/dist/components/data/expandable-list-item/index.d.ts +2 -0
- package/dist/components/data/expandable-list-item/index.js +20 -16
- package/dist/components/data/expandable-list-item/product-card-hero.d.ts +15 -0
- package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.d.ts +8 -0
- package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.js +41 -0
- package/dist/components/data/expandable-list-item/product-card-metrics-toggle.d.ts +13 -0
- package/dist/components/data/expandable-list-item/product-card-metrics-toggle.js +27 -0
- package/dist/components/data/expandable-list-item/sku-picker-chrome.d.ts +40 -0
- package/dist/components/data/expandable-list-item/sku-picker-chrome.js +150 -0
- package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +2 -1
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +5 -4
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +3 -2
- package/dist/components/data/scenario-comparison/flatten-scenario-comparison-rows.d.ts +2 -0
- package/dist/components/data/scenario-comparison/flatten-scenario-comparison-rows.js +16 -0
- package/dist/components/data/scenario-comparison/index.d.ts +3 -0
- package/dist/components/data/scenario-comparison/index.js +6 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-column.d.ts +12 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-column.js +172 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-label.d.ts +6 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-label.js +64 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.d.ts +5 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.js +127 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.types.d.ts +56 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.variants.d.ts +7 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.variants.js +29 -0
- package/dist/components/data-display/badge/index.d.ts +2 -0
- package/dist/components/data-display/badge/index.js +4 -2
- package/dist/components/data-display/badge/trophy-icon.d.ts +6 -0
- package/dist/components/data-display/badge/trophy-icon.js +28 -0
- package/dist/components/data-display/chart/chart-scatter3d.d.ts +39 -0
- package/dist/components/data-display/chart/chart-scatter3d.js +180 -0
- package/dist/components/data-display/chart/chart.js +125 -112
- package/dist/components/data-display/chart/chart.utils.js +122 -92
- package/dist/components/data-display/stereo-scatter/index.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/index.js +10 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.d.ts +41 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.js +178 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.d.ts +14 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.js +29 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.d.ts +23 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.js +80 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine.d.ts +120 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine.js +519 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-math.d.ts +64 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-math.js +129 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-model.d.ts +37 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-model.js +71 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.d.ts +33 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.js +19 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.d.ts +4 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.js +19 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.js +75 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.js +149 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.d.ts +13 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.js +93 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.js +62 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.d.ts +3 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.js +41 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.d.ts +12 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.js +107 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.stories-data.d.ts +11 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.types.d.ts +69 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.d.ts +13 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.js +42 -0
- package/dist/components/feedback/find-bar/collect-find-matches.d.ts +35 -0
- package/dist/components/feedback/find-bar/collect-find-matches.js +68 -0
- package/dist/components/feedback/find-bar/find-bar-shortcuts.d.ts +5 -0
- package/dist/components/feedback/find-bar/find-bar-shortcuts.js +27 -0
- package/dist/components/feedback/find-bar/find-bar.d.ts +7 -0
- package/dist/components/feedback/find-bar/find-bar.js +266 -0
- package/dist/components/feedback/find-bar/find-bar.types.d.ts +32 -0
- package/dist/components/feedback/find-bar/index.d.ts +4 -0
- package/dist/components/feedback/find-bar/index.js +11 -0
- package/dist/components/feedback/tooltip/button-icon-tooltip.d.ts +6 -1
- package/dist/components/feedback/tooltip/button-icon-tooltip.js +22 -17
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +3 -2
- package/dist/components/feedback/tooltip/use-overflow-tooltip.js +44 -36
- package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
- package/dist/components/flows/filter-panel/filter-panel.js +4 -4
- package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.d.ts +5 -0
- package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.js +73 -0
- package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.d.ts +5 -0
- package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.js +49 -0
- package/dist/components/flows/iris-chat/IrisChatSnapTile.d.ts +8 -0
- package/dist/components/flows/iris-chat/IrisChatSnapTile.js +30 -0
- package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.d.ts +3 -0
- package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.js +25 -0
- package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.d.ts +4 -0
- package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.js +113 -0
- package/dist/components/flows/iris-chat/index.d.ts +3 -1
- package/dist/components/flows/iris-chat/index.js +58 -53
- package/dist/components/flows/iris-chat/iris-chat-artifact.js +46 -36
- package/dist/components/flows/iris-chat/iris-chat-chrome.d.ts +39 -0
- package/dist/components/flows/iris-chat/iris-chat-chrome.js +311 -0
- package/dist/components/flows/iris-chat/iris-chat-close-animation.d.ts +12 -0
- package/dist/components/flows/iris-chat/iris-chat-close-animation.js +21 -0
- package/dist/components/flows/iris-chat/iris-chat-composer.js +291 -234
- package/dist/components/flows/iris-chat/iris-chat-context.d.ts +16 -0
- package/dist/components/flows/iris-chat/iris-chat-context.js +14 -10
- package/dist/components/flows/iris-chat/iris-chat-copy-feedback.d.ts +4 -0
- package/dist/components/flows/iris-chat/iris-chat-copy-feedback.js +16 -0
- package/dist/components/flows/iris-chat/iris-chat-frame.d.ts +32 -0
- package/dist/components/flows/iris-chat/iris-chat-frame.js +88 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +2 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.js +46 -20
- package/dist/components/flows/iris-chat/iris-chat-launch-animation.d.ts +11 -0
- package/dist/components/flows/iris-chat/iris-chat-launch-animation.js +35 -0
- package/dist/components/flows/iris-chat/iris-chat-markdown.js +82 -42
- package/dist/components/flows/iris-chat/iris-chat-menu.js +149 -117
- package/dist/components/flows/iris-chat/iris-chat-snap-presets.d.ts +7 -0
- package/dist/components/flows/iris-chat/iris-chat-snap-presets.js +83 -0
- package/dist/components/flows/iris-chat/iris-chat-speech.d.ts +52 -0
- package/dist/components/flows/iris-chat/iris-chat-speech.js +121 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +4 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.js +277 -220
- package/dist/components/flows/iris-chat/iris-chat-window-chrome.d.ts +33 -0
- package/dist/components/flows/iris-chat/iris-chat-window-chrome.js +37 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.d.ts +14 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.js +15 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry.d.ts +12 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry.js +113 -0
- package/dist/components/flows/iris-chat/iris-chat-window-handles.d.ts +6 -0
- package/dist/components/flows/iris-chat/iris-chat-window-handles.js +50 -0
- package/dist/components/flows/iris-chat/iris-chat-window-shell.d.ts +8 -0
- package/dist/components/flows/iris-chat/iris-chat-window-shell.js +37 -0
- package/dist/components/flows/iris-chat/iris-chat.d.ts +3 -39
- package/dist/components/flows/iris-chat/iris-chat.js +22 -330
- package/dist/components/flows/iris-chat/iris-chat.types.d.ts +20 -0
- package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +4 -3
- package/dist/components/flows/iris-chat/iris-chat.variants.js +45 -22
- package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.d.ts +6 -0
- package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.js +23 -0
- package/dist/components/flows/iris-chat/use-iris-chat-root.d.ts +29 -0
- package/dist/components/flows/iris-chat/use-iris-chat-root.js +162 -0
- package/dist/components/forms/choice-card/choice-card-compare-scroll.d.ts +4 -0
- package/dist/components/forms/choice-card/choice-card-compare-scroll.js +6 -0
- package/dist/components/forms/choice-card/choice-card-percent.js +82 -51
- package/dist/components/forms/choice-card/choice-card.d.ts +14 -2
- package/dist/components/forms/choice-card/choice-card.js +470 -381
- package/dist/components/forms/choice-card/choice-card.types.d.ts +9 -2
- package/dist/components/forms/choice-card/choice-card.variants.js +24 -3
- package/dist/components/forms/input/input.js +5 -5
- package/dist/components/forms/select/components/SelectMenuPanel.js +15 -15
- package/dist/components/forms/select/components/SelectTriggerValue.js +3 -2
- package/dist/components/forms/select/components/Submenu.js +3 -2
- package/dist/components/layout/header/header.js +1 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.d.ts +3 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.js +12 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller.js +181 -125
- package/dist/components/layout/horizontal-scroller/horizontal-scroller.types.d.ts +2 -0
- package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.d.ts +3 -1
- package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.js +77 -67
- package/dist/components/primitives/button/button.variants.js +1 -1
- package/dist/components/primitives/iris/iris-insight-truncated-text.d.ts +3 -0
- package/dist/components/primitives/iris/iris-insight-truncated-text.js +33 -0
- package/dist/components/primitives/iris/iris.d.ts +3 -1
- package/dist/components/primitives/iris/iris.js +85 -91
- package/dist/components/primitives/iris/iris.types.d.ts +9 -0
- package/dist/components/primitives/stepper/internals/step-model.d.ts +1 -1
- package/dist/components/primitives/stepper/internals/step-model.js +5 -5
- package/dist/components/primitives/stepper/internals/stepper-compact.js +13 -13
- package/dist/components/primitives/stepper/internals/stepper-pipeline.js +6 -6
- package/dist/components/primitives/stepper/internals/stepper-rail.js +15 -15
- package/dist/components/primitives/stepper/internals/stepper-summary.js +7 -7
- package/dist/components/primitives/stepper/internals/stepper-track.js +2 -2
- package/dist/components/primitives/stepper/stepper.js +99 -97
- package/dist/components/primitives/stepper/stepper.types.d.ts +4 -0
- package/dist/components/primitives/tabs/folder-tab-path.d.ts +6 -0
- package/dist/components/primitives/tabs/folder-tab-path.js +16 -0
- package/dist/components/primitives/tabs/tabs.js +178 -112
- package/dist/components/primitives/tabs/tabs.types.d.ts +1 -1
- package/dist/form-react/Fields/SelectField.js +66 -57
- package/dist/form-react/Fields/VirtualizedListField.d.ts +3 -0
- package/dist/form-react/Fields/VirtualizedListField.js +223 -0
- package/dist/form-react/fields.d.ts +1 -0
- package/dist/form-react/fields.js +28 -26
- package/dist/form-react/index.d.ts +1 -1
- package/dist/form-react/registry/defaultFieldRegistrations.d.ts +1 -1
- package/dist/form-react/registry/defaultFieldRegistrations.js +13 -12
- package/dist/form-react/types/fields.types.d.ts +48 -1
- package/dist/form-react/types/fieldsOutput.types.d.ts +4 -1
- package/dist/form-react/types/reactHookForm.types.d.ts +18 -1
- package/dist/form-react/utils/fieldDefaults.utils.js +1 -1
- package/dist/i18n/defaultMessages.d.ts +69 -0
- package/dist/i18n/defaultMessages.js +107 -42
- package/dist/i18n/impact-nova-i18n-defaults.d.ts +5 -0
- package/dist/i18n/impact-nova-i18n-defaults.js +4 -9
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/locales/de.js +66 -1
- package/dist/i18n/locales/es.js +66 -1
- package/dist/i18n/locales/hi.js +66 -1
- package/dist/i18n/locales/kn.js +66 -1
- package/dist/impact-nova-components.css +372 -14
- package/dist/impact-nova-tokens.scss +4 -0
- package/dist/impact-nova.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +627 -601
- package/dist/lib/alphabetical-sort.d.ts +3 -0
- package/dist/lib/alphabetical-sort.js +13 -0
- package/dist/lib/guidance/engine/guidance-engine.js +26 -27
- package/dist/lib/guidance/engine/step-navigation.d.ts +1 -0
- package/dist/lib/guidance/engine/step-navigation.js +16 -9
- package/dist/lib/guidance/types/guidance.types.d.ts +9 -1
- package/dist/lib/virtualized/index.d.ts +2 -0
- package/dist/lib/virtualized/index.js +35 -31
- package/dist/lib/virtualized/list-index.d.ts +5 -0
- package/dist/lib/virtualized/list-index.js +13 -0
- package/dist/lib/virtualized/read-infinite-query-list.d.ts +14 -0
- package/dist/lib/virtualized/read-infinite-query-list.js +12 -0
- package/dist/lib/virtualized/types.d.ts +4 -2
- package/dist/lib/virtualized/useRowState.js +60 -56
- package/dist/lib/virtualized/useVirtualizedList.d.ts +5 -0
- package/dist/llms/rules/ag-grid.js +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/real-world-patterns.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/tailwind.config.js +3 -0
- package/dist/theme/tailwind-colors.js +3 -0
- package/package.json +23 -4
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { jsx as i, jsxs as O } from "react/jsx-runtime";
|
|
2
2
|
import { useState as p, useMemo as S, useCallback as b, useEffect as x, memo as A, useRef as N, useLayoutEffect as M } from "react";
|
|
3
3
|
import { AgGridWrapper as F } from "../ag-grid-react/index.js";
|
|
4
|
-
import { AG_GRID_LIST_ROW_HEIGHT_BY_DENSITY as
|
|
4
|
+
import { AG_GRID_LIST_ROW_HEIGHT_BY_DENSITY as L } from "../ag-grid-react/ag-grid-list.js";
|
|
5
|
+
import { isAgGridListVariant as B } from "../ag-grid-react/list-drag-grid-options.js";
|
|
5
6
|
import { cn as w } from "../../../lib/utils.js";
|
|
6
|
-
import { DataTableContext as
|
|
7
|
-
import { createDataTableSheetPortalStore as
|
|
8
|
-
import { DATA_TABLE_SCOPED_SHEET_HOST_MIN_HEIGHT_PX as
|
|
9
|
-
import { scheduleColumnTreePrewarm as
|
|
7
|
+
import { DataTableContext as z, DataTableSheetPortalStoreContext as j, useDataTable as k, useDataTableSheetPortal as y } from "./data-table-context.js";
|
|
8
|
+
import { createDataTableSheetPortalStore as W } from "./data-table-sheet-portal-store.js";
|
|
9
|
+
import { DATA_TABLE_SCOPED_SHEET_HOST_MIN_HEIGHT_PX as G, DATA_TABLE_SHEET_SLIDE_TRANSITION_MS as Y } from "./data-table-constants.js";
|
|
10
|
+
import { scheduleColumnTreePrewarm as V } from "./data-table-column-tree-cache.js";
|
|
10
11
|
import { scheduleColumnRuntimeStateGuard as X } from "./column-runtime-state-guard.js";
|
|
11
|
-
import { extractRuntimeColumnDefs as
|
|
12
|
+
import { extractRuntimeColumnDefs as $, mergeInitialGridRuntimeState as q } from "./data-table-column-def-pin.js";
|
|
12
13
|
const P = {
|
|
13
14
|
default: 46,
|
|
14
15
|
compact: 30,
|
|
15
16
|
comfort: 52
|
|
16
|
-
},
|
|
17
|
+
}, ue = ({
|
|
17
18
|
children: a,
|
|
18
19
|
className: r
|
|
19
20
|
}) => {
|
|
20
|
-
const [e, t] = p(null), [o, s] = p("medium"), [n, d] = p("full"), [l, u] = p("default"), m = S(() =>
|
|
21
|
+
const [e, t] = p(null), [o, s] = p("medium"), [n, d] = p("full"), [l, u] = p("default"), m = S(() => W(), []), f = b((c) => {
|
|
21
22
|
m.registerScopedSheetDepth(c);
|
|
22
23
|
}, [m]), g = b((c) => {
|
|
23
24
|
t(c);
|
|
@@ -25,7 +26,7 @@ const P = {
|
|
|
25
26
|
x(() => {
|
|
26
27
|
if (!e)
|
|
27
28
|
return;
|
|
28
|
-
const c =
|
|
29
|
+
const c = V(e), _ = X(e);
|
|
29
30
|
return () => {
|
|
30
31
|
c(), _();
|
|
31
32
|
};
|
|
@@ -55,8 +56,8 @@ const P = {
|
|
|
55
56
|
l
|
|
56
57
|
]
|
|
57
58
|
);
|
|
58
|
-
return /* @__PURE__ */ i(
|
|
59
|
-
|
|
59
|
+
return /* @__PURE__ */ i(z.Provider, { value: D, children: /* @__PURE__ */ i(
|
|
60
|
+
j.Provider,
|
|
60
61
|
{
|
|
61
62
|
value: m,
|
|
62
63
|
children: /* @__PURE__ */ i(
|
|
@@ -76,14 +77,14 @@ const P = {
|
|
|
76
77
|
)
|
|
77
78
|
}
|
|
78
79
|
) });
|
|
79
|
-
},
|
|
80
|
+
}, R = {
|
|
80
81
|
full: "full_no",
|
|
81
82
|
k: "thou",
|
|
82
83
|
m: "mil",
|
|
83
84
|
b: "bil",
|
|
84
85
|
full_precision: "full_precision"
|
|
85
|
-
},
|
|
86
|
-
const { setSheetTarget: r } =
|
|
86
|
+
}, J = A(function() {
|
|
87
|
+
const { setSheetTarget: r } = y();
|
|
87
88
|
return /* @__PURE__ */ i(
|
|
88
89
|
"div",
|
|
89
90
|
{
|
|
@@ -91,17 +92,17 @@ const P = {
|
|
|
91
92
|
className: "absolute inset-0 pointer-events-none z-[39] flex overflow-hidden"
|
|
92
93
|
}
|
|
93
94
|
);
|
|
94
|
-
}),
|
|
95
|
+
}), K = A(function({
|
|
95
96
|
className: r,
|
|
96
97
|
children: e
|
|
97
98
|
}) {
|
|
98
|
-
const { scopedSheetOpen: t } =
|
|
99
|
+
const { scopedSheetOpen: t } = y(), o = N(null), [s, n] = p(!1);
|
|
99
100
|
!t && s && n(!1), M(() => {
|
|
100
|
-
if (!t || (o.current?.clientHeight ?? 0) >=
|
|
101
|
+
if (!t || (o.current?.clientHeight ?? 0) >= G)
|
|
101
102
|
return;
|
|
102
103
|
const u = window.setTimeout(() => {
|
|
103
104
|
n(!0);
|
|
104
|
-
},
|
|
105
|
+
}, Y);
|
|
105
106
|
return () => {
|
|
106
107
|
window.clearTimeout(u);
|
|
107
108
|
};
|
|
@@ -115,14 +116,14 @@ const P = {
|
|
|
115
116
|
"relative flex-1 min-h-0 w-full bg-canvas-elevated rounded-b-[inherit] grid-rounded-bottom",
|
|
116
117
|
r
|
|
117
118
|
),
|
|
118
|
-
style: d ? { minHeight:
|
|
119
|
+
style: d ? { minHeight: G } : void 0,
|
|
119
120
|
children: [
|
|
120
121
|
e,
|
|
121
|
-
/* @__PURE__ */ i(
|
|
122
|
+
/* @__PURE__ */ i(J, {})
|
|
122
123
|
]
|
|
123
124
|
}
|
|
124
125
|
);
|
|
125
|
-
}),
|
|
126
|
+
}), Q = A(function({
|
|
126
127
|
resolvedRowHeight: r,
|
|
127
128
|
mergedContext: e,
|
|
128
129
|
onGridReady: t,
|
|
@@ -142,13 +143,13 @@ const P = {
|
|
|
142
143
|
}
|
|
143
144
|
);
|
|
144
145
|
});
|
|
145
|
-
function
|
|
146
|
+
function me(a) {
|
|
146
147
|
const {
|
|
147
148
|
registerApi: r,
|
|
148
149
|
rowHeight: e,
|
|
149
150
|
gridApi: t,
|
|
150
151
|
numericFormat: o
|
|
151
|
-
} =
|
|
152
|
+
} = k(), {
|
|
152
153
|
className: s,
|
|
153
154
|
onGridReady: n,
|
|
154
155
|
rowHeight: d,
|
|
@@ -159,11 +160,11 @@ function ce(a) {
|
|
|
159
160
|
maintainColumnOrder: g = !0,
|
|
160
161
|
variant: h = "table",
|
|
161
162
|
...H
|
|
162
|
-
} = a, D = P[e], c = d ?? (h
|
|
163
|
-
() =>
|
|
163
|
+
} = a, D = P[e], c = d ?? (B(h) ? L[e] : D), { runtimeColumnDefs: _, extractedRuntimeDefaults: v } = S(
|
|
164
|
+
() => $(u ?? void 0),
|
|
164
165
|
[u]
|
|
165
166
|
), C = S(
|
|
166
|
-
() =>
|
|
167
|
+
() => q(
|
|
167
168
|
m,
|
|
168
169
|
v,
|
|
169
170
|
f
|
|
@@ -172,7 +173,7 @@ function ce(a) {
|
|
|
172
173
|
), E = S(
|
|
173
174
|
() => ({
|
|
174
175
|
...l,
|
|
175
|
-
formatType:
|
|
176
|
+
formatType: R[o]
|
|
176
177
|
}),
|
|
177
178
|
[l, o]
|
|
178
179
|
);
|
|
@@ -183,7 +184,7 @@ function ce(a) {
|
|
|
183
184
|
const T = t.getGridOption("context") || {};
|
|
184
185
|
t.setGridOption("context", {
|
|
185
186
|
...T,
|
|
186
|
-
formatType:
|
|
187
|
+
formatType: R[o]
|
|
187
188
|
}), t.refreshCells({ force: !0 });
|
|
188
189
|
}
|
|
189
190
|
}, [o, t]);
|
|
@@ -193,8 +194,8 @@ function ce(a) {
|
|
|
193
194
|
},
|
|
194
195
|
[r, n]
|
|
195
196
|
);
|
|
196
|
-
return /* @__PURE__ */ i(
|
|
197
|
-
|
|
197
|
+
return /* @__PURE__ */ i(K, { className: s, children: /* @__PURE__ */ i(
|
|
198
|
+
Q,
|
|
198
199
|
{
|
|
199
200
|
...H,
|
|
200
201
|
variant: h,
|
|
@@ -207,7 +208,7 @@ function ce(a) {
|
|
|
207
208
|
}
|
|
208
209
|
) });
|
|
209
210
|
}
|
|
210
|
-
const
|
|
211
|
+
const de = ({
|
|
211
212
|
children: a,
|
|
212
213
|
className: r,
|
|
213
214
|
...e
|
|
@@ -224,7 +225,7 @@ const ue = ({
|
|
|
224
225
|
}
|
|
225
226
|
);
|
|
226
227
|
export {
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
228
|
+
ue as DataTable,
|
|
229
|
+
me as DataTableContent,
|
|
230
|
+
de as DataTableToolbar
|
|
230
231
|
};
|
|
@@ -15,8 +15,10 @@ export type DataTableProps = {
|
|
|
15
15
|
export type DataTableContentProps<TData = unknown> = AgGridWrapperProps<TData> & {
|
|
16
16
|
className?: string;
|
|
17
17
|
/**
|
|
18
|
-
* Visual skin forwarded to `AgGridWrapper`. `"list"` is card-row chrome
|
|
19
|
-
*
|
|
18
|
+
* Visual skin forwarded to `AgGridWrapper`. `"list"` is card-row chrome
|
|
19
|
+
* (48px card + 12px gap). Pass `onRowReorder` and `getRowId` on `"list"` to
|
|
20
|
+
* enable row drag — same component, not a second variant. Explicit `rowHeight` wins.
|
|
21
|
+
* List defaults `cellSelection` to false; pass `cellSelection={true}` to opt back in.
|
|
20
22
|
*/
|
|
21
23
|
variant?: AgGridWrapperProps<TData>["variant"];
|
|
22
24
|
/**
|
|
@@ -37,6 +39,15 @@ export type DataTableToolbarProps = {
|
|
|
37
39
|
/** Extra classes on the toolbar root (`data-component="data-table-toolbar"`). */
|
|
38
40
|
className?: string;
|
|
39
41
|
} & Omit<React.ComponentPropsWithoutRef<'div'>, 'children' | 'className'>;
|
|
42
|
+
/**
|
|
43
|
+
* 40px muted heading above a list grid. Optional — skip it for a headerless list.
|
|
44
|
+
*/
|
|
45
|
+
export type DataTableListHeaderProps = {
|
|
46
|
+
title?: React.ReactNode;
|
|
47
|
+
description?: React.ReactNode;
|
|
48
|
+
actions?: React.ReactNode;
|
|
49
|
+
className?: string;
|
|
50
|
+
} & Omit<React.ComponentPropsWithoutRef<"div">, "title" | "children" | "className">;
|
|
40
51
|
/**
|
|
41
52
|
* Scoped settings panel state. Renders inside the `DataTable` container (not a viewport modal).
|
|
42
53
|
*
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
+
export type { CellClassRules, CellClickedEvent, CellEditingStartedEvent, CellEditingStoppedEvent, ColDef, ColGroupDef, Column, GridApi, ICellEditorParams, ICellRendererParams, IRowNode, IServerSideDatasource, IServerSideGetRowsParams, ProcessCellForExportParams, ValueFormatterParams, ValueGetterParams, ValueSetterParams, } from 'ag-grid-community';
|
|
1
2
|
export * from './data-table';
|
|
3
|
+
export { DataTableListHeader } from './data-table-list-header';
|
|
4
|
+
export type { DataTableListHeaderProps } from './data-table.types';
|
|
5
|
+
export { DataTableOverlay } from './data-table-overlay';
|
|
6
|
+
export { ListFindHighlight } from '../ag-grid-react/list-find-highlight';
|
|
7
|
+
export { useListRowDropZones } from '../ag-grid-react/use-list-row-drop-zones';
|
|
8
|
+
export type { UseListRowDropZonesOptions } from '../ag-grid-react/use-list-row-drop-zones';
|
|
9
|
+
export type { ListRowReorderMeta, ListRowTransferMeta, ListRowDropCheck, } from '../ag-grid-react/list-row-move';
|
|
10
|
+
export { AG_GRID_LIST_RANK_GRADIENT } from '../ag-grid-react/ag-grid-list';
|
|
2
11
|
export * from './column-runtime-state-guard';
|
|
3
12
|
export * from './data-table-constants';
|
|
4
13
|
export * from './data-table-column-list';
|
|
@@ -14,4 +23,5 @@ export * from './column-indicator';
|
|
|
14
23
|
export * from './indicator-legend';
|
|
15
24
|
export * from './column-savability';
|
|
16
25
|
export { mergePartialOrderedColumnState } from './data-table-column-state';
|
|
26
|
+
export { useDataTableViewport } from './use-data-table-viewport';
|
|
17
27
|
export type { SavedTableViewItem, TableViewTypeOption, DataTableSavedViewsProps, DataTableSavedViewsActionContext, DataTableSavedViewsCancelContext, } from '../data-table/data-table-saved-views.types';
|
|
@@ -1,58 +1,70 @@
|
|
|
1
1
|
import { DataTable as t, DataTableContent as r, DataTableToolbar as o } from "./data-table.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
2
|
+
import { DataTableListHeader as T } from "./data-table-list-header.js";
|
|
3
|
+
import { DataTableOverlay as i } from "./data-table-overlay.js";
|
|
4
|
+
import { ListFindHighlight as n } from "../ag-grid-react/list-find-highlight.js";
|
|
5
|
+
import { useListRowDropZones as b } from "../ag-grid-react/use-list-row-drop-zones.js";
|
|
6
|
+
import { AG_GRID_LIST_RANK_GRADIENT as p } from "../ag-grid-react/ag-grid-list.js";
|
|
7
|
+
import { deferColumnRuntimeStateGuard as f, isColumnRuntimeStateGuardDeferred as s, isColumnRuntimeStateGuardUpdating as d, rebuildColumnTreeCacheFromGrid as _, scheduleColumnRuntimeStateGuard as h } from "./column-runtime-state-guard.js";
|
|
8
|
+
import { DATA_TABLE_SCOPED_SHEET_HOST_MIN_HEIGHT_PX as E, DATA_TABLE_SHEET_SLIDE_TRANSITION_MS as A, TABLE_VIEWPORT_SHELL_EXPANDED_CLASS as L } from "./data-table-constants.js";
|
|
9
|
+
import { DataTableColumnList as g } from "./data-table-column-list.js";
|
|
10
|
+
import { DataTableContext as P, DataTableSheetPortalStoreContext as R, useDataTable as G, useDataTableSheetPortal as H, useDataTableSheetPortalStore as V } from "./data-table-context.js";
|
|
11
|
+
import { DataTableFormatOptions as O } from "./data-table-format-options.js";
|
|
12
|
+
import { DataTableSheet as N, DataTableSheetContent as v, DataTableSheetHeader as y, DataTableSheetTrigger as B } from "./data-table-sheet.js";
|
|
13
|
+
import { DataTableSheetBody as X, DataTableSheetSection as K, DataTableSheetTabPanel as U, DataTableSheetTabs as W, DataTableSheetTabsList as Z } from "./data-table-sheet-layout.js";
|
|
14
|
+
import { useDataTableSheet as k, useDataTableSheetApi as q } from "./data-table-sheet-context.js";
|
|
15
|
+
import { DataTableViewMenuContent as J, DataTableViewMenuDensity as Q, DataTableViewMenuSettingsItem as Y, DataTableViewMenuTrigger as $, DataTableViewMenuViewportExpand as ee } from "./data-table-view-menu.js";
|
|
16
|
+
import { DataTableSavedViews as te } from "./data-table-saved-views.js";
|
|
17
|
+
import { PinSwitch as oe } from "./pin-switch.js";
|
|
18
|
+
import { ColumnIndicator as Te } from "./column-indicator.js";
|
|
19
|
+
import { IndicatorLegend as ie } from "./indicator-legend.js";
|
|
20
|
+
import { resolveColumnSavability as ne } from "./column-savability.js";
|
|
21
|
+
import { mergePartialOrderedColumnState as be } from "./data-table-column-state.js";
|
|
22
|
+
import { useDataTableViewport as pe } from "./use-data-table-viewport.js";
|
|
17
23
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
24
|
+
p as AG_GRID_LIST_RANK_GRADIENT,
|
|
25
|
+
Te as ColumnIndicator,
|
|
26
|
+
E as DATA_TABLE_SCOPED_SHEET_HOST_MIN_HEIGHT_PX,
|
|
27
|
+
A as DATA_TABLE_SHEET_SLIDE_TRANSITION_MS,
|
|
21
28
|
t as DataTable,
|
|
22
|
-
|
|
29
|
+
g as DataTableColumnList,
|
|
23
30
|
r as DataTableContent,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
P as DataTableContext,
|
|
32
|
+
O as DataTableFormatOptions,
|
|
33
|
+
T as DataTableListHeader,
|
|
34
|
+
i as DataTableOverlay,
|
|
35
|
+
te as DataTableSavedViews,
|
|
36
|
+
N as DataTableSheet,
|
|
37
|
+
X as DataTableSheetBody,
|
|
38
|
+
v as DataTableSheetContent,
|
|
39
|
+
y as DataTableSheetHeader,
|
|
40
|
+
R as DataTableSheetPortalStoreContext,
|
|
41
|
+
K as DataTableSheetSection,
|
|
42
|
+
U as DataTableSheetTabPanel,
|
|
43
|
+
W as DataTableSheetTabs,
|
|
44
|
+
Z as DataTableSheetTabsList,
|
|
45
|
+
B as DataTableSheetTrigger,
|
|
37
46
|
o as DataTableToolbar,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
47
|
+
J as DataTableViewMenuContent,
|
|
48
|
+
Q as DataTableViewMenuDensity,
|
|
49
|
+
Y as DataTableViewMenuSettingsItem,
|
|
50
|
+
$ as DataTableViewMenuTrigger,
|
|
51
|
+
ee as DataTableViewMenuViewportExpand,
|
|
52
|
+
ie as IndicatorLegend,
|
|
53
|
+
n as ListFindHighlight,
|
|
54
|
+
oe as PinSwitch,
|
|
55
|
+
L as TABLE_VIEWPORT_SHELL_EXPANDED_CLASS,
|
|
56
|
+
f as deferColumnRuntimeStateGuard,
|
|
57
|
+
s as isColumnRuntimeStateGuardDeferred,
|
|
58
|
+
d as isColumnRuntimeStateGuardUpdating,
|
|
59
|
+
be as mergePartialOrderedColumnState,
|
|
60
|
+
_ as rebuildColumnTreeCacheFromGrid,
|
|
61
|
+
ne as resolveColumnSavability,
|
|
62
|
+
h as scheduleColumnRuntimeStateGuard,
|
|
63
|
+
G as useDataTable,
|
|
64
|
+
k as useDataTableSheet,
|
|
65
|
+
q as useDataTableSheetApi,
|
|
66
|
+
H as useDataTableSheetPortal,
|
|
67
|
+
V as useDataTableSheetPortalStore,
|
|
68
|
+
pe as useDataTableViewport,
|
|
69
|
+
b as useListRowDropZones
|
|
58
70
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function useDataTableViewport(): {
|
|
2
|
+
tableShellRef: import('react').RefObject<HTMLDivElement | null>;
|
|
3
|
+
viewMenuViewportExpandProps: {
|
|
4
|
+
expanded: boolean;
|
|
5
|
+
onExpandedChange: (expanded: boolean) => void;
|
|
6
|
+
};
|
|
7
|
+
isViewportExpanded: boolean;
|
|
8
|
+
setViewportExpanded: (expanded: boolean) => void;
|
|
9
|
+
isViewportExpandedRef: import('react').RefObject<boolean>;
|
|
10
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { useRef as r, useState as l, useCallback as i, useLayoutEffect as u, useMemo as E } from "react";
|
|
2
|
+
import { TABLE_VIEWPORT_SHELL_EXPANDED_CLASS as c } from "./data-table-constants.js";
|
|
3
|
+
function w() {
|
|
4
|
+
const n = r(null), [e, a] = l(!1), o = r(!1), s = i((t) => {
|
|
5
|
+
o.current = t, a(t);
|
|
6
|
+
}, []);
|
|
7
|
+
u(() => {
|
|
8
|
+
const t = n.current;
|
|
9
|
+
t && t.classList.toggle(
|
|
10
|
+
c,
|
|
11
|
+
e
|
|
12
|
+
);
|
|
13
|
+
}, [e]);
|
|
14
|
+
const p = E(
|
|
15
|
+
() => ({
|
|
16
|
+
expanded: e,
|
|
17
|
+
onExpandedChange: s
|
|
18
|
+
}),
|
|
19
|
+
[e, s]
|
|
20
|
+
);
|
|
21
|
+
return {
|
|
22
|
+
tableShellRef: n,
|
|
23
|
+
viewMenuViewportExpandProps: p,
|
|
24
|
+
isViewportExpanded: e,
|
|
25
|
+
setViewportExpanded: s,
|
|
26
|
+
isViewportExpandedRef: o
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
w as useDataTableViewport
|
|
31
|
+
};
|
|
@@ -3,7 +3,8 @@ import { Badge as s } from "../../data-display/badge/badge.js";
|
|
|
3
3
|
import { FilterPopoverContent as u } from "../../flows/filter-strip/filter-tag-list.js";
|
|
4
4
|
import { Popover as b, PopoverTrigger as f } from "../../feedback/popover/popover.js";
|
|
5
5
|
import { Tooltip as g, TooltipTrigger as v, TooltipContent as x } from "../../feedback/tooltip/tooltip.js";
|
|
6
|
-
|
|
6
|
+
import "react";
|
|
7
|
+
function I({
|
|
7
8
|
tags: o,
|
|
8
9
|
title: l = "Attributes",
|
|
9
10
|
maxVisibleTags: n = 4,
|
|
@@ -70,5 +71,5 @@ function w({
|
|
|
70
71
|
);
|
|
71
72
|
}
|
|
72
73
|
export {
|
|
73
|
-
|
|
74
|
+
I as ExpandableListItemAttributes
|
|
74
75
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { ScrollOverflowAffordance as o } from "../../layout/horizontal-scroller/scroll-overflow-affordance.js";
|
|
3
|
+
import "react";
|
|
3
4
|
import { OverflowTooltip as r } from "../../feedback/tooltip/overflow-tooltip.js";
|
|
4
5
|
const m = 128;
|
|
5
|
-
function
|
|
6
|
+
function f({
|
|
6
7
|
columns: i,
|
|
7
8
|
sectionId: l = "metrics"
|
|
8
9
|
}) {
|
|
@@ -50,5 +51,5 @@ function x({
|
|
|
50
51
|
);
|
|
51
52
|
}
|
|
52
53
|
export {
|
|
53
|
-
|
|
54
|
+
f as ExpandableListItemMetrics
|
|
54
55
|
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { ProductCardMetricsToggle, type ProductCardMetricsToggleProps, } from './product-card-metrics-toggle';
|
|
2
|
+
export { ProductCardIrisInsightTrigger, type ProductCardIrisInsightTriggerProps, } from './product-card-iris-insight-trigger';
|
|
1
3
|
export { ExpandableListItem, type ExpandableListItemProps, } from './expandable-list-item-preset';
|
|
2
4
|
export { ExpandableListItemRoot, ExpandableListItemRow, ExpandableListItemCheckbox, ExpandableListItemTrigger, ExpandableListItemTitle, ExpandableListItemDescription, ExpandableListItemMedia, ExpandableListItemHeader, ExpandableListItemContent, ExpandableListItemFooter, type ExpandableListItemRootProps, type ExpandableListItemCheckboxProps, } from './expandable-list-item-parts';
|
|
3
5
|
export { ExpandableListItemMetrics, type ExpandableListItemMetricsProps } from './expandable-list-item-metrics';
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { ProductCardMetricsToggle as a } from "./product-card-metrics-toggle.js";
|
|
2
|
+
import { ProductCardIrisInsightTrigger as i } from "./product-card-iris-insight-trigger.js";
|
|
3
|
+
import { ExpandableListItem as p } from "./expandable-list-item-preset.js";
|
|
4
|
+
import { ExpandableListItemCheckbox as d, ExpandableListItemContent as m, ExpandableListItemDescription as s, ExpandableListItemFooter as n, ExpandableListItemHeader as b, ExpandableListItemMedia as l, ExpandableListItemRoot as I, ExpandableListItemRow as E, ExpandableListItemTitle as L, ExpandableListItemTrigger as g } from "./expandable-list-item-parts.js";
|
|
5
|
+
import { ExpandableListItemMetrics as f } from "./expandable-list-item-metrics.js";
|
|
6
|
+
import { ExpandableListItemAttributes as T } from "./expandable-list-item-attributes.js";
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
p as ExpandableListItem,
|
|
9
|
+
T as ExpandableListItemAttributes,
|
|
10
|
+
d as ExpandableListItemCheckbox,
|
|
11
|
+
m as ExpandableListItemContent,
|
|
12
|
+
s as ExpandableListItemDescription,
|
|
11
13
|
n as ExpandableListItemFooter,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
b as ExpandableListItemHeader,
|
|
15
|
+
l as ExpandableListItemMedia,
|
|
16
|
+
f as ExpandableListItemMetrics,
|
|
17
|
+
I as ExpandableListItemRoot,
|
|
18
|
+
E as ExpandableListItemRow,
|
|
19
|
+
L as ExpandableListItemTitle,
|
|
20
|
+
g as ExpandableListItemTrigger,
|
|
21
|
+
i as ProductCardIrisInsightTrigger,
|
|
22
|
+
a as ProductCardMetricsToggle
|
|
19
23
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ItemCatalogRecord } from './virtualized-responsive-grid.catalog';
|
|
3
|
+
export type ProductCardHeroProps = {
|
|
4
|
+
item: ItemCatalogRecord;
|
|
5
|
+
selected: boolean;
|
|
6
|
+
thumbnail: ReactElement;
|
|
7
|
+
onFlip: () => void;
|
|
8
|
+
onSelect: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare function ProductCardHero(props: ProductCardHeroProps): ReactElement;
|
|
11
|
+
export declare function ProductCardHeaderCheckbox(props: {
|
|
12
|
+
item: ItemCatalogRecord;
|
|
13
|
+
selected: boolean;
|
|
14
|
+
onSelect: () => void;
|
|
15
|
+
}): ReactElement;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ProductCardMetricsTogglePlacement } from './product-card-metrics-toggle';
|
|
3
|
+
export type ProductCardIrisInsightTriggerProps = {
|
|
4
|
+
styleId: string;
|
|
5
|
+
title: string;
|
|
6
|
+
placement?: ProductCardMetricsTogglePlacement;
|
|
7
|
+
};
|
|
8
|
+
export declare function ProductCardIrisInsightTrigger(props: ProductCardIrisInsightTriggerProps): ReactElement;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { useState as o, useRef as c, useEffect as l } from "react";
|
|
3
|
+
import { IrisInsight as d } from "../../primitives/iris/iris.js";
|
|
4
|
+
const m = 2200;
|
|
5
|
+
function u(t) {
|
|
6
|
+
return t === "inline" ? "relative shrink-0" : "absolute right-2 top-2";
|
|
7
|
+
}
|
|
8
|
+
function I(t) {
|
|
9
|
+
const [s, n] = o("idle"), e = c(void 0);
|
|
10
|
+
l(
|
|
11
|
+
() => () => {
|
|
12
|
+
e.current && clearTimeout(e.current);
|
|
13
|
+
},
|
|
14
|
+
[]
|
|
15
|
+
);
|
|
16
|
+
const r = u(t.placement);
|
|
17
|
+
return /* @__PURE__ */ i("div", { className: r, children: /* @__PURE__ */ i(
|
|
18
|
+
d,
|
|
19
|
+
{
|
|
20
|
+
status: s,
|
|
21
|
+
iconSize: "sm",
|
|
22
|
+
onTriggerClick: () => {
|
|
23
|
+
n("loading"), e.current = setTimeout(() => {
|
|
24
|
+
e.current = void 0, n("ready");
|
|
25
|
+
}, m);
|
|
26
|
+
},
|
|
27
|
+
onAskInChat: () => {
|
|
28
|
+
},
|
|
29
|
+
children: /* @__PURE__ */ a("p", { children: [
|
|
30
|
+
/* @__PURE__ */ i("span", { className: "font-bold", children: t.title }),
|
|
31
|
+
" is tracking",
|
|
32
|
+
" ",
|
|
33
|
+
/* @__PURE__ */ i("span", { className: "font-bold", children: t.styleId }),
|
|
34
|
+
" against plan this period."
|
|
35
|
+
] })
|
|
36
|
+
}
|
|
37
|
+
) });
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
I as ProductCardIrisInsightTrigger
|
|
41
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
export type ProductCardMetricsTogglePlacement = "hero" | "inline";
|
|
3
|
+
export type ProductCardMetricsToggleProps = {
|
|
4
|
+
isFlipped: boolean;
|
|
5
|
+
showMetricsLabel: string;
|
|
6
|
+
showPhotoLabel: string;
|
|
7
|
+
actionAriaLabel: string;
|
|
8
|
+
onShowMetrics: () => void;
|
|
9
|
+
onShowPhoto: () => void;
|
|
10
|
+
icon: ReactNode;
|
|
11
|
+
placement?: ProductCardMetricsTogglePlacement;
|
|
12
|
+
};
|
|
13
|
+
export declare function ProductCardMetricsToggle(props: ProductCardMetricsToggleProps): ReactElement;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { ButtonIconTooltip as l } from "../../feedback/tooltip/button-icon-tooltip.js";
|
|
3
|
+
import { Button as r } from "../../primitives/button/button.js";
|
|
4
|
+
function d(t) {
|
|
5
|
+
const o = t.isFlipped ? t.showPhotoLabel : t.showMetricsLabel, n = (i) => {
|
|
6
|
+
if (i.stopPropagation(), t.isFlipped) {
|
|
7
|
+
t.onShowPhoto();
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
t.onShowMetrics();
|
|
11
|
+
}, a = t.placement === "inline" ? "relative z-20 shrink-0" : "absolute right-2 top-2 z-20";
|
|
12
|
+
return /* @__PURE__ */ e("div", { className: a, onClick: (i) => i.stopPropagation(), children: /* @__PURE__ */ e(l, { label: o, children: /* @__PURE__ */ e(
|
|
13
|
+
r,
|
|
14
|
+
{
|
|
15
|
+
type: "button",
|
|
16
|
+
size: "iconSm",
|
|
17
|
+
variant: "tertiary",
|
|
18
|
+
"aria-pressed": t.isFlipped,
|
|
19
|
+
"aria-label": t.actionAriaLabel,
|
|
20
|
+
onClick: n,
|
|
21
|
+
children: t.icon
|
|
22
|
+
}
|
|
23
|
+
) }) });
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
d as ProductCardMetricsToggle
|
|
27
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { AlphabeticalSortDirection } from '../../../lib/alphabetical-sort';
|
|
3
|
+
export type SkuPickerView = "card" | "list";
|
|
4
|
+
export type SkuPickerGridProps = {
|
|
5
|
+
/** Fold the toolbar and choices behind the title row. */
|
|
6
|
+
collapsible?: boolean;
|
|
7
|
+
/** Start folded. Ignored unless `collapsible` is set. */
|
|
8
|
+
defaultCollapsed?: boolean;
|
|
9
|
+
/** Title in the header. Default: SKU. */
|
|
10
|
+
title?: string;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare function SkuPickerChrome(props: {
|
|
14
|
+
view: SkuPickerView;
|
|
15
|
+
search: string;
|
|
16
|
+
sortDirection: AlphabeticalSortDirection;
|
|
17
|
+
selectedCount: number;
|
|
18
|
+
/** True when every choice Select All would touch is already selected. */
|
|
19
|
+
allSelected?: boolean;
|
|
20
|
+
previewCodes: string[];
|
|
21
|
+
onSearchChange: (value: string) => void;
|
|
22
|
+
onViewChange: (view: SkuPickerView) => void;
|
|
23
|
+
onToggleSort: () => void;
|
|
24
|
+
onSelectAll: () => void;
|
|
25
|
+
onClear: () => void;
|
|
26
|
+
/** Multi-select shows Select All and Clear. Single-select omits them. */
|
|
27
|
+
showBulkActions?: boolean;
|
|
28
|
+
/** Search, sort, view toggle, and bulk actions. Default: true. */
|
|
29
|
+
showToolbar?: boolean;
|
|
30
|
+
children: ReactNode;
|
|
31
|
+
footer?: ReactNode;
|
|
32
|
+
collapsible?: boolean;
|
|
33
|
+
defaultCollapsed?: boolean;
|
|
34
|
+
title?: string;
|
|
35
|
+
required?: boolean;
|
|
36
|
+
emptyLabel?: string;
|
|
37
|
+
searchLabel?: string;
|
|
38
|
+
/** Story picker keeps the back control. Form fields omit it. */
|
|
39
|
+
showBack?: boolean;
|
|
40
|
+
}): import("react/jsx-runtime").JSX.Element;
|