@aceshooting/lyra-ui 2.1.0 → 2.3.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/README.md +39 -17
- package/custom-elements.json +43158 -20263
- package/dist/components/app-rail/app-rail-item.class.d.ts +51 -0
- package/dist/components/app-rail/app-rail-item.class.d.ts.map +1 -0
- package/dist/components/app-rail/app-rail-item.class.js +128 -0
- package/dist/components/app-rail/app-rail-item.class.js.map +1 -0
- package/dist/components/app-rail/app-rail-item.d.ts +2 -30
- package/dist/components/app-rail/app-rail-item.d.ts.map +1 -0
- package/dist/components/app-rail/app-rail-item.js +3 -66
- package/dist/components/app-rail/app-rail-item.js.map +1 -0
- package/dist/components/app-rail/app-rail-item.styles.d.ts +1 -0
- package/dist/components/app-rail/app-rail-item.styles.d.ts.map +1 -0
- package/dist/components/app-rail/app-rail-item.styles.js +20 -3
- package/dist/components/app-rail/app-rail-item.styles.js.map +1 -0
- package/dist/components/app-rail/app-rail.class.d.ts +225 -0
- package/dist/components/app-rail/app-rail.class.d.ts.map +1 -0
- package/dist/components/app-rail/app-rail.class.js +567 -0
- package/dist/components/app-rail/app-rail.class.js.map +1 -0
- package/dist/components/app-rail/app-rail.d.ts +3 -168
- package/dist/components/app-rail/app-rail.d.ts.map +1 -0
- package/dist/components/app-rail/app-rail.js +4 -417
- package/dist/components/app-rail/app-rail.js.map +1 -0
- package/dist/components/app-rail/app-rail.styles.d.ts +1 -0
- package/dist/components/app-rail/app-rail.styles.d.ts.map +1 -0
- package/dist/components/app-rail/app-rail.styles.js +45 -10
- package/dist/components/app-rail/app-rail.styles.js.map +1 -0
- package/dist/components/attachment-chip/attachment-chip.class.d.ts +157 -0
- package/dist/components/attachment-chip/attachment-chip.class.d.ts.map +1 -0
- package/dist/components/attachment-chip/attachment-chip.class.js +379 -0
- package/dist/components/attachment-chip/attachment-chip.class.js.map +1 -0
- package/dist/components/attachment-chip/attachment-chip.d.ts +2 -141
- package/dist/components/attachment-chip/attachment-chip.d.ts.map +1 -0
- package/dist/components/attachment-chip/attachment-chip.js +3 -354
- package/dist/components/attachment-chip/attachment-chip.js.map +1 -0
- package/dist/components/attachment-chip/attachment-chip.styles.d.ts +1 -0
- package/dist/components/attachment-chip/attachment-chip.styles.d.ts.map +1 -0
- package/dist/components/attachment-chip/attachment-chip.styles.js +36 -13
- package/dist/components/attachment-chip/attachment-chip.styles.js.map +1 -0
- package/dist/components/attachment-trigger/attachment-trigger.class.d.ts +109 -0
- package/dist/components/attachment-trigger/attachment-trigger.class.d.ts.map +1 -0
- package/dist/components/attachment-trigger/attachment-trigger.class.js +278 -0
- package/dist/components/attachment-trigger/attachment-trigger.class.js.map +1 -0
- package/dist/components/attachment-trigger/attachment-trigger.d.ts +4 -96
- package/dist/components/attachment-trigger/attachment-trigger.d.ts.map +1 -0
- package/dist/components/attachment-trigger/attachment-trigger.js +5 -268
- package/dist/components/attachment-trigger/attachment-trigger.js.map +1 -0
- package/dist/components/attachment-trigger/attachment-trigger.styles.d.ts +1 -0
- package/dist/components/attachment-trigger/attachment-trigger.styles.d.ts.map +1 -0
- package/dist/components/attachment-trigger/attachment-trigger.styles.js +21 -6
- package/dist/components/attachment-trigger/attachment-trigger.styles.js.map +1 -0
- package/dist/components/avatar/avatar.class.d.ts +43 -0
- package/dist/components/avatar/avatar.class.d.ts.map +1 -0
- package/dist/components/avatar/avatar.class.js +75 -0
- package/dist/components/avatar/avatar.class.js.map +1 -0
- package/dist/components/avatar/avatar.d.ts +2 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -0
- package/dist/components/avatar/avatar.js +5 -0
- package/dist/components/avatar/avatar.js.map +1 -0
- package/dist/components/avatar/avatar.styles.d.ts +2 -0
- package/dist/components/avatar/avatar.styles.d.ts.map +1 -0
- package/dist/components/avatar/avatar.styles.js +55 -0
- package/dist/components/avatar/avatar.styles.js.map +1 -0
- package/dist/components/card/card.class.d.ts +52 -0
- package/dist/components/card/card.class.d.ts.map +1 -0
- package/dist/components/card/card.class.js +111 -0
- package/dist/components/card/card.class.js.map +1 -0
- package/dist/components/card/card.d.ts +2 -0
- package/dist/components/card/card.d.ts.map +1 -0
- package/dist/components/card/card.js +5 -0
- package/dist/components/card/card.js.map +1 -0
- package/dist/components/card/card.styles.d.ts +2 -0
- package/dist/components/card/card.styles.d.ts.map +1 -0
- package/dist/components/card/card.styles.js +77 -0
- package/dist/components/card/card.styles.js.map +1 -0
- package/dist/components/chart/bar-chart.class.d.ts +15 -0
- package/dist/components/chart/bar-chart.class.d.ts.map +1 -0
- package/dist/components/chart/bar-chart.class.js +10 -0
- package/dist/components/chart/bar-chart.class.js.map +1 -0
- package/dist/components/chart/bar-chart.d.ts +3 -14
- package/dist/components/chart/bar-chart.d.ts.map +1 -0
- package/dist/components/chart/bar-chart.js +4 -9
- package/dist/components/chart/bar-chart.js.map +1 -0
- package/dist/components/chart/box-plot.class.d.ts +78 -0
- package/dist/components/chart/box-plot.class.d.ts.map +1 -0
- package/dist/components/chart/box-plot.class.js +320 -0
- package/dist/components/chart/box-plot.class.js.map +1 -0
- package/dist/components/chart/box-plot.d.ts +3 -77
- package/dist/components/chart/box-plot.d.ts.map +1 -0
- package/dist/components/chart/box-plot.js +4 -319
- package/dist/components/chart/box-plot.js.map +1 -0
- package/dist/components/chart/box-plot.styles.d.ts +1 -0
- package/dist/components/chart/box-plot.styles.d.ts.map +1 -0
- package/dist/components/chart/box-plot.styles.js +2 -1
- package/dist/components/chart/box-plot.styles.js.map +1 -0
- package/dist/components/chart/bubble-chart.class.d.ts +19 -0
- package/dist/components/chart/bubble-chart.class.d.ts.map +1 -0
- package/dist/components/chart/bubble-chart.class.js +14 -0
- package/dist/components/chart/bubble-chart.class.js.map +1 -0
- package/dist/components/chart/bubble-chart.d.ts +3 -18
- package/dist/components/chart/bubble-chart.d.ts.map +1 -0
- package/dist/components/chart/bubble-chart.js +4 -13
- package/dist/components/chart/bubble-chart.js.map +1 -0
- package/dist/components/chart/chart-loader.d.ts +12 -9
- package/dist/components/chart/chart-loader.d.ts.map +1 -0
- package/dist/components/chart/chart-loader.js +1 -0
- package/dist/components/chart/chart-loader.js.map +1 -0
- package/dist/components/chart/chart.class.d.ts +209 -0
- package/dist/components/chart/chart.class.d.ts.map +1 -0
- package/dist/components/chart/chart.class.js +692 -0
- package/dist/components/chart/chart.class.js.map +1 -0
- package/dist/components/chart/chart.d.ts +3 -196
- package/dist/components/chart/chart.d.ts.map +1 -0
- package/dist/components/chart/chart.js +4 -682
- package/dist/components/chart/chart.js.map +1 -0
- package/dist/components/chart/chart.styles.d.ts +1 -0
- package/dist/components/chart/chart.styles.d.ts.map +1 -0
- package/dist/components/chart/chart.styles.js +5 -4
- package/dist/components/chart/chart.styles.js.map +1 -0
- package/dist/components/chart/doughnut-chart.class.d.ts +15 -0
- package/dist/components/chart/doughnut-chart.class.d.ts.map +1 -0
- package/dist/components/chart/doughnut-chart.class.js +10 -0
- package/dist/components/chart/doughnut-chart.class.js.map +1 -0
- package/dist/components/chart/doughnut-chart.d.ts +3 -14
- package/dist/components/chart/doughnut-chart.d.ts.map +1 -0
- package/dist/components/chart/doughnut-chart.js +4 -9
- package/dist/components/chart/doughnut-chart.js.map +1 -0
- package/dist/components/chart/histogram-bin.d.ts +1 -0
- package/dist/components/chart/histogram-bin.d.ts.map +1 -0
- package/dist/components/chart/histogram-bin.js +1 -0
- package/dist/components/chart/histogram-bin.js.map +1 -0
- package/dist/components/chart/histogram.class.d.ts +23 -0
- package/dist/components/chart/histogram.class.d.ts.map +1 -0
- package/dist/components/chart/histogram.class.js +91 -0
- package/dist/components/chart/histogram.class.js.map +1 -0
- package/dist/components/chart/histogram.d.ts +3 -22
- package/dist/components/chart/histogram.d.ts.map +1 -0
- package/dist/components/chart/histogram.js +4 -90
- package/dist/components/chart/histogram.js.map +1 -0
- package/dist/components/chart/histogram.styles.d.ts +1 -0
- package/dist/components/chart/histogram.styles.d.ts.map +1 -0
- package/dist/components/chart/histogram.styles.js +1 -0
- package/dist/components/chart/histogram.styles.js.map +1 -0
- package/dist/components/chart/line-chart.class.d.ts +15 -0
- package/dist/components/chart/line-chart.class.d.ts.map +1 -0
- package/dist/components/chart/line-chart.class.js +10 -0
- package/dist/components/chart/line-chart.class.js.map +1 -0
- package/dist/components/chart/line-chart.d.ts +3 -14
- package/dist/components/chart/line-chart.d.ts.map +1 -0
- package/dist/components/chart/line-chart.js +4 -9
- package/dist/components/chart/line-chart.js.map +1 -0
- package/dist/components/chart/lite-chart.class.d.ts +244 -0
- package/dist/components/chart/lite-chart.class.d.ts.map +1 -0
- package/dist/components/chart/lite-chart.class.js +845 -0
- package/dist/components/chart/lite-chart.class.js.map +1 -0
- package/dist/components/chart/lite-chart.d.ts +2 -214
- package/dist/components/chart/lite-chart.d.ts.map +1 -0
- package/dist/components/chart/lite-chart.js +3 -737
- package/dist/components/chart/lite-chart.js.map +1 -0
- package/dist/components/chart/lite-chart.styles.d.ts +1 -0
- package/dist/components/chart/lite-chart.styles.d.ts.map +1 -0
- package/dist/components/chart/lite-chart.styles.js +23 -10
- package/dist/components/chart/lite-chart.styles.js.map +1 -0
- package/dist/components/chart/pie-chart.class.d.ts +16 -0
- package/dist/components/chart/pie-chart.class.d.ts.map +1 -0
- package/dist/components/chart/pie-chart.class.js +11 -0
- package/dist/components/chart/pie-chart.class.js.map +1 -0
- package/dist/components/chart/pie-chart.d.ts +3 -15
- package/dist/components/chart/pie-chart.d.ts.map +1 -0
- package/dist/components/chart/pie-chart.js +4 -10
- package/dist/components/chart/pie-chart.js.map +1 -0
- package/dist/components/chart/polar-area-chart.class.d.ts +15 -0
- package/dist/components/chart/polar-area-chart.class.d.ts.map +1 -0
- package/dist/components/chart/polar-area-chart.class.js +10 -0
- package/dist/components/chart/polar-area-chart.class.js.map +1 -0
- package/dist/components/chart/polar-area-chart.d.ts +3 -14
- package/dist/components/chart/polar-area-chart.d.ts.map +1 -0
- package/dist/components/chart/polar-area-chart.js +4 -9
- package/dist/components/chart/polar-area-chart.js.map +1 -0
- package/dist/components/chart/radar-chart.class.d.ts +15 -0
- package/dist/components/chart/radar-chart.class.d.ts.map +1 -0
- package/dist/components/chart/radar-chart.class.js +10 -0
- package/dist/components/chart/radar-chart.class.js.map +1 -0
- package/dist/components/chart/radar-chart.d.ts +3 -14
- package/dist/components/chart/radar-chart.d.ts.map +1 -0
- package/dist/components/chart/radar-chart.js +4 -9
- package/dist/components/chart/radar-chart.js.map +1 -0
- package/dist/components/chart/scatter-chart.class.d.ts +16 -0
- package/dist/components/chart/scatter-chart.class.d.ts.map +1 -0
- package/dist/components/chart/scatter-chart.class.js +11 -0
- package/dist/components/chart/scatter-chart.class.js.map +1 -0
- package/dist/components/chart/scatter-chart.d.ts +3 -15
- package/dist/components/chart/scatter-chart.d.ts.map +1 -0
- package/dist/components/chart/scatter-chart.js +4 -10
- package/dist/components/chart/scatter-chart.js.map +1 -0
- package/dist/components/chat-composer/chat-composer.class.d.ts +145 -0
- package/dist/components/chat-composer/chat-composer.class.d.ts.map +1 -0
- package/dist/components/chat-composer/chat-composer.class.js +367 -0
- package/dist/components/chat-composer/chat-composer.class.js.map +1 -0
- package/dist/components/chat-composer/chat-composer.d.ts +2 -133
- package/dist/components/chat-composer/chat-composer.d.ts.map +1 -0
- package/dist/components/chat-composer/chat-composer.js +3 -364
- package/dist/components/chat-composer/chat-composer.js.map +1 -0
- package/dist/components/chat-composer/chat-composer.styles.d.ts +1 -0
- package/dist/components/chat-composer/chat-composer.styles.d.ts.map +1 -0
- package/dist/components/chat-composer/chat-composer.styles.js +5 -4
- package/dist/components/chat-composer/chat-composer.styles.js.map +1 -0
- package/dist/components/chat-message/chat-message.class.d.ts +145 -0
- package/dist/components/chat-message/chat-message.class.d.ts.map +1 -0
- package/dist/components/chat-message/chat-message.class.js +330 -0
- package/dist/components/chat-message/chat-message.class.js.map +1 -0
- package/dist/components/chat-message/chat-message.d.ts +3 -141
- package/dist/components/chat-message/chat-message.d.ts.map +1 -0
- package/dist/components/chat-message/chat-message.js +4 -329
- package/dist/components/chat-message/chat-message.js.map +1 -0
- package/dist/components/chat-message/chat-message.styles.d.ts +1 -0
- package/dist/components/chat-message/chat-message.styles.d.ts.map +1 -0
- package/dist/components/chat-message/chat-message.styles.js +13 -12
- package/dist/components/chat-message/chat-message.styles.js.map +1 -0
- package/dist/components/checkbox/checkbox.class.d.ts +123 -0
- package/dist/components/checkbox/checkbox.class.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.class.js +352 -0
- package/dist/components/checkbox/checkbox.class.js.map +1 -0
- package/dist/components/checkbox/checkbox.d.ts +2 -117
- package/dist/components/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.js +3 -351
- package/dist/components/checkbox/checkbox.js.map +1 -0
- package/dist/components/checkbox/checkbox.styles.d.ts +1 -0
- package/dist/components/checkbox/checkbox.styles.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.styles.js +5 -4
- package/dist/components/checkbox/checkbox.styles.js.map +1 -0
- package/dist/components/chip/chip-group.class.d.ts +57 -0
- package/dist/components/chip/chip-group.class.d.ts.map +1 -0
- package/dist/components/chip/chip-group.class.js +129 -0
- package/dist/components/chip/chip-group.class.js.map +1 -0
- package/dist/components/chip/chip-group.d.ts +2 -56
- package/dist/components/chip/chip-group.d.ts.map +1 -0
- package/dist/components/chip/chip-group.js +3 -128
- package/dist/components/chip/chip-group.js.map +1 -0
- package/dist/components/chip/chip-group.styles.d.ts +1 -0
- package/dist/components/chip/chip-group.styles.d.ts.map +1 -0
- package/dist/components/chip/chip-group.styles.js +7 -6
- package/dist/components/chip/chip-group.styles.js.map +1 -0
- package/dist/components/chip/chip.class.d.ts +83 -0
- package/dist/components/chip/chip.class.d.ts.map +1 -0
- package/dist/components/chip/chip.class.js +158 -0
- package/dist/components/chip/chip.class.js.map +1 -0
- package/dist/components/chip/chip.d.ts +2 -64
- package/dist/components/chip/chip.d.ts.map +1 -0
- package/dist/components/chip/chip.js +3 -120
- package/dist/components/chip/chip.js.map +1 -0
- package/dist/components/chip/chip.styles.d.ts +1 -0
- package/dist/components/chip/chip.styles.d.ts.map +1 -0
- package/dist/components/chip/chip.styles.js +31 -12
- package/dist/components/chip/chip.styles.js.map +1 -0
- package/dist/components/citation-badge/citation-badge.class.d.ts +114 -0
- package/dist/components/citation-badge/citation-badge.class.d.ts.map +1 -0
- package/dist/components/citation-badge/citation-badge.class.js +317 -0
- package/dist/components/citation-badge/citation-badge.class.js.map +1 -0
- package/dist/components/citation-badge/citation-badge.d.ts +2 -113
- package/dist/components/citation-badge/citation-badge.d.ts.map +1 -0
- package/dist/components/citation-badge/citation-badge.js +3 -316
- package/dist/components/citation-badge/citation-badge.js.map +1 -0
- package/dist/components/citation-badge/citation-badge.styles.d.ts +1 -0
- package/dist/components/citation-badge/citation-badge.styles.d.ts.map +1 -0
- package/dist/components/citation-badge/citation-badge.styles.js +12 -11
- package/dist/components/citation-badge/citation-badge.styles.js.map +1 -0
- package/dist/components/code-block/code-block-core.class.d.ts +111 -0
- package/dist/components/code-block/code-block-core.class.d.ts.map +1 -0
- package/dist/components/code-block/code-block-core.class.js +363 -0
- package/dist/components/code-block/code-block-core.class.js.map +1 -0
- package/dist/components/code-block/code-block-core.d.ts +3 -0
- package/dist/components/code-block/code-block-core.d.ts.map +1 -0
- package/dist/components/code-block/code-block-core.js +6 -0
- package/dist/components/code-block/code-block-core.js.map +1 -0
- package/dist/components/code-block/code-block.class.d.ts +141 -0
- package/dist/components/code-block/code-block.class.d.ts.map +1 -0
- package/dist/components/code-block/code-block.class.js +398 -0
- package/dist/components/code-block/code-block.class.js.map +1 -0
- package/dist/components/code-block/code-block.d.ts +3 -127
- package/dist/components/code-block/code-block.d.ts.map +1 -0
- package/dist/components/code-block/code-block.js +4 -380
- package/dist/components/code-block/code-block.js.map +1 -0
- package/dist/components/code-block/code-block.styles.d.ts +1 -0
- package/dist/components/code-block/code-block.styles.d.ts.map +1 -0
- package/dist/components/code-block/code-block.styles.js +25 -21
- package/dist/components/code-block/code-block.styles.js.map +1 -0
- package/dist/components/code-block/code-loader.d.ts +8 -7
- package/dist/components/code-block/code-loader.d.ts.map +1 -0
- package/dist/components/code-block/code-loader.js +1 -0
- package/dist/components/code-block/code-loader.js.map +1 -0
- package/dist/components/combobox/combobox.class.d.ts +205 -0
- package/dist/components/combobox/combobox.class.d.ts.map +1 -0
- package/dist/components/combobox/combobox.class.js +892 -0
- package/dist/components/combobox/combobox.class.js.map +1 -0
- package/dist/components/combobox/combobox.d.ts +3 -199
- package/dist/components/combobox/combobox.d.ts.map +1 -0
- package/dist/components/combobox/combobox.js +4 -891
- package/dist/components/combobox/combobox.js.map +1 -0
- package/dist/components/combobox/combobox.styles.d.ts +1 -0
- package/dist/components/combobox/combobox.styles.d.ts.map +1 -0
- package/dist/components/combobox/combobox.styles.js +34 -33
- package/dist/components/combobox/combobox.styles.js.map +1 -0
- package/dist/components/combobox/option.class.d.ts +44 -0
- package/dist/components/combobox/option.class.d.ts.map +1 -0
- package/dist/components/combobox/option.class.js +101 -0
- package/dist/components/combobox/option.class.js.map +1 -0
- package/dist/components/combobox/option.d.ts +2 -40
- package/dist/components/combobox/option.d.ts.map +1 -0
- package/dist/components/combobox/option.js +3 -109
- package/dist/components/combobox/option.js.map +1 -0
- package/dist/components/context-meter/context-meter.class.d.ts +54 -0
- package/dist/components/context-meter/context-meter.class.d.ts.map +1 -0
- package/dist/components/context-meter/context-meter.class.js +158 -0
- package/dist/components/context-meter/context-meter.class.js.map +1 -0
- package/dist/components/context-meter/context-meter.d.ts +2 -53
- package/dist/components/context-meter/context-meter.d.ts.map +1 -0
- package/dist/components/context-meter/context-meter.js +3 -157
- package/dist/components/context-meter/context-meter.js.map +1 -0
- package/dist/components/context-meter/context-meter.styles.d.ts +1 -0
- package/dist/components/context-meter/context-meter.styles.d.ts.map +1 -0
- package/dist/components/context-meter/context-meter.styles.js +7 -6
- package/dist/components/context-meter/context-meter.styles.js.map +1 -0
- package/dist/components/conversation-item/conversation-item.class.d.ts +127 -0
- package/dist/components/conversation-item/conversation-item.class.d.ts.map +1 -0
- package/dist/components/conversation-item/conversation-item.class.js +328 -0
- package/dist/components/conversation-item/conversation-item.class.js.map +1 -0
- package/dist/components/conversation-item/conversation-item.d.ts +2 -125
- package/dist/components/conversation-item/conversation-item.d.ts.map +1 -0
- package/dist/components/conversation-item/conversation-item.js +3 -329
- package/dist/components/conversation-item/conversation-item.js.map +1 -0
- package/dist/components/conversation-item/conversation-item.styles.d.ts +1 -0
- package/dist/components/conversation-item/conversation-item.styles.d.ts.map +1 -0
- package/dist/components/conversation-item/conversation-item.styles.js +12 -11
- package/dist/components/conversation-item/conversation-item.styles.js.map +1 -0
- package/dist/components/copy-button/copy-button.class.d.ts +37 -0
- package/dist/components/copy-button/copy-button.class.d.ts.map +1 -0
- package/dist/components/copy-button/copy-button.class.js +116 -0
- package/dist/components/copy-button/copy-button.class.js.map +1 -0
- package/dist/components/copy-button/copy-button.d.ts +2 -0
- package/dist/components/copy-button/copy-button.d.ts.map +1 -0
- package/dist/components/copy-button/copy-button.js +5 -0
- package/dist/components/copy-button/copy-button.js.map +1 -0
- package/dist/components/copy-button/copy-button.styles.d.ts +2 -0
- package/dist/components/copy-button/copy-button.styles.d.ts.map +1 -0
- package/dist/components/copy-button/copy-button.styles.js +40 -0
- package/dist/components/copy-button/copy-button.styles.js.map +1 -0
- package/dist/components/date-picker/calendar-core.d.ts +1 -0
- package/dist/components/date-picker/calendar-core.d.ts.map +1 -0
- package/dist/components/date-picker/calendar-core.js +1 -0
- package/dist/components/date-picker/calendar-core.js.map +1 -0
- package/dist/components/date-picker/date-input.class.d.ts +185 -0
- package/dist/components/date-picker/date-input.class.d.ts.map +1 -0
- package/dist/components/date-picker/date-input.class.js +704 -0
- package/dist/components/date-picker/date-input.class.js.map +1 -0
- package/dist/components/date-picker/date-input.d.ts +3 -168
- package/dist/components/date-picker/date-input.d.ts.map +1 -0
- package/dist/components/date-picker/date-input.js +4 -675
- package/dist/components/date-picker/date-input.js.map +1 -0
- package/dist/components/date-picker/date-input.styles.d.ts +1 -0
- package/dist/components/date-picker/date-input.styles.d.ts.map +1 -0
- package/dist/components/date-picker/date-input.styles.js +11 -10
- package/dist/components/date-picker/date-input.styles.js.map +1 -0
- package/dist/components/date-picker/date-picker.class.d.ts +121 -0
- package/dist/components/date-picker/date-picker.class.d.ts.map +1 -0
- package/dist/components/date-picker/date-picker.class.js +541 -0
- package/dist/components/date-picker/date-picker.class.js.map +1 -0
- package/dist/components/date-picker/date-picker.d.ts +2 -103
- package/dist/components/date-picker/date-picker.d.ts.map +1 -0
- package/dist/components/date-picker/date-picker.js +3 -490
- package/dist/components/date-picker/date-picker.js.map +1 -0
- package/dist/components/date-picker/date-picker.styles.d.ts +1 -0
- package/dist/components/date-picker/date-picker.styles.d.ts.map +1 -0
- package/dist/components/date-picker/date-picker.styles.js +10 -9
- package/dist/components/date-picker/date-picker.styles.js.map +1 -0
- package/dist/components/dialog/confirm.d.ts +1 -0
- package/dist/components/dialog/confirm.d.ts.map +1 -0
- package/dist/components/dialog/confirm.js +1 -0
- package/dist/components/dialog/confirm.js.map +1 -0
- package/dist/components/dialog/dialog.class.d.ts +137 -0
- package/dist/components/dialog/dialog.class.d.ts.map +1 -0
- package/dist/components/dialog/dialog.class.js +301 -0
- package/dist/components/dialog/dialog.class.js.map +1 -0
- package/dist/components/dialog/dialog.d.ts +2 -129
- package/dist/components/dialog/dialog.d.ts.map +1 -0
- package/dist/components/dialog/dialog.js +3 -286
- package/dist/components/dialog/dialog.js.map +1 -0
- package/dist/components/dialog/dialog.styles.d.ts +1 -0
- package/dist/components/dialog/dialog.styles.d.ts.map +1 -0
- package/dist/components/dialog/dialog.styles.js +20 -9
- package/dist/components/dialog/dialog.styles.js.map +1 -0
- package/dist/components/diff-view/diff-line-diff.d.ts +13 -0
- package/dist/components/diff-view/diff-line-diff.d.ts.map +1 -0
- package/dist/components/diff-view/diff-line-diff.js +45 -0
- package/dist/components/diff-view/diff-line-diff.js.map +1 -0
- package/dist/components/diff-view/diff-view.class.d.ts +40 -0
- package/dist/components/diff-view/diff-view.class.d.ts.map +1 -0
- package/dist/components/diff-view/diff-view.class.js +73 -0
- package/dist/components/diff-view/diff-view.class.js.map +1 -0
- package/dist/components/diff-view/diff-view.d.ts +2 -0
- package/dist/components/diff-view/diff-view.d.ts.map +1 -0
- package/dist/components/diff-view/diff-view.js +5 -0
- package/dist/components/diff-view/diff-view.js.map +1 -0
- package/dist/components/diff-view/diff-view.styles.d.ts +2 -0
- package/dist/components/diff-view/diff-view.styles.d.ts.map +1 -0
- package/dist/components/diff-view/diff-view.styles.js +49 -0
- package/dist/components/diff-view/diff-view.styles.js.map +1 -0
- package/dist/components/dock-panel/dock-panel.class.d.ts +143 -0
- package/dist/components/dock-panel/dock-panel.class.d.ts.map +1 -0
- package/dist/components/dock-panel/dock-panel.class.js +358 -0
- package/dist/components/dock-panel/dock-panel.class.js.map +1 -0
- package/dist/components/dock-panel/dock-panel.d.ts +2 -142
- package/dist/components/dock-panel/dock-panel.d.ts.map +1 -0
- package/dist/components/dock-panel/dock-panel.js +3 -357
- package/dist/components/dock-panel/dock-panel.js.map +1 -0
- package/dist/components/dock-panel/dock-panel.styles.d.ts +1 -0
- package/dist/components/dock-panel/dock-panel.styles.d.ts.map +1 -0
- package/dist/components/dock-panel/dock-panel.styles.js +19 -12
- package/dist/components/dock-panel/dock-panel.styles.js.map +1 -0
- package/dist/components/document-preview/document-preview.class.d.ts +153 -0
- package/dist/components/document-preview/document-preview.class.d.ts.map +1 -0
- package/dist/components/document-preview/document-preview.class.js +387 -0
- package/dist/components/document-preview/document-preview.class.js.map +1 -0
- package/dist/components/document-preview/document-preview.d.ts +2 -143
- package/dist/components/document-preview/document-preview.d.ts.map +1 -0
- package/dist/components/document-preview/document-preview.js +3 -386
- package/dist/components/document-preview/document-preview.js.map +1 -0
- package/dist/components/document-preview/document-preview.styles.d.ts +1 -0
- package/dist/components/document-preview/document-preview.styles.d.ts.map +1 -0
- package/dist/components/document-preview/document-preview.styles.js +22 -21
- package/dist/components/document-preview/document-preview.styles.js.map +1 -0
- package/dist/components/empty/empty.class.d.ts +49 -0
- package/dist/components/empty/empty.class.d.ts.map +1 -0
- package/dist/components/empty/empty.class.js +138 -0
- package/dist/components/empty/empty.class.js.map +1 -0
- package/dist/components/empty/empty.d.ts +2 -42
- package/dist/components/empty/empty.d.ts.map +1 -0
- package/dist/components/empty/empty.js +3 -111
- package/dist/components/empty/empty.js.map +1 -0
- package/dist/components/empty/empty.styles.d.ts +1 -0
- package/dist/components/empty/empty.styles.d.ts.map +1 -0
- package/dist/components/empty/empty.styles.js +8 -7
- package/dist/components/empty/empty.styles.js.map +1 -0
- package/dist/components/export-button/csv.d.ts +1 -0
- package/dist/components/export-button/csv.d.ts.map +1 -0
- package/dist/components/export-button/csv.js +1 -0
- package/dist/components/export-button/csv.js.map +1 -0
- package/dist/components/export-button/export-button.class.d.ts +76 -0
- package/dist/components/export-button/export-button.class.d.ts.map +1 -0
- package/dist/components/export-button/export-button.class.js +262 -0
- package/dist/components/export-button/export-button.class.js.map +1 -0
- package/dist/components/export-button/export-button.d.ts +2 -67
- package/dist/components/export-button/export-button.d.ts.map +1 -0
- package/dist/components/export-button/export-button.js +3 -261
- package/dist/components/export-button/export-button.js.map +1 -0
- package/dist/components/export-button/export-button.styles.d.ts +1 -0
- package/dist/components/export-button/export-button.styles.d.ts.map +1 -0
- package/dist/components/export-button/export-button.styles.js +6 -5
- package/dist/components/export-button/export-button.styles.js.map +1 -0
- package/dist/components/file-input/accept.d.ts +1 -0
- package/dist/components/file-input/accept.d.ts.map +1 -0
- package/dist/components/file-input/accept.js +1 -0
- package/dist/components/file-input/accept.js.map +1 -0
- package/dist/components/file-input/file-input.class.d.ts +66 -0
- package/dist/components/file-input/file-input.class.d.ts.map +1 -0
- package/dist/components/file-input/file-input.class.js +227 -0
- package/dist/components/file-input/file-input.class.js.map +1 -0
- package/dist/components/file-input/file-input.d.ts +2 -59
- package/dist/components/file-input/file-input.d.ts.map +1 -0
- package/dist/components/file-input/file-input.js +3 -226
- package/dist/components/file-input/file-input.js.map +1 -0
- package/dist/components/file-input/file-input.styles.d.ts +1 -0
- package/dist/components/file-input/file-input.styles.d.ts.map +1 -0
- package/dist/components/file-input/file-input.styles.js +5 -4
- package/dist/components/file-input/file-input.styles.js.map +1 -0
- package/dist/components/flag/flag-peer.d.ts +8 -0
- package/dist/components/flag/flag-peer.d.ts.map +1 -0
- package/dist/components/flag/flag-peer.js +13 -0
- package/dist/components/flag/flag-peer.js.map +1 -0
- package/dist/components/flag/flag.class.d.ts +124 -0
- package/dist/components/flag/flag.class.d.ts.map +1 -0
- package/dist/components/flag/flag.class.js +251 -0
- package/dist/components/flag/flag.class.js.map +1 -0
- package/dist/components/flag/flag.d.ts +3 -121
- package/dist/components/flag/flag.d.ts.map +1 -0
- package/dist/components/flag/flag.js +4 -239
- package/dist/components/flag/flag.js.map +1 -0
- package/dist/components/flag/flag.styles.d.ts +1 -0
- package/dist/components/flag/flag.styles.d.ts.map +1 -0
- package/dist/components/flag/flag.styles.js +5 -4
- package/dist/components/flag/flag.styles.js.map +1 -0
- package/dist/components/flag/language-map.d.ts +1 -0
- package/dist/components/flag/language-map.d.ts.map +1 -0
- package/dist/components/flag/language-map.js +1 -0
- package/dist/components/flag/language-map.js.map +1 -0
- package/dist/components/gauge/gauge.class.d.ts +41 -0
- package/dist/components/gauge/gauge.class.d.ts.map +1 -0
- package/dist/components/gauge/gauge.class.js +178 -0
- package/dist/components/gauge/gauge.class.js.map +1 -0
- package/dist/components/gauge/gauge.d.ts +2 -40
- package/dist/components/gauge/gauge.d.ts.map +1 -0
- package/dist/components/gauge/gauge.js +3 -177
- package/dist/components/gauge/gauge.js.map +1 -0
- package/dist/components/gauge/gauge.styles.d.ts +1 -0
- package/dist/components/gauge/gauge.styles.d.ts.map +1 -0
- package/dist/components/gauge/gauge.styles.js +9 -8
- package/dist/components/gauge/gauge.styles.js.map +1 -0
- package/dist/components/generation-status/generation-status.class.d.ts +121 -0
- package/dist/components/generation-status/generation-status.class.d.ts.map +1 -0
- package/dist/components/generation-status/generation-status.class.js +326 -0
- package/dist/components/generation-status/generation-status.class.js.map +1 -0
- package/dist/components/generation-status/generation-status.d.ts +2 -117
- package/dist/components/generation-status/generation-status.d.ts.map +1 -0
- package/dist/components/generation-status/generation-status.js +3 -325
- package/dist/components/generation-status/generation-status.js.map +1 -0
- package/dist/components/generation-status/generation-status.styles.d.ts +1 -0
- package/dist/components/generation-status/generation-status.styles.d.ts.map +1 -0
- package/dist/components/generation-status/generation-status.styles.js +7 -6
- package/dist/components/generation-status/generation-status.styles.js.map +1 -0
- package/dist/components/graph/graph-loader.d.ts +13 -13
- package/dist/components/graph/graph-loader.d.ts.map +1 -0
- package/dist/components/graph/graph-loader.js +1 -0
- package/dist/components/graph/graph-loader.js.map +1 -0
- package/dist/components/graph/graph.class.d.ts +172 -0
- package/dist/components/graph/graph.class.d.ts.map +1 -0
- package/dist/components/graph/graph.class.js +617 -0
- package/dist/components/graph/graph.class.js.map +1 -0
- package/dist/components/graph/graph.d.ts +3 -157
- package/dist/components/graph/graph.d.ts.map +1 -0
- package/dist/components/graph/graph.js +4 -577
- package/dist/components/graph/graph.js.map +1 -0
- package/dist/components/graph/graph.styles.d.ts +1 -0
- package/dist/components/graph/graph.styles.d.ts.map +1 -0
- package/dist/components/graph/graph.styles.js +6 -1
- package/dist/components/graph/graph.styles.js.map +1 -0
- package/dist/components/heatmap/calendar-grid.d.ts +1 -0
- package/dist/components/heatmap/calendar-grid.d.ts.map +1 -0
- package/dist/components/heatmap/calendar-grid.js +1 -0
- package/dist/components/heatmap/calendar-grid.js.map +1 -0
- package/dist/components/heatmap/heatmap-scale.d.ts +9 -0
- package/dist/components/heatmap/heatmap-scale.d.ts.map +1 -0
- package/dist/components/heatmap/heatmap-scale.js +13 -0
- package/dist/components/heatmap/heatmap-scale.js.map +1 -0
- package/dist/components/heatmap/heatmap.class.d.ts +489 -0
- package/dist/components/heatmap/heatmap.class.d.ts.map +1 -0
- package/dist/components/heatmap/heatmap.class.js +1295 -0
- package/dist/components/heatmap/heatmap.class.js.map +1 -0
- package/dist/components/heatmap/heatmap.d.ts +2 -437
- package/dist/components/heatmap/heatmap.d.ts.map +1 -0
- package/dist/components/heatmap/heatmap.js +3 -1175
- package/dist/components/heatmap/heatmap.js.map +1 -0
- package/dist/components/heatmap/heatmap.styles.d.ts +1 -0
- package/dist/components/heatmap/heatmap.styles.d.ts.map +1 -0
- package/dist/components/heatmap/heatmap.styles.js +20 -20
- package/dist/components/heatmap/heatmap.styles.js.map +1 -0
- package/dist/components/json-viewer/json-viewer.class.d.ts +77 -0
- package/dist/components/json-viewer/json-viewer.class.d.ts.map +1 -0
- package/dist/components/json-viewer/json-viewer.class.js +362 -0
- package/dist/components/json-viewer/json-viewer.class.js.map +1 -0
- package/dist/components/json-viewer/json-viewer.d.ts +2 -70
- package/dist/components/json-viewer/json-viewer.d.ts.map +1 -0
- package/dist/components/json-viewer/json-viewer.js +3 -359
- package/dist/components/json-viewer/json-viewer.js.map +1 -0
- package/dist/components/json-viewer/json-viewer.styles.d.ts +1 -0
- package/dist/components/json-viewer/json-viewer.styles.d.ts.map +1 -0
- package/dist/components/json-viewer/json-viewer.styles.js +23 -20
- package/dist/components/json-viewer/json-viewer.styles.js.map +1 -0
- package/dist/components/kbd/kbd.class.d.ts +78 -0
- package/dist/components/kbd/kbd.class.d.ts.map +1 -0
- package/dist/components/kbd/kbd.class.js +230 -0
- package/dist/components/kbd/kbd.class.js.map +1 -0
- package/dist/components/kbd/kbd.d.ts +2 -77
- package/dist/components/kbd/kbd.d.ts.map +1 -0
- package/dist/components/kbd/kbd.js +3 -229
- package/dist/components/kbd/kbd.js.map +1 -0
- package/dist/components/kbd/kbd.styles.d.ts +1 -0
- package/dist/components/kbd/kbd.styles.d.ts.map +1 -0
- package/dist/components/kbd/kbd.styles.js +10 -9
- package/dist/components/kbd/kbd.styles.js.map +1 -0
- package/dist/components/live-region/live-region.class.d.ts +91 -0
- package/dist/components/live-region/live-region.class.d.ts.map +1 -0
- package/dist/components/live-region/live-region.class.js +188 -0
- package/dist/components/live-region/live-region.class.js.map +1 -0
- package/dist/components/live-region/live-region.d.ts +2 -90
- package/dist/components/live-region/live-region.d.ts.map +1 -0
- package/dist/components/live-region/live-region.js +3 -187
- package/dist/components/live-region/live-region.js.map +1 -0
- package/dist/components/live-region/live-region.styles.d.ts +1 -0
- package/dist/components/live-region/live-region.styles.d.ts.map +1 -0
- package/dist/components/live-region/live-region.styles.js +1 -0
- package/dist/components/live-region/live-region.styles.js.map +1 -0
- package/dist/components/map/map-loader.d.ts +5 -2
- package/dist/components/map/map-loader.d.ts.map +1 -0
- package/dist/components/map/map-loader.js +1 -0
- package/dist/components/map/map-loader.js.map +1 -0
- package/dist/components/map/map.class.d.ts +121 -0
- package/dist/components/map/map.class.d.ts.map +1 -0
- package/dist/components/map/map.class.js +477 -0
- package/dist/components/map/map.class.js.map +1 -0
- package/dist/components/map/map.d.ts +3 -111
- package/dist/components/map/map.d.ts.map +1 -0
- package/dist/components/map/map.js +4 -477
- package/dist/components/map/map.js.map +1 -0
- package/dist/components/map/map.styles.d.ts +1 -0
- package/dist/components/map/map.styles.d.ts.map +1 -0
- package/dist/components/map/map.styles.js +8 -7
- package/dist/components/map/map.styles.js.map +1 -0
- package/dist/components/markdown/markdown-loader.d.ts +6 -6
- package/dist/components/markdown/markdown-loader.d.ts.map +1 -0
- package/dist/components/markdown/markdown-loader.js +1 -0
- package/dist/components/markdown/markdown-loader.js.map +1 -0
- package/dist/components/markdown/markdown.class.d.ts +137 -0
- package/dist/components/markdown/markdown.class.d.ts.map +1 -0
- package/dist/components/markdown/markdown.class.js +427 -0
- package/dist/components/markdown/markdown.class.js.map +1 -0
- package/dist/components/markdown/markdown.d.ts +2 -119
- package/dist/components/markdown/markdown.d.ts.map +1 -0
- package/dist/components/markdown/markdown.js +3 -387
- package/dist/components/markdown/markdown.js.map +1 -0
- package/dist/components/markdown/markdown.styles.d.ts +1 -0
- package/dist/components/markdown/markdown.styles.d.ts.map +1 -0
- package/dist/components/markdown/markdown.styles.js +12 -11
- package/dist/components/markdown/markdown.styles.js.map +1 -0
- package/dist/components/media-card/media-card.class.d.ts +131 -0
- package/dist/components/media-card/media-card.class.d.ts.map +1 -0
- package/dist/components/media-card/media-card.class.js +272 -0
- package/dist/components/media-card/media-card.class.js.map +1 -0
- package/dist/components/media-card/media-card.d.ts +2 -130
- package/dist/components/media-card/media-card.d.ts.map +1 -0
- package/dist/components/media-card/media-card.js +3 -271
- package/dist/components/media-card/media-card.js.map +1 -0
- package/dist/components/media-card/media-card.styles.d.ts +1 -0
- package/dist/components/media-card/media-card.styles.d.ts.map +1 -0
- package/dist/components/media-card/media-card.styles.js +8 -7
- package/dist/components/media-card/media-card.styles.js.map +1 -0
- package/dist/components/mention-popover/mention-popover.class.d.ts +207 -0
- package/dist/components/mention-popover/mention-popover.class.d.ts.map +1 -0
- package/dist/components/mention-popover/mention-popover.class.js +492 -0
- package/dist/components/mention-popover/mention-popover.class.js.map +1 -0
- package/dist/components/mention-popover/mention-popover.d.ts +2 -203
- package/dist/components/mention-popover/mention-popover.d.ts.map +1 -0
- package/dist/components/mention-popover/mention-popover.js +3 -491
- package/dist/components/mention-popover/mention-popover.js.map +1 -0
- package/dist/components/mention-popover/mention-popover.styles.d.ts +1 -0
- package/dist/components/mention-popover/mention-popover.styles.d.ts.map +1 -0
- package/dist/components/mention-popover/mention-popover.styles.js +11 -10
- package/dist/components/mention-popover/mention-popover.styles.js.map +1 -0
- package/dist/components/menu/menu-item.class.d.ts +99 -0
- package/dist/components/menu/menu-item.class.d.ts.map +1 -0
- package/dist/components/menu/menu-item.class.js +205 -0
- package/dist/components/menu/menu-item.class.js.map +1 -0
- package/dist/components/menu/menu-item.d.ts +2 -91
- package/dist/components/menu/menu-item.d.ts.map +1 -0
- package/dist/components/menu/menu-item.js +3 -204
- package/dist/components/menu/menu-item.js.map +1 -0
- package/dist/components/menu/menu-item.styles.d.ts +1 -0
- package/dist/components/menu/menu-item.styles.d.ts.map +1 -0
- package/dist/components/menu/menu-item.styles.js +3 -2
- package/dist/components/menu/menu-item.styles.js.map +1 -0
- package/dist/components/menu/menu.class.d.ts +173 -0
- package/dist/components/menu/menu.class.d.ts.map +1 -0
- package/dist/components/menu/menu.class.js +462 -0
- package/dist/components/menu/menu.class.js.map +1 -0
- package/dist/components/menu/menu.d.ts +3 -167
- package/dist/components/menu/menu.d.ts.map +1 -0
- package/dist/components/menu/menu.js +4 -459
- package/dist/components/menu/menu.js.map +1 -0
- package/dist/components/menu/menu.styles.d.ts +1 -0
- package/dist/components/menu/menu.styles.d.ts.map +1 -0
- package/dist/components/menu/menu.styles.js +9 -8
- package/dist/components/menu/menu.styles.js.map +1 -0
- package/dist/components/model-select/model-select.class.d.ts +177 -0
- package/dist/components/model-select/model-select.class.d.ts.map +1 -0
- package/dist/components/model-select/model-select.class.js +587 -0
- package/dist/components/model-select/model-select.class.js.map +1 -0
- package/dist/components/model-select/model-select.d.ts +2 -170
- package/dist/components/model-select/model-select.d.ts.map +1 -0
- package/dist/components/model-select/model-select.js +3 -586
- package/dist/components/model-select/model-select.js.map +1 -0
- package/dist/components/model-select/model-select.styles.d.ts +1 -0
- package/dist/components/model-select/model-select.styles.d.ts.map +1 -0
- package/dist/components/model-select/model-select.styles.js +24 -23
- package/dist/components/model-select/model-select.styles.js.map +1 -0
- package/dist/components/model-settings-panel/model-settings-panel.class.d.ts +94 -0
- package/dist/components/model-settings-panel/model-settings-panel.class.d.ts.map +1 -0
- package/dist/components/model-settings-panel/model-settings-panel.class.js +208 -0
- package/dist/components/model-settings-panel/model-settings-panel.class.js.map +1 -0
- package/dist/components/model-settings-panel/model-settings-panel.d.ts +4 -93
- package/dist/components/model-settings-panel/model-settings-panel.d.ts.map +1 -0
- package/dist/components/model-settings-panel/model-settings-panel.js +5 -207
- package/dist/components/model-settings-panel/model-settings-panel.js.map +1 -0
- package/dist/components/model-settings-panel/model-settings-panel.styles.d.ts +1 -0
- package/dist/components/model-settings-panel/model-settings-panel.styles.d.ts.map +1 -0
- package/dist/components/model-settings-panel/model-settings-panel.styles.js +12 -11
- package/dist/components/model-settings-panel/model-settings-panel.styles.js.map +1 -0
- package/dist/components/playback/playback.class.d.ts +79 -0
- package/dist/components/playback/playback.class.d.ts.map +1 -0
- package/dist/components/playback/playback.class.js +251 -0
- package/dist/components/playback/playback.class.js.map +1 -0
- package/dist/components/playback/playback.d.ts +2 -71
- package/dist/components/playback/playback.d.ts.map +1 -0
- package/dist/components/playback/playback.js +3 -250
- package/dist/components/playback/playback.js.map +1 -0
- package/dist/components/playback/playback.styles.d.ts +1 -0
- package/dist/components/playback/playback.styles.d.ts.map +1 -0
- package/dist/components/playback/playback.styles.js +2 -1
- package/dist/components/playback/playback.styles.js.map +1 -0
- package/dist/components/poll-status/poll-status.class.d.ts +54 -0
- package/dist/components/poll-status/poll-status.class.d.ts.map +1 -0
- package/dist/components/poll-status/poll-status.class.js +150 -0
- package/dist/components/poll-status/poll-status.class.js.map +1 -0
- package/dist/components/poll-status/poll-status.d.ts +3 -0
- package/dist/components/poll-status/poll-status.d.ts.map +1 -0
- package/dist/components/poll-status/poll-status.js +6 -0
- package/dist/components/poll-status/poll-status.js.map +1 -0
- package/dist/components/poll-status/poll-status.styles.d.ts +2 -0
- package/dist/components/poll-status/poll-status.styles.d.ts.map +1 -0
- package/dist/components/poll-status/poll-status.styles.js +53 -0
- package/dist/components/poll-status/poll-status.styles.js.map +1 -0
- package/dist/components/responsive-panel/responsive-panel.class.d.ts +164 -0
- package/dist/components/responsive-panel/responsive-panel.class.d.ts.map +1 -0
- package/dist/components/responsive-panel/responsive-panel.class.js +362 -0
- package/dist/components/responsive-panel/responsive-panel.class.js.map +1 -0
- package/dist/components/responsive-panel/responsive-panel.d.ts +2 -163
- package/dist/components/responsive-panel/responsive-panel.d.ts.map +1 -0
- package/dist/components/responsive-panel/responsive-panel.js +3 -361
- package/dist/components/responsive-panel/responsive-panel.js.map +1 -0
- package/dist/components/responsive-panel/responsive-panel.styles.d.ts +1 -0
- package/dist/components/responsive-panel/responsive-panel.styles.d.ts.map +1 -0
- package/dist/components/responsive-panel/responsive-panel.styles.js +8 -5
- package/dist/components/responsive-panel/responsive-panel.styles.js.map +1 -0
- package/dist/components/result-card/result-card.class.d.ts +51 -0
- package/dist/components/result-card/result-card.class.d.ts.map +1 -0
- package/dist/components/result-card/result-card.class.js +88 -0
- package/dist/components/result-card/result-card.class.js.map +1 -0
- package/dist/components/result-card/result-card.d.ts +2 -50
- package/dist/components/result-card/result-card.d.ts.map +1 -0
- package/dist/components/result-card/result-card.js +3 -87
- package/dist/components/result-card/result-card.js.map +1 -0
- package/dist/components/result-card/result-card.styles.d.ts +1 -0
- package/dist/components/result-card/result-card.styles.d.ts.map +1 -0
- package/dist/components/result-card/result-card.styles.js +5 -4
- package/dist/components/result-card/result-card.styles.js.map +1 -0
- package/dist/components/result-card/result-field.class.d.ts +37 -0
- package/dist/components/result-card/result-field.class.d.ts.map +1 -0
- package/dist/components/result-card/result-field.class.js +86 -0
- package/dist/components/result-card/result-field.class.js.map +1 -0
- package/dist/components/result-card/result-field.d.ts +2 -36
- package/dist/components/result-card/result-field.d.ts.map +1 -0
- package/dist/components/result-card/result-field.js +3 -85
- package/dist/components/result-card/result-field.js.map +1 -0
- package/dist/components/result-card/result-field.styles.d.ts +1 -0
- package/dist/components/result-card/result-field.styles.d.ts.map +1 -0
- package/dist/components/result-card/result-field.styles.js +3 -2
- package/dist/components/result-card/result-field.styles.js.map +1 -0
- package/dist/components/segmented/segmented.class.d.ts +44 -0
- package/dist/components/segmented/segmented.class.d.ts.map +1 -0
- package/dist/components/segmented/segmented.class.js +100 -0
- package/dist/components/segmented/segmented.class.js.map +1 -0
- package/dist/components/segmented/segmented.d.ts +2 -0
- package/dist/components/segmented/segmented.d.ts.map +1 -0
- package/dist/components/segmented/segmented.js +5 -0
- package/dist/components/segmented/segmented.js.map +1 -0
- package/dist/components/segmented/segmented.styles.d.ts +2 -0
- package/dist/components/segmented/segmented.styles.d.ts.map +1 -0
- package/dist/components/segmented/segmented.styles.js +38 -0
- package/dist/components/segmented/segmented.styles.js.map +1 -0
- package/dist/components/select/select.class.d.ts +212 -0
- package/dist/components/select/select.class.d.ts.map +1 -0
- package/dist/components/select/select.class.js +694 -0
- package/dist/components/select/select.class.js.map +1 -0
- package/dist/components/select/select.d.ts +3 -205
- package/dist/components/select/select.d.ts.map +1 -0
- package/dist/components/select/select.js +4 -693
- package/dist/components/select/select.js.map +1 -0
- package/dist/components/select/select.styles.d.ts +1 -0
- package/dist/components/select/select.styles.d.ts.map +1 -0
- package/dist/components/select/select.styles.js +41 -35
- package/dist/components/select/select.styles.js.map +1 -0
- package/dist/components/skeleton/skeleton.class.d.ts +30 -0
- package/dist/components/skeleton/skeleton.class.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton.class.js +67 -0
- package/dist/components/skeleton/skeleton.class.js.map +1 -0
- package/dist/components/skeleton/skeleton.d.ts +2 -29
- package/dist/components/skeleton/skeleton.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton.js +3 -66
- package/dist/components/skeleton/skeleton.js.map +1 -0
- package/dist/components/skeleton/skeleton.styles.d.ts +1 -0
- package/dist/components/skeleton/skeleton.styles.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton.styles.js +2 -1
- package/dist/components/skeleton/skeleton.styles.js.map +1 -0
- package/dist/components/slider/slider.class.d.ts +152 -0
- package/dist/components/slider/slider.class.d.ts.map +1 -0
- package/dist/components/slider/slider.class.js +468 -0
- package/dist/components/slider/slider.class.js.map +1 -0
- package/dist/components/slider/slider.d.ts +2 -141
- package/dist/components/slider/slider.d.ts.map +1 -0
- package/dist/components/slider/slider.js +3 -465
- package/dist/components/slider/slider.js.map +1 -0
- package/dist/components/slider/slider.styles.d.ts +1 -0
- package/dist/components/slider/slider.styles.d.ts.map +1 -0
- package/dist/components/slider/slider.styles.js +15 -14
- package/dist/components/slider/slider.styles.js.map +1 -0
- package/dist/components/source-card/source-card.class.d.ts +105 -0
- package/dist/components/source-card/source-card.class.d.ts.map +1 -0
- package/dist/components/source-card/source-card.class.js +194 -0
- package/dist/components/source-card/source-card.class.js.map +1 -0
- package/dist/components/source-card/source-card.d.ts +2 -104
- package/dist/components/source-card/source-card.d.ts.map +1 -0
- package/dist/components/source-card/source-card.js +3 -193
- package/dist/components/source-card/source-card.js.map +1 -0
- package/dist/components/source-card/source-card.styles.d.ts +1 -0
- package/dist/components/source-card/source-card.styles.d.ts.map +1 -0
- package/dist/components/source-card/source-card.styles.js +11 -10
- package/dist/components/source-card/source-card.styles.js.map +1 -0
- package/dist/components/source-list/source-list.class.d.ts +64 -0
- package/dist/components/source-list/source-list.class.d.ts.map +1 -0
- package/dist/components/source-list/source-list.class.js +129 -0
- package/dist/components/source-list/source-list.class.js.map +1 -0
- package/dist/components/source-list/source-list.d.ts +2 -63
- package/dist/components/source-list/source-list.d.ts.map +1 -0
- package/dist/components/source-list/source-list.js +3 -128
- package/dist/components/source-list/source-list.js.map +1 -0
- package/dist/components/source-list/source-list.styles.d.ts +1 -0
- package/dist/components/source-list/source-list.styles.d.ts.map +1 -0
- package/dist/components/source-list/source-list.styles.js +5 -4
- package/dist/components/source-list/source-list.styles.js.map +1 -0
- package/dist/components/sparkline/sparkline.class.d.ts +31 -0
- package/dist/components/sparkline/sparkline.class.d.ts.map +1 -0
- package/dist/components/sparkline/sparkline.class.js +140 -0
- package/dist/components/sparkline/sparkline.class.js.map +1 -0
- package/dist/components/sparkline/sparkline.d.ts +2 -30
- package/dist/components/sparkline/sparkline.d.ts.map +1 -0
- package/dist/components/sparkline/sparkline.js +3 -137
- package/dist/components/sparkline/sparkline.js.map +1 -0
- package/dist/components/sparkline/sparkline.styles.d.ts +1 -0
- package/dist/components/sparkline/sparkline.styles.d.ts.map +1 -0
- package/dist/components/sparkline/sparkline.styles.js +3 -2
- package/dist/components/sparkline/sparkline.styles.js.map +1 -0
- package/dist/components/split/split.class.d.ts +293 -0
- package/dist/components/split/split.class.d.ts.map +1 -0
- package/dist/components/split/split.class.js +894 -0
- package/dist/components/split/split.class.js.map +1 -0
- package/dist/components/split/split.d.ts +2 -282
- package/dist/components/split/split.d.ts.map +1 -0
- package/dist/components/split/split.js +3 -888
- package/dist/components/split/split.js.map +1 -0
- package/dist/components/split/split.styles.d.ts +1 -0
- package/dist/components/split/split.styles.d.ts.map +1 -0
- package/dist/components/split/split.styles.js +8 -7
- package/dist/components/split/split.styles.js.map +1 -0
- package/dist/components/stat/stat.class.d.ts +90 -0
- package/dist/components/stat/stat.class.d.ts.map +1 -0
- package/dist/components/stat/stat.class.js +249 -0
- package/dist/components/stat/stat.class.js.map +1 -0
- package/dist/components/stat/stat.d.ts +2 -89
- package/dist/components/stat/stat.d.ts.map +1 -0
- package/dist/components/stat/stat.js +3 -248
- package/dist/components/stat/stat.js.map +1 -0
- package/dist/components/stat/stat.styles.d.ts +1 -0
- package/dist/components/stat/stat.styles.d.ts.map +1 -0
- package/dist/components/stat/stat.styles.js +25 -22
- package/dist/components/stat/stat.styles.js.map +1 -0
- package/dist/components/stepper/stepper.class.d.ts +52 -0
- package/dist/components/stepper/stepper.class.d.ts.map +1 -0
- package/dist/components/stepper/stepper.class.js +138 -0
- package/dist/components/stepper/stepper.class.js.map +1 -0
- package/dist/components/stepper/stepper.d.ts +2 -0
- package/dist/components/stepper/stepper.d.ts.map +1 -0
- package/dist/components/stepper/stepper.js +5 -0
- package/dist/components/stepper/stepper.js.map +1 -0
- package/dist/components/stepper/stepper.styles.d.ts +2 -0
- package/dist/components/stepper/stepper.styles.d.ts.map +1 -0
- package/dist/components/stepper/stepper.styles.js +67 -0
- package/dist/components/stepper/stepper.styles.js.map +1 -0
- package/dist/components/stream-status/stream-status.class.d.ts +131 -0
- package/dist/components/stream-status/stream-status.class.d.ts.map +1 -0
- package/dist/components/stream-status/stream-status.class.js +291 -0
- package/dist/components/stream-status/stream-status.class.js.map +1 -0
- package/dist/components/stream-status/stream-status.d.ts +3 -126
- package/dist/components/stream-status/stream-status.d.ts.map +1 -0
- package/dist/components/stream-status/stream-status.js +4 -290
- package/dist/components/stream-status/stream-status.js.map +1 -0
- package/dist/components/stream-status/stream-status.styles.d.ts +1 -0
- package/dist/components/stream-status/stream-status.styles.d.ts.map +1 -0
- package/dist/components/stream-status/stream-status.styles.js +7 -6
- package/dist/components/stream-status/stream-status.styles.js.map +1 -0
- package/dist/components/streaming-text/streaming-text.class.d.ts +105 -0
- package/dist/components/streaming-text/streaming-text.class.d.ts.map +1 -0
- package/dist/components/streaming-text/streaming-text.class.js +223 -0
- package/dist/components/streaming-text/streaming-text.class.js.map +1 -0
- package/dist/components/streaming-text/streaming-text.d.ts +3 -104
- package/dist/components/streaming-text/streaming-text.d.ts.map +1 -0
- package/dist/components/streaming-text/streaming-text.js +4 -222
- package/dist/components/streaming-text/streaming-text.js.map +1 -0
- package/dist/components/streaming-text/streaming-text.styles.d.ts +1 -0
- package/dist/components/streaming-text/streaming-text.styles.d.ts.map +1 -0
- package/dist/components/streaming-text/streaming-text.styles.js +4 -3
- package/dist/components/streaming-text/streaming-text.styles.js.map +1 -0
- package/dist/components/switch/switch.class.d.ts +109 -0
- package/dist/components/switch/switch.class.d.ts.map +1 -0
- package/dist/components/switch/switch.class.js +249 -0
- package/dist/components/switch/switch.class.js.map +1 -0
- package/dist/components/switch/switch.d.ts +2 -103
- package/dist/components/switch/switch.d.ts.map +1 -0
- package/dist/components/switch/switch.js +3 -248
- package/dist/components/switch/switch.js.map +1 -0
- package/dist/components/switch/switch.styles.d.ts +1 -0
- package/dist/components/switch/switch.styles.d.ts.map +1 -0
- package/dist/components/switch/switch.styles.js +18 -14
- package/dist/components/switch/switch.styles.js.map +1 -0
- package/dist/components/table/table.class.d.ts +223 -0
- package/dist/components/table/table.class.d.ts.map +1 -0
- package/dist/components/table/table.class.js +630 -0
- package/dist/components/table/table.class.js.map +1 -0
- package/dist/components/table/table.d.ts +3 -199
- package/dist/components/table/table.d.ts.map +1 -0
- package/dist/components/table/table.js +4 -611
- package/dist/components/table/table.js.map +1 -0
- package/dist/components/table/table.styles.d.ts +1 -0
- package/dist/components/table/table.styles.d.ts.map +1 -0
- package/dist/components/table/table.styles.js +23 -8
- package/dist/components/table/table.styles.js.map +1 -0
- package/dist/components/tabs/tabs.class.d.ts +80 -0
- package/dist/components/tabs/tabs.class.d.ts.map +1 -0
- package/dist/components/tabs/tabs.class.js +253 -0
- package/dist/components/tabs/tabs.class.js.map +1 -0
- package/dist/components/tabs/tabs.d.ts +2 -74
- package/dist/components/tabs/tabs.d.ts.map +1 -0
- package/dist/components/tabs/tabs.js +3 -252
- package/dist/components/tabs/tabs.js.map +1 -0
- package/dist/components/tabs/tabs.styles.d.ts +1 -0
- package/dist/components/tabs/tabs.styles.d.ts.map +1 -0
- package/dist/components/tabs/tabs.styles.js +11 -4
- package/dist/components/tabs/tabs.styles.js.map +1 -0
- package/dist/components/thinking-panel/thinking-panel.class.d.ts +124 -0
- package/dist/components/thinking-panel/thinking-panel.class.d.ts.map +1 -0
- package/dist/components/thinking-panel/thinking-panel.class.js +259 -0
- package/dist/components/thinking-panel/thinking-panel.class.js.map +1 -0
- package/dist/components/thinking-panel/thinking-panel.d.ts +2 -123
- package/dist/components/thinking-panel/thinking-panel.d.ts.map +1 -0
- package/dist/components/thinking-panel/thinking-panel.js +3 -258
- package/dist/components/thinking-panel/thinking-panel.js.map +1 -0
- package/dist/components/thinking-panel/thinking-panel.styles.d.ts +1 -0
- package/dist/components/thinking-panel/thinking-panel.styles.d.ts.map +1 -0
- package/dist/components/thinking-panel/thinking-panel.styles.js +13 -12
- package/dist/components/thinking-panel/thinking-panel.styles.js.map +1 -0
- package/dist/components/time-range/time-range.class.d.ts +137 -0
- package/dist/components/time-range/time-range.class.d.ts.map +1 -0
- package/dist/components/time-range/time-range.class.js +495 -0
- package/dist/components/time-range/time-range.class.js.map +1 -0
- package/dist/components/time-range/time-range.d.ts +2 -126
- package/dist/components/time-range/time-range.d.ts.map +1 -0
- package/dist/components/time-range/time-range.js +3 -494
- package/dist/components/time-range/time-range.js.map +1 -0
- package/dist/components/time-range/time-range.styles.d.ts +1 -0
- package/dist/components/time-range/time-range.styles.d.ts.map +1 -0
- package/dist/components/time-range/time-range.styles.js +21 -13
- package/dist/components/time-range/time-range.styles.js.map +1 -0
- package/dist/components/toast/toast-item.class.d.ts +79 -0
- package/dist/components/toast/toast-item.class.d.ts.map +1 -0
- package/dist/components/toast/toast-item.class.js +324 -0
- package/dist/components/toast/toast-item.class.js.map +1 -0
- package/dist/components/toast/toast-item.d.ts +2 -72
- package/dist/components/toast/toast-item.d.ts.map +1 -0
- package/dist/components/toast/toast-item.js +3 -323
- package/dist/components/toast/toast-item.js.map +1 -0
- package/dist/components/toast/toast-item.styles.d.ts +1 -0
- package/dist/components/toast/toast-item.styles.d.ts.map +1 -0
- package/dist/components/toast/toast-item.styles.js +13 -12
- package/dist/components/toast/toast-item.styles.js.map +1 -0
- package/dist/components/toast/toast.class.d.ts +33 -0
- package/dist/components/toast/toast.class.d.ts.map +1 -0
- package/dist/components/toast/toast.class.js +59 -0
- package/dist/components/toast/toast.class.js.map +1 -0
- package/dist/components/toast/toast.d.ts +3 -32
- package/dist/components/toast/toast.d.ts.map +1 -0
- package/dist/components/toast/toast.js +4 -58
- package/dist/components/toast/toast.js.map +1 -0
- package/dist/components/toast/toast.styles.d.ts +1 -0
- package/dist/components/toast/toast.styles.d.ts.map +1 -0
- package/dist/components/toast/toast.styles.js +20 -16
- package/dist/components/toast/toast.styles.js.map +1 -0
- package/dist/components/toast/toaster.d.ts +1 -0
- package/dist/components/toast/toaster.d.ts.map +1 -0
- package/dist/components/toast/toaster.js +1 -0
- package/dist/components/toast/toaster.js.map +1 -0
- package/dist/components/tool-approval-dialog/tool-approval-dialog.class.d.ts +135 -0
- package/dist/components/tool-approval-dialog/tool-approval-dialog.class.d.ts.map +1 -0
- package/dist/components/tool-approval-dialog/tool-approval-dialog.class.js +328 -0
- package/dist/components/tool-approval-dialog/tool-approval-dialog.class.js.map +1 -0
- package/dist/components/tool-approval-dialog/tool-approval-dialog.d.ts +3 -131
- package/dist/components/tool-approval-dialog/tool-approval-dialog.d.ts.map +1 -0
- package/dist/components/tool-approval-dialog/tool-approval-dialog.js +4 -327
- package/dist/components/tool-approval-dialog/tool-approval-dialog.js.map +1 -0
- package/dist/components/tool-approval-dialog/tool-approval-dialog.styles.d.ts +1 -0
- package/dist/components/tool-approval-dialog/tool-approval-dialog.styles.d.ts.map +1 -0
- package/dist/components/tool-approval-dialog/tool-approval-dialog.styles.js +22 -18
- package/dist/components/tool-approval-dialog/tool-approval-dialog.styles.js.map +1 -0
- package/dist/components/tool-call-chip/tool-call-chip.class.d.ts +106 -0
- package/dist/components/tool-call-chip/tool-call-chip.class.d.ts.map +1 -0
- package/dist/components/tool-call-chip/tool-call-chip.class.js +348 -0
- package/dist/components/tool-call-chip/tool-call-chip.class.js.map +1 -0
- package/dist/components/tool-call-chip/tool-call-chip.d.ts +2 -105
- package/dist/components/tool-call-chip/tool-call-chip.d.ts.map +1 -0
- package/dist/components/tool-call-chip/tool-call-chip.js +3 -347
- package/dist/components/tool-call-chip/tool-call-chip.js.map +1 -0
- package/dist/components/tool-call-chip/tool-call-chip.styles.d.ts +1 -0
- package/dist/components/tool-call-chip/tool-call-chip.styles.d.ts.map +1 -0
- package/dist/components/tool-call-chip/tool-call-chip.styles.js +22 -21
- package/dist/components/tool-call-chip/tool-call-chip.styles.js.map +1 -0
- package/dist/components/tool-param-form/tool-param-form.class.d.ts +216 -0
- package/dist/components/tool-param-form/tool-param-form.class.d.ts.map +1 -0
- package/dist/components/tool-param-form/tool-param-form.class.js +609 -0
- package/dist/components/tool-param-form/tool-param-form.class.js.map +1 -0
- package/dist/components/tool-param-form/tool-param-form.d.ts +5 -206
- package/dist/components/tool-param-form/tool-param-form.d.ts.map +1 -0
- package/dist/components/tool-param-form/tool-param-form.js +6 -608
- package/dist/components/tool-param-form/tool-param-form.js.map +1 -0
- package/dist/components/tool-param-form/tool-param-form.styles.d.ts +1 -0
- package/dist/components/tool-param-form/tool-param-form.styles.d.ts.map +1 -0
- package/dist/components/tool-param-form/tool-param-form.styles.js +9 -8
- package/dist/components/tool-param-form/tool-param-form.styles.js.map +1 -0
- package/dist/components/tool-result-dialog/tool-result-dialog.class.d.ts +123 -0
- package/dist/components/tool-result-dialog/tool-result-dialog.class.d.ts.map +1 -0
- package/dist/components/tool-result-dialog/tool-result-dialog.class.js +357 -0
- package/dist/components/tool-result-dialog/tool-result-dialog.class.js.map +1 -0
- package/dist/components/tool-result-dialog/tool-result-dialog.d.ts +2 -122
- package/dist/components/tool-result-dialog/tool-result-dialog.d.ts.map +1 -0
- package/dist/components/tool-result-dialog/tool-result-dialog.js +3 -356
- package/dist/components/tool-result-dialog/tool-result-dialog.js.map +1 -0
- package/dist/components/tool-result-dialog/tool-result-dialog.styles.d.ts +1 -0
- package/dist/components/tool-result-dialog/tool-result-dialog.styles.d.ts.map +1 -0
- package/dist/components/tool-result-dialog/tool-result-dialog.styles.js +24 -16
- package/dist/components/tool-result-dialog/tool-result-dialog.styles.js.map +1 -0
- package/dist/components/tool-result-view/registry.d.ts +1 -0
- package/dist/components/tool-result-view/registry.d.ts.map +1 -0
- package/dist/components/tool-result-view/registry.js +1 -0
- package/dist/components/tool-result-view/registry.js.map +1 -0
- package/dist/components/tool-result-view/tool-result-view.class.d.ts +65 -0
- package/dist/components/tool-result-view/tool-result-view.class.d.ts.map +1 -0
- package/dist/components/tool-result-view/tool-result-view.class.js +151 -0
- package/dist/components/tool-result-view/tool-result-view.class.js.map +1 -0
- package/dist/components/tool-result-view/tool-result-view.d.ts +4 -58
- package/dist/components/tool-result-view/tool-result-view.d.ts.map +1 -0
- package/dist/components/tool-result-view/tool-result-view.js +5 -150
- package/dist/components/tool-result-view/tool-result-view.js.map +1 -0
- package/dist/components/tool-result-view/tool-result-view.styles.d.ts +1 -0
- package/dist/components/tool-result-view/tool-result-view.styles.d.ts.map +1 -0
- package/dist/components/tool-result-view/tool-result-view.styles.js +1 -0
- package/dist/components/tool-result-view/tool-result-view.styles.js.map +1 -0
- package/dist/components/tool-select-dialog/tool-select-dialog.class.d.ts +152 -0
- package/dist/components/tool-select-dialog/tool-select-dialog.class.d.ts.map +1 -0
- package/dist/components/tool-select-dialog/tool-select-dialog.class.js +349 -0
- package/dist/components/tool-select-dialog/tool-select-dialog.class.js.map +1 -0
- package/dist/components/tool-select-dialog/tool-select-dialog.d.ts +4 -151
- package/dist/components/tool-select-dialog/tool-select-dialog.d.ts.map +1 -0
- package/dist/components/tool-select-dialog/tool-select-dialog.js +5 -348
- package/dist/components/tool-select-dialog/tool-select-dialog.js.map +1 -0
- package/dist/components/tool-select-dialog/tool-select-dialog.styles.d.ts +1 -0
- package/dist/components/tool-select-dialog/tool-select-dialog.styles.d.ts.map +1 -0
- package/dist/components/tool-select-dialog/tool-select-dialog.styles.js +29 -25
- package/dist/components/tool-select-dialog/tool-select-dialog.styles.js.map +1 -0
- package/dist/components/tree/tree-node.class.d.ts +78 -0
- package/dist/components/tree/tree-node.class.d.ts.map +1 -0
- package/dist/components/tree/tree-node.class.js +223 -0
- package/dist/components/tree/tree-node.class.js.map +1 -0
- package/dist/components/tree/tree-node.d.ts +2 -68
- package/dist/components/tree/tree-node.d.ts.map +1 -0
- package/dist/components/tree/tree-node.js +4 -222
- package/dist/components/tree/tree-node.js.map +1 -0
- package/dist/components/tree/tree.class.d.ts +130 -0
- package/dist/components/tree/tree.class.d.ts.map +1 -0
- package/dist/components/tree/tree.class.js +326 -0
- package/dist/components/tree/tree.class.js.map +1 -0
- package/dist/components/tree/tree.d.ts +3 -129
- package/dist/components/tree/tree.d.ts.map +1 -0
- package/dist/components/tree/tree.js +5 -325
- package/dist/components/tree/tree.js.map +1 -0
- package/dist/components/tree/tree.styles.d.ts +1 -0
- package/dist/components/tree/tree.styles.d.ts.map +1 -0
- package/dist/components/tree/tree.styles.js +1 -0
- package/dist/components/tree/tree.styles.js.map +1 -0
- package/dist/components/tree/update-cascade.d.ts +1 -0
- package/dist/components/tree/update-cascade.d.ts.map +1 -0
- package/dist/components/tree/update-cascade.js +1 -0
- package/dist/components/tree/update-cascade.js.map +1 -0
- package/dist/components/typing-indicator/typing-indicator.class.d.ts +71 -0
- package/dist/components/typing-indicator/typing-indicator.class.d.ts.map +1 -0
- package/dist/components/typing-indicator/typing-indicator.class.js +107 -0
- package/dist/components/typing-indicator/typing-indicator.class.js.map +1 -0
- package/dist/components/typing-indicator/typing-indicator.d.ts +2 -70
- package/dist/components/typing-indicator/typing-indicator.d.ts.map +1 -0
- package/dist/components/typing-indicator/typing-indicator.js +3 -106
- package/dist/components/typing-indicator/typing-indicator.js.map +1 -0
- package/dist/components/typing-indicator/typing-indicator.styles.d.ts +1 -0
- package/dist/components/typing-indicator/typing-indicator.styles.d.ts.map +1 -0
- package/dist/components/typing-indicator/typing-indicator.styles.js +7 -6
- package/dist/components/typing-indicator/typing-indicator.styles.js.map +1 -0
- package/dist/components/virtual-list/virtual-list.class.d.ts +215 -0
- package/dist/components/virtual-list/virtual-list.class.d.ts.map +1 -0
- package/dist/components/virtual-list/virtual-list.class.js +609 -0
- package/dist/components/virtual-list/virtual-list.class.js.map +1 -0
- package/dist/components/virtual-list/virtual-list.d.ts +2 -210
- package/dist/components/virtual-list/virtual-list.d.ts.map +1 -0
- package/dist/components/virtual-list/virtual-list.js +3 -605
- package/dist/components/virtual-list/virtual-list.js.map +1 -0
- package/dist/components/virtual-list/virtual-list.styles.d.ts +1 -0
- package/dist/components/virtual-list/virtual-list.styles.d.ts.map +1 -0
- package/dist/components/virtual-list/virtual-list.styles.js +5 -4
- package/dist/components/virtual-list/virtual-list.styles.js.map +1 -0
- package/dist/components/widget/widget.class.d.ts +100 -0
- package/dist/components/widget/widget.class.d.ts.map +1 -0
- package/dist/components/widget/widget.class.js +327 -0
- package/dist/components/widget/widget.class.js.map +1 -0
- package/dist/components/widget/widget.d.ts +2 -65
- package/dist/components/widget/widget.d.ts.map +1 -0
- package/dist/components/widget/widget.js +3 -249
- package/dist/components/widget/widget.js.map +1 -0
- package/dist/components/widget/widget.styles.d.ts +1 -0
- package/dist/components/widget/widget.styles.d.ts.map +1 -0
- package/dist/components/widget/widget.styles.js +54 -9
- package/dist/components/widget/widget.styles.js.map +1 -0
- package/dist/components/word-cloud/word-cloud-layout.d.ts +1 -0
- package/dist/components/word-cloud/word-cloud-layout.d.ts.map +1 -0
- package/dist/components/word-cloud/word-cloud-layout.js +1 -0
- package/dist/components/word-cloud/word-cloud-layout.js.map +1 -0
- package/dist/components/word-cloud/word-cloud.class.d.ts +99 -0
- package/dist/components/word-cloud/word-cloud.class.d.ts.map +1 -0
- package/dist/components/word-cloud/word-cloud.class.js +307 -0
- package/dist/components/word-cloud/word-cloud.class.js.map +1 -0
- package/dist/components/word-cloud/word-cloud.d.ts +2 -91
- package/dist/components/word-cloud/word-cloud.d.ts.map +1 -0
- package/dist/components/word-cloud/word-cloud.js +3 -303
- package/dist/components/word-cloud/word-cloud.js.map +1 -0
- package/dist/components/word-cloud/word-cloud.styles.d.ts +1 -0
- package/dist/components/word-cloud/word-cloud.styles.d.ts.map +1 -0
- package/dist/components/word-cloud/word-cloud.styles.js +32 -18
- package/dist/components/word-cloud/word-cloud.styles.js.map +1 -0
- package/dist/internal/a11y.d.ts +1 -0
- package/dist/internal/a11y.d.ts.map +1 -0
- package/dist/internal/a11y.js +1 -0
- package/dist/internal/a11y.js.map +1 -0
- package/dist/internal/anchored-validity.d.ts +1 -0
- package/dist/internal/anchored-validity.d.ts.map +1 -0
- package/dist/internal/anchored-validity.js +1 -0
- package/dist/internal/anchored-validity.js.map +1 -0
- package/dist/internal/announcer.d.ts +1 -0
- package/dist/internal/announcer.d.ts.map +1 -0
- package/dist/internal/announcer.js +1 -0
- package/dist/internal/announcer.js.map +1 -0
- package/dist/internal/form-associated.d.ts +1 -0
- package/dist/internal/form-associated.d.ts.map +1 -0
- package/dist/internal/form-associated.js +1 -0
- package/dist/internal/form-associated.js.map +1 -0
- package/dist/internal/group-by-recency.d.ts +1 -0
- package/dist/internal/group-by-recency.d.ts.map +1 -0
- package/dist/internal/group-by-recency.js +1 -0
- package/dist/internal/group-by-recency.js.map +1 -0
- package/dist/internal/icons.d.ts +1 -0
- package/dist/internal/icons.d.ts.map +1 -0
- package/dist/internal/icons.js +1 -0
- package/dist/internal/icons.js.map +1 -0
- package/dist/internal/localization.d.ts +27 -0
- package/dist/internal/localization.d.ts.map +1 -0
- package/dist/internal/localization.js +142 -0
- package/dist/internal/localization.js.map +1 -0
- package/dist/internal/lyra-element.d.ts +27 -3
- package/dist/internal/lyra-element.d.ts.map +1 -0
- package/dist/internal/lyra-element.js +52 -3
- package/dist/internal/lyra-element.js.map +1 -0
- package/dist/internal/numbers.d.ts +1 -0
- package/dist/internal/numbers.d.ts.map +1 -0
- package/dist/internal/numbers.js +1 -0
- package/dist/internal/numbers.js.map +1 -0
- package/dist/internal/optional-peer-types.d.ts +8 -0
- package/dist/internal/optional-peer-types.d.ts.map +1 -0
- package/dist/internal/optional-peer-types.js +2 -0
- package/dist/internal/optional-peer-types.js.map +1 -0
- package/dist/internal/overlay-manager.d.ts +1 -0
- package/dist/internal/overlay-manager.d.ts.map +1 -0
- package/dist/internal/overlay-manager.js +1 -0
- package/dist/internal/overlay-manager.js.map +1 -0
- package/dist/internal/positioner.d.ts +1 -0
- package/dist/internal/positioner.d.ts.map +1 -0
- package/dist/internal/positioner.js +1 -0
- package/dist/internal/positioner.js.map +1 -0
- package/dist/internal/prefix.d.ts +1 -0
- package/dist/internal/prefix.d.ts.map +1 -0
- package/dist/internal/prefix.js +9 -2
- package/dist/internal/prefix.js.map +1 -0
- package/dist/internal/root-registration-allowlist.d.ts +8 -0
- package/dist/internal/root-registration-allowlist.d.ts.map +1 -0
- package/dist/internal/root-registration-allowlist.js +102 -0
- package/dist/internal/root-registration-allowlist.js.map +1 -0
- package/dist/internal/rtl.d.ts +1 -0
- package/dist/internal/rtl.d.ts.map +1 -0
- package/dist/internal/rtl.js +1 -0
- package/dist/internal/rtl.js.map +1 -0
- package/dist/internal/safe-url.d.ts +1 -0
- package/dist/internal/safe-url.d.ts.map +1 -0
- package/dist/internal/safe-url.js +1 -0
- package/dist/internal/safe-url.js.map +1 -0
- package/dist/internal/scroll-lock.d.ts +1 -0
- package/dist/internal/scroll-lock.d.ts.map +1 -0
- package/dist/internal/scroll-lock.js +1 -0
- package/dist/internal/scroll-lock.js.map +1 -0
- package/dist/internal/tokens.styles.d.ts +1 -0
- package/dist/internal/tokens.styles.d.ts.map +1 -0
- package/dist/internal/tokens.styles.js +207 -0
- package/dist/internal/tokens.styles.js.map +1 -0
- package/dist/lyra.d.ts +76 -4
- package/dist/lyra.d.ts.map +1 -0
- package/dist/lyra.js +19 -1
- package/dist/lyra.js.map +1 -0
- package/dist/testing/happy-dom-shims.d.ts +40 -0
- package/dist/testing/happy-dom-shims.d.ts.map +1 -0
- package/dist/testing/happy-dom-shims.js +52 -0
- package/dist/testing/happy-dom-shims.js.map +1 -0
- package/llms-full.txt +726 -81
- package/llms.txt +9 -7
- package/package.json +199 -6
|
@@ -0,0 +1,845 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { html, svg, nothing } from 'lit';
|
|
8
|
+
import { property, state, query } from 'lit/decorators.js';
|
|
9
|
+
import { LyraElement } from '../../internal/lyra-element.js';
|
|
10
|
+
import { srOnly } from '../../internal/a11y.js';
|
|
11
|
+
import { styles } from './lite-chart.styles.js';
|
|
12
|
+
// The semantic variables are resolved by SVG/CSS at paint time, so changing a
|
|
13
|
+
// theme or color-scheme does not require a second JS-side draw pass.
|
|
14
|
+
const DEFAULT_PALETTE = [
|
|
15
|
+
'var(--lyra-chart-color-1)',
|
|
16
|
+
'var(--lyra-chart-color-2)',
|
|
17
|
+
'var(--lyra-chart-color-3)',
|
|
18
|
+
'var(--lyra-chart-color-4)',
|
|
19
|
+
'var(--lyra-chart-color-5)',
|
|
20
|
+
'var(--lyra-chart-color-6)',
|
|
21
|
+
'var(--lyra-chart-color-7)',
|
|
22
|
+
'var(--lyra-chart-color-8)',
|
|
23
|
+
];
|
|
24
|
+
const PAD_LEFT = 36;
|
|
25
|
+
const PAD_RIGHT = 8;
|
|
26
|
+
const PAD_TOP = 8;
|
|
27
|
+
const PAD_BOTTOM = 20;
|
|
28
|
+
const AXIS_TITLE_SPACE = 14;
|
|
29
|
+
const TICK_COUNT = 4;
|
|
30
|
+
const BAR_GROUP_GAP = 0.2; // fraction of a category slot left as gap between categories
|
|
31
|
+
const BAR_GAP = 0.08; // fraction of a category slot left as gap between grouped bars
|
|
32
|
+
const BAR_CORNER_RADIUS = 4; // px, used only when roundedBars is true
|
|
33
|
+
/**
|
|
34
|
+
* Picks a "nice" (1/2/5 × 10^n) step size for an axis spanning `span` over
|
|
35
|
+
* roughly `count` ticks — the standard Heckbert nice-numbers approach, so
|
|
36
|
+
* axis labels read as 0/25/50/75/100 rather than 0/23.4/46.8/70.2/93.6.
|
|
37
|
+
*/
|
|
38
|
+
function niceStep(span, count) {
|
|
39
|
+
if (span <= 0)
|
|
40
|
+
return 1;
|
|
41
|
+
const rough = span / Math.max(1, count);
|
|
42
|
+
const magnitude = 10 ** Math.floor(Math.log10(rough));
|
|
43
|
+
const residual = rough / magnitude;
|
|
44
|
+
const niceResidual = residual < 1.5 ? 1 : residual < 3 ? 2 : residual < 7 ? 5 : 10;
|
|
45
|
+
return niceResidual * magnitude;
|
|
46
|
+
}
|
|
47
|
+
/** Nice-rounded [lo, hi, ticks[]] for an axis covering `dataLo..dataHi`. */
|
|
48
|
+
function niceDomain(dataLo, dataHi, beginAtZero, count) {
|
|
49
|
+
let lo = beginAtZero ? Math.min(0, dataLo) : dataLo;
|
|
50
|
+
let hi = beginAtZero ? Math.max(0, dataHi) : dataHi;
|
|
51
|
+
if (lo === hi) {
|
|
52
|
+
lo -= 1;
|
|
53
|
+
hi += 1;
|
|
54
|
+
}
|
|
55
|
+
const step = niceStep(hi - lo, count);
|
|
56
|
+
lo = Math.floor(lo / step) * step;
|
|
57
|
+
hi = Math.ceil(hi / step) * step;
|
|
58
|
+
const ticks = [];
|
|
59
|
+
for (let v = lo; v <= hi + step / 2; v += step)
|
|
60
|
+
ticks.push(Math.round(v / step) * step);
|
|
61
|
+
return { lo, hi, ticks };
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* `<lyra-lite-chart>` — a dependency-free bar/line chart, plain SVG/DOM
|
|
65
|
+
* rendering with zero peer dependencies (unlike `lyra-chart`, which wraps
|
|
66
|
+
* `chart.js`). For a project whose architecture forbids a charting
|
|
67
|
+
* dependency outright, this covers the common bar/line case: grouped or
|
|
68
|
+
* stacked bars, multi-series lines, per-point click, and hover tooltips
|
|
69
|
+
* (native SVG `<title>`, no positioning JS needed) — not a full `lyra-chart`
|
|
70
|
+
* replacement (no zoom/pan, no pie/doughnut/radar/scatter/bubble types, no
|
|
71
|
+
* horizontal/dual-y-axis, no raw-config passthrough).
|
|
72
|
+
*
|
|
73
|
+
* Because this renders real DOM (not canvas), it reuses `lyra-chart`'s
|
|
74
|
+
* `--lyra-chart-*` theme tokens directly via CSS `var()` — no
|
|
75
|
+
* `getComputedStyle()`-based re-theming step is needed the way `chart.ts`
|
|
76
|
+
* needs one for its canvas.
|
|
77
|
+
*
|
|
78
|
+
* By default (`layout="fit"`) the plot always squeezes to the measured host
|
|
79
|
+
* width. Three independent, opt-in escape hatches for dense/aligned data:
|
|
80
|
+
* `layout="scroll"` (+ `barWidth`) gives every bar a fixed pixel width and
|
|
81
|
+
* lets the plot overflow the host horizontally (scrollable) instead of
|
|
82
|
+
* squeezing; `maxLabels` decimates which x-axis text labels render (bars
|
|
83
|
+
* always still render) once there are more categories than that; and
|
|
84
|
+
* `barX` lets a consumer hand in its own per-category x-coordinate function
|
|
85
|
+
* — e.g. to pixel-align this chart's bars with a sibling `lyra-heatmap`'s
|
|
86
|
+
* calendar columns — overriding the internal slot math for both bars and
|
|
87
|
+
* their labels. All three are additive and no-ops when left unset.
|
|
88
|
+
*
|
|
89
|
+
* Seven further additive, opt-in properties: `pointText` overrides the
|
|
90
|
+
* per-bar/per-point `<title>`/`aria-label` tooltip text (mirrors
|
|
91
|
+
* `lyra-heatmap`'s `cellText` hook), falling back to the built-in raw-value
|
|
92
|
+
* template when unset; `roundedBars` draws bars as a rounded-top path
|
|
93
|
+
* instead of a square-cornered rect; `skipZero` omits a bar entirely (not
|
|
94
|
+
* just zero-height) for an exactly-`0` value; `padLeft`/`barGapRatio`
|
|
95
|
+
* override the internal `PAD_LEFT`/`BAR_GROUP_GAP` layout constants; `scale`
|
|
96
|
+
* (`type="bar"` only) switches the bar-height mapping from the default
|
|
97
|
+
* linear `niceDomain` fraction to a `Math.sqrt(value / domainMax)`
|
|
98
|
+
* compression (mirroring `lyra-heatmap`'s matrix-mode `sqrt` scale) so a
|
|
99
|
+
* skewed dataset's smaller bars don't get washed out by one dominant value
|
|
100
|
+
* — gridlines/tick labels stay on the linear domain regardless, only the bar
|
|
101
|
+
* marks' own height changes, and `type="line"` ignores `scale` entirely; and
|
|
102
|
+
* `hideAxis` suppresses `renderGrid()`'s gridlines/tick labels altogether
|
|
103
|
+
* (x-axis category labels, rendered separately, are unaffected).
|
|
104
|
+
*
|
|
105
|
+
* @customElement lyra-lite-chart
|
|
106
|
+
* @event lyra-point-click - Fired when a bar/point is activated (click, or
|
|
107
|
+
* Enter/Space while focused). `detail: { datasetIndex: number, index:
|
|
108
|
+
* number, label: string | undefined, value: number | null }` — same shape
|
|
109
|
+
* as `lyra-chart`'s `lyra-point-click`.
|
|
110
|
+
* @csspart base - The host's flex layout wrapper.
|
|
111
|
+
* @csspart grid-line - Each horizontal gridline.
|
|
112
|
+
* @csspart axis-label - Each axis tick label.
|
|
113
|
+
* @csspart axis-title - The x/y axis title text, when set.
|
|
114
|
+
* @csspart bar - Each bar rect (type="bar"). Carries `data-selected` when its category index is in `selectedIndex`.
|
|
115
|
+
* @csspart line - Each series' stroked line path (type="line").
|
|
116
|
+
* @csspart point - Each series' per-point hit target (type="line").
|
|
117
|
+
* @csspart legend - The legend row, when `legend` is set.
|
|
118
|
+
* @csspart legend-item - Each legend entry.
|
|
119
|
+
* @csspart legend-swatch - Each legend entry's color swatch.
|
|
120
|
+
* @csspart live-region - The current mark announcement for keyboard users.
|
|
121
|
+
* @csspart data-list - A visually hidden list of all plotted data points.
|
|
122
|
+
*/
|
|
123
|
+
export class LyraLiteChart extends LyraElement {
|
|
124
|
+
constructor() {
|
|
125
|
+
super(...arguments);
|
|
126
|
+
this.type = 'bar';
|
|
127
|
+
this.labels = [];
|
|
128
|
+
this.datasets = [];
|
|
129
|
+
this.legend = false;
|
|
130
|
+
this.height = '280px';
|
|
131
|
+
this.xLabel = '';
|
|
132
|
+
this.yLabel = '';
|
|
133
|
+
this.beginAtZero = true;
|
|
134
|
+
/** Stacks each category's bars into one segmented bar. Ignored for `type="line"`. */
|
|
135
|
+
this.stacked = false;
|
|
136
|
+
/** `'fit'` (default) squeezes the plot into the measured host width, unchanged from before this
|
|
137
|
+
* property existed. `'scroll'` gives every bar a fixed `barWidth` instead, letting the plot's
|
|
138
|
+
* content width exceed the host's — the host becomes horizontally scrollable
|
|
139
|
+
* (`overflow-x: auto`) so every bar stays exactly `barWidth` wide regardless of category count.
|
|
140
|
+
* Reflects to the `layout` attribute (e.g. for `:host([layout='scroll'])` host styling). */
|
|
141
|
+
this.layout = 'fit';
|
|
142
|
+
/** Fixed per-category bar width in px, used only when `layout="scroll"`. Ignored (as before this
|
|
143
|
+
* property existed) in `layout="fit"`, the default. */
|
|
144
|
+
this.barWidth = 32;
|
|
145
|
+
/** `type="bar"` only: draws each bar as a rounded-top-corner shape instead of the default
|
|
146
|
+
* square-cornered rect. Default `false` renders exactly today's plain `<rect>`. */
|
|
147
|
+
this.roundedBars = false;
|
|
148
|
+
/** `type="bar"` only: omits a bar entirely (no mark, no `tabindex`, no tooltip) for a value that
|
|
149
|
+
* is exactly `0` — `null`/non-finite values are always skipped regardless of this flag. Default
|
|
150
|
+
* `false` preserves today's behavior of a zero-height but focusable/titled bar. */
|
|
151
|
+
this.skipZero = false;
|
|
152
|
+
/** `type="bar"` only (no effect on `type="line"`): `'linear'` (default) maps a bar's value to
|
|
153
|
+
* height via the standard `niceDomain`-based fraction, unchanged from before this property
|
|
154
|
+
* existed. `'sqrt'` instead maps via `Math.sqrt(value / domainMax)` (mirroring `lyra-heatmap`'s
|
|
155
|
+
* matrix-mode `sqrt` scale), boosting smaller values relative to one dominant value so a skewed
|
|
156
|
+
* dataset's smaller bars don't get washed out. Gridlines/tick labels stay on the linear domain
|
|
157
|
+
* either way — only the bar marks' own height mapping changes. */
|
|
158
|
+
this.scale = 'linear';
|
|
159
|
+
/** Suppresses `renderGrid()` entirely — no gridlines, no y-axis tick labels. x-axis category
|
|
160
|
+
* labels (rendered separately) are unaffected. Default `false` preserves today's behavior. */
|
|
161
|
+
this.hideAxis = false;
|
|
162
|
+
/** Category indexes to mark `data-selected` on every bar/segment at that index, across every
|
|
163
|
+
* dataset -- e.g. to highlight a whole selected week's column in a stacked chart. Empty (the
|
|
164
|
+
* default) reproduces today's exact output: no bar carries `data-selected`. A consumer's own
|
|
165
|
+
* `::part(bar)[data-selected]` (or `[data-selected]` inside the shadow root via a documented
|
|
166
|
+
* CSS custom property) rule can then style the highlight -- this component takes no opinion on
|
|
167
|
+
* what the highlight looks like, only which bars it applies to. */
|
|
168
|
+
this.selectedIndex = [];
|
|
169
|
+
this.plotWidth = 0;
|
|
170
|
+
this.plotHeight = 0;
|
|
171
|
+
this.visible = true;
|
|
172
|
+
/** One roving tab stop across all bar/point marks. */
|
|
173
|
+
this.activeMarkIndex = 0;
|
|
174
|
+
this.liveText = '';
|
|
175
|
+
}
|
|
176
|
+
static { this.styles = [LyraElement.styles, styles, srOnly]; }
|
|
177
|
+
connectedCallback() {
|
|
178
|
+
super.connectedCallback();
|
|
179
|
+
this.resizeObserver = new ResizeObserver((entries) => {
|
|
180
|
+
const box = entries[0]?.contentBoxSize?.[0];
|
|
181
|
+
if (box) {
|
|
182
|
+
this.plotWidth = box.inlineSize;
|
|
183
|
+
this.plotHeight = box.blockSize;
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
const rect = this.svgEl?.getBoundingClientRect();
|
|
187
|
+
if (rect) {
|
|
188
|
+
this.plotWidth = rect.width;
|
|
189
|
+
this.plotHeight = rect.height;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
if (typeof IntersectionObserver !== 'undefined') {
|
|
194
|
+
this.intersectionObserver = new IntersectionObserver((entries) => {
|
|
195
|
+
this.visible = entries[0]?.isIntersecting ?? true;
|
|
196
|
+
});
|
|
197
|
+
this.intersectionObserver.observe(this);
|
|
198
|
+
}
|
|
199
|
+
// A reconnect re-creates the observer above but the `<svg>` render root
|
|
200
|
+
// content survives across disconnect/reconnect (Lit doesn't tear down the
|
|
201
|
+
// shadow root) — re-observe it here (firstUpdated() only ever runs once,
|
|
202
|
+
// on the very first render, so it can't be relied on for a reconnect).
|
|
203
|
+
if (this.svgEl)
|
|
204
|
+
this.resizeObserver.observe(this.svgEl);
|
|
205
|
+
}
|
|
206
|
+
disconnectedCallback() {
|
|
207
|
+
super.disconnectedCallback();
|
|
208
|
+
this.resizeObserver?.disconnect();
|
|
209
|
+
this.intersectionObserver?.disconnect();
|
|
210
|
+
}
|
|
211
|
+
// The first draw is queued because connectedCallback() fires *before* Lit's
|
|
212
|
+
// first render, so on
|
|
213
|
+
// the very first mount `this.svgEl` (a `@query('svg')`) is still
|
|
214
|
+
// undefined there and its guarded `observe()` call is a no-op — verified
|
|
215
|
+
// empirically: deleting firstUpdated() here hung every existing test that
|
|
216
|
+
// waits for the ResizeObserver's initial measurement. firstUpdated() runs
|
|
217
|
+
// once, after that first render, and is what actually arms the observer
|
|
218
|
+
// for the initial mount; connectedCallback()'s own observe() call (added
|
|
219
|
+
// above) only ever succeeds on a *reconnect*, when the shadow DOM (and
|
|
220
|
+
// svgEl) already exists from before the disconnect. Together the two
|
|
221
|
+
// cover first-mount and reconnect without ever double-observing the same
|
|
222
|
+
// element from the same callback path.
|
|
223
|
+
firstUpdated() {
|
|
224
|
+
if (this.svgEl)
|
|
225
|
+
this.resizeObserver?.observe(this.svgEl);
|
|
226
|
+
}
|
|
227
|
+
updated(changed) {
|
|
228
|
+
if (changed.has('height')) {
|
|
229
|
+
this.style.setProperty('--lyra-chart-height', this.height);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
colorFor(index, series) {
|
|
233
|
+
return series.color ?? DEFAULT_PALETTE[index % DEFAULT_PALETTE.length];
|
|
234
|
+
}
|
|
235
|
+
/** Dispatches to the host-provided `pointText` formatter when set, otherwise `undefined` (the
|
|
236
|
+
* caller falls back to its own built-in template) — mirrors `lyra-heatmap`'s `resolveCellText()`. */
|
|
237
|
+
resolvePointText(label, value, datasetIndex) {
|
|
238
|
+
return this.pointText?.(label, value, datasetIndex);
|
|
239
|
+
}
|
|
240
|
+
/** The ordered set of visible marks used by both keyboard navigation and
|
|
241
|
+
* the screen-reader data alternative. */
|
|
242
|
+
interactiveMarks() {
|
|
243
|
+
const marks = [];
|
|
244
|
+
if (this.type === 'bar') {
|
|
245
|
+
for (let index = 0; index < this.labels.length; index++) {
|
|
246
|
+
for (let datasetIndex = 0; datasetIndex < this.datasets.length; datasetIndex++) {
|
|
247
|
+
const value = this.datasets[datasetIndex]?.data[index];
|
|
248
|
+
if (value == null || !Number.isFinite(value) || (this.skipZero && value === 0))
|
|
249
|
+
continue;
|
|
250
|
+
marks.push({ datasetIndex, index, label: this.labels[index] ?? '', value });
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
else {
|
|
255
|
+
this.datasets.forEach((series, datasetIndex) => {
|
|
256
|
+
series.data.forEach((value, index) => {
|
|
257
|
+
if (value == null || !Number.isFinite(value))
|
|
258
|
+
return;
|
|
259
|
+
marks.push({ datasetIndex, index, label: this.labels[index] ?? '', value });
|
|
260
|
+
});
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
return marks;
|
|
264
|
+
}
|
|
265
|
+
markIndexMap() {
|
|
266
|
+
return new Map(this.interactiveMarks().map((mark, index) => [`${mark.datasetIndex}:${mark.index}`, index]));
|
|
267
|
+
}
|
|
268
|
+
normalizedMarkIndex(marks = this.interactiveMarks()) {
|
|
269
|
+
return marks.length ? Math.min(Math.max(this.activeMarkIndex, 0), marks.length - 1) : -1;
|
|
270
|
+
}
|
|
271
|
+
markAnnouncement(index, marks = this.interactiveMarks()) {
|
|
272
|
+
const mark = marks[index];
|
|
273
|
+
if (!mark)
|
|
274
|
+
return '';
|
|
275
|
+
const series = this.datasets[mark.datasetIndex]?.label ?? 'Series';
|
|
276
|
+
const custom = this.resolvePointText(mark.label, mark.value, mark.datasetIndex);
|
|
277
|
+
return `${custom ?? `${series}, ${mark.label}: ${mark.value}`} (${index + 1} of ${marks.length})`;
|
|
278
|
+
}
|
|
279
|
+
onMarkFocus(index) {
|
|
280
|
+
const marks = this.interactiveMarks();
|
|
281
|
+
if (!marks[index])
|
|
282
|
+
return;
|
|
283
|
+
this.activeMarkIndex = index;
|
|
284
|
+
this.liveText = this.markAnnouncement(index, marks);
|
|
285
|
+
}
|
|
286
|
+
focusMark(index) {
|
|
287
|
+
const marks = this.interactiveMarks();
|
|
288
|
+
if (!marks[index])
|
|
289
|
+
return;
|
|
290
|
+
this.activeMarkIndex = index;
|
|
291
|
+
this.liveText = this.markAnnouncement(index, marks);
|
|
292
|
+
void this.updateComplete.then(() => {
|
|
293
|
+
const markEls = Array.from(this.renderRoot.querySelectorAll('[part="bar"], [part="point"]'));
|
|
294
|
+
markEls[index]?.focus();
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* A value-to-y-pixel mapping for a bar's top/bottom edge. `'linear'` (the
|
|
299
|
+
* default) is the standard `niceDomain`-fraction formula. `'sqrt'`
|
|
300
|
+
* compresses via `Math.sqrt(value / domainMax)`, clamping `value` to
|
|
301
|
+
* `[0, hi]` first since a negative input has no real square root.
|
|
302
|
+
*
|
|
303
|
+
* NOT used for the `stacked && scale === 'sqrt'` case — that combination's
|
|
304
|
+
* proportionality (compress the bar's *total* height once, then split it
|
|
305
|
+
* linearly by each segment's share) is computed directly in `renderBars()`,
|
|
306
|
+
* since a per-segment call here (compressing each segment's absolute
|
|
307
|
+
* cumulative stack position independently) is exactly the non-proportional
|
|
308
|
+
* bug this method's stacked callers used to have.
|
|
309
|
+
*/
|
|
310
|
+
barValueToY(value, plotY, plotH, lo, hi) {
|
|
311
|
+
if (this.scale === 'sqrt') {
|
|
312
|
+
const domainMax = hi > 0 ? hi : 1;
|
|
313
|
+
const frac = Math.sqrt(Math.min(domainMax, Math.max(0, value)) / domainMax);
|
|
314
|
+
return plotY + plotH - frac * plotH;
|
|
315
|
+
}
|
|
316
|
+
const span = hi - lo || 1;
|
|
317
|
+
return plotY + plotH - ((value - lo) / span) * plotH;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* A rounded-top-corners `<path>` `d` string for a bar occupying
|
|
321
|
+
* `[x, y, x+w, y+h]` — an SVG `<rect>` can only express a uniform radius
|
|
322
|
+
* on all four corners, so `roundedBars` switches the mark to a path
|
|
323
|
+
* instead of adding `rx`/`ry` to keep the bottom edge square against the
|
|
324
|
+
* baseline. `r` is clamped so it never exceeds half the bar's width or its
|
|
325
|
+
* full height (a thin/short bar degrades to a plain rectangle path rather
|
|
326
|
+
* than self-intersecting).
|
|
327
|
+
*/
|
|
328
|
+
roundedBarPath(x, y, w, h) {
|
|
329
|
+
const r = Math.max(0, Math.min(BAR_CORNER_RADIUS, w / 2, h));
|
|
330
|
+
if (r <= 0)
|
|
331
|
+
return `M${x},${y} h${w} v${h} h${-w} Z`;
|
|
332
|
+
return `M${x},${y + r} Q${x},${y} ${x + r},${y} H${x + w - r} Q${x + w},${y} ${x + w},${y + r} V${y + h} H${x} Z`;
|
|
333
|
+
}
|
|
334
|
+
domain() {
|
|
335
|
+
let lo = Infinity;
|
|
336
|
+
let hi = -Infinity;
|
|
337
|
+
if (this.type === 'bar' && this.stacked) {
|
|
338
|
+
// Stacked bars: each category's extent is the sum of its (signed)
|
|
339
|
+
// positive/negative segments, not the max single value.
|
|
340
|
+
for (let i = 0; i < this.labels.length; i++) {
|
|
341
|
+
let pos = 0;
|
|
342
|
+
let neg = 0;
|
|
343
|
+
for (const s of this.datasets) {
|
|
344
|
+
const v = s.data[i];
|
|
345
|
+
if (v == null)
|
|
346
|
+
continue;
|
|
347
|
+
if (v >= 0)
|
|
348
|
+
pos += v;
|
|
349
|
+
else
|
|
350
|
+
neg += v;
|
|
351
|
+
}
|
|
352
|
+
lo = Math.min(lo, neg);
|
|
353
|
+
hi = Math.max(hi, pos);
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
else {
|
|
357
|
+
for (const s of this.datasets) {
|
|
358
|
+
for (const v of s.data) {
|
|
359
|
+
if (v == null)
|
|
360
|
+
continue;
|
|
361
|
+
lo = Math.min(lo, v);
|
|
362
|
+
hi = Math.max(hi, v);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
if (!Number.isFinite(lo) || !Number.isFinite(hi)) {
|
|
367
|
+
lo = 0;
|
|
368
|
+
hi = 1;
|
|
369
|
+
}
|
|
370
|
+
return niceDomain(lo, hi, this.beginAtZero, TICK_COUNT);
|
|
371
|
+
}
|
|
372
|
+
emitPoint(datasetIndex, index) {
|
|
373
|
+
const label = this.labels[index];
|
|
374
|
+
const value = this.datasets[datasetIndex]?.data[index] ?? null;
|
|
375
|
+
this.emit('lyra-point-click', { datasetIndex, index, label, value });
|
|
376
|
+
}
|
|
377
|
+
onPointKeyDown(e, datasetIndex, index, markIndex) {
|
|
378
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
379
|
+
e.preventDefault();
|
|
380
|
+
this.onMarkFocus(markIndex);
|
|
381
|
+
this.emitPoint(datasetIndex, index);
|
|
382
|
+
return;
|
|
383
|
+
}
|
|
384
|
+
const marks = this.interactiveMarks();
|
|
385
|
+
if (!marks.length)
|
|
386
|
+
return;
|
|
387
|
+
let next = markIndex;
|
|
388
|
+
if (e.key === 'ArrowRight' || e.key === 'ArrowDown')
|
|
389
|
+
next = Math.min(marks.length - 1, markIndex + 1);
|
|
390
|
+
else if (e.key === 'ArrowLeft' || e.key === 'ArrowUp')
|
|
391
|
+
next = Math.max(0, markIndex - 1);
|
|
392
|
+
else if (e.key === 'Home')
|
|
393
|
+
next = 0;
|
|
394
|
+
else if (e.key === 'End')
|
|
395
|
+
next = marks.length - 1;
|
|
396
|
+
else
|
|
397
|
+
return;
|
|
398
|
+
e.preventDefault();
|
|
399
|
+
this.focusMark(next);
|
|
400
|
+
}
|
|
401
|
+
renderGrid(plotX, plotY, plotW, plotH, ticks, lo, hi) {
|
|
402
|
+
const span = hi - lo || 1;
|
|
403
|
+
return ticks.map((t) => {
|
|
404
|
+
const y = plotY + plotH - ((t - lo) / span) * plotH;
|
|
405
|
+
return svg `
|
|
406
|
+
<line part="grid-line" x1=${plotX} y1=${y} x2=${plotX + plotW} y2=${y}></line>
|
|
407
|
+
<text part="axis-label" x=${plotX - 6} y=${y} text-anchor="end" dominant-baseline="middle">${this.tickFormat ? this.tickFormat(t) : formatTick(t)}</text>
|
|
408
|
+
`;
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* `slot` is the per-category width to lay bars out against — either the
|
|
413
|
+
* measured-width-derived `plotW / n` (`layout="fit"`) or the fixed
|
|
414
|
+
* `barWidth` (`layout="scroll"`), computed once by the caller
|
|
415
|
+
* (`renderChart()`) and handed to both this method and the category-label
|
|
416
|
+
* x-position calc so the two can never drift apart from each other.
|
|
417
|
+
*/
|
|
418
|
+
renderBars(plotX, plotY, plotH, slot, lo, hi) {
|
|
419
|
+
const n = this.labels.length;
|
|
420
|
+
const groupCount = this.stacked ? 1 : Math.max(1, this.datasets.length);
|
|
421
|
+
const groupGap = this.barGapRatio ?? BAR_GROUP_GAP;
|
|
422
|
+
const groupW = slot * (1 - groupGap);
|
|
423
|
+
const barW = (groupW - BAR_GAP * slot * (groupCount - 1)) / groupCount;
|
|
424
|
+
const markIndexes = this.markIndexMap();
|
|
425
|
+
const activeMarkIndex = this.normalizedMarkIndex();
|
|
426
|
+
// Only meaningful for stacked + scale="sqrt": each category's *positive*
|
|
427
|
+
// and *negative* stack totals, sqrt-compressed once per category (not
|
|
428
|
+
// per segment) -- see barValueToY()'s doc for why this has to be a
|
|
429
|
+
// per-category pre-pass rather than a per-segment computation.
|
|
430
|
+
const stackedSqrt = this.stacked && this.scale === 'sqrt';
|
|
431
|
+
const domainMax = hi > 0 ? hi : 1;
|
|
432
|
+
const posTotals = [];
|
|
433
|
+
const negTotals = [];
|
|
434
|
+
if (stackedSqrt) {
|
|
435
|
+
for (let i = 0; i < n; i++) {
|
|
436
|
+
let pos = 0;
|
|
437
|
+
let neg = 0;
|
|
438
|
+
for (const s of this.datasets) {
|
|
439
|
+
const v = s.data[i];
|
|
440
|
+
if (v == null || !Number.isFinite(v))
|
|
441
|
+
continue;
|
|
442
|
+
if (this.skipZero && v === 0)
|
|
443
|
+
continue;
|
|
444
|
+
if (v >= 0)
|
|
445
|
+
pos += v;
|
|
446
|
+
else
|
|
447
|
+
neg += v;
|
|
448
|
+
}
|
|
449
|
+
posTotals.push(pos);
|
|
450
|
+
negTotals.push(neg);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
const bars = [];
|
|
454
|
+
for (let i = 0; i < n; i++) {
|
|
455
|
+
// `this.barX`, when set, overrides just the category's own x-origin
|
|
456
|
+
// (what an unset `barX` would compute as `plotX + i * slot`) -- the
|
|
457
|
+
// group-centering/per-dataset-offset math below still layers on top of
|
|
458
|
+
// it, same as it does on top of the internal formula.
|
|
459
|
+
const origin = this.barX ? this.barX(i) : plotX + i * slot;
|
|
460
|
+
const slotStart = origin + (slot - groupW) / 2;
|
|
461
|
+
let stackPos = 0; // running positive-side offset (value units) -- kept only for the stackedSqrt branch below
|
|
462
|
+
let stackNeg = 0; // running negative-side offset (value units) -- kept only for the stackedSqrt branch below
|
|
463
|
+
// Running PIXEL cursors for the plain (non-sqrt) stacked case: each segment's own edge derives
|
|
464
|
+
// from wherever the previous (possibly minBarHeight-floored) segment actually ended on screen,
|
|
465
|
+
// not from re-deriving position from cumulative value -- this is what makes a floored segment's
|
|
466
|
+
// inflation "push" the next segment instead of being silently overdrawn by it.
|
|
467
|
+
const zeroY = this.barValueToY(0, plotY, plotH, lo, hi);
|
|
468
|
+
let posPixelTop = zeroY;
|
|
469
|
+
let negPixelBottom = zeroY;
|
|
470
|
+
// sqrt-compressed pixel height of this category's positive/negative
|
|
471
|
+
// stack total, computed once per category (not per segment) -- see
|
|
472
|
+
// barValueToY()'s doc comment for why this differs from the old,
|
|
473
|
+
// buggy per-segment-cumulative-position sqrt.
|
|
474
|
+
const posCompressedH = stackedSqrt ? Math.sqrt(Math.min(domainMax, posTotals[i]) / domainMax) * plotH : 0;
|
|
475
|
+
const negCompressedH = stackedSqrt ? Math.sqrt(Math.min(domainMax, -negTotals[i]) / domainMax) * plotH : 0;
|
|
476
|
+
this.datasets.forEach((s, di) => {
|
|
477
|
+
const v = s.data[i];
|
|
478
|
+
if (v == null || !Number.isFinite(v))
|
|
479
|
+
return;
|
|
480
|
+
if (this.skipZero && v === 0)
|
|
481
|
+
return;
|
|
482
|
+
const color = this.colorFor(di, s);
|
|
483
|
+
let rectX;
|
|
484
|
+
let y1;
|
|
485
|
+
let y2;
|
|
486
|
+
if (this.stacked && stackedSqrt) {
|
|
487
|
+
rectX = slotStart;
|
|
488
|
+
if (v >= 0) {
|
|
489
|
+
// Split the category's already-compressed total height linearly
|
|
490
|
+
// by this segment's share of the category's own positive total
|
|
491
|
+
// -- proportional by construction, unlike compressing each
|
|
492
|
+
// segment's absolute cumulative position independently.
|
|
493
|
+
const total = posTotals[i];
|
|
494
|
+
const shareLo = total > 0 ? stackPos / total : 0;
|
|
495
|
+
const shareHi = total > 0 ? (stackPos + v) / total : 0;
|
|
496
|
+
y1 = plotY + plotH - shareHi * posCompressedH;
|
|
497
|
+
y2 = plotY + plotH - shareLo * posCompressedH;
|
|
498
|
+
stackPos += v;
|
|
499
|
+
}
|
|
500
|
+
else {
|
|
501
|
+
const total = -negTotals[i];
|
|
502
|
+
const shareLo = total > 0 ? -stackNeg / total : 0;
|
|
503
|
+
const shareHi = total > 0 ? (-stackNeg - v) / total : 0;
|
|
504
|
+
y1 = plotY + plotH + shareLo * negCompressedH;
|
|
505
|
+
y2 = plotY + plotH + shareHi * negCompressedH;
|
|
506
|
+
stackNeg += v;
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
else if (this.stacked) {
|
|
510
|
+
rectX = slotStart;
|
|
511
|
+
if (v >= 0) {
|
|
512
|
+
// A segment's own proportional height (linear scale) depends only on its own value,
|
|
513
|
+
// not on where it sits in the stack -- compute it in isolation, floor it, then stack
|
|
514
|
+
// from the running pixel cursor rather than from cumulative value.
|
|
515
|
+
const naturalH = Math.max(0, zeroY - this.barValueToY(v, plotY, plotH, lo, hi));
|
|
516
|
+
const segH = this.minBarHeight != null && v !== 0 && naturalH < this.minBarHeight ? this.minBarHeight : naturalH;
|
|
517
|
+
y2 = posPixelTop;
|
|
518
|
+
y1 = posPixelTop - segH;
|
|
519
|
+
posPixelTop = y1;
|
|
520
|
+
stackPos += v;
|
|
521
|
+
}
|
|
522
|
+
else {
|
|
523
|
+
const naturalH = Math.max(0, this.barValueToY(v, plotY, plotH, lo, hi) - zeroY);
|
|
524
|
+
const segH = this.minBarHeight != null && v !== 0 && naturalH < this.minBarHeight ? this.minBarHeight : naturalH;
|
|
525
|
+
y1 = negPixelBottom;
|
|
526
|
+
y2 = negPixelBottom + segH;
|
|
527
|
+
negPixelBottom = y2;
|
|
528
|
+
stackNeg += v;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
else {
|
|
532
|
+
rectX = slotStart + di * (barW + BAR_GAP * slot);
|
|
533
|
+
const zeroClamped = Math.min(hi, Math.max(lo, 0));
|
|
534
|
+
const barValLo = Math.min(zeroClamped, v);
|
|
535
|
+
const barValHi = Math.max(zeroClamped, v);
|
|
536
|
+
y1 = this.barValueToY(barValHi, plotY, plotH, lo, hi);
|
|
537
|
+
y2 = this.barValueToY(barValLo, plotY, plotH, lo, hi);
|
|
538
|
+
}
|
|
539
|
+
const label = this.labels[i];
|
|
540
|
+
const custom = this.resolvePointText(label, v, di);
|
|
541
|
+
const ariaLabel = custom ?? `${s.label}, ${label}: ${v}`;
|
|
542
|
+
const titleText = custom ?? `${s.label} — ${label}: ${v}`;
|
|
543
|
+
const w = Math.max(0, barW);
|
|
544
|
+
let h = Math.max(0, y2 - y1);
|
|
545
|
+
// A nonzero value's segment can round to sub-pixel and become
|
|
546
|
+
// visually/indistinguishable from absent -- minBarHeight floors it,
|
|
547
|
+
// pulling y1 upward by the same amount so the segment still
|
|
548
|
+
// terminates at its correct baseline (a floored segment "pushes" any
|
|
549
|
+
// segments stacked after it, the same tradeoff a hand-rolled
|
|
550
|
+
// Math.max(2, scaleToLength(...)) floor accepts).
|
|
551
|
+
// The plain-stacked branch above already applies minBarHeight per-segment against a running
|
|
552
|
+
// pixel cursor (so a floored segment "pushes" the next one) -- applying the floor again here
|
|
553
|
+
// would double-apply it. Only the non-stacked and stackedSqrt paths still need it here.
|
|
554
|
+
if (!(this.stacked && !stackedSqrt) && this.minBarHeight != null && v !== 0 && h < this.minBarHeight) {
|
|
555
|
+
const extra = this.minBarHeight - h;
|
|
556
|
+
y1 -= extra;
|
|
557
|
+
h = this.minBarHeight;
|
|
558
|
+
}
|
|
559
|
+
const markIndex = markIndexes.get(`${di}:${i}`);
|
|
560
|
+
const selected = this.selectedIndex.includes(i);
|
|
561
|
+
bars.push(this.roundedBars
|
|
562
|
+
? svg `
|
|
563
|
+
<path
|
|
564
|
+
part="bar"
|
|
565
|
+
d=${this.roundedBarPath(rectX, y1, w, h)}
|
|
566
|
+
fill=${color}
|
|
567
|
+
tabindex=${activeMarkIndex === markIndex ? '0' : '-1'}
|
|
568
|
+
role="button"
|
|
569
|
+
aria-label=${ariaLabel}
|
|
570
|
+
?data-selected=${selected}
|
|
571
|
+
@click=${() => this.emitPoint(di, i)}
|
|
572
|
+
@focus=${() => this.onMarkFocus(markIndex)}
|
|
573
|
+
@keydown=${(e) => this.onPointKeyDown(e, di, i, markIndex)}
|
|
574
|
+
><title>${titleText}</title></path>
|
|
575
|
+
`
|
|
576
|
+
: svg `
|
|
577
|
+
<rect
|
|
578
|
+
part="bar"
|
|
579
|
+
x=${rectX}
|
|
580
|
+
y=${y1}
|
|
581
|
+
width=${w}
|
|
582
|
+
height=${h}
|
|
583
|
+
fill=${color}
|
|
584
|
+
tabindex=${activeMarkIndex === markIndex ? '0' : '-1'}
|
|
585
|
+
role="button"
|
|
586
|
+
aria-label=${ariaLabel}
|
|
587
|
+
?data-selected=${selected}
|
|
588
|
+
@click=${() => this.emitPoint(di, i)}
|
|
589
|
+
@focus=${() => this.onMarkFocus(markIndex)}
|
|
590
|
+
@keydown=${(e) => this.onPointKeyDown(e, di, i, markIndex)}
|
|
591
|
+
><title>${titleText}</title></rect>
|
|
592
|
+
`);
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
return bars;
|
|
596
|
+
}
|
|
597
|
+
renderLines(plotX, plotY, plotW, plotH, lo, hi) {
|
|
598
|
+
const span = hi - lo || 1;
|
|
599
|
+
const n = this.labels.length;
|
|
600
|
+
const xFor = (i) => plotX + (n > 1 ? (i / (n - 1)) * plotW : plotW / 2);
|
|
601
|
+
const yFor = (v) => plotY + plotH - ((v - lo) / span) * plotH;
|
|
602
|
+
const markIndexes = this.markIndexMap();
|
|
603
|
+
const activeMarkIndex = this.normalizedMarkIndex();
|
|
604
|
+
return this.datasets.map((s, di) => {
|
|
605
|
+
const color = this.colorFor(di, s);
|
|
606
|
+
let d = '';
|
|
607
|
+
let penDown = false;
|
|
608
|
+
s.data.forEach((v, i) => {
|
|
609
|
+
if (v == null || !Number.isFinite(v)) {
|
|
610
|
+
penDown = false;
|
|
611
|
+
return;
|
|
612
|
+
}
|
|
613
|
+
const cmd = penDown ? 'L' : 'M';
|
|
614
|
+
d += `${cmd}${xFor(i)},${yFor(v)} `;
|
|
615
|
+
penDown = true;
|
|
616
|
+
});
|
|
617
|
+
const dots = s.data.map((v, i) => {
|
|
618
|
+
if (v == null || !Number.isFinite(v))
|
|
619
|
+
return nothing;
|
|
620
|
+
const label = this.labels[i];
|
|
621
|
+
const custom = this.resolvePointText(label, v, di);
|
|
622
|
+
const ariaLabel = custom ?? `${s.label}, ${label}: ${v}`;
|
|
623
|
+
const titleText = custom ?? `${s.label} — ${label}: ${v}`;
|
|
624
|
+
const markIndex = markIndexes.get(`${di}:${i}`);
|
|
625
|
+
return svg `
|
|
626
|
+
<circle
|
|
627
|
+
part="point"
|
|
628
|
+
cx=${xFor(i)}
|
|
629
|
+
cy=${yFor(v)}
|
|
630
|
+
r="4"
|
|
631
|
+
fill=${color}
|
|
632
|
+
tabindex=${activeMarkIndex === markIndex ? '0' : '-1'}
|
|
633
|
+
role="button"
|
|
634
|
+
aria-label=${ariaLabel}
|
|
635
|
+
@click=${() => this.emitPoint(di, i)}
|
|
636
|
+
@focus=${() => this.onMarkFocus(markIndex)}
|
|
637
|
+
@keydown=${(e) => this.onPointKeyDown(e, di, i, markIndex)}
|
|
638
|
+
><title>${titleText}</title></circle>
|
|
639
|
+
`;
|
|
640
|
+
});
|
|
641
|
+
return svg `<path part="line" d=${d.trim()} stroke=${color}></path>${dots}`;
|
|
642
|
+
});
|
|
643
|
+
}
|
|
644
|
+
render() {
|
|
645
|
+
// Lit already tracks every reactive input, including function-valued
|
|
646
|
+
// properties such as `tickFormat` and `barX`. Returning a cached
|
|
647
|
+
// TemplateResult here would make callback replacement invisible and
|
|
648
|
+
// serializing arbitrary data would throw for circular objects/BigInt.
|
|
649
|
+
// Rendering this small SVG template is cheaper and more correct than a
|
|
650
|
+
// lossy content fingerprint.
|
|
651
|
+
return this.renderChart();
|
|
652
|
+
}
|
|
653
|
+
/**
|
|
654
|
+
* Step size for `maxLabels` decimation: 1 (show every label, today's
|
|
655
|
+
* unchanged default) when `maxLabels` is unset or already >= the label
|
|
656
|
+
* count, otherwise the ceil-divide spacing that lands close to
|
|
657
|
+
* `maxLabels` shown labels while always keeping index 0 and the last
|
|
658
|
+
* index (enforced by the caller, not here).
|
|
659
|
+
*/
|
|
660
|
+
labelStep(n) {
|
|
661
|
+
const max = this.maxLabels;
|
|
662
|
+
if (max == null || n <= max)
|
|
663
|
+
return 1;
|
|
664
|
+
return Math.max(1, Math.ceil((n - 1) / Math.max(1, max - 1)));
|
|
665
|
+
}
|
|
666
|
+
renderChart() {
|
|
667
|
+
const n = this.labels.length;
|
|
668
|
+
const h = this.plotHeight || 200;
|
|
669
|
+
const padLeft = (this.padLeft ?? PAD_LEFT) + (this.yLabel ? AXIS_TITLE_SPACE : 0);
|
|
670
|
+
const padBottom = PAD_BOTTOM + (this.xLabel ? AXIS_TITLE_SPACE : 0);
|
|
671
|
+
const plotX = padLeft;
|
|
672
|
+
const plotY = PAD_TOP;
|
|
673
|
+
const plotH = Math.max(0, h - plotY - padBottom);
|
|
674
|
+
let w;
|
|
675
|
+
let plotW;
|
|
676
|
+
let slot;
|
|
677
|
+
if (this.layout === 'scroll') {
|
|
678
|
+
// Fixed-width bars: content width is driven by category count ×
|
|
679
|
+
// barWidth instead of the measured host width, and CAN exceed it --
|
|
680
|
+
// the svg gets an explicit inline-size below (not 100%) and
|
|
681
|
+
// `:host([layout='scroll']) [part='base']` (lite-chart.styles.ts)
|
|
682
|
+
// turns on `overflow-x: auto` so the host scrolls to reveal the rest.
|
|
683
|
+
slot = this.barWidth;
|
|
684
|
+
plotW = Math.max(0, n * slot);
|
|
685
|
+
w = plotX + plotW + PAD_RIGHT;
|
|
686
|
+
}
|
|
687
|
+
else {
|
|
688
|
+
// 'fit' (default): squeeze to the measured host width, byte-for-byte
|
|
689
|
+
// the same computation as before `layout` existed.
|
|
690
|
+
w = this.plotWidth || 400;
|
|
691
|
+
plotW = Math.max(0, w - plotX - PAD_RIGHT);
|
|
692
|
+
slot = n > 0 ? plotW / n : 0;
|
|
693
|
+
}
|
|
694
|
+
const { lo, hi, ticks } = this.domain();
|
|
695
|
+
const grid = this.hideAxis ? [] : this.renderGrid(plotX, plotY, plotW, plotH, ticks, lo, hi);
|
|
696
|
+
const marks = this.type === 'bar'
|
|
697
|
+
? this.renderBars(plotX, plotY, plotH, slot, lo, hi)
|
|
698
|
+
: this.renderLines(plotX, plotY, plotW, plotH, lo, hi);
|
|
699
|
+
const step = this.labelStep(n);
|
|
700
|
+
const categoryLabels = this.labels.map((label, i) => {
|
|
701
|
+
if (i !== 0 && i !== n - 1 && i % step !== 0)
|
|
702
|
+
return nothing; // maxLabels decimation
|
|
703
|
+
const x = this.type === 'bar' && n > 0
|
|
704
|
+
? (this.barX ? this.barX(i) : plotX + i * slot) + slot / 2 // matches renderBars()'s own per-category slot center (or the barX override, when set)
|
|
705
|
+
: plotX + (n > 1 ? (i / (n - 1)) * plotW : plotW / 2);
|
|
706
|
+
return svg `<text part="axis-label" x=${x} y=${plotY + plotH + 14} text-anchor="middle">${label}</text>`;
|
|
707
|
+
});
|
|
708
|
+
const chartLabel = this.chartLabel ?? (this.datasets.map((d) => d.label).join(', ') || 'Chart');
|
|
709
|
+
const marksForA11y = this.interactiveMarks();
|
|
710
|
+
const activeMark = this.normalizedMarkIndex(marksForA11y);
|
|
711
|
+
return html `
|
|
712
|
+
<div part="base">
|
|
713
|
+
<svg
|
|
714
|
+
viewBox="0 0 ${w} ${h}"
|
|
715
|
+
style=${this.layout === 'scroll' ? `inline-size: ${w}px` : nothing}
|
|
716
|
+
role="group"
|
|
717
|
+
aria-label=${chartLabel}
|
|
718
|
+
tabindex=${marksForA11y.length ? '-1' : '0'}
|
|
719
|
+
>
|
|
720
|
+
${grid}
|
|
721
|
+
${categoryLabels}
|
|
722
|
+
${marks}
|
|
723
|
+
${this.yLabel
|
|
724
|
+
? svg `<text part="axis-title" x=${12} y=${plotY + plotH / 2} text-anchor="middle" transform="rotate(-90, 12, ${plotY + plotH / 2})">${this.yLabel}</text>`
|
|
725
|
+
: nothing}
|
|
726
|
+
${this.xLabel
|
|
727
|
+
? svg `<text part="axis-title" x=${plotX + plotW / 2} y=${plotY + plotH + padBottom - 2} text-anchor="middle">${this.xLabel}</text>`
|
|
728
|
+
: nothing}
|
|
729
|
+
</svg>
|
|
730
|
+
<div part="live-region" class="sr-only" role="status" aria-live="polite" aria-atomic="true">
|
|
731
|
+
${activeMark >= 0 ? this.liveText || this.markAnnouncement(activeMark, marksForA11y) : ''}
|
|
732
|
+
</div>
|
|
733
|
+
<ul part="data-list" class="sr-only" aria-label="Chart data">
|
|
734
|
+
${marksForA11y.map((mark, index) => html `<li>${this.markAnnouncement(index, marksForA11y)}</li>`)}
|
|
735
|
+
</ul>
|
|
736
|
+
${this.legend
|
|
737
|
+
? html `<div part="legend">
|
|
738
|
+
${this.datasets.map((s, i) => html `
|
|
739
|
+
<span part="legend-item">
|
|
740
|
+
<span part="legend-swatch" style="background:${this.colorFor(i, s)}"></span>
|
|
741
|
+
${s.label}
|
|
742
|
+
</span>
|
|
743
|
+
`)}
|
|
744
|
+
</div>`
|
|
745
|
+
: nothing}
|
|
746
|
+
</div>
|
|
747
|
+
`;
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
__decorate([
|
|
751
|
+
property()
|
|
752
|
+
], LyraLiteChart.prototype, "type", void 0);
|
|
753
|
+
__decorate([
|
|
754
|
+
property({ attribute: false })
|
|
755
|
+
], LyraLiteChart.prototype, "labels", void 0);
|
|
756
|
+
__decorate([
|
|
757
|
+
property({ attribute: false })
|
|
758
|
+
], LyraLiteChart.prototype, "datasets", void 0);
|
|
759
|
+
__decorate([
|
|
760
|
+
property({ type: Boolean })
|
|
761
|
+
], LyraLiteChart.prototype, "legend", void 0);
|
|
762
|
+
__decorate([
|
|
763
|
+
property()
|
|
764
|
+
], LyraLiteChart.prototype, "height", void 0);
|
|
765
|
+
__decorate([
|
|
766
|
+
property({ attribute: 'x-label' })
|
|
767
|
+
], LyraLiteChart.prototype, "xLabel", void 0);
|
|
768
|
+
__decorate([
|
|
769
|
+
property({ attribute: 'y-label' })
|
|
770
|
+
], LyraLiteChart.prototype, "yLabel", void 0);
|
|
771
|
+
__decorate([
|
|
772
|
+
property({ type: Boolean, attribute: 'begin-at-zero' })
|
|
773
|
+
], LyraLiteChart.prototype, "beginAtZero", void 0);
|
|
774
|
+
__decorate([
|
|
775
|
+
property({ type: Boolean })
|
|
776
|
+
], LyraLiteChart.prototype, "stacked", void 0);
|
|
777
|
+
__decorate([
|
|
778
|
+
property({ attribute: false })
|
|
779
|
+
], LyraLiteChart.prototype, "tickFormat", void 0);
|
|
780
|
+
__decorate([
|
|
781
|
+
property({ reflect: true })
|
|
782
|
+
], LyraLiteChart.prototype, "layout", void 0);
|
|
783
|
+
__decorate([
|
|
784
|
+
property({ type: Number, attribute: 'bar-width' })
|
|
785
|
+
], LyraLiteChart.prototype, "barWidth", void 0);
|
|
786
|
+
__decorate([
|
|
787
|
+
property({ type: Number, attribute: 'max-labels' })
|
|
788
|
+
], LyraLiteChart.prototype, "maxLabels", void 0);
|
|
789
|
+
__decorate([
|
|
790
|
+
property({ attribute: false })
|
|
791
|
+
], LyraLiteChart.prototype, "barX", void 0);
|
|
792
|
+
__decorate([
|
|
793
|
+
property({ attribute: false })
|
|
794
|
+
], LyraLiteChart.prototype, "pointText", void 0);
|
|
795
|
+
__decorate([
|
|
796
|
+
property({ type: Boolean, attribute: 'rounded-bars' })
|
|
797
|
+
], LyraLiteChart.prototype, "roundedBars", void 0);
|
|
798
|
+
__decorate([
|
|
799
|
+
property({ type: Boolean, attribute: 'skip-zero' })
|
|
800
|
+
], LyraLiteChart.prototype, "skipZero", void 0);
|
|
801
|
+
__decorate([
|
|
802
|
+
property({ type: Number, attribute: 'pad-left' })
|
|
803
|
+
], LyraLiteChart.prototype, "padLeft", void 0);
|
|
804
|
+
__decorate([
|
|
805
|
+
property({ type: Number, attribute: 'bar-gap-ratio' })
|
|
806
|
+
], LyraLiteChart.prototype, "barGapRatio", void 0);
|
|
807
|
+
__decorate([
|
|
808
|
+
property()
|
|
809
|
+
], LyraLiteChart.prototype, "scale", void 0);
|
|
810
|
+
__decorate([
|
|
811
|
+
property({ type: Boolean, attribute: 'hide-axis' })
|
|
812
|
+
], LyraLiteChart.prototype, "hideAxis", void 0);
|
|
813
|
+
__decorate([
|
|
814
|
+
property({ type: Number, attribute: 'min-bar-height' })
|
|
815
|
+
], LyraLiteChart.prototype, "minBarHeight", void 0);
|
|
816
|
+
__decorate([
|
|
817
|
+
property({ attribute: false })
|
|
818
|
+
], LyraLiteChart.prototype, "selectedIndex", void 0);
|
|
819
|
+
__decorate([
|
|
820
|
+
property({ attribute: 'chart-label' })
|
|
821
|
+
], LyraLiteChart.prototype, "chartLabel", void 0);
|
|
822
|
+
__decorate([
|
|
823
|
+
state()
|
|
824
|
+
], LyraLiteChart.prototype, "plotWidth", void 0);
|
|
825
|
+
__decorate([
|
|
826
|
+
state()
|
|
827
|
+
], LyraLiteChart.prototype, "plotHeight", void 0);
|
|
828
|
+
__decorate([
|
|
829
|
+
state()
|
|
830
|
+
], LyraLiteChart.prototype, "visible", void 0);
|
|
831
|
+
__decorate([
|
|
832
|
+
state()
|
|
833
|
+
], LyraLiteChart.prototype, "activeMarkIndex", void 0);
|
|
834
|
+
__decorate([
|
|
835
|
+
state()
|
|
836
|
+
], LyraLiteChart.prototype, "liveText", void 0);
|
|
837
|
+
__decorate([
|
|
838
|
+
query('svg')
|
|
839
|
+
], LyraLiteChart.prototype, "svgEl", void 0);
|
|
840
|
+
function formatTick(v) {
|
|
841
|
+
// Avoid float noise (e.g. 0.30000000000000004) from the niceStep() math
|
|
842
|
+
// above without hardcoding a fixed decimal count that'd butcher large ints.
|
|
843
|
+
return Number(v.toFixed(6)).toString();
|
|
844
|
+
}
|
|
845
|
+
//# sourceMappingURL=lite-chart.class.js.map
|