@aceshooting/lyra-ui 2.0.0 → 2.2.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 +107 -19
- package/custom-elements.json +40136 -17102
- package/dist/components/app-rail/app-rail-item.class.d.ts +36 -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 +77 -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 -0
- package/dist/components/app-rail/app-rail-item.d.ts.map +1 -0
- package/dist/components/app-rail/app-rail-item.js +5 -0
- package/dist/components/app-rail/app-rail-item.js.map +1 -0
- package/dist/components/app-rail/app-rail-item.styles.d.ts +2 -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 +71 -0
- package/dist/components/app-rail/app-rail-item.styles.js.map +1 -0
- package/dist/components/app-rail/app-rail.class.d.ts +213 -0
- package/dist/components/app-rail/app-rail.class.d.ts.map +1 -0
- package/dist/components/app-rail/app-rail.class.js +545 -0
- package/dist/components/app-rail/app-rail.class.js.map +1 -0
- package/dist/components/app-rail/app-rail.d.ts +3 -171
- package/dist/components/app-rail/app-rail.d.ts.map +1 -0
- package/dist/components/app-rail/app-rail.js +4 -481
- 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 +42 -10
- package/dist/components/app-rail/app-rail.styles.js.map +1 -0
- package/dist/components/attachment-chip/attachment-chip.class.d.ts +151 -0
- package/dist/components/attachment-chip/attachment-chip.class.d.ts.map +1 -0
- package/dist/components/attachment-chip/attachment-chip.class.js +370 -0
- package/dist/components/attachment-chip/attachment-chip.class.js.map +1 -0
- package/dist/components/attachment-chip/attachment-chip.d.ts +2 -114
- package/dist/components/attachment-chip/attachment-chip.d.ts.map +1 -0
- package/dist/components/attachment-chip/attachment-chip.js +3 -310
- 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 +29 -13
- package/dist/components/attachment-chip/attachment-chip.styles.js.map +1 -0
- package/dist/components/attachment-trigger/attachment-trigger.class.d.ts +106 -0
- package/dist/components/attachment-trigger/attachment-trigger.class.d.ts.map +1 -0
- package/dist/components/attachment-trigger/attachment-trigger.class.js +227 -0
- package/dist/components/attachment-trigger/attachment-trigger.class.js.map +1 -0
- package/dist/components/attachment-trigger/attachment-trigger.d.ts +4 -83
- package/dist/components/attachment-trigger/attachment-trigger.d.ts.map +1 -0
- package/dist/components/attachment-trigger/attachment-trigger.js +5 -256
- 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 +38 -11
- package/dist/components/attachment-trigger/attachment-trigger.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 -25
- 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 -53
- package/dist/components/chart/box-plot.d.ts.map +1 -0
- package/dist/components/chart/box-plot.js +4 -189
- 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 +15 -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 -29
- 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 +651 -0
- package/dist/components/chart/chart.class.js.map +1 -0
- package/dist/components/chart/chart.d.ts +3 -152
- package/dist/components/chart/chart.d.ts.map +1 -0
- package/dist/components/chart/chart.js +4 -539
- 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 -25
- package/dist/components/chart/doughnut-chart.js.map +1 -0
- package/dist/components/chart/histogram-bin.d.ts +6 -2
- package/dist/components/chart/histogram-bin.d.ts.map +1 -0
- package/dist/components/chart/histogram-bin.js +13 -4
- 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 -98
- 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 -25
- package/dist/components/chart/line-chart.js.map +1 -0
- package/dist/components/chart/lite-chart.class.d.ts +237 -0
- package/dist/components/chart/lite-chart.class.d.ts.map +1 -0
- package/dist/components/chart/lite-chart.class.js +757 -0
- package/dist/components/chart/lite-chart.class.js.map +1 -0
- package/dist/components/chart/lite-chart.d.ts +2 -137
- package/dist/components/chart/lite-chart.d.ts.map +1 -0
- package/dist/components/chart/lite-chart.js +3 -540
- 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 +19 -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 -26
- 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 -25
- 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 -25
- 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 -26
- 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 +314 -0
- package/dist/components/chat-composer/chat-composer.class.js.map +1 -0
- package/dist/components/chat-composer/chat-composer.d.ts +2 -92
- package/dist/components/chat-composer/chat-composer.d.ts.map +1 -0
- package/dist/components/chat-composer/chat-composer.js +3 -283
- 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 +16 -5
- 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 +270 -0
- package/dist/components/chat-message/chat-message.class.js.map +1 -0
- package/dist/components/chat-message/chat-message.d.ts +3 -113
- package/dist/components/chat-message/chat-message.d.ts.map +1 -0
- package/dist/components/chat-message/chat-message.js +4 -289
- 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 +328 -0
- package/dist/components/checkbox/checkbox.class.js.map +1 -0
- package/dist/components/checkbox/checkbox.d.ts +2 -59
- package/dist/components/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.js +3 -228
- 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 +14 -6
- 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 -122
- 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 +65 -0
- package/dist/components/chip/chip.class.d.ts.map +1 -0
- package/dist/components/chip/chip.class.js +121 -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 -113
- 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 +12 -11
- 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 -298
- 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.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 +333 -0
- package/dist/components/code-block/code-block.class.js.map +1 -0
- package/dist/components/code-block/code-block.d.ts +3 -89
- package/dist/components/code-block/code-block.d.ts.map +1 -0
- package/dist/components/code-block/code-block.js +4 -315
- 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 +49 -5
- package/dist/components/code-block/code-loader.d.ts.map +1 -0
- package/dist/components/code-block/code-loader.js +64 -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 +854 -0
- package/dist/components/combobox/combobox.class.js.map +1 -0
- package/dist/components/combobox/combobox.d.ts +3 -158
- package/dist/components/combobox/combobox.d.ts.map +1 -0
- package/dist/components/combobox/combobox.js +4 -751
- 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 -148
- 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 -12
- 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 +259 -0
- package/dist/components/conversation-item/conversation-item.class.js.map +1 -0
- package/dist/components/conversation-item/conversation-item.d.ts +2 -128
- package/dist/components/conversation-item/conversation-item.d.ts.map +1 -0
- package/dist/components/conversation-item/conversation-item.js +3 -320
- 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 +103 -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 +25 -0
- package/dist/components/date-picker/calendar-core.d.ts.map +1 -0
- package/dist/components/date-picker/calendar-core.js +52 -4
- 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 +676 -0
- package/dist/components/date-picker/date-input.class.js.map +1 -0
- package/dist/components/date-picker/date-input.d.ts +3 -101
- package/dist/components/date-picker/date-input.d.ts.map +1 -0
- package/dist/components/date-picker/date-input.js +4 -470
- 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 +513 -0
- package/dist/components/date-picker/date-picker.class.js.map +1 -0
- package/dist/components/date-picker/date-picker.d.ts +2 -79
- package/dist/components/date-picker/date-picker.d.ts.map +1 -0
- package/dist/components/date-picker/date-picker.js +3 -432
- 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 +4 -6
- 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 -85
- package/dist/components/dialog/dialog.d.ts.map +1 -0
- package/dist/components/dialog/dialog.js +3 -270
- 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 +54 -6
- package/dist/components/dialog/dialog.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 -134
- package/dist/components/dock-panel/dock-panel.d.ts.map +1 -0
- package/dist/components/dock-panel/dock-panel.js +3 -343
- 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 +34 -13
- 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 +304 -0
- package/dist/components/document-preview/document-preview.class.js.map +1 -0
- package/dist/components/document-preview/document-preview.d.ts +2 -135
- package/dist/components/document-preview/document-preview.d.ts.map +1 -0
- package/dist/components/document-preview/document-preview.js +3 -370
- 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 +43 -0
- package/dist/components/empty/empty.class.d.ts.map +1 -0
- package/dist/components/empty/empty.class.js +112 -0
- package/dist/components/empty/empty.class.js.map +1 -0
- package/dist/components/empty/empty.d.ts +2 -43
- package/dist/components/empty/empty.d.ts.map +1 -0
- package/dist/components/empty/empty.js +3 -105
- 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 +6 -8
- 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 +249 -0
- package/dist/components/export-button/export-button.class.js.map +1 -0
- package/dist/components/export-button/export-button.d.ts +2 -55
- package/dist/components/export-button/export-button.d.ts.map +1 -0
- package/dist/components/export-button/export-button.js +3 -233
- 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 +11 -6
- 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 +3 -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 +213 -0
- package/dist/components/file-input/file-input.class.js.map +1 -0
- package/dist/components/file-input/file-input.d.ts +2 -50
- package/dist/components/file-input/file-input.d.ts.map +1 -0
- package/dist/components/file-input/file-input.js +3 -195
- 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 -225
- 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 +6 -5
- package/dist/components/flag/flag.styles.js.map +1 -0
- package/dist/components/flag/language-map.d.ts +5 -1
- package/dist/components/flag/language-map.d.ts.map +1 -0
- package/dist/components/flag/language-map.js +7 -3
- 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 -31
- package/dist/components/gauge/gauge.d.ts.map +1 -0
- package/dist/components/gauge/gauge.js +3 -158
- 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 +260 -0
- package/dist/components/generation-status/generation-status.class.js.map +1 -0
- package/dist/components/generation-status/generation-status.d.ts +2 -109
- package/dist/components/generation-status/generation-status.d.ts.map +1 -0
- package/dist/components/generation-status/generation-status.js +3 -271
- 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 +167 -0
- package/dist/components/graph/graph.class.d.ts.map +1 -0
- package/dist/components/graph/graph.class.js +552 -0
- package/dist/components/graph/graph.class.js.map +1 -0
- package/dist/components/graph/graph.d.ts +3 -123
- package/dist/components/graph/graph.d.ts.map +1 -0
- package/dist/components/graph/graph.js +4 -465
- 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 +2 -1
- package/dist/components/graph/graph.styles.js.map +1 -0
- package/dist/components/heatmap/calendar-grid.d.ts +16 -6
- package/dist/components/heatmap/calendar-grid.d.ts.map +1 -0
- package/dist/components/heatmap/calendar-grid.js +18 -6
- package/dist/components/heatmap/calendar-grid.js.map +1 -0
- package/dist/components/heatmap/heatmap-scale.d.ts +14 -1
- package/dist/components/heatmap/heatmap-scale.d.ts.map +1 -0
- package/dist/components/heatmap/heatmap-scale.js +21 -2
- package/dist/components/heatmap/heatmap-scale.js.map +1 -0
- package/dist/components/heatmap/heatmap.class.d.ts +478 -0
- package/dist/components/heatmap/heatmap.class.d.ts.map +1 -0
- package/dist/components/heatmap/heatmap.class.js +1211 -0
- package/dist/components/heatmap/heatmap.class.js.map +1 -0
- package/dist/components/heatmap/heatmap.d.ts +2 -296
- package/dist/components/heatmap/heatmap.d.ts.map +1 -0
- package/dist/components/heatmap/heatmap.js +3 -892
- 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 +340 -0
- package/dist/components/json-viewer/json-viewer.class.js.map +1 -0
- package/dist/components/json-viewer/json-viewer.d.ts +2 -53
- package/dist/components/json-viewer/json-viewer.d.ts.map +1 -0
- package/dist/components/json-viewer/json-viewer.js +3 -281
- 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 +25 -21
- 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 -212
- 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 -81
- package/dist/components/live-region/live-region.d.ts.map +1 -0
- package/dist/components/live-region/live-region.js +3 -151
- 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 +450 -0
- package/dist/components/map/map.class.js.map +1 -0
- package/dist/components/map/map.d.ts +3 -88
- package/dist/components/map/map.d.ts.map +1 -0
- package/dist/components/map/map.js +4 -412
- 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 +30 -6
- package/dist/components/markdown/markdown-loader.d.ts.map +1 -0
- package/dist/components/markdown/markdown-loader.js +36 -1
- package/dist/components/markdown/markdown-loader.js.map +1 -0
- package/dist/components/markdown/markdown.class.d.ts +129 -0
- package/dist/components/markdown/markdown.class.d.ts.map +1 -0
- package/dist/components/markdown/markdown.class.js +354 -0
- package/dist/components/markdown/markdown.class.js.map +1 -0
- package/dist/components/markdown/markdown.d.ts +2 -81
- package/dist/components/markdown/markdown.d.ts.map +1 -0
- package/dist/components/markdown/markdown.js +3 -282
- 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 +19 -12
- 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 -122
- package/dist/components/media-card/media-card.d.ts.map +1 -0
- package/dist/components/media-card/media-card.js +3 -293
- 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 +379 -0
- package/dist/components/mention-popover/mention-popover.class.js.map +1 -0
- package/dist/components/mention-popover/mention-popover.d.ts +2 -200
- package/dist/components/mention-popover/mention-popover.d.ts.map +1 -0
- package/dist/components/mention-popover/mention-popover.js +3 -473
- 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 +150 -0
- package/dist/components/menu/menu-item.class.js.map +1 -0
- package/dist/components/menu/menu-item.d.ts +2 -62
- package/dist/components/menu/menu-item.d.ts.map +1 -0
- package/dist/components/menu/menu-item.js +3 -117
- 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 +11 -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 +378 -0
- package/dist/components/menu/menu.class.js.map +1 -0
- package/dist/components/menu/menu.d.ts +3 -143
- package/dist/components/menu/menu.d.ts.map +1 -0
- package/dist/components/menu/menu.js +4 -363
- 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 -7
- 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 +555 -0
- package/dist/components/model-select/model-select.class.js.map +1 -0
- package/dist/components/model-select/model-select.d.ts +2 -125
- package/dist/components/model-select/model-select.d.ts.map +1 -0
- package/dist/components/model-select/model-select.js +3 -488
- 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 +39 -24
- 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 -69
- 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 -143
- 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 +238 -0
- package/dist/components/playback/playback.class.js.map +1 -0
- package/dist/components/playback/playback.d.ts +2 -67
- package/dist/components/playback/playback.d.ts.map +1 -0
- package/dist/components/playback/playback.js +3 -207
- 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 +8 -2
- package/dist/components/playback/playback.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 -150
- package/dist/components/responsive-panel/responsive-panel.d.ts.map +1 -0
- package/dist/components/responsive-panel/responsive-panel.js +3 -363
- 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 -44
- package/dist/components/result-card/result-card.d.ts.map +1 -0
- package/dist/components/result-card/result-card.js +3 -81
- 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 -5
- 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/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 +637 -0
- package/dist/components/select/select.class.js.map +1 -0
- package/dist/components/select/select.d.ts +3 -166
- package/dist/components/select/select.d.ts.map +1 -0
- package/dist/components/select/select.js +4 -611
- 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 +35 -34
- 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 -26
- package/dist/components/skeleton/skeleton.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton.js +3 -60
- 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 +7 -5
- 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 +433 -0
- package/dist/components/slider/slider.class.js.map +1 -0
- package/dist/components/slider/slider.d.ts +2 -89
- package/dist/components/slider/slider.d.ts.map +1 -0
- package/dist/components/slider/slider.js +3 -350
- 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 -92
- package/dist/components/source-card/source-card.d.ts.map +1 -0
- package/dist/components/source-card/source-card.js +3 -146
- 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 +12 -11
- 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 -120
- 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 -113
- 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 +831 -0
- package/dist/components/split/split.class.js.map +1 -0
- package/dist/components/split/split.d.ts +2 -155
- package/dist/components/split/split.d.ts.map +1 -0
- package/dist/components/split/split.js +3 -583
- 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 +24 -6
- 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 -83
- package/dist/components/stat/stat.d.ts.map +1 -0
- package/dist/components/stat/stat.js +3 -213
- 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 +23 -22
- package/dist/components/stat/stat.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 +212 -0
- package/dist/components/stream-status/stream-status.class.js.map +1 -0
- package/dist/components/stream-status/stream-status.d.ts +3 -110
- package/dist/components/stream-status/stream-status.d.ts.map +1 -0
- package/dist/components/stream-status/stream-status.js +4 -208
- 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 -98
- package/dist/components/streaming-text/streaming-text.d.ts.map +1 -0
- package/dist/components/streaming-text/streaming-text.js +4 -207
- 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 +6 -4
- 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 +225 -0
- package/dist/components/switch/switch.class.js.map +1 -0
- package/dist/components/switch/switch.d.ts +2 -58
- package/dist/components/switch/switch.d.ts.map +1 -0
- package/dist/components/switch/switch.js +3 -177
- 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 +19 -15
- package/dist/components/switch/switch.styles.js.map +1 -0
- package/dist/components/table/table.class.d.ts +212 -0
- package/dist/components/table/table.class.d.ts.map +1 -0
- package/dist/components/table/table.class.js +562 -0
- package/dist/components/table/table.class.js.map +1 -0
- package/dist/components/table/table.d.ts +3 -184
- package/dist/components/table/table.d.ts.map +1 -0
- package/dist/components/table/table.js +4 -543
- 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 +9 -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 +215 -0
- package/dist/components/tabs/tabs.class.js.map +1 -0
- package/dist/components/tabs/tabs.d.ts +2 -51
- package/dist/components/tabs/tabs.d.ts.map +1 -0
- package/dist/components/tabs/tabs.js +3 -188
- 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 +21 -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 -121
- package/dist/components/thinking-panel/thinking-panel.d.ts.map +1 -0
- package/dist/components/thinking-panel/thinking-panel.js +3 -233
- 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 +19 -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 +467 -0
- package/dist/components/time-range/time-range.class.js.map +1 -0
- package/dist/components/time-range/time-range.d.ts +2 -69
- package/dist/components/time-range/time-range.d.ts.map +1 -0
- package/dist/components/time-range/time-range.js +3 -398
- 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 +307 -0
- package/dist/components/toast/toast-item.class.js.map +1 -0
- package/dist/components/toast/toast-item.d.ts +2 -63
- package/dist/components/toast/toast-item.d.ts.map +1 -0
- package/dist/components/toast/toast-item.js +3 -286
- 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 +64 -32
- 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 -46
- 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 +11 -1
- 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 +257 -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 -130
- 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 -401
- 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 -89
- 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 -286
- 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 +548 -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 -145
- 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 -364
- 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 -102
- 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 -391
- 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 -8
- package/dist/components/tool-result-view/registry.d.ts.map +1 -0
- package/dist/components/tool-result-view/registry.js +8 -2
- 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 +124 -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 -55
- 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 -136
- 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 -437
- 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 +40 -27
- 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 +204 -0
- package/dist/components/tree/tree-node.class.js.map +1 -0
- package/dist/components/tree/tree-node.d.ts +2 -65
- package/dist/components/tree/tree-node.d.ts.map +1 -0
- package/dist/components/tree/tree-node.js +4 -219
- 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 -120
- package/dist/components/tree/tree.d.ts.map +1 -0
- package/dist/components/tree/tree.js +5 -324
- 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 -60
- package/dist/components/typing-indicator/typing-indicator.d.ts.map +1 -0
- package/dist/components/typing-indicator/typing-indicator.js +3 -94
- 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 +9 -8
- 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 +520 -0
- package/dist/components/virtual-list/virtual-list.class.js.map +1 -0
- package/dist/components/virtual-list/virtual-list.d.ts +2 -173
- package/dist/components/virtual-list/virtual-list.d.ts.map +1 -0
- package/dist/components/virtual-list/virtual-list.js +3 -459
- 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 +14 -1
- package/dist/components/virtual-list/virtual-list.styles.js.map +1 -0
- package/dist/components/widget/widget.class.d.ts +70 -0
- package/dist/components/widget/widget.class.d.ts.map +1 -0
- package/dist/components/widget/widget.class.js +224 -0
- package/dist/components/widget/widget.class.js.map +1 -0
- package/dist/components/widget/widget.d.ts +2 -64
- package/dist/components/widget/widget.d.ts.map +1 -0
- package/dist/components/widget/widget.js +3 -315
- 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 +19 -8
- package/dist/components/widget/widget.styles.js.map +1 -0
- package/dist/components/word-cloud/word-cloud-layout.d.ts +8 -0
- package/dist/components/word-cloud/word-cloud-layout.d.ts.map +1 -0
- package/dist/components/word-cloud/word-cloud-layout.js +21 -6
- 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 +279 -0
- package/dist/components/word-cloud/word-cloud.class.js.map +1 -0
- package/dist/components/word-cloud/word-cloud.d.ts +2 -71
- package/dist/components/word-cloud/word-cloud.d.ts.map +1 -0
- package/dist/components/word-cloud/word-cloud.js +3 -264
- 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 +37 -11
- 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 +2 -0
- package/dist/internal/anchored-validity.d.ts.map +1 -0
- package/dist/internal/anchored-validity.js +87 -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 +8 -0
- package/dist/internal/form-associated.d.ts.map +1 -0
- package/dist/internal/form-associated.js +44 -4
- 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 +141 -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 +13 -0
- package/dist/internal/numbers.d.ts.map +1 -0
- package/dist/internal/numbers.js +27 -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 +52 -0
- package/dist/internal/overlay-manager.d.ts.map +1 -0
- package/dist/internal/overlay-manager.js +524 -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 +28 -3
- 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 +95 -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 +13 -0
- package/dist/internal/safe-url.d.ts.map +1 -0
- package/dist/internal/safe-url.js +42 -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 +224 -11
- package/dist/internal/tokens.styles.js.map +1 -0
- package/dist/lyra.d.ts +56 -5
- package/dist/lyra.d.ts.map +1 -0
- package/dist/lyra.js +7 -2
- package/dist/lyra.js.map +1 -0
- package/llms-full.txt +1079 -472
- package/llms.txt +11 -10
- package/package.json +201 -6
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { type TemplateResult, type PropertyValues } from 'lit';
|
|
2
|
+
import { LyraElement } from '../../internal/lyra-element.js';
|
|
3
|
+
/**
|
|
4
|
+
* `<lyra-tabs>` — a tab strip whose panels are direct light-DOM children,
|
|
5
|
+
* each carrying `slot="<id>"` (the panel's stable id) and `label="<text>"`
|
|
6
|
+
* (the tab button's text). One named `<slot>` is rendered per distinct
|
|
7
|
+
* `slot` name found among the current children — a child with no `label`,
|
|
8
|
+
* or a name with no matching child, simply never produces a tab.
|
|
9
|
+
*
|
|
10
|
+
* A tab button's *visible* content can carry a leading icon without ever
|
|
11
|
+
* changing its *accessible name* (which always stays exactly `label`'s
|
|
12
|
+
* text, nothing else): give a tab an extra direct-child sibling of
|
|
13
|
+
* `<lyra-tabs>` carrying `slot="<id>-icon"` (that sibling's own content --
|
|
14
|
+
* an inline SVG, an emoji span, a custom icon element, anything -- is
|
|
15
|
+
* entirely up to the consumer). It's rendered ahead of the label inside
|
|
16
|
+
* that tab's button, wrapped in an `aria-hidden="true"` part so it's
|
|
17
|
+
* excluded from accessible-name computation no matter what it contains. A
|
|
18
|
+
* tab with no matching `<id>-icon` sibling renders no icon wrapper at all,
|
|
19
|
+
* so existing text-only tabs are completely unaffected. (A named slot,
|
|
20
|
+
* rather than a second attribute holding an icon-name lookup, was chosen
|
|
21
|
+
* because this library's `internal/icons.ts` is a small closed set of
|
|
22
|
+
* chrome glyphs for this library's *own* components, not a public
|
|
23
|
+
* name-keyed registry -- a slot lets a consumer supply an arbitrary,
|
|
24
|
+
* domain-specific icon instead of being limited to that internal set.)
|
|
25
|
+
*
|
|
26
|
+
* Implements the WAI-ARIA APG tabs pattern with automatic activation:
|
|
27
|
+
* Left/Right (swapped under RTL) move focus *and* selection together,
|
|
28
|
+
* Home/End jump to the first/last enabled tab, and a roving `tabindex`
|
|
29
|
+
* follows whichever tab is currently selected.
|
|
30
|
+
*
|
|
31
|
+
* @customElement lyra-tabs
|
|
32
|
+
* @slot - Direct children with `slot="<id>" label="<text>"` (and optionally `disabled`); one becomes each tab's panel.
|
|
33
|
+
* @slot <id>-icon - Optional sibling direct child supplying a tab's leading icon content; excluded from the tab button's accessible name.
|
|
34
|
+
* @event lyra-tabs-change - `detail: { tabId }`, fired when the active tab changes via click or keyboard.
|
|
35
|
+
* @csspart base - The root wrapper around the tablist and panels.
|
|
36
|
+
* @csspart tablist - The `role="tablist"` row of tab buttons.
|
|
37
|
+
* @csspart tab - A single tab button.
|
|
38
|
+
* @csspart tab-icon - The optional leading-icon wrapper inside a tab button; only rendered when that tab has a matching `<id>-icon` sibling.
|
|
39
|
+
* @csspart panel - A single `role="tabpanel"` wrapper (one per tab, hidden unless active).
|
|
40
|
+
*/
|
|
41
|
+
export interface LyraTabsEventMap {
|
|
42
|
+
'lyra-tabs-change': CustomEvent<{
|
|
43
|
+
tabId: string;
|
|
44
|
+
}>;
|
|
45
|
+
}
|
|
46
|
+
export declare class LyraTabs extends LyraElement<LyraTabsEventMap> {
|
|
47
|
+
static styles: import("lit").CSSResultGroup[];
|
|
48
|
+
/** The active tab's `slot`/id. Falls back to the first enabled tab whenever the current value doesn't resolve to one. */
|
|
49
|
+
active: string;
|
|
50
|
+
private tabs;
|
|
51
|
+
private baseId;
|
|
52
|
+
private nextOpaqueId;
|
|
53
|
+
private readonly idsBySlot;
|
|
54
|
+
private mutationObserver?;
|
|
55
|
+
connectedCallback(): void;
|
|
56
|
+
disconnectedCallback(): void;
|
|
57
|
+
/** Rebuilds `tabs` from the current direct children. First child wins when two share a `slot` name (matches native slot assignment: both would render into the one panel, but only one label can back the button). */
|
|
58
|
+
private syncTabs;
|
|
59
|
+
/** Keeps `active` resolved to a real, enabled tab -- covers the initial default, a tab disappearing/becoming disabled underneath the current selection, and a consumer assigning `.active` directly. Silent (no `lyra-tabs-change`): this corrects *invalid* state rather than responding to a user picking a different tab. */
|
|
60
|
+
protected willUpdate(changed: PropertyValues): void;
|
|
61
|
+
/** Activates `tab` (no-op for a disabled tab or one that's already active) and emits `lyra-tabs-change`. */
|
|
62
|
+
private selectTab;
|
|
63
|
+
/** Moves real DOM focus to tab `slotName`'s button. Safe to call immediately (no `updateComplete` wait): every tab button already exists in the DOM regardless of its current `tabindex`, and `tabindex="-1"` elements are still focusable via script. */
|
|
64
|
+
private focusTab;
|
|
65
|
+
private onTabListKeyDown;
|
|
66
|
+
private tabId;
|
|
67
|
+
private panelId;
|
|
68
|
+
private idsFor;
|
|
69
|
+
/** Derives a tab's optional icon-sibling `slot` name from its own `slotName` -- see the class doc. */
|
|
70
|
+
private iconSlotName;
|
|
71
|
+
private renderTab;
|
|
72
|
+
private renderPanel;
|
|
73
|
+
render(): TemplateResult;
|
|
74
|
+
}
|
|
75
|
+
declare global {
|
|
76
|
+
interface HTMLElementTagNameMap {
|
|
77
|
+
'lyra-tabs': LyraTabs;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=tabs.class.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.class.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/tabs.class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAG9E,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAiB7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,WAAW,gBAAgB;IAC/B,kBAAkB,EAAE,WAAW,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACpD;AACD,qBAAa,QAAS,SAAQ,WAAW,CAAC,gBAAgB,CAAC;IACzD,MAAM,CAAC,MAAM,iCAAgC;IAE7C,yHAAyH;IAC5F,MAAM,SAAM;IAEhC,OAAO,CAAC,IAAI,CAAgB;IAErC,OAAO,CAAC,MAAM,CAAkB;IAChC,OAAO,CAAC,YAAY,CAAK;IACzB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAqD;IAC/E,OAAO,CAAC,gBAAgB,CAAC,CAAmB;IAE5C,iBAAiB,IAAI,IAAI,CA6BxB;IAED,oBAAoB,IAAI,IAAI,CAI3B;IAED,sNAAsN;IACtN,OAAO,CAAC,QAAQ,CAkBd;IAEF,gUAAgU;IAChU,SAAS,CAAC,UAAU,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,CAKlD;IAED,4GAA4G;IAC5G,OAAO,CAAC,SAAS;IAMjB,0PAA0P;IAC1P,OAAO,CAAC,QAAQ;IAUhB,OAAO,CAAC,gBAAgB,CA+BtB;IAEF,OAAO,CAAC,KAAK;IAGb,OAAO,CAAC,OAAO;IAGf,OAAO,CAAC,MAAM;IAQd,sGAAsG;IACtG,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,SAAS;IAkBjB,OAAO,CAAC,WAAW;IAcnB,MAAM,IAAI,cAAc,CAiBvB;CACF;AAGD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
|
|
@@ -0,0 +1,215 @@
|
|
|
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, nothing } from 'lit';
|
|
8
|
+
import { property, state } from 'lit/decorators.js';
|
|
9
|
+
import { repeat } from 'lit/directives/repeat.js';
|
|
10
|
+
import { LyraElement } from '../../internal/lyra-element.js';
|
|
11
|
+
import { isRtl } from '../../internal/rtl.js';
|
|
12
|
+
import { nextId } from '../../internal/a11y.js';
|
|
13
|
+
import { styles } from './tabs.styles.js';
|
|
14
|
+
export class LyraTabs extends LyraElement {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
/** The active tab's `slot`/id. Falls back to the first enabled tab whenever the current value doesn't resolve to one. */
|
|
18
|
+
this.active = '';
|
|
19
|
+
this.tabs = [];
|
|
20
|
+
this.baseId = nextId('tabs');
|
|
21
|
+
this.nextOpaqueId = 0;
|
|
22
|
+
this.idsBySlot = new Map();
|
|
23
|
+
/** Rebuilds `tabs` from the current direct children. First child wins when two share a `slot` name (matches native slot assignment: both would render into the one panel, but only one label can back the button). */
|
|
24
|
+
this.syncTabs = () => {
|
|
25
|
+
const seen = new Set();
|
|
26
|
+
const next = [];
|
|
27
|
+
const children = Array.from(this.children);
|
|
28
|
+
for (const child of children) {
|
|
29
|
+
const slotName = child.getAttribute('slot');
|
|
30
|
+
const label = child.getAttribute('label');
|
|
31
|
+
if (!slotName || !label || seen.has(slotName))
|
|
32
|
+
continue;
|
|
33
|
+
seen.add(slotName);
|
|
34
|
+
const iconSlot = this.iconSlotName(slotName);
|
|
35
|
+
const hasIcon = children.some((c) => c.getAttribute('slot') === iconSlot);
|
|
36
|
+
next.push({ slotName, label, disabled: child.hasAttribute('disabled'), hasIcon });
|
|
37
|
+
}
|
|
38
|
+
const liveSlots = new Set(next.map((tab) => tab.slotName));
|
|
39
|
+
for (const slotName of this.idsBySlot.keys()) {
|
|
40
|
+
if (!liveSlots.has(slotName))
|
|
41
|
+
this.idsBySlot.delete(slotName);
|
|
42
|
+
}
|
|
43
|
+
this.tabs = next;
|
|
44
|
+
};
|
|
45
|
+
this.onTabListKeyDown = (e) => {
|
|
46
|
+
const navigable = this.tabs.filter((t) => !t.disabled);
|
|
47
|
+
if (navigable.length === 0)
|
|
48
|
+
return;
|
|
49
|
+
const currentIndex = navigable.findIndex((t) => t.slotName === this.active);
|
|
50
|
+
// Horizontal strip -- Up/Down aren't used. Left/Right swap under RTL,
|
|
51
|
+
// matching lyra-split/lyra-tree's physical-direction handling.
|
|
52
|
+
const rtl = isRtl(this);
|
|
53
|
+
const forwardKey = rtl ? 'ArrowLeft' : 'ArrowRight';
|
|
54
|
+
const backwardKey = rtl ? 'ArrowRight' : 'ArrowLeft';
|
|
55
|
+
let targetIndex;
|
|
56
|
+
switch (e.key) {
|
|
57
|
+
case forwardKey:
|
|
58
|
+
targetIndex = currentIndex < 0 ? 0 : (currentIndex + 1) % navigable.length;
|
|
59
|
+
break;
|
|
60
|
+
case backwardKey:
|
|
61
|
+
targetIndex = currentIndex < 0 ? navigable.length - 1 : (currentIndex - 1 + navigable.length) % navigable.length;
|
|
62
|
+
break;
|
|
63
|
+
case 'Home':
|
|
64
|
+
targetIndex = 0;
|
|
65
|
+
break;
|
|
66
|
+
case 'End':
|
|
67
|
+
targetIndex = navigable.length - 1;
|
|
68
|
+
break;
|
|
69
|
+
default:
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
e.preventDefault();
|
|
73
|
+
const target = navigable[targetIndex];
|
|
74
|
+
this.selectTab(target);
|
|
75
|
+
this.focusTab(target.slotName);
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
static { this.styles = [LyraElement.styles, styles]; }
|
|
79
|
+
connectedCallback() {
|
|
80
|
+
super.connectedCallback();
|
|
81
|
+
this.syncTabs();
|
|
82
|
+
// Each child carries its own individual `slot` attribute (one named slot
|
|
83
|
+
// per tab, unlike lyra-split's single default-slot-of-many-panels) -- a
|
|
84
|
+
// brand-new tab's name has no matching `<slot>` to fire `slotchange` on
|
|
85
|
+
// until *this* component has already rendered one for it, and neither
|
|
86
|
+
// `slotchange` nor any Lit lifecycle hook observes a plain attribute
|
|
87
|
+
// edit (label/disabled) on a light-DOM child at all. A mutation observer
|
|
88
|
+
// on the host is the only thing that sees either case. `attributes: true`
|
|
89
|
+
// alone only reports mutations on the observed node itself (`this`), never
|
|
90
|
+
// on its children, so `subtree: true` is required too -- but that widens
|
|
91
|
+
// `childList`/`attributeFilter` to the *entire* descendant tree, including
|
|
92
|
+
// each panel's own projected content. A panel can legitimately churn its
|
|
93
|
+
// own children/attributes fast (a streaming log, a live JSON preview), so
|
|
94
|
+
// every record is filtered down to direct-child mutations only before
|
|
95
|
+
// triggering a resync, keeping panel-internal churn from forcing a tabs
|
|
96
|
+
// recompute and re-render on every unrelated mutation.
|
|
97
|
+
this.mutationObserver = new MutationObserver((records) => {
|
|
98
|
+
const isDirectChild = (node) => node.parentNode === this;
|
|
99
|
+
const relevant = records.some((r) => (r.type === 'childList' ? r.target === this : isDirectChild(r.target)));
|
|
100
|
+
if (relevant)
|
|
101
|
+
this.syncTabs();
|
|
102
|
+
});
|
|
103
|
+
this.mutationObserver.observe(this, {
|
|
104
|
+
childList: true,
|
|
105
|
+
subtree: true,
|
|
106
|
+
attributes: true,
|
|
107
|
+
attributeFilter: ['slot', 'label', 'disabled'],
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
disconnectedCallback() {
|
|
111
|
+
super.disconnectedCallback();
|
|
112
|
+
this.mutationObserver?.disconnect();
|
|
113
|
+
this.mutationObserver = undefined;
|
|
114
|
+
}
|
|
115
|
+
/** Keeps `active` resolved to a real, enabled tab -- covers the initial default, a tab disappearing/becoming disabled underneath the current selection, and a consumer assigning `.active` directly. Silent (no `lyra-tabs-change`): this corrects *invalid* state rather than responding to a user picking a different tab. */
|
|
116
|
+
willUpdate(changed) {
|
|
117
|
+
if (!changed.has('tabs') && !changed.has('active'))
|
|
118
|
+
return;
|
|
119
|
+
const current = this.tabs.find((t) => t.slotName === this.active);
|
|
120
|
+
if (current && !current.disabled)
|
|
121
|
+
return;
|
|
122
|
+
this.active = this.tabs.find((t) => !t.disabled)?.slotName ?? '';
|
|
123
|
+
}
|
|
124
|
+
/** Activates `tab` (no-op for a disabled tab or one that's already active) and emits `lyra-tabs-change`. */
|
|
125
|
+
selectTab(tab) {
|
|
126
|
+
if (tab.disabled || tab.slotName === this.active)
|
|
127
|
+
return;
|
|
128
|
+
this.active = tab.slotName;
|
|
129
|
+
this.emit('lyra-tabs-change', { tabId: tab.slotName });
|
|
130
|
+
}
|
|
131
|
+
/** Moves real DOM focus to tab `slotName`'s button. Safe to call immediately (no `updateComplete` wait): every tab button already exists in the DOM regardless of its current `tabindex`, and `tabindex="-1"` elements are still focusable via script. */
|
|
132
|
+
focusTab(slotName) {
|
|
133
|
+
const buttons = this.renderRoot.querySelectorAll('[part="tab"]');
|
|
134
|
+
for (const button of Array.from(buttons)) {
|
|
135
|
+
if (button.dataset.slot === slotName) {
|
|
136
|
+
button.focus();
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
tabId(slotName) {
|
|
142
|
+
return this.idsFor(slotName).tab;
|
|
143
|
+
}
|
|
144
|
+
panelId(slotName) {
|
|
145
|
+
return this.idsFor(slotName).panel;
|
|
146
|
+
}
|
|
147
|
+
idsFor(slotName) {
|
|
148
|
+
const existing = this.idsBySlot.get(slotName);
|
|
149
|
+
if (existing)
|
|
150
|
+
return existing;
|
|
151
|
+
const token = `${this.baseId}-${this.nextOpaqueId++}`;
|
|
152
|
+
const ids = { tab: `${token}-tab`, panel: `${token}-panel` };
|
|
153
|
+
this.idsBySlot.set(slotName, ids);
|
|
154
|
+
return ids;
|
|
155
|
+
}
|
|
156
|
+
/** Derives a tab's optional icon-sibling `slot` name from its own `slotName` -- see the class doc. */
|
|
157
|
+
iconSlotName(slotName) {
|
|
158
|
+
return `${slotName}-icon`;
|
|
159
|
+
}
|
|
160
|
+
renderTab(tab) {
|
|
161
|
+
const selected = tab.slotName === this.active;
|
|
162
|
+
return html `<button
|
|
163
|
+
type="button"
|
|
164
|
+
part="tab"
|
|
165
|
+
id=${this.tabId(tab.slotName)}
|
|
166
|
+
data-slot=${tab.slotName}
|
|
167
|
+
role="tab"
|
|
168
|
+
aria-selected=${selected ? 'true' : 'false'}
|
|
169
|
+
aria-disabled=${tab.disabled ? 'true' : 'false'}
|
|
170
|
+
aria-controls=${this.panelId(tab.slotName)}
|
|
171
|
+
tabindex=${selected ? '0' : '-1'}
|
|
172
|
+
@click=${() => this.selectTab(tab)}
|
|
173
|
+
>${tab.hasIcon
|
|
174
|
+
? html `<span part="tab-icon" aria-hidden="true"><slot name=${this.iconSlotName(tab.slotName)}></slot></span>`
|
|
175
|
+
: nothing}${tab.label}</button>`;
|
|
176
|
+
}
|
|
177
|
+
renderPanel(tab) {
|
|
178
|
+
const selected = tab.slotName === this.active;
|
|
179
|
+
return html `<div
|
|
180
|
+
part="panel"
|
|
181
|
+
id=${this.panelId(tab.slotName)}
|
|
182
|
+
role="tabpanel"
|
|
183
|
+
aria-labelledby=${this.tabId(tab.slotName)}
|
|
184
|
+
tabindex="0"
|
|
185
|
+
?hidden=${!selected}
|
|
186
|
+
>
|
|
187
|
+
<slot name=${tab.slotName}></slot>
|
|
188
|
+
</div>`;
|
|
189
|
+
}
|
|
190
|
+
render() {
|
|
191
|
+
// Keyed by `slotName`, not a plain `.map()`: a plain array binding reuses
|
|
192
|
+
// each rendered DOM node by *position*, so removing e.g. the first tab
|
|
193
|
+
// would silently relabel the still-focused second button's DOM node into
|
|
194
|
+
// the (unfocused) third tab's button, leaving real keyboard focus stuck
|
|
195
|
+
// on a tabindex="-1"/aria-selected="false" button instead of following
|
|
196
|
+
// the tab it used to represent. Keying by identity keeps each tab's own
|
|
197
|
+
// DOM node (and any focus on it) attached to that same tab across
|
|
198
|
+
// additions/removals anywhere in the list.
|
|
199
|
+
return html `
|
|
200
|
+
<div part="base">
|
|
201
|
+
<div part="tablist" role="tablist" aria-orientation="horizontal" @keydown=${this.onTabListKeyDown}>
|
|
202
|
+
${repeat(this.tabs, (tab) => tab.slotName, (tab) => this.renderTab(tab))}
|
|
203
|
+
</div>
|
|
204
|
+
${repeat(this.tabs, (tab) => tab.slotName, (tab) => this.renderPanel(tab))}
|
|
205
|
+
</div>
|
|
206
|
+
`;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
__decorate([
|
|
210
|
+
property({ reflect: true })
|
|
211
|
+
], LyraTabs.prototype, "active", void 0);
|
|
212
|
+
__decorate([
|
|
213
|
+
state()
|
|
214
|
+
], LyraTabs.prototype, "tabs", void 0);
|
|
215
|
+
//# sourceMappingURL=tabs.class.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.class.js","sourceRoot":"","sources":["../../../src/components/tabs/tabs.class.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAA4C,MAAM,KAAK,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAuD1C,MAAM,OAAO,QAAS,SAAQ,WAA6B;IAA3D;;QAGE,yHAAyH;QAC5F,WAAM,GAAG,EAAE,CAAC;QAExB,SAAI,GAAa,EAAE,CAAC;QAE7B,WAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;QACxB,iBAAY,GAAG,CAAC,CAAC;QACR,cAAS,G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E,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;;UAExE,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;;KAE7E,CAAC;IACJ,CAAC;CACF;AAnM8B;IAA5B,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wCAAa;AAExB;IAAhB,KAAK,EAAE;sCAA6B"}
|
|
@@ -1,51 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* `<lyra-tabs>` — a tab strip whose panels are direct light-DOM children,
|
|
5
|
-
* each carrying `slot="<id>"` (the panel's stable id) and `label="<text>"`
|
|
6
|
-
* (the tab button's text). One named `<slot>` is rendered per distinct
|
|
7
|
-
* `slot` name found among the current children — a child with no `label`,
|
|
8
|
-
* or a name with no matching child, simply never produces a tab.
|
|
9
|
-
*
|
|
10
|
-
* Implements the WAI-ARIA APG tabs pattern with automatic activation:
|
|
11
|
-
* Left/Right (swapped under RTL) move focus *and* selection together,
|
|
12
|
-
* Home/End jump to the first/last enabled tab, and a roving `tabindex`
|
|
13
|
-
* follows whichever tab is currently selected.
|
|
14
|
-
*
|
|
15
|
-
* @customElement lyra-tabs
|
|
16
|
-
* @slot - Direct children with `slot="<id>" label="<text>"` (and optionally `disabled`); one becomes each tab's panel.
|
|
17
|
-
* @event lyra-tabs-change - `detail: { tabId }`, fired when the active tab changes via click or keyboard.
|
|
18
|
-
* @csspart base - The root wrapper around the tablist and panels.
|
|
19
|
-
* @csspart tablist - The `role="tablist"` row of tab buttons.
|
|
20
|
-
* @csspart tab - A single tab button.
|
|
21
|
-
* @csspart panel - A single `role="tabpanel"` wrapper (one per tab, hidden unless active).
|
|
22
|
-
*/
|
|
23
|
-
export declare class LyraTabs extends LyraElement {
|
|
24
|
-
static styles: import("lit").CSSResultGroup[];
|
|
25
|
-
/** The active tab's `slot`/id. Falls back to the first enabled tab whenever the current value doesn't resolve to one. */
|
|
26
|
-
active: string;
|
|
27
|
-
private tabs;
|
|
28
|
-
private baseId;
|
|
29
|
-
private mutationObserver?;
|
|
30
|
-
connectedCallback(): void;
|
|
31
|
-
disconnectedCallback(): void;
|
|
32
|
-
/** Rebuilds `tabs` from the current direct children. First child wins when two share a `slot` name (matches native slot assignment: both would render into the one panel, but only one label can back the button). */
|
|
33
|
-
private syncTabs;
|
|
34
|
-
/** Keeps `active` resolved to a real, enabled tab -- covers the initial default, a tab disappearing/becoming disabled underneath the current selection, and a consumer assigning `.active` directly. Silent (no `lyra-tabs-change`): this corrects *invalid* state rather than responding to a user picking a different tab. */
|
|
35
|
-
protected willUpdate(changed: PropertyValues): void;
|
|
36
|
-
/** Activates `tab` (no-op for a disabled tab or one that's already active) and emits `lyra-tabs-change`. */
|
|
37
|
-
private selectTab;
|
|
38
|
-
/** Moves real DOM focus to tab `slotName`'s button. Safe to call immediately (no `updateComplete` wait): every tab button already exists in the DOM regardless of its current `tabindex`, and `tabindex="-1"` elements are still focusable via script. */
|
|
39
|
-
private focusTab;
|
|
40
|
-
private onTabListKeyDown;
|
|
41
|
-
private tabId;
|
|
42
|
-
private panelId;
|
|
43
|
-
private renderTab;
|
|
44
|
-
private renderPanel;
|
|
45
|
-
render(): TemplateResult;
|
|
46
|
-
}
|
|
47
|
-
declare global {
|
|
48
|
-
interface HTMLElementTagNameMap {
|
|
49
|
-
'lyra-tabs': LyraTabs;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
1
|
+
export * from './tabs.class.js';
|
|
2
|
+
//# sourceMappingURL=tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/tabs.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,190 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 } from 'lit';
|
|
8
|
-
import { property, state } from 'lit/decorators.js';
|
|
9
|
-
import { LyraElement } from '../../internal/lyra-element.js';
|
|
1
|
+
export * from './tabs.class.js';
|
|
2
|
+
import { LyraTabs } from './tabs.class.js';
|
|
10
3
|
import { defineElement } from '../../internal/prefix.js';
|
|
11
|
-
import { isRtl } from '../../internal/rtl.js';
|
|
12
|
-
import { nextId } from '../../internal/a11y.js';
|
|
13
|
-
import { styles } from './tabs.styles.js';
|
|
14
|
-
/**
|
|
15
|
-
* `<lyra-tabs>` — a tab strip whose panels are direct light-DOM children,
|
|
16
|
-
* each carrying `slot="<id>"` (the panel's stable id) and `label="<text>"`
|
|
17
|
-
* (the tab button's text). One named `<slot>` is rendered per distinct
|
|
18
|
-
* `slot` name found among the current children — a child with no `label`,
|
|
19
|
-
* or a name with no matching child, simply never produces a tab.
|
|
20
|
-
*
|
|
21
|
-
* Implements the WAI-ARIA APG tabs pattern with automatic activation:
|
|
22
|
-
* Left/Right (swapped under RTL) move focus *and* selection together,
|
|
23
|
-
* Home/End jump to the first/last enabled tab, and a roving `tabindex`
|
|
24
|
-
* follows whichever tab is currently selected.
|
|
25
|
-
*
|
|
26
|
-
* @customElement lyra-tabs
|
|
27
|
-
* @slot - Direct children with `slot="<id>" label="<text>"` (and optionally `disabled`); one becomes each tab's panel.
|
|
28
|
-
* @event lyra-tabs-change - `detail: { tabId }`, fired when the active tab changes via click or keyboard.
|
|
29
|
-
* @csspart base - The root wrapper around the tablist and panels.
|
|
30
|
-
* @csspart tablist - The `role="tablist"` row of tab buttons.
|
|
31
|
-
* @csspart tab - A single tab button.
|
|
32
|
-
* @csspart panel - A single `role="tabpanel"` wrapper (one per tab, hidden unless active).
|
|
33
|
-
*/
|
|
34
|
-
export class LyraTabs extends LyraElement {
|
|
35
|
-
constructor() {
|
|
36
|
-
super(...arguments);
|
|
37
|
-
/** The active tab's `slot`/id. Falls back to the first enabled tab whenever the current value doesn't resolve to one. */
|
|
38
|
-
this.active = '';
|
|
39
|
-
this.tabs = [];
|
|
40
|
-
this.baseId = nextId('tabs');
|
|
41
|
-
/** Rebuilds `tabs` from the current direct children. First child wins when two share a `slot` name (matches native slot assignment: both would render into the one panel, but only one label can back the button). */
|
|
42
|
-
this.syncTabs = () => {
|
|
43
|
-
const seen = new Set();
|
|
44
|
-
const next = [];
|
|
45
|
-
for (const child of Array.from(this.children)) {
|
|
46
|
-
const slotName = child.getAttribute('slot');
|
|
47
|
-
const label = child.getAttribute('label');
|
|
48
|
-
if (!slotName || !label || seen.has(slotName))
|
|
49
|
-
continue;
|
|
50
|
-
seen.add(slotName);
|
|
51
|
-
next.push({ slotName, label, disabled: child.hasAttribute('disabled') });
|
|
52
|
-
}
|
|
53
|
-
this.tabs = next;
|
|
54
|
-
};
|
|
55
|
-
this.onTabListKeyDown = (e) => {
|
|
56
|
-
const navigable = this.tabs.filter((t) => !t.disabled);
|
|
57
|
-
if (navigable.length === 0)
|
|
58
|
-
return;
|
|
59
|
-
const currentIndex = navigable.findIndex((t) => t.slotName === this.active);
|
|
60
|
-
// Horizontal strip -- Up/Down aren't used. Left/Right swap under RTL,
|
|
61
|
-
// matching lyra-split/lyra-tree's physical-direction handling.
|
|
62
|
-
const rtl = isRtl(this);
|
|
63
|
-
const forwardKey = rtl ? 'ArrowLeft' : 'ArrowRight';
|
|
64
|
-
const backwardKey = rtl ? 'ArrowRight' : 'ArrowLeft';
|
|
65
|
-
let targetIndex;
|
|
66
|
-
switch (e.key) {
|
|
67
|
-
case forwardKey:
|
|
68
|
-
targetIndex = currentIndex < 0 ? 0 : (currentIndex + 1) % navigable.length;
|
|
69
|
-
break;
|
|
70
|
-
case backwardKey:
|
|
71
|
-
targetIndex = currentIndex < 0 ? navigable.length - 1 : (currentIndex - 1 + navigable.length) % navigable.length;
|
|
72
|
-
break;
|
|
73
|
-
case 'Home':
|
|
74
|
-
targetIndex = 0;
|
|
75
|
-
break;
|
|
76
|
-
case 'End':
|
|
77
|
-
targetIndex = navigable.length - 1;
|
|
78
|
-
break;
|
|
79
|
-
default:
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
e.preventDefault();
|
|
83
|
-
const target = navigable[targetIndex];
|
|
84
|
-
this.selectTab(target);
|
|
85
|
-
this.focusTab(target.slotName);
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
static { this.styles = [LyraElement.styles, styles]; }
|
|
89
|
-
connectedCallback() {
|
|
90
|
-
super.connectedCallback();
|
|
91
|
-
this.syncTabs();
|
|
92
|
-
// Each child carries its own individual `slot` attribute (one named slot
|
|
93
|
-
// per tab, unlike lyra-split's single default-slot-of-many-panels) -- a
|
|
94
|
-
// brand-new tab's name has no matching `<slot>` to fire `slotchange` on
|
|
95
|
-
// until *this* component has already rendered one for it, and neither
|
|
96
|
-
// `slotchange` nor any Lit lifecycle hook observes a plain attribute
|
|
97
|
-
// edit (label/disabled) on a light-DOM child at all. A mutation observer
|
|
98
|
-
// on the host is the only thing that sees either case.
|
|
99
|
-
this.mutationObserver = new MutationObserver(this.syncTabs);
|
|
100
|
-
this.mutationObserver.observe(this, {
|
|
101
|
-
childList: true,
|
|
102
|
-
attributes: true,
|
|
103
|
-
attributeFilter: ['slot', 'label', 'disabled'],
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
disconnectedCallback() {
|
|
107
|
-
super.disconnectedCallback();
|
|
108
|
-
this.mutationObserver?.disconnect();
|
|
109
|
-
this.mutationObserver = undefined;
|
|
110
|
-
}
|
|
111
|
-
/** Keeps `active` resolved to a real, enabled tab -- covers the initial default, a tab disappearing/becoming disabled underneath the current selection, and a consumer assigning `.active` directly. Silent (no `lyra-tabs-change`): this corrects *invalid* state rather than responding to a user picking a different tab. */
|
|
112
|
-
willUpdate(changed) {
|
|
113
|
-
if (!changed.has('tabs') && !changed.has('active'))
|
|
114
|
-
return;
|
|
115
|
-
const current = this.tabs.find((t) => t.slotName === this.active);
|
|
116
|
-
if (current && !current.disabled)
|
|
117
|
-
return;
|
|
118
|
-
this.active = this.tabs.find((t) => !t.disabled)?.slotName ?? '';
|
|
119
|
-
}
|
|
120
|
-
/** Activates `tab` (no-op for a disabled tab or one that's already active) and emits `lyra-tabs-change`. */
|
|
121
|
-
selectTab(tab) {
|
|
122
|
-
if (tab.disabled || tab.slotName === this.active)
|
|
123
|
-
return;
|
|
124
|
-
this.active = tab.slotName;
|
|
125
|
-
this.emit('lyra-tabs-change', { tabId: tab.slotName });
|
|
126
|
-
}
|
|
127
|
-
/** Moves real DOM focus to tab `slotName`'s button. Safe to call immediately (no `updateComplete` wait): every tab button already exists in the DOM regardless of its current `tabindex`, and `tabindex="-1"` elements are still focusable via script. */
|
|
128
|
-
focusTab(slotName) {
|
|
129
|
-
const buttons = this.renderRoot.querySelectorAll('[part="tab"]');
|
|
130
|
-
for (const button of Array.from(buttons)) {
|
|
131
|
-
if (button.dataset.slot === slotName) {
|
|
132
|
-
button.focus();
|
|
133
|
-
return;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
tabId(slotName) {
|
|
138
|
-
return `${this.baseId}-tab-${slotName}`;
|
|
139
|
-
}
|
|
140
|
-
panelId(slotName) {
|
|
141
|
-
return `${this.baseId}-panel-${slotName}`;
|
|
142
|
-
}
|
|
143
|
-
renderTab(tab) {
|
|
144
|
-
const selected = tab.slotName === this.active;
|
|
145
|
-
return html `<button
|
|
146
|
-
type="button"
|
|
147
|
-
part="tab"
|
|
148
|
-
id=${this.tabId(tab.slotName)}
|
|
149
|
-
data-slot=${tab.slotName}
|
|
150
|
-
role="tab"
|
|
151
|
-
aria-selected=${selected ? 'true' : 'false'}
|
|
152
|
-
aria-disabled=${tab.disabled ? 'true' : 'false'}
|
|
153
|
-
aria-controls=${this.panelId(tab.slotName)}
|
|
154
|
-
tabindex=${selected ? '0' : '-1'}
|
|
155
|
-
@click=${() => this.selectTab(tab)}
|
|
156
|
-
>
|
|
157
|
-
${tab.label}
|
|
158
|
-
</button>`;
|
|
159
|
-
}
|
|
160
|
-
renderPanel(tab) {
|
|
161
|
-
const selected = tab.slotName === this.active;
|
|
162
|
-
return html `<div
|
|
163
|
-
part="panel"
|
|
164
|
-
id=${this.panelId(tab.slotName)}
|
|
165
|
-
role="tabpanel"
|
|
166
|
-
aria-labelledby=${this.tabId(tab.slotName)}
|
|
167
|
-
tabindex="0"
|
|
168
|
-
?hidden=${!selected}
|
|
169
|
-
>
|
|
170
|
-
<slot name=${tab.slotName}></slot>
|
|
171
|
-
</div>`;
|
|
172
|
-
}
|
|
173
|
-
render() {
|
|
174
|
-
return html `
|
|
175
|
-
<div part="base">
|
|
176
|
-
<div part="tablist" role="tablist" aria-orientation="horizontal" @keydown=${this.onTabListKeyDown}>
|
|
177
|
-
${this.tabs.map((tab) => this.renderTab(tab))}
|
|
178
|
-
</div>
|
|
179
|
-
${this.tabs.map((tab) => this.renderPanel(tab))}
|
|
180
|
-
</div>
|
|
181
|
-
`;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
__decorate([
|
|
185
|
-
property({ reflect: true })
|
|
186
|
-
], LyraTabs.prototype, "active", void 0);
|
|
187
|
-
__decorate([
|
|
188
|
-
state()
|
|
189
|
-
], LyraTabs.prototype, "tabs", void 0);
|
|
190
4
|
defineElement('tabs', LyraTabs);
|
|
5
|
+
//# sourceMappingURL=tabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.js","sourceRoot":"","sources":["../../../src/components/tabs/tabs.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,aAAa,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.styles.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/tabs.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,yBA6ElB,CAAC"}
|
|
@@ -12,7 +12,7 @@ export const styles = css `
|
|
|
12
12
|
display: flex;
|
|
13
13
|
align-items: stretch;
|
|
14
14
|
gap: var(--lyra-space-m);
|
|
15
|
-
border-block-end:
|
|
15
|
+
border-block-end: var(--lyra-border-width-thin) solid var(--lyra-color-border);
|
|
16
16
|
overflow-x: auto;
|
|
17
17
|
}
|
|
18
18
|
[part='tab'] {
|
|
@@ -21,18 +21,29 @@ export const styles = css `
|
|
|
21
21
|
border: none;
|
|
22
22
|
/* Sits directly over the tablist's own border-block-end so the accent
|
|
23
23
|
underline below replaces it, pixel for pixel, when selected. */
|
|
24
|
-
border-block-end:
|
|
25
|
-
margin-block-end: -1px;
|
|
24
|
+
border-block-end: var(--lyra-border-width-medium) solid transparent;
|
|
25
|
+
margin-block-end: var(--lyra-size-neg-1px);
|
|
26
26
|
padding: var(--lyra-space-s) var(--lyra-space-xs);
|
|
27
27
|
font: inherit;
|
|
28
|
-
font-weight:
|
|
28
|
+
font-weight: var(--lyra-font-weight-medium);
|
|
29
29
|
color: var(--lyra-color-text-quiet);
|
|
30
30
|
cursor: pointer;
|
|
31
31
|
white-space: nowrap;
|
|
32
|
+
/* inline-flex only matters once a tab-icon part is also present (gap
|
|
33
|
+
has no effect with a single child) -- a text-only tab lays out
|
|
34
|
+
identically to the previous plain inline-block button. */
|
|
35
|
+
display: inline-flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
gap: var(--lyra-space-xs);
|
|
32
38
|
transition:
|
|
33
39
|
color var(--lyra-transition-fast),
|
|
34
40
|
border-color var(--lyra-transition-fast);
|
|
35
41
|
}
|
|
42
|
+
[part='tab-icon'] {
|
|
43
|
+
display: inline-flex;
|
|
44
|
+
flex: 0 0 auto;
|
|
45
|
+
align-items: center;
|
|
46
|
+
}
|
|
36
47
|
[part='tab']:hover:not([aria-disabled='true']) {
|
|
37
48
|
color: var(--lyra-color-text);
|
|
38
49
|
}
|
|
@@ -60,4 +71,10 @@ export const styles = css `
|
|
|
60
71
|
outline-offset: var(--lyra-focus-ring-offset);
|
|
61
72
|
border-radius: var(--lyra-radius);
|
|
62
73
|
}
|
|
74
|
+
@media (prefers-reduced-motion: reduce) {
|
|
75
|
+
[part='tab'] {
|
|
76
|
+
transition: none !important;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
63
79
|
`;
|
|
80
|
+
//# sourceMappingURL=tabs.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.styles.js","sourceRoot":"","sources":["../../../src/components/tabs/tabs.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6ExB,CAAC"}
|