impact-nova 3.0.0-alpha.0 → 3.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/index.js +7 -0
- package/dist/_virtual/index2.js +7 -0
- package/dist/_virtual/index3.js +4 -0
- package/dist/_virtual/utilities.js +4 -0
- package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +5 -0
- package/dist/components/data/ag-grid-react/cell-renderers/cell-renderer-utils.js +12 -10
- package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +56 -42
- package/dist/components/data/ag-grid-react/cell-renderers/editors/select-cell-editor.js +48 -45
- package/dist/components/data/ag-grid-react/cell-renderers/list-select-display-renderer.js +31 -33
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.d.ts +8 -0
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +57 -42
- package/dist/components/data/ag-grid-react/cell-renderers/types.d.ts +4 -0
- 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/header-search-input.js +203 -199
- package/dist/components/data/ag-grid-react/index.d.ts +1 -1
- package/dist/components/data/ag-grid-react/index.js +115 -111
- 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-display/chart/chart-scatter3d.d.ts +39 -0
- package/dist/components/data-display/chart/chart-scatter3d.js +180 -0
- package/dist/components/data-display/chart/chart.js +125 -112
- package/dist/components/data-display/chart/chart.utils.js +122 -92
- package/dist/components/data-display/stereo-scatter/index.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/index.js +10 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.d.ts +41 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-frame.js +178 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.d.ts +14 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-theme.js +29 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.d.ts +23 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine-wedges.js +80 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine.d.ts +120 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-engine.js +519 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-math.d.ts +64 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-math.js +129 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-model.d.ts +37 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-model.js +71 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.d.ts +33 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-context.js +19 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.d.ts +4 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-key.js +19 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-legend.js +75 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-scene.js +149 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.d.ts +13 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-toolbar.js +93 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.d.ts +2 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-tooltip.js +62 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.d.ts +3 -0
- package/dist/components/data-display/stereo-scatter/internals/stereo-scatter-viewport.js +41 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.d.ts +12 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.js +107 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.stories-data.d.ts +11 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.types.d.ts +69 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.d.ts +13 -0
- package/dist/components/data-display/stereo-scatter/stereo-scatter.variants.js +42 -0
- package/dist/components/feedback/tooltip/button-icon-tooltip.d.ts +6 -1
- package/dist/components/feedback/tooltip/button-icon-tooltip.js +22 -17
- package/dist/components/feedback/tooltip/use-overflow-tooltip.js +44 -36
- 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 +40 -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 +99 -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 +266 -238
- 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 +31 -0
- package/dist/components/flows/iris-chat/iris-chat-frame.js +79 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +1 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.js +28 -15
- 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 +4 -0
- package/dist/components/flows/iris-chat/iris-chat-snap-presets.js +63 -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 +289 -231
- package/dist/components/flows/iris-chat/iris-chat-window-chrome.d.ts +30 -0
- package/dist/components/flows/iris-chat/iris-chat-window-chrome.js +34 -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 +46 -23
- 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 +167 -0
- package/dist/components/forms/choice-card/choice-card-percent.js +82 -51
- package/dist/components/forms/choice-card/choice-card.d.ts +1 -0
- package/dist/components/forms/choice-card/choice-card.js +196 -199
- package/dist/components/forms/choice-card/choice-card.variants.js +3 -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 +6 -6
- 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 +76 -84
- 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 +92 -91
- package/dist/components/primitives/stepper/stepper.types.d.ts +2 -0
- 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 +45 -0
- package/dist/i18n/defaultMessages.js +58 -14
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/locales/de.js +44 -0
- package/dist/i18n/locales/es.js +44 -0
- package/dist/i18n/locales/hi.js +44 -0
- package/dist/i18n/locales/kn.js +44 -0
- package/dist/impact-nova-components.css +195 -8
- package/dist/impact-nova.css +1 -1
- package/dist/index.js +356 -352
- package/dist/lib/alphabetical-sort.d.ts +3 -0
- package/dist/lib/alphabetical-sort.js +13 -0
- package/dist/lib/overflow/is-text-overflowing.js +24 -6
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +85 -0
- package/dist/node_modules/@ungap/structured-clone/esm/index.js +11 -0
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +110 -0
- package/dist/node_modules/@ungap/structured-clone/esm/types.js +13 -0
- package/dist/node_modules/bail/index.js +7 -0
- package/dist/node_modules/ccount/index.js +12 -0
- package/dist/node_modules/comma-separated-tokens/index.js +9 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.js +10 -0
- package/dist/node_modules/devlop/lib/default.js +8 -0
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +7 -0
- package/dist/node_modules/extend/index.js +43 -0
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +302 -0
- package/dist/node_modules/hast-util-whitespace/lib/index.js +10 -0
- package/dist/node_modules/html-url-attributes/lib/index.js +26 -0
- package/dist/node_modules/inline-style-parser/cjs/index.js +93 -0
- package/dist/node_modules/is-plain-obj/index.js +9 -0
- package/dist/node_modules/longest-streak/index.js +12 -0
- package/dist/node_modules/markdown-table/index.js +75 -0
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +78 -0
- package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +8 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +632 -0
- package/dist/node_modules/mdast-util-gfm/lib/index.js +29 -0
- package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +130 -0
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +95 -0
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +54 -0
- package/dist/node_modules/mdast-util-gfm-table/lib/index.js +135 -0
- package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +58 -0
- package/dist/node_modules/mdast-util-phrasing/lib/index.js +30 -0
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +90 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +8 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +15 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +28 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +9 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +58 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +19 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +15 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +42 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +21 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +7 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +21 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +32 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +8 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +104 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +44 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +34 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +35 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +10 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +29 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +33 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +44 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +22 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +29 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +52 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +22 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +35 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +7 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +9 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +18 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +9 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +13 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +15 -0
- package/dist/node_modules/mdast-util-to-string/lib/index.js +29 -0
- package/dist/node_modules/micromark/lib/constructs.js +85 -0
- package/dist/node_modules/micromark/lib/create-tokenizer.js +225 -0
- package/dist/node_modules/micromark/lib/initialize/content.js +37 -0
- package/dist/node_modules/micromark/lib/initialize/document.js +128 -0
- package/dist/node_modules/micromark/lib/initialize/flow.js +33 -0
- package/dist/node_modules/micromark/lib/initialize/text.js +98 -0
- package/dist/node_modules/micromark/lib/parse.js +32 -0
- package/dist/node_modules/micromark/lib/postprocess.js +9 -0
- package/dist/node_modules/micromark/lib/preprocess.js +44 -0
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +87 -0
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +43 -0
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +18 -0
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +42 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +30 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +82 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +37 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +45 -0
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +50 -0
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +80 -0
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +50 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +132 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +102 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +154 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +23 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +20 -0
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +14 -0
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +90 -0
- package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +59 -0
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +25 -0
- package/dist/node_modules/micromark-extension-gfm/index.js +18 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +193 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +192 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +67 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +75 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +23 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +149 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +45 -0
- package/dist/node_modules/micromark-factory-destination/index.js +31 -0
- package/dist/node_modules/micromark-factory-label/index.js +28 -0
- package/dist/node_modules/micromark-factory-space/index.js +29 -0
- package/dist/node_modules/micromark-factory-title/index.js +26 -0
- package/dist/node_modules/micromark-factory-whitespace/index.js +12 -0
- package/dist/node_modules/micromark-util-character/index.js +39 -0
- package/dist/node_modules/micromark-util-chunked/index.js +16 -0
- package/dist/node_modules/micromark-util-classify-character/index.js +10 -0
- package/dist/node_modules/micromark-util-combine-extensions/index.js +36 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +16 -0
- package/dist/node_modules/micromark-util-decode-string/index.js +18 -0
- package/dist/node_modules/micromark-util-edit-map/index.js +82 -0
- package/dist/node_modules/micromark-util-html-tag-name/index.js +68 -0
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +6 -0
- package/dist/node_modules/micromark-util-resolve-all/index.js +12 -0
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +23 -0
- package/dist/node_modules/micromark-util-subtokenize/index.js +55 -0
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +175 -0
- package/dist/node_modules/property-information/index.js +12 -0
- package/dist/node_modules/property-information/lib/aria.js +61 -0
- package/dist/node_modules/property-information/lib/find.js +33 -0
- package/dist/node_modules/property-information/lib/hast-to-react.js +22 -0
- package/dist/node_modules/property-information/lib/html.js +378 -0
- package/dist/node_modules/property-information/lib/normalize.js +6 -0
- package/dist/node_modules/property-information/lib/svg.js +568 -0
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
- package/dist/node_modules/property-information/lib/util/create.js +19 -0
- package/dist/node_modules/property-information/lib/util/defined-info.js +36 -0
- package/dist/node_modules/property-information/lib/util/info.js +28 -0
- package/dist/node_modules/property-information/lib/util/merge.js +10 -0
- package/dist/node_modules/property-information/lib/util/schema.js +21 -0
- package/dist/node_modules/property-information/lib/util/types.js +14 -0
- package/dist/node_modules/property-information/lib/xlink.js +19 -0
- package/dist/node_modules/property-information/lib/xml.js +11 -0
- package/dist/node_modules/property-information/lib/xmlns.js +11 -0
- package/dist/node_modules/react-markdown/lib/index.js +102 -0
- package/dist/node_modules/remark-gfm/lib/index.js +13 -0
- package/dist/node_modules/remark-parse/lib/index.js +19 -0
- package/dist/node_modules/remark-rehype/lib/index.js +18 -0
- package/dist/node_modules/space-separated-tokens/index.js +6 -0
- package/dist/node_modules/style-to-js/cjs/index.js +20 -0
- package/dist/node_modules/style-to-js/cjs/utilities.js +19 -0
- package/dist/node_modules/style-to-object/cjs/index.js +28 -0
- package/dist/node_modules/trim-lines/index.js +28 -0
- package/dist/node_modules/trough/lib/index.js +60 -0
- package/dist/node_modules/unified/lib/callable-instance.js +25 -0
- package/dist/node_modules/unified/lib/index.js +529 -0
- package/dist/node_modules/unist-util-is/lib/index.js +91 -0
- package/dist/node_modules/unist-util-position/lib/index.js +23 -0
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +15 -0
- package/dist/node_modules/unist-util-visit/lib/index.js +16 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +6 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +56 -0
- package/dist/node_modules/vfile/lib/index.js +406 -0
- package/dist/node_modules/vfile/lib/minpath.browser.js +112 -0
- package/dist/node_modules/vfile/lib/minproc.browser.js +7 -0
- package/dist/node_modules/vfile/lib/minurl.browser.js +41 -0
- package/dist/node_modules/vfile/lib/minurl.shared.js +7 -0
- package/dist/node_modules/vfile-message/lib/index.js +91 -0
- package/package.json +8 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AgGridWrapperProps } from './ag-grid.types';
|
|
2
2
|
import { subscribeGridApiEvent, subscribeGridApiEvents } from './grid-api-event-subscription';
|
|
3
3
|
export { subscribeGridApiEvent, subscribeGridApiEvents };
|
|
4
|
-
export declare function AgGridWrapper<TData>({ children, defaultColDef, defaultColGroupDef, columnDefs, valueFormatters, onGridReady: userOnGridReady, onGridPreDestroyed: userOnGridPreDestroyed, onFilterChanged: userOnFilterChanged, onSelectionChanged: userOnSelectionChanged, onModelUpdated: userOnModelUpdated, ensureDomOrder, autoSizeStrategy, tooltipShowMode, tooltipShowDelay, tooltipHideDelay, tooltipInteraction, themeOverride, variant, ...restProps }: AgGridWrapperProps<TData> & {
|
|
4
|
+
export declare function AgGridWrapper<TData>({ children, defaultColDef, defaultColGroupDef, columnDefs, valueFormatters, onGridReady: userOnGridReady, onGridPreDestroyed: userOnGridPreDestroyed, onFilterChanged: userOnFilterChanged, onSelectionChanged: userOnSelectionChanged, onModelUpdated: userOnModelUpdated, ensureDomOrder, autoSizeStrategy, tooltipShowMode, tooltipShowDelay, tooltipHideDelay, tooltipInteraction, themeOverride, variant, rowLoading, className, ...restProps }: AgGridWrapperProps<TData> & {
|
|
5
5
|
className?: string;
|
|
6
6
|
}): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export { useAgGridTruncationTooltip } from './use-ag-grid-truncation-tooltip';
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { lazy as
|
|
3
|
-
import { ModuleRegistry as
|
|
4
|
-
import { AllEnterpriseModule as
|
|
5
|
-
import { AgGridReact as
|
|
6
|
-
import { customAgGridTheme as
|
|
7
|
-
import { AG_GRID_LIST_ROW_HEIGHT_PX as
|
|
8
|
-
import { syncAgGridThemeMode as
|
|
9
|
-
import { CustomHeader as
|
|
10
|
-
import { CustomHeaderGroup as
|
|
11
|
-
import { mergeColumnGroupDefsWithDefault as
|
|
12
|
-
import { DefaultTextCellRenderer as
|
|
13
|
-
import { GridHeaderContext as
|
|
14
|
-
import { convertToAgGridFilterModel as
|
|
15
|
-
import { AG_GRID_VALUE_FORMATTERS as
|
|
16
|
-
import { useGridAutoSizeStrategyOnResize as
|
|
17
|
-
import { subscribeGridApiEvent as
|
|
1
|
+
import { jsxs as Ee, jsx as S } from "react/jsx-runtime";
|
|
2
|
+
import { lazy as Ge, useRef as O, useState as _, useId as Re, useEffect as B, useCallback as m, useMemo as h, Suspense as we } from "react";
|
|
3
|
+
import { ModuleRegistry as Me, AllCommunityModule as Te } from "ag-grid-community";
|
|
4
|
+
import { AllEnterpriseModule as De } from "ag-grid-enterprise";
|
|
5
|
+
import { AgGridReact as Ie } from "ag-grid-react";
|
|
6
|
+
import { customAgGridTheme as ke } from "./theme.js";
|
|
7
|
+
import { AG_GRID_LIST_ROW_HEIGHT_PX as je, customAgGridListTheme as He } from "./ag-grid-list.js";
|
|
8
|
+
import { syncAgGridThemeMode as Pe } from "./sync-ag-grid-theme-mode.js";
|
|
9
|
+
import { CustomHeader as Le } from "./headers/custom-header.js";
|
|
10
|
+
import { CustomHeaderGroup as Q } from "./headers/custom-inner-header-group.js";
|
|
11
|
+
import { mergeColumnGroupDefsWithDefault as Oe } from "./merge-column-group-defs.js";
|
|
12
|
+
import { DefaultTextCellRenderer as _e } from "./cell-renderers/default-text-cell-renderer.js";
|
|
13
|
+
import { GridHeaderContext as Ne } from "./headers/context/grid-header-context.js";
|
|
14
|
+
import { convertToAgGridFilterModel as Ve, getMultiFilterIndices as We, convertFromAgGridFilterModel as $e } from "./headers/utils/filter-utils.js";
|
|
15
|
+
import { AG_GRID_VALUE_FORMATTERS as Ke } from "./value-formatters.js";
|
|
16
|
+
import { useGridAutoSizeStrategyOnResize as Ue } from "./useGridAutoSizeStrategyOnResize.js";
|
|
17
|
+
import { subscribeGridApiEvent as Ct, subscribeGridApiEvents as vt } from "./grid-api-event-subscription.js";
|
|
18
18
|
import { notifyColumnIndicatorSync as R } from "./notify-column-indicator-sync.js";
|
|
19
|
-
import { setActiveSearchColumnId as N, clearHeaderSearchActiveState as
|
|
19
|
+
import { setActiveSearchColumnId as N, clearHeaderSearchActiveState as qe } from "./headers/header-search-active-state.js";
|
|
20
20
|
/* empty css */
|
|
21
|
-
import { useAgGridTruncationTooltip as
|
|
22
|
-
import { isAgGridHeaderLabelTooltipOverflowing as
|
|
23
|
-
const
|
|
21
|
+
import { useAgGridTruncationTooltip as bt } from "./use-ag-grid-truncation-tooltip.js";
|
|
22
|
+
import { isAgGridHeaderLabelTooltipOverflowing as Ft, isAgGridTextOverflowing as St } from "./ag-grid-tooltip-overflow.js";
|
|
23
|
+
const ze = Ge(
|
|
24
24
|
() => import("./headers/advanced-filter/advanced-filter-dialog.js").then((c) => ({
|
|
25
25
|
default: c.AdvancedFilterDialog
|
|
26
26
|
}))
|
|
27
27
|
);
|
|
28
|
-
|
|
29
|
-
const F = "", V = "",
|
|
28
|
+
Me.registerModules([Te, De]);
|
|
29
|
+
const F = "", V = "", Y = (c) => {
|
|
30
30
|
if (!c) return;
|
|
31
31
|
const n = c.cellRendererParams?.splits;
|
|
32
32
|
if (Array.isArray(n) && n.length > 0) return n;
|
|
33
33
|
const s = c.cellEditorParams?.splits;
|
|
34
34
|
if (Array.isArray(s) && s.length > 0) return s;
|
|
35
|
-
},
|
|
35
|
+
}, Z = (c, n) => {
|
|
36
36
|
const s = [];
|
|
37
37
|
for (const b of n) {
|
|
38
38
|
const C = b?.field?.split(".").pop();
|
|
@@ -57,13 +57,13 @@ const F = "", V = "", Q = (c) => {
|
|
|
57
57
|
s.push("");
|
|
58
58
|
}
|
|
59
59
|
return s;
|
|
60
|
-
},
|
|
60
|
+
}, ee = (c) => {
|
|
61
61
|
if (typeof navigator < "u" && navigator.clipboard?.writeText) {
|
|
62
|
-
navigator.clipboard.writeText(c).catch(() =>
|
|
62
|
+
navigator.clipboard.writeText(c).catch(() => te(c));
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
65
|
-
|
|
66
|
-
},
|
|
65
|
+
te(c);
|
|
66
|
+
}, te = (c) => {
|
|
67
67
|
if (typeof document > "u") return;
|
|
68
68
|
const n = document.createElement("textarea");
|
|
69
69
|
n.value = c, n.setAttribute("readonly", ""), n.style.position = "fixed", n.style.top = "0", n.style.left = "0", n.style.opacity = "0", n.style.pointerEvents = "none", document.body.appendChild(n);
|
|
@@ -73,7 +73,7 @@ const F = "", V = "", Q = (c) => {
|
|
|
73
73
|
document.body.removeChild(n);
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
|
-
function
|
|
76
|
+
function ft({
|
|
77
77
|
children: c,
|
|
78
78
|
defaultColDef: n,
|
|
79
79
|
defaultColGroupDef: s,
|
|
@@ -84,26 +84,28 @@ function pt({
|
|
|
84
84
|
onFilterChanged: x,
|
|
85
85
|
onSelectionChanged: v,
|
|
86
86
|
onModelUpdated: A,
|
|
87
|
-
ensureDomOrder:
|
|
88
|
-
autoSizeStrategy:
|
|
89
|
-
tooltipShowMode:
|
|
87
|
+
ensureDomOrder: w = !1,
|
|
88
|
+
autoSizeStrategy: M,
|
|
89
|
+
tooltipShowMode: T = "whenTruncated",
|
|
90
90
|
tooltipShowDelay: D = 500,
|
|
91
|
-
tooltipHideDelay:
|
|
92
|
-
tooltipInteraction:
|
|
93
|
-
themeOverride:
|
|
91
|
+
tooltipHideDelay: re = 5e3,
|
|
92
|
+
tooltipInteraction: ne = !0,
|
|
93
|
+
themeOverride: oe,
|
|
94
94
|
variant: W = "table",
|
|
95
|
+
rowLoading: le = !1,
|
|
96
|
+
className: $,
|
|
95
97
|
...f
|
|
96
98
|
}) {
|
|
97
|
-
const a = O(null), I = O(null), [K, U] = _(null),
|
|
98
|
-
y.current =
|
|
99
|
+
const a = O(null), I = O(null), [K, U] = _(null), q = Re(), y = O(q);
|
|
100
|
+
y.current = q, Ue(K, I, M), B(() => {
|
|
99
101
|
const e = document.documentElement, t = () => {
|
|
100
|
-
|
|
102
|
+
Pe(e.classList.contains("dark") ? "dark" : "light", e);
|
|
101
103
|
};
|
|
102
104
|
t();
|
|
103
105
|
const o = new MutationObserver(t);
|
|
104
106
|
return o.observe(e, { attributes: !0, attributeFilter: ["class"] }), () => o.disconnect();
|
|
105
107
|
}, []);
|
|
106
|
-
const [
|
|
108
|
+
const [ie, z] = _(!1), [se, X] = _(null), ce = m(() => [], []), ae = h(() => ({
|
|
107
109
|
numericColumn: {
|
|
108
110
|
cellClass: "ag-right-aligned-cell",
|
|
109
111
|
headerClass: "ag-right-aligned-header",
|
|
@@ -137,17 +139,17 @@ function pt({
|
|
|
137
139
|
a.current.setGridOption("context", { ...e, activeSearchColumnId: null }), N(y.current, null), R(a.current);
|
|
138
140
|
},
|
|
139
141
|
openAdvancedFilter: (e) => {
|
|
140
|
-
|
|
142
|
+
X(e || null), z(!0);
|
|
141
143
|
},
|
|
142
144
|
closeAdvancedFilter: () => {
|
|
143
|
-
|
|
145
|
+
z(!1), X(null);
|
|
144
146
|
},
|
|
145
147
|
applyAdvancedFilter: (e) => {
|
|
146
148
|
if (!a.current) return;
|
|
147
|
-
const t =
|
|
149
|
+
const t = Ve(e);
|
|
148
150
|
a.current.setFilterModel(t), a.current.onFilterChanged(), R(a.current);
|
|
149
151
|
}
|
|
150
|
-
}), []),
|
|
152
|
+
}), []), ue = m((e) => {
|
|
151
153
|
a.current = e.api, U(e.api);
|
|
152
154
|
const t = e.api.getGridOption("context") || {};
|
|
153
155
|
e.api.setGridOption("context", {
|
|
@@ -155,28 +157,28 @@ function pt({
|
|
|
155
157
|
activeSearchColumnId: null,
|
|
156
158
|
headerSearchScopeId: y.current
|
|
157
159
|
}), N(y.current, null), u && u(e);
|
|
158
|
-
}, [u]),
|
|
160
|
+
}, [u]), de = m(
|
|
159
161
|
(e) => {
|
|
160
|
-
|
|
162
|
+
qe(y.current), a.current = null, U(null), d?.(e);
|
|
161
163
|
},
|
|
162
164
|
[d]
|
|
163
|
-
),
|
|
165
|
+
), pe = m(
|
|
164
166
|
(e) => {
|
|
165
167
|
R(e.api), x?.(e);
|
|
166
168
|
},
|
|
167
169
|
[x]
|
|
168
|
-
),
|
|
170
|
+
), me = m(
|
|
169
171
|
(e) => {
|
|
170
172
|
v?.(e);
|
|
171
173
|
},
|
|
172
174
|
[v]
|
|
173
|
-
),
|
|
175
|
+
), fe = m(
|
|
174
176
|
(e) => {
|
|
175
177
|
A?.(e);
|
|
176
178
|
},
|
|
177
179
|
[A]
|
|
178
180
|
);
|
|
179
|
-
|
|
181
|
+
B(() => {
|
|
180
182
|
const e = I.current;
|
|
181
183
|
if (!e) return;
|
|
182
184
|
const t = (o) => {
|
|
@@ -190,12 +192,12 @@ function pt({
|
|
|
190
192
|
};
|
|
191
193
|
return e.addEventListener("keydown", t, !0), () => e.removeEventListener("keydown", t, !0);
|
|
192
194
|
}, []);
|
|
193
|
-
const
|
|
194
|
-
headerComponent:
|
|
195
|
+
const ge = h(() => ({
|
|
196
|
+
headerComponent: Le,
|
|
195
197
|
// Default cell renderer wraps text in a span so display:flex centering
|
|
196
198
|
// and text-overflow:ellipsis both work (ellipsis doesn't work on
|
|
197
199
|
// anonymous flex text nodes, but works on flex child elements).
|
|
198
|
-
cellRenderer:
|
|
200
|
+
cellRenderer: _e,
|
|
199
201
|
...n,
|
|
200
202
|
suppressHeaderKeyboardEvent: (e) => {
|
|
201
203
|
const { event: t } = e, o = t.target;
|
|
@@ -220,24 +222,24 @@ function pt({
|
|
|
220
222
|
...s?.headerGroupComponentParams,
|
|
221
223
|
innerHeaderGroupComponent: s?.headerGroupComponentParams?.innerHeaderGroupComponent ?? "CustomInnerHeaderGroup"
|
|
222
224
|
}
|
|
223
|
-
}), [s]),
|
|
224
|
-
() =>
|
|
225
|
+
}), [s]), he = h(
|
|
226
|
+
() => Oe(b ?? void 0, j),
|
|
225
227
|
[b, j]
|
|
226
|
-
),
|
|
227
|
-
...
|
|
228
|
+
), Ce = h(() => ({
|
|
229
|
+
...Ke,
|
|
228
230
|
// Always available - value formatters
|
|
229
|
-
CustomInnerHeaderGroup:
|
|
230
|
-
CustomHeaderGroup:
|
|
231
|
+
CustomInnerHeaderGroup: Q,
|
|
232
|
+
CustomHeaderGroup: Q,
|
|
231
233
|
...f.components,
|
|
232
234
|
// User components override
|
|
233
235
|
...C
|
|
234
236
|
// Optional custom formatters override defaults
|
|
235
|
-
}), [C, f.components]),
|
|
237
|
+
}), [C, f.components]), ve = m((e) => {
|
|
236
238
|
const t = e.value;
|
|
237
239
|
if (t != null && typeof t == "object") {
|
|
238
|
-
const i =
|
|
240
|
+
const i = Y(e.column?.getColDef());
|
|
239
241
|
if (i && i.length > 0) {
|
|
240
|
-
const l =
|
|
242
|
+
const l = Z(t, i);
|
|
241
243
|
if (i.length === 1) {
|
|
242
244
|
const P = i[0]?.field?.split(".").pop(), g = P ? t[P] : void 0;
|
|
243
245
|
return g && typeof g == "object" && "value" in g ? g.value ?? "" : l[0];
|
|
@@ -248,7 +250,7 @@ function pt({
|
|
|
248
250
|
return r.length === 0 ? "" : r.length === 1 ? r[0] : r.join(F);
|
|
249
251
|
}
|
|
250
252
|
return t == null ? t : e.column?.getColDef()?.useValueFormatterForExport === !0 ? e.formatValue?.(t) ?? t : t;
|
|
251
|
-
}, []),
|
|
253
|
+
}, []), ye = m((e) => {
|
|
252
254
|
if (typeof e.value == "string") {
|
|
253
255
|
const t = e.value.trim();
|
|
254
256
|
if (t.startsWith("{") || t.startsWith("["))
|
|
@@ -259,10 +261,10 @@ function pt({
|
|
|
259
261
|
}
|
|
260
262
|
}
|
|
261
263
|
return e.value;
|
|
262
|
-
}, []),
|
|
264
|
+
}, []), be = m((e) => {
|
|
263
265
|
const t = e?.data ?? "";
|
|
264
266
|
if (!t.includes(F) && !t.includes(V)) {
|
|
265
|
-
|
|
267
|
+
ee(t);
|
|
266
268
|
return;
|
|
267
269
|
}
|
|
268
270
|
const o = [], i = t.split(`
|
|
@@ -279,20 +281,20 @@ function pt({
|
|
|
279
281
|
continue;
|
|
280
282
|
}
|
|
281
283
|
for (let p = 0; p < L; p++) {
|
|
282
|
-
const
|
|
283
|
-
o.push(
|
|
284
|
+
const Ae = g.map((G) => !G.isSplit && G.slots.length === 1 ? G.slots[0] : G.slots[p] ?? "");
|
|
285
|
+
o.push(Ae.join(" "));
|
|
284
286
|
}
|
|
285
287
|
}
|
|
286
|
-
|
|
288
|
+
ee(o.join(`
|
|
287
289
|
`));
|
|
288
290
|
}, []), E = m((e) => {
|
|
289
291
|
const t = e.value;
|
|
290
292
|
if (t == null) return "";
|
|
291
293
|
if (typeof t != "object")
|
|
292
294
|
return e.column?.getColDef()?.useValueFormatterForExport === !0 ? String(e.formatValue?.(t) ?? t) : String(t);
|
|
293
|
-
const o =
|
|
295
|
+
const o = Y(e.column?.getColDef());
|
|
294
296
|
if (o && o.length > 0) {
|
|
295
|
-
const r =
|
|
297
|
+
const r = Z(t, o);
|
|
296
298
|
return o.length === 1 ? r[0] : r.join(`
|
|
297
299
|
`);
|
|
298
300
|
}
|
|
@@ -308,69 +310,71 @@ function pt({
|
|
|
308
310
|
}
|
|
309
311
|
return i.length === 0 ? "" : i.length === 1 ? i[0] : i.join(`
|
|
310
312
|
`);
|
|
311
|
-
}, []),
|
|
313
|
+
}, []), xe = h(() => ({
|
|
312
314
|
processCellCallback: E,
|
|
313
315
|
...f.defaultCsvExportParams ?? {}
|
|
314
|
-
}), [E, f.defaultCsvExportParams]),
|
|
316
|
+
}), [E, f.defaultCsvExportParams]), Fe = h(() => ({
|
|
315
317
|
processCellCallback: E,
|
|
316
318
|
...f.defaultExcelExportParams ?? {}
|
|
317
|
-
}), [E, f.defaultExcelExportParams]), H = W === "list",
|
|
318
|
-
return /* @__PURE__ */
|
|
319
|
+
}), [E, f.defaultExcelExportParams]), H = W === "list", J = f.rowHeight ?? je, Se = oe ?? (H ? He : ke);
|
|
320
|
+
return /* @__PURE__ */ Ee(Ne.Provider, { value: k, children: [
|
|
319
321
|
/* @__PURE__ */ S(
|
|
320
322
|
"div",
|
|
321
323
|
{
|
|
322
324
|
ref: I,
|
|
323
325
|
"data-component": "ag-grid-react",
|
|
324
326
|
"data-variant": W,
|
|
327
|
+
"data-row-loading": le ? "true" : "false",
|
|
328
|
+
className: `table-with-loader${$ ? ` ${$}` : ""}`,
|
|
325
329
|
style: {
|
|
326
330
|
width: "100%",
|
|
327
331
|
height: "100%",
|
|
328
|
-
...H ? { "--ag-row-height": `${
|
|
332
|
+
...H ? { "--ag-row-height": `${J}px` } : null
|
|
329
333
|
},
|
|
330
334
|
children: /* @__PURE__ */ S(
|
|
331
|
-
|
|
335
|
+
Ie,
|
|
332
336
|
{
|
|
333
|
-
theme:
|
|
334
|
-
defaultColDef:
|
|
335
|
-
columnDefs:
|
|
337
|
+
theme: Se,
|
|
338
|
+
defaultColDef: ge,
|
|
339
|
+
columnDefs: he,
|
|
336
340
|
cellSelection: !0,
|
|
337
341
|
defaultColGroupDef: j,
|
|
338
|
-
onGridReady:
|
|
339
|
-
onGridPreDestroyed:
|
|
340
|
-
onFilterChanged:
|
|
341
|
-
onSelectionChanged:
|
|
342
|
-
onModelUpdated:
|
|
343
|
-
tooltipShowMode:
|
|
342
|
+
onGridReady: ue,
|
|
343
|
+
onGridPreDestroyed: de,
|
|
344
|
+
onFilterChanged: pe,
|
|
345
|
+
onSelectionChanged: me,
|
|
346
|
+
onModelUpdated: fe,
|
|
347
|
+
tooltipShowMode: T,
|
|
344
348
|
tooltipShowDelay: D,
|
|
345
|
-
tooltipHideDelay:
|
|
346
|
-
tooltipInteraction:
|
|
347
|
-
processCellForClipboard:
|
|
348
|
-
processCellFromClipboard:
|
|
349
|
-
sendToClipboard:
|
|
350
|
-
ensureDomOrder:
|
|
349
|
+
tooltipHideDelay: re,
|
|
350
|
+
tooltipInteraction: ne,
|
|
351
|
+
processCellForClipboard: ve,
|
|
352
|
+
processCellFromClipboard: ye,
|
|
353
|
+
sendToClipboard: be,
|
|
354
|
+
ensureDomOrder: w,
|
|
351
355
|
suppressHeaderFocus: !1,
|
|
352
356
|
suppressFocusAfterRefresh: !0,
|
|
353
357
|
suppressGroupRowsSticky: !0,
|
|
354
358
|
hidePaddedHeaderRows: !0,
|
|
355
359
|
suppressServerSideFullWidthLoadingRow: !0,
|
|
356
|
-
columnTypes:
|
|
357
|
-
autoSizeStrategy:
|
|
360
|
+
columnTypes: ae,
|
|
361
|
+
autoSizeStrategy: M,
|
|
358
362
|
...f,
|
|
359
|
-
...H ? { rowHeight:
|
|
360
|
-
components:
|
|
361
|
-
defaultCsvExportParams:
|
|
362
|
-
defaultExcelExportParams:
|
|
363
|
-
getMainMenuItems:
|
|
363
|
+
...H ? { rowHeight: J } : null,
|
|
364
|
+
components: Ce,
|
|
365
|
+
defaultCsvExportParams: xe,
|
|
366
|
+
defaultExcelExportParams: Fe,
|
|
367
|
+
getMainMenuItems: ce
|
|
364
368
|
}
|
|
365
369
|
)
|
|
366
370
|
}
|
|
367
371
|
),
|
|
368
372
|
c,
|
|
369
373
|
/* @__PURE__ */ S(
|
|
370
|
-
|
|
374
|
+
Xe,
|
|
371
375
|
{
|
|
372
|
-
isOpen:
|
|
373
|
-
columnId:
|
|
376
|
+
isOpen: ie,
|
|
377
|
+
columnId: se,
|
|
374
378
|
gridApi: K,
|
|
375
379
|
onClose: k.closeAdvancedFilter,
|
|
376
380
|
onApply: k.applyAdvancedFilter
|
|
@@ -378,7 +382,7 @@ function pt({
|
|
|
378
382
|
)
|
|
379
383
|
] });
|
|
380
384
|
}
|
|
381
|
-
function
|
|
385
|
+
function Xe({
|
|
382
386
|
isOpen: c,
|
|
383
387
|
columnId: n,
|
|
384
388
|
gridApi: s,
|
|
@@ -388,16 +392,16 @@ function qe({
|
|
|
388
392
|
if (!c || !n || !s) return null;
|
|
389
393
|
const u = s.getColumn(n);
|
|
390
394
|
if (!u) return null;
|
|
391
|
-
const d = u.getColDef(), x = d.headerComponentParams, v =
|
|
392
|
-
return /* @__PURE__ */ S(
|
|
393
|
-
|
|
395
|
+
const d = u.getColDef(), x = d.headerComponentParams, v = We(d), A = v.text !== -1 || v.number !== -1 || v.date !== -1, w = v.set !== -1, T = d.filter === "agMultiColumnFilter" && (A || w) ? "multi" : d.filter === "agNumberColumnFilter" ? "number" : d.filter === "agDateColumnFilter" ? "date" : d.filter === "agSetColumnFilter" || x?.selectOptions ? "select" : "text", D = $e(s.getFilterModel());
|
|
396
|
+
return /* @__PURE__ */ S(we, { fallback: null, children: /* @__PURE__ */ S(
|
|
397
|
+
ze,
|
|
394
398
|
{
|
|
395
399
|
isOpen: c,
|
|
396
400
|
onClose: b,
|
|
397
401
|
onApply: C,
|
|
398
402
|
columnId: n,
|
|
399
403
|
columnLabel: d.headerName || n,
|
|
400
|
-
columnType:
|
|
404
|
+
columnType: T,
|
|
401
405
|
selectOptions: x?.selectOptions,
|
|
402
406
|
isMultiSelect: x?.isMultiSelect,
|
|
403
407
|
initialModel: D,
|
|
@@ -406,10 +410,10 @@ function qe({
|
|
|
406
410
|
) });
|
|
407
411
|
}
|
|
408
412
|
export {
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
413
|
+
ft as AgGridWrapper,
|
|
414
|
+
Ft as isAgGridHeaderLabelTooltipOverflowing,
|
|
415
|
+
St as isAgGridTextOverflowing,
|
|
416
|
+
Ct as subscribeGridApiEvent,
|
|
417
|
+
vt as subscribeGridApiEvents,
|
|
418
|
+
bt as useAgGridTruncationTooltip
|
|
415
419
|
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { ProductCardMetricsToggle, type ProductCardMetricsToggleProps, } from './product-card-metrics-toggle';
|
|
2
|
+
export { ProductCardIrisInsightTrigger, type ProductCardIrisInsightTriggerProps, } from './product-card-iris-insight-trigger';
|
|
1
3
|
export { ExpandableListItem, type ExpandableListItemProps, } from './expandable-list-item-preset';
|
|
2
4
|
export { ExpandableListItemRoot, ExpandableListItemRow, ExpandableListItemCheckbox, ExpandableListItemTrigger, ExpandableListItemTitle, ExpandableListItemDescription, ExpandableListItemMedia, ExpandableListItemHeader, ExpandableListItemContent, ExpandableListItemFooter, type ExpandableListItemRootProps, type ExpandableListItemCheckboxProps, } from './expandable-list-item-parts';
|
|
3
5
|
export { ExpandableListItemMetrics, type ExpandableListItemMetricsProps } from './expandable-list-item-metrics';
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { ProductCardMetricsToggle as a } from "./product-card-metrics-toggle.js";
|
|
2
|
+
import { ProductCardIrisInsightTrigger as i } from "./product-card-iris-insight-trigger.js";
|
|
3
|
+
import { ExpandableListItem as p } from "./expandable-list-item-preset.js";
|
|
4
|
+
import { ExpandableListItemCheckbox as d, ExpandableListItemContent as m, ExpandableListItemDescription as s, ExpandableListItemFooter as n, ExpandableListItemHeader as b, ExpandableListItemMedia as l, ExpandableListItemRoot as I, ExpandableListItemRow as E, ExpandableListItemTitle as L, ExpandableListItemTrigger as g } from "./expandable-list-item-parts.js";
|
|
5
|
+
import { ExpandableListItemMetrics as f } from "./expandable-list-item-metrics.js";
|
|
6
|
+
import { ExpandableListItemAttributes as T } from "./expandable-list-item-attributes.js";
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
p as ExpandableListItem,
|
|
9
|
+
T as ExpandableListItemAttributes,
|
|
10
|
+
d as ExpandableListItemCheckbox,
|
|
11
|
+
m as ExpandableListItemContent,
|
|
12
|
+
s as ExpandableListItemDescription,
|
|
11
13
|
n as ExpandableListItemFooter,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
b as ExpandableListItemHeader,
|
|
15
|
+
l as ExpandableListItemMedia,
|
|
16
|
+
f as ExpandableListItemMetrics,
|
|
17
|
+
I as ExpandableListItemRoot,
|
|
18
|
+
E as ExpandableListItemRow,
|
|
19
|
+
L as ExpandableListItemTitle,
|
|
20
|
+
g as ExpandableListItemTrigger,
|
|
21
|
+
i as ProductCardIrisInsightTrigger,
|
|
22
|
+
a as ProductCardMetricsToggle
|
|
19
23
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ItemCatalogRecord } from './virtualized-responsive-grid.catalog';
|
|
3
|
+
export type ProductCardHeroProps = {
|
|
4
|
+
item: ItemCatalogRecord;
|
|
5
|
+
selected: boolean;
|
|
6
|
+
thumbnail: ReactElement;
|
|
7
|
+
onFlip: () => void;
|
|
8
|
+
onSelect: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare function ProductCardHero(props: ProductCardHeroProps): ReactElement;
|
|
11
|
+
export declare function ProductCardHeaderCheckbox(props: {
|
|
12
|
+
item: ItemCatalogRecord;
|
|
13
|
+
selected: boolean;
|
|
14
|
+
onSelect: () => void;
|
|
15
|
+
}): ReactElement;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ProductCardMetricsTogglePlacement } from './product-card-metrics-toggle';
|
|
3
|
+
export type ProductCardIrisInsightTriggerProps = {
|
|
4
|
+
styleId: string;
|
|
5
|
+
title: string;
|
|
6
|
+
placement?: ProductCardMetricsTogglePlacement;
|
|
7
|
+
};
|
|
8
|
+
export declare function ProductCardIrisInsightTrigger(props: ProductCardIrisInsightTriggerProps): ReactElement;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { useState as o, useRef as c, useEffect as l } from "react";
|
|
3
|
+
import { IrisInsight as d } from "../../primitives/iris/iris.js";
|
|
4
|
+
const m = 2200;
|
|
5
|
+
function u(t) {
|
|
6
|
+
return t === "inline" ? "relative shrink-0" : "absolute right-2 top-2";
|
|
7
|
+
}
|
|
8
|
+
function I(t) {
|
|
9
|
+
const [s, n] = o("idle"), e = c(void 0);
|
|
10
|
+
l(
|
|
11
|
+
() => () => {
|
|
12
|
+
e.current && clearTimeout(e.current);
|
|
13
|
+
},
|
|
14
|
+
[]
|
|
15
|
+
);
|
|
16
|
+
const r = u(t.placement);
|
|
17
|
+
return /* @__PURE__ */ i("div", { className: r, children: /* @__PURE__ */ i(
|
|
18
|
+
d,
|
|
19
|
+
{
|
|
20
|
+
status: s,
|
|
21
|
+
iconSize: "sm",
|
|
22
|
+
onTriggerClick: () => {
|
|
23
|
+
n("loading"), e.current = setTimeout(() => {
|
|
24
|
+
e.current = void 0, n("ready");
|
|
25
|
+
}, m);
|
|
26
|
+
},
|
|
27
|
+
onAskInChat: () => {
|
|
28
|
+
},
|
|
29
|
+
children: /* @__PURE__ */ a("p", { children: [
|
|
30
|
+
/* @__PURE__ */ i("span", { className: "font-bold", children: t.title }),
|
|
31
|
+
" is tracking",
|
|
32
|
+
" ",
|
|
33
|
+
/* @__PURE__ */ i("span", { className: "font-bold", children: t.styleId }),
|
|
34
|
+
" against plan this period."
|
|
35
|
+
] })
|
|
36
|
+
}
|
|
37
|
+
) });
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
I as ProductCardIrisInsightTrigger
|
|
41
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
export type ProductCardMetricsTogglePlacement = "hero" | "inline";
|
|
3
|
+
export type ProductCardMetricsToggleProps = {
|
|
4
|
+
isFlipped: boolean;
|
|
5
|
+
showMetricsLabel: string;
|
|
6
|
+
showPhotoLabel: string;
|
|
7
|
+
actionAriaLabel: string;
|
|
8
|
+
onShowMetrics: () => void;
|
|
9
|
+
onShowPhoto: () => void;
|
|
10
|
+
icon: ReactNode;
|
|
11
|
+
placement?: ProductCardMetricsTogglePlacement;
|
|
12
|
+
};
|
|
13
|
+
export declare function ProductCardMetricsToggle(props: ProductCardMetricsToggleProps): ReactElement;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { ButtonIconTooltip as l } from "../../feedback/tooltip/button-icon-tooltip.js";
|
|
3
|
+
import { Button as r } from "../../primitives/button/button.js";
|
|
4
|
+
function d(t) {
|
|
5
|
+
const o = t.isFlipped ? t.showPhotoLabel : t.showMetricsLabel, n = (i) => {
|
|
6
|
+
if (i.stopPropagation(), t.isFlipped) {
|
|
7
|
+
t.onShowPhoto();
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
t.onShowMetrics();
|
|
11
|
+
}, a = t.placement === "inline" ? "relative z-20 shrink-0" : "absolute right-2 top-2 z-20";
|
|
12
|
+
return /* @__PURE__ */ e("div", { className: a, onClick: (i) => i.stopPropagation(), children: /* @__PURE__ */ e(l, { label: o, children: /* @__PURE__ */ e(
|
|
13
|
+
r,
|
|
14
|
+
{
|
|
15
|
+
type: "button",
|
|
16
|
+
size: "iconSm",
|
|
17
|
+
variant: "tertiary",
|
|
18
|
+
"aria-pressed": t.isFlipped,
|
|
19
|
+
"aria-label": t.actionAriaLabel,
|
|
20
|
+
onClick: n,
|
|
21
|
+
children: t.icon
|
|
22
|
+
}
|
|
23
|
+
) }) });
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
d as ProductCardMetricsToggle
|
|
27
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { AlphabeticalSortDirection } from '../../../lib/alphabetical-sort';
|
|
3
|
+
export type SkuPickerView = "card" | "list";
|
|
4
|
+
export type SkuPickerGridProps = {
|
|
5
|
+
/** Fold the toolbar and choices behind the title row. */
|
|
6
|
+
collapsible?: boolean;
|
|
7
|
+
/** Start folded. Ignored unless `collapsible` is set. */
|
|
8
|
+
defaultCollapsed?: boolean;
|
|
9
|
+
/** Title in the header. Default: SKU. */
|
|
10
|
+
title?: string;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare function SkuPickerChrome(props: {
|
|
14
|
+
view: SkuPickerView;
|
|
15
|
+
search: string;
|
|
16
|
+
sortDirection: AlphabeticalSortDirection;
|
|
17
|
+
selectedCount: number;
|
|
18
|
+
/** True when every choice Select All would touch is already selected. */
|
|
19
|
+
allSelected?: boolean;
|
|
20
|
+
previewCodes: string[];
|
|
21
|
+
onSearchChange: (value: string) => void;
|
|
22
|
+
onViewChange: (view: SkuPickerView) => void;
|
|
23
|
+
onToggleSort: () => void;
|
|
24
|
+
onSelectAll: () => void;
|
|
25
|
+
onClear: () => void;
|
|
26
|
+
/** Multi-select shows Select All and Clear. Single-select omits them. */
|
|
27
|
+
showBulkActions?: boolean;
|
|
28
|
+
/** Search, sort, view toggle, and bulk actions. Default: true. */
|
|
29
|
+
showToolbar?: boolean;
|
|
30
|
+
children: ReactNode;
|
|
31
|
+
footer?: ReactNode;
|
|
32
|
+
collapsible?: boolean;
|
|
33
|
+
defaultCollapsed?: boolean;
|
|
34
|
+
title?: string;
|
|
35
|
+
required?: boolean;
|
|
36
|
+
emptyLabel?: string;
|
|
37
|
+
searchLabel?: string;
|
|
38
|
+
/** Story picker keeps the back control. Form fields omit it. */
|
|
39
|
+
showBack?: boolean;
|
|
40
|
+
}): import("react/jsx-runtime").JSX.Element;
|