@aceshooting/lyra-ui 3.4.0 → 3.6.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 +110 -2
- package/custom-elements.json +50145 -41814
- package/dist/components/animated-image/animated-image.class.d.ts +131 -0
- package/dist/components/animated-image/animated-image.class.d.ts.map +1 -0
- package/dist/components/animated-image/animated-image.class.js +296 -0
- package/dist/components/animated-image/animated-image.class.js.map +1 -0
- package/dist/components/animated-image/animated-image.d.ts +2 -0
- package/dist/components/animated-image/animated-image.d.ts.map +1 -0
- package/dist/components/animated-image/animated-image.js +5 -0
- package/dist/components/animated-image/animated-image.js.map +1 -0
- package/dist/components/animated-image/animated-image.styles.d.ts +2 -0
- package/dist/components/animated-image/animated-image.styles.d.ts.map +1 -0
- package/dist/components/animated-image/animated-image.styles.js +117 -0
- package/dist/components/animated-image/animated-image.styles.js.map +1 -0
- package/dist/components/animation/animation.class.d.ts +119 -0
- package/dist/components/animation/animation.class.d.ts.map +1 -0
- package/dist/components/animation/animation.class.js +420 -0
- package/dist/components/animation/animation.class.js.map +1 -0
- package/dist/components/animation/animation.d.ts +2 -0
- package/dist/components/animation/animation.d.ts.map +1 -0
- package/dist/components/animation/animation.js +5 -0
- package/dist/components/animation/animation.js.map +1 -0
- package/dist/components/animation/animation.styles.d.ts +2 -0
- package/dist/components/animation/animation.styles.d.ts.map +1 -0
- package/dist/components/animation/animation.styles.js +18 -0
- package/dist/components/animation/animation.styles.js.map +1 -0
- package/dist/components/app-rail/app-rail-item.class.d.ts +1 -0
- package/dist/components/app-rail/app-rail-item.class.d.ts.map +1 -1
- package/dist/components/app-rail/app-rail-item.class.js +13 -2
- package/dist/components/app-rail/app-rail-item.class.js.map +1 -1
- package/dist/components/attachment-chip/attachment-chip.d.ts +0 -1
- package/dist/components/attachment-chip/attachment-chip.d.ts.map +1 -1
- package/dist/components/attachment-chip/attachment-chip.js +0 -1
- package/dist/components/attachment-chip/attachment-chip.js.map +1 -1
- package/dist/components/avatar-group/avatar-group.class.d.ts +110 -0
- package/dist/components/avatar-group/avatar-group.class.d.ts.map +1 -0
- package/dist/components/avatar-group/avatar-group.class.js +182 -0
- package/dist/components/avatar-group/avatar-group.class.js.map +1 -0
- package/dist/components/avatar-group/avatar-group.d.ts +2 -0
- package/dist/components/avatar-group/avatar-group.d.ts.map +1 -0
- package/dist/components/avatar-group/avatar-group.js +5 -0
- package/dist/components/avatar-group/avatar-group.js.map +1 -0
- package/dist/components/avatar-group/avatar-group.styles.d.ts +2 -0
- package/dist/components/avatar-group/avatar-group.styles.d.ts.map +1 -0
- package/dist/components/avatar-group/avatar-group.styles.js +112 -0
- package/dist/components/avatar-group/avatar-group.styles.js.map +1 -0
- package/dist/components/breadcrumb/breadcrumb-item.class.d.ts.map +1 -1
- package/dist/components/breadcrumb/breadcrumb-item.class.js +2 -1
- package/dist/components/breadcrumb/breadcrumb-item.class.js.map +1 -1
- package/dist/components/breadcrumb/breadcrumb-item.styles.d.ts +2 -0
- package/dist/components/breadcrumb/breadcrumb-item.styles.d.ts.map +1 -0
- package/dist/components/breadcrumb/breadcrumb-item.styles.js +20 -0
- package/dist/components/breadcrumb/breadcrumb-item.styles.js.map +1 -0
- package/dist/components/calendar/calendar.class.d.ts +17 -1
- package/dist/components/calendar/calendar.class.d.ts.map +1 -1
- package/dist/components/calendar/calendar.class.js +31 -13
- package/dist/components/calendar/calendar.class.js.map +1 -1
- package/dist/components/calendar/calendar.styles.d.ts.map +1 -1
- package/dist/components/calendar/calendar.styles.js +4 -1
- package/dist/components/calendar/calendar.styles.js.map +1 -1
- package/dist/components/calendar-viewer/calendar-viewer.class.d.ts +1 -1
- package/dist/components/calendar-viewer/calendar-viewer.class.d.ts.map +1 -1
- package/dist/components/calendar-viewer/calendar-viewer.class.js +2 -2
- package/dist/components/calendar-viewer/calendar-viewer.class.js.map +1 -1
- package/dist/components/callout/callout.class.js +1 -1
- package/dist/components/callout/callout.class.js.map +1 -1
- package/dist/components/chart/box-plot.class.d.ts.map +1 -1
- package/dist/components/chart/box-plot.class.js +1 -3
- package/dist/components/chart/box-plot.class.js.map +1 -1
- package/dist/components/chart/chart.class.d.ts.map +1 -1
- package/dist/components/chart/chart.class.js +10 -4
- package/dist/components/chart/chart.class.js.map +1 -1
- package/dist/components/chart/histogram.class.d.ts.map +1 -1
- package/dist/components/chart/histogram.class.js +6 -2
- package/dist/components/chart/histogram.class.js.map +1 -1
- package/dist/components/checkbox-group/checkbox-group.class.js +2 -2
- package/dist/components/checkbox-group/checkbox-group.class.js.map +1 -1
- package/dist/components/checkbox-group/checkbox-group.styles.js +1 -1
- package/dist/components/code-editor/code-editor.class.d.ts +9 -2
- package/dist/components/code-editor/code-editor.class.d.ts.map +1 -1
- package/dist/components/code-editor/code-editor.class.js +38 -6
- package/dist/components/code-editor/code-editor.class.js.map +1 -1
- package/dist/components/code-editor/code-editor.styles.d.ts.map +1 -1
- package/dist/components/code-editor/code-editor.styles.js +7 -4
- package/dist/components/code-editor/code-editor.styles.js.map +1 -1
- package/dist/components/command-palette/command-palette.class.d.ts +8 -2
- package/dist/components/command-palette/command-palette.class.d.ts.map +1 -1
- package/dist/components/command-palette/command-palette.class.js +77 -17
- package/dist/components/command-palette/command-palette.class.js.map +1 -1
- package/dist/components/command-palette/command-palette.styles.js +1 -1
- package/dist/components/contact-viewer/contact-viewer.class.d.ts +4 -1
- package/dist/components/contact-viewer/contact-viewer.class.d.ts.map +1 -1
- package/dist/components/contact-viewer/contact-viewer.class.js +5 -2
- package/dist/components/contact-viewer/contact-viewer.class.js.map +1 -1
- package/dist/components/data-grid/data-grid.class.d.ts.map +1 -1
- package/dist/components/data-grid/data-grid.class.js +4 -4
- package/dist/components/data-grid/data-grid.class.js.map +1 -1
- package/dist/components/data-grid/data-grid.styles.js +1 -1
- package/dist/components/document-preview/document-preview.class.d.ts +3 -6
- package/dist/components/document-preview/document-preview.class.d.ts.map +1 -1
- package/dist/components/document-preview/document-preview.class.js +19 -42
- package/dist/components/document-preview/document-preview.class.js.map +1 -1
- package/dist/components/email-viewer/email-viewer.class.d.ts +4 -1
- package/dist/components/email-viewer/email-viewer.class.d.ts.map +1 -1
- package/dist/components/email-viewer/email-viewer.class.js +5 -2
- package/dist/components/email-viewer/email-viewer.class.js.map +1 -1
- package/dist/components/empty/empty.class.d.ts.map +1 -1
- package/dist/components/empty/empty.class.js +8 -2
- package/dist/components/empty/empty.class.js.map +1 -1
- package/dist/components/format/format-bytes.class.d.ts +0 -1
- package/dist/components/format/format-bytes.class.d.ts.map +1 -1
- package/dist/components/format/format-bytes.class.js +0 -4
- package/dist/components/format/format-bytes.class.js.map +1 -1
- package/dist/components/format/format-date.class.d.ts +0 -1
- package/dist/components/format/format-date.class.d.ts.map +1 -1
- package/dist/components/format/format-date.class.js +0 -4
- package/dist/components/format/format-date.class.js.map +1 -1
- package/dist/components/format/format-number.class.d.ts +0 -1
- package/dist/components/format/format-number.class.d.ts.map +1 -1
- package/dist/components/format/format-number.class.js +0 -4
- package/dist/components/format/format-number.class.js.map +1 -1
- package/dist/components/format/relative-time.class.d.ts +0 -1
- package/dist/components/format/relative-time.class.d.ts.map +1 -1
- package/dist/components/format/relative-time.class.js +0 -4
- package/dist/components/format/relative-time.class.js.map +1 -1
- package/dist/components/graph/graph.class.d.ts.map +1 -1
- package/dist/components/graph/graph.class.js +1 -3
- package/dist/components/graph/graph.class.js.map +1 -1
- package/dist/components/heatmap/heatmap.class.d.ts.map +1 -1
- package/dist/components/heatmap/heatmap.class.js +3 -12
- package/dist/components/heatmap/heatmap.class.js.map +1 -1
- package/dist/components/heatmap/heatmap.styles.d.ts.map +1 -1
- package/dist/components/heatmap/heatmap.styles.js +0 -3
- package/dist/components/heatmap/heatmap.styles.js.map +1 -1
- package/dist/components/html-viewer/dompurify-loader.js +4 -0
- package/dist/components/html-viewer/dompurify-loader.js.map +1 -1
- package/dist/components/icon/icon.class.d.ts +11 -0
- package/dist/components/icon/icon.class.d.ts.map +1 -1
- package/dist/components/icon/icon.class.js +51 -2
- package/dist/components/icon/icon.class.js.map +1 -1
- package/dist/components/icon/icon.styles.d.ts.map +1 -1
- package/dist/components/icon/icon.styles.js +1 -1
- package/dist/components/icon/icon.styles.js.map +1 -1
- package/dist/components/image-comparer/image-comparer.styles.d.ts.map +1 -1
- package/dist/components/image-comparer/image-comparer.styles.js +12 -0
- package/dist/components/image-comparer/image-comparer.styles.js.map +1 -1
- package/dist/components/include/include.class.d.ts +104 -0
- package/dist/components/include/include.class.d.ts.map +1 -0
- package/dist/components/include/include.class.js +149 -0
- package/dist/components/include/include.class.js.map +1 -0
- package/dist/components/include/include.d.ts +2 -0
- package/dist/components/include/include.d.ts.map +1 -0
- package/dist/components/include/include.js +5 -0
- package/dist/components/include/include.js.map +1 -0
- package/dist/components/include/include.styles.d.ts +2 -0
- package/dist/components/include/include.styles.d.ts.map +1 -0
- package/dist/components/include/include.styles.js +14 -0
- package/dist/components/include/include.styles.js.map +1 -0
- package/dist/components/intersection-observer/intersection-observer.class.d.ts +0 -1
- package/dist/components/intersection-observer/intersection-observer.class.d.ts.map +1 -1
- package/dist/components/intersection-observer/intersection-observer.class.js +7 -6
- package/dist/components/intersection-observer/intersection-observer.class.js.map +1 -1
- package/dist/components/kbd/kbd.class.d.ts.map +1 -1
- package/dist/components/kbd/kbd.class.js +1 -11
- package/dist/components/kbd/kbd.class.js.map +1 -1
- package/dist/components/known-date/known-date.class.d.ts +208 -0
- package/dist/components/known-date/known-date.class.d.ts.map +1 -0
- package/dist/components/known-date/known-date.class.js +588 -0
- package/dist/components/known-date/known-date.class.js.map +1 -0
- package/dist/components/known-date/known-date.d.ts +2 -0
- package/dist/components/known-date/known-date.d.ts.map +1 -0
- package/dist/components/known-date/known-date.js +5 -0
- package/dist/components/known-date/known-date.js.map +1 -0
- package/dist/components/known-date/known-date.styles.d.ts +2 -0
- package/dist/components/known-date/known-date.styles.d.ts.map +1 -0
- package/dist/components/known-date/known-date.styles.js +134 -0
- package/dist/components/known-date/known-date.styles.js.map +1 -0
- package/dist/components/lightbox/lightbox.class.d.ts +187 -0
- package/dist/components/lightbox/lightbox.class.d.ts.map +1 -0
- package/dist/components/lightbox/lightbox.class.js +415 -0
- package/dist/components/lightbox/lightbox.class.js.map +1 -0
- package/dist/components/lightbox/lightbox.d.ts +3 -0
- package/dist/components/lightbox/lightbox.d.ts.map +1 -0
- package/dist/components/lightbox/lightbox.js +6 -0
- package/dist/components/lightbox/lightbox.js.map +1 -0
- package/dist/components/lightbox/lightbox.styles.d.ts +2 -0
- package/dist/components/lightbox/lightbox.styles.d.ts.map +1 -0
- package/dist/components/lightbox/lightbox.styles.js +179 -0
- package/dist/components/lightbox/lightbox.styles.js.map +1 -0
- package/dist/components/map/map.class.d.ts +1 -1
- package/dist/components/map/map.class.d.ts.map +1 -1
- package/dist/components/map/map.class.js +2 -24
- package/dist/components/map/map.class.js.map +1 -1
- package/dist/components/menu/menu.class.d.ts +1 -1
- package/dist/components/model-select/model-select.class.d.ts +1 -0
- package/dist/components/model-select/model-select.class.d.ts.map +1 -1
- package/dist/components/model-select/model-select.class.js +2 -1
- package/dist/components/model-select/model-select.class.js.map +1 -1
- package/dist/components/model-select/model-select.styles.js +1 -1
- package/dist/components/model-settings-panel/model-settings-panel.class.d.ts.map +1 -1
- package/dist/components/model-settings-panel/model-settings-panel.class.js +1 -10
- package/dist/components/model-settings-panel/model-settings-panel.class.js.map +1 -1
- package/dist/components/mutation-observer/mutation-observer.class.d.ts +0 -1
- package/dist/components/mutation-observer/mutation-observer.class.d.ts.map +1 -1
- package/dist/components/mutation-observer/mutation-observer.class.js +0 -5
- package/dist/components/mutation-observer/mutation-observer.class.js.map +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.class.js +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.class.js.map +1 -1
- package/dist/components/phone-input/phone-input.class.d.ts +15 -0
- package/dist/components/phone-input/phone-input.class.d.ts.map +1 -1
- package/dist/components/phone-input/phone-input.class.js +46 -0
- package/dist/components/phone-input/phone-input.class.js.map +1 -1
- package/dist/components/progress/progress-bar.class.js +1 -1
- package/dist/components/progress/progress-bar.class.js.map +1 -1
- package/dist/components/progress/progress.styles.d.ts.map +1 -1
- package/dist/components/progress/progress.styles.js +4 -2
- package/dist/components/progress/progress.styles.js.map +1 -1
- package/dist/components/qr-code/qr-code-loader.d.ts +15 -0
- package/dist/components/qr-code/qr-code-loader.d.ts.map +1 -0
- package/dist/components/qr-code/qr-code-loader.js +28 -0
- package/dist/components/qr-code/qr-code-loader.js.map +1 -0
- package/dist/components/qr-code/qr-code.class.d.ts +121 -0
- package/dist/components/qr-code/qr-code.class.d.ts.map +1 -0
- package/dist/components/qr-code/qr-code.class.js +392 -0
- package/dist/components/qr-code/qr-code.class.js.map +1 -0
- package/dist/components/qr-code/qr-code.d.ts +2 -0
- package/dist/components/qr-code/qr-code.d.ts.map +1 -0
- package/dist/components/qr-code/qr-code.js +5 -0
- package/dist/components/qr-code/qr-code.js.map +1 -0
- package/dist/components/qr-code/qr-code.styles.d.ts +2 -0
- package/dist/components/qr-code/qr-code.styles.d.ts.map +1 -0
- package/dist/components/qr-code/qr-code.styles.js +48 -0
- package/dist/components/qr-code/qr-code.styles.js.map +1 -0
- package/dist/components/radio/radio-group.class.d.ts +2 -0
- package/dist/components/radio/radio-group.class.d.ts.map +1 -1
- package/dist/components/radio/radio-group.class.js +6 -2
- package/dist/components/radio/radio-group.class.js.map +1 -1
- package/dist/components/radio/radio-group.styles.d.ts.map +1 -1
- package/dist/components/radio/radio-group.styles.js +1 -0
- package/dist/components/radio/radio-group.styles.js.map +1 -1
- package/dist/components/radio/radio.class.d.ts +4 -0
- package/dist/components/radio/radio.class.d.ts.map +1 -1
- package/dist/components/radio/radio.class.js +18 -0
- package/dist/components/radio/radio.class.js.map +1 -1
- package/dist/components/random-content/random-content.class.d.ts +99 -0
- package/dist/components/random-content/random-content.class.d.ts.map +1 -0
- package/dist/components/random-content/random-content.class.js +268 -0
- package/dist/components/random-content/random-content.class.js.map +1 -0
- package/dist/components/random-content/random-content.d.ts +2 -0
- package/dist/components/random-content/random-content.d.ts.map +1 -0
- package/dist/components/random-content/random-content.js +5 -0
- package/dist/components/random-content/random-content.js.map +1 -0
- package/dist/components/random-content/random-content.styles.d.ts +2 -0
- package/dist/components/random-content/random-content.styles.d.ts.map +1 -0
- package/dist/components/random-content/random-content.styles.js +94 -0
- package/dist/components/random-content/random-content.styles.js.map +1 -0
- package/dist/components/resize-observer/resize-observer.class.d.ts.map +1 -1
- package/dist/components/resize-observer/resize-observer.class.js +12 -0
- package/dist/components/resize-observer/resize-observer.class.js.map +1 -1
- package/dist/components/responsive-panel/responsive-panel.class.d.ts +14 -5
- package/dist/components/responsive-panel/responsive-panel.class.d.ts.map +1 -1
- package/dist/components/responsive-panel/responsive-panel.class.js +18 -6
- package/dist/components/responsive-panel/responsive-panel.class.js.map +1 -1
- package/dist/components/result-card/result-card.class.d.ts +9 -8
- package/dist/components/result-card/result-card.class.d.ts.map +1 -1
- package/dist/components/result-card/result-card.class.js +7 -26
- package/dist/components/result-card/result-card.class.js.map +1 -1
- package/dist/components/result-card/result-field.class.d.ts.map +1 -1
- package/dist/components/result-card/result-field.class.js +1 -11
- package/dist/components/result-card/result-field.class.js.map +1 -1
- package/dist/components/scroller/scroller.class.js +2 -2
- package/dist/components/scroller/scroller.class.js.map +1 -1
- package/dist/components/segmented/segmented.class.d.ts.map +1 -1
- package/dist/components/segmented/segmented.class.js +1 -1
- package/dist/components/segmented/segmented.class.js.map +1 -1
- package/dist/components/slider/slider.class.d.ts.map +1 -1
- package/dist/components/slider/slider.class.js +1 -19
- package/dist/components/slider/slider.class.js.map +1 -1
- package/dist/components/source-card/source-card.class.d.ts +8 -7
- package/dist/components/source-card/source-card.class.d.ts.map +1 -1
- package/dist/components/source-card/source-card.class.js +6 -25
- package/dist/components/source-card/source-card.class.js.map +1 -1
- package/dist/components/sparkline/sparkline.class.d.ts.map +1 -1
- package/dist/components/sparkline/sparkline.class.js +10 -7
- package/dist/components/sparkline/sparkline.class.js.map +1 -1
- package/dist/components/split/split.class.d.ts.map +1 -1
- package/dist/components/split/split.class.js +9 -2
- package/dist/components/split/split.class.js.map +1 -1
- package/dist/components/stat/stat.class.js +1 -1
- package/dist/components/stat/stat.class.js.map +1 -1
- package/dist/components/stat/stat.styles.d.ts.map +1 -1
- package/dist/components/stat/stat.styles.js +9 -0
- package/dist/components/stat/stat.styles.js.map +1 -1
- package/dist/components/stepper/stepper.class.d.ts.map +1 -1
- package/dist/components/stepper/stepper.class.js +1 -1
- package/dist/components/stepper/stepper.class.js.map +1 -1
- package/dist/components/streaming-text/streaming-text.class.d.ts.map +1 -1
- package/dist/components/streaming-text/streaming-text.class.js +5 -5
- package/dist/components/streaming-text/streaming-text.class.js.map +1 -1
- package/dist/components/switch/switch.class.d.ts +7 -0
- package/dist/components/switch/switch.class.d.ts.map +1 -1
- package/dist/components/switch/switch.class.js +9 -0
- package/dist/components/switch/switch.class.js.map +1 -1
- package/dist/components/table/table.class.d.ts +14 -0
- package/dist/components/table/table.class.d.ts.map +1 -1
- package/dist/components/table/table.class.js +52 -1
- package/dist/components/table/table.class.js.map +1 -1
- package/dist/components/time-range/time-range.class.d.ts.map +1 -1
- package/dist/components/time-range/time-range.class.js +1 -21
- package/dist/components/time-range/time-range.class.js.map +1 -1
- package/dist/components/timeline/timeline-item.class.d.ts +120 -0
- package/dist/components/timeline/timeline-item.class.d.ts.map +1 -0
- package/dist/components/timeline/timeline-item.class.js +203 -0
- package/dist/components/timeline/timeline-item.class.js.map +1 -0
- package/dist/components/timeline/timeline-item.d.ts +3 -0
- package/dist/components/timeline/timeline-item.d.ts.map +1 -0
- package/dist/components/timeline/timeline-item.js +10 -0
- package/dist/components/timeline/timeline-item.js.map +1 -0
- package/dist/components/timeline/timeline-item.styles.d.ts +2 -0
- package/dist/components/timeline/timeline-item.styles.d.ts.map +1 -0
- package/dist/components/timeline/timeline-item.styles.js +149 -0
- package/dist/components/timeline/timeline-item.styles.js.map +1 -0
- package/dist/components/timeline/timeline.class.d.ts +59 -0
- package/dist/components/timeline/timeline.class.d.ts.map +1 -0
- package/dist/components/timeline/timeline.class.js +100 -0
- package/dist/components/timeline/timeline.class.js.map +1 -0
- package/dist/components/timeline/timeline.d.ts +2 -0
- package/dist/components/timeline/timeline.d.ts.map +1 -0
- package/dist/components/timeline/timeline.js +5 -0
- package/dist/components/timeline/timeline.js.map +1 -0
- package/dist/components/timeline/timeline.styles.d.ts +2 -0
- package/dist/components/timeline/timeline.styles.d.ts.map +1 -0
- package/dist/components/timeline/timeline.styles.js +52 -0
- package/dist/components/timeline/timeline.styles.js.map +1 -0
- package/dist/components/toast/toast-item.class.d.ts.map +1 -1
- package/dist/components/toast/toast-item.class.js +1 -3
- package/dist/components/toast/toast-item.class.js.map +1 -1
- package/dist/components/token-input/token-input.class.d.ts +19 -0
- package/dist/components/token-input/token-input.class.d.ts.map +1 -1
- package/dist/components/token-input/token-input.class.js +59 -10
- package/dist/components/token-input/token-input.class.js.map +1 -1
- package/dist/components/token-input/token-input.styles.js +1 -1
- package/dist/components/tool-select-dialog/tool-select-dialog.class.d.ts +4 -0
- package/dist/components/tool-select-dialog/tool-select-dialog.class.d.ts.map +1 -1
- package/dist/components/tool-select-dialog/tool-select-dialog.class.js +9 -1
- package/dist/components/tool-select-dialog/tool-select-dialog.class.js.map +1 -1
- package/dist/components/tour/tour.class.d.ts +250 -0
- package/dist/components/tour/tour.class.d.ts.map +1 -0
- package/dist/components/tour/tour.class.js +530 -0
- package/dist/components/tour/tour.class.js.map +1 -0
- package/dist/components/tour/tour.d.ts +2 -0
- package/dist/components/tour/tour.d.ts.map +1 -0
- package/dist/components/tour/tour.js +5 -0
- package/dist/components/tour/tour.js.map +1 -0
- package/dist/components/tour/tour.styles.d.ts +2 -0
- package/dist/components/tour/tour.styles.d.ts.map +1 -0
- package/dist/components/tour/tour.styles.js +165 -0
- package/dist/components/tour/tour.styles.js.map +1 -0
- package/dist/components/virtual-list/virtual-list.class.d.ts.map +1 -1
- package/dist/components/virtual-list/virtual-list.class.js +1 -3
- package/dist/components/virtual-list/virtual-list.class.js.map +1 -1
- package/dist/components/widget/widget.class.d.ts.map +1 -1
- package/dist/components/widget/widget.class.js +2 -6
- package/dist/components/widget/widget.class.js.map +1 -1
- package/dist/components/widget/widget.styles.d.ts.map +1 -1
- package/dist/components/widget/widget.styles.js +4 -0
- package/dist/components/widget/widget.styles.js.map +1 -1
- package/dist/components/word-cloud/word-cloud.class.d.ts.map +1 -1
- package/dist/components/word-cloud/word-cloud.class.js +1 -8
- package/dist/components/word-cloud/word-cloud.class.js.map +1 -1
- package/dist/components/zoomable-frame/zoomable-frame.class.d.ts +15 -0
- package/dist/components/zoomable-frame/zoomable-frame.class.d.ts.map +1 -1
- package/dist/components/zoomable-frame/zoomable-frame.class.js +19 -1
- package/dist/components/zoomable-frame/zoomable-frame.class.js.map +1 -1
- package/dist/internal/a11y.d.ts +4 -0
- package/dist/internal/a11y.d.ts.map +1 -1
- package/dist/internal/a11y.js +17 -0
- package/dist/internal/a11y.js.map +1 -1
- package/dist/internal/canvas.d.ts +8 -0
- package/dist/internal/canvas.d.ts.map +1 -0
- package/dist/internal/canvas.js +14 -0
- package/dist/internal/canvas.js.map +1 -0
- package/dist/internal/localization.d.ts +1 -1
- package/dist/internal/localization.d.ts.map +1 -1
- package/dist/internal/localization.js +20 -2
- package/dist/internal/localization.js.map +1 -1
- package/dist/internal/motion.d.ts +5 -0
- package/dist/internal/motion.d.ts.map +1 -0
- package/dist/internal/motion.js +7 -0
- package/dist/internal/motion.js.map +1 -0
- package/dist/internal/numbers.d.ts +11 -0
- package/dist/internal/numbers.d.ts.map +1 -1
- package/dist/internal/numbers.js +21 -0
- package/dist/internal/numbers.js.map +1 -1
- package/dist/internal/positioner.d.ts +14 -0
- package/dist/internal/positioner.d.ts.map +1 -1
- package/dist/internal/positioner.js +27 -0
- package/dist/internal/positioner.js.map +1 -1
- package/dist/internal/root-registration-allowlist.d.ts +1 -1
- package/dist/internal/root-registration-allowlist.d.ts.map +1 -1
- package/dist/internal/root-registration-allowlist.js +11 -0
- package/dist/internal/root-registration-allowlist.js.map +1 -1
- package/dist/internal/rtl.d.ts +0 -11
- package/dist/internal/rtl.d.ts.map +1 -1
- package/dist/internal/rtl.js +0 -13
- package/dist/internal/rtl.js.map +1 -1
- package/dist/internal/safe-css.d.ts +15 -0
- package/dist/internal/safe-css.d.ts.map +1 -0
- package/dist/internal/safe-css.js +25 -0
- package/dist/internal/safe-css.js.map +1 -0
- package/dist/internal/strip-host-title.d.ts +24 -0
- package/dist/internal/strip-host-title.d.ts.map +1 -0
- package/dist/internal/strip-host-title.js +46 -0
- package/dist/internal/strip-host-title.js.map +1 -0
- package/dist/internal/tokens.styles.d.ts.map +1 -1
- package/dist/internal/tokens.styles.js +4 -0
- package/dist/internal/tokens.styles.js.map +1 -1
- package/dist/lyra.d.ts +33 -0
- package/dist/lyra.d.ts.map +1 -1
- package/dist/lyra.js +22 -0
- package/dist/lyra.js.map +1 -1
- package/llms-full.txt +104 -0
- package/llms.txt +3 -0
- package/package.json +43 -6
- package/vscode-css-data.json +719 -0
- package/vscode-html-data.json +10579 -0
- package/web-types.json +12161 -0
|
@@ -76,6 +76,18 @@ export const styles = css `
|
|
|
76
76
|
cursor: ew-resize;
|
|
77
77
|
}
|
|
78
78
|
[part='base'][data-orientation='vertical'] [part='handle'] {
|
|
79
|
+
/* A native <input type="range"> always maps pointer position along its own inline axis,
|
|
80
|
+
which defaults to horizontal-tb -- so without this override, dragging up/down over the
|
|
81
|
+
visibly vertical divider does nothing; only a horizontal drag (invisible, off to the
|
|
82
|
+
side) would move the thumb. writing-mode: vertical-lr switches the input's inline axis to
|
|
83
|
+
run top-to-bottom, matching [part='divider']'s own top-anchored inset-block-start above.
|
|
84
|
+
direction is pinned to ltr (rather than left to inherit an ambient dir="rtl") because
|
|
85
|
+
vertical-lr's inline progression reverses to bottom-to-top under direction: rtl, which
|
|
86
|
+
would desync the native handle's value from the always-top-to-bottom divider position --
|
|
87
|
+
the same block-axis-is-unaffected-by-inline-direction invariant the 'before' clip-path
|
|
88
|
+
override above already relies on for vertical orientation. */
|
|
89
|
+
writing-mode: vertical-lr;
|
|
90
|
+
direction: ltr;
|
|
79
91
|
cursor: ns-resize;
|
|
80
92
|
}
|
|
81
93
|
[part='handle']:focus-visible {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-comparer.styles.js","sourceRoot":"","sources":["../../../src/components/image-comparer/image-comparer.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"image-comparer.styles.js","sourceRoot":"","sources":["../../../src/components/image-comparer/image-comparer.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgGxB,CAAC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { type PropertyValues, type TemplateResult } from 'lit';
|
|
2
|
+
import { LyraElement } from '../../internal/lyra-element.js';
|
|
3
|
+
/** `fetch()`'s `RequestMode` values this component accepts. */
|
|
4
|
+
export type LyraIncludeMode = 'cors' | 'no-cors' | 'same-origin';
|
|
5
|
+
/**
|
|
6
|
+
* Why a `lyra-include-error` fired instead of a successful `lyra-load`:
|
|
7
|
+
* - `'blocked-url'` — `src` failed the shared `safeFetchUrl()` scheme
|
|
8
|
+
* allowlist; `fetch()` was never called.
|
|
9
|
+
* - `'network'` — `fetch()` itself rejected (DNS/CORS/connection failure).
|
|
10
|
+
* - `'http'` — the fetch completed but the response was not `ok`.
|
|
11
|
+
* - `'missing-sanitizer'` — the fetch succeeded but the optional `dompurify`
|
|
12
|
+
* peer failed to load, so the fragment could not be sanitized.
|
|
13
|
+
* - `'resource-too-large'` — the response body exceeded the shared resource
|
|
14
|
+
* loader's size cap.
|
|
15
|
+
*/
|
|
16
|
+
export type LyraIncludeErrorReason = 'blocked-url' | 'network' | 'http' | 'missing-sanitizer' | 'resource-too-large';
|
|
17
|
+
export interface LyraIncludeEventMap {
|
|
18
|
+
'lyra-load': CustomEvent<{
|
|
19
|
+
src: string;
|
|
20
|
+
}>;
|
|
21
|
+
'lyra-include-error': CustomEvent<{
|
|
22
|
+
status: number;
|
|
23
|
+
reason: LyraIncludeErrorReason;
|
|
24
|
+
error?: unknown;
|
|
25
|
+
}>;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* `<lyra-include>` fetches an HTML fragment from `src` and transcludes it into
|
|
29
|
+
* the page as sanitized light-DOM content, so the fragment participates in
|
|
30
|
+
* the surrounding page's CSS cascade exactly like a native server-side
|
|
31
|
+
* include — unlike `<lyra-html-viewer>`, which renders a foreign document
|
|
32
|
+
* inside an isolated preview card.
|
|
33
|
+
*
|
|
34
|
+
* The fetched markup always passes through the shared DOMPurify-backed
|
|
35
|
+
* sanitizer (`loadHtmlSanitizer()`, the same loader `<lyra-html-viewer>`
|
|
36
|
+
* uses) before it ever touches `innerHTML` — there is no `allow-scripts`
|
|
37
|
+
* escape hatch here, unlike the Web Awesome/Shoelace components this element
|
|
38
|
+
* otherwise mirrors: their raw, unsanitized injection (with an opt-in to
|
|
39
|
+
* actually re-execute embedded `<script>` tags) is incompatible with this
|
|
40
|
+
* library's sanitize-always contract, so that option is simply omitted
|
|
41
|
+
* rather than shipped as a documented no-op.
|
|
42
|
+
*
|
|
43
|
+
* `mode` deliberately defaults to `'same-origin'` rather than the `'cors'`
|
|
44
|
+
* default those upstream components document — a same-origin-only fetch
|
|
45
|
+
* fails closed unless a consumer explicitly opts in to cross-origin fetching
|
|
46
|
+
* with `mode="cors"` (and the remote server cooperates via CORS headers).
|
|
47
|
+
* `'no-cors'` is accepted for enum completeness but is rarely useful: it
|
|
48
|
+
* always yields an opaque response (`status` `0`, unreadable body), a Fetch
|
|
49
|
+
* API platform limitation rather than a bug here.
|
|
50
|
+
*
|
|
51
|
+
* This is a deliberately bare transclusion primitive with no label/hint/
|
|
52
|
+
* error chrome — its interaction idiom (silently swapping light-DOM content)
|
|
53
|
+
* is incompatible with a generic label/hint/error frame. Listen for
|
|
54
|
+
* `lyra-include-error` to build your own error UI, and author meaningful
|
|
55
|
+
* fallback content inside `<lyra-include>` for when the fetch never
|
|
56
|
+
* succeeds; that fallback (and any previously successful include) is left
|
|
57
|
+
* untouched on failure. No `aria-live` region wraps the slot either: the
|
|
58
|
+
* fragment can contain its own landmarks and nested content, and forcing the
|
|
59
|
+
* whole host into a live region would re-announce all of it on every load.
|
|
60
|
+
*
|
|
61
|
+
* No implicit ARIA role and no computed accessible name are applied around
|
|
62
|
+
* the transcluded content — the fragment's own semantics (headings,
|
|
63
|
+
* landmarks, its own `role`/`aria-*` attributes) surface directly and
|
|
64
|
+
* unmodified, exactly as they would in a native include. `aria-busy="true"`
|
|
65
|
+
* is set on the host while a fetch is in flight and removed once it settles,
|
|
66
|
+
* whether it succeeds or fails.
|
|
67
|
+
*
|
|
68
|
+
* @customElement lyra-include
|
|
69
|
+
* @slot - Fallback content shown until (or unless) a fetch succeeds; overwritten with the sanitized fragment once one does.
|
|
70
|
+
* @event lyra-load - The fetched fragment was sanitized and written into the light DOM.
|
|
71
|
+
* @event lyra-include-error - Fetching or sanitizing the fragment failed; see `LyraIncludeErrorReason` for `detail.reason`.
|
|
72
|
+
* @csspart base - The non-layout (`display: contents`) wrapper around the default slot.
|
|
73
|
+
*/
|
|
74
|
+
export declare class LyraInclude extends LyraElement<LyraIncludeEventMap> {
|
|
75
|
+
static styles: import("lit").CSSResultGroup[];
|
|
76
|
+
/**
|
|
77
|
+
* URL of the HTML fragment to fetch, validated through the shared
|
|
78
|
+
* `safeFetchUrl()` allowlist (`http:`, `https:`, `blob:`, `data:`).
|
|
79
|
+
* An empty/falsy value is a no-op: no fetch, no events, existing content
|
|
80
|
+
* untouched.
|
|
81
|
+
*/
|
|
82
|
+
src: string;
|
|
83
|
+
/**
|
|
84
|
+
* Forwarded to `fetch(url, { mode })`. Deliberately defaults to
|
|
85
|
+
* `'same-origin'` rather than the `'cors'` default documented by the
|
|
86
|
+
* Web Awesome/Shoelace components this element otherwise mirrors — a
|
|
87
|
+
* consumer opts in to cross-origin fetching explicitly. An invalid/typo'd
|
|
88
|
+
* attribute value is defensively normalized back to `'same-origin'`
|
|
89
|
+
* rather than letting `fetch()` throw synchronously for an invalid
|
|
90
|
+
* `RequestMode`.
|
|
91
|
+
*/
|
|
92
|
+
mode: LyraIncludeMode;
|
|
93
|
+
private generation;
|
|
94
|
+
protected updated(changed: PropertyValues): void;
|
|
95
|
+
private load;
|
|
96
|
+
private fail;
|
|
97
|
+
render(): TemplateResult;
|
|
98
|
+
}
|
|
99
|
+
declare global {
|
|
100
|
+
interface HTMLElementTagNameMap {
|
|
101
|
+
'lyra-include': LyraInclude;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=include.class.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"include.class.d.ts","sourceRoot":"","sources":["../../../src/components/include/include.class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAErE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAM7D,+DAA+D;AAC/D,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,SAAS,GAAG,aAAa,CAAC;AAIjE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,sBAAsB,GAAG,aAAa,GAAG,SAAS,GAAG,MAAM,GAAG,mBAAmB,GAAG,oBAAoB,CAAC;AAErH,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,WAAW,CAAC;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC1C,oBAAoB,EAAE,WAAW,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,sBAAsB,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;CACxG;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,qBAAa,WAAY,SAAQ,WAAW,CAAC,mBAAmB,CAAC;IAC/D,MAAM,CAAC,MAAM,iCAAgC;IAE7C;;;;;OAKG;IAC0B,GAAG,SAAM;IAEtC;;;;;;;;OAQG;IAC0B,IAAI,EAAE,eAAe,CAAiB;IAEnE,OAAO,CAAC,UAAU,CAAK;IAEvB,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,CAI/C;YAEa,IAAI;IA0ClB,OAAO,CAAC,IAAI;IAKZ,MAAM,IAAI,cAAc,CAEvB;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAC;KAC7B;CACF"}
|
|
@@ -0,0 +1,149 @@
|
|
|
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 } from 'lit';
|
|
8
|
+
import { property } from 'lit/decorators.js';
|
|
9
|
+
import { LyraElement } from '../../internal/lyra-element.js';
|
|
10
|
+
import { safeFetchUrl } from '../../internal/safe-url.js';
|
|
11
|
+
import { isAbortError, isResourceLimitError, readResponseText } from '../../internal/resource-loader.js';
|
|
12
|
+
import { loadHtmlSanitizer } from '../html-viewer/dompurify-loader.js';
|
|
13
|
+
import { styles } from './include.styles.js';
|
|
14
|
+
const VALID_MODES = new Set(['cors', 'no-cors', 'same-origin']);
|
|
15
|
+
/**
|
|
16
|
+
* `<lyra-include>` fetches an HTML fragment from `src` and transcludes it into
|
|
17
|
+
* the page as sanitized light-DOM content, so the fragment participates in
|
|
18
|
+
* the surrounding page's CSS cascade exactly like a native server-side
|
|
19
|
+
* include — unlike `<lyra-html-viewer>`, which renders a foreign document
|
|
20
|
+
* inside an isolated preview card.
|
|
21
|
+
*
|
|
22
|
+
* The fetched markup always passes through the shared DOMPurify-backed
|
|
23
|
+
* sanitizer (`loadHtmlSanitizer()`, the same loader `<lyra-html-viewer>`
|
|
24
|
+
* uses) before it ever touches `innerHTML` — there is no `allow-scripts`
|
|
25
|
+
* escape hatch here, unlike the Web Awesome/Shoelace components this element
|
|
26
|
+
* otherwise mirrors: their raw, unsanitized injection (with an opt-in to
|
|
27
|
+
* actually re-execute embedded `<script>` tags) is incompatible with this
|
|
28
|
+
* library's sanitize-always contract, so that option is simply omitted
|
|
29
|
+
* rather than shipped as a documented no-op.
|
|
30
|
+
*
|
|
31
|
+
* `mode` deliberately defaults to `'same-origin'` rather than the `'cors'`
|
|
32
|
+
* default those upstream components document — a same-origin-only fetch
|
|
33
|
+
* fails closed unless a consumer explicitly opts in to cross-origin fetching
|
|
34
|
+
* with `mode="cors"` (and the remote server cooperates via CORS headers).
|
|
35
|
+
* `'no-cors'` is accepted for enum completeness but is rarely useful: it
|
|
36
|
+
* always yields an opaque response (`status` `0`, unreadable body), a Fetch
|
|
37
|
+
* API platform limitation rather than a bug here.
|
|
38
|
+
*
|
|
39
|
+
* This is a deliberately bare transclusion primitive with no label/hint/
|
|
40
|
+
* error chrome — its interaction idiom (silently swapping light-DOM content)
|
|
41
|
+
* is incompatible with a generic label/hint/error frame. Listen for
|
|
42
|
+
* `lyra-include-error` to build your own error UI, and author meaningful
|
|
43
|
+
* fallback content inside `<lyra-include>` for when the fetch never
|
|
44
|
+
* succeeds; that fallback (and any previously successful include) is left
|
|
45
|
+
* untouched on failure. No `aria-live` region wraps the slot either: the
|
|
46
|
+
* fragment can contain its own landmarks and nested content, and forcing the
|
|
47
|
+
* whole host into a live region would re-announce all of it on every load.
|
|
48
|
+
*
|
|
49
|
+
* No implicit ARIA role and no computed accessible name are applied around
|
|
50
|
+
* the transcluded content — the fragment's own semantics (headings,
|
|
51
|
+
* landmarks, its own `role`/`aria-*` attributes) surface directly and
|
|
52
|
+
* unmodified, exactly as they would in a native include. `aria-busy="true"`
|
|
53
|
+
* is set on the host while a fetch is in flight and removed once it settles,
|
|
54
|
+
* whether it succeeds or fails.
|
|
55
|
+
*
|
|
56
|
+
* @customElement lyra-include
|
|
57
|
+
* @slot - Fallback content shown until (or unless) a fetch succeeds; overwritten with the sanitized fragment once one does.
|
|
58
|
+
* @event lyra-load - The fetched fragment was sanitized and written into the light DOM.
|
|
59
|
+
* @event lyra-include-error - Fetching or sanitizing the fragment failed; see `LyraIncludeErrorReason` for `detail.reason`.
|
|
60
|
+
* @csspart base - The non-layout (`display: contents`) wrapper around the default slot.
|
|
61
|
+
*/
|
|
62
|
+
export class LyraInclude extends LyraElement {
|
|
63
|
+
constructor() {
|
|
64
|
+
super(...arguments);
|
|
65
|
+
/**
|
|
66
|
+
* URL of the HTML fragment to fetch, validated through the shared
|
|
67
|
+
* `safeFetchUrl()` allowlist (`http:`, `https:`, `blob:`, `data:`).
|
|
68
|
+
* An empty/falsy value is a no-op: no fetch, no events, existing content
|
|
69
|
+
* untouched.
|
|
70
|
+
*/
|
|
71
|
+
this.src = '';
|
|
72
|
+
/**
|
|
73
|
+
* Forwarded to `fetch(url, { mode })`. Deliberately defaults to
|
|
74
|
+
* `'same-origin'` rather than the `'cors'` default documented by the
|
|
75
|
+
* Web Awesome/Shoelace components this element otherwise mirrors — a
|
|
76
|
+
* consumer opts in to cross-origin fetching explicitly. An invalid/typo'd
|
|
77
|
+
* attribute value is defensively normalized back to `'same-origin'`
|
|
78
|
+
* rather than letting `fetch()` throw synchronously for an invalid
|
|
79
|
+
* `RequestMode`.
|
|
80
|
+
*/
|
|
81
|
+
this.mode = 'same-origin';
|
|
82
|
+
this.generation = 0;
|
|
83
|
+
}
|
|
84
|
+
static { this.styles = [LyraElement.styles, styles]; }
|
|
85
|
+
updated(changed) {
|
|
86
|
+
if (changed.has('src') || changed.has('mode')) {
|
|
87
|
+
this.scheduleAfterUpdate(() => { void this.load(); });
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
async load() {
|
|
91
|
+
const generation = ++this.generation;
|
|
92
|
+
const signal = this.beginAbortableLoad();
|
|
93
|
+
// Unconditionally clear first: a superseded generation's in-flight fetch
|
|
94
|
+
// may still be settling (as an aborted/rejected promise) after this new
|
|
95
|
+
// generation starts, and none of its own early-return paths below touch
|
|
96
|
+
// aria-busy, so a stale "true" from that generation must not survive
|
|
97
|
+
// into this one. Re-set to 'true' just below if this generation actually
|
|
98
|
+
// reaches the fetch.
|
|
99
|
+
this.removeAttribute('aria-busy');
|
|
100
|
+
if (!this.src)
|
|
101
|
+
return; // idle no-op: no fetch, no events, content untouched
|
|
102
|
+
const url = safeFetchUrl(this.src);
|
|
103
|
+
if (!url) {
|
|
104
|
+
this.emit('lyra-include-error', { status: 0, reason: 'blocked-url' });
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
this.setAttribute('aria-busy', 'true');
|
|
108
|
+
const mode = VALID_MODES.has(this.mode) ? this.mode : 'same-origin';
|
|
109
|
+
try {
|
|
110
|
+
const response = await fetch(url, signal ? { mode, signal } : { mode });
|
|
111
|
+
if (!response.ok) {
|
|
112
|
+
if (generation === this.generation)
|
|
113
|
+
this.fail(response.status, 'http');
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
const sanitizer = await loadHtmlSanitizer();
|
|
117
|
+
if (!sanitizer) {
|
|
118
|
+
if (generation === this.generation)
|
|
119
|
+
this.fail(0, 'missing-sanitizer');
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
const markup = sanitizer.sanitize(await readResponseText(response));
|
|
123
|
+
if (generation !== this.generation || !this.isConnected)
|
|
124
|
+
return; // superseded/detached — silent
|
|
125
|
+
this.innerHTML = markup;
|
|
126
|
+
this.removeAttribute('aria-busy');
|
|
127
|
+
this.emit('lyra-load', { src: this.src });
|
|
128
|
+
}
|
|
129
|
+
catch (error) {
|
|
130
|
+
if (isAbortError(error) || !this.isConnected || generation !== this.generation)
|
|
131
|
+
return; // silent
|
|
132
|
+
this.fail(0, isResourceLimitError(error) ? 'resource-too-large' : 'network', error);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
fail(status, reason, error) {
|
|
136
|
+
this.removeAttribute('aria-busy');
|
|
137
|
+
this.emit('lyra-include-error', { status, reason, error });
|
|
138
|
+
}
|
|
139
|
+
render() {
|
|
140
|
+
return html `<span part="base"><slot></slot></span>`;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
__decorate([
|
|
144
|
+
property({ reflect: true })
|
|
145
|
+
], LyraInclude.prototype, "src", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
property({ reflect: true })
|
|
148
|
+
], LyraInclude.prototype, "mode", void 0);
|
|
149
|
+
//# sourceMappingURL=include.class.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"include.class.js","sourceRoot":"","sources":["../../../src/components/include/include.class.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAA4C,MAAM,KAAK,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,YAAY,EAA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,CAAC,SAAS,GAAG,MAAM,CAAC;YACxB,IAAI,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC;YAClC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;QAC5C,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,IAAI,UAAU,KAAK,IAAI,CAAC,UAAU;gBAAE,OAAO,CAAC,SAAS;YACjG,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,oBAAoB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QACtF,CAAC;IACH,CAAC;IAEO,IAAI,CAAC,MAAc,EAAE,MAA8B,EAAE,KAAe;QAC1E,IAAI,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC;QAClC,IAAI,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAA,wCAAwC,CAAC;IACtD,CAAC;CACF;AAvE8B;IAA5B,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wCAAU;AAWT;IAA5B,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;yCAAuC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"include.d.ts","sourceRoot":"","sources":["../../../src/components/include/include.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"include.js","sourceRoot":"","sources":["../../../src/components/include/include.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,aAAa,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"include.styles.d.ts","sourceRoot":"","sources":["../../../src/components/include/include.styles.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM,yBAQlB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
// No visual chrome of its own: the fetched fragment supplies whatever layout
|
|
3
|
+
// or design-token usage it needs once transcluded into the light DOM, so
|
|
4
|
+
// there is nothing here to express through --lyra-* custom properties.
|
|
5
|
+
export const styles = css `
|
|
6
|
+
:host {
|
|
7
|
+
display: contents;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
[part='base'] {
|
|
11
|
+
display: contents;
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
14
|
+
//# sourceMappingURL=include.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"include.styles.js","sourceRoot":"","sources":["../../../src/components/include/include.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,6EAA6E;AAC7E,yEAAyE;AACzE,uEAAuE;AACvE,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;CAQxB,CAAC"}
|
|
@@ -22,7 +22,6 @@ export declare class LyraIntersectionObserver extends LyraElement<LyraIntersecti
|
|
|
22
22
|
threshold: number | number[];
|
|
23
23
|
root: Element | null;
|
|
24
24
|
private observer?;
|
|
25
|
-
connectedCallback(): void;
|
|
26
25
|
disconnectedCallback(): void;
|
|
27
26
|
protected updated(changed: PropertyValues): void;
|
|
28
27
|
private onSlotChange;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intersection-observer.class.d.ts","sourceRoot":"","sources":["../../../src/components/intersection-observer/intersection-observer.class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAErE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAG7D,MAAM,WAAW,gCAAgC;IAC/C,mBAAmB,EAAE,WAAW,CAAC;QAAE,OAAO,EAAE,yBAAyB,EAAE,CAAA;KAAE,CAAC,CAAC;CAC5E;AAED;;;;;;;;;GASG;AACH,qBAAa,wBAAyB,SAAQ,WAAW,CAAC,gCAAgC,CAAC;IACzF,MAAM,CAAC,MAAM,iCAAgC;IAED,QAAQ,UAAS;IACrB,UAAU,SAAS;IAC3B,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,CAAK;IACjC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAQ;IAE5D,OAAO,CAAC,QAAQ,CAAC,CAAuB;IAExC,
|
|
1
|
+
{"version":3,"file":"intersection-observer.class.d.ts","sourceRoot":"","sources":["../../../src/components/intersection-observer/intersection-observer.class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAErE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAG7D,MAAM,WAAW,gCAAgC;IAC/C,mBAAmB,EAAE,WAAW,CAAC;QAAE,OAAO,EAAE,yBAAyB,EAAE,CAAA;KAAE,CAAC,CAAC;CAC5E;AAED;;;;;;;;;GASG;AACH,qBAAa,wBAAyB,SAAQ,WAAW,CAAC,gCAAgC,CAAC;IACzF,MAAM,CAAC,MAAM,iCAAgC;IAED,QAAQ,UAAS;IACrB,UAAU,SAAS;IAC3B,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,CAAK;IACjC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAQ;IAE5D,OAAO,CAAC,QAAQ,CAAC,CAAuB;IAExC,oBAAoB,IAAI,IAAI,CAI3B;IAED,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,CAQ/C;IAED,OAAO,CAAC,YAAY,CAAqC;IAEzD,OAAO,CAAC,cAAc,CAapB;IAEF,MAAM,IAAI,cAAc,CAEvB;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,4BAA4B,EAAE,wBAAwB,CAAC;KACxD;CACF"}
|
|
@@ -44,19 +44,20 @@ export class LyraIntersectionObserver extends LyraElement {
|
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
static { this.styles = [LyraElement.styles, styles]; }
|
|
47
|
-
connectedCallback() {
|
|
48
|
-
super.connectedCallback();
|
|
49
|
-
this.addEventListener('slotchange', this.onSlotChange);
|
|
50
|
-
}
|
|
51
47
|
disconnectedCallback() {
|
|
52
|
-
this.removeEventListener('slotchange', this.onSlotChange);
|
|
53
48
|
this.observer?.disconnect();
|
|
54
49
|
this.observer = undefined;
|
|
55
50
|
super.disconnectedCallback();
|
|
56
51
|
}
|
|
57
52
|
updated(changed) {
|
|
53
|
+
// Routed through the base class's connection-aware scheduler rather than
|
|
54
|
+
// a bare queueMicrotask: Lit still runs a scheduled update (and this
|
|
55
|
+
// method) even for an element that disconnects before that update's own
|
|
56
|
+
// microtask fires, and a plain queueMicrotask has no way to notice that
|
|
57
|
+
// and would still spin up a new, now-unreachable IntersectionObserver that
|
|
58
|
+
// disconnectedCallback has already run and won't run again to clean up.
|
|
58
59
|
if (changed.has('disabled') || changed.has('rootMargin') || changed.has('threshold') || changed.has('root'))
|
|
59
|
-
|
|
60
|
+
this.scheduleAfterUpdate(this.observeTargets);
|
|
60
61
|
}
|
|
61
62
|
render() {
|
|
62
63
|
return html `<span part="base"><slot @slotchange=${this.onSlotChange}></slot></span>`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intersection-observer.class.js","sourceRoot":"","sources":["../../../src/components/intersection-observer/intersection-observer.class.ts"],"names":[],"mappings":";;;;;;A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C,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI;gBACrD,UAAU,EAAE,IAAI,CAAC,UAAU;gBAC3B,SAAS,EAAE,IAAI,CAAC,SAAS;aAC1B,CAAC,CAAC;YACH,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,QAAS,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;QAC9D,CAAC,CAAC;IAKJ,CAAC;aA7CQ,WAAM,GAAG,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,AAA/B,CAAgC;IAS7C,
|
|
1
|
+
{"version":3,"file":"intersection-observer.class.js","sourceRoot":"","sources":["../../../src/components/intersection-observer/intersection-observer.class.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAA4C,MAAM,KAAK,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAM3D;;;;;;;;;GASG;AACH,MAAM,OAAO,wBAAyB,SAAQ,WAA6C;IAA3F;;QAG8C,aAAQ,GAAG,KAAK,CAAC;QACrB,eAAU,GAAG,KAAK,CAAC;QAC3B,cAAS,GAAsB,CAAC,CAAC;QACjC,SAAI,GAAmB,IAAI,CAAC;QAoBpD,iBAAY,GAAG,GAAS,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC;QAEjD,mBAAc,GAAG,GAAS,EAAE;YAClC,IAAI,CAAC,QAAQ,EAAE,UAAU,EAAE,CAAC;YAC5B,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;YAC1B,IAAI,IAAI,CAAC,QAAQ,IAAI,OAAO,oBAAoB,KAAK,WAAW;gBAAE,OAAO;YACzE,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,MAAM,CAAC,CAA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,GAAG,CAAC,WAAW,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC;YAAE,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC7J,CAAC;IAmBD,MAAM;QACJ,OAAO,IAAI,CAAA,uCAAuC,IAAI,CAAC,YAAY,iBAAiB,CAAC;IACvF,CAAC;CACF;AA3C6C;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;0DAAkB;AACrB;IAAvC,QAAQ,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;4DAAoB;AAC3B;IAA/B,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;2DAAkC;AACjC;IAA/B,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;sDAA6B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kbd.class.d.ts","sourceRoot":"","sources":["../../../src/components/kbd/kbd.class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"kbd.class.d.ts","sourceRoot":"","sources":["../../../src/components/kbd/kbd.class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAI7D;;;2EAG2E;AAC3E,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;gBAIgB;AAChB,MAAM,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;AA+CpE;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,WAAW,GAAG,WAAW,CAyCxG;AAED;wEACwE;AACxE,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,WAAW,GAAG,WAAW,EAAE,CAMjG;AA2BD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC,MAAM,CAAC,MAAM,iCAAgC;IAE7C;8BAC0B;IACd,IAAI,SAAM;IAOb,OAAO,CAAC,gBAAgB,CAAS;IAE1C,SAAS,CAAC,UAAU,IAAI,IAAI,CAI3B;IAED,OAAO,CAAC,YAAY,CAElB;IAEF,MAAM,IAAI,cAAc,CAkDvB;CACF;AAGD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,OAAO,CAAC;KACrB;CACF"}
|
|
@@ -7,6 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { html, nothing } from 'lit';
|
|
8
8
|
import { property, state } from 'lit/decorators.js';
|
|
9
9
|
import { LyraElement } from '../../internal/lyra-element.js';
|
|
10
|
+
import { hasRealContent } from '../../internal/a11y.js';
|
|
10
11
|
import { styles } from './kbd.styles.js';
|
|
11
12
|
// A deliberately small map — just the modifier-adjacent/navigation keys
|
|
12
13
|
// common enough in real shortcuts to be worth a friendly glyph. Anything not
|
|
@@ -121,17 +122,6 @@ function detectIsMac() {
|
|
|
121
122
|
// little cost, however small) from re-detecting it on every <lyra-kbd>
|
|
122
123
|
// instance or every re-render.
|
|
123
124
|
const IS_MAC = detectIsMac();
|
|
124
|
-
// The one "is there real content" predicate shared by both the initial
|
|
125
|
-
// synchronous seed (willUpdate, reading light-DOM childNodes) and the
|
|
126
|
-
// runtime slotchange handler (reading assignedNodes) — using two different
|
|
127
|
-
// predicates for the same question let them disagree: a text-only check
|
|
128
|
-
// would seed correctly for whitespace-only text but (wrongly) treat a
|
|
129
|
-
// content-less icon element as empty, and a node-count-only check would
|
|
130
|
-
// treat *any* assigned node — including a whitespace-only text node — as
|
|
131
|
-
// real content. Counting every element node as real content (regardless of
|
|
132
|
-
// its own text) while requiring non-whitespace text from text nodes gets
|
|
133
|
-
// both cases right in one place.
|
|
134
|
-
const hasRealContent = (nodes) => Array.from(nodes).some((n) => n.nodeType === Node.ELEMENT_NODE || (n.textContent ?? '').trim().length > 0);
|
|
135
125
|
/**
|
|
136
126
|
* `<lyra-kbd>` — a small chip representing a keyboard shortcut, rendering
|
|
137
127
|
* the platform-appropriate glyph for cross-platform modifier keys (⌘ on
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kbd.class.js","sourceRoot":"","sources":["../../../src/components/kbd/kbd.class.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAuB,MAAM,KAAK,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AA+BzC,wEAAwE;AACxE,6EAA6E;AAC7E,uEAAuE;AACvE,+DAA+D;AAC/D,yDAAyD;AACzD,EAAE;AACF,0EAA0E;AAC1E,0EAA0E;AAC1E,0EAA0E;AAC1E,2EAA2E;AAC3E,4EAA4E;AAC5E,0DAA0D;AAC1D,MAAM,gBAAgB,GAAkC;IACtD,KAAK,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE;IAC9D,GAAG,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,eAAe,E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