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,223 @@
|
|
|
1
|
+
import { jsx as l, jsxs as T } from "react/jsx-runtime";
|
|
2
|
+
import { useState as b } from "react";
|
|
3
|
+
import { Controller as E } from "react-hook-form";
|
|
4
|
+
import { ChoiceCardGroup as R, ChoiceCard as W, ChoiceCardIndicator as _, ChoiceCardContent as P, ChoiceCardTitle as j } from "../../components/forms/choice-card/choice-card.js";
|
|
5
|
+
import { OverflowTooltip as q } from "../../components/feedback/tooltip/overflow-tooltip.js";
|
|
6
|
+
import { SkuPickerChrome as z } from "../../components/data/expandable-list-item/sku-picker-chrome.js";
|
|
7
|
+
import { nextAlphabeticalSortDirection as B, compareAlphabeticalValues as H } from "../../lib/alphabetical-sort.js";
|
|
8
|
+
import { cn as N } from "../../lib/utils.js";
|
|
9
|
+
import { getFieldTestId as y } from "../utils/fieldTestIds.js";
|
|
10
|
+
const G = 180, U = [];
|
|
11
|
+
function Y(e) {
|
|
12
|
+
if (!Array.isArray(e))
|
|
13
|
+
return [];
|
|
14
|
+
const n = [];
|
|
15
|
+
for (const t of e)
|
|
16
|
+
typeof t == "string" && n.push(t);
|
|
17
|
+
return n;
|
|
18
|
+
}
|
|
19
|
+
function S(e, n, t) {
|
|
20
|
+
if (t === "single") {
|
|
21
|
+
const o = Array.from(n).find((s) => !e.includes(s));
|
|
22
|
+
return o ? [o] : Array.from(n).slice(0, 1);
|
|
23
|
+
}
|
|
24
|
+
const r = [];
|
|
25
|
+
for (const o of e)
|
|
26
|
+
n.has(o) && r.push(o);
|
|
27
|
+
for (const o of n)
|
|
28
|
+
e.includes(o) || r.push(o);
|
|
29
|
+
return r;
|
|
30
|
+
}
|
|
31
|
+
function m(e) {
|
|
32
|
+
return typeof e.label == "string" ? e.label : e.value;
|
|
33
|
+
}
|
|
34
|
+
function J(e, n, t) {
|
|
35
|
+
const r = n.trim().toLowerCase(), o = e.filter(
|
|
36
|
+
(s) => m(s).toLowerCase().includes(r)
|
|
37
|
+
);
|
|
38
|
+
return t === "none" ? o : o.sort(
|
|
39
|
+
(s, f) => H(
|
|
40
|
+
m(s),
|
|
41
|
+
m(f),
|
|
42
|
+
t
|
|
43
|
+
)
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
function K(e, n) {
|
|
47
|
+
let t = 0;
|
|
48
|
+
for (const r of e)
|
|
49
|
+
if (r.isDisabled !== !0 && (t += 1, !n.includes(r.value)))
|
|
50
|
+
return !1;
|
|
51
|
+
return t > 0;
|
|
52
|
+
}
|
|
53
|
+
function Q(e, n) {
|
|
54
|
+
const t = [];
|
|
55
|
+
for (const r of n) {
|
|
56
|
+
const o = e.find((s) => s.value === r);
|
|
57
|
+
if (o && (t.push(m(o)), t.length === 5))
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
return t;
|
|
61
|
+
}
|
|
62
|
+
function x(e) {
|
|
63
|
+
if (!(e === void 0 || e <= 0))
|
|
64
|
+
return e;
|
|
65
|
+
}
|
|
66
|
+
function X(e) {
|
|
67
|
+
const n = `${e.itemMinWidth}px`;
|
|
68
|
+
if (e.view === "list")
|
|
69
|
+
return `repeat(${x(e.listColumnCount) ?? 1}, minmax(${n}, 1fr))`;
|
|
70
|
+
const t = x(e.cardColumnCount);
|
|
71
|
+
return t ? `repeat(${t}, minmax(${n}, 1fr))` : `repeat(auto-fit, minmax(${n}, 1fr))`;
|
|
72
|
+
}
|
|
73
|
+
function Z(e) {
|
|
74
|
+
const n = e.view === "card", t = m(e.option), r = e.renderOption ? e.renderOption({
|
|
75
|
+
option: e.option,
|
|
76
|
+
index: e.index,
|
|
77
|
+
options: e.options,
|
|
78
|
+
selected: e.selected,
|
|
79
|
+
disabled: e.disabled,
|
|
80
|
+
view: e.view
|
|
81
|
+
}) : null;
|
|
82
|
+
return /* @__PURE__ */ l(
|
|
83
|
+
R,
|
|
84
|
+
{
|
|
85
|
+
type: "multiple",
|
|
86
|
+
value: e.selected ? [e.option.value] : U,
|
|
87
|
+
onValueChange: (o) => {
|
|
88
|
+
o.includes(e.option.value) !== e.selected && e.onToggle();
|
|
89
|
+
},
|
|
90
|
+
disabled: e.disabled,
|
|
91
|
+
className: "min-w-0 w-full",
|
|
92
|
+
children: /* @__PURE__ */ T(
|
|
93
|
+
W,
|
|
94
|
+
{
|
|
95
|
+
value: e.option.value,
|
|
96
|
+
size: "sm",
|
|
97
|
+
disabled: e.disabled,
|
|
98
|
+
"aria-label": t,
|
|
99
|
+
className: N(
|
|
100
|
+
"w-full min-w-0 items-center",
|
|
101
|
+
!n && "justify-start gap-3 rounded-none border-0 bg-transparent p-0 shadow-none hover:border-0 data-[selected]:border-0 data-[selected]:bg-transparent data-[selected]:shadow-none"
|
|
102
|
+
),
|
|
103
|
+
children: [
|
|
104
|
+
e.indicatorStyle === "none" ? null : /* @__PURE__ */ l(
|
|
105
|
+
_,
|
|
106
|
+
{
|
|
107
|
+
shape: e.indicatorStyle === "radio" ? "radio" : void 0,
|
|
108
|
+
className: n ? "order-last self-center" : "order-first self-center"
|
|
109
|
+
}
|
|
110
|
+
),
|
|
111
|
+
/* @__PURE__ */ l(P, { className: "min-w-0 overflow-hidden", children: r ?? /* @__PURE__ */ l(j, { className: "min-w-0 normal-case", children: /* @__PURE__ */ l(
|
|
112
|
+
q,
|
|
113
|
+
{
|
|
114
|
+
triggerClassName: "truncate whitespace-nowrap normal-case",
|
|
115
|
+
content: t,
|
|
116
|
+
children: t
|
|
117
|
+
}
|
|
118
|
+
) }) })
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
)
|
|
122
|
+
}
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
const se = ({
|
|
126
|
+
field: e,
|
|
127
|
+
validationRules: n,
|
|
128
|
+
isDisabled: t,
|
|
129
|
+
formHelpers: r
|
|
130
|
+
}) => {
|
|
131
|
+
const [o, s] = b(""), [f, A] = b("none"), [h, L] = b("card");
|
|
132
|
+
if (e.fieldType !== "virtualized_list") return null;
|
|
133
|
+
const v = e.options ?? [], C = e.selectionMode ?? "multi", O = e.viewportHeight ?? 240, V = e.itemMinWidth ?? G, M = e.optionRendererName ? r.formContext?.optionRenderers?.[e.optionRendererName] : void 0, $ = r.form.control, d = J(v, o, f);
|
|
134
|
+
return /* @__PURE__ */ l(
|
|
135
|
+
E,
|
|
136
|
+
{
|
|
137
|
+
name: e.id,
|
|
138
|
+
control: $,
|
|
139
|
+
disabled: t,
|
|
140
|
+
rules: n,
|
|
141
|
+
render: ({ field: u, fieldState: w }) => {
|
|
142
|
+
const c = Y(u.value), g = !!w.error, p = g ? w.error?.message : e.helpText, D = (i) => {
|
|
143
|
+
if (t || i.isDisabled === !0 || C === "single" && c.includes(i.value))
|
|
144
|
+
return;
|
|
145
|
+
const a = new Set(c);
|
|
146
|
+
a.has(i.value) ? a.delete(i.value) : a.add(i.value), u.onChange(S(c, a, C));
|
|
147
|
+
}, I = () => {
|
|
148
|
+
if (C === "single") {
|
|
149
|
+
const a = d.find((k) => k.isDisabled !== !0);
|
|
150
|
+
u.onChange(a ? [a.value] : []);
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
const i = new Set(c);
|
|
154
|
+
for (const a of d)
|
|
155
|
+
a.isDisabled !== !0 && i.add(a.value);
|
|
156
|
+
u.onChange(S(c, i, "multi"));
|
|
157
|
+
};
|
|
158
|
+
return /* @__PURE__ */ T("div", { "data-testid": y(e.id), children: [
|
|
159
|
+
/* @__PURE__ */ l(
|
|
160
|
+
z,
|
|
161
|
+
{
|
|
162
|
+
collapsible: e.collapsible,
|
|
163
|
+
defaultCollapsed: e.defaultCollapsed,
|
|
164
|
+
title: e.label?.trim() ? e.label : void 0,
|
|
165
|
+
required: e.isRequired,
|
|
166
|
+
emptyLabel: "None selected",
|
|
167
|
+
searchLabel: e.label ? `Search ${e.label}` : "Search",
|
|
168
|
+
showBack: !1,
|
|
169
|
+
showToolbar: e.showToolbar,
|
|
170
|
+
view: h,
|
|
171
|
+
search: o,
|
|
172
|
+
sortDirection: f,
|
|
173
|
+
selectedCount: c.length,
|
|
174
|
+
allSelected: K(d, c),
|
|
175
|
+
previewCodes: Q(v, c),
|
|
176
|
+
onSearchChange: s,
|
|
177
|
+
onViewChange: L,
|
|
178
|
+
onToggleSort: () => A((i) => B(i)),
|
|
179
|
+
showBulkActions: C === "multi",
|
|
180
|
+
onSelectAll: I,
|
|
181
|
+
onClear: () => u.onChange([]),
|
|
182
|
+
children: /* @__PURE__ */ l(
|
|
183
|
+
"div",
|
|
184
|
+
{
|
|
185
|
+
"data-testid": `${y(e.id)}-options`,
|
|
186
|
+
className: h === "card" ? "grid w-full min-w-0 gap-3 overflow-y-auto" : "grid w-full min-w-0 gap-2 overflow-y-auto",
|
|
187
|
+
style: {
|
|
188
|
+
maxHeight: O,
|
|
189
|
+
gridTemplateColumns: X({
|
|
190
|
+
view: h,
|
|
191
|
+
cardColumnCount: e.cardColumnCount,
|
|
192
|
+
listColumnCount: e.listColumnCount,
|
|
193
|
+
itemMinWidth: V
|
|
194
|
+
})
|
|
195
|
+
},
|
|
196
|
+
children: d.map((i, a) => /* @__PURE__ */ l(
|
|
197
|
+
Z,
|
|
198
|
+
{
|
|
199
|
+
option: i,
|
|
200
|
+
index: a,
|
|
201
|
+
options: d,
|
|
202
|
+
selected: c.includes(i.value),
|
|
203
|
+
disabled: t || i.isDisabled === !0,
|
|
204
|
+
view: h,
|
|
205
|
+
indicatorStyle: e.indicatorStyle,
|
|
206
|
+
renderOption: M,
|
|
207
|
+
onToggle: () => D(i)
|
|
208
|
+
},
|
|
209
|
+
i.value
|
|
210
|
+
))
|
|
211
|
+
}
|
|
212
|
+
)
|
|
213
|
+
}
|
|
214
|
+
),
|
|
215
|
+
p ? /* @__PURE__ */ l("p", { className: N("mt-1 text-xs", g ? "text-destructive" : "text-content-tertiary"), children: p }) : null
|
|
216
|
+
] });
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
);
|
|
220
|
+
};
|
|
221
|
+
export {
|
|
222
|
+
se as VirtualizedListField
|
|
223
|
+
};
|
|
@@ -14,6 +14,7 @@ export { SelectField } from './Fields/SelectField';
|
|
|
14
14
|
export { CheckboxField } from './Fields/CheckboxField';
|
|
15
15
|
export { SwitchField } from './Fields/SwitchField';
|
|
16
16
|
export { ChipsField } from './Fields/ChipsField';
|
|
17
|
+
export { VirtualizedListField } from './Fields/VirtualizedListField';
|
|
17
18
|
export { DateInputField } from './Fields/DateInputField';
|
|
18
19
|
export { FillFormByPasteField } from './Fields/FillFormByPasteField';
|
|
19
20
|
export { FillFormByFileUploadField } from './Fields/FillFormByFileUploadField';
|
|
@@ -1,50 +1,52 @@
|
|
|
1
|
-
import { TextField as
|
|
1
|
+
import { TextField as o } from "./Fields/TextField.js";
|
|
2
2
|
import { TextAreaField as t } from "./Fields/TextAreaField.js";
|
|
3
3
|
import { ButtonsGroupField as d } from "./Fields/ButtonsGroupField.js";
|
|
4
4
|
import { RadioField as F } from "./Fields/RadioField.js";
|
|
5
5
|
import { DateRangeField as m } from "./Fields/DateRangeField.js";
|
|
6
6
|
import { WeekRangeField as a } from "./Fields/WeekRangePicker.js";
|
|
7
7
|
import { MonthRangeField as n } from "./Fields/MonthRangeField.js";
|
|
8
|
-
import { FileUploadField as
|
|
8
|
+
import { FileUploadField as u } from "./Fields/FileUploadField.js";
|
|
9
9
|
import { SelectField as R } from "./Fields/SelectField.js";
|
|
10
10
|
import { CheckboxField as g } from "./Fields/CheckboxField.js";
|
|
11
|
-
import { SwitchField as
|
|
12
|
-
import { ChipsField as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
11
|
+
import { SwitchField as s } from "./Fields/SwitchField.js";
|
|
12
|
+
import { ChipsField as T } from "./Fields/ChipsField.js";
|
|
13
|
+
import { VirtualizedListField as C } from "./Fields/VirtualizedListField.js";
|
|
14
|
+
import { DateInputField as W } from "./Fields/DateInputField.js";
|
|
15
|
+
import { FillFormByPasteField as y } from "./Fields/FillFormByPasteField.js";
|
|
16
|
+
import { FillFormByFileUploadField as U } from "./Fields/FillFormByFileUploadField.js";
|
|
17
|
+
import { NumericComboboxField as w } from "./Fields/NumericComboboxField.js";
|
|
17
18
|
import { MultiMonthPickerField as A } from "./Fields/MultiMonthPickerField.js";
|
|
18
19
|
import { MultiWeekPickerField as I } from "./Fields/MultiWeekPickerField.js";
|
|
19
|
-
import { TextFieldWithBackendValidation as
|
|
20
|
+
import { TextFieldWithBackendValidation as N } from "./Fields/TextFieldWithBackendValidation.js";
|
|
20
21
|
import { SliderRangeField as q } from "./Fields/SliderRangeField.js";
|
|
21
|
-
import { RichTextField as
|
|
22
|
-
import { YearPickerField as
|
|
23
|
-
import { MultiYearPickerField as
|
|
24
|
-
import { YearRangePickerField as
|
|
22
|
+
import { RichTextField as E } from "./Fields/RichTextField.js";
|
|
23
|
+
import { YearPickerField as J } from "./Fields/YearPickerField.js";
|
|
24
|
+
import { MultiYearPickerField as O } from "./Fields/MultiYearPickerField.js";
|
|
25
|
+
import { YearRangePickerField as X } from "./Fields/YearRangePickerField.js";
|
|
25
26
|
export {
|
|
26
27
|
d as ButtonsGroupField,
|
|
27
28
|
g as CheckboxField,
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
T as ChipsField,
|
|
30
|
+
W as DateInputField,
|
|
30
31
|
m as DateRangeField,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
u as FileUploadField,
|
|
33
|
+
U as FillFormByFileUploadField,
|
|
34
|
+
y as FillFormByPasteField,
|
|
34
35
|
n as MonthRangeField,
|
|
35
36
|
A as MultiMonthPickerField,
|
|
36
37
|
I as MultiWeekPickerField,
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
O as MultiYearPickerField,
|
|
39
|
+
w as NumericComboboxField,
|
|
39
40
|
F as RadioField,
|
|
40
|
-
|
|
41
|
+
E as RichTextField,
|
|
41
42
|
R as SelectField,
|
|
42
43
|
q as SliderRangeField,
|
|
43
|
-
|
|
44
|
+
s as SwitchField,
|
|
44
45
|
t as TextAreaField,
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
o as TextField,
|
|
47
|
+
N as TextFieldWithBackendValidation,
|
|
48
|
+
C as VirtualizedListField,
|
|
47
49
|
a as WeekRangeField,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
J as YearPickerField,
|
|
51
|
+
X as YearRangePickerField
|
|
50
52
|
};
|
|
@@ -36,7 +36,7 @@ export { FormFileUploadWrapper } from './components/FormFileUploadWrapper';
|
|
|
36
36
|
export { registerFieldType, getFieldComponent, hasRegisteredFieldType, listRegisteredFieldTypes, } from './registry/fieldRegistry';
|
|
37
37
|
export { registerDefaultFieldTypes } from './registry/defaultFieldRegistrations';
|
|
38
38
|
export { resolveFieldComponent, renderRegisteredField } from './registry/resolveFieldComponent';
|
|
39
|
-
export type { IFormConfig, FormFieldProps, FormType, FormStepConfig, FormStepStateMeta, ReactHooksFormStepActions, FieldVisibilityBase, ReactHooksFormProps, UseSelectOptionsProps, FormContext, FormValidationMeta, FormTransport, CustomFieldTypesMap, FetchSelectOptionsParams, PastedValuesValidationResult, ValidatePastedValuesParams, ValidateUploadedFileParams, UploadedFileValidationResult, ValidateTextFieldWithBackendParams, TextFieldBackendValidationResult, SupportedValuesMap, } from './types/reactHookForm.types';
|
|
39
|
+
export type { IFormConfig, FormFieldProps, FormType, FormStepConfig, FormStepStateMeta, ReactHooksFormStepActions, FieldVisibilityBase, ReactHooksFormProps, UseSelectOptionsProps, FormContext, OptionRenderParams, OptionRenderer, FormValidationMeta, FormTransport, CustomFieldTypesMap, FetchSelectOptionsParams, PastedValuesValidationResult, ValidatePastedValuesParams, ValidateUploadedFileParams, UploadedFileValidationResult, ValidateTextFieldWithBackendParams, TextFieldBackendValidationResult, SupportedValuesMap, } from './types/reactHookForm.types';
|
|
40
40
|
export type { IField } from './types/fields.types';
|
|
41
41
|
export type * from './types/fields.types';
|
|
42
42
|
export type * from './types/fieldsOutput.types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Register all
|
|
2
|
+
* Register all built-in field types. Safe to call multiple times — runs once.
|
|
3
3
|
*
|
|
4
4
|
* Consumers must call this at app startup (or use `registerFieldType` selectively)
|
|
5
5
|
* before rendering any `FieldRenderer` / `ReactHooksForm`.
|
|
@@ -2,11 +2,11 @@ import { registerFieldType as e } from "./fieldRegistry.js";
|
|
|
2
2
|
import { SelectField as r } from "../Fields/SelectField.js";
|
|
3
3
|
import { ButtonsGroupField as o } from "../Fields/ButtonsGroupField.js";
|
|
4
4
|
import { RadioField as t } from "../Fields/RadioField.js";
|
|
5
|
-
import { TextField as
|
|
6
|
-
import { TextAreaField as
|
|
5
|
+
import { TextField as l } from "../Fields/TextField.js";
|
|
6
|
+
import { TextAreaField as m } from "../Fields/TextAreaField.js";
|
|
7
7
|
import { DateRangeField as d } from "../Fields/DateRangeField.js";
|
|
8
|
-
import { DateInputField as
|
|
9
|
-
import { WeekRangeField as
|
|
8
|
+
import { DateInputField as a } from "../Fields/DateInputField.js";
|
|
9
|
+
import { WeekRangeField as p } from "../Fields/WeekRangePicker.js";
|
|
10
10
|
import { MonthRangeField as f } from "../Fields/MonthRangeField.js";
|
|
11
11
|
import { MultiWeekPickerField as F } from "../Fields/MultiWeekPickerField.js";
|
|
12
12
|
import { MultiMonthPickerField as _ } from "../Fields/MultiMonthPickerField.js";
|
|
@@ -14,21 +14,22 @@ import { FileUploadField as n } from "../Fields/FileUploadField.js";
|
|
|
14
14
|
import { FillFormByPasteField as c } from "../Fields/FillFormByPasteField.js";
|
|
15
15
|
import { FillFormByFileUploadField as u } from "../Fields/FillFormByFileUploadField.js";
|
|
16
16
|
import { ChipsField as k } from "../Fields/ChipsField.js";
|
|
17
|
+
import { VirtualizedListField as s } from "../Fields/VirtualizedListField.js";
|
|
17
18
|
import { TextFieldWithBackendValidation as b } from "../Fields/TextFieldWithBackendValidation.js";
|
|
18
19
|
import { SwitchField as g } from "../Fields/SwitchField.js";
|
|
19
20
|
import { CheckboxField as h } from "../Fields/CheckboxField.js";
|
|
20
|
-
import { LabelField as
|
|
21
|
-
import { DividerField as
|
|
22
|
-
import { DividerWithLabelField as
|
|
21
|
+
import { LabelField as x } from "../Fields/LabelField.js";
|
|
22
|
+
import { DividerField as y } from "../Fields/DividerField.js";
|
|
23
|
+
import { DividerWithLabelField as v } from "../Fields/DividerWithLabelField.js";
|
|
23
24
|
import { NumericComboboxField as w } from "../Fields/NumericComboboxField.js";
|
|
24
25
|
import { SliderRangeField as P } from "../Fields/SliderRangeField.js";
|
|
25
26
|
import { YearPickerField as R } from "../Fields/YearPickerField.js";
|
|
26
|
-
import { MultiYearPickerField as
|
|
27
|
-
import { YearRangePickerField as
|
|
27
|
+
import { MultiYearPickerField as D } from "../Fields/MultiYearPickerField.js";
|
|
28
|
+
import { YearRangePickerField as M } from "../Fields/YearRangePickerField.js";
|
|
28
29
|
let i = !1;
|
|
29
|
-
function
|
|
30
|
-
i || (i = !0, e("divider",
|
|
30
|
+
function oe() {
|
|
31
|
+
i || (i = !0, e("divider", y), e("divider_with_label", v), e("label", x), e("select", r), e("button_group", o), e("radio", t), e("text", l), e("numeric_combobox", w), e("text_area", m), e("date", a), e("date_range", d), e("week_range", p), e("multi_week_picker", F), e("month_range", f), e("multi_month_picker", _), e("file_upload", n), e("fill_form_by_paste", c), e("fill_form_by_file_upload", u), e("chips", k), e("virtualized_list", s), e("text_with_backend_validation", b), e("switch", g), e("checkbox", h), e("slider_range", P), e("year_picker", R), e("multi_year_picker", D), e("year_range", M));
|
|
31
32
|
}
|
|
32
33
|
export {
|
|
33
|
-
|
|
34
|
+
oe as registerDefaultFieldTypes
|
|
34
35
|
};
|
|
@@ -117,6 +117,11 @@ export type SelectField = BaseField & {
|
|
|
117
117
|
* When set, that resolver is used instead of apiConfig fetch.
|
|
118
118
|
*/
|
|
119
119
|
getSelectOptionsName?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Name of formContext.optionRenderers[name].
|
|
122
|
+
* Replaces the default option row content. Omit for the default label.
|
|
123
|
+
*/
|
|
124
|
+
optionRendererName?: string;
|
|
120
125
|
apiConfig?: {
|
|
121
126
|
apiEndpoint: string;
|
|
122
127
|
method: "GET" | "POST";
|
|
@@ -488,6 +493,48 @@ export type ChipsField = BaseField & {
|
|
|
488
493
|
/** When true in single mode, re-clicking the active chip clears the selection. */
|
|
489
494
|
allowDeselect?: boolean;
|
|
490
495
|
};
|
|
496
|
+
/**
|
|
497
|
+
* Controlled multi/single select rendered with the virtualized list.
|
|
498
|
+
* Form state is a JSON array of selected option values (`string[]`).
|
|
499
|
+
*/
|
|
500
|
+
export type VirtualizedListField = BaseField & {
|
|
501
|
+
fieldType: "virtualized_list";
|
|
502
|
+
options: Array<Option>;
|
|
503
|
+
/** `multi` stores every selected value. `single` stores at most one. Default: multi. */
|
|
504
|
+
selectionMode?: "single" | "multi";
|
|
505
|
+
/** Selected option values when the form first mounts. */
|
|
506
|
+
defaultSelectedValues?: string[];
|
|
507
|
+
/** Row height in pixels. Default: 44. */
|
|
508
|
+
estimateSize?: number;
|
|
509
|
+
/** Scroll viewport height in pixels. Default: 240. */
|
|
510
|
+
viewportHeight?: number;
|
|
511
|
+
/** Fold search and choices behind the label, with the selection summary on the header. */
|
|
512
|
+
collapsible?: boolean;
|
|
513
|
+
/** Start folded. Ignored unless `collapsible` is set. */
|
|
514
|
+
defaultCollapsed?: boolean;
|
|
515
|
+
/**
|
|
516
|
+
* Columns in card view. Omit for `auto-fill` at `itemMinWidth`.
|
|
517
|
+
*/
|
|
518
|
+
cardColumnCount?: number;
|
|
519
|
+
/**
|
|
520
|
+
* Columns in list view. Default: 1.
|
|
521
|
+
*/
|
|
522
|
+
listColumnCount?: number;
|
|
523
|
+
/** Minimum item width in pixels. Default: 180. */
|
|
524
|
+
itemMinWidth?: number;
|
|
525
|
+
/**
|
|
526
|
+
* Name of formContext.optionRenderers[name].
|
|
527
|
+
* Replaces the default option label inside the choice card. Omit for the default label.
|
|
528
|
+
*/
|
|
529
|
+
optionRendererName?: string;
|
|
530
|
+
/** Search, sort, view toggle, Select All, and Clear. Default: true. */
|
|
531
|
+
showToolbar?: boolean;
|
|
532
|
+
/**
|
|
533
|
+
* Selection mark on each option.
|
|
534
|
+
* Omit for the checkbox. `'radio'` is the round mark. `'none'` is the card highlight only.
|
|
535
|
+
*/
|
|
536
|
+
indicatorStyle?: "checkbox" | "radio" | "none";
|
|
537
|
+
};
|
|
491
538
|
export type DividerField = BaseField & {
|
|
492
539
|
fieldType: "divider";
|
|
493
540
|
className?: string;
|
|
@@ -549,6 +596,6 @@ export type RichTextField = BaseField & {
|
|
|
549
596
|
/** Minimum editor height in px. Default: 150 */
|
|
550
597
|
minHeight?: number;
|
|
551
598
|
};
|
|
552
|
-
export type IField = FileUploadField | ButtonsGroupField | SelectField | DateInputField | DateRangeField | WeekRangeField | MonthRangeField | MultiMonthPickerField | TextAreaField | RadioField | TextField | NumericComboboxField | CopyPasteField | FillFormByFileUploadField | TextFieldWithBackendValidation | ChipsField | DividerField | DividerWithLabelField | LabelField | SwitchField | CheckboxField | YearPickerField | MultiYearPickerField | YearRangePickerField | MultiWeekRangeField | SliderRangeField | RichTextField | ObjectFieldConfig | ArrayFieldConfig;
|
|
599
|
+
export type IField = FileUploadField | ButtonsGroupField | SelectField | DateInputField | DateRangeField | WeekRangeField | MonthRangeField | MultiMonthPickerField | TextAreaField | RadioField | TextField | NumericComboboxField | CopyPasteField | FillFormByFileUploadField | TextFieldWithBackendValidation | ChipsField | VirtualizedListField | DividerField | DividerWithLabelField | LabelField | SwitchField | CheckboxField | YearPickerField | MultiYearPickerField | YearRangePickerField | MultiWeekRangeField | SliderRangeField | RichTextField | ObjectFieldConfig | ArrayFieldConfig;
|
|
553
600
|
/** Discriminant string union for every built-in field type */
|
|
554
601
|
export type FieldType = IField["fieldType"];
|
|
@@ -23,6 +23,8 @@ export type MultiMonthPickerFieldOutput = MonthSelection[] | null | undefined;
|
|
|
23
23
|
/** Empty string is the unset default from getFieldDefaultValue */
|
|
24
24
|
export type NumericComboboxFieldOutput = number | "" | null | undefined;
|
|
25
25
|
export type ChipsFieldOutput = string | string[] | null | undefined;
|
|
26
|
+
/** Selected option values. Single mode still stores a one-item array. */
|
|
27
|
+
export type VirtualizedListFieldOutput = string[] | null | undefined;
|
|
26
28
|
export type SwitchFieldOutput = boolean | null | undefined;
|
|
27
29
|
export type CheckboxFieldOutput = boolean | null | undefined;
|
|
28
30
|
export type SliderRangeFieldOutput = number[] | null | undefined;
|
|
@@ -36,7 +38,7 @@ export type PresentationalFieldOutput = null | undefined;
|
|
|
36
38
|
* Union of all field output values (recursive for object / array nesting).
|
|
37
39
|
* Defined independently of FieldTypeToOutputMap to avoid circular map lookups.
|
|
38
40
|
*/
|
|
39
|
-
export type FieldOutputValue = FileUploadFieldOutput | ButtonsGroupFieldOutput | SelectFieldOutput | DateInputFieldOutput | DateRangeFieldOutput | WeekRangeFieldOutput | MultiWeekPickerFieldOutput | MonthRangeFieldOutput | MultiMonthPickerFieldOutput | TextAreaFieldOutput | RadioFieldOutput | TextFieldOutput | NumericComboboxFieldOutput | CopyPasteFieldOutput | FillFormByFileUploadFieldOutput | TextFieldWithBackendValidationOutput | ChipsFieldOutput | SwitchFieldOutput | CheckboxFieldOutput | SliderRangeFieldOutput | YearPickerFieldOutput | MultiYearPickerFieldOutput | YearRangePickerFieldOutput | RichTextFieldOutput | PresentationalFieldOutput | {
|
|
41
|
+
export type FieldOutputValue = FileUploadFieldOutput | ButtonsGroupFieldOutput | SelectFieldOutput | DateInputFieldOutput | DateRangeFieldOutput | WeekRangeFieldOutput | MultiWeekPickerFieldOutput | MonthRangeFieldOutput | MultiMonthPickerFieldOutput | TextAreaFieldOutput | RadioFieldOutput | TextFieldOutput | NumericComboboxFieldOutput | CopyPasteFieldOutput | FillFormByFileUploadFieldOutput | TextFieldWithBackendValidationOutput | ChipsFieldOutput | VirtualizedListFieldOutput | SwitchFieldOutput | CheckboxFieldOutput | SliderRangeFieldOutput | YearPickerFieldOutput | MultiYearPickerFieldOutput | YearRangePickerFieldOutput | RichTextFieldOutput | PresentationalFieldOutput | {
|
|
40
42
|
[key: string]: FieldOutputValue;
|
|
41
43
|
} | Array<{
|
|
42
44
|
[key: string]: FieldOutputValue;
|
|
@@ -62,6 +64,7 @@ export type FieldTypeToOutputMap = {
|
|
|
62
64
|
fill_form_by_file_upload: FillFormByFileUploadFieldOutput;
|
|
63
65
|
text_with_backend_validation: TextFieldWithBackendValidationOutput;
|
|
64
66
|
chips: ChipsFieldOutput;
|
|
67
|
+
virtualized_list: VirtualizedListFieldOutput;
|
|
65
68
|
switch: SwitchFieldOutput;
|
|
66
69
|
checkbox: CheckboxFieldOutput;
|
|
67
70
|
slider_range: SliderRangeFieldOutput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
1
|
+
import { ComponentType, ReactNode } from 'react';
|
|
2
2
|
import { FieldErrors, FormState, RegisterOptions, UseFormReturn } from 'react-hook-form';
|
|
3
3
|
import { Option } from '../../components/forms/select';
|
|
4
4
|
import { FieldVisibilityBase, FormStepConfig } from '../../form-engine';
|
|
@@ -46,6 +46,18 @@ export type FormContextValidator = (params: FormContextFieldChangeParams) => str
|
|
|
46
46
|
export type FormContextGetSelectOptions = (params: FormContextFieldChangeParams) => Option[] | Promise<Option[]>;
|
|
47
47
|
export type FormContextFunction = (params: FormContextFunctionParams) => unknown | Promise<unknown>;
|
|
48
48
|
export type FormContextOnFieldChange = (params: FormContextFieldChangeParams) => void;
|
|
49
|
+
/** Per-option render params — same shape for select menus and virtualized lists. */
|
|
50
|
+
export type OptionRenderParams = {
|
|
51
|
+
option: Option;
|
|
52
|
+
index: number;
|
|
53
|
+
options: readonly Option[];
|
|
54
|
+
selected: boolean;
|
|
55
|
+
disabled: boolean;
|
|
56
|
+
/** Set by virtualized_list. Select menu rows omit it. */
|
|
57
|
+
view?: 'card' | 'list';
|
|
58
|
+
};
|
|
59
|
+
/** Named option content renderer, looked up via field.optionRendererName. */
|
|
60
|
+
export type OptionRenderer = (params: OptionRenderParams) => ReactNode;
|
|
49
61
|
export type FetchSelectOptionsParams = {
|
|
50
62
|
fieldId: string;
|
|
51
63
|
apiConfig: NonNullable<SelectField['apiConfig']>;
|
|
@@ -136,6 +148,11 @@ export interface FormContext {
|
|
|
136
148
|
getSelectOptions?: Record<string, FormContextGetSelectOptions>;
|
|
137
149
|
/** Named handlers — referenced via BaseField.handlerName (on change + specialized validate) */
|
|
138
150
|
functions?: Record<string, FormContextFunction>;
|
|
151
|
+
/**
|
|
152
|
+
* Named option content renderers — referenced via optionRendererName
|
|
153
|
+
* on select and virtualized_list fields.
|
|
154
|
+
*/
|
|
155
|
+
optionRenderers?: Record<string, OptionRenderer>;
|
|
139
156
|
/** Called after any field value changes */
|
|
140
157
|
onFieldChange?: FormContextOnFieldChange;
|
|
141
158
|
/** Host-provided network transport (axios, fetch, etc.) — not implemented by Impact Nova */
|
|
@@ -30,7 +30,7 @@ function u(e) {
|
|
|
30
30
|
const t = e.min ?? 0;
|
|
31
31
|
return e.range ? [t, e.max ?? 100] : [t];
|
|
32
32
|
}
|
|
33
|
-
return e.fieldType === "year_picker" ? e.defaultValue != null ? { year: e.defaultValue } : null : e.fieldType === "multi_year_picker" ? e.defaultValue?.map((t) => ({ year: t })) ?? null : e.fieldType === "year_range" && e.defaultRange ? { from: { year: e.defaultRange.start }, to: { year: e.defaultRange.end } } : e.fieldType === "date" ? "" : e.fieldType === "select" ? [] : e.fieldType === "week_range" && e.defaultRange ? {
|
|
33
|
+
return e.fieldType === "year_picker" ? e.defaultValue != null ? { year: e.defaultValue } : null : e.fieldType === "multi_year_picker" ? e.defaultValue?.map((t) => ({ year: t })) ?? null : e.fieldType === "year_range" && e.defaultRange ? { from: { year: e.defaultRange.start }, to: { year: e.defaultRange.end } } : e.fieldType === "date" ? "" : e.fieldType === "select" ? [] : e.fieldType === "virtualized_list" ? e.defaultSelectedValues ?? [] : e.fieldType === "week_range" && e.defaultRange ? {
|
|
34
34
|
start: e.defaultRange.start || null,
|
|
35
35
|
end: e.defaultRange.end || null
|
|
36
36
|
} : null;
|
|
@@ -115,6 +115,12 @@ export interface NestedListMessages {
|
|
|
115
115
|
releaseToDrop: string;
|
|
116
116
|
dragHere: string;
|
|
117
117
|
}
|
|
118
|
+
export interface ScenarioComparisonMessages {
|
|
119
|
+
select: string;
|
|
120
|
+
selected: string;
|
|
121
|
+
optionCount: string;
|
|
122
|
+
contribution: string;
|
|
123
|
+
}
|
|
118
124
|
export interface DataTableMessages {
|
|
119
125
|
frozenColumns: string;
|
|
120
126
|
scrollableColumns: string;
|
|
@@ -171,6 +177,15 @@ export interface DataTableMessages {
|
|
|
171
177
|
savedViewsDeleteConfirmTitle: string;
|
|
172
178
|
savedViewsDeleteConfirmDescription: string;
|
|
173
179
|
savedViewsDeleteConfirmButton: string;
|
|
180
|
+
/** Live region after Alt+Arrow or drop reorder on `variant="list"`. Use {{position}}. */
|
|
181
|
+
listMovedToPosition: string;
|
|
182
|
+
}
|
|
183
|
+
export interface FindBarMessages {
|
|
184
|
+
find: string;
|
|
185
|
+
previousMatch: string;
|
|
186
|
+
nextMatch: string;
|
|
187
|
+
closeFind: string;
|
|
188
|
+
noResults: string;
|
|
174
189
|
}
|
|
175
190
|
export interface AriaMessages {
|
|
176
191
|
close: string;
|
|
@@ -314,10 +329,37 @@ export interface IrisChatMessages {
|
|
|
314
329
|
attachImage: string;
|
|
315
330
|
mic: string;
|
|
316
331
|
listening: string;
|
|
332
|
+
listeningHint: string;
|
|
333
|
+
speechRecordingTitle: string;
|
|
334
|
+
speechRecordingHint: string;
|
|
335
|
+
speechRecordingWaiting: string;
|
|
336
|
+
speechStopRecording: string;
|
|
337
|
+
speechUnsupported: string;
|
|
338
|
+
speechPermissionDenied: string;
|
|
339
|
+
speechNoSpeech: string;
|
|
340
|
+
speechNetwork: string;
|
|
341
|
+
speechError: string;
|
|
342
|
+
speechEmpty: string;
|
|
317
343
|
model: string;
|
|
318
344
|
newChat: string;
|
|
319
345
|
minimize: string;
|
|
320
346
|
expand: string;
|
|
347
|
+
expandPrompt: string;
|
|
348
|
+
collapsePrompt: string;
|
|
349
|
+
smaller: string;
|
|
350
|
+
larger: string;
|
|
351
|
+
snapMoveResize: string;
|
|
352
|
+
snapLeftHalf: string;
|
|
353
|
+
snapRightHalf: string;
|
|
354
|
+
snapTopHalf: string;
|
|
355
|
+
snapBottomHalf: string;
|
|
356
|
+
snapFill: string;
|
|
357
|
+
snapDock: string;
|
|
358
|
+
snapBottomRight: string;
|
|
359
|
+
snapBottomLeft: string;
|
|
360
|
+
snapTopRight: string;
|
|
361
|
+
snapTopLeft: string;
|
|
362
|
+
resize: string;
|
|
321
363
|
back: string;
|
|
322
364
|
filter: string;
|
|
323
365
|
filterType: string;
|
|
@@ -433,13 +475,44 @@ export interface GlobeMapMessages {
|
|
|
433
475
|
trendingNow: string;
|
|
434
476
|
slideLabel: string;
|
|
435
477
|
}
|
|
478
|
+
export interface HeatmapGridMessages {
|
|
479
|
+
gridLabel: string;
|
|
480
|
+
rowHeaderLabel: string;
|
|
481
|
+
loadingMore: string;
|
|
482
|
+
}
|
|
483
|
+
export interface StereoScatterMessages {
|
|
484
|
+
chartLabel: string;
|
|
485
|
+
legend: string;
|
|
486
|
+
hideCluster: string;
|
|
487
|
+
showCluster: string;
|
|
488
|
+
storeCount: string;
|
|
489
|
+
toolbar: string;
|
|
490
|
+
viewIso: string;
|
|
491
|
+
viewFront: string;
|
|
492
|
+
viewTop: string;
|
|
493
|
+
viewSide: string;
|
|
494
|
+
zoomIn: string;
|
|
495
|
+
zoomOut: string;
|
|
496
|
+
resetView: string;
|
|
497
|
+
autoRotate: string;
|
|
498
|
+
towardViewer: string;
|
|
499
|
+
awayFromViewer: string;
|
|
500
|
+
clusterAverage: string;
|
|
501
|
+
inspectCluster: string;
|
|
502
|
+
versusAverage: string;
|
|
503
|
+
interactionHint: string;
|
|
504
|
+
clearFocus: string;
|
|
505
|
+
webglUnavailable: string;
|
|
506
|
+
}
|
|
436
507
|
export interface ImpactNovaMessages {
|
|
437
508
|
calendar: CalendarMessages;
|
|
438
509
|
datePicker: DatePickerMessages;
|
|
439
510
|
filter: FilterMessages;
|
|
440
511
|
select: SelectMessages;
|
|
441
512
|
nestedList: NestedListMessages;
|
|
513
|
+
scenarioComparison: ScenarioComparisonMessages;
|
|
442
514
|
dataTable: DataTableMessages;
|
|
515
|
+
findBar: FindBarMessages;
|
|
443
516
|
aria: AriaMessages;
|
|
444
517
|
prompt: PromptMessages;
|
|
445
518
|
fileUpload: FileUploadMessages;
|
|
@@ -456,6 +529,8 @@ export interface ImpactNovaMessages {
|
|
|
456
529
|
irisChat: IrisChatMessages;
|
|
457
530
|
hexTilemap: HexTilemapMessages;
|
|
458
531
|
globeMap: GlobeMapMessages;
|
|
532
|
+
stereoScatter: StereoScatterMessages;
|
|
533
|
+
heatmapGrid: HeatmapGridMessages;
|
|
459
534
|
}
|
|
460
535
|
/** Default English messages used when no provider or partial override */
|
|
461
536
|
export declare const defaultMessages: ImpactNovaMessages;
|