impact-nova 3.0.0-alpha.2 → 3.0.0-alpha.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/components/data/ag-grid-react/ag-grid-list.d.ts +3 -1
- package/dist/components/data/ag-grid-react/ag-grid-list.demo-board.d.ts +46 -0
- package/dist/components/data/ag-grid-react/ag-grid-list.js +9 -8
- package/dist/components/data/ag-grid-react/ag-grid-list.key-attributes.d.ts +1 -0
- package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +65 -3
- package/dist/components/data/ag-grid-react/build-list-drag-column-defs.d.ts +8 -0
- package/dist/components/data/ag-grid-react/build-list-drag-column-defs.js +28 -0
- package/dist/components/data/ag-grid-react/cell-renderers/badge-cell-renderer.d.ts +2 -0
- package/dist/components/data/ag-grid-react/cell-renderers/badge-cell-renderer.js +15 -14
- package/dist/components/data/ag-grid-react/cell-renderers/badge-icon-registry.d.ts +10 -0
- package/dist/components/data/ag-grid-react/cell-renderers/badge-icon-registry.js +17 -0
- package/dist/components/data/ag-grid-react/cell-renderers/drag-handle-cell-renderer.d.ts +18 -0
- package/dist/components/data/ag-grid-react/cell-renderers/drag-handle-cell-renderer.js +32 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +71 -46
- package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +53 -49
- package/dist/components/data/ag-grid-react/cell-renderers/index.d.ts +45 -7
- package/dist/components/data/ag-grid-react/cell-renderers/index.js +70 -58
- package/dist/components/data/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +88 -76
- package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +31 -33
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +18 -17
- package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.d.ts +5 -11
- package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.js +127 -51
- package/dist/components/data/ag-grid-react/editable-utils.d.ts +9 -1
- package/dist/components/data/ag-grid-react/editable-utils.js +46 -41
- package/dist/components/data/ag-grid-react/headers/custom-header.js +110 -108
- package/dist/components/data/ag-grid-react/headers/header-search-input.js +203 -199
- package/dist/components/data/ag-grid-react/index.d.ts +6 -1
- package/dist/components/data/ag-grid-react/index.js +316 -248
- package/dist/components/data/ag-grid-react/list-drag-grid-options.d.ts +34 -0
- package/dist/components/data/ag-grid-react/list-drag-grid-options.js +110 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-card.d.ts +4 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-card.js +14 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-snapshot.d.ts +20 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-snapshot.js +42 -0
- package/dist/components/data/ag-grid-react/list-find-highlight.d.ts +6 -0
- package/dist/components/data/ag-grid-react/list-find-highlight.js +7 -0
- package/dist/components/data/ag-grid-react/list-row-move.d.ts +84 -0
- package/dist/components/data/ag-grid-react/list-row-move.js +74 -0
- package/dist/components/data/ag-grid-react/numeric-column-header-alignment.d.ts +9 -0
- package/dist/components/data/ag-grid-react/numeric-column-header-alignment.js +67 -0
- package/dist/components/data/ag-grid-react/process-backend-columndefs.d.ts +10 -2
- package/dist/components/data/ag-grid-react/process-backend-columndefs.js +84 -0
- package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.d.ts +67 -0
- package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.js +162 -0
- package/dist/components/data/ag-grid-react/use-list-drag-preview.d.ts +20 -0
- package/dist/components/data/ag-grid-react/use-list-drag-preview.js +148 -0
- package/dist/components/data/ag-grid-react/use-list-find.d.ts +36 -0
- package/dist/components/data/ag-grid-react/use-list-row-drop-zones.d.ts +46 -0
- package/dist/components/data/ag-grid-react/use-list-row-drop-zones.js +92 -0
- package/dist/components/data/data-table/build-column-tree-from-grid.js +15 -15
- package/dist/components/data/data-table/column-picker-authority.js +9 -9
- package/dist/components/data/data-table/data-table-column-apply.js +30 -29
- package/dist/components/data/data-table/data-table-column-tree-cache.js +62 -60
- package/dist/components/data/data-table/data-table-list-header.d.ts +7 -0
- package/dist/components/data/data-table/data-table-list-header.js +31 -0
- package/dist/components/data/data-table/data-table-overlay.d.ts +6 -0
- package/dist/components/data/data-table/data-table-overlay.js +18 -0
- package/dist/components/data/data-table/data-table-picker-column-eligibility.d.ts +3 -0
- package/dist/components/data/data-table/data-table-picker-column-eligibility.js +24 -4
- package/dist/components/data/data-table/data-table.js +35 -34
- package/dist/components/data/data-table/data-table.types.d.ts +13 -2
- package/dist/components/data/data-table/index.d.ts +10 -0
- package/dist/components/data/data-table/index.js +64 -52
- package/dist/components/data/data-table/use-data-table-viewport.d.ts +10 -0
- package/dist/components/data/data-table/use-data-table-viewport.js +31 -0
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +3 -2
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +3 -2
- package/dist/components/data/expandable-list-item/index.d.ts +2 -0
- package/dist/components/data/expandable-list-item/index.js +20 -16
- package/dist/components/data/expandable-list-item/product-card-hero.d.ts +15 -0
- package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.d.ts +8 -0
- package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.js +41 -0
- package/dist/components/data/expandable-list-item/product-card-metrics-toggle.d.ts +13 -0
- package/dist/components/data/expandable-list-item/product-card-metrics-toggle.js +27 -0
- package/dist/components/data/expandable-list-item/sku-picker-chrome.d.ts +40 -0
- package/dist/components/data/expandable-list-item/sku-picker-chrome.js +150 -0
- package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +2 -1
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +5 -4
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +3 -2
- package/dist/components/data/scenario-comparison/flatten-scenario-comparison-rows.d.ts +2 -0
- package/dist/components/data/scenario-comparison/flatten-scenario-comparison-rows.js +16 -0
- package/dist/components/data/scenario-comparison/index.d.ts +3 -0
- package/dist/components/data/scenario-comparison/index.js +6 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-column.d.ts +12 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-column.js +172 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-label.d.ts +6 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-label.js +64 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.d.ts +5 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.js +127 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.types.d.ts +56 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.variants.d.ts +7 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.variants.js +29 -0
- package/dist/components/data-display/badge/index.d.ts +2 -0
- package/dist/components/data-display/badge/index.js +4 -2
- package/dist/components/data-display/badge/trophy-icon.d.ts +6 -0
- package/dist/components/data-display/badge/trophy-icon.js +28 -0
- package/dist/components/data-display/chart/chart-heatmap-layout.d.ts +31 -0
- package/dist/components/data-display/chart/chart-heatmap-layout.js +72 -0
- package/dist/components/data-display/chart/chart-scatter3d.d.ts +39 -0
- package/dist/components/data-display/chart/chart-scatter3d.js +180 -0
- package/dist/components/data-display/chart/chart.category-cluster-heatmap.stories-data.d.ts +1 -1
- package/dist/components/data-display/chart/chart.js +171 -143
- package/dist/components/data-display/chart/chart.types.d.ts +17 -0
- package/dist/components/data-display/chart/chart.utils.js +122 -92
- package/dist/components/data-display/heatmap-grid/heatmap-grid-play.d.ts +9 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.d.ts +32 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.js +93 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.layout.d.ts +46 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.layout.js +80 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.types.d.ts +54 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.variants.d.ts +18 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.variants.js +80 -0
- package/dist/components/data-display/heatmap-grid/index.d.ts +3 -0
- package/dist/components/data-display/heatmap-grid/index.js +14 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-cell.d.ts +14 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-cell.js +39 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-context.d.ts +29 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-context.js +33 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-tooltip.d.ts +4 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-tooltip.js +49 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-viewport.d.ts +3 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-viewport.js +173 -0
- package/dist/components/data-display/heatmap-grid/internals/use-heatmap-grid-viewport.d.ts +12 -0
- package/dist/components/data-display/heatmap-grid/internals/use-heatmap-grid-viewport.js +161 -0
- package/dist/components/data-display/stereo-scatter/index.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/index.js +10 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.d.ts +41 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.js +178 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.d.ts +14 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.js +29 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.d.ts +23 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.js +80 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine.d.ts +120 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine.js +519 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-math.d.ts +64 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-math.js +129 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-model.d.ts +37 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-model.js +71 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.d.ts +33 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.js +19 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.d.ts +4 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.js +19 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.js +75 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.js +149 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.d.ts +13 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.js +93 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.js +62 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.d.ts +3 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.js +41 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.d.ts +12 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.js +107 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.stories-data.d.ts +11 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.types.d.ts +69 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.d.ts +13 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.js +42 -0
- package/dist/components/feedback/find-bar/collect-find-matches.d.ts +35 -0
- package/dist/components/feedback/find-bar/collect-find-matches.js +68 -0
- package/dist/components/feedback/find-bar/find-bar-shortcuts.d.ts +5 -0
- package/dist/components/feedback/find-bar/find-bar-shortcuts.js +27 -0
- package/dist/components/feedback/find-bar/find-bar.d.ts +7 -0
- package/dist/components/feedback/find-bar/find-bar.js +266 -0
- package/dist/components/feedback/find-bar/find-bar.types.d.ts +32 -0
- package/dist/components/feedback/find-bar/index.d.ts +4 -0
- package/dist/components/feedback/find-bar/index.js +11 -0
- package/dist/components/feedback/tooltip/button-icon-tooltip.d.ts +6 -1
- package/dist/components/feedback/tooltip/button-icon-tooltip.js +22 -17
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +3 -2
- package/dist/components/feedback/tooltip/use-overflow-tooltip.js +44 -36
- package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
- package/dist/components/flows/filter-panel/filter-panel.js +4 -4
- package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.d.ts +5 -0
- package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.js +73 -0
- package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.d.ts +5 -0
- package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.js +49 -0
- package/dist/components/flows/iris-chat/IrisChatSnapTile.d.ts +8 -0
- package/dist/components/flows/iris-chat/IrisChatSnapTile.js +30 -0
- package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.d.ts +3 -0
- package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.js +25 -0
- package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.d.ts +4 -0
- package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.js +113 -0
- package/dist/components/flows/iris-chat/index.d.ts +3 -1
- package/dist/components/flows/iris-chat/index.js +58 -53
- package/dist/components/flows/iris-chat/iris-chat-artifact.js +46 -36
- package/dist/components/flows/iris-chat/iris-chat-chrome.d.ts +39 -0
- package/dist/components/flows/iris-chat/iris-chat-chrome.js +311 -0
- package/dist/components/flows/iris-chat/iris-chat-close-animation.d.ts +12 -0
- package/dist/components/flows/iris-chat/iris-chat-close-animation.js +21 -0
- package/dist/components/flows/iris-chat/iris-chat-composer.js +291 -234
- package/dist/components/flows/iris-chat/iris-chat-context.d.ts +16 -0
- package/dist/components/flows/iris-chat/iris-chat-context.js +14 -10
- package/dist/components/flows/iris-chat/iris-chat-copy-feedback.d.ts +4 -0
- package/dist/components/flows/iris-chat/iris-chat-copy-feedback.js +16 -0
- package/dist/components/flows/iris-chat/iris-chat-frame.d.ts +32 -0
- package/dist/components/flows/iris-chat/iris-chat-frame.js +88 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +2 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.js +46 -20
- package/dist/components/flows/iris-chat/iris-chat-launch-animation.d.ts +11 -0
- package/dist/components/flows/iris-chat/iris-chat-launch-animation.js +35 -0
- package/dist/components/flows/iris-chat/iris-chat-markdown.js +82 -42
- package/dist/components/flows/iris-chat/iris-chat-menu.js +149 -117
- package/dist/components/flows/iris-chat/iris-chat-snap-presets.d.ts +7 -0
- package/dist/components/flows/iris-chat/iris-chat-snap-presets.js +83 -0
- package/dist/components/flows/iris-chat/iris-chat-speech.d.ts +52 -0
- package/dist/components/flows/iris-chat/iris-chat-speech.js +121 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +4 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.js +277 -220
- package/dist/components/flows/iris-chat/iris-chat-window-chrome.d.ts +33 -0
- package/dist/components/flows/iris-chat/iris-chat-window-chrome.js +37 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.d.ts +14 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.js +15 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry.d.ts +12 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry.js +113 -0
- package/dist/components/flows/iris-chat/iris-chat-window-handles.d.ts +6 -0
- package/dist/components/flows/iris-chat/iris-chat-window-handles.js +50 -0
- package/dist/components/flows/iris-chat/iris-chat-window-shell.d.ts +8 -0
- package/dist/components/flows/iris-chat/iris-chat-window-shell.js +37 -0
- package/dist/components/flows/iris-chat/iris-chat.d.ts +3 -39
- package/dist/components/flows/iris-chat/iris-chat.js +22 -330
- package/dist/components/flows/iris-chat/iris-chat.types.d.ts +20 -0
- package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +4 -3
- package/dist/components/flows/iris-chat/iris-chat.variants.js +45 -22
- package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.d.ts +6 -0
- package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.js +23 -0
- package/dist/components/flows/iris-chat/use-iris-chat-root.d.ts +29 -0
- package/dist/components/flows/iris-chat/use-iris-chat-root.js +162 -0
- package/dist/components/forms/choice-card/choice-card-compare-scroll.d.ts +4 -0
- package/dist/components/forms/choice-card/choice-card-compare-scroll.js +6 -0
- package/dist/components/forms/choice-card/choice-card-percent.js +82 -51
- package/dist/components/forms/choice-card/choice-card.d.ts +14 -2
- package/dist/components/forms/choice-card/choice-card.js +470 -381
- package/dist/components/forms/choice-card/choice-card.types.d.ts +9 -2
- package/dist/components/forms/choice-card/choice-card.variants.js +24 -3
- package/dist/components/forms/input/input.js +5 -5
- package/dist/components/forms/select/components/SelectMenuPanel.js +15 -15
- package/dist/components/forms/select/components/SelectTriggerValue.js +3 -2
- package/dist/components/forms/select/components/Submenu.js +3 -2
- package/dist/components/layout/header/header.js +1 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.d.ts +3 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.js +12 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller.js +181 -125
- package/dist/components/layout/horizontal-scroller/horizontal-scroller.types.d.ts +2 -0
- package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.d.ts +3 -1
- package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.js +77 -67
- package/dist/components/primitives/button/button.variants.js +1 -1
- package/dist/components/primitives/iris/iris-insight-truncated-text.d.ts +3 -0
- package/dist/components/primitives/iris/iris-insight-truncated-text.js +33 -0
- package/dist/components/primitives/iris/iris.d.ts +3 -1
- package/dist/components/primitives/iris/iris.js +85 -91
- package/dist/components/primitives/iris/iris.types.d.ts +9 -0
- package/dist/components/primitives/stepper/internals/step-model.d.ts +1 -1
- package/dist/components/primitives/stepper/internals/step-model.js +5 -5
- package/dist/components/primitives/stepper/internals/stepper-compact.js +13 -13
- package/dist/components/primitives/stepper/internals/stepper-pipeline.js +6 -6
- package/dist/components/primitives/stepper/internals/stepper-rail.js +15 -15
- package/dist/components/primitives/stepper/internals/stepper-summary.js +7 -7
- package/dist/components/primitives/stepper/internals/stepper-track.js +2 -2
- package/dist/components/primitives/stepper/stepper.js +99 -97
- package/dist/components/primitives/stepper/stepper.types.d.ts +4 -0
- package/dist/components/primitives/tabs/folder-tab-path.d.ts +6 -0
- package/dist/components/primitives/tabs/folder-tab-path.js +16 -0
- package/dist/components/primitives/tabs/tabs.js +178 -112
- package/dist/components/primitives/tabs/tabs.types.d.ts +1 -1
- package/dist/form-react/Fields/SelectField.js +66 -57
- package/dist/form-react/Fields/VirtualizedListField.d.ts +3 -0
- package/dist/form-react/Fields/VirtualizedListField.js +223 -0
- package/dist/form-react/fields.d.ts +1 -0
- package/dist/form-react/fields.js +28 -26
- package/dist/form-react/index.d.ts +1 -1
- package/dist/form-react/registry/defaultFieldRegistrations.d.ts +1 -1
- package/dist/form-react/registry/defaultFieldRegistrations.js +13 -12
- package/dist/form-react/types/fields.types.d.ts +48 -1
- package/dist/form-react/types/fieldsOutput.types.d.ts +4 -1
- package/dist/form-react/types/reactHookForm.types.d.ts +18 -1
- package/dist/form-react/utils/fieldDefaults.utils.js +1 -1
- package/dist/i18n/defaultMessages.d.ts +75 -0
- package/dist/i18n/defaultMessages.js +112 -42
- package/dist/i18n/impact-nova-i18n-defaults.d.ts +5 -0
- package/dist/i18n/impact-nova-i18n-defaults.js +4 -9
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/locales/de.js +71 -1
- package/dist/i18n/locales/es.js +71 -1
- package/dist/i18n/locales/hi.js +71 -1
- package/dist/i18n/locales/kn.js +71 -1
- package/dist/impact-nova-components.css +372 -14
- package/dist/impact-nova-tokens.scss +4 -0
- package/dist/impact-nova.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +627 -601
- package/dist/lib/alphabetical-sort.d.ts +3 -0
- package/dist/lib/alphabetical-sort.js +13 -0
- package/dist/lib/guidance/engine/guidance-engine.js +26 -27
- package/dist/lib/guidance/engine/step-navigation.d.ts +1 -0
- package/dist/lib/guidance/engine/step-navigation.js +16 -9
- package/dist/lib/guidance/types/guidance.types.d.ts +9 -1
- package/dist/lib/virtualized/index.d.ts +2 -0
- package/dist/lib/virtualized/index.js +35 -31
- package/dist/lib/virtualized/list-index.d.ts +5 -0
- package/dist/lib/virtualized/list-index.js +13 -0
- package/dist/lib/virtualized/read-infinite-query-list.d.ts +14 -0
- package/dist/lib/virtualized/read-infinite-query-list.js +12 -0
- package/dist/lib/virtualized/types.d.ts +4 -2
- package/dist/lib/virtualized/useRowState.js +60 -56
- package/dist/lib/virtualized/useVirtualizedList.d.ts +5 -0
- package/dist/llms/rules/ag-grid.js +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/real-world-patterns.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/tailwind.config.js +3 -0
- package/dist/theme/tailwind-colors.js +3 -0
- package/package.json +27 -4
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const heatmapGridRootVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
2
|
+
export declare const heatmapGridViewportVariants: (props?: ({
|
|
3
|
+
overflowX?: boolean | null | undefined;
|
|
4
|
+
overflowY?: boolean | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
export declare const heatmapGridRowHeaderVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
7
|
+
export declare const heatmapGridCellVariants: (props?: ({
|
|
8
|
+
tone?: "warning" | "neutral" | "empty" | "positive" | "negative" | null | undefined;
|
|
9
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
|
+
export declare const heatmapGridColumnHeaderRowVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
11
|
+
export declare const heatmapGridColumnHeaderVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
12
|
+
export declare const heatmapGridColumnLabelVariants: (props?: ({
|
|
13
|
+
orientation?: "horizontal" | "rotated" | null | undefined;
|
|
14
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
15
|
+
export declare const heatmapGridFetchingRowVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
16
|
+
export declare const heatmapGridTooltipVariants: (props?: ({
|
|
17
|
+
side?: "top" | "bottom" | null | undefined;
|
|
18
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { cva as e } from "class-variance-authority";
|
|
2
|
+
const a = e(
|
|
3
|
+
"relative flex h-full min-h-0 w-full min-w-0 flex-col"
|
|
4
|
+
), o = e(
|
|
5
|
+
"relative min-h-0 min-w-0 flex-1 overscroll-contain rounded-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring",
|
|
6
|
+
{
|
|
7
|
+
variants: {
|
|
8
|
+
overflowX: {
|
|
9
|
+
true: "overflow-x-auto",
|
|
10
|
+
false: "overflow-x-hidden"
|
|
11
|
+
},
|
|
12
|
+
overflowY: {
|
|
13
|
+
true: "overflow-y-auto",
|
|
14
|
+
false: "overflow-y-hidden"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
defaultVariants: {
|
|
18
|
+
overflowX: !1,
|
|
19
|
+
overflowY: !1
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
), n = e(
|
|
23
|
+
"sticky left-0 z-[1] flex h-full shrink-0 items-center justify-end bg-canvas-elevated pe-2 text-xs font-semibold text-content"
|
|
24
|
+
), r = e(
|
|
25
|
+
"absolute top-0 box-border flex h-full items-center justify-center overflow-hidden rounded-lg border-4 border-canvas-elevated bg-clip-padding text-xs font-semibold outline-none transition-[filter] duration-150 hover:brightness-95 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus-ring motion-reduce:transition-none",
|
|
26
|
+
{
|
|
27
|
+
variants: {
|
|
28
|
+
tone: {
|
|
29
|
+
positive: "bg-feedback-success-surface text-content",
|
|
30
|
+
warning: "bg-feedback-warning-surface text-content",
|
|
31
|
+
negative: "bg-feedback-error-surface text-content",
|
|
32
|
+
neutral: "bg-canvas-subtle text-content",
|
|
33
|
+
empty: "bg-canvas-muted text-content-tertiary"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
defaultVariants: {
|
|
37
|
+
tone: "neutral"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
), i = e(
|
|
41
|
+
"sticky bottom-0 z-[2] bg-canvas-elevated"
|
|
42
|
+
), s = e(
|
|
43
|
+
"absolute top-0 h-full text-[11px] font-semibold leading-snug text-content-title"
|
|
44
|
+
), l = e("truncate", {
|
|
45
|
+
variants: {
|
|
46
|
+
orientation: {
|
|
47
|
+
horizontal: "absolute inset-x-1 top-2 w-auto text-center",
|
|
48
|
+
rotated: "absolute bottom-3 start-2.5 origin-bottom-left -rotate-45 text-start"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
defaultVariants: {
|
|
52
|
+
orientation: "rotated"
|
|
53
|
+
}
|
|
54
|
+
}), d = e(
|
|
55
|
+
"absolute animate-pulse rounded-lg border-4 border-canvas-elevated bg-canvas-muted bg-clip-padding motion-reduce:animate-none"
|
|
56
|
+
), c = e(
|
|
57
|
+
"pointer-events-none absolute z-20 flex max-w-[240px] -translate-x-1/2 flex-col gap-0.5 rounded-lg border border-stroke bg-canvas-elevated px-3 py-2 text-xs text-content shadow-elevation-card",
|
|
58
|
+
{
|
|
59
|
+
variants: {
|
|
60
|
+
side: {
|
|
61
|
+
top: "-translate-y-full",
|
|
62
|
+
bottom: ""
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
defaultVariants: {
|
|
66
|
+
side: "top"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
export {
|
|
71
|
+
r as heatmapGridCellVariants,
|
|
72
|
+
i as heatmapGridColumnHeaderRowVariants,
|
|
73
|
+
s as heatmapGridColumnHeaderVariants,
|
|
74
|
+
l as heatmapGridColumnLabelVariants,
|
|
75
|
+
d as heatmapGridFetchingRowVariants,
|
|
76
|
+
a as heatmapGridRootVariants,
|
|
77
|
+
n as heatmapGridRowHeaderVariants,
|
|
78
|
+
c as heatmapGridTooltipVariants,
|
|
79
|
+
o as heatmapGridViewportVariants
|
|
80
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { HeatmapGrid, HeatmapGridTooltip, HeatmapGridViewport } from './heatmap-grid';
|
|
2
|
+
export type { HeatmapGridCell, HeatmapGridCellPosition, HeatmapGridProps, HeatmapGridTone, HeatmapGridTooltipProps, HeatmapGridViewportProps, } from './heatmap-grid.types';
|
|
3
|
+
export { HEATMAP_GRID_DEFAULT_COLUMN_HEADER_HEIGHT_PX, HEATMAP_GRID_DEFAULT_MIN_COLUMN_SIZE_PX, HEATMAP_GRID_DEFAULT_MIN_ROW_SIZE_PX, HEATMAP_GRID_DEFAULT_ROW_HEADER_WIDTH_PX, readHeatmapGridLayout, } from './heatmap-grid.layout';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HeatmapGrid as r } from "./heatmap-grid.js";
|
|
2
|
+
import { HEATMAP_GRID_DEFAULT_COLUMN_HEADER_HEIGHT_PX as H, HEATMAP_GRID_DEFAULT_MIN_COLUMN_SIZE_PX as o, HEATMAP_GRID_DEFAULT_MIN_ROW_SIZE_PX as t, HEATMAP_GRID_DEFAULT_ROW_HEADER_WIDTH_PX as D, readHeatmapGridLayout as T } from "./heatmap-grid.layout.js";
|
|
3
|
+
import { HeatmapGridTooltip as e } from "./internals/heatmap-grid-tooltip.js";
|
|
4
|
+
import { HeatmapGridViewport as I } from "./internals/heatmap-grid-viewport.js";
|
|
5
|
+
export {
|
|
6
|
+
H as HEATMAP_GRID_DEFAULT_COLUMN_HEADER_HEIGHT_PX,
|
|
7
|
+
o as HEATMAP_GRID_DEFAULT_MIN_COLUMN_SIZE_PX,
|
|
8
|
+
t as HEATMAP_GRID_DEFAULT_MIN_ROW_SIZE_PX,
|
|
9
|
+
D as HEATMAP_GRID_DEFAULT_ROW_HEADER_WIDTH_PX,
|
|
10
|
+
r as HeatmapGrid,
|
|
11
|
+
e as HeatmapGridTooltip,
|
|
12
|
+
I as HeatmapGridViewport,
|
|
13
|
+
T as readHeatmapGridLayout
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HeatmapGridTone } from '../heatmap-grid.types';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export type HeatmapGridCellViewProps = {
|
|
4
|
+
rowIndex: number;
|
|
5
|
+
columnIndex: number;
|
|
6
|
+
startPx: number;
|
|
7
|
+
widthPx: number;
|
|
8
|
+
tone: HeatmapGridTone | "empty";
|
|
9
|
+
color: string | undefined;
|
|
10
|
+
isActive: boolean;
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
};
|
|
13
|
+
/** Pointer, focus and keyboard events are delegated to the viewport. */
|
|
14
|
+
export declare const HeatmapGridCellView: React.NamedExoticComponent<HeatmapGridCellViewProps>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import * as p from "react";
|
|
3
|
+
import { cn as c } from "../../../../lib/utils.js";
|
|
4
|
+
import { heatmapGridCellVariants as n } from "../heatmap-grid.variants.js";
|
|
5
|
+
const v = p.memo(function({
|
|
6
|
+
rowIndex: r,
|
|
7
|
+
columnIndex: t,
|
|
8
|
+
startPx: d,
|
|
9
|
+
widthPx: m,
|
|
10
|
+
tone: a,
|
|
11
|
+
color: e,
|
|
12
|
+
isActive: i,
|
|
13
|
+
children: o
|
|
14
|
+
}) {
|
|
15
|
+
return /* @__PURE__ */ l(
|
|
16
|
+
"div",
|
|
17
|
+
{
|
|
18
|
+
role: "gridcell",
|
|
19
|
+
"aria-colindex": t + 2,
|
|
20
|
+
tabIndex: i ? 0 : -1,
|
|
21
|
+
"data-heatmap-cell": "",
|
|
22
|
+
"data-row-index": r,
|
|
23
|
+
"data-column-index": t,
|
|
24
|
+
"data-tone": a === "empty" ? void 0 : a,
|
|
25
|
+
"data-empty": a === "empty" ? "" : void 0,
|
|
26
|
+
"data-active": i ? "" : void 0,
|
|
27
|
+
className: c(n({ tone: a })),
|
|
28
|
+
style: {
|
|
29
|
+
left: d,
|
|
30
|
+
width: m,
|
|
31
|
+
...e && a !== "empty" ? { backgroundColor: e } : {}
|
|
32
|
+
},
|
|
33
|
+
children: o
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
v as HeatmapGridCellView
|
|
39
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { HeatmapGridCellPosition, HeatmapGridProps } from '../heatmap-grid.types';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export type HeatmapGridHoverTarget = HeatmapGridCellPosition & {
|
|
4
|
+
/** Cell center, relative to the root. */
|
|
5
|
+
anchorX: number;
|
|
6
|
+
anchorTop: number;
|
|
7
|
+
anchorBottom: number;
|
|
8
|
+
rootWidthPx: number;
|
|
9
|
+
};
|
|
10
|
+
export type HeatmapGridHoverStore = {
|
|
11
|
+
get: () => HeatmapGridHoverTarget | null;
|
|
12
|
+
set: (next: HeatmapGridHoverTarget | null) => void;
|
|
13
|
+
subscribe: (listener: () => void) => () => void;
|
|
14
|
+
};
|
|
15
|
+
/** External store so hover never re-renders the cells; only the tooltip subscribes. */
|
|
16
|
+
export declare function createHeatmapGridHoverStore(): HeatmapGridHoverStore;
|
|
17
|
+
export type HeatmapGridContextValue = Required<Pick<HeatmapGridProps, "rowCount" | "columnCount" | "getRowLabel" | "getColumnLabel" | "getCell" | "minRowSizePx" | "minColumnSizePx" | "rowHeaderWidthPx" | "columnHeaderHeightPx" | "hasMore" | "isFetchingMore" | "endReachedThreshold" | "rowHeaderLabel">> & Pick<HeatmapGridProps, "renderCell" | "renderTooltip" | "onEndReached"> & {
|
|
18
|
+
gridLabel: string;
|
|
19
|
+
loadingMoreLabel: string;
|
|
20
|
+
activeCell: HeatmapGridCellPosition;
|
|
21
|
+
setActiveCell: (position: HeatmapGridCellPosition) => void;
|
|
22
|
+
hoverStore: HeatmapGridHoverStore;
|
|
23
|
+
rootRef: React.RefObject<HTMLDivElement | null>;
|
|
24
|
+
};
|
|
25
|
+
export declare function HeatmapGridProvider({ value, children, }: {
|
|
26
|
+
value: HeatmapGridContextValue;
|
|
27
|
+
children: React.ReactNode;
|
|
28
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare function useHeatmapGridContext(): HeatmapGridContextValue;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
function s() {
|
|
4
|
+
let t = null;
|
|
5
|
+
const e = /* @__PURE__ */ new Set();
|
|
6
|
+
return {
|
|
7
|
+
get: () => t,
|
|
8
|
+
set: (r) => {
|
|
9
|
+
t !== r && (t = r, e.forEach((a) => a()));
|
|
10
|
+
},
|
|
11
|
+
subscribe: (r) => (e.add(r), () => {
|
|
12
|
+
e.delete(r);
|
|
13
|
+
})
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
const o = n.createContext(null);
|
|
17
|
+
function c({
|
|
18
|
+
value: t,
|
|
19
|
+
children: e
|
|
20
|
+
}) {
|
|
21
|
+
return /* @__PURE__ */ i(o.Provider, { value: t, children: e });
|
|
22
|
+
}
|
|
23
|
+
function d() {
|
|
24
|
+
const t = n.useContext(o);
|
|
25
|
+
if (!t)
|
|
26
|
+
throw new Error("HeatmapGrid parts must be used within HeatmapGrid");
|
|
27
|
+
return t;
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
c as HeatmapGridProvider,
|
|
31
|
+
s as createHeatmapGridHoverStore,
|
|
32
|
+
d as useHeatmapGridContext
|
|
33
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare const HeatmapGridTooltip: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
3
|
+
children?: (position: import('..').HeatmapGridCellPosition) => React.ReactNode;
|
|
4
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import * as T from "react";
|
|
3
|
+
import { createComponent as f } from "../../../../lib/primitives/create-component.js";
|
|
4
|
+
import { cn as h } from "../../../../lib/utils.js";
|
|
5
|
+
import { heatmapGridTooltipVariants as I } from "../heatmap-grid.variants.js";
|
|
6
|
+
import { useHeatmapGridContext as _ } from "./heatmap-grid-context.js";
|
|
7
|
+
const c = 6, x = 72, i = 120;
|
|
8
|
+
function H(r, t) {
|
|
9
|
+
return t <= i * 2 ? t / 2 : Math.min(
|
|
10
|
+
Math.max(r, i),
|
|
11
|
+
t - i
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
const g = f(
|
|
15
|
+
"HeatmapGridTooltip",
|
|
16
|
+
({ className: r, style: t, children: m, ...s }, l) => {
|
|
17
|
+
const { hoverStore: n, renderTooltip: d } = _(), o = T.useSyncExternalStore(
|
|
18
|
+
n.subscribe,
|
|
19
|
+
n.get,
|
|
20
|
+
n.get
|
|
21
|
+
);
|
|
22
|
+
if (!o)
|
|
23
|
+
return null;
|
|
24
|
+
const p = { rowIndex: o.rowIndex, columnIndex: o.columnIndex }, e = m ? m(p) : d?.(p);
|
|
25
|
+
if (e == null)
|
|
26
|
+
return null;
|
|
27
|
+
const a = o.anchorTop < x ? "bottom" : "top";
|
|
28
|
+
return /* @__PURE__ */ u(
|
|
29
|
+
"div",
|
|
30
|
+
{
|
|
31
|
+
ref: l,
|
|
32
|
+
role: "tooltip",
|
|
33
|
+
"data-component": "heatmap-grid-tooltip",
|
|
34
|
+
"data-side": a,
|
|
35
|
+
className: h(I({ side: a }), r),
|
|
36
|
+
style: {
|
|
37
|
+
left: H(o.anchorX, o.rootWidthPx),
|
|
38
|
+
top: a === "top" ? o.anchorTop - c : o.anchorBottom + c,
|
|
39
|
+
...t
|
|
40
|
+
},
|
|
41
|
+
...s,
|
|
42
|
+
children: e
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
export {
|
|
48
|
+
g as HeatmapGridTooltip
|
|
49
|
+
};
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { OverflowTooltip as m } from "../../../feedback/tooltip/overflow-tooltip.js";
|
|
3
|
+
import { useComposedRefs as z } from "../../../../lib/compose-refs.js";
|
|
4
|
+
import { createComponent as L } from "../../../../lib/primitives/create-component.js";
|
|
5
|
+
import { cn as h } from "../../../../lib/utils.js";
|
|
6
|
+
import { HEATMAP_GRID_HORIZONTAL_LABEL_MIN_COLUMN_PX as G, readHeatmapGridColumnLabelMaxWidthPx as S } from "../heatmap-grid.layout.js";
|
|
7
|
+
import { heatmapGridRowHeaderVariants as R, heatmapGridFetchingRowVariants as V, heatmapGridColumnLabelVariants as M, heatmapGridColumnHeaderVariants as W, heatmapGridColumnHeaderRowVariants as A, heatmapGridViewportVariants as _ } from "../heatmap-grid.variants.js";
|
|
8
|
+
import { HeatmapGridCellView as k } from "./heatmap-grid-cell.js";
|
|
9
|
+
import { useHeatmapGridViewport as O } from "./use-heatmap-grid-viewport.js";
|
|
10
|
+
const U = L(
|
|
11
|
+
"HeatmapGridViewport",
|
|
12
|
+
({ className: p, style: w, ...u }, g) => {
|
|
13
|
+
const {
|
|
14
|
+
context: e,
|
|
15
|
+
scrollRef: f,
|
|
16
|
+
layout: i,
|
|
17
|
+
rowItems: P,
|
|
18
|
+
columnItems: d,
|
|
19
|
+
activeCell: s,
|
|
20
|
+
isActiveCellPainted: b,
|
|
21
|
+
handlers: v
|
|
22
|
+
} = O(), { rowHeaderWidthPx: o, columnHeaderHeightPx: c } = e, C = z(f, g), y = i.contentWidthPx - o, x = i.columnSizePx >= G ? "horizontal" : "rotated", H = S({
|
|
23
|
+
columnSizePx: i.columnSizePx,
|
|
24
|
+
columnHeaderHeightPx: c
|
|
25
|
+
});
|
|
26
|
+
return /* @__PURE__ */ n(
|
|
27
|
+
"div",
|
|
28
|
+
{
|
|
29
|
+
ref: C,
|
|
30
|
+
role: "grid",
|
|
31
|
+
"aria-label": e.gridLabel,
|
|
32
|
+
"aria-rowcount": e.rowCount + 1,
|
|
33
|
+
"aria-colcount": e.columnCount + 1,
|
|
34
|
+
"aria-busy": e.isFetchingMore || void 0,
|
|
35
|
+
tabIndex: b ? -1 : 0,
|
|
36
|
+
"data-component": "heatmap-grid-viewport",
|
|
37
|
+
"data-testid": "heatmap-grid-scroll",
|
|
38
|
+
className: h(
|
|
39
|
+
_({
|
|
40
|
+
overflowX: i.overflowsX,
|
|
41
|
+
overflowY: i.overflowsY
|
|
42
|
+
}),
|
|
43
|
+
p
|
|
44
|
+
),
|
|
45
|
+
style: w,
|
|
46
|
+
...v,
|
|
47
|
+
...u,
|
|
48
|
+
children: [
|
|
49
|
+
/* @__PURE__ */ n(
|
|
50
|
+
"div",
|
|
51
|
+
{
|
|
52
|
+
role: "rowgroup",
|
|
53
|
+
className: "relative",
|
|
54
|
+
style: {
|
|
55
|
+
width: i.contentWidthPx,
|
|
56
|
+
height: i.bodyHeightPx + (e.isFetchingMore ? e.minRowSizePx : 0)
|
|
57
|
+
},
|
|
58
|
+
children: [
|
|
59
|
+
P.map((a) => /* @__PURE__ */ n(
|
|
60
|
+
"div",
|
|
61
|
+
{
|
|
62
|
+
role: "row",
|
|
63
|
+
"aria-rowindex": a.index + 1,
|
|
64
|
+
className: "absolute left-0 top-0 flex",
|
|
65
|
+
style: {
|
|
66
|
+
width: i.contentWidthPx,
|
|
67
|
+
height: i.rowSizePx,
|
|
68
|
+
transform: `translate3d(0, ${a.index * i.rowSizePx}px, 0)`
|
|
69
|
+
},
|
|
70
|
+
children: [
|
|
71
|
+
/* @__PURE__ */ t(
|
|
72
|
+
"div",
|
|
73
|
+
{
|
|
74
|
+
role: "rowheader",
|
|
75
|
+
"aria-colindex": 1,
|
|
76
|
+
className: R(),
|
|
77
|
+
style: { width: o },
|
|
78
|
+
children: /* @__PURE__ */ t(m, { triggerClassName: "block max-w-full truncate text-end", children: e.getRowLabel(a.index) })
|
|
79
|
+
}
|
|
80
|
+
),
|
|
81
|
+
d.map((l) => {
|
|
82
|
+
const r = e.getCell(a.index, l.index), N = { rowIndex: a.index, columnIndex: l.index };
|
|
83
|
+
return /* @__PURE__ */ t(
|
|
84
|
+
k,
|
|
85
|
+
{
|
|
86
|
+
rowIndex: a.index,
|
|
87
|
+
columnIndex: l.index,
|
|
88
|
+
startPx: o + l.index * i.columnSizePx,
|
|
89
|
+
widthPx: i.columnSizePx,
|
|
90
|
+
tone: !r || r.isEmpty ? "empty" : r.tone ?? "neutral",
|
|
91
|
+
color: r?.color,
|
|
92
|
+
isActive: s.rowIndex === a.index && s.columnIndex === l.index,
|
|
93
|
+
children: r && e.renderCell ? e.renderCell(r, N) : r?.label
|
|
94
|
+
},
|
|
95
|
+
l.key
|
|
96
|
+
);
|
|
97
|
+
})
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
a.key
|
|
101
|
+
)),
|
|
102
|
+
e.isFetchingMore ? /* @__PURE__ */ t(
|
|
103
|
+
"div",
|
|
104
|
+
{
|
|
105
|
+
role: "row",
|
|
106
|
+
"aria-label": e.loadingMoreLabel,
|
|
107
|
+
"data-testid": "heatmap-grid-fetching-more",
|
|
108
|
+
className: V(),
|
|
109
|
+
style: {
|
|
110
|
+
left: o,
|
|
111
|
+
top: i.bodyHeightPx,
|
|
112
|
+
width: y,
|
|
113
|
+
height: e.minRowSizePx
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
) : null
|
|
117
|
+
]
|
|
118
|
+
}
|
|
119
|
+
),
|
|
120
|
+
/* @__PURE__ */ n(
|
|
121
|
+
"div",
|
|
122
|
+
{
|
|
123
|
+
role: "row",
|
|
124
|
+
"aria-rowindex": e.rowCount + 1,
|
|
125
|
+
className: A(),
|
|
126
|
+
style: { width: i.contentWidthPx, height: c },
|
|
127
|
+
children: [
|
|
128
|
+
/* @__PURE__ */ t(
|
|
129
|
+
"div",
|
|
130
|
+
{
|
|
131
|
+
role: "columnheader",
|
|
132
|
+
"aria-colindex": 1,
|
|
133
|
+
className: "sticky left-0 z-[1] h-full bg-canvas-elevated",
|
|
134
|
+
style: { width: o },
|
|
135
|
+
children: /* @__PURE__ */ t("span", { className: "sr-only", children: e.rowHeaderLabel })
|
|
136
|
+
}
|
|
137
|
+
),
|
|
138
|
+
d.map((a) => /* @__PURE__ */ t(
|
|
139
|
+
"div",
|
|
140
|
+
{
|
|
141
|
+
role: "columnheader",
|
|
142
|
+
"aria-colindex": a.index + 2,
|
|
143
|
+
className: W(),
|
|
144
|
+
style: {
|
|
145
|
+
left: o + a.index * i.columnSizePx,
|
|
146
|
+
width: i.columnSizePx,
|
|
147
|
+
"--heatmap-grid-column-label-max-w": `${H}px`
|
|
148
|
+
},
|
|
149
|
+
children: /* @__PURE__ */ t(
|
|
150
|
+
m,
|
|
151
|
+
{
|
|
152
|
+
content: e.getColumnLabel(a.index),
|
|
153
|
+
triggerClassName: h(
|
|
154
|
+
M({ orientation: x }),
|
|
155
|
+
x === "rotated" && "max-w-[var(--heatmap-grid-column-label-max-w)]"
|
|
156
|
+
),
|
|
157
|
+
children: e.getColumnLabel(a.index)
|
|
158
|
+
}
|
|
159
|
+
)
|
|
160
|
+
},
|
|
161
|
+
a.key
|
|
162
|
+
))
|
|
163
|
+
]
|
|
164
|
+
}
|
|
165
|
+
)
|
|
166
|
+
]
|
|
167
|
+
}
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
);
|
|
171
|
+
export {
|
|
172
|
+
U as HeatmapGridViewport
|
|
173
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HeatmapGridCellPosition } from '../heatmap-grid.types';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export declare function useHeatmapGridViewport(): {
|
|
4
|
+
context: import('./heatmap-grid-context').HeatmapGridContextValue;
|
|
5
|
+
scrollRef: React.RefObject<HTMLDivElement | null>;
|
|
6
|
+
layout: import('../heatmap-grid.layout').HeatmapGridLayout;
|
|
7
|
+
rowItems: import('@tanstack/virtual-core').VirtualItem[];
|
|
8
|
+
columnItems: import('@tanstack/virtual-core').VirtualItem[];
|
|
9
|
+
activeCell: HeatmapGridCellPosition;
|
|
10
|
+
isActiveCellPainted: boolean;
|
|
11
|
+
handlers: Pick<React.HTMLAttributes<HTMLDivElement>, "onFocus" | "onBlur" | "onKeyDown" | "onPointerLeave" | "onPointerOver" | "onScroll">;
|
|
12
|
+
};
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { useVirtualizedRows as H } from "../../../../lib/virtualized/useVirtualizedRows.js";
|
|
3
|
+
import { readHeatmapGridLayout as F, readHeatmapGridCellPosition as C, readNextHeatmapGridFocusCell as T, readHeatmapGridCellKey as R } from "../heatmap-grid.layout.js";
|
|
4
|
+
import { useHeatmapGridContext as L } from "./heatmap-grid-context.js";
|
|
5
|
+
const y = 2;
|
|
6
|
+
function O(e) {
|
|
7
|
+
const [u, i] = o.useState({ widthPx: 0, heightPx: 0 });
|
|
8
|
+
return o.useLayoutEffect(() => {
|
|
9
|
+
const c = e.current;
|
|
10
|
+
if (!c)
|
|
11
|
+
return;
|
|
12
|
+
const s = () => i(
|
|
13
|
+
(n) => n.widthPx === c.clientWidth && n.heightPx === c.clientHeight ? n : { widthPx: c.clientWidth, heightPx: c.clientHeight }
|
|
14
|
+
);
|
|
15
|
+
s();
|
|
16
|
+
const l = new ResizeObserver(s);
|
|
17
|
+
return l.observe(c), () => l.disconnect();
|
|
18
|
+
}, [e]), u;
|
|
19
|
+
}
|
|
20
|
+
function G(e, u, i) {
|
|
21
|
+
return {
|
|
22
|
+
rowIndex: Math.max(Math.min(e.rowIndex, u - 1), 0),
|
|
23
|
+
columnIndex: Math.max(Math.min(e.columnIndex, i - 1), 0)
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function V(e) {
|
|
27
|
+
const u = o.useRef(e.onEndReached), i = o.useRef(-1), c = o.useRef(!1), s = o.useRef(!1);
|
|
28
|
+
o.useLayoutEffect(() => {
|
|
29
|
+
u.current = e.onEndReached;
|
|
30
|
+
});
|
|
31
|
+
const { lastPaintedRowIndex: l, rowCount: n, hasMore: d, isFetchingMore: a, threshold: x } = e, h = d && !a && n > 0 && l >= 0 && l >= n - 1 - x;
|
|
32
|
+
return o.useEffect(() => {
|
|
33
|
+
s.current && !a && i.current === n && (c.current = !0), s.current = a;
|
|
34
|
+
}, [a, n]), o.useEffect(() => {
|
|
35
|
+
!h || i.current === n || (i.current = n, u.current?.());
|
|
36
|
+
}, [h, n]), () => {
|
|
37
|
+
!h || !c.current || (c.current = !1, i.current = n, u.current?.());
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function B() {
|
|
41
|
+
const e = L(), u = o.useRef(null), i = o.useRef(null), c = o.useRef("pointer"), s = O(u), l = F({
|
|
42
|
+
rowCount: e.rowCount,
|
|
43
|
+
columnCount: e.columnCount,
|
|
44
|
+
viewportWidthPx: s.widthPx,
|
|
45
|
+
viewportHeightPx: s.heightPx,
|
|
46
|
+
minRowSizePx: e.minRowSizePx,
|
|
47
|
+
minColumnSizePx: e.minColumnSizePx,
|
|
48
|
+
rowHeaderWidthPx: e.rowHeaderWidthPx,
|
|
49
|
+
columnHeaderHeightPx: e.columnHeaderHeightPx,
|
|
50
|
+
isFetchingMore: e.isFetchingMore
|
|
51
|
+
}), n = { width: s.widthPx, height: s.heightPx }, d = H({
|
|
52
|
+
scrollElementRef: u,
|
|
53
|
+
rowCount: e.rowCount,
|
|
54
|
+
estimateSize: () => l.rowSizePx,
|
|
55
|
+
overscan: y,
|
|
56
|
+
rerenderWhenPaintedRangeChanges: !0,
|
|
57
|
+
scrollPaddingEnd: e.columnHeaderHeightPx,
|
|
58
|
+
initialRect: n
|
|
59
|
+
}), a = H({
|
|
60
|
+
scrollElementRef: u,
|
|
61
|
+
rowCount: e.columnCount,
|
|
62
|
+
estimateSize: () => l.columnSizePx,
|
|
63
|
+
overscan: y,
|
|
64
|
+
rerenderWhenPaintedRangeChanges: !0,
|
|
65
|
+
horizontal: !0,
|
|
66
|
+
paddingStart: e.rowHeaderWidthPx,
|
|
67
|
+
scrollPaddingStart: e.rowHeaderWidthPx,
|
|
68
|
+
initialRect: n
|
|
69
|
+
}), { virtualizer: x } = d, { virtualizer: h } = a;
|
|
70
|
+
o.useLayoutEffect(() => {
|
|
71
|
+
x.measure();
|
|
72
|
+
}, [x, l.rowSizePx]), o.useLayoutEffect(() => {
|
|
73
|
+
h.measure();
|
|
74
|
+
}, [h, l.columnSizePx]);
|
|
75
|
+
const S = V({
|
|
76
|
+
lastPaintedRowIndex: d.virtualItems[d.virtualItems.length - 1]?.index ?? -1,
|
|
77
|
+
rowCount: e.rowCount,
|
|
78
|
+
hasMore: e.hasMore,
|
|
79
|
+
isFetchingMore: e.isFetchingMore,
|
|
80
|
+
threshold: e.endReachedThreshold,
|
|
81
|
+
onEndReached: e.onEndReached
|
|
82
|
+
}), f = G(e.activeCell, e.rowCount, e.columnCount), M = d.virtualItems.some((t) => t.index === f.rowIndex) && a.virtualItems.some((t) => t.index === f.columnIndex), E = () => {
|
|
83
|
+
const t = i.current, r = t ? u.current?.querySelector(
|
|
84
|
+
`[data-heatmap-cell][data-row-index="${t.rowIndex}"][data-column-index="${t.columnIndex}"]`
|
|
85
|
+
) : null;
|
|
86
|
+
r && (i.current = null, r.focus({ preventScroll: !0 }));
|
|
87
|
+
};
|
|
88
|
+
o.useLayoutEffect(E);
|
|
89
|
+
const I = (t) => {
|
|
90
|
+
i.current = t, x.scrollToIndex(t.rowIndex, { align: "auto" }), h.scrollToIndex(t.columnIndex, { align: "auto" }), R(t) !== R(f) && e.setActiveCell(t), E();
|
|
91
|
+
}, P = (t, r = !1) => {
|
|
92
|
+
const m = C(t), v = t?.closest("[data-heatmap-cell]"), p = e.rootRef.current;
|
|
93
|
+
if (!m || !v || !p) {
|
|
94
|
+
e.hoverStore.set(null);
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
const z = e.hoverStore.get();
|
|
98
|
+
if (!r && z?.rowIndex === m.rowIndex && z.columnIndex === m.columnIndex)
|
|
99
|
+
return;
|
|
100
|
+
const w = p.getBoundingClientRect(), g = v.getBoundingClientRect();
|
|
101
|
+
e.hoverStore.set({
|
|
102
|
+
...m,
|
|
103
|
+
anchorX: g.left + g.width / 2 - w.left,
|
|
104
|
+
anchorTop: g.top - w.top,
|
|
105
|
+
anchorBottom: g.bottom - w.top,
|
|
106
|
+
rootWidthPx: w.width
|
|
107
|
+
});
|
|
108
|
+
}, W = {
|
|
109
|
+
onPointerOver: (t) => {
|
|
110
|
+
c.current = "pointer", P(t.target);
|
|
111
|
+
},
|
|
112
|
+
onPointerLeave: () => e.hoverStore.set(null),
|
|
113
|
+
onScroll: (t) => {
|
|
114
|
+
if (S(), e.hoverStore.get() === null)
|
|
115
|
+
return;
|
|
116
|
+
const r = document.activeElement;
|
|
117
|
+
if (c.current === "focus" && r && t.currentTarget.contains(r)) {
|
|
118
|
+
P(r, !0);
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
e.hoverStore.set(null);
|
|
122
|
+
},
|
|
123
|
+
onFocus: (t) => {
|
|
124
|
+
if (t.target === t.currentTarget) {
|
|
125
|
+
I(f);
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
const r = C(t.target);
|
|
129
|
+
r && (R(r) !== R(f) && e.setActiveCell(r), c.current = "focus", P(t.target));
|
|
130
|
+
},
|
|
131
|
+
onBlur: (t) => {
|
|
132
|
+
t.currentTarget.contains(t.relatedTarget) || e.hoverStore.set(null);
|
|
133
|
+
},
|
|
134
|
+
onKeyDown: (t) => {
|
|
135
|
+
const r = C(t.target);
|
|
136
|
+
if (!r)
|
|
137
|
+
return;
|
|
138
|
+
const m = T({
|
|
139
|
+
current: r,
|
|
140
|
+
rowCount: e.rowCount,
|
|
141
|
+
columnCount: e.columnCount,
|
|
142
|
+
key: t.key,
|
|
143
|
+
ctrlKey: t.ctrlKey || t.metaKey
|
|
144
|
+
});
|
|
145
|
+
m && (t.preventDefault(), I(m));
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
return {
|
|
149
|
+
context: e,
|
|
150
|
+
scrollRef: u,
|
|
151
|
+
layout: l,
|
|
152
|
+
rowItems: d.virtualItems,
|
|
153
|
+
columnItems: a.virtualItems,
|
|
154
|
+
activeCell: f,
|
|
155
|
+
isActiveCellPainted: M,
|
|
156
|
+
handlers: W
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
export {
|
|
160
|
+
B as useHeatmapGridViewport
|
|
161
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { StereoScatter, StereoScatterLegend, StereoScatterTooltip, StereoScatterViewport, } from './stereo-scatter';
|
|
2
|
+
export type { StereoScatterAxis, StereoScatterCluster, StereoScatterHover, StereoScatterLegendProps, StereoScatterPoint, StereoScatterProps, StereoScatterTarget, StereoScatterTooltipProps, StereoScatterVariant, StereoScatterView, StereoScatterViewportProps, } from './stereo-scatter.types';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StereoScatter as r } from "./stereo-scatter.js";
|
|
2
|
+
import { StereoScatterLegend as S } from "./internals/stereo-scatter-legend.js";
|
|
3
|
+
import { StereoScatterTooltip as a } from "./internals/stereo-scatter-tooltip.js";
|
|
4
|
+
import { StereoScatterViewport as f } from "./internals/stereo-scatter-viewport.js";
|
|
5
|
+
export {
|
|
6
|
+
r as StereoScatter,
|
|
7
|
+
S as StereoScatterLegend,
|
|
8
|
+
a as StereoScatterTooltip,
|
|
9
|
+
f as StereoScatterViewport
|
|
10
|
+
};
|