impact-nova 3.0.0-alpha.2 → 3.0.0-alpha.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/components/data/ag-grid-react/ag-grid-list.d.ts +3 -1
- package/dist/components/data/ag-grid-react/ag-grid-list.demo-board.d.ts +46 -0
- package/dist/components/data/ag-grid-react/ag-grid-list.js +9 -8
- package/dist/components/data/ag-grid-react/ag-grid-list.key-attributes.d.ts +1 -0
- package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +65 -3
- package/dist/components/data/ag-grid-react/build-list-drag-column-defs.d.ts +8 -0
- package/dist/components/data/ag-grid-react/build-list-drag-column-defs.js +28 -0
- package/dist/components/data/ag-grid-react/cell-renderers/badge-cell-renderer.d.ts +2 -0
- package/dist/components/data/ag-grid-react/cell-renderers/badge-cell-renderer.js +15 -14
- package/dist/components/data/ag-grid-react/cell-renderers/badge-icon-registry.d.ts +10 -0
- package/dist/components/data/ag-grid-react/cell-renderers/badge-icon-registry.js +17 -0
- package/dist/components/data/ag-grid-react/cell-renderers/drag-handle-cell-renderer.d.ts +18 -0
- package/dist/components/data/ag-grid-react/cell-renderers/drag-handle-cell-renderer.js +32 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +71 -46
- package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +53 -49
- package/dist/components/data/ag-grid-react/cell-renderers/index.d.ts +45 -7
- package/dist/components/data/ag-grid-react/cell-renderers/index.js +70 -58
- package/dist/components/data/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +88 -76
- package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +31 -33
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +18 -17
- package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.d.ts +5 -11
- package/dist/components/data/ag-grid-react/cell-renderers/style-description-display-renderer.js +127 -51
- package/dist/components/data/ag-grid-react/editable-utils.d.ts +9 -1
- package/dist/components/data/ag-grid-react/editable-utils.js +46 -41
- package/dist/components/data/ag-grid-react/headers/custom-header.js +110 -108
- package/dist/components/data/ag-grid-react/headers/header-search-input.js +203 -199
- package/dist/components/data/ag-grid-react/index.d.ts +6 -1
- package/dist/components/data/ag-grid-react/index.js +316 -248
- package/dist/components/data/ag-grid-react/list-drag-grid-options.d.ts +34 -0
- package/dist/components/data/ag-grid-react/list-drag-grid-options.js +110 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-card.d.ts +4 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-card.js +14 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-snapshot.d.ts +20 -0
- package/dist/components/data/ag-grid-react/list-drag-preview-snapshot.js +42 -0
- package/dist/components/data/ag-grid-react/list-find-highlight.d.ts +6 -0
- package/dist/components/data/ag-grid-react/list-find-highlight.js +7 -0
- package/dist/components/data/ag-grid-react/list-row-move.d.ts +84 -0
- package/dist/components/data/ag-grid-react/list-row-move.js +74 -0
- package/dist/components/data/ag-grid-react/numeric-column-header-alignment.d.ts +9 -0
- package/dist/components/data/ag-grid-react/numeric-column-header-alignment.js +67 -0
- package/dist/components/data/ag-grid-react/process-backend-columndefs.d.ts +10 -2
- package/dist/components/data/ag-grid-react/process-backend-columndefs.js +84 -0
- package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.d.ts +67 -0
- package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.js +162 -0
- package/dist/components/data/ag-grid-react/use-list-drag-preview.d.ts +20 -0
- package/dist/components/data/ag-grid-react/use-list-drag-preview.js +148 -0
- package/dist/components/data/ag-grid-react/use-list-find.d.ts +36 -0
- package/dist/components/data/ag-grid-react/use-list-row-drop-zones.d.ts +46 -0
- package/dist/components/data/ag-grid-react/use-list-row-drop-zones.js +92 -0
- package/dist/components/data/data-table/build-column-tree-from-grid.js +15 -15
- package/dist/components/data/data-table/column-picker-authority.js +9 -9
- package/dist/components/data/data-table/data-table-column-apply.js +30 -29
- package/dist/components/data/data-table/data-table-column-tree-cache.js +62 -60
- package/dist/components/data/data-table/data-table-list-header.d.ts +7 -0
- package/dist/components/data/data-table/data-table-list-header.js +31 -0
- package/dist/components/data/data-table/data-table-overlay.d.ts +6 -0
- package/dist/components/data/data-table/data-table-overlay.js +18 -0
- package/dist/components/data/data-table/data-table-picker-column-eligibility.d.ts +3 -0
- package/dist/components/data/data-table/data-table-picker-column-eligibility.js +24 -4
- package/dist/components/data/data-table/data-table.js +35 -34
- package/dist/components/data/data-table/data-table.types.d.ts +13 -2
- package/dist/components/data/data-table/index.d.ts +10 -0
- package/dist/components/data/data-table/index.js +64 -52
- package/dist/components/data/data-table/use-data-table-viewport.d.ts +10 -0
- package/dist/components/data/data-table/use-data-table-viewport.js +31 -0
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +3 -2
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +3 -2
- package/dist/components/data/expandable-list-item/index.d.ts +2 -0
- package/dist/components/data/expandable-list-item/index.js +20 -16
- package/dist/components/data/expandable-list-item/product-card-hero.d.ts +15 -0
- package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.d.ts +8 -0
- package/dist/components/data/expandable-list-item/product-card-iris-insight-trigger.js +41 -0
- package/dist/components/data/expandable-list-item/product-card-metrics-toggle.d.ts +13 -0
- package/dist/components/data/expandable-list-item/product-card-metrics-toggle.js +27 -0
- package/dist/components/data/expandable-list-item/sku-picker-chrome.d.ts +40 -0
- package/dist/components/data/expandable-list-item/sku-picker-chrome.js +150 -0
- package/dist/components/data/expandable-list-item/useServerSkuInfinitePages.d.ts +2 -1
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.catalog.d.ts +5 -4
- package/dist/components/data/expandable-list-item/virtualized-responsive-grid.sku-picker.d.ts +3 -2
- package/dist/components/data/scenario-comparison/flatten-scenario-comparison-rows.d.ts +2 -0
- package/dist/components/data/scenario-comparison/flatten-scenario-comparison-rows.js +16 -0
- package/dist/components/data/scenario-comparison/index.d.ts +3 -0
- package/dist/components/data/scenario-comparison/index.js +6 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-column.d.ts +12 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-column.js +172 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-label.d.ts +6 -0
- package/dist/components/data/scenario-comparison/scenario-comparison-label.js +64 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.d.ts +5 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.js +127 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.types.d.ts +56 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.variants.d.ts +7 -0
- package/dist/components/data/scenario-comparison/scenario-comparison.variants.js +29 -0
- package/dist/components/data-display/badge/index.d.ts +2 -0
- package/dist/components/data-display/badge/index.js +4 -2
- package/dist/components/data-display/badge/trophy-icon.d.ts +6 -0
- package/dist/components/data-display/badge/trophy-icon.js +28 -0
- package/dist/components/data-display/chart/chart-heatmap-layout.d.ts +31 -0
- package/dist/components/data-display/chart/chart-heatmap-layout.js +72 -0
- package/dist/components/data-display/chart/chart-scatter3d.d.ts +39 -0
- package/dist/components/data-display/chart/chart-scatter3d.js +180 -0
- package/dist/components/data-display/chart/chart.category-cluster-heatmap.stories-data.d.ts +1 -1
- package/dist/components/data-display/chart/chart.js +171 -143
- package/dist/components/data-display/chart/chart.types.d.ts +17 -0
- package/dist/components/data-display/chart/chart.utils.js +122 -92
- package/dist/components/data-display/heatmap-grid/heatmap-grid-play.d.ts +9 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.d.ts +32 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.js +93 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.layout.d.ts +46 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.layout.js +80 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.types.d.ts +54 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.variants.d.ts +18 -0
- package/dist/components/data-display/heatmap-grid/heatmap-grid.variants.js +80 -0
- package/dist/components/data-display/heatmap-grid/index.d.ts +3 -0
- package/dist/components/data-display/heatmap-grid/index.js +14 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-cell.d.ts +14 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-cell.js +39 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-context.d.ts +29 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-context.js +33 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-tooltip.d.ts +4 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-tooltip.js +49 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-viewport.d.ts +3 -0
- package/dist/components/data-display/heatmap-grid/internals/heatmap-grid-viewport.js +173 -0
- package/dist/components/data-display/heatmap-grid/internals/use-heatmap-grid-viewport.d.ts +12 -0
- package/dist/components/data-display/heatmap-grid/internals/use-heatmap-grid-viewport.js +161 -0
- package/dist/components/data-display/stereo-scatter/index.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/index.js +10 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.d.ts +41 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.js +178 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.d.ts +14 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.js +29 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.d.ts +23 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.js +80 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine.d.ts +120 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine.js +519 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-math.d.ts +64 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-math.js +129 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-model.d.ts +37 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-model.js +71 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.d.ts +33 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.js +19 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.d.ts +4 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.js +19 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.js +75 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.js +149 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.d.ts +13 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.js +93 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.js +62 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.d.ts +3 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.js +41 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.d.ts +12 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.js +107 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.stories-data.d.ts +11 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.types.d.ts +69 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.d.ts +13 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.js +42 -0
- package/dist/components/feedback/find-bar/collect-find-matches.d.ts +35 -0
- package/dist/components/feedback/find-bar/collect-find-matches.js +68 -0
- package/dist/components/feedback/find-bar/find-bar-shortcuts.d.ts +5 -0
- package/dist/components/feedback/find-bar/find-bar-shortcuts.js +27 -0
- package/dist/components/feedback/find-bar/find-bar.d.ts +7 -0
- package/dist/components/feedback/find-bar/find-bar.js +266 -0
- package/dist/components/feedback/find-bar/find-bar.types.d.ts +32 -0
- package/dist/components/feedback/find-bar/index.d.ts +4 -0
- package/dist/components/feedback/find-bar/index.js +11 -0
- package/dist/components/feedback/tooltip/button-icon-tooltip.d.ts +6 -1
- package/dist/components/feedback/tooltip/button-icon-tooltip.js +22 -17
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +3 -2
- package/dist/components/feedback/tooltip/use-overflow-tooltip.js +44 -36
- package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
- package/dist/components/flows/filter-panel/filter-panel.js +4 -4
- package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.d.ts +5 -0
- package/dist/components/flows/iris-chat/IrisChatComposerVoiceCapture.js +73 -0
- package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.d.ts +5 -0
- package/dist/components/flows/iris-chat/IrisChatHeaderWindowSizeButton.js +49 -0
- package/dist/components/flows/iris-chat/IrisChatSnapTile.d.ts +8 -0
- package/dist/components/flows/iris-chat/IrisChatSnapTile.js +30 -0
- package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.d.ts +3 -0
- package/dist/components/flows/iris-chat/IrisChatVoiceWaveform.js +25 -0
- package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.d.ts +4 -0
- package/dist/components/flows/iris-chat/IrisChatWindowSnapMenu.js +113 -0
- package/dist/components/flows/iris-chat/index.d.ts +3 -1
- package/dist/components/flows/iris-chat/index.js +58 -53
- package/dist/components/flows/iris-chat/iris-chat-artifact.js +46 -36
- package/dist/components/flows/iris-chat/iris-chat-chrome.d.ts +39 -0
- package/dist/components/flows/iris-chat/iris-chat-chrome.js +311 -0
- package/dist/components/flows/iris-chat/iris-chat-close-animation.d.ts +12 -0
- package/dist/components/flows/iris-chat/iris-chat-close-animation.js +21 -0
- package/dist/components/flows/iris-chat/iris-chat-composer.js +291 -234
- package/dist/components/flows/iris-chat/iris-chat-context.d.ts +16 -0
- package/dist/components/flows/iris-chat/iris-chat-context.js +14 -10
- package/dist/components/flows/iris-chat/iris-chat-copy-feedback.d.ts +4 -0
- package/dist/components/flows/iris-chat/iris-chat-copy-feedback.js +16 -0
- package/dist/components/flows/iris-chat/iris-chat-frame.d.ts +32 -0
- package/dist/components/flows/iris-chat/iris-chat-frame.js +88 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +2 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.js +46 -20
- package/dist/components/flows/iris-chat/iris-chat-launch-animation.d.ts +11 -0
- package/dist/components/flows/iris-chat/iris-chat-launch-animation.js +35 -0
- package/dist/components/flows/iris-chat/iris-chat-markdown.js +82 -42
- package/dist/components/flows/iris-chat/iris-chat-menu.js +149 -117
- package/dist/components/flows/iris-chat/iris-chat-snap-presets.d.ts +7 -0
- package/dist/components/flows/iris-chat/iris-chat-snap-presets.js +83 -0
- package/dist/components/flows/iris-chat/iris-chat-speech.d.ts +52 -0
- package/dist/components/flows/iris-chat/iris-chat-speech.js +121 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.d.ts +4 -0
- package/dist/components/flows/iris-chat/iris-chat-thread.js +277 -220
- package/dist/components/flows/iris-chat/iris-chat-window-chrome.d.ts +33 -0
- package/dist/components/flows/iris-chat/iris-chat-window-chrome.js +37 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.d.ts +14 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry-context.js +15 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry.d.ts +12 -0
- package/dist/components/flows/iris-chat/iris-chat-window-geometry.js +113 -0
- package/dist/components/flows/iris-chat/iris-chat-window-handles.d.ts +6 -0
- package/dist/components/flows/iris-chat/iris-chat-window-handles.js +50 -0
- package/dist/components/flows/iris-chat/iris-chat-window-shell.d.ts +8 -0
- package/dist/components/flows/iris-chat/iris-chat-window-shell.js +37 -0
- package/dist/components/flows/iris-chat/iris-chat.d.ts +3 -39
- package/dist/components/flows/iris-chat/iris-chat.js +22 -330
- package/dist/components/flows/iris-chat/iris-chat.types.d.ts +20 -0
- package/dist/components/flows/iris-chat/iris-chat.variants.d.ts +4 -3
- package/dist/components/flows/iris-chat/iris-chat.variants.js +45 -22
- package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.d.ts +6 -0
- package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.js +23 -0
- package/dist/components/flows/iris-chat/use-iris-chat-root.d.ts +29 -0
- package/dist/components/flows/iris-chat/use-iris-chat-root.js +162 -0
- package/dist/components/forms/choice-card/choice-card-compare-scroll.d.ts +4 -0
- package/dist/components/forms/choice-card/choice-card-compare-scroll.js +6 -0
- package/dist/components/forms/choice-card/choice-card-percent.js +82 -51
- package/dist/components/forms/choice-card/choice-card.d.ts +14 -2
- package/dist/components/forms/choice-card/choice-card.js +470 -381
- package/dist/components/forms/choice-card/choice-card.types.d.ts +9 -2
- package/dist/components/forms/choice-card/choice-card.variants.js +24 -3
- package/dist/components/forms/input/input.js +5 -5
- package/dist/components/forms/select/components/SelectMenuPanel.js +15 -15
- package/dist/components/forms/select/components/SelectTriggerValue.js +3 -2
- package/dist/components/forms/select/components/Submenu.js +3 -2
- package/dist/components/layout/header/header.js +1 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.d.ts +3 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller-mask.js +12 -0
- package/dist/components/layout/horizontal-scroller/horizontal-scroller.js +181 -125
- package/dist/components/layout/horizontal-scroller/horizontal-scroller.types.d.ts +2 -0
- package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.d.ts +3 -1
- package/dist/components/layout/horizontal-scroller/scroll-overflow-affordance.js +77 -67
- package/dist/components/primitives/button/button.variants.js +1 -1
- package/dist/components/primitives/iris/iris-insight-truncated-text.d.ts +3 -0
- package/dist/components/primitives/iris/iris-insight-truncated-text.js +33 -0
- package/dist/components/primitives/iris/iris.d.ts +3 -1
- package/dist/components/primitives/iris/iris.js +85 -91
- package/dist/components/primitives/iris/iris.types.d.ts +9 -0
- package/dist/components/primitives/stepper/internals/step-model.d.ts +1 -1
- package/dist/components/primitives/stepper/internals/step-model.js +5 -5
- package/dist/components/primitives/stepper/internals/stepper-compact.js +13 -13
- package/dist/components/primitives/stepper/internals/stepper-pipeline.js +6 -6
- package/dist/components/primitives/stepper/internals/stepper-rail.js +15 -15
- package/dist/components/primitives/stepper/internals/stepper-summary.js +7 -7
- package/dist/components/primitives/stepper/internals/stepper-track.js +2 -2
- package/dist/components/primitives/stepper/stepper.js +99 -97
- package/dist/components/primitives/stepper/stepper.types.d.ts +4 -0
- package/dist/components/primitives/tabs/folder-tab-path.d.ts +6 -0
- package/dist/components/primitives/tabs/folder-tab-path.js +16 -0
- package/dist/components/primitives/tabs/tabs.js +178 -112
- package/dist/components/primitives/tabs/tabs.types.d.ts +1 -1
- package/dist/form-react/Fields/SelectField.js +66 -57
- package/dist/form-react/Fields/VirtualizedListField.d.ts +3 -0
- package/dist/form-react/Fields/VirtualizedListField.js +223 -0
- package/dist/form-react/fields.d.ts +1 -0
- package/dist/form-react/fields.js +28 -26
- package/dist/form-react/index.d.ts +1 -1
- package/dist/form-react/registry/defaultFieldRegistrations.d.ts +1 -1
- package/dist/form-react/registry/defaultFieldRegistrations.js +13 -12
- package/dist/form-react/types/fields.types.d.ts +48 -1
- package/dist/form-react/types/fieldsOutput.types.d.ts +4 -1
- package/dist/form-react/types/reactHookForm.types.d.ts +18 -1
- package/dist/form-react/utils/fieldDefaults.utils.js +1 -1
- package/dist/i18n/defaultMessages.d.ts +75 -0
- package/dist/i18n/defaultMessages.js +112 -42
- package/dist/i18n/impact-nova-i18n-defaults.d.ts +5 -0
- package/dist/i18n/impact-nova-i18n-defaults.js +4 -9
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/locales/de.js +71 -1
- package/dist/i18n/locales/es.js +71 -1
- package/dist/i18n/locales/hi.js +71 -1
- package/dist/i18n/locales/kn.js +71 -1
- package/dist/impact-nova-components.css +372 -14
- package/dist/impact-nova-tokens.scss +4 -0
- package/dist/impact-nova.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +627 -601
- package/dist/lib/alphabetical-sort.d.ts +3 -0
- package/dist/lib/alphabetical-sort.js +13 -0
- package/dist/lib/guidance/engine/guidance-engine.js +26 -27
- package/dist/lib/guidance/engine/step-navigation.d.ts +1 -0
- package/dist/lib/guidance/engine/step-navigation.js +16 -9
- package/dist/lib/guidance/types/guidance.types.d.ts +9 -1
- package/dist/lib/virtualized/index.d.ts +2 -0
- package/dist/lib/virtualized/index.js +35 -31
- package/dist/lib/virtualized/list-index.d.ts +5 -0
- package/dist/lib/virtualized/list-index.js +13 -0
- package/dist/lib/virtualized/read-infinite-query-list.d.ts +14 -0
- package/dist/lib/virtualized/read-infinite-query-list.js +12 -0
- package/dist/lib/virtualized/types.d.ts +4 -2
- package/dist/lib/virtualized/useRowState.js +60 -56
- package/dist/lib/virtualized/useVirtualizedList.d.ts +5 -0
- package/dist/llms/rules/ag-grid.js +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/real-world-patterns.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/tailwind.config.js +3 -0
- package/dist/theme/tailwind-colors.js +3 -0
- package/package.json +27 -4
|
@@ -1,45 +1,46 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { CHART_PALETTE_CSS_VARS as
|
|
3
|
-
import { resolveDesignTokenColor as
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import v from "highcharts";
|
|
2
|
+
import { CHART_PALETTE_CSS_VARS as A } from "./chart-palette.js";
|
|
3
|
+
import { resolveDesignTokenColor as S } from "../../../lib/resolve-design-token-color.js";
|
|
4
|
+
import { chartUsesScatter3d as O, getScatter3dHighchartsOptions as C, mergeScatter3dOptions3dFrame as L, mergeScatter3dChartLoadHandlers as T } from "./chart-scatter3d.js";
|
|
5
|
+
function D(o, { fadeTo: i = 0.1 } = {}) {
|
|
6
|
+
const a = typeof document > "u" ? o : S(o), n = v.color(a).setOpacity(Math.min(Math.max(i, 0), 1)).get("rgba");
|
|
6
7
|
return {
|
|
7
8
|
linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
|
|
8
9
|
stops: [
|
|
9
|
-
[0,
|
|
10
|
-
[1,
|
|
10
|
+
[0, a],
|
|
11
|
+
[1, n]
|
|
11
12
|
]
|
|
12
13
|
};
|
|
13
14
|
}
|
|
14
|
-
const
|
|
15
|
-
function
|
|
16
|
-
const { series:
|
|
17
|
-
if (!i || !
|
|
18
|
-
const
|
|
15
|
+
const k = /* @__PURE__ */ new Set(["column", "bar"]);
|
|
16
|
+
function F(o, i) {
|
|
17
|
+
const { series: a, colors: n } = o;
|
|
18
|
+
if (!i || !a || !n?.length) return o;
|
|
19
|
+
const h = i === !0 ? {} : i, l = o.chart?.type ?? "column";
|
|
19
20
|
return {
|
|
20
21
|
...o,
|
|
21
|
-
series:
|
|
22
|
-
const u = "type" in
|
|
23
|
-
if (!
|
|
24
|
-
return
|
|
25
|
-
const
|
|
26
|
-
if (typeof
|
|
27
|
-
const
|
|
22
|
+
series: a.map((r, f) => {
|
|
23
|
+
const u = "type" in r && r.type || l;
|
|
24
|
+
if (!k.has(u) || "color" in r && r.color)
|
|
25
|
+
return r;
|
|
26
|
+
const t = "colorIndex" in r && typeof r.colorIndex == "number" ? r.colorIndex : f, c = n[t % n.length];
|
|
27
|
+
if (typeof c != "string") return r;
|
|
28
|
+
const p = D(c, h), g = "negativeColor" in r && r.negativeColor;
|
|
28
29
|
return {
|
|
29
|
-
...
|
|
30
|
-
color:
|
|
30
|
+
...r,
|
|
31
|
+
color: p,
|
|
31
32
|
// Points below the threshold grow away from the axis the other way; flip the fade.
|
|
32
|
-
...!
|
|
33
|
-
negativeColor: { ...
|
|
33
|
+
...!g && {
|
|
34
|
+
negativeColor: { ...p, linearGradient: { x1: 0, y1: 1, x2: 0, y2: 0 } }
|
|
34
35
|
}
|
|
35
36
|
};
|
|
36
37
|
})
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
|
-
function
|
|
40
|
+
function z(o) {
|
|
40
41
|
return !o || Array.isArray(o) ? {} : o;
|
|
41
42
|
}
|
|
42
|
-
function
|
|
43
|
+
function y(o) {
|
|
43
44
|
return {
|
|
44
45
|
...o,
|
|
45
46
|
style: {
|
|
@@ -48,51 +49,51 @@ function g(o) {
|
|
|
48
49
|
}
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
|
-
function
|
|
52
|
-
const
|
|
53
|
-
if (Array.isArray(
|
|
54
|
-
return
|
|
55
|
-
const
|
|
56
|
-
return
|
|
57
|
-
...a,
|
|
52
|
+
function E(o, i) {
|
|
53
|
+
const a = i?.dataLabels;
|
|
54
|
+
if (Array.isArray(a))
|
|
55
|
+
return a.map(y);
|
|
56
|
+
const n = z(o?.dataLabels);
|
|
57
|
+
return y({
|
|
58
58
|
...n,
|
|
59
|
+
...a,
|
|
59
60
|
style: {
|
|
60
|
-
...
|
|
61
|
-
...
|
|
61
|
+
...n.style,
|
|
62
|
+
...a?.style,
|
|
62
63
|
pointerEvents: "none"
|
|
63
64
|
}
|
|
64
65
|
});
|
|
65
66
|
}
|
|
66
|
-
function
|
|
67
|
+
function W(o, i) {
|
|
67
68
|
return {
|
|
68
69
|
...o,
|
|
69
70
|
...i,
|
|
70
|
-
dataLabels:
|
|
71
|
+
dataLabels: E(o, i)
|
|
71
72
|
};
|
|
72
73
|
}
|
|
73
|
-
const
|
|
74
|
+
const I = (o) => {
|
|
74
75
|
const {
|
|
75
76
|
type: i = "column",
|
|
76
|
-
title:
|
|
77
|
-
subtitle:
|
|
78
|
-
xAxisCategories:
|
|
79
|
-
xAxisTitle:
|
|
80
|
-
yAxisCategories:
|
|
81
|
-
yAxisTitle:
|
|
77
|
+
title: a,
|
|
78
|
+
subtitle: n,
|
|
79
|
+
xAxisCategories: h,
|
|
80
|
+
xAxisTitle: l,
|
|
81
|
+
yAxisCategories: r,
|
|
82
|
+
yAxisTitle: f,
|
|
82
83
|
series: u,
|
|
83
|
-
options:
|
|
84
|
-
stacked:
|
|
85
|
-
is3D:
|
|
86
|
-
showLegend:
|
|
87
|
-
showTooltip:
|
|
88
|
-
} = o,
|
|
84
|
+
options: t,
|
|
85
|
+
stacked: c,
|
|
86
|
+
is3D: p,
|
|
87
|
+
showLegend: g = !0,
|
|
88
|
+
showTooltip: x = !0
|
|
89
|
+
} = o, d = O({ is3D: p, type: i, series: u }), s = d ? C({ xAxisTitle: l, yAxisTitle: f, options: t }) : void 0, e = {
|
|
89
90
|
chart: {
|
|
90
91
|
type: i,
|
|
91
92
|
backgroundColor: "transparent",
|
|
92
93
|
style: {
|
|
93
94
|
fontFamily: "Manrope, sans-serif"
|
|
94
95
|
},
|
|
95
|
-
options3d:
|
|
96
|
+
options3d: p ? {
|
|
96
97
|
enabled: !0,
|
|
97
98
|
alpha: 15,
|
|
98
99
|
beta: 15,
|
|
@@ -101,7 +102,7 @@ const E = (o) => {
|
|
|
101
102
|
} : void 0
|
|
102
103
|
},
|
|
103
104
|
title: {
|
|
104
|
-
text:
|
|
105
|
+
text: a ?? "",
|
|
105
106
|
align: "left",
|
|
106
107
|
style: {
|
|
107
108
|
fontSize: "18px",
|
|
@@ -110,7 +111,7 @@ const E = (o) => {
|
|
|
110
111
|
}
|
|
111
112
|
},
|
|
112
113
|
subtitle: {
|
|
113
|
-
text:
|
|
114
|
+
text: n,
|
|
114
115
|
align: "left"
|
|
115
116
|
},
|
|
116
117
|
credits: {
|
|
@@ -126,9 +127,9 @@ const E = (o) => {
|
|
|
126
127
|
}
|
|
127
128
|
},
|
|
128
129
|
xAxis: {
|
|
129
|
-
categories:
|
|
130
|
-
title:
|
|
131
|
-
text:
|
|
130
|
+
categories: h,
|
|
131
|
+
title: l ? {
|
|
132
|
+
text: l,
|
|
132
133
|
style: {
|
|
133
134
|
color: "var(--color-foreground-tertiary)",
|
|
134
135
|
fontFamily: '"Manrope", sans-serif',
|
|
@@ -151,9 +152,9 @@ const E = (o) => {
|
|
|
151
152
|
}
|
|
152
153
|
},
|
|
153
154
|
yAxis: {
|
|
154
|
-
categories:
|
|
155
|
+
categories: r,
|
|
155
156
|
title: {
|
|
156
|
-
text:
|
|
157
|
+
text: f,
|
|
157
158
|
margin: 30,
|
|
158
159
|
style: {
|
|
159
160
|
color: "var(--color-foreground-tertiary)",
|
|
@@ -178,7 +179,7 @@ const E = (o) => {
|
|
|
178
179
|
}
|
|
179
180
|
},
|
|
180
181
|
legend: {
|
|
181
|
-
enabled:
|
|
182
|
+
enabled: g,
|
|
182
183
|
symbolRadius: 2,
|
|
183
184
|
itemStyle: {
|
|
184
185
|
color: "var(--color-foreground-tertiary)",
|
|
@@ -190,7 +191,7 @@ const E = (o) => {
|
|
|
190
191
|
}
|
|
191
192
|
},
|
|
192
193
|
tooltip: {
|
|
193
|
-
enabled:
|
|
194
|
+
enabled: x,
|
|
194
195
|
backgroundColor: "var(--color-surface-floating)",
|
|
195
196
|
borderColor: "var(--color-border)",
|
|
196
197
|
borderRadius: 8,
|
|
@@ -199,16 +200,16 @@ const E = (o) => {
|
|
|
199
200
|
},
|
|
200
201
|
shadow: !0
|
|
201
202
|
},
|
|
202
|
-
colors: [...
|
|
203
|
+
colors: [...A],
|
|
203
204
|
plotOptions: {
|
|
204
205
|
column: {
|
|
205
206
|
borderRadius: 4,
|
|
206
|
-
stacking:
|
|
207
|
+
stacking: c ? "normal" : void 0,
|
|
207
208
|
borderWidth: 0
|
|
208
209
|
},
|
|
209
210
|
bar: {
|
|
210
211
|
borderRadius: 4,
|
|
211
|
-
stacking:
|
|
212
|
+
stacking: c ? "normal" : void 0,
|
|
212
213
|
borderWidth: 1,
|
|
213
214
|
borderColor: "var(--color-background)"
|
|
214
215
|
},
|
|
@@ -237,62 +238,91 @@ const E = (o) => {
|
|
|
237
238
|
}
|
|
238
239
|
},
|
|
239
240
|
series: u
|
|
241
|
+
}, m = d ? {
|
|
242
|
+
...e.chart?.options3d,
|
|
243
|
+
...s?.chart?.options3d,
|
|
244
|
+
...t?.chart?.options3d,
|
|
245
|
+
frame: L(
|
|
246
|
+
s?.chart?.options3d?.frame,
|
|
247
|
+
t?.chart?.options3d?.frame
|
|
248
|
+
)
|
|
249
|
+
} : {
|
|
250
|
+
...e.chart?.options3d,
|
|
251
|
+
...t?.chart?.options3d
|
|
240
252
|
};
|
|
241
253
|
return {
|
|
242
|
-
...r,
|
|
243
254
|
...e,
|
|
244
|
-
|
|
255
|
+
...t,
|
|
256
|
+
colors: t?.colors ?? e.colors,
|
|
245
257
|
chart: {
|
|
246
|
-
...
|
|
247
|
-
...
|
|
258
|
+
...e.chart,
|
|
259
|
+
...s?.chart,
|
|
260
|
+
...t?.chart,
|
|
261
|
+
...d ? { type: "scatter3d" } : {},
|
|
262
|
+
options3d: m,
|
|
263
|
+
events: d ? {
|
|
264
|
+
...t?.chart?.events,
|
|
265
|
+
load: T(t?.chart?.events?.load)
|
|
266
|
+
} : t?.chart?.events
|
|
248
267
|
},
|
|
249
268
|
xAxis: {
|
|
250
|
-
...
|
|
251
|
-
...
|
|
269
|
+
...e.xAxis,
|
|
270
|
+
...s?.xAxis,
|
|
271
|
+
...Array.isArray(t?.xAxis) ? {} : t?.xAxis
|
|
252
272
|
},
|
|
253
|
-
yAxis: Array.isArray(
|
|
254
|
-
...
|
|
273
|
+
yAxis: Array.isArray(t?.yAxis) ? t.yAxis.map((b) => ({
|
|
274
|
+
...e.yAxis,
|
|
275
|
+
...s?.yAxis,
|
|
255
276
|
...b
|
|
256
277
|
})) : {
|
|
257
|
-
...
|
|
258
|
-
...
|
|
278
|
+
...e.yAxis,
|
|
279
|
+
...s?.yAxis,
|
|
280
|
+
...t?.yAxis
|
|
259
281
|
},
|
|
282
|
+
zAxis: d ? {
|
|
283
|
+
...s?.zAxis,
|
|
284
|
+
...t?.zAxis
|
|
285
|
+
} : t?.zAxis,
|
|
260
286
|
plotOptions: {
|
|
261
|
-
...
|
|
262
|
-
...
|
|
287
|
+
...e.plotOptions,
|
|
288
|
+
...t?.plotOptions,
|
|
263
289
|
column: {
|
|
264
|
-
...
|
|
265
|
-
...
|
|
290
|
+
...e.plotOptions?.column,
|
|
291
|
+
...t?.plotOptions?.column
|
|
266
292
|
},
|
|
267
293
|
bar: {
|
|
268
|
-
...
|
|
269
|
-
...
|
|
294
|
+
...e.plotOptions?.bar,
|
|
295
|
+
...t?.plotOptions?.bar
|
|
270
296
|
},
|
|
271
297
|
pie: {
|
|
272
|
-
...
|
|
273
|
-
...
|
|
298
|
+
...e.plotOptions?.pie,
|
|
299
|
+
...t?.plotOptions?.pie
|
|
274
300
|
},
|
|
275
|
-
heatmap:
|
|
276
|
-
|
|
277
|
-
|
|
301
|
+
heatmap: W(
|
|
302
|
+
e.plotOptions?.heatmap,
|
|
303
|
+
t?.plotOptions?.heatmap
|
|
278
304
|
),
|
|
305
|
+
scatter3d: {
|
|
306
|
+
...s?.plotOptions?.scatter3d,
|
|
307
|
+
...t?.plotOptions?.scatter3d
|
|
308
|
+
},
|
|
279
309
|
series: {
|
|
280
|
-
...
|
|
281
|
-
...
|
|
310
|
+
...e.plotOptions?.series,
|
|
311
|
+
...t?.plotOptions?.series
|
|
282
312
|
}
|
|
283
313
|
},
|
|
284
314
|
tooltip: {
|
|
285
|
-
...
|
|
286
|
-
...
|
|
315
|
+
...e.tooltip,
|
|
316
|
+
...t?.tooltip
|
|
287
317
|
},
|
|
288
318
|
legend: {
|
|
289
|
-
...
|
|
290
|
-
...
|
|
319
|
+
...e.legend,
|
|
320
|
+
...t?.legend
|
|
291
321
|
}
|
|
292
322
|
};
|
|
293
323
|
};
|
|
294
324
|
export {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
325
|
+
F as applySeriesGradient,
|
|
326
|
+
D as chartGradient,
|
|
327
|
+
I as getBaseChartOptions
|
|
298
328
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function playHeatmapGridFill({ canvasElement, }: {
|
|
2
|
+
canvasElement: HTMLElement;
|
|
3
|
+
}): Promise<void>;
|
|
4
|
+
export declare function playHeatmapGridLarge({ canvasElement, }: {
|
|
5
|
+
canvasElement: HTMLElement;
|
|
6
|
+
}): Promise<void>;
|
|
7
|
+
export declare function playHeatmapGridComposition({ canvasElement, }: {
|
|
8
|
+
canvasElement: HTMLElement;
|
|
9
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { HeatmapGridCellPosition } from './heatmap-grid.types';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export type { HeatmapGridCell, HeatmapGridCellPosition, HeatmapGridProps, HeatmapGridTone, HeatmapGridTooltipProps, HeatmapGridViewportProps, } from './heatmap-grid.types';
|
|
4
|
+
export { HeatmapGridTooltip } from './internals/heatmap-grid-tooltip';
|
|
5
|
+
export { HeatmapGridViewport } from './internals/heatmap-grid-viewport';
|
|
6
|
+
/**
|
|
7
|
+
* Windowed heatmap. Paints only visible rows × columns; small grids stretch to fill.
|
|
8
|
+
* Compose `HeatmapGridViewport` and `HeatmapGridTooltip` as children to customise layout.
|
|
9
|
+
*/
|
|
10
|
+
declare const HeatmapGrid: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
11
|
+
rowCount: number;
|
|
12
|
+
columnCount: number;
|
|
13
|
+
getRowLabel: (rowIndex: number) => string;
|
|
14
|
+
getColumnLabel: (columnIndex: number) => string;
|
|
15
|
+
getCell: (rowIndex: number, columnIndex: number) => import('./heatmap-grid.types').HeatmapGridCell | undefined;
|
|
16
|
+
renderCell?: (cell: import('./heatmap-grid.types').HeatmapGridCell, position: HeatmapGridCellPosition) => React.ReactNode;
|
|
17
|
+
renderTooltip?: (position: HeatmapGridCellPosition) => React.ReactNode;
|
|
18
|
+
minRowSizePx?: number;
|
|
19
|
+
minColumnSizePx?: number;
|
|
20
|
+
rowHeaderWidthPx?: number;
|
|
21
|
+
columnHeaderHeightPx?: number;
|
|
22
|
+
hasMore?: boolean;
|
|
23
|
+
isFetchingMore?: boolean;
|
|
24
|
+
onEndReached?: () => void;
|
|
25
|
+
endReachedThreshold?: number;
|
|
26
|
+
activeCell?: HeatmapGridCellPosition;
|
|
27
|
+
defaultActiveCell?: HeatmapGridCellPosition;
|
|
28
|
+
onActiveCellChange?: (position: HeatmapGridCellPosition) => void;
|
|
29
|
+
rowHeaderLabel?: string;
|
|
30
|
+
children?: React.ReactNode;
|
|
31
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
export { HeatmapGrid };
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { jsx as e, jsxs as N, Fragment as S } from "react/jsx-runtime";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import { useControllableState as U } from "@radix-ui/react-use-controllable-state";
|
|
4
|
+
import { useImpactNovaI18n as x } from "../../../i18n/use-impact-nova-i18n.js";
|
|
5
|
+
import { useComposedRefs as F } from "../../../lib/compose-refs.js";
|
|
6
|
+
import { createComponent as O } from "../../../lib/primitives/create-component.js";
|
|
7
|
+
import { cn as w } from "../../../lib/utils.js";
|
|
8
|
+
import { HEATMAP_GRID_DEFAULT_COLUMN_HEADER_HEIGHT_PX as X, HEATMAP_GRID_DEFAULT_ROW_HEADER_WIDTH_PX as W, HEATMAP_GRID_DEFAULT_MIN_COLUMN_SIZE_PX as j, HEATMAP_GRID_DEFAULT_MIN_ROW_SIZE_PX as V } from "./heatmap-grid.layout.js";
|
|
9
|
+
import { heatmapGridRootVariants as Z } from "./heatmap-grid.variants.js";
|
|
10
|
+
import { createHeatmapGridHoverStore as k, HeatmapGridProvider as q } from "./internals/heatmap-grid-context.js";
|
|
11
|
+
import { HeatmapGridTooltip as y } from "./internals/heatmap-grid-tooltip.js";
|
|
12
|
+
import { HeatmapGridViewport as z } from "./internals/heatmap-grid-viewport.js";
|
|
13
|
+
const B = { rowIndex: 0, columnIndex: 0 }, ie = O(
|
|
14
|
+
"HeatmapGrid",
|
|
15
|
+
({
|
|
16
|
+
className: m,
|
|
17
|
+
children: i,
|
|
18
|
+
rowCount: p,
|
|
19
|
+
columnCount: l,
|
|
20
|
+
getRowLabel: n,
|
|
21
|
+
getColumnLabel: d,
|
|
22
|
+
getCell: s,
|
|
23
|
+
renderCell: _,
|
|
24
|
+
renderTooltip: c,
|
|
25
|
+
minRowSizePx: f = V,
|
|
26
|
+
minColumnSizePx: H = j,
|
|
27
|
+
rowHeaderWidthPx: E = W,
|
|
28
|
+
columnHeaderHeightPx: G = X,
|
|
29
|
+
hasMore: I = !1,
|
|
30
|
+
isFetchingMore: R = !1,
|
|
31
|
+
onEndReached: A,
|
|
32
|
+
endReachedThreshold: L = 2,
|
|
33
|
+
activeCell: D,
|
|
34
|
+
defaultActiveCell: o = B,
|
|
35
|
+
onActiveCellChange: T,
|
|
36
|
+
rowHeaderLabel: h,
|
|
37
|
+
"aria-label": C,
|
|
38
|
+
...M
|
|
39
|
+
}, P) => {
|
|
40
|
+
const { t: r } = x(), t = a.useRef(null), u = F(t, P), [v] = a.useState(k), [b, g] = U({
|
|
41
|
+
prop: D,
|
|
42
|
+
defaultProp: o,
|
|
43
|
+
onChange: T
|
|
44
|
+
});
|
|
45
|
+
return /* @__PURE__ */ e(
|
|
46
|
+
q,
|
|
47
|
+
{
|
|
48
|
+
value: {
|
|
49
|
+
rowCount: p,
|
|
50
|
+
columnCount: l,
|
|
51
|
+
getRowLabel: n,
|
|
52
|
+
getColumnLabel: d,
|
|
53
|
+
getCell: s,
|
|
54
|
+
renderCell: _,
|
|
55
|
+
renderTooltip: c,
|
|
56
|
+
minRowSizePx: f,
|
|
57
|
+
minColumnSizePx: H,
|
|
58
|
+
rowHeaderWidthPx: E,
|
|
59
|
+
columnHeaderHeightPx: G,
|
|
60
|
+
hasMore: I,
|
|
61
|
+
isFetchingMore: R,
|
|
62
|
+
onEndReached: A,
|
|
63
|
+
endReachedThreshold: L,
|
|
64
|
+
rowHeaderLabel: h ?? r("heatmapGrid.rowHeaderLabel"),
|
|
65
|
+
gridLabel: C ?? r("heatmapGrid.gridLabel"),
|
|
66
|
+
loadingMoreLabel: r("heatmapGrid.loadingMore"),
|
|
67
|
+
activeCell: b ?? o,
|
|
68
|
+
setActiveCell: g,
|
|
69
|
+
hoverStore: v,
|
|
70
|
+
rootRef: t
|
|
71
|
+
},
|
|
72
|
+
children: /* @__PURE__ */ e(
|
|
73
|
+
"div",
|
|
74
|
+
{
|
|
75
|
+
ref: u,
|
|
76
|
+
"data-component": "heatmap-grid",
|
|
77
|
+
className: w(Z(), m),
|
|
78
|
+
...M,
|
|
79
|
+
children: i ?? /* @__PURE__ */ N(S, { children: [
|
|
80
|
+
/* @__PURE__ */ e(z, {}),
|
|
81
|
+
/* @__PURE__ */ e(y, {})
|
|
82
|
+
] })
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
}
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
export {
|
|
90
|
+
ie as HeatmapGrid,
|
|
91
|
+
y as HeatmapGridTooltip,
|
|
92
|
+
z as HeatmapGridViewport
|
|
93
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { HeatmapGridCellPosition } from './heatmap-grid.types';
|
|
2
|
+
export declare const HEATMAP_GRID_DEFAULT_MIN_ROW_SIZE_PX = 36;
|
|
3
|
+
export declare const HEATMAP_GRID_DEFAULT_MIN_COLUMN_SIZE_PX = 72;
|
|
4
|
+
export declare const HEATMAP_GRID_DEFAULT_ROW_HEADER_WIDTH_PX = 152;
|
|
5
|
+
export declare const HEATMAP_GRID_DEFAULT_COLUMN_HEADER_HEIGHT_PX = 56;
|
|
6
|
+
/** Columns at least this wide show horizontal labels; narrower ones rotate. */
|
|
7
|
+
export declare const HEATMAP_GRID_HORIZONTAL_LABEL_MIN_COLUMN_PX = 112;
|
|
8
|
+
export type HeatmapGridLayout = {
|
|
9
|
+
rowSizePx: number;
|
|
10
|
+
columnSizePx: number;
|
|
11
|
+
contentWidthPx: number;
|
|
12
|
+
bodyHeightPx: number;
|
|
13
|
+
overflowsX: boolean;
|
|
14
|
+
overflowsY: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare function readHeatmapGridTrackSizePx(input: {
|
|
17
|
+
count: number;
|
|
18
|
+
viewportPx: number;
|
|
19
|
+
minSizePx: number;
|
|
20
|
+
}): number;
|
|
21
|
+
/** Fill-or-scroll: tracks stretch to the viewport, never below their floor. */
|
|
22
|
+
export declare function readHeatmapGridLayout(input: {
|
|
23
|
+
rowCount: number;
|
|
24
|
+
columnCount: number;
|
|
25
|
+
viewportWidthPx: number;
|
|
26
|
+
viewportHeightPx: number;
|
|
27
|
+
minRowSizePx: number;
|
|
28
|
+
minColumnSizePx: number;
|
|
29
|
+
rowHeaderWidthPx: number;
|
|
30
|
+
columnHeaderHeightPx: number;
|
|
31
|
+
isFetchingMore?: boolean;
|
|
32
|
+
}): HeatmapGridLayout;
|
|
33
|
+
/** Longest rotated (-45°) label that fits the column and header band. */
|
|
34
|
+
export declare function readHeatmapGridColumnLabelMaxWidthPx(input: {
|
|
35
|
+
columnSizePx: number;
|
|
36
|
+
columnHeaderHeightPx: number;
|
|
37
|
+
}): number;
|
|
38
|
+
export declare function readNextHeatmapGridFocusCell(input: {
|
|
39
|
+
current: HeatmapGridCellPosition;
|
|
40
|
+
rowCount: number;
|
|
41
|
+
columnCount: number;
|
|
42
|
+
key: string;
|
|
43
|
+
ctrlKey?: boolean;
|
|
44
|
+
}): HeatmapGridCellPosition | null;
|
|
45
|
+
export declare function readHeatmapGridCellKey(position: HeatmapGridCellPosition): string;
|
|
46
|
+
export declare function readHeatmapGridCellPosition(element: Element | null): HeatmapGridCellPosition | null;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
const x = 36, d = 72, l = 152, m = 56, P = 112;
|
|
2
|
+
function c(e) {
|
|
3
|
+
return e.viewportPx <= 0 ? e.minSizePx : Math.max(e.minSizePx, e.viewportPx / Math.max(e.count, 1));
|
|
4
|
+
}
|
|
5
|
+
function w(e) {
|
|
6
|
+
const r = c({
|
|
7
|
+
count: e.columnCount,
|
|
8
|
+
viewportPx: Math.max(e.viewportWidthPx - e.rowHeaderWidthPx, 0),
|
|
9
|
+
minSizePx: e.minColumnSizePx
|
|
10
|
+
}), n = c({
|
|
11
|
+
count: e.rowCount,
|
|
12
|
+
viewportPx: Math.max(e.viewportHeightPx - e.columnHeaderHeightPx, 0),
|
|
13
|
+
minSizePx: e.minRowSizePx
|
|
14
|
+
}), t = e.rowHeaderWidthPx + r * e.columnCount, a = n * e.rowCount, o = e.isFetchingMore === !0 ? e.minRowSizePx : 0;
|
|
15
|
+
return {
|
|
16
|
+
rowSizePx: n,
|
|
17
|
+
columnSizePx: r,
|
|
18
|
+
contentWidthPx: t,
|
|
19
|
+
bodyHeightPx: a,
|
|
20
|
+
overflowsX: t > e.viewportWidthPx + 0.5,
|
|
21
|
+
overflowsY: a + e.columnHeaderHeightPx + o > e.viewportHeightPx + 0.5
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function i(e) {
|
|
25
|
+
const r = Math.max(e.columnHeaderHeightPx - 14, 24), n = Math.floor(
|
|
26
|
+
Math.min(e.columnSizePx - 10, r) * Math.SQRT2
|
|
27
|
+
);
|
|
28
|
+
return Math.max(n, 32);
|
|
29
|
+
}
|
|
30
|
+
function u(e) {
|
|
31
|
+
if (e.rowCount <= 0 || e.columnCount <= 0)
|
|
32
|
+
return null;
|
|
33
|
+
const r = e.rowCount - 1, n = e.columnCount - 1, { rowIndex: t, columnIndex: a } = e.current, o = { rowIndex: t, columnIndex: a };
|
|
34
|
+
switch (e.key) {
|
|
35
|
+
case "ArrowRight":
|
|
36
|
+
o.columnIndex += 1;
|
|
37
|
+
break;
|
|
38
|
+
case "ArrowLeft":
|
|
39
|
+
o.columnIndex -= 1;
|
|
40
|
+
break;
|
|
41
|
+
case "ArrowDown":
|
|
42
|
+
o.rowIndex += 1;
|
|
43
|
+
break;
|
|
44
|
+
case "ArrowUp":
|
|
45
|
+
o.rowIndex -= 1;
|
|
46
|
+
break;
|
|
47
|
+
case "Home":
|
|
48
|
+
o.columnIndex = 0, o.rowIndex = e.ctrlKey ? 0 : t;
|
|
49
|
+
break;
|
|
50
|
+
case "End":
|
|
51
|
+
o.columnIndex = n, o.rowIndex = e.ctrlKey ? r : t;
|
|
52
|
+
break;
|
|
53
|
+
default:
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
return o.rowIndex < 0 || o.columnIndex < 0 || o.rowIndex > r || o.columnIndex > n ? null : o;
|
|
57
|
+
}
|
|
58
|
+
function I(e) {
|
|
59
|
+
return `${e.rowIndex}:${e.columnIndex}`;
|
|
60
|
+
}
|
|
61
|
+
function s(e) {
|
|
62
|
+
const r = e?.closest("[data-heatmap-cell]");
|
|
63
|
+
return r ? {
|
|
64
|
+
rowIndex: Number(r.dataset.rowIndex),
|
|
65
|
+
columnIndex: Number(r.dataset.columnIndex)
|
|
66
|
+
} : null;
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
m as HEATMAP_GRID_DEFAULT_COLUMN_HEADER_HEIGHT_PX,
|
|
70
|
+
d as HEATMAP_GRID_DEFAULT_MIN_COLUMN_SIZE_PX,
|
|
71
|
+
x as HEATMAP_GRID_DEFAULT_MIN_ROW_SIZE_PX,
|
|
72
|
+
l as HEATMAP_GRID_DEFAULT_ROW_HEADER_WIDTH_PX,
|
|
73
|
+
P as HEATMAP_GRID_HORIZONTAL_LABEL_MIN_COLUMN_PX,
|
|
74
|
+
I as readHeatmapGridCellKey,
|
|
75
|
+
s as readHeatmapGridCellPosition,
|
|
76
|
+
i as readHeatmapGridColumnLabelMaxWidthPx,
|
|
77
|
+
w as readHeatmapGridLayout,
|
|
78
|
+
c as readHeatmapGridTrackSizePx,
|
|
79
|
+
u as readNextHeatmapGridFocusCell
|
|
80
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
/** Semantic fill. Maps to feedback surface tokens; use `color` only for custom scales. */
|
|
3
|
+
export type HeatmapGridTone = "positive" | "warning" | "negative" | "neutral";
|
|
4
|
+
export type HeatmapGridCell = {
|
|
5
|
+
label: string;
|
|
6
|
+
tone?: HeatmapGridTone;
|
|
7
|
+
/** Custom background (CSS color or `var(--token)`). Wins over `tone`. */
|
|
8
|
+
color?: string;
|
|
9
|
+
/** Missing metric. Renders muted and ignores `tone` / `color`. */
|
|
10
|
+
isEmpty?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export type HeatmapGridCellPosition = {
|
|
13
|
+
rowIndex: number;
|
|
14
|
+
columnIndex: number;
|
|
15
|
+
};
|
|
16
|
+
export type HeatmapGridProps = Omit<React.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
17
|
+
rowCount: number;
|
|
18
|
+
columnCount: number;
|
|
19
|
+
getRowLabel: (rowIndex: number) => string;
|
|
20
|
+
getColumnLabel: (columnIndex: number) => string;
|
|
21
|
+
/** Called only for painted cells. Keep it O(1) (index into a dense array). */
|
|
22
|
+
getCell: (rowIndex: number, columnIndex: number) => HeatmapGridCell | undefined;
|
|
23
|
+
/** Replaces the cell label. Receives the resolved cell and its position. */
|
|
24
|
+
renderCell?: (cell: HeatmapGridCell, position: HeatmapGridCellPosition) => React.ReactNode;
|
|
25
|
+
/** Default tooltip body. `HeatmapGridTooltip` children override it. */
|
|
26
|
+
renderTooltip?: (position: HeatmapGridCellPosition) => React.ReactNode;
|
|
27
|
+
/** Row track floor. Rows stretch above this to fill the viewport. */
|
|
28
|
+
minRowSizePx?: number;
|
|
29
|
+
/** Column track floor. Columns stretch above this to fill the viewport. */
|
|
30
|
+
minColumnSizePx?: number;
|
|
31
|
+
rowHeaderWidthPx?: number;
|
|
32
|
+
columnHeaderHeightPx?: number;
|
|
33
|
+
/** More rows exist after `rowCount`. Enables `onEndReached`. */
|
|
34
|
+
hasMore?: boolean;
|
|
35
|
+
/** Next page is loading. Shows a skeleton row and pauses `onEndReached`. */
|
|
36
|
+
isFetchingMore?: boolean;
|
|
37
|
+
/** Fires once per `rowCount` when the last painted row is within `endReachedThreshold`. */
|
|
38
|
+
onEndReached?: () => void;
|
|
39
|
+
/** Rows from the end that trigger `onEndReached`. Default `2`. */
|
|
40
|
+
endReachedThreshold?: number;
|
|
41
|
+
/** Roving-focus cell (controlled). */
|
|
42
|
+
activeCell?: HeatmapGridCellPosition;
|
|
43
|
+
defaultActiveCell?: HeatmapGridCellPosition;
|
|
44
|
+
onActiveCellChange?: (position: HeatmapGridCellPosition) => void;
|
|
45
|
+
/** Screen-reader label for the row header column. */
|
|
46
|
+
rowHeaderLabel?: string;
|
|
47
|
+
/** Custom composition of `HeatmapGridViewport` / `HeatmapGridTooltip`. */
|
|
48
|
+
children?: React.ReactNode;
|
|
49
|
+
};
|
|
50
|
+
export type HeatmapGridViewportProps = React.HTMLAttributes<HTMLDivElement>;
|
|
51
|
+
export type HeatmapGridTooltipProps = Omit<React.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
52
|
+
/** Tooltip body for the hovered or focused cell. Falls back to root `renderTooltip`. */
|
|
53
|
+
children?: (position: HeatmapGridCellPosition) => React.ReactNode;
|
|
54
|
+
};
|