@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,831 @@
|
|
|
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, query } from 'lit/decorators.js';
|
|
9
|
+
import { LyraElement } from '../../internal/lyra-element.js';
|
|
10
|
+
import { activateOverlay } from '../../internal/overlay-manager.js';
|
|
11
|
+
import { lockScroll } from '../../internal/scroll-lock.js';
|
|
12
|
+
import { isRtl } from '../../internal/rtl.js';
|
|
13
|
+
import { styles } from './split.styles.js';
|
|
14
|
+
const KEYBOARD_STEP = 2;
|
|
15
|
+
// Sentinel fallbacks so a one-sided constraint (only `minPx` or only
|
|
16
|
+
// `maxPx`) can still be expressed as a 3-argument CSS `clamp()` in the
|
|
17
|
+
// static layout, instead of needing two different flex-basis shapes.
|
|
18
|
+
const NO_MIN_PX = 0;
|
|
19
|
+
const NO_MAX_PX = 1_000_000;
|
|
20
|
+
export class LyraSplit extends LyraElement {
|
|
21
|
+
constructor() {
|
|
22
|
+
super(...arguments);
|
|
23
|
+
this.sizes = [];
|
|
24
|
+
this.min = 10;
|
|
25
|
+
this.orientation = 'horizontal';
|
|
26
|
+
/** Optional fixed-pixel min/max per panel, index-aligned with `sizes`. A
|
|
27
|
+
* `null`/missing entry leaves that panel purely percent-based (the
|
|
28
|
+
* existing `min`-only behavior). `sizes`, the `lyra-resize` payload, and
|
|
29
|
+
* localStorage persistence stay percent-based regardless — only the
|
|
30
|
+
* effective clamp bounds change for a constrained panel. */
|
|
31
|
+
this.panelConstraints = [];
|
|
32
|
+
/** Opts a pane in to responsive collapse: `'start'` is the first light-DOM
|
|
33
|
+
* panel (index 0), `'end'` is the last. Both are LOGICAL positions, same
|
|
34
|
+
* as CSS `inset-inline-start`/`-end` — see the `collapsingIndex` getter
|
|
35
|
+
* for why that already resolves to the same physical index under RTL for
|
|
36
|
+
* this component (panels are never re-`order`ed for RTL, only the drag
|
|
37
|
+
* delta sign mirrors). Default `'none'`: none of the collapse behavior
|
|
38
|
+
* below applies, and rendering/behavior is identical to before this
|
|
39
|
+
* property existed. */
|
|
40
|
+
this.collapse = 'none';
|
|
41
|
+
/** Fixed CSS length the collapsing pane clamps to in the `'rail'` state. */
|
|
42
|
+
this.railWidth = '3.5rem';
|
|
43
|
+
/** Container width (px, measured on `[part="base"]`) below which the
|
|
44
|
+
* collapsing pane switches from its normal percent width to the fixed
|
|
45
|
+
* `railWidth` (`'rail'` state). Must stay above `floatBreakpoint`. */
|
|
46
|
+
this.railBreakpoint = 640;
|
|
47
|
+
/** Container width (px) below which the collapsing pane instead becomes an
|
|
48
|
+
* absolutely-positioned overlay above the other pane (`'floating'` state). */
|
|
49
|
+
this.floatBreakpoint = 400;
|
|
50
|
+
/** Whether the `'floating'` collapse state's drawer is shown. Only
|
|
51
|
+
* meaningful while `collapseState` is `'floating'` — the value is
|
|
52
|
+
* preserved (not reset) while another state is active, but no drawer
|
|
53
|
+
* chrome renders until `collapseState` is `'floating'` again. Defaults to
|
|
54
|
+
* `false`: the collapsing pane renders nothing while floating until a
|
|
55
|
+
* consumer opts in by setting this (or it's forced open programmatically)
|
|
56
|
+
* — see the class doc. */
|
|
57
|
+
this.open = false;
|
|
58
|
+
this.panelCount = 0;
|
|
59
|
+
this._collapseState = 'wide';
|
|
60
|
+
// Whether ResizeObserver-driven measurement is currently ignored because a
|
|
61
|
+
// consumer forced a specific collapseState -- see the accessor doc.
|
|
62
|
+
this._forced = false;
|
|
63
|
+
// Derived from collapseState === 'floating' && open -- tracked as its own
|
|
64
|
+
// field (rather than recomputed inline everywhere) so willUpdate can detect
|
|
65
|
+
// the specific false->true/true->false transition regardless of which of
|
|
66
|
+
// the two source properties changed (mirrors lyra-app-rail's
|
|
67
|
+
// `overlayActive`).
|
|
68
|
+
this.overlayActive = false;
|
|
69
|
+
this.justOpened = false;
|
|
70
|
+
// Keyed by pointerId so an interrupted or concurrent (multi-touch) drag on
|
|
71
|
+
// one divider never reads or clobbers another pointer's drag state.
|
|
72
|
+
this.drags = new Map();
|
|
73
|
+
// Panels `updated()` last applied inline flex/order (and, while collapsing,
|
|
74
|
+
// position/inset/inline-size) styles to — tracked so a panel removed from
|
|
75
|
+
// the slot (e.g. a DOM node later reused elsewhere) gets those
|
|
76
|
+
// lyra-split-authored styles cleared instead of carrying them around stale
|
|
77
|
+
// forever.
|
|
78
|
+
this.stylizedPanels = new Set();
|
|
79
|
+
this.constraintIssueKey = '';
|
|
80
|
+
this.onSlotChange = () => {
|
|
81
|
+
this.panelCount = this.children.length;
|
|
82
|
+
this.ensureSizes();
|
|
83
|
+
};
|
|
84
|
+
this.onBackdropClick = () => {
|
|
85
|
+
this.overlayHandle?.dismissBackdrop();
|
|
86
|
+
};
|
|
87
|
+
this.onPointerDown = (e, index) => {
|
|
88
|
+
// The divider adjacent to a currently rail/floating-collapsed pane isn't
|
|
89
|
+
// draggable — mirrors the `[part="divider"][aria-disabled="true"]`
|
|
90
|
+
// `pointer-events: none` in split.styles.ts (belt-and-suspenders: this
|
|
91
|
+
// guard also covers a synthetic/programmatic pointerdown that CSS
|
|
92
|
+
// wouldn't stop).
|
|
93
|
+
if (this.isDividerDisabled(index))
|
|
94
|
+
return;
|
|
95
|
+
// The divider that dispatched this is itself a child of [part="base"],
|
|
96
|
+
// so baseEl is guaranteed to be already rendered here.
|
|
97
|
+
this.drags.set(e.pointerId, {
|
|
98
|
+
index,
|
|
99
|
+
startPos: this.orientation === 'vertical' ? e.clientY : e.clientX,
|
|
100
|
+
base: this.baseEl,
|
|
101
|
+
appliedDelta: 0,
|
|
102
|
+
});
|
|
103
|
+
e.target.setPointerCapture(e.pointerId);
|
|
104
|
+
window.addEventListener('pointermove', this.onPointerMove);
|
|
105
|
+
window.addEventListener('pointerup', this.onPointerUp);
|
|
106
|
+
// A drag can end without a pointerup: a system gesture / palm rejection
|
|
107
|
+
// can fire `pointercancel`, and losing capture (e.g. element removed)
|
|
108
|
+
// fires `lostpointercapture` — both need the same teardown as pointerup
|
|
109
|
+
// or the divider keeps "resizing" in response to unrelated movement.
|
|
110
|
+
window.addEventListener('pointercancel', this.onPointerUp);
|
|
111
|
+
window.addEventListener('lostpointercapture', this.onPointerUp);
|
|
112
|
+
};
|
|
113
|
+
this.onPointerMove = (e) => {
|
|
114
|
+
const drag = this.drags.get(e.pointerId);
|
|
115
|
+
if (!drag)
|
|
116
|
+
return;
|
|
117
|
+
const total = this.orientation === 'vertical' ? drag.base.clientHeight : drag.base.clientWidth;
|
|
118
|
+
const pos = this.orientation === 'vertical' ? e.clientY : e.clientX;
|
|
119
|
+
let cumulativeDelta = ((pos - drag.startPos) / total) * 100;
|
|
120
|
+
// Panels are ordered along the inline axis via CSS `order`, so under RTL
|
|
121
|
+
// `flex-direction: row` already renders panel[i] to the *right* of
|
|
122
|
+
// panel[i+1] — a physically-rightward drag has to shrink index instead
|
|
123
|
+
// of growing it to keep matching the visible panel under the pointer.
|
|
124
|
+
if (this.orientation === 'horizontal' && isRtl(this))
|
|
125
|
+
cumulativeDelta = -cumulativeDelta;
|
|
126
|
+
// Clamp against the *current* live sizes, not this pointer's own drag-start
|
|
127
|
+
// snapshot -- two adjacent dividers dragged concurrently share one panel
|
|
128
|
+
// between them, and each clamp pass must see whatever the other pointer's
|
|
129
|
+
// move has *just* written, or the two independently-clamped pairs can each
|
|
130
|
+
// stay individually valid while their shared panel drifts past what either
|
|
131
|
+
// pair alone would allow, letting the total exceed 100%. Since the clamp
|
|
132
|
+
// basis is now the live, already-partially-applied `this.sizes` instead of
|
|
133
|
+
// a fixed drag-start snapshot, only the *incremental* delta since the last
|
|
134
|
+
// move may be applied here (not the cumulative-since-drag-start delta a
|
|
135
|
+
// snapshot-based clamp would use).
|
|
136
|
+
const incremental = cumulativeDelta - drag.appliedDelta;
|
|
137
|
+
const priorValue = this.sizes[drag.index];
|
|
138
|
+
const paired = this.clampPair(this.sizes, drag.index, incremental, total);
|
|
139
|
+
// Accumulate this move's own *realized* increment (post-clamp) onto the
|
|
140
|
+
// running total, rather than recomputing an absolute "total since
|
|
141
|
+
// drag-start" diff against a fixed startSizes snapshot. clampPair can
|
|
142
|
+
// cap the actual move short of what was requested (e.g. a drag
|
|
143
|
+
// saturating a panel's min/panelConstraints bound), so the realized
|
|
144
|
+
// portion still has to be tracked instead of the raw request. An
|
|
145
|
+
// absolute since-start diff also silently absorbs any change a different
|
|
146
|
+
// concurrent pointer's drag makes to this same shared panel between this
|
|
147
|
+
// pointer's own moves (adjacent dividers share one panel: divider i's
|
|
148
|
+
// index+1 panel is divider i+1's index panel), corrupting this pointer's
|
|
149
|
+
// next incremental calculation. Summing only this move's own delta
|
|
150
|
+
// (paired vs. the value immediately prior to this clamp) avoids both
|
|
151
|
+
// bugs at once.
|
|
152
|
+
drag.appliedDelta += paired[drag.index] - priorValue;
|
|
153
|
+
// Merge only this drag's pair into the live sizes so a concurrent drag
|
|
154
|
+
// on another divider (different pointerId) isn't clobbered.
|
|
155
|
+
const next = [...this.sizes];
|
|
156
|
+
next[drag.index] = paired[drag.index];
|
|
157
|
+
next[drag.index + 1] = paired[drag.index + 1];
|
|
158
|
+
this.sizes = next;
|
|
159
|
+
this.emit('lyra-resize', { sizes: [...this.sizes] });
|
|
160
|
+
};
|
|
161
|
+
this.onPointerUp = (e) => {
|
|
162
|
+
if (!this.drags.has(e.pointerId))
|
|
163
|
+
return;
|
|
164
|
+
this.drags.delete(e.pointerId);
|
|
165
|
+
this.persist();
|
|
166
|
+
if (this.drags.size === 0) {
|
|
167
|
+
window.removeEventListener('pointermove', this.onPointerMove);
|
|
168
|
+
window.removeEventListener('pointerup', this.onPointerUp);
|
|
169
|
+
window.removeEventListener('pointercancel', this.onPointerUp);
|
|
170
|
+
window.removeEventListener('lostpointercapture', this.onPointerUp);
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
this.onDividerKeyDown = (e, index) => {
|
|
174
|
+
// Same rail/floating-adjacent guard as onPointerDown.
|
|
175
|
+
if (this.isDividerDisabled(index))
|
|
176
|
+
return;
|
|
177
|
+
// Mirror the same swap as onPointerMove for horizontal+RTL.
|
|
178
|
+
const rtl = this.orientation === 'horizontal' && isRtl(this);
|
|
179
|
+
const forwardKey = this.orientation === 'vertical' ? 'ArrowDown' : rtl ? 'ArrowLeft' : 'ArrowRight';
|
|
180
|
+
const backwardKey = this.orientation === 'vertical' ? 'ArrowUp' : rtl ? 'ArrowRight' : 'ArrowLeft';
|
|
181
|
+
if (e.key === forwardKey) {
|
|
182
|
+
e.preventDefault();
|
|
183
|
+
this.applyDelta(index, KEYBOARD_STEP, true);
|
|
184
|
+
}
|
|
185
|
+
else if (e.key === backwardKey) {
|
|
186
|
+
e.preventDefault();
|
|
187
|
+
this.applyDelta(index, -KEYBOARD_STEP, true);
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
static { this.styles = [LyraElement.styles, styles]; }
|
|
192
|
+
// `collapseState` needs a custom accessor (force/auto semantics -- see the
|
|
193
|
+
// class doc) rather than the usual @property()-generated one -- registered
|
|
194
|
+
// here, alongside the decorator-declared properties below, the same way
|
|
195
|
+
// lyra-app-rail's `mode` is. `reflect: true` still applies: LitElement's
|
|
196
|
+
// update loop reflects any `reflect`-flagged property to its attribute
|
|
197
|
+
// generically by reading `this[name]` after render, regardless of whether
|
|
198
|
+
// that property has a custom or auto-generated accessor. `attribute` is
|
|
199
|
+
// spelled out (unlike `mode`, a single word whose Lit-default lowercase
|
|
200
|
+
// form already reads fine) so the reflected attribute stays kebab-case,
|
|
201
|
+
// matching this file's other attribute-reflected properties.
|
|
202
|
+
static { this.properties = {
|
|
203
|
+
collapseState: { reflect: true, attribute: 'collapse-state', noAccessor: true },
|
|
204
|
+
}; }
|
|
205
|
+
connectedCallback() {
|
|
206
|
+
super.connectedCallback();
|
|
207
|
+
this.panelCount = this.children.length;
|
|
208
|
+
this.ensureSizes();
|
|
209
|
+
this.loadPersisted();
|
|
210
|
+
// No-op on first mount (`baseEl` doesn't exist until the first render —
|
|
211
|
+
// `firstUpdated()` below arms it then) but does the real work on a
|
|
212
|
+
// reconnect, whose shadow DOM content survives disconnect. Mirrors
|
|
213
|
+
// lite-chart.ts's identical connectedCallback/firstUpdated split for its
|
|
214
|
+
// own ResizeObserver.
|
|
215
|
+
if (this.collapse !== 'none')
|
|
216
|
+
this.armCollapseObserver();
|
|
217
|
+
// A reconnect (e.g. a drag-and-drop reparent keeping this same element
|
|
218
|
+
// instance) fires disconnectedCallback then connectedCallback
|
|
219
|
+
// synchronously with no update in between, so willUpdate never reruns to
|
|
220
|
+
// notice the floating drawer is still active -- restore its shared
|
|
221
|
+
// registration and scroll lock. Mirrors lyra-app-rail's identical
|
|
222
|
+
// reconnect handling for its mobile overlay.
|
|
223
|
+
if (this.hasUpdated && this.overlayActive) {
|
|
224
|
+
if (this.overlayHandle?.isActive()) {
|
|
225
|
+
this.overlayHandle.resume();
|
|
226
|
+
}
|
|
227
|
+
else {
|
|
228
|
+
this.activateFloatingOverlay();
|
|
229
|
+
}
|
|
230
|
+
if (!this.releaseScrollLock)
|
|
231
|
+
this.releaseScrollLock = lockScroll(this.ownerDocument);
|
|
232
|
+
queueMicrotask(() => this.overlayHandle?.focusInitial());
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
disconnectedCallback() {
|
|
236
|
+
super.disconnectedCallback();
|
|
237
|
+
// Clean up any remaining event listeners from an in-flight drag.
|
|
238
|
+
this.drags.clear();
|
|
239
|
+
window.removeEventListener('pointermove', this.onPointerMove);
|
|
240
|
+
window.removeEventListener('pointerup', this.onPointerUp);
|
|
241
|
+
window.removeEventListener('pointercancel', this.onPointerUp);
|
|
242
|
+
window.removeEventListener('lostpointercapture', this.onPointerUp);
|
|
243
|
+
this.collapseResizeObserver?.disconnect();
|
|
244
|
+
this.releaseScrollLock?.();
|
|
245
|
+
this.releaseScrollLock = undefined;
|
|
246
|
+
this.overlayHandle?.suspend();
|
|
247
|
+
}
|
|
248
|
+
firstUpdated() {
|
|
249
|
+
if (this.collapse !== 'none')
|
|
250
|
+
this.armCollapseObserver();
|
|
251
|
+
}
|
|
252
|
+
/** Both branches here derive one reactive property from another with no
|
|
253
|
+
* DOM measurement involved, so they belong in `willUpdate()` rather than
|
|
254
|
+
* `updated()`: setting a reactive property from `updated()`/
|
|
255
|
+
* `firstUpdated()` schedules a *second* update on top of the one that
|
|
256
|
+
* just finished, which Lit's dev-mode console flags ("scheduled an
|
|
257
|
+
* update ... after an update completed"). Both of these were real and
|
|
258
|
+
* reproducible in normal usage, not just test artifacts --
|
|
259
|
+
* `ensureSizes()` on any direct `sizes` assignment whose length doesn't
|
|
260
|
+
* match `panelCount` (e.g. a consumer correcting a stale layout), and the
|
|
261
|
+
* `collapseState` reset on every `collapse` -> `'none'` transition. The
|
|
262
|
+
* `collapse !== 'none'` re-arm path in `syncCollapseObserver()` still
|
|
263
|
+
* needs a freshly measured container width and stays in `updated()` --
|
|
264
|
+
* see `armCollapseObserver()`'s own doc comment for why *that* one is the
|
|
265
|
+
* documented exception instead (mirrors virtual-list.ts's
|
|
266
|
+
* `attachContainerListeners()`). */
|
|
267
|
+
willUpdate(changed) {
|
|
268
|
+
if (changed.has('sizes') || this.sizes.length === 0)
|
|
269
|
+
this.ensureSizes();
|
|
270
|
+
if (changed.has('collapse') && this.collapse === 'none') {
|
|
271
|
+
this.resetCollapseState();
|
|
272
|
+
}
|
|
273
|
+
if (changed.has('open') || changed.has('collapseState')) {
|
|
274
|
+
const next = this._collapseState === 'floating' && this.open;
|
|
275
|
+
if (next !== this.overlayActive) {
|
|
276
|
+
this.overlayActive = next;
|
|
277
|
+
if (next) {
|
|
278
|
+
this.justOpened = true;
|
|
279
|
+
this.activateFloatingOverlay();
|
|
280
|
+
}
|
|
281
|
+
else {
|
|
282
|
+
this.deactivateFloatingOverlay();
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* The collapsing pane's current responsive state. Always one of the three
|
|
289
|
+
* real states — never `'auto'` — reflecting either the live measured
|
|
290
|
+
* width or, once forced, whatever was last assigned. See the class doc for
|
|
291
|
+
* the full force/auto contract (mirrors `<lyra-app-rail>`'s `mode`).
|
|
292
|
+
*/
|
|
293
|
+
get collapseState() {
|
|
294
|
+
return this._collapseState;
|
|
295
|
+
}
|
|
296
|
+
set collapseState(next) {
|
|
297
|
+
if (next === 'auto') {
|
|
298
|
+
this._forced = false;
|
|
299
|
+
this.updateCollapseState(this.currentMeasuredWidth());
|
|
300
|
+
return;
|
|
301
|
+
}
|
|
302
|
+
this._forced = true;
|
|
303
|
+
this.applyCollapseStateChange(next);
|
|
304
|
+
}
|
|
305
|
+
/** The container width (px) `[part="base"]` is measured at right now --
|
|
306
|
+
* used to re-derive `collapseState` immediately when a forced value is
|
|
307
|
+
* released back to `'auto'`, outside of the `ResizeObserver`'s own
|
|
308
|
+
* (async, entry-driven) callback. Mirrors the synchronous initial read
|
|
309
|
+
* `armCollapseObserver()` already does when it (re-)arms. */
|
|
310
|
+
currentMeasuredWidth() {
|
|
311
|
+
return this.baseEl?.clientWidth ?? 0;
|
|
312
|
+
}
|
|
313
|
+
/** Resets `collapseState` back to its `'wide'` default and releases any
|
|
314
|
+
* force, bypassing the public accessor's pin/event-emit side effects --
|
|
315
|
+
* used only for the `collapse -> 'none'` housekeeping reset in
|
|
316
|
+
* `willUpdate()`, which is purely internal bookkeeping (the feature is
|
|
317
|
+
* off entirely), not a state transition a consumer forced or observed. */
|
|
318
|
+
resetCollapseState() {
|
|
319
|
+
this._forced = false;
|
|
320
|
+
if (this._collapseState === 'wide')
|
|
321
|
+
return;
|
|
322
|
+
const old = this._collapseState;
|
|
323
|
+
this._collapseState = 'wide';
|
|
324
|
+
this.requestUpdate('collapseState', old);
|
|
325
|
+
}
|
|
326
|
+
/** Applies an actual `collapseState` transition (no-op if `next` matches
|
|
327
|
+
* the current value): updates the field, triggers Lit's reflect/re-render
|
|
328
|
+
* via `requestUpdate`, and fires `lyra-split-collapse-change`. Shared by
|
|
329
|
+
* both the `ResizeObserver`-driven measurement path (`updateCollapseState`)
|
|
330
|
+
* and the accessor's forced-value assignment, so the two never duplicate
|
|
331
|
+
* this logic. Leaving `'floating'` while `open` is still `true` also
|
|
332
|
+
* closes the drawer -- mirrors `<lyra-app-rail>` closing its mobile
|
|
333
|
+
* overlay when `mode` leaves `'mobile'` while open. */
|
|
334
|
+
applyCollapseStateChange(next) {
|
|
335
|
+
if (next === this._collapseState)
|
|
336
|
+
return;
|
|
337
|
+
const old = this._collapseState;
|
|
338
|
+
this._collapseState = next;
|
|
339
|
+
this.requestUpdate('collapseState', old);
|
|
340
|
+
this.emit('lyra-split-collapse-change', { state: next });
|
|
341
|
+
if (next !== 'floating' && this.open)
|
|
342
|
+
this.open = false;
|
|
343
|
+
}
|
|
344
|
+
get storageFullKey() {
|
|
345
|
+
return this.storageKey ? `lyra-split:${this.storageKey}:${this.panelCount}` : undefined;
|
|
346
|
+
}
|
|
347
|
+
loadPersisted() {
|
|
348
|
+
const key = this.storageFullKey;
|
|
349
|
+
if (!key)
|
|
350
|
+
return;
|
|
351
|
+
let raw;
|
|
352
|
+
try {
|
|
353
|
+
raw = localStorage.getItem(key);
|
|
354
|
+
}
|
|
355
|
+
catch {
|
|
356
|
+
/* localStorage unavailable (private browsing, sandboxed iframe, etc.) */
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
if (!raw)
|
|
360
|
+
return;
|
|
361
|
+
try {
|
|
362
|
+
const parsed = JSON.parse(raw);
|
|
363
|
+
// A persisted layout can predate a since-raised `min`; reject it rather
|
|
364
|
+
// than restoring sizes that are already stuck below the current floor.
|
|
365
|
+
const isValid = Array.isArray(parsed) &&
|
|
366
|
+
parsed.length === this.panelCount &&
|
|
367
|
+
parsed.every((n) => typeof n === 'number' && Number.isFinite(n) && n >= this.min);
|
|
368
|
+
if (isValid)
|
|
369
|
+
this.sizes = parsed;
|
|
370
|
+
}
|
|
371
|
+
catch {
|
|
372
|
+
/* ignore malformed persisted state */
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
persist() {
|
|
376
|
+
const key = this.storageFullKey;
|
|
377
|
+
if (!key)
|
|
378
|
+
return;
|
|
379
|
+
try {
|
|
380
|
+
localStorage.setItem(key, JSON.stringify(this.sizes));
|
|
381
|
+
}
|
|
382
|
+
catch {
|
|
383
|
+
/* ignore persistence failures (e.g. quota exceeded, private browsing) */
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
ensureSizes() {
|
|
387
|
+
if (this.panelCount === this.sizes.length)
|
|
388
|
+
return;
|
|
389
|
+
if (this.panelCount <= 0) {
|
|
390
|
+
this.sizes = [];
|
|
391
|
+
return;
|
|
392
|
+
}
|
|
393
|
+
if (this.sizes.length === 0) {
|
|
394
|
+
const equal = 100 / this.panelCount;
|
|
395
|
+
this.sizes = Array.from({ length: this.panelCount }, () => equal);
|
|
396
|
+
return;
|
|
397
|
+
}
|
|
398
|
+
// A panel was added or removed: rebalance the existing sizes
|
|
399
|
+
// proportionally instead of discarding every panel's customized size,
|
|
400
|
+
// so an unrelated panel-count change doesn't wipe the whole layout.
|
|
401
|
+
const diff = this.panelCount - this.sizes.length;
|
|
402
|
+
if (diff > 0) {
|
|
403
|
+
const newShare = 100 / this.panelCount;
|
|
404
|
+
const scale = (100 - newShare * diff) / 100;
|
|
405
|
+
this.sizes = [
|
|
406
|
+
...this.sizes.map((s) => s * scale),
|
|
407
|
+
...Array.from({ length: diff }, () => newShare),
|
|
408
|
+
];
|
|
409
|
+
}
|
|
410
|
+
else {
|
|
411
|
+
const kept = this.sizes.slice(0, this.panelCount);
|
|
412
|
+
const removedTotal = this.sizes.slice(this.panelCount).reduce((sum, s) => sum + s, 0);
|
|
413
|
+
const keptTotal = kept.reduce((sum, s) => sum + s, 0) || 1;
|
|
414
|
+
this.sizes = kept.map((s) => s + (s / keptTotal) * removedTotal);
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
/** The container extent (px) along the resize axis, read live so a
|
|
418
|
+
* container resize between calls is always picked up — same live read
|
|
419
|
+
* `onPointerMove` already does via `drag.base.clientWidth/clientHeight`. */
|
|
420
|
+
getContainerSize() {
|
|
421
|
+
if (!this.baseEl)
|
|
422
|
+
return 0;
|
|
423
|
+
return this.orientation === 'vertical' ? this.baseEl.clientHeight : this.baseEl.clientWidth;
|
|
424
|
+
}
|
|
425
|
+
/** The physical panel index `collapse: 'start' | 'end'` resolves to, or
|
|
426
|
+
* `-1` when collapse is off (`'none'`) or there are fewer than 2 panels
|
|
427
|
+
* to collapse one of. Panels are laid out via ascending inline `order`
|
|
428
|
+
* (see `updated()`) and that ordering is never re-swapped for RTL — only
|
|
429
|
+
* the drag/keyboard *delta sign* mirrors for RTL, exactly like
|
|
430
|
+
* `onPointerMove`/`onDividerKeyDown` — so panel index 0 already renders
|
|
431
|
+
* at the logical inline-start edge under both LTR and RTL (confirmed by
|
|
432
|
+
* the pointer-drag RTL test elsewhere in this file: panel 0 renders on
|
|
433
|
+
* the visual *right*, i.e. the RTL inline-start side). `'start'` therefore
|
|
434
|
+
* always resolves to index 0 and `'end'` to `panelCount - 1`, regardless
|
|
435
|
+
* of `isRtl(this)` — consulting it here would swap collapse onto the
|
|
436
|
+
* panel that visually sits at the *other* logical edge, which would be a
|
|
437
|
+
* bug against this component's own RTL rendering, not a fix for one.
|
|
438
|
+
*/
|
|
439
|
+
get collapsingIndex() {
|
|
440
|
+
if (this.collapse === 'none' || this.panelCount < 2)
|
|
441
|
+
return -1;
|
|
442
|
+
return this.collapse === 'start' ? 0 : this.panelCount - 1;
|
|
443
|
+
}
|
|
444
|
+
/** Whether a pane is actually collapsed (rail or floating) right now —
|
|
445
|
+
* `false` whenever `collapse === 'none'`, since `collapseState` then
|
|
446
|
+
* never leaves its `'wide'` default. */
|
|
447
|
+
get collapseActive() {
|
|
448
|
+
return this.collapsingIndex !== -1 && this.collapseState !== 'wide';
|
|
449
|
+
}
|
|
450
|
+
/** Dragging/keyboard-resizing is disabled on the one divider immediately
|
|
451
|
+
* adjacent to the currently-collapsed pane (its other side has nothing
|
|
452
|
+
* meaningful to resize against while the pane is rail/floating-width). */
|
|
453
|
+
isDividerDisabled(index) {
|
|
454
|
+
if (!this.collapseActive)
|
|
455
|
+
return false;
|
|
456
|
+
const adjacent = this.collapsingIndex === 0 ? 0 : this.panelCount - 2;
|
|
457
|
+
return index === adjacent;
|
|
458
|
+
}
|
|
459
|
+
/** Classifies a measured container width into the collapsing pane's
|
|
460
|
+
* responsive state and, only on an actual transition, applies it (via the
|
|
461
|
+
* same `applyCollapseStateChange()` the accessor's forced-value path
|
|
462
|
+
* uses). Gated behind `_forced` so a pinned `collapseState` is never
|
|
463
|
+
* silently overwritten by a subsequent resize — this is also what the
|
|
464
|
+
* accessor's `'auto'` release calls (with the current measured width) to
|
|
465
|
+
* re-derive the state without duplicating the width-vs-breakpoint logic. */
|
|
466
|
+
updateCollapseState(width) {
|
|
467
|
+
if (this.collapse === 'none')
|
|
468
|
+
return;
|
|
469
|
+
if (this._forced)
|
|
470
|
+
return;
|
|
471
|
+
const next = width < this.floatBreakpoint ? 'floating' : width < this.railBreakpoint ? 'rail' : 'wide';
|
|
472
|
+
this.applyCollapseStateChange(next);
|
|
473
|
+
}
|
|
474
|
+
/** Creates (idempotently) and (re-)observes `[part="base"]` with the
|
|
475
|
+
* collapse-state `ResizeObserver` — a no-op until `baseEl` exists (see
|
|
476
|
+
* `firstUpdated()`/`connectedCallback()`). The observer's first callback
|
|
477
|
+
* supplies the initial layout measurement; keeping the read there avoids
|
|
478
|
+
* mutating reactive state from `firstUpdated()`/`updated()`, which would
|
|
479
|
+
* create a redundant lifecycle update and a Lit warning. */
|
|
480
|
+
armCollapseObserver() {
|
|
481
|
+
if (!this.collapseResizeObserver) {
|
|
482
|
+
this.collapseResizeObserver = new ResizeObserver((entries) => {
|
|
483
|
+
const box = entries[0]?.contentBoxSize?.[0];
|
|
484
|
+
const width = box ? box.inlineSize : (this.baseEl?.getBoundingClientRect().width ?? 0);
|
|
485
|
+
this.updateCollapseState(width);
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
if (this.baseEl) {
|
|
489
|
+
this.collapseResizeObserver.observe(this.baseEl);
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
/** Reacts to a live `collapse` property change (as opposed to the
|
|
493
|
+
* connect/first-render arming above): turns the observer on/off. The
|
|
494
|
+
* `collapseState` reset for the `'none'` case lives in `willUpdate()`
|
|
495
|
+
* instead (see its doc comment) so no stale rail/floating styling
|
|
496
|
+
* survives switching collapse off, without the extra render pass a
|
|
497
|
+
* property set here would cost. */
|
|
498
|
+
syncCollapseObserver() {
|
|
499
|
+
if (this.collapse === 'none') {
|
|
500
|
+
this.collapseResizeObserver?.disconnect();
|
|
501
|
+
return;
|
|
502
|
+
}
|
|
503
|
+
this.armCollapseObserver();
|
|
504
|
+
}
|
|
505
|
+
/** The safe fallback for a shared percent minimum. A value above the
|
|
506
|
+
* available share is still useful as a consumer intent, but it cannot be
|
|
507
|
+
* honored for every panel at once, so reduce it proportionally. */
|
|
508
|
+
normalizedDefaultMin() {
|
|
509
|
+
if (this.panelCount <= 0)
|
|
510
|
+
return 0;
|
|
511
|
+
const requested = Number.isFinite(this.min) ? Math.max(0, this.min) : 0;
|
|
512
|
+
// Leave one keyboard step of aggregate slack after rejecting an
|
|
513
|
+
// infeasible configuration, so an equal starting layout remains
|
|
514
|
+
// resizable instead of merely becoming a different frozen layout.
|
|
515
|
+
const available = Math.max(0, 100 - KEYBOARD_STEP);
|
|
516
|
+
return Math.min(requested, available / this.panelCount);
|
|
517
|
+
}
|
|
518
|
+
/** Resolves all panel bounds together so aggregate feasibility is checked
|
|
519
|
+
* before an individual divider is asked to clamp a pair. An invalid set is
|
|
520
|
+
* rejected as a whole: interaction uses the safe shared minimum instead of
|
|
521
|
+
* exposing a divider whose minimum is greater than its maximum. */
|
|
522
|
+
resolveConstraintBounds(containerSize) {
|
|
523
|
+
const fallbackMin = this.normalizedDefaultMin();
|
|
524
|
+
const fallback = Array.from({ length: this.panelCount }, () => ({ min: fallbackMin, max: Infinity }));
|
|
525
|
+
if (this.panelCount <= 0)
|
|
526
|
+
return { bounds: [], usePanelConstraints: true };
|
|
527
|
+
const bounds = [];
|
|
528
|
+
let minimumTotal = 0;
|
|
529
|
+
let maximumTotal = 0;
|
|
530
|
+
let hasUnboundedMaximum = false;
|
|
531
|
+
let issueReason;
|
|
532
|
+
for (let index = 0; index < this.panelCount; index++) {
|
|
533
|
+
const constraint = this.panelConstraints[index];
|
|
534
|
+
let min = Number.isFinite(this.min) ? Math.max(0, this.min) : 0;
|
|
535
|
+
let max = Infinity;
|
|
536
|
+
if (constraint) {
|
|
537
|
+
if (constraint.minPx != null && Number.isFinite(constraint.minPx) && constraint.minPx >= 0 && containerSize > 0) {
|
|
538
|
+
min = (constraint.minPx / containerSize) * 100;
|
|
539
|
+
}
|
|
540
|
+
if (constraint.maxPx != null && Number.isFinite(constraint.maxPx) && constraint.maxPx >= 0 && containerSize > 0) {
|
|
541
|
+
max = (constraint.maxPx / containerSize) * 100;
|
|
542
|
+
}
|
|
543
|
+
if ((constraint.minPx != null && (!Number.isFinite(constraint.minPx) || constraint.minPx < 0)) ||
|
|
544
|
+
(constraint.maxPx != null && (!Number.isFinite(constraint.maxPx) || constraint.maxPx < 0))) {
|
|
545
|
+
issueReason ??= 'minimum-exceeds-maximum';
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
if (min > max)
|
|
549
|
+
issueReason ??= 'minimum-exceeds-maximum';
|
|
550
|
+
bounds.push({ min, max });
|
|
551
|
+
minimumTotal += min;
|
|
552
|
+
if (Number.isFinite(max))
|
|
553
|
+
maximumTotal += max;
|
|
554
|
+
else
|
|
555
|
+
hasUnboundedMaximum = true;
|
|
556
|
+
}
|
|
557
|
+
if (issueReason == null && minimumTotal > 100 + 1e-9)
|
|
558
|
+
issueReason = 'minimum-total';
|
|
559
|
+
if (issueReason == null && !hasUnboundedMaximum && maximumTotal < 100 - 1e-9)
|
|
560
|
+
issueReason = 'maximum-total';
|
|
561
|
+
if (issueReason == null)
|
|
562
|
+
return { bounds, usePanelConstraints: true };
|
|
563
|
+
return {
|
|
564
|
+
bounds: fallback,
|
|
565
|
+
usePanelConstraints: false,
|
|
566
|
+
issue: {
|
|
567
|
+
reason: issueReason,
|
|
568
|
+
panelCount: this.panelCount,
|
|
569
|
+
minimumTotal,
|
|
570
|
+
maximumTotal: hasUnboundedMaximum ? null : maximumTotal,
|
|
571
|
+
containerSize,
|
|
572
|
+
},
|
|
573
|
+
};
|
|
574
|
+
}
|
|
575
|
+
percentBounds(index, containerSize) {
|
|
576
|
+
return this.resolveConstraintBounds(containerSize).bounds[index] ?? { min: 0, max: Infinity };
|
|
577
|
+
}
|
|
578
|
+
clampPair(sizes, i, delta, containerSize = 0) {
|
|
579
|
+
const next = [...sizes];
|
|
580
|
+
const pairTotal = next[i] + next[i + 1];
|
|
581
|
+
const a = this.percentBounds(i, containerSize);
|
|
582
|
+
const b = this.percentBounds(i + 1, containerSize);
|
|
583
|
+
// Panel i's own bounds, further narrowed by panel i+1's bounds (its
|
|
584
|
+
// partner's min/max caps how much i can grow/shrink within the pair).
|
|
585
|
+
const loRaw = Math.max(a.min, pairTotal - b.max);
|
|
586
|
+
const hiRaw = Math.min(a.max, pairTotal - b.min);
|
|
587
|
+
// Clamp *toward* the bound instead of rejecting the whole move when the
|
|
588
|
+
// result is still outside it — otherwise a pair that starts under its
|
|
589
|
+
// combined min (e.g. an equal split across many panels) can never be
|
|
590
|
+
// moved at all, since every step recomputes the same rejected delta from
|
|
591
|
+
// the same untouched starting sizes.
|
|
592
|
+
const lo = Math.min(loRaw, pairTotal);
|
|
593
|
+
const hi = Math.max(hiRaw, lo);
|
|
594
|
+
const clampedA = Math.min(Math.max(next[i] + delta, lo), hi);
|
|
595
|
+
next[i] = clampedA;
|
|
596
|
+
next[i + 1] = pairTotal - clampedA;
|
|
597
|
+
return next;
|
|
598
|
+
}
|
|
599
|
+
applyDelta(index, delta, commit) {
|
|
600
|
+
this.sizes = this.clampPair(this.sizes, index, delta, this.getContainerSize());
|
|
601
|
+
this.emit('lyra-resize', { sizes: [...this.sizes] });
|
|
602
|
+
if (commit)
|
|
603
|
+
this.persist();
|
|
604
|
+
}
|
|
605
|
+
/** The collapsing pane's light-DOM element itself — the `'floating'`
|
|
606
|
+
* drawer's focus-trap/backdrop target. There's no separate shadow-DOM
|
|
607
|
+
* panel to trap focus within (unlike `<lyra-app-rail>`'s `[part="panel"]`):
|
|
608
|
+
* the slotted panel *is* the floating drawer, just repositioned via
|
|
609
|
+
* inline styles in `updated()`. */
|
|
610
|
+
get floatingPanelEl() {
|
|
611
|
+
const index = this.collapsingIndex;
|
|
612
|
+
return index === -1 ? null : (this.children[index] ?? null);
|
|
613
|
+
}
|
|
614
|
+
activateFloatingOverlay() {
|
|
615
|
+
this.releaseScrollLock ??= lockScroll(this.ownerDocument);
|
|
616
|
+
this.overlayHandle = activateOverlay({
|
|
617
|
+
host: this,
|
|
618
|
+
panel: () => this.floatingPanelEl,
|
|
619
|
+
onEscape: () => (this.open = false),
|
|
620
|
+
onBackdrop: () => (this.open = false),
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
deactivateFloatingOverlay() {
|
|
624
|
+
this.releaseScrollLock?.();
|
|
625
|
+
this.releaseScrollLock = undefined;
|
|
626
|
+
this.overlayHandle?.deactivate();
|
|
627
|
+
this.overlayHandle = undefined;
|
|
628
|
+
}
|
|
629
|
+
updated(changed) {
|
|
630
|
+
if (changed.has('collapse'))
|
|
631
|
+
this.syncCollapseObserver();
|
|
632
|
+
const constraintResolution = this.resolveConstraintBounds(this.getContainerSize());
|
|
633
|
+
const issue = constraintResolution.issue;
|
|
634
|
+
const issueKey = issue
|
|
635
|
+
? `${issue.reason}:${issue.panelCount}:${issue.minimumTotal}:${issue.maximumTotal ?? 'unbounded'}`
|
|
636
|
+
: '';
|
|
637
|
+
if (issueKey !== this.constraintIssueKey) {
|
|
638
|
+
this.constraintIssueKey = issueKey;
|
|
639
|
+
if (issue)
|
|
640
|
+
this.emit('lyra-split-constraints-invalid', issue);
|
|
641
|
+
}
|
|
642
|
+
const panels = [...this.children];
|
|
643
|
+
const current = new Set(panels);
|
|
644
|
+
// A panel that dropped out of the slot (removed from the light DOM)
|
|
645
|
+
// still carries whatever inline flex/order (and, while collapsing,
|
|
646
|
+
// position/inset/inline-size) this method last applied to it — clear
|
|
647
|
+
// those before that DOM node potentially gets reused elsewhere (e.g.
|
|
648
|
+
// re-slotted into another split/container).
|
|
649
|
+
for (const stale of this.stylizedPanels) {
|
|
650
|
+
if (!current.has(stale)) {
|
|
651
|
+
stale.style.removeProperty('flex');
|
|
652
|
+
stale.style.removeProperty('order');
|
|
653
|
+
stale.style.removeProperty('position');
|
|
654
|
+
stale.style.removeProperty('inset-block');
|
|
655
|
+
stale.style.removeProperty('inset-inline-start');
|
|
656
|
+
stale.style.removeProperty('inset-inline-end');
|
|
657
|
+
stale.style.removeProperty('inline-size');
|
|
658
|
+
stale.hidden = false;
|
|
659
|
+
delete stale.dataset.collapseState;
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
// Resolved once per pass rather than per panel: which physical index (if
|
|
663
|
+
// any) is actually collapsed right now — `-1` covers both `collapse ===
|
|
664
|
+
// 'none'` (the default) and a `collapse !== 'none'` pane that's still in
|
|
665
|
+
// its normal `'wide'` state, so every panel below falls straight through
|
|
666
|
+
// to the exact pre-existing (non-collapse) styling in either case.
|
|
667
|
+
const collapsingIndex = this.collapseActive ? this.collapsingIndex : -1;
|
|
668
|
+
panels.forEach((panel, i) => {
|
|
669
|
+
const percent = this.sizes[i] ?? 0;
|
|
670
|
+
const constraint = constraintResolution.usePanelConstraints ? this.panelConstraints[i] : undefined;
|
|
671
|
+
// Collapse-only inline styles are always cleared first, then
|
|
672
|
+
// re-applied below only for the panel(s) that need them this pass —
|
|
673
|
+
// simpler than diffing which of the 5 properties changed.
|
|
674
|
+
panel.style.removeProperty('position');
|
|
675
|
+
panel.style.removeProperty('inset-block');
|
|
676
|
+
panel.style.removeProperty('inset-inline-start');
|
|
677
|
+
panel.style.removeProperty('inset-inline-end');
|
|
678
|
+
panel.style.removeProperty('inline-size');
|
|
679
|
+
panel.hidden = false;
|
|
680
|
+
if (collapsingIndex === i && this.collapseState === 'rail') {
|
|
681
|
+
// Fixed rail width instead of the normal clamp()/percent flex-basis.
|
|
682
|
+
panel.style.flex = `0 0 ${this.railWidth}`;
|
|
683
|
+
}
|
|
684
|
+
else if (collapsingIndex === i && this.collapseState === 'floating' && !this.open) {
|
|
685
|
+
// Hidden-by-default drawer (see the class doc): rendering nothing
|
|
686
|
+
// (not just visually collapsed, so it's out of the accessibility
|
|
687
|
+
// tree too) until a consumer sets `open`. The pane still vacates the
|
|
688
|
+
// flex flow the same way the open/floating branch below does, via
|
|
689
|
+
// `hidden`'s UA `display: none` rather than `position: absolute`, so
|
|
690
|
+
// the other pane below still grows to fill the space regardless of
|
|
691
|
+
// which of the two branches applied.
|
|
692
|
+
panel.style.flex = 'none';
|
|
693
|
+
panel.hidden = true;
|
|
694
|
+
}
|
|
695
|
+
else if (collapsingIndex === i && this.collapseState === 'floating') {
|
|
696
|
+
// `this.open` is true here. Lifted out of the flex flow entirely as
|
|
697
|
+
// an overlay card, anchored to its own logical start/end edge,
|
|
698
|
+
// spanning the full cross-axis extent — [part="base"] carries
|
|
699
|
+
// `position: relative` for this to anchor against (see
|
|
700
|
+
// split.styles.ts). Sized at its own normal percent width (i.e. what
|
|
701
|
+
// it would render at in the `'wide'` state), so there's no visual
|
|
702
|
+
// size jump the moment it un-floats.
|
|
703
|
+
panel.style.flex = 'none';
|
|
704
|
+
panel.style.position = 'absolute';
|
|
705
|
+
panel.style.setProperty('inset-block', '0');
|
|
706
|
+
panel.style.setProperty(collapsingIndex === 0 ? 'inset-inline-start' : 'inset-inline-end', '0');
|
|
707
|
+
panel.style.setProperty('inline-size', `${percent}%`);
|
|
708
|
+
}
|
|
709
|
+
else if (collapsingIndex !== -1 && i !== collapsingIndex) {
|
|
710
|
+
// The pane(s) sharing the split with a currently rail/floating
|
|
711
|
+
// collapsed pane: grow to fill whatever space that pane no longer
|
|
712
|
+
// occupies (its full percent-basis space while floating, or
|
|
713
|
+
// percent-basis-minus-railWidth while railed), proportionally to
|
|
714
|
+
// their own relative `sizes` share for a 3+-panel split.
|
|
715
|
+
panel.style.flex = `${percent} 1 0%`;
|
|
716
|
+
}
|
|
717
|
+
else {
|
|
718
|
+
// clamp() mixes units natively, so a constrained panel stays pinned
|
|
719
|
+
// between its px bounds across container resizes with no extra
|
|
720
|
+
// ResizeObserver — the browser re-evaluates it on every layout pass.
|
|
721
|
+
panel.style.flex =
|
|
722
|
+
constraint && (constraint.minPx != null || constraint.maxPx != null)
|
|
723
|
+
? `0 0 clamp(${constraint.minPx ?? NO_MIN_PX}px, ${percent}%, ${constraint.maxPx ?? NO_MAX_PX}px)`
|
|
724
|
+
: `0 0 ${percent}%`;
|
|
725
|
+
}
|
|
726
|
+
panel.style.order = String(i * 2);
|
|
727
|
+
if (collapsingIndex === i) {
|
|
728
|
+
panel.dataset.collapseState = this.collapseState;
|
|
729
|
+
}
|
|
730
|
+
else {
|
|
731
|
+
delete panel.dataset.collapseState;
|
|
732
|
+
}
|
|
733
|
+
});
|
|
734
|
+
this.stylizedPanels = current;
|
|
735
|
+
// Host-level marker (mirrors the per-panel `dataset.collapseState`
|
|
736
|
+
// above) for simple external CSS targeting of the whole component's
|
|
737
|
+
// current state, e.g. `lyra-split[data-collapse-state="rail"] + aside`.
|
|
738
|
+
// Absent whenever there's nothing collapsed to report (`collapse ===
|
|
739
|
+
// 'none'` or still `'wide'`), same as the per-panel marker.
|
|
740
|
+
if (collapsingIndex !== -1) {
|
|
741
|
+
this.setAttribute('data-collapse-state', this.collapseState);
|
|
742
|
+
}
|
|
743
|
+
else {
|
|
744
|
+
this.removeAttribute('data-collapse-state');
|
|
745
|
+
}
|
|
746
|
+
// Runs after this render (not willUpdate) so the floating panel's
|
|
747
|
+
// repositioned geometry above has already landed before the focus call
|
|
748
|
+
// below can rely on it -- mirrors lyra-app-rail's/lyra-dialog's identical
|
|
749
|
+
// ordering rationale for their own overlay's initial focus.
|
|
750
|
+
if (this.justOpened) {
|
|
751
|
+
this.justOpened = false;
|
|
752
|
+
this.overlayHandle?.focusInitial();
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
render() {
|
|
756
|
+
const dividers = [];
|
|
757
|
+
const bounds = this.resolveConstraintBounds(this.getContainerSize()).bounds;
|
|
758
|
+
for (let i = 0; i < this.panelCount - 1; i++) {
|
|
759
|
+
// The achievable range is bounded by both adjacent panels, not the
|
|
760
|
+
// whole track — pushing past it would starve the partner even though
|
|
761
|
+
// this pair still has room. Keep max >= min for imperfect persisted or
|
|
762
|
+
// consumer-supplied starting sizes.
|
|
763
|
+
const pairTotal = (this.sizes[i] ?? 0) + (this.sizes[i + 1] ?? 0);
|
|
764
|
+
const a = bounds[i] ?? { min: 0, max: Infinity };
|
|
765
|
+
const b = bounds[i + 1] ?? { min: 0, max: Infinity };
|
|
766
|
+
const valueMin = Math.max(a.min, pairTotal - b.max);
|
|
767
|
+
const valueMax = Math.max(valueMin, Math.min(a.max, pairTotal - b.min));
|
|
768
|
+
const disabled = this.isDividerDisabled(i);
|
|
769
|
+
dividers.push(html `<div
|
|
770
|
+
part="divider"
|
|
771
|
+
role="separator"
|
|
772
|
+
aria-label=${this.dividerLabel ? this.dividerLabel(i, this.panelCount) : `Resize divider between panel ${i + 1} and panel ${i + 2}`}
|
|
773
|
+
aria-orientation=${this.orientation === 'vertical' ? 'horizontal' : 'vertical'}
|
|
774
|
+
aria-valuenow=${Math.round(this.sizes[i] ?? 0)}
|
|
775
|
+
aria-valuemin=${Math.round(valueMin)}
|
|
776
|
+
aria-valuemax=${Math.round(valueMax)}
|
|
777
|
+
aria-disabled=${disabled ? 'true' : nothing}
|
|
778
|
+
tabindex=${disabled ? '-1' : '0'}
|
|
779
|
+
style=${`order:${i * 2 + 1}`}
|
|
780
|
+
@pointerdown=${(e) => this.onPointerDown(e, i)}
|
|
781
|
+
@keydown=${(e) => this.onDividerKeyDown(e, i)}
|
|
782
|
+
></div>`);
|
|
783
|
+
}
|
|
784
|
+
const showBackdrop = this.collapseState === 'floating' && this.open;
|
|
785
|
+
return html `<div part="base">
|
|
786
|
+
<slot @slotchange=${this.onSlotChange}></slot>
|
|
787
|
+
${dividers}
|
|
788
|
+
${showBackdrop ? html `<div part="backdrop" @click=${this.onBackdropClick}></div>` : nothing}
|
|
789
|
+
</div>`;
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
__decorate([
|
|
793
|
+
property({ attribute: false })
|
|
794
|
+
], LyraSplit.prototype, "sizes", void 0);
|
|
795
|
+
__decorate([
|
|
796
|
+
property({ type: Number })
|
|
797
|
+
], LyraSplit.prototype, "min", void 0);
|
|
798
|
+
__decorate([
|
|
799
|
+
property({ reflect: true })
|
|
800
|
+
], LyraSplit.prototype, "orientation", void 0);
|
|
801
|
+
__decorate([
|
|
802
|
+
property({ attribute: 'storage-key' })
|
|
803
|
+
], LyraSplit.prototype, "storageKey", void 0);
|
|
804
|
+
__decorate([
|
|
805
|
+
property({ attribute: false })
|
|
806
|
+
], LyraSplit.prototype, "panelConstraints", void 0);
|
|
807
|
+
__decorate([
|
|
808
|
+
property({ reflect: true })
|
|
809
|
+
], LyraSplit.prototype, "collapse", void 0);
|
|
810
|
+
__decorate([
|
|
811
|
+
property({ attribute: 'rail-width' })
|
|
812
|
+
], LyraSplit.prototype, "railWidth", void 0);
|
|
813
|
+
__decorate([
|
|
814
|
+
property({ type: Number, attribute: 'rail-breakpoint' })
|
|
815
|
+
], LyraSplit.prototype, "railBreakpoint", void 0);
|
|
816
|
+
__decorate([
|
|
817
|
+
property({ type: Number, attribute: 'float-breakpoint' })
|
|
818
|
+
], LyraSplit.prototype, "floatBreakpoint", void 0);
|
|
819
|
+
__decorate([
|
|
820
|
+
property({ type: Boolean, reflect: true })
|
|
821
|
+
], LyraSplit.prototype, "open", void 0);
|
|
822
|
+
__decorate([
|
|
823
|
+
property({ attribute: false })
|
|
824
|
+
], LyraSplit.prototype, "dividerLabel", void 0);
|
|
825
|
+
__decorate([
|
|
826
|
+
state()
|
|
827
|
+
], LyraSplit.prototype, "panelCount", void 0);
|
|
828
|
+
__decorate([
|
|
829
|
+
query('[part="base"]')
|
|
830
|
+
], LyraSplit.prototype, "baseEl", void 0);
|
|
831
|
+
//# sourceMappingURL=split.class.js.map
|