@aceshooting/lyra-ui 16.0.0 → 18.0.0
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/CHANGELOG.md +758 -0
- package/README.md +2 -2
- package/custom-elements.json +1 -1
- package/dist/cli/migration-contract.json +1 -1
- package/dist/components/agent-tools/browser-frame/browser-frame.class.d.ts +3 -3
- package/dist/components/agent-tools/browser-frame/browser-frame.class.js +2 -2
- package/dist/components/agent-tools/compare-panel/compare-panel.class.d.ts +2 -2
- package/dist/components/agent-tools/compare-panel/compare-panel.class.js +3 -3
- package/dist/components/agent-tools/confirm-bar/confirm-bar.class.d.ts +37 -13
- package/dist/components/agent-tools/confirm-bar/confirm-bar.class.js +2 -2
- package/dist/components/agent-tools/task-list/task-list.class.js +2 -2
- package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.d.ts +4 -0
- package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.js +2 -2
- package/dist/components/agent-tools/tool-param-form/tool-param-form.class.d.ts +3 -3
- package/dist/components/agent-tools/tool-param-form/tool-param-form.class.js +1 -1
- package/dist/components/charts/chart/chart.class.d.ts +117 -17
- package/dist/components/charts/chart/chart.class.js +3 -3
- package/dist/components/charts/chart/histogram-bin.d.ts +5 -1
- package/dist/components/charts/chart/histogram-bin.js +1 -1
- package/dist/components/charts/chart/lite-chart.class.d.ts +9 -0
- package/dist/components/conversation/code-block/code-block.styles.js +1 -1
- package/dist/components/conversation/message-actions/message-actions.styles.js +1 -1
- package/dist/components/conversation/model-select/model-select.class.d.ts +13 -4
- package/dist/components/conversation/model-select/model-select.class.js +2 -1
- package/dist/components/conversation/model-select/model-select.styles.js +1 -1
- package/dist/components/conversation/streaming-text/streaming-text-base.class.d.ts +40 -2
- package/dist/components/conversation/streaming-text/streaming-text-base.class.js +2 -2
- package/dist/components/conversation/streaming-text/streaming-text-core.class.d.ts +27 -3
- package/dist/components/conversation/streaming-text/streaming-text-core.class.js +11 -0
- package/dist/components/conversation/streaming-text/streaming-text.class.d.ts +31 -3
- package/dist/components/conversation/streaming-text/streaming-text.class.js +11 -0
- package/dist/components/conversation/suggestion-chips/suggestion-chips.class.d.ts +30 -2
- package/dist/components/conversation/suggestion-chips/suggestion-chips.class.js +4 -3
- package/dist/components/conversation/suggestion-chips/suggestion-chips.styles.js +1 -1
- package/dist/components/conversation/thread-list/thread-list.class.js +1 -1
- package/dist/components/conversation/transcript-feed/transcript-feed.class.js +1 -1
- package/dist/components/conversation/usage-badge/usage-badge-overlay-runtime.js +1 -1
- package/dist/components/conversation/usage-badge/usage-badge.class.d.ts +4 -0
- package/dist/components/conversation/voice-picker/voice-picker.class.d.ts +16 -4
- package/dist/components/conversation/voice-picker/voice-picker.class.js +2 -1
- package/dist/components/conversation/voice-picker/voice-picker.styles.js +1 -1
- package/dist/components/data/context-meter/context-meter.class.d.ts +23 -4
- package/dist/components/data/context-meter/context-meter.class.js +10 -7
- package/dist/components/data/context-meter/context-meter.styles.js +1 -1
- package/dist/components/data/data-grid/data-grid.class.d.ts +5 -2
- package/dist/components/data/data-grid/data-grid.class.js +1 -1
- package/dist/components/data/flow-canvas/flow-canvas.class.d.ts +32 -5
- package/dist/components/data/flow-canvas/flow-canvas.class.js +3 -1
- package/dist/components/data/flow-canvas/flow-canvas.styles.js +1 -1
- package/dist/components/data/flow-canvas/flow-model.js +1 -1
- package/dist/components/data/flow-canvas/flow-types.d.ts +10 -1
- package/dist/components/data/gauge/gauge.class.d.ts +15 -2
- package/dist/components/data/gauge/gauge.class.js +20 -20
- package/dist/components/data/gauge/gauge.styles.js +1 -1
- package/dist/components/data/graph-query-builder/graph-query-builder.class.d.ts +14 -5
- package/dist/components/data/graph-query-builder/graph-query-builder.class.js +2 -2
- package/dist/components/data/sequence-strip/sequence-strip.class.d.ts +28 -2
- package/dist/components/data/sequence-strip/sequence-strip.class.js +3 -2
- package/dist/components/data/sequence-strip/sequence-strip.styles.js +1 -1
- package/dist/components/data/table/table.class.d.ts +155 -30
- package/dist/components/data/table/table.class.js +6 -4
- package/dist/components/data/table/table.styles.js +1 -1
- package/dist/components/data/timeline/timeline-item.class.d.ts +9 -1
- package/dist/components/data/timeline/timeline-item.class.js +2 -2
- package/dist/components/data/word-cloud/word-cloud.class.js +1 -1
- package/dist/components/data/word-cloud/word-cloud.styles.js +1 -1
- package/dist/components/forms/button/button.class.d.ts +30 -1
- package/dist/components/forms/button/button.class.js +2 -2
- package/dist/components/forms/checkbox/checkbox.class.d.ts +8 -6
- package/dist/components/forms/checkbox/checkbox.class.js +2 -2
- package/dist/components/forms/checkbox-group/checkbox-group.class.d.ts +7 -5
- package/dist/components/forms/checkbox-group/checkbox-group.class.js +1 -1
- package/dist/components/forms/color-picker/color-picker.class.d.ts +16 -2
- package/dist/components/forms/color-picker/color-picker.class.js +2 -2
- package/dist/components/forms/color-picker/color-picker.styles.js +1 -1
- package/dist/components/forms/combobox/combobox.class.d.ts +52 -7
- package/dist/components/forms/combobox/combobox.class.js +2 -2
- package/dist/components/forms/combobox/combobox.styles.js +1 -1
- package/dist/components/forms/date-picker/date-input.class.d.ts +4 -0
- package/dist/components/forms/date-picker/date-input.class.js +1 -1
- package/dist/components/forms/icon-button/icon-button.class.d.ts +20 -3
- package/dist/components/forms/icon-button/icon-button.class.js +1 -1
- package/dist/components/forms/icon-button/icon-button.styles.js +1 -1
- package/dist/components/forms/input/input.class.d.ts +5 -2
- package/dist/components/forms/input/input.class.js +1 -1
- package/dist/components/forms/input/time-input.class.d.ts +4 -0
- package/dist/components/forms/input/time-input.class.js +1 -1
- package/dist/components/forms/locale-picker/locale-picker.class.d.ts +11 -5
- package/dist/components/forms/locale-picker/locale-picker.class.js +1 -1
- package/dist/components/forms/otp-input/otp-input.class.d.ts +7 -2
- package/dist/components/forms/otp-input/otp-input.class.js +2 -2
- package/dist/components/forms/radio/radio-button.class.d.ts +2 -1
- package/dist/components/forms/radio/radio-group.class.d.ts +9 -4
- package/dist/components/forms/radio/radio-group.class.js +1 -1
- package/dist/components/forms/radio/radio.class.d.ts +13 -7
- package/dist/components/forms/radio/radio.class.js +1 -1
- package/dist/components/forms/rubric-form/rubric-form.class.d.ts +16 -6
- package/dist/components/forms/rubric-form/rubric-form.class.js +2 -2
- package/dist/components/forms/select/select.class.d.ts +50 -13
- package/dist/components/forms/select/select.class.js +2 -2
- package/dist/components/forms/slider/slider.class.d.ts +4 -2
- package/dist/components/forms/slider/slider.class.js +1 -1
- package/dist/components/forms/switch/switch.class.d.ts +8 -6
- package/dist/components/forms/switch/switch.class.js +1 -1
- package/dist/components/forms/textarea/textarea.class.d.ts +5 -3
- package/dist/components/forms/textarea/textarea.class.js +1 -1
- package/dist/components/forms/time-range/time-range.class.d.ts +12 -7
- package/dist/components/forms/time-range/time-range.class.js +1 -1
- package/dist/components/forms/time-range/time-range.styles.js +1 -1
- package/dist/components/forms/token-input/token-input.class.d.ts +6 -4
- package/dist/components/forms/token-input/token-input.class.js +1 -1
- package/dist/components/layout/app-rail/app-rail-item.class.d.ts +109 -4
- package/dist/components/layout/app-rail/app-rail-item.class.js +34 -29
- package/dist/components/layout/app-rail/app-rail-item.styles.js +1 -1
- package/dist/components/layout/app-rail/app-rail.class.d.ts +25 -3
- package/dist/components/layout/app-rail/app-rail.styles.js +1 -1
- package/dist/components/layout/app-rail-group/app-rail-group.class.d.ts +2 -2
- package/dist/components/layout/app-rail-group/app-rail-group.class.js +2 -2
- package/dist/components/layout/carousel/carousel.class.d.ts +1 -1
- package/dist/components/layout/carousel/carousel.class.js +1 -1
- package/dist/components/layout/details/accordion.class.d.ts +2 -2
- package/dist/components/layout/details/accordion.class.js +2 -2
- package/dist/components/layout/filter-bar/filter-bar-register.d.ts +1 -0
- package/dist/components/layout/filter-bar/filter-bar-register.js +1 -0
- package/dist/components/layout/filter-bar/filter-bar.class.d.ts +153 -16
- package/dist/components/layout/filter-bar/filter-bar.class.js +8 -5
- package/dist/components/layout/menu/menu-item.class.d.ts +3 -3
- package/dist/components/layout/menu/menu-item.class.js +3 -3
- package/dist/components/layout/menu/menu.class.d.ts +5 -1
- package/dist/components/layout/menu/menu.class.js +2 -2
- package/dist/components/layout/reorder-list/reorder-item.styles.js +1 -1
- package/dist/components/layout/reorder-list/reorder-list.class.js +1 -1
- package/dist/components/layout/virtual-list/virtual-list.class.d.ts +107 -2
- package/dist/components/layout/virtual-list/virtual-list.class.js +12 -7
- package/dist/components/media/attachment-trigger/attachment-trigger.styles.js +1 -1
- package/dist/components/media/avatar-group/avatar-group.class.d.ts +12 -1
- package/dist/components/media/avatar-group/avatar-group.class.js +2 -2
- package/dist/components/media/drop-zone/drop-zone.class.d.ts +32 -11
- package/dist/components/media/drop-zone/drop-zone.class.js +2 -2
- package/dist/components/media/file-input/file-input.class.d.ts +40 -19
- package/dist/components/media/file-input/file-input.class.js +2 -2
- package/dist/components/media/map/map.class.d.ts +138 -12
- package/dist/components/media/map/map.class.js +25 -20
- package/dist/components/media/map/map.styles.js +1 -1
- package/dist/components/overlays/callout/callout.styles.js +1 -1
- package/dist/components/overlays/dialog/dialog.styles.js +1 -1
- package/dist/components/overlays/overlay/dropdown.class.d.ts +13 -3
- package/dist/components/overlays/overlay/dropdown.class.js +2 -2
- package/dist/components/overlays/overlay/popover.class.d.ts +12 -3
- package/dist/components/overlays/overlay/popover.class.js +2 -2
- package/dist/components/overlays/rating/rating.class.d.ts +9 -7
- package/dist/components/overlays/rating/rating.class.js +1 -1
- package/dist/components/retrieval/citation-badge/citation-badge.class.d.ts +5 -1
- package/dist/components/retrieval/citation-badge/citation-badge.class.js +1 -1
- package/dist/components/retrieval/embedding-explorer/embedding-explorer.styles.js +1 -1
- package/dist/components/retrieval/entity-chip/entity-chip.class.d.ts +5 -1
- package/dist/components/retrieval/entity-chip/entity-chip.class.js +1 -1
- package/dist/components/retrieval/graph-legend/graph-legend.styles.js +1 -1
- package/dist/components/retrieval/retrieval-value-format.js +1 -1
- package/dist/components/retrieval/source-list/source-list.styles.js +1 -1
- package/dist/components/utility/copy-button/copy-button.class.d.ts +23 -11
- package/dist/components/utility/copy-button/copy-button.class.js +2 -2
- package/dist/components/utility/copy-button/copy-button.styles.js +1 -1
- package/dist/components/utility/diff-view/diff-view.styles.js +1 -1
- package/dist/components/utility/export-button/export-button.class.d.ts +4 -0
- package/dist/components/utility/export-button/export-button.class.js +1 -1
- package/dist/components/utility/json-viewer/json-viewer.styles.js +1 -1
- package/dist/components/utility/known-date/known-date.class.js +1 -1
- package/dist/components/utility/mention-popover/mention-popover.class.d.ts +38 -3
- package/dist/components/utility/mention-popover/mention-popover.class.js +2 -1
- package/dist/components/utility/mention-popover/mention-popover.styles.js +1 -1
- package/dist/components/utility/poll-status/poll-status.styles.js +1 -1
- package/dist/components/utility/tour/tour.class.d.ts +4 -0
- package/dist/components/utility/tour/tour.class.js +1 -1
- package/dist/components/utility/tour/tour.styles.js +1 -1
- package/dist/components/viewers/document-preview/document-preview.class.js +2 -2
- package/dist/components/viewers/docx-viewer/docx-viewer.class.js +2 -2
- package/dist/components/viewers/ebook-viewer/ebook-viewer.class.js +2 -2
- package/dist/components/viewers/highlight-layer/highlight-layer.class.js +2 -2
- package/dist/components/viewers/notebook-viewer/notebook-viewer.class.js +2 -2
- package/dist/components/viewers/pdf-viewer/pdf-viewer.class.js +2 -2
- package/dist/components/viewers/pptx-viewer/pptx-viewer.class.js +2 -2
- package/dist/components/viewers/xml-viewer/xml-viewer.class.js +2 -2
- package/dist/custom-elements-jsx.d.ts +2 -2
- package/dist/events.d.ts +20 -13
- package/dist/internal/aggregate-file-limits.d.ts +33 -0
- package/dist/internal/aggregate-file-limits.js +1 -0
- package/dist/internal/catalog-picker.d.ts +15 -2
- package/dist/internal/catalog-picker.js +1 -1
- package/dist/internal/debounce-controller.d.ts +14 -0
- package/dist/internal/debounce-controller.js +1 -1
- package/dist/internal/default-strings.generated.d.ts +1 -1
- package/dist/internal/default-strings.generated.js +2 -2
- package/dist/internal/focus-navigation.d.ts +45 -0
- package/dist/internal/focus-navigation.js +1 -1
- package/dist/internal/form-associated.js +1 -1
- package/dist/internal/initial-slot-collection.d.ts +30 -0
- package/dist/internal/initial-slot-collection.js +1 -0
- package/dist/internal/intl-cache.js +1 -1
- package/dist/internal/invalid-event-alias.d.ts +46 -0
- package/dist/internal/invalid-event-alias.js +1 -1
- package/dist/internal/localization-runtime.d.ts +24 -0
- package/dist/internal/localization-runtime.js +1 -1
- package/dist/internal/localization-types.d.ts +1 -1
- package/dist/internal/localization.js +1 -1
- package/dist/internal/package-metadata.d.ts +1 -1
- package/dist/internal/package-metadata.js +1 -1
- package/dist/internal/positioning-strategy.d.ts +3 -1
- package/dist/internal/state-part.d.ts +49 -0
- package/dist/internal/state-part.js +1 -0
- package/dist/internal/variants.styles.js +1 -1
- package/dist/lyra.d.ts +1 -1
- package/dist/lyra.js +1 -1
- package/dist/svelte.d.ts +2 -2
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +1 -1
- package/dist/testing/lyra-tag-event-map.d.ts +2 -2
- package/dist/testing/lyra-tag-event-map.js +1 -1
- package/dist/testing/wait-for-mount.d.ts +46 -0
- package/dist/testing/wait-for-mount.js +1 -0
- package/dist/theme/theme-bootstrap.js +1 -1
- package/dist/theme/theme.d.ts +11 -2
- package/dist/theme/theme.js +1 -1
- package/dist/translations/ar/layout.js +1 -1
- package/dist/translations/ar/retrieval.js +1 -1
- package/dist/translations/ar/shared.js +1 -1
- package/dist/translations/de/layout.js +1 -1
- package/dist/translations/de/retrieval.js +1 -1
- package/dist/translations/de/shared.js +1 -1
- package/dist/translations/es/layout.js +1 -1
- package/dist/translations/es/retrieval.js +1 -1
- package/dist/translations/es/shared.js +1 -1
- package/dist/translations/fa/layout.js +1 -1
- package/dist/translations/fa/retrieval.js +1 -1
- package/dist/translations/fa/shared.js +1 -1
- package/dist/translations/fr/layout.js +1 -1
- package/dist/translations/fr/retrieval.js +1 -1
- package/dist/translations/fr/shared.js +1 -1
- package/dist/translations/he/layout.js +1 -1
- package/dist/translations/he/retrieval.js +1 -1
- package/dist/translations/he/shared.js +1 -1
- package/dist/translations/it/layout.js +1 -1
- package/dist/translations/it/retrieval.js +1 -1
- package/dist/translations/it/shared.js +1 -1
- package/dist/translations/ja/layout.js +1 -1
- package/dist/translations/ja/retrieval.js +1 -1
- package/dist/translations/ja/shared.js +1 -1
- package/dist/translations/pt-BR/layout.js +1 -1
- package/dist/translations/pt-BR/retrieval.js +1 -1
- package/dist/translations/pt-BR/shared.js +1 -1
- package/dist/translations/ro/agent-tools.d.ts +1 -0
- package/dist/translations/ro/agent-tools.js +1 -0
- package/dist/translations/ro/charts.d.ts +1 -0
- package/dist/translations/ro/charts.js +1 -0
- package/dist/translations/ro/conversation.d.ts +1 -0
- package/dist/translations/ro/conversation.js +1 -0
- package/dist/translations/ro/data.d.ts +1 -0
- package/dist/translations/ro/data.js +1 -0
- package/dist/translations/ro/forms.d.ts +1 -0
- package/dist/translations/ro/forms.js +1 -0
- package/dist/translations/ro/layout.d.ts +1 -0
- package/dist/translations/ro/layout.js +1 -0
- package/dist/translations/ro/media.d.ts +1 -0
- package/dist/translations/ro/media.js +1 -0
- package/dist/translations/ro/overlays.d.ts +1 -0
- package/dist/translations/ro/overlays.js +1 -0
- package/dist/translations/ro/retrieval.d.ts +1 -0
- package/dist/translations/ro/retrieval.js +1 -0
- package/dist/translations/ro/shared.d.ts +1 -0
- package/dist/translations/ro/shared.js +1 -0
- package/dist/translations/ro/utility.d.ts +1 -0
- package/dist/translations/ro/utility.js +1 -0
- package/dist/translations/ro/viewers.d.ts +1 -0
- package/dist/translations/ro/viewers.js +5 -0
- package/dist/translations/ro.d.ts +1 -0
- package/dist/translations/ro.js +1 -0
- package/dist/translations/ru/layout.js +1 -1
- package/dist/translations/ru/retrieval.js +1 -1
- package/dist/translations/ru/shared.js +1 -1
- package/dist/translations/zh-CN/layout.js +1 -1
- package/dist/translations/zh-CN/retrieval.js +1 -1
- package/dist/translations/zh-CN/shared.js +1 -1
- package/dist/utilities/format.d.ts +17 -0
- package/dist/utilities/format.js +1 -1
- package/dist/vue.d.ts +2 -2
- package/llms/components/lr-app-rail-group.md +87 -10
- package/llms/components/lr-app-rail-item.md +88 -11
- package/llms/components/lr-app-rail.md +88 -11
- package/llms/components/lr-attachment-trigger.md +21 -0
- package/llms/components/lr-bar-chart.md +3 -2
- package/llms/components/lr-bubble-chart.md +3 -2
- package/llms/components/lr-button.md +5 -4
- package/llms/components/lr-callout.md +10 -0
- package/llms/components/lr-card.md +2 -1
- package/llms/components/lr-chart.md +43 -12
- package/llms/components/lr-citation-badge.md +7 -1
- package/llms/components/lr-code-block.md +21 -0
- package/llms/components/lr-color-picker.md +12 -7
- package/llms/components/lr-combobox.md +20 -1
- package/llms/components/lr-confirm-bar.md +36 -7
- package/llms/components/lr-context-meter.md +17 -4
- package/llms/components/lr-date-input.md +7 -1
- package/llms/components/lr-date-picker.md +6 -0
- package/llms/components/lr-dialog.md +21 -0
- package/llms/components/lr-doughnut-chart.md +3 -2
- package/llms/components/lr-drawer.md +10 -0
- package/llms/components/lr-drop-zone.md +16 -7
- package/llms/components/lr-dropdown-item.md +7 -0
- package/llms/components/lr-entity-chip.md +7 -1
- package/llms/components/lr-export-button.md +7 -1
- package/llms/components/lr-file-input.md +21 -10
- package/llms/components/lr-filter-bar.md +177 -18
- package/llms/components/lr-flow-canvas.md +16 -9
- package/llms/components/lr-gauge.md +22 -2
- package/llms/components/lr-histogram.md +7 -2
- package/llms/components/lr-icon-button.md +17 -8
- package/llms/components/lr-input.md +3 -1
- package/llms/components/lr-line-chart.md +3 -2
- package/llms/components/lr-lite-chart.md +13 -0
- package/llms/components/lr-locale-picker.md +7 -1
- package/llms/components/lr-map.md +63 -6
- package/llms/components/lr-mention-popover.md +16 -3
- package/llms/components/lr-menu-item.md +7 -0
- package/llms/components/lr-menu.md +8 -1
- package/llms/components/lr-message-actions.md +10 -0
- package/llms/components/lr-model-select.md +8 -3
- package/llms/components/lr-native-time-input.md +8 -1
- package/llms/components/lr-number-input.md +8 -1
- package/llms/components/lr-option.md +19 -0
- package/llms/components/lr-otp-input.md +6 -0
- package/llms/components/lr-pie-chart.md +3 -2
- package/llms/components/lr-polar-area-chart.md +3 -2
- package/llms/components/lr-prompt-input.md +2 -2
- package/llms/components/lr-radar-chart.md +3 -2
- package/llms/components/lr-reorder-item.md +12 -0
- package/llms/components/lr-reorder-list.md +12 -0
- package/llms/components/lr-scatter-chart.md +3 -2
- package/llms/components/lr-select.md +19 -2
- package/llms/components/lr-sequence-strip.md +10 -4
- package/llms/components/lr-streaming-text-core.md +28 -11
- package/llms/components/lr-streaming-text.md +41 -6
- package/llms/components/lr-suggestion-chips.md +8 -4
- package/llms/components/lr-table.md +47 -10
- package/llms/components/lr-textarea.md +1 -1
- package/llms/components/lr-time-input.md +7 -1
- package/llms/components/lr-tool-call-chip.md +7 -1
- package/llms/components/lr-tour.md +7 -1
- package/llms/components/lr-usage-badge.md +7 -1
- package/llms/components/lr-virtual-list.md +53 -0
- package/llms/components/lr-voice-picker.md +7 -3
- package/llms/shared.md +175 -19
- package/llms/tokens.md +17 -1
- package/llms-full.txt +1214 -169
- package/package.json +43 -3
- package/registrations.json +1 -1
- package/vscode-css-data.json +1 -1
- package/vscode-html-data.json +1 -1
- package/web-types.json +1 -1
|
@@ -5,7 +5,15 @@ readonly r?:number;
|
|
|
5
5
|
* Caller-owned per-point label retained verbatim by events/export and interpolated into the
|
|
6
6
|
* localized whole-point message used by descriptions, tables, and keyboard announcements.
|
|
7
7
|
*/
|
|
8
|
-
readonly label?:string;}export interface LyraChartSeries{readonly label:string;readonly data?:readonly(number|null)[];readonly points?:readonly LyraChartPoint[];readonly color?:string|readonly string[];readonly fill?:boolean;readonly width?:number;readonly dash?:boolean;readonly noTooltip?:boolean;readonly axis?:'y'|'y2';
|
|
8
|
+
readonly label?:string;}export interface LyraChartSeries{readonly label:string;readonly data?:readonly(number|null)[];readonly points?:readonly LyraChartPoint[];readonly color?:string|readonly string[];readonly fill?:boolean;readonly width?:number;readonly dash?:boolean;readonly noTooltip?:boolean;readonly axis?:'y'|'y2';
|
|
9
|
+
/**
|
|
10
|
+
* Chart.js dataset `stack` group id. Series sharing the same `stack` value on the same axis
|
|
11
|
+
* accumulate into one stack; a different id starts an independent stack that Chart.js draws
|
|
12
|
+
* side by side with the first on that same (stacked) axis. Omitted series default to Chart.js's
|
|
13
|
+
* own ungrouped stack, matching every series's behavior before this existed. Only meaningful on
|
|
14
|
+
* an axis that is actually stacked -- see `LyraChart.stacked`/`LyraChart.stackedAxes`.
|
|
15
|
+
*/
|
|
16
|
+
readonly stack?:string;readonly pointColors?:readonly string[];
|
|
9
17
|
/**
|
|
10
18
|
* Per-point radius. A single number applies to every point; an array (matching `data`'s
|
|
11
19
|
* length) sets each point independently — passed straight through to Chart.js, which
|
|
@@ -63,11 +71,21 @@ readonly axis?:LyraChartFormatterAxis;
|
|
|
63
71
|
* system for numeric stability with datasets whose finite values sum beyond
|
|
64
72
|
* `Number.MAX_VALUE`, so it has no fixed public unit -- `percentage` alone is stable regardless.
|
|
65
73
|
*/
|
|
66
|
-
readonly percentage?:number;}export type LyraChartFormatter=(context:LyraChartFormatterContext)=>string;
|
|
74
|
+
readonly percentage?:number;}export type LyraChartFormatter=(context:LyraChartFormatterContext)=>string;
|
|
75
|
+
/**
|
|
76
|
+
* Tooltip title/footer formatter. Chart.js calls its own `title`/`footer` tooltip callbacks once
|
|
77
|
+
* per tooltip render against every hovered item, not once per item like the label path -- so
|
|
78
|
+
* unlike `LyraChartFormatter`, this receives every hovered item's context at once, each in the
|
|
79
|
+
* same `LyraChartFormatterContext` shape `formatter`'s `'tooltip'` surface already produces (one
|
|
80
|
+
* entry per dataset the tooltip covers, e.g. every stacked series sharing the hovered category).
|
|
81
|
+
* The property itself being unset -- not the formatter's return value -- is what leaves Chart.js's
|
|
82
|
+
* own default title (the shared category label) or default footer (none) in place.
|
|
83
|
+
*/
|
|
84
|
+
export type LyraChartTooltipGroupFormatter=(items:readonly LyraChartFormatterContext[])=>string;export type LyraChartExportFormat='csv'|'png';export interface LyraChartArea{readonly top:number;readonly left:number;readonly right:number;readonly bottom:number;readonly width:number;readonly height:number;}
|
|
67
85
|
/** A Chart.js-compatible plugin shape without making `chart.js` a type dependency for consumers. */
|
|
68
86
|
export interface LyraChartPlugin{readonly id:string;}
|
|
69
87
|
/** Dataset configuration accepted by the raw `config` passthrough. */
|
|
70
|
-
export interface LyraChartDatasetConfiguration{type?:string;label?:unknown;data?:unknown[];hidden?:boolean;axis?:string;yAxisID?:string;noTooltip?:boolean;fill?:unknown;backgroundColor?:unknown;borderColor?:unknown;borderRadius?:unknown;borderWidth?:unknown;borderDash?:unknown;color?:unknown;pointStyle?:unknown;pointBackgroundColor?:unknown;pointRadius?:unknown;segment?:unknown;}
|
|
88
|
+
export interface LyraChartDatasetConfiguration{type?:string;label?:unknown;data?:unknown[];hidden?:boolean;axis?:string;yAxisID?:string;stack?:string;noTooltip?:boolean;fill?:unknown;backgroundColor?:unknown;borderColor?:unknown;borderRadius?:unknown;borderWidth?:unknown;borderDash?:unknown;color?:unknown;pointStyle?:unknown;pointBackgroundColor?:unknown;pointRadius?:unknown;segment?:unknown;}
|
|
71
89
|
/** Data block accepted by the raw `config` passthrough. */
|
|
72
90
|
export interface LyraChartDataConfiguration{labels?:unknown[];datasets?:LyraChartDatasetConfiguration[];}
|
|
73
91
|
/**
|
|
@@ -357,6 +375,18 @@ get plugins():readonly LyraChartPlugin[];set plugins(value:readonly LyraChartPlu
|
|
|
357
375
|
valueFormatter?:LyraChartValueFormatter;
|
|
358
376
|
/** Unified context-object formatter for visual, tooltip, table/export, and spoken values. */
|
|
359
377
|
formatter?:LyraChartFormatter;
|
|
378
|
+
/**
|
|
379
|
+
* Tooltip title formatter -- e.g. a scatter point's own name. Receives every item the hovered
|
|
380
|
+
* tooltip covers, each in `formatter`'s `'tooltip'`-surface context shape. Unset (the default)
|
|
381
|
+
* leaves Chart.js's own default title (the shared category label) in place.
|
|
382
|
+
*/
|
|
383
|
+
tooltipTitleFormatter?:LyraChartTooltipGroupFormatter;
|
|
384
|
+
/**
|
|
385
|
+
* Tooltip footer formatter -- e.g. a category's stack total under the items. Receives every
|
|
386
|
+
* item the hovered tooltip covers, in the same shape as `tooltipTitleFormatter`. Unset (the
|
|
387
|
+
* default) leaves Chart.js's own default (no footer).
|
|
388
|
+
*/
|
|
389
|
+
tooltipFooterFormatter?:LyraChartTooltipGroupFormatter;
|
|
360
390
|
/** Chart-wide default fill-under-line setting for line-type series; a series's own `LyraChartSeries.fill` overrides it. */
|
|
361
391
|
area:boolean;zoom:boolean;height:string;xLabel:string|null;yLabel:string|null;y2Label:string;beginAtZero:boolean;
|
|
362
392
|
/** Makes the generated data table visible; it remains screen-reader available when false. */
|
|
@@ -382,6 +412,18 @@ private dataTableExpandedOverride;private readonly dataTableId;
|
|
|
382
412
|
private get dataTableVisible();private toggleDataTable;
|
|
383
413
|
/** Stacks the `x`/`y`(/`y2`) scale entries `buildScales()` returns; only meaningful for `bar` and `line` types. */
|
|
384
414
|
stacked:boolean;
|
|
415
|
+
/**
|
|
416
|
+
* Per-value-axis override of `stacked`, keyed by `'y'`/`'y2'`. An axis absent from this record
|
|
417
|
+
* -- including every axis when the whole property is unset -- falls back to the chart-wide
|
|
418
|
+
* `stacked` value, which is what keeps a chart that never sets this byte-identical to before.
|
|
419
|
+
* Lets a `stacked` bar series on the primary axis sit next to an unstacked overlay series on
|
|
420
|
+
* `y2` (via `LyraChartSeries.axis: 'y2'`): set `stackedAxes` to `{ y2: false }` alongside
|
|
421
|
+
* `stacked`, or spell out both axes explicitly. The shared categorical axis (`x` for a vertical
|
|
422
|
+
* bar/line, or `y` when `indexAxis` is `'y'`) has no independent entry of its own -- it always
|
|
423
|
+
* mirrors the resolved `'y'` value, matching Chart.js's own paired index/value-scale stacking
|
|
424
|
+
* contract. Only meaningful for `bar`/`line` types, matching `stacked` itself.
|
|
425
|
+
*/
|
|
426
|
+
stackedAxes?:Partial<Record<'y'|'y2',boolean>>;
|
|
385
427
|
/** Disables Chart.js animation. */
|
|
386
428
|
withoutAnimation:boolean;
|
|
387
429
|
/** Hides the legend. */
|
|
@@ -430,6 +472,14 @@ private _config?;private configSource;get config():LyraChartConfiguration|undefi
|
|
|
430
472
|
/** Subclass hook for removing raw peer keys that contradict a derived public contract. */
|
|
431
473
|
protected normalizeEffectiveConfig(config:LyraChartConfiguration|undefined):LyraChartConfiguration|undefined;private effectiveConfig;private onConfigSlotChange;
|
|
432
474
|
/**
|
|
475
|
+
* Reads the `config-slot`'s currently assigned `<script type="application/json">` and applies
|
|
476
|
+
* it -- wired as the `slotchange` handler (via `onConfigSlotChange`) for every later mutation,
|
|
477
|
+
* and called once more from `firstUpdated()` (see `collectInitialSlotAssignment`) to cover an
|
|
478
|
+
* environment, or a real-browser timing race, where the slot's initial assignment never fires
|
|
479
|
+
* `slotchange`.
|
|
480
|
+
*/
|
|
481
|
+
private collectConfigFromSlot;
|
|
482
|
+
/**
|
|
433
483
|
* The single data model used by every chart surface. `config.data` follows the same merge rule
|
|
434
484
|
* as the Chart.js render config: an explicit labels/datasets array replaces the generated array,
|
|
435
485
|
* while an omitted member falls back to the simplified property surface.
|
|
@@ -464,7 +514,7 @@ private loading;
|
|
|
464
514
|
* True once the optional `chart.js` peer failed to load (not installed) -- `render()` fails
|
|
465
515
|
* closed into a visible `part="error"` and announces through the document-level sink.
|
|
466
516
|
*/
|
|
467
|
-
private loadFailed;private loadLibrary;private loadZoomFeature;private loadDataLabelsFeature;private loadAnnotationFeature;private loadGeneration;private zoomLoadGeneration;private dataLabelsLoadGeneration;private annotationLoadGeneration;private zoomFeatureState;private dataLabelsFeatureState;private annotationFeatureState;private dataLabelsPlugin?;private annotationPlugin?;private stopAnnotationRegistrationWatch?;private zoomed;private visible;private intersectionObserver?;private intersectionGeneration;private reducedMotionQuery?;private reducedMotionWindow?;private canvasEl?;
|
|
517
|
+
private loadFailed;private loadLibrary;private loadZoomFeature;private loadDataLabelsFeature;private loadAnnotationFeature;private loadGeneration;private zoomLoadGeneration;private dataLabelsLoadGeneration;private annotationLoadGeneration;private zoomFeatureState;private dataLabelsFeatureState;private annotationFeatureState;private dataLabelsPlugin?;private annotationPlugin?;private stopAnnotationRegistrationWatch?;private zoomed;private visible;private intersectionObserver?;private intersectionGeneration;private reducedMotionQuery?;private reducedMotionWindow?;private canvasEl?;private configSlotEl?;
|
|
468
518
|
/** The current Chart.js instance. Read it only while the element is connected and loaded. */
|
|
469
519
|
chart?:LyraChartInstance;private scaledSliceDatasets;private chartJsModule?;private resizeObserver?;private resizeDrawFrame?;private resizeDrawFrameOwner?;private lastObservedInlineSize?;private autoLegendPosition;private resolvedChartArea?;private chartAreaUpdateQueued;private builtType?;private builtPlugins;private visualDatasetSourceIndexes?;private visualRowSourceIndexes?;private suppressZoomComplete;private descriptionId;private keyboardDatumIndex;private keyboardDatumAnnouncement;
|
|
470
520
|
/** Shared document-level regions that carry announcements. The visually hidden datum copy is an
|
|
@@ -513,7 +563,27 @@ private rebuildAfterAnnotationRegistration;private requestDataLabelsFeature;
|
|
|
513
563
|
* in progress. Same rationale as `toast-item.ts`'s `willUpdate()`-vs-
|
|
514
564
|
* `updated()` split.
|
|
515
565
|
*/
|
|
516
|
-
protected willUpdate(changed:PropertyValues):void;
|
|
566
|
+
protected willUpdate(changed:PropertyValues):void;
|
|
567
|
+
/**
|
|
568
|
+
* happy-dom (through at least 20.14.5) never fires the default slot's INITIAL `slotchange` --
|
|
569
|
+
* see `collectInitialSlotAssignment`'s own doc -- so an `<lr-chart>` whose
|
|
570
|
+
* `<script type="application/json">` raw config already exists at connect (the ordinary
|
|
571
|
+
* "render once data is ready" Lit pattern) would otherwise never pick it up. Collect once here
|
|
572
|
+
* too, from the slot's current assignment; `collectConfigFromSlot()` simply recomputes and
|
|
573
|
+
* overwrites `slottedConfig` from scratch each call, so a real browser firing the initial event
|
|
574
|
+
* as well is naturally idempotent -- the second call reads back the same assigned elements and
|
|
575
|
+
* writes the same value.
|
|
576
|
+
* Deferred a microtask: `slottedConfig` is a reactive `@state`, so writing it synchronously
|
|
577
|
+
* inside `firstUpdated()` -- after this same update has already been marked complete -- trips
|
|
578
|
+
* Lit's "scheduled an update after an update completed" dev warning. A real `slotchange` event
|
|
579
|
+
* runs this same collection from a task/microtask entirely outside the update cycle, which never
|
|
580
|
+
* trips it; queuing a microtask here reproduces that same "outside the cycle" timing instead of
|
|
581
|
+
* writing `slottedConfig` from inside it. Still guaranteed to land before any caller's own
|
|
582
|
+
* `await el.updateComplete` continuation: that continuation is queued only once this update's
|
|
583
|
+
* promise resolves, later in this same synchronous turn, so it always joins the microtask queue
|
|
584
|
+
* behind the one queued here.
|
|
585
|
+
*/
|
|
586
|
+
protected firstUpdated(changed:PropertyValues):void;protected updated(changed:PropertyValues):void;
|
|
517
587
|
/**
|
|
518
588
|
* Subclass extension point for derived reactive inputs. Keeping this gate in the normal
|
|
519
589
|
* visibility-checked update path prevents subclasses such as histogram from issuing a second,
|
|
@@ -580,11 +650,13 @@ private annotationOptions;
|
|
|
580
650
|
* color is resolved via `getComputedStyle` (the same `themeColors()` tick
|
|
581
651
|
* color) because Chart.js paints to canvas and cannot read `var()`.
|
|
582
652
|
*
|
|
583
|
-
* `stackTotals` draws once per category
|
|
584
|
-
* so a total is shown only on the topmost
|
|
585
|
-
*
|
|
586
|
-
*
|
|
587
|
-
* own
|
|
653
|
+
* `stackTotals` draws once per category per (axis, `LyraChartSeries.stack` group): the plugin
|
|
654
|
+
* fires per (dataset, point), so a total is shown only on the topmost dataset of each group
|
|
655
|
+
* whose OWN axis is actually stacked (`axisStacked()`) and its formatter returns the null-aware
|
|
656
|
+
* `computeStackTotals()` value for that group (blank when the whole category is null). Two
|
|
657
|
+
* stack groups sharing one axis each get their own total, drawn above their own topmost
|
|
658
|
+
* dataset. When only `dataLabels` is set, or a dataset's axis isn't stacked, each point shows
|
|
659
|
+
* its own value; a null/non-finite point renders blank.
|
|
588
660
|
*/
|
|
589
661
|
private datalabelsOptions;
|
|
590
662
|
/** Locale/format a data-label number through the same `valueFormatter` the axis/tooltip use, so a
|
|
@@ -593,12 +665,14 @@ private datalabelsOptions;
|
|
|
593
665
|
* consumer formatter that branches on context behaves predictably rather than seeing `undefined`. */
|
|
594
666
|
private formatDataLabel;
|
|
595
667
|
/**
|
|
596
|
-
* Per-category stack totals for the datasets on axis `axisId` (`'y'`/`'y2'`)
|
|
597
|
-
* or `null` for a category whose every value is
|
|
598
|
-
* is drawn there rather than a misleading `0`).
|
|
599
|
-
*
|
|
600
|
-
*
|
|
601
|
-
*
|
|
668
|
+
* Per-category stack totals for the datasets on axis `axisId` (`'y'`/`'y2'`) belonging to
|
|
669
|
+
* `stackGroup` (a `LyraChartSeries.stack` id), or `null` for a category whose every value is
|
|
670
|
+
* null/undefined (so no total is drawn there rather than a misleading `0`). `stackGroup`
|
|
671
|
+
* defaults to `undefined` -- the implicit group every series without its own `stack` id
|
|
672
|
+
* shares -- so an existing call site untouched by the per-series `stack` feature keeps summing
|
|
673
|
+
* exactly the datasets it always did. Reads the same per-point values as the sr-only data
|
|
674
|
+
* table, null-aware — canvas draws these via the datalabels plugin, but the numbers themselves
|
|
675
|
+
* stay screen-reader available through `renderDataTable()`.
|
|
602
676
|
*/
|
|
603
677
|
private computeStackTotals;
|
|
604
678
|
/**
|
|
@@ -621,6 +695,15 @@ private valueScaleType;
|
|
|
621
695
|
/** `beginAtZero` for a value axis, suppressed on a logarithmic scale which cannot place zero. */
|
|
622
696
|
private valueBeginAtZero;private scaleBounds;private gridAxisVisible;private axisVisible;
|
|
623
697
|
/**
|
|
698
|
+
* Resolves whether `axisId`'s scale should stack, folding `stackedAxes`'s per-axis override
|
|
699
|
+
* over the chart-wide `stacked` default. `'x'` has no override of its own -- it mirrors the
|
|
700
|
+
* resolved `'y'` value, since Chart.js's stacking contract needs the paired index and value
|
|
701
|
+
* scales to agree (an unstacked value scale ignores an index scale marked `stacked`, and vice
|
|
702
|
+
* versa). Every axis falls back to `stacked` when `stackedAxes` (or its own entry) is unset,
|
|
703
|
+
* which is what keeps a chart that never sets `stackedAxes` byte-identical to before.
|
|
704
|
+
*/
|
|
705
|
+
private axisStacked;
|
|
706
|
+
/**
|
|
624
707
|
* Builds `options.scales` for the effective chart type: no scale at all for
|
|
625
708
|
* pie/doughnut (a proportional-area chart has no axis), the single radial
|
|
626
709
|
* `r` scale Chart.js v4 uses for radar/polarArea, and the cartesian
|
|
@@ -695,7 +778,24 @@ private sourceDatumFormatterMetadata;
|
|
|
695
778
|
private stackTotalMetadata;
|
|
696
779
|
/** `effective` is threaded in: `effectiveData()` rebuilds every label and dataset array, and this
|
|
697
780
|
* runs once per legend entry, so resolving it here would rebuild it N times per legend pass. */
|
|
698
|
-
private legendValue;private legendLabels;private tooltipLabel;
|
|
781
|
+
private legendValue;private legendLabels;private tooltipLabel;
|
|
782
|
+
/**
|
|
783
|
+
* Resolves one hovered tooltip item into the unified formatter context, for
|
|
784
|
+
* `tooltipTitleFormatter`/`tooltipFooterFormatter`. Mirrors `tooltipLabel()`'s raw-value and
|
|
785
|
+
* rescaled-slice resolution so a hovered item's `value` means the same number on every tooltip
|
|
786
|
+
* surface, but returns the context object itself rather than one rendered string -- title/footer
|
|
787
|
+
* need every hovered item's context at once, not one item's formatted text. `undefined` for an
|
|
788
|
+
* item with no numeric value, so it's dropped from the group rather than passed through as
|
|
789
|
+
* `NaN`.
|
|
790
|
+
*/
|
|
791
|
+
private tooltipItemContext;
|
|
792
|
+
/**
|
|
793
|
+
* Runs `formatter` (`tooltipTitleFormatter`/`tooltipFooterFormatter`) against every hovered
|
|
794
|
+
* item's context at once. `undefined` when the formatter itself is unset -- the caller uses that
|
|
795
|
+
* to omit the Chart.js `title`/`footer` callback entirely, which leaves Chart.js's own default
|
|
796
|
+
* in place -- or when no hovered item resolved a numeric value.
|
|
797
|
+
*/
|
|
798
|
+
private tooltipGroupText;private updateAutoLegendPosition;private legendPositionForConfig;private legendPositionForLayout;
|
|
699
799
|
/**
|
|
700
800
|
* The `data-legend-position` token that selects `[part='base']`'s grid template. Deliberately
|
|
701
801
|
* *not* the physical side `legendPositionForLayout()` reports: CSS Grid numbers a two-column
|