@limetech/lime-elements 40.9.0 → 40.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-3d-hover-effect-glow.cjs.entry.js +1 -1
- package/dist/cjs/limel-action-bar_3.cjs.entry.js +3 -3
- package/dist/cjs/limel-ai-avatar.cjs.entry.js +1 -1
- package/dist/cjs/limel-badge.cjs.entry.js +2 -2
- package/dist/cjs/limel-banner.cjs.entry.js +1 -1
- package/dist/cjs/limel-breadcrumbs_6.cjs.entry.js +6 -6
- package/dist/cjs/limel-button-group.cjs.entry.js +1 -1
- package/dist/cjs/limel-button.cjs.entry.js +2 -2
- package/dist/cjs/limel-callout.cjs.entry.js +1 -1
- package/dist/cjs/limel-card.cjs.entry.js +1 -1
- package/dist/cjs/limel-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/limel-chip-set.cjs.entry.js +1 -1
- package/dist/cjs/limel-chip_2.cjs.entry.js +1 -1
- package/dist/cjs/limel-circular-progress.cjs.entry.js +1 -1
- package/dist/cjs/limel-code-diff.cjs.entry.js +1 -1
- package/dist/cjs/limel-code-editor.cjs.entry.js +1 -1
- package/dist/cjs/limel-collapsible-section.cjs.entry.js +1 -1
- package/dist/cjs/limel-color-picker-palette.cjs.entry.js +2 -2
- package/dist/cjs/limel-color-picker.cjs.entry.js +1 -1
- package/dist/cjs/limel-dialog.cjs.entry.js +2 -2
- package/dist/cjs/limel-dock.cjs.entry.js +2 -2
- package/dist/cjs/limel-drag-handle.cjs.entry.js +1 -1
- package/dist/cjs/limel-email-viewer.cjs.entry.js +1 -1
- package/dist/cjs/limel-file-dropzone_2.cjs.entry.js +2 -2
- package/dist/cjs/limel-file.cjs.entry.js +1 -1
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +1 -1
- package/dist/cjs/limel-flex-container.cjs.entry.js +1 -1
- package/dist/cjs/limel-form.cjs.entry.js +1 -1
- package/dist/cjs/limel-grid.cjs.entry.js +1 -1
- package/dist/cjs/limel-header.cjs.entry.js +1 -1
- package/dist/cjs/limel-help-content.cjs.entry.js +1 -1
- package/dist/cjs/limel-help.cjs.entry.js +2 -2
- package/dist/cjs/limel-helper-line_3.cjs.entry.js +4 -4
- package/dist/cjs/limel-hotkey_4.cjs.entry.js +5 -5
- package/dist/cjs/limel-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-icon.cjs.entry.js +1 -1
- package/dist/cjs/limel-info-tile.cjs.entry.js +2 -2
- package/dist/cjs/limel-list-item.cjs.entry.js +2 -2
- package/dist/cjs/limel-markdown.cjs.entry.js +1 -1
- package/dist/cjs/limel-masonry-layout.cjs.entry.js +1 -1
- package/dist/cjs/limel-menu-item-meta.cjs.entry.js +1 -1
- package/dist/cjs/limel-pagination.cjs.entry.js +1 -1
- package/dist/cjs/limel-picker.cjs.entry.js +1 -1
- package/dist/cjs/limel-popover_2.cjs.entry.js +2 -2
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +1 -1
- package/dist/cjs/limel-radio-button-group.cjs.entry.js +1 -1
- package/dist/cjs/limel-radio-button.cjs.entry.js +2 -2
- package/dist/cjs/limel-resize-handle.cjs.entry.js +240 -0
- package/dist/cjs/limel-scroller.cjs.entry.js +2 -2
- package/dist/cjs/limel-select.cjs.entry.js +1 -1
- package/dist/cjs/limel-shortcut.cjs.entry.js +1 -1
- package/dist/cjs/limel-side-panel.cjs.entry.js +283 -0
- package/dist/cjs/limel-slider.cjs.entry.js +3 -3
- package/dist/cjs/limel-snackbar.cjs.entry.js +2 -2
- package/dist/cjs/limel-split-button.cjs.entry.js +2 -2
- package/dist/cjs/limel-switch.cjs.entry.js +1 -1
- package/dist/cjs/limel-tab-bar.cjs.entry.js +1 -1
- package/dist/cjs/limel-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/limel-table.cjs.entry.js +2 -2
- package/dist/cjs/limel-text-editor-link-menu.cjs.entry.js +3 -3
- package/dist/cjs/limel-text-editor.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/3d-hover-effect-glow/3d-hover-effect-glow.js +1 -1
- package/dist/collection/components/action-bar/action-bar-item/action-bar-overflow-menu.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +2 -2
- package/dist/collection/components/ai-avatar/ai-avatar.js +1 -1
- package/dist/collection/components/badge/badge.js +2 -2
- package/dist/collection/components/banner/banner.js +1 -1
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +1 -1
- package/dist/collection/components/button/button.js +2 -2
- package/dist/collection/components/button-group/button-group.js +1 -1
- package/dist/collection/components/callout/callout.js +1 -1
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/chip-set/chip-set.js +1 -1
- package/dist/collection/components/circular-progress/circular-progress.js +1 -1
- package/dist/collection/components/code-diff/code-diff.js +1 -1
- package/dist/collection/components/code-editor/code-editor.js +1 -1
- package/dist/collection/components/collapsible-section/collapsible-section.js +1 -1
- package/dist/collection/components/color-picker/color-picker-palette.js +2 -2
- package/dist/collection/components/color-picker/color-picker.js +1 -1
- package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.js +1 -1
- package/dist/collection/components/dialog/dialog.js +2 -2
- package/dist/collection/components/dock/dock.js +2 -2
- package/dist/collection/components/drag-handle/drag-handle.js +1 -1
- package/dist/collection/components/email-viewer/email-viewer.js +1 -1
- package/dist/collection/components/file/file.js +1 -1
- package/dist/collection/components/file-dropzone/file-dropzone.js +1 -1
- package/dist/collection/components/file-input/file-input.js +1 -1
- package/dist/collection/components/flex-container/flex-container.js +1 -1
- package/dist/collection/components/form/form.js +1 -1
- package/dist/collection/components/grid/grid.js +1 -1
- package/dist/collection/components/header/header.js +1 -1
- package/dist/collection/components/help/help-content.js +1 -1
- package/dist/collection/components/help/help.js +2 -2
- package/dist/collection/components/helper-line/helper-line.js +2 -2
- package/dist/collection/components/hotkey/hotkey.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon-button/icon-button.js +1 -1
- package/dist/collection/components/info-tile/info-tile.js +2 -2
- package/dist/collection/components/input-field/input-field.js +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list-item/list-item.js +2 -2
- package/dist/collection/components/list-item/menu-item-meta/menu-item-meta.js +1 -1
- package/dist/collection/components/markdown/markdown.js +1 -1
- package/dist/collection/components/masonry-layout/masonry-layout.js +1 -1
- package/dist/collection/components/menu/menu.js +1 -1
- package/dist/collection/components/menu-list/menu-list.js +1 -1
- package/dist/collection/components/menu-surface/menu-surface.js +1 -1
- package/dist/collection/components/notched-outline/notched-outline.js +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/picker/picker.js +1 -1
- package/dist/collection/components/popover/popover.js +1 -1
- package/dist/collection/components/popover-surface/popover-surface.js +1 -1
- package/dist/collection/components/portal/portal.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button.js +2 -2
- package/dist/collection/components/resize-handle/resize-handle.css +274 -0
- package/dist/collection/components/resize-handle/resize-handle.js +210 -0
- package/dist/collection/components/scroller/scroller.js +2 -2
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/shortcut/shortcut.js +1 -1
- package/dist/collection/components/side-panel/side-panel.css +300 -0
- package/dist/collection/components/side-panel/side-panel.js +433 -0
- package/dist/collection/components/slider/slider.js +3 -3
- package/dist/collection/components/snackbar/snackbar.js +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-button/split-button.js +2 -2
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab-bar/tab-bar.js +1 -1
- package/dist/collection/components/tab-panel/tab-panel.js +1 -1
- package/dist/collection/components/table/table.js +2 -2
- package/dist/collection/components/text-editor/link-menu/editor-link-menu.js +3 -3
- package/dist/collection/components/text-editor/prosemirror-adapter/prosemirror-adapter.js +1 -1
- package/dist/collection/components/text-editor/text-editor.js +1 -1
- package/dist/collection/components/tooltip/tooltip-content.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/collection/util/drag-to-resize.js +108 -0
- package/dist/collection/util/get-deep-active-element.js +15 -0
- package/dist/collection/util/resize-location.js +76 -0
- package/dist/esm/{keycodes-DQ5DmW_Y.js → keycodes-Bu6-QXrA.js} +1 -1
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-3d-hover-effect-glow.entry.js +1 -1
- package/dist/esm/limel-action-bar_3.entry.js +3 -3
- package/dist/esm/limel-ai-avatar.entry.js +1 -1
- package/dist/esm/limel-badge.entry.js +2 -2
- package/dist/esm/limel-banner.entry.js +1 -1
- package/dist/esm/limel-breadcrumbs_6.entry.js +7 -7
- package/dist/esm/limel-button-group.entry.js +1 -1
- package/dist/esm/limel-button.entry.js +2 -2
- package/dist/esm/limel-callout.entry.js +1 -1
- package/dist/esm/limel-card.entry.js +1 -1
- package/dist/esm/limel-checkbox.entry.js +1 -1
- package/dist/esm/limel-chip-set.entry.js +2 -2
- package/dist/esm/limel-chip_2.entry.js +2 -2
- package/dist/esm/limel-circular-progress.entry.js +1 -1
- package/dist/esm/limel-code-diff.entry.js +1 -1
- package/dist/esm/limel-code-editor.entry.js +1 -1
- package/dist/esm/limel-collapsible-section.entry.js +1 -1
- package/dist/esm/limel-color-picker-palette.entry.js +2 -2
- package/dist/esm/limel-color-picker.entry.js +1 -1
- package/dist/esm/limel-dialog.entry.js +2 -2
- package/dist/esm/limel-dock.entry.js +2 -2
- package/dist/esm/limel-drag-handle.entry.js +1 -1
- package/dist/esm/limel-email-viewer.entry.js +1 -1
- package/dist/esm/limel-file-dropzone_2.entry.js +2 -2
- package/dist/esm/limel-file.entry.js +1 -1
- package/dist/esm/limel-flatpickr-adapter.entry.js +1 -1
- package/dist/esm/limel-flex-container.entry.js +1 -1
- package/dist/esm/limel-form.entry.js +1 -1
- package/dist/esm/limel-grid.entry.js +1 -1
- package/dist/esm/limel-header.entry.js +1 -1
- package/dist/esm/limel-help-content.entry.js +1 -1
- package/dist/esm/limel-help.entry.js +2 -2
- package/dist/esm/limel-helper-line_3.entry.js +4 -4
- package/dist/esm/limel-hotkey_4.entry.js +5 -5
- package/dist/esm/limel-icon-button.entry.js +1 -1
- package/dist/esm/limel-icon.entry.js +1 -1
- package/dist/esm/limel-info-tile.entry.js +2 -2
- package/dist/esm/limel-list-item.entry.js +2 -2
- package/dist/esm/limel-markdown.entry.js +1 -1
- package/dist/esm/limel-masonry-layout.entry.js +1 -1
- package/dist/esm/limel-menu-item-meta.entry.js +1 -1
- package/dist/esm/limel-pagination-jump.entry.js +1 -1
- package/dist/esm/limel-pagination.entry.js +1 -1
- package/dist/esm/limel-picker.entry.js +2 -2
- package/dist/esm/limel-popover_2.entry.js +3 -3
- package/dist/esm/limel-prosemirror-adapter.entry.js +1 -1
- package/dist/esm/limel-radio-button-group.entry.js +1 -1
- package/dist/esm/limel-radio-button.entry.js +2 -2
- package/dist/esm/limel-resize-handle.entry.js +238 -0
- package/dist/esm/limel-scroller.entry.js +2 -2
- package/dist/esm/limel-select.entry.js +2 -2
- package/dist/esm/limel-shortcut.entry.js +1 -1
- package/dist/esm/limel-side-panel.entry.js +281 -0
- package/dist/esm/limel-slider.entry.js +3 -3
- package/dist/esm/limel-snackbar.entry.js +2 -2
- package/dist/esm/limel-split-button.entry.js +2 -2
- package/dist/esm/limel-switch.entry.js +1 -1
- package/dist/esm/limel-tab-bar.entry.js +2 -2
- package/dist/esm/limel-tab-panel.entry.js +1 -1
- package/dist/esm/limel-table.entry.js +2 -2
- package/dist/esm/limel-text-editor-link-menu.entry.js +4 -4
- package/dist/esm/limel-text-editor.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-5da47a8a.entry.js → p-065f1635.entry.js} +1 -1
- package/dist/lime-elements/{p-0e13ec91.entry.js → p-06cd9512.entry.js} +1 -1
- package/dist/lime-elements/{p-96246494.entry.js → p-07916acc.entry.js} +1 -1
- package/dist/lime-elements/{p-fdec09e9.entry.js → p-0c2ce99b.entry.js} +1 -1
- package/dist/lime-elements/{p-00c36c9e.entry.js → p-1020ca20.entry.js} +1 -1
- package/dist/lime-elements/{p-288ef79a.entry.js → p-14aff731.entry.js} +1 -1
- package/dist/lime-elements/{p-2b033dfa.entry.js → p-24e5d420.entry.js} +1 -1
- package/dist/lime-elements/{p-9afa4721.entry.js → p-262a3d66.entry.js} +1 -1
- package/dist/lime-elements/{p-45461ec5.entry.js → p-29b2a176.entry.js} +1 -1
- package/dist/lime-elements/{p-e752dc7f.entry.js → p-2ba9d62f.entry.js} +1 -1
- package/dist/lime-elements/{p-a1c69e0c.entry.js → p-33ed0c68.entry.js} +1 -1
- package/dist/lime-elements/{p-efaf2616.entry.js → p-35bc5ed2.entry.js} +1 -1
- package/dist/lime-elements/{p-d37fbbd2.entry.js → p-3ee121fa.entry.js} +1 -1
- package/dist/lime-elements/{p-d1b7cc55.entry.js → p-458c131f.entry.js} +3 -3
- package/dist/lime-elements/{p-c439b68b.entry.js → p-46bf8b22.entry.js} +1 -1
- package/dist/lime-elements/{p-303edb1a.entry.js → p-4882acaa.entry.js} +1 -1
- package/dist/lime-elements/{p-7b4351f6.entry.js → p-4a7df81a.entry.js} +1 -1
- package/dist/lime-elements/{p-982a0f10.entry.js → p-527e9c95.entry.js} +1 -1
- package/dist/lime-elements/{p-5f5c6e7d.entry.js → p-54631dbf.entry.js} +1 -1
- package/dist/lime-elements/{p-d5800180.entry.js → p-5473eb74.entry.js} +1 -1
- package/dist/lime-elements/p-566750e5.entry.js +1 -0
- package/dist/lime-elements/{p-f4a0b1bc.entry.js → p-622660dd.entry.js} +1 -1
- package/dist/lime-elements/{p-d19c7a3a.entry.js → p-646731b6.entry.js} +1 -1
- package/dist/lime-elements/{p-7eab1341.entry.js → p-68542e00.entry.js} +1 -1
- package/dist/lime-elements/p-780dae0b.entry.js +1 -0
- package/dist/lime-elements/{p-8ac79ef5.entry.js → p-7a290372.entry.js} +1 -1
- package/dist/lime-elements/{p-ff1a8b2e.entry.js → p-7a2e0e18.entry.js} +1 -1
- package/dist/lime-elements/{p-7fa85785.entry.js → p-7cdbbffe.entry.js} +2 -2
- package/dist/lime-elements/{p-b6d39581.entry.js → p-887eea11.entry.js} +1 -1
- package/dist/lime-elements/{p-9c8c2fb7.entry.js → p-8a59698f.entry.js} +1 -1
- package/dist/lime-elements/p-8d567e42.entry.js +1 -0
- package/dist/lime-elements/{p-b22b52a1.entry.js → p-910807cb.entry.js} +1 -1
- package/dist/lime-elements/p-9168793f.entry.js +1 -0
- package/dist/lime-elements/{p-58b7c634.entry.js → p-9461c6bb.entry.js} +1 -1
- package/dist/lime-elements/{p-a98cbd1f.entry.js → p-9b1934fb.entry.js} +1 -1
- package/dist/lime-elements/p-9b384d62.entry.js +1 -0
- package/dist/lime-elements/{p-ee719744.entry.js → p-9ca18ba5.entry.js} +1 -1
- package/dist/lime-elements/{p-DQ5DmW_Y.js → p-Bu6-QXrA.js} +1 -1
- package/dist/lime-elements/{p-ab91cfff.entry.js → p-a317f2fa.entry.js} +1 -1
- package/dist/lime-elements/{p-a1d1470c.entry.js → p-a373013f.entry.js} +1 -1
- package/dist/lime-elements/{p-32a050a3.entry.js → p-a449ca04.entry.js} +1 -1
- package/dist/lime-elements/p-a5246373.entry.js +1 -0
- package/dist/lime-elements/{p-9992b5f9.entry.js → p-a78aaf37.entry.js} +1 -1
- package/dist/lime-elements/p-abcc451a.entry.js +1 -0
- package/dist/lime-elements/{p-9e016212.entry.js → p-abed5afd.entry.js} +1 -1
- package/dist/lime-elements/{p-107654bb.entry.js → p-ae2e5e87.entry.js} +1 -1
- package/dist/lime-elements/{p-fdd674fc.entry.js → p-b69af611.entry.js} +1 -1
- package/dist/lime-elements/{p-74060535.entry.js → p-b9da0108.entry.js} +2 -2
- package/dist/lime-elements/{p-4cbcafae.entry.js → p-bf849dc9.entry.js} +1 -1
- package/dist/lime-elements/{p-0d6925f4.entry.js → p-c12fbc91.entry.js} +1 -1
- package/dist/lime-elements/{p-03cb609e.entry.js → p-cf6fab84.entry.js} +1 -1
- package/dist/lime-elements/{p-29c73bdf.entry.js → p-d3475514.entry.js} +1 -1
- package/dist/lime-elements/{p-006cfb3d.entry.js → p-d5144955.entry.js} +1 -1
- package/dist/lime-elements/{p-91a572c8.entry.js → p-d79d777e.entry.js} +1 -1
- package/dist/lime-elements/p-d7e5a4a7.entry.js +1 -0
- package/dist/lime-elements/{p-9415411e.entry.js → p-db1f9eba.entry.js} +1 -1
- package/dist/lime-elements/{p-a736ea08.entry.js → p-dd075353.entry.js} +1 -1
- package/dist/lime-elements/{p-526ede01.entry.js → p-de4d261a.entry.js} +1 -1
- package/dist/lime-elements/{p-e6a34047.entry.js → p-def7b38f.entry.js} +1 -1
- package/dist/lime-elements/{p-bc70090d.entry.js → p-e247e9fe.entry.js} +1 -1
- package/dist/lime-elements/{p-e2b074aa.entry.js → p-e25bfb2c.entry.js} +1 -1
- package/dist/lime-elements/{p-727b6c11.entry.js → p-ec74a07a.entry.js} +1 -1
- package/dist/lime-elements/{p-d1e5dd12.entry.js → p-ecded772.entry.js} +1 -1
- package/dist/types/components/resize-handle/resize-handle.d.ts +64 -0
- package/dist/types/components/side-panel/side-panel.d.ts +134 -0
- package/dist/types/components.d.ts +319 -0
- package/dist/types/util/drag-to-resize.d.ts +33 -0
- package/dist/types/util/get-deep-active-element.d.ts +9 -0
- package/dist/types/util/resize-location.d.ts +59 -0
- package/package.json +2 -2
- package/dist/lime-elements/p-14a28a08.entry.js +0 -1
- package/dist/lime-elements/p-3d05e21f.entry.js +0 -1
- package/dist/lime-elements/p-681cb6de.entry.js +0 -1
- package/dist/lime-elements/p-a2e6f16e.entry.js +0 -1
- package/dist/lime-elements/p-aa897903.entry.js +0 -1
- package/dist/lime-elements/p-de4719a6.entry.js +0 -1
|
@@ -48460,7 +48460,7 @@ const Form = class {
|
|
|
48460
48460
|
this.initialized = false;
|
|
48461
48461
|
}
|
|
48462
48462
|
render() {
|
|
48463
|
-
return index$1.h("div", { key: '
|
|
48463
|
+
return index$1.h("div", { key: '9c5db05ffcc594473a3ca7b2e3962f1659d3601d', class: "root" });
|
|
48464
48464
|
}
|
|
48465
48465
|
reactRender() {
|
|
48466
48466
|
if (!this.root) {
|
|
@@ -12,7 +12,7 @@ const Grid = class {
|
|
|
12
12
|
console.warn('limel-grid is deprecated, please use CSS instead: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout');
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return index.h("slot", { key: '
|
|
15
|
+
return index.h("slot", { key: 'fcc80e1ddf56068650e342120441027bce5263b5' });
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
Grid.style = gridCss();
|
|
@@ -15,7 +15,7 @@ const Header = class {
|
|
|
15
15
|
this.subheadingDivider = '·';
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (index.h(index.Host, { key: '
|
|
18
|
+
return (index.h(index.Host, { key: 'e90e33e08296a0215db2467226e09da918df2e89' }, index.h("div", { key: '82c18d96c84e78109a38add09df18b0b8b6dd0e3', class: "information" }, this.renderIcon(), index.h("div", { key: '16e17dfe84b683aece74dafd2ab6a9c433014959', class: "headings" }, index.h("h1", { key: '1dc86af4d544af7d610442f05fb88c24cc3bb969', class: "heading", title: this.heading }, this.heading), index.h("h2", { key: '8dcec7cba249b55b543025e7484e3b5cf6b2a6d8', class: "subheading", title: this.subheading }, this.subheading, this.renderSupportingText()))), index.h("slot", { key: '589ab97c6f9574b84e785ff79c57ecccd51a633d', name: "actions" }, index.h("slot", { key: '5c1b4d222d5200690917c7a25ef7bb7565d07ef5' }))));
|
|
19
19
|
}
|
|
20
20
|
renderIcon() {
|
|
21
21
|
var _a, _b, _c, _d, _e;
|
|
@@ -16,7 +16,7 @@ const HelpContent = class {
|
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (index.h(index.Host, { key: '
|
|
19
|
+
return (index.h(index.Host, { key: 'dd9facb6511b80349bc2da0b226bb660b6d90027' }, index.h("limel-markdown", { key: 'e74f0a9a0321bfb0fb16544c39b0c05c736e0d8b', value: this.value }), this.renderReadMoreLink()));
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
HelpContent.style = limelHelpContentCss();
|
|
@@ -26,9 +26,9 @@ const HelpComponent = class {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (index.h(index.Host, { key: '
|
|
29
|
+
return (index.h(index.Host, { key: '0a59bc47d2f8281466fb478804656d4d69707293' }, index.h("limel-popover", { key: '4fbb9cc254d7d8428dac179dfecdec15589646cb', open: this.isOpen, onClose: this.onPopoverClose, openDirection: this.openDirection }, index.h("button", { key: 'b15e2219cb9850fc571d6b2441e2efa999ae3c2d', slot: "trigger", type: "button", onClick: this.openPopover, class: {
|
|
30
30
|
'is-open': this.isOpen,
|
|
31
|
-
} }, this.trigger), index.h("limel-help-content", { key: '
|
|
31
|
+
} }, this.trigger), index.h("limel-help-content", { key: '38e1a3222de220e2da82cf0cfc6e7885d7af0c6d', value: this.value, readMoreLink: this.readMoreLink }))));
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
HelpComponent.style = helpCss();
|
|
@@ -34,9 +34,9 @@ const HelperLine = class {
|
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (index.h(index.Host, { key: '
|
|
37
|
+
return (index.h(index.Host, { key: '69872d6dcdbecf1d703a9fb441f118f9389596bc', tabIndex: -1, class: {
|
|
38
38
|
invalid: this.invalid,
|
|
39
|
-
}, style: this.hasContent() ? {} : { display: 'none' }, "aria-hidden": !this.hasContent() }, index.h("div", { key: '
|
|
39
|
+
}, style: this.hasContent() ? {} : { display: 'none' }, "aria-hidden": !this.hasContent() }, index.h("div", { key: 'bf63441b2481b1d91fae50d7f85630e361fb2089' }, this.renderHelperText(), this.renderCharacterCounter())));
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
HelperLine.style = helperLineCss();
|
|
@@ -334,7 +334,7 @@ const List = class {
|
|
|
334
334
|
maxLinesSecondaryText = 1;
|
|
335
335
|
}
|
|
336
336
|
const html = this.listRenderer.render(this.items, this.config);
|
|
337
|
-
return (index.h(index.Host, { key: '
|
|
337
|
+
return (index.h(index.Host, { key: '5a259a6d125ba3cc5ee04a68dd3ab761bceb2cfb', style: {
|
|
338
338
|
'--maxLinesSecondaryText': `${maxLinesSecondaryText}`,
|
|
339
339
|
} }, html));
|
|
340
340
|
}
|
|
@@ -430,7 +430,7 @@ const NotchedOutline = class {
|
|
|
430
430
|
this.hasFloatingLabel = false;
|
|
431
431
|
}
|
|
432
432
|
render() {
|
|
433
|
-
return (index.h("div", { key: '
|
|
433
|
+
return (index.h("div", { key: 'a7d059bafca0519edd93c90daad620131d3fbdd0', class: "limel-notched-outline" }, index.h("slot", { key: '2498cc520769655fe0445ff58bd782e5ccfb857f', name: "content" }), index.h("span", { key: '8946f7b280ee76331b6ac66e4b212ea8a3aa567c', class: "limel-notched-outline--outlines", "aria-hidden": "true" }, index.h("span", { key: '096357fb61dddafd811669d36d910dfd753fcc1e', class: "limel-notched-outline--leading-outline" }), this.renderLabel(), index.h("span", { key: '37460f34ac2cd82360a0a3bd6cba015133d64516', class: "limel-notched-outline--trailing-outline" }), this.renderEmptyReadonlyValue())));
|
|
434
434
|
}
|
|
435
435
|
renderLabel() {
|
|
436
436
|
if (!this.label) {
|
|
@@ -121,7 +121,7 @@ const Hotkey = class {
|
|
|
121
121
|
.map((p) => p.ariaName)
|
|
122
122
|
.filter(Boolean)
|
|
123
123
|
.join(' ');
|
|
124
|
-
return (index.h(index.Host, { key: '
|
|
124
|
+
return (index.h(index.Host, { key: '91e09b5c874135ac3473c995ffce864a1cf8a9d6', "aria-label": ariaLabel || undefined }, displayParts.map(({ display, isGlyph }, index$1) => (index.h("kbd", { key: `${parts[index$1]}-${index$1}`, class: isGlyph ? 'is-glyph' : undefined }, index.h("span", null, display))))));
|
|
125
125
|
}
|
|
126
126
|
};
|
|
127
127
|
Hotkey.style = hotkeyCss();
|
|
@@ -1993,7 +1993,7 @@ const Portal = class {
|
|
|
1993
1993
|
this.showContainer();
|
|
1994
1994
|
}
|
|
1995
1995
|
render() {
|
|
1996
|
-
return index.h("slot", { key: '
|
|
1996
|
+
return index.h("slot", { key: 'f4db0b146b4cd851a9837bf10dc7d331cd5a9dce' });
|
|
1997
1997
|
}
|
|
1998
1998
|
onVisible() {
|
|
1999
1999
|
if (!this.container && this.visible) {
|
|
@@ -2306,10 +2306,10 @@ const Tooltip = class {
|
|
|
2306
2306
|
}
|
|
2307
2307
|
render() {
|
|
2308
2308
|
const tooltipZIndex = getComputedStyle(this.host).getPropertyValue('--tooltip-z-index');
|
|
2309
|
-
return (index.h("div", { key: '
|
|
2309
|
+
return (index.h("div", { key: '11a9db0e1b1e615ddbdeea5eb2c5089e1f9eadeb', class: "trigger-anchor" }, index.h("limel-portal", { key: '28e7ffeb63ff24978dd2bd1ed0b0b2aa278abbde', openDirection: this.openDirection, visible: this.open, containerId: this.portalId, containerStyle: {
|
|
2310
2310
|
'z-index': tooltipZIndex,
|
|
2311
2311
|
'pointer-events': 'none',
|
|
2312
|
-
}, anchor: this.ownerElement }, index.h("limel-tooltip-content", { key: '
|
|
2312
|
+
}, anchor: this.ownerElement }, index.h("limel-tooltip-content", { key: 'abc48a7948a932c081a44fb1d617bc3b351d452c', label: this.label, helperLabel: this.helperLabel, hotkey: this.hotkey, maxlength: this.maxlength, role: "tooltip", "aria-hidden": !this.open, id: this.tooltipId }))));
|
|
2313
2313
|
}
|
|
2314
2314
|
setOwnerAriaDescribedby() {
|
|
2315
2315
|
var _a;
|
|
@@ -2348,7 +2348,7 @@ const TooltipContent = class {
|
|
|
2348
2348
|
const style = this.maxlength
|
|
2349
2349
|
? { '--tooltip-max-width-of-text': `${this.maxlength}ch` }
|
|
2350
2350
|
: undefined;
|
|
2351
|
-
return (index.h(index.Host, { key: '
|
|
2351
|
+
return (index.h(index.Host, { key: '63d36a0e0f1fb0e4eb94c5c216c80299d82f63b2', class: { 'has-column-layout': isLabelsTextLong }, style: style }, index.h("div", { key: '6d4ecf58b8854edeece92a53065816292a2a39b9', class: "label" }, this.label), this.renderHelperLabel(), this.renderHotkey()));
|
|
2352
2352
|
}
|
|
2353
2353
|
renderHelperLabel() {
|
|
2354
2354
|
if (!this.helperLabel) {
|
|
@@ -49,7 +49,7 @@ const IconButton = class {
|
|
|
49
49
|
if (this.host.hasAttribute('tabindex')) {
|
|
50
50
|
buttonAttributes.tabindex = this.host.getAttribute('tabindex');
|
|
51
51
|
}
|
|
52
|
-
return (index.h(index.Host, { key: '
|
|
52
|
+
return (index.h(index.Host, { key: '0c2536bf5d9628ed72bc55ed768c4e5eb6396b68', onClick: this.filterClickWhenDisabled }, index.h("button", Object.assign({ key: '3c18c8f45209887df5c4f76ec635839f3cc147ab', "aria-label": this.label, disabled: this.disabled, id: this.tooltipId }, buttonAttributes), this.renderIcon(), this.renderTooltip(this.tooltipId))));
|
|
53
53
|
}
|
|
54
54
|
renderIcon() {
|
|
55
55
|
var _a, _b;
|
|
@@ -161,7 +161,7 @@ const Icon = class {
|
|
|
161
161
|
this.loadIcon(this.name);
|
|
162
162
|
}
|
|
163
163
|
render() {
|
|
164
|
-
return index.h("div", { key: '
|
|
164
|
+
return index.h("div", { key: '6d01432082e0272137562dd22ab309b75ce95504', class: "container" });
|
|
165
165
|
}
|
|
166
166
|
async loadIcon(name) {
|
|
167
167
|
if (name === undefined || name === '') {
|
|
@@ -116,9 +116,9 @@ const InfoTile = class {
|
|
|
116
116
|
this.checkProps((_d = this === null || this === void 0 ? void 0 : this.link) === null || _d === void 0 ? void 0 : _d.title);
|
|
117
117
|
const link = this.disabled ? '#' : (_e = this.link) === null || _e === void 0 ? void 0 : _e.href;
|
|
118
118
|
const rel = linkHelper.getRel((_f = this.link) === null || _f === void 0 ? void 0 : _f.target, (_g = this.link) === null || _g === void 0 ? void 0 : _g.rel);
|
|
119
|
-
return (index.h(index.Host, { key: '
|
|
119
|
+
return (index.h(index.Host, { key: 'a21ede478dc485edad5648d167cb5168a8560c85', onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, class: { 'has-primary-slot-content': this.hasPrimarySlot } }, index.h("a", { key: '694ed4b61590373e448f63d0814a91d506db9caf', title: (_h = this.link) === null || _h === void 0 ? void 0 : _h.title, href: link, target: (_j = this.link) === null || _j === void 0 ? void 0 : _j.target, rel: rel, tabindex: "0", "aria-label": extendedAriaLabel, "aria-disabled": this.disabled, "aria-busy": this.loading ? 'true' : 'false', "aria-live": "polite", class: {
|
|
120
120
|
'is-clickable': !!((_k = this.link) === null || _k === void 0 ? void 0 : _k.href) && !this.disabled,
|
|
121
|
-
} }, this.renderIcon(), this.renderProgress(), index.h("slot", { key: '
|
|
121
|
+
} }, this.renderIcon(), this.renderProgress(), index.h("slot", { key: '753e0576a88b10a3a981e0e46ba266266d84aec6', name: "primary", onSlotchange: this.updateHasPrimarySlotContent }), index.h("div", { key: '0d125992ed03f4aedcc8b82d47929bd45a268c80', class: "value-group" }, this.renderPrefix(), index.h("div", { key: 'bde1b5e9cd8fe539d29f267d8b1675bcbc8dbe0b', class: "value-and-suffix" }, this.renderValue(), this.renderSuffix()), this.renderSpinner()), this.renderLabel(), index.h("limel-3d-hover-effect-glow", { key: '6263b7a134238981c5ce6cdc5dc4321cc7ac43d1' })), this.renderNotification()));
|
|
122
122
|
}
|
|
123
123
|
checkProps(propValue) {
|
|
124
124
|
return propValue ? propValue + ' ' : '';
|
|
@@ -131,9 +131,9 @@ const ListItemComponent = class {
|
|
|
131
131
|
// also keep for `menuitem` for visual state consistency
|
|
132
132
|
ariaProps['aria-selected'] = this.selected ? 'true' : 'false';
|
|
133
133
|
}
|
|
134
|
-
return (index.h(index.Host, Object.assign({ key: '
|
|
134
|
+
return (index.h(index.Host, Object.assign({ key: '628910c7216db5d7580fb139475210d0a05c55db', role: this.getHostRole(), class: {
|
|
135
135
|
'has-primary-component': !!((_a = this.primaryComponent) === null || _a === void 0 ? void 0 : _a.name),
|
|
136
|
-
} }, ariaProps), this.renderRadioButton(), this.renderCheckbox(), this.renderIcon(), this.renderImage(), this.renderPrimaryComponent(), index.h("div", { key: '
|
|
136
|
+
} }, ariaProps), this.renderRadioButton(), this.renderCheckbox(), this.renderIcon(), this.renderImage(), this.renderPrimaryComponent(), index.h("div", { key: 'acb5d43d2690515d88146b5592a9bfd32225ab88', class: "text" }, this.renderLabel(), this.renderDescription()), this.renderActionMenu(this.actions)));
|
|
137
137
|
}
|
|
138
138
|
/**
|
|
139
139
|
* Returns a stable reference for the provided actions array to avoid
|
|
@@ -1193,7 +1193,7 @@ const Markdown = class {
|
|
|
1193
1193
|
this.cleanupImageIntersectionObserver();
|
|
1194
1194
|
}
|
|
1195
1195
|
render() {
|
|
1196
|
-
return (index$1.h(index$1.Host, { key: '
|
|
1196
|
+
return (index$1.h(index$1.Host, { key: 'a1883ae4c80a775bc1dbdd9f2b993ab4af8c4cba' }, index$1.h("div", { key: 'd8a1cd8f5a102a209fa89f8baf0b08912ead1059', id: "markdown", ref: (el) => (this.rootElement = el) })));
|
|
1197
1197
|
}
|
|
1198
1198
|
setupImageIntersectionObserver() {
|
|
1199
1199
|
if (this.lazyLoadImages) {
|
|
@@ -44,7 +44,7 @@ const MasonryLayout = class {
|
|
|
44
44
|
const style = {
|
|
45
45
|
height: `${this.containerHeight}rem`,
|
|
46
46
|
};
|
|
47
|
-
return (index.h(index.Host, { key: '
|
|
47
|
+
return (index.h(index.Host, { key: '4739b8085adca277a42f36478b1692970e2a8675', style: style, class: { 'is-laid-out': this.hasRendered } }, index.h("slot", { key: '14290465ddb5ea67ff9d2883904f3298900151ee' })));
|
|
48
48
|
}
|
|
49
49
|
setupObservers() {
|
|
50
50
|
this.resizeObserver = new ResizeObserver(() => {
|
|
@@ -18,7 +18,7 @@ const MenuItemMeta = class {
|
|
|
18
18
|
this.showChevron = false;
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (index.h(index.Host, { key: '
|
|
21
|
+
return (index.h(index.Host, { key: '468078fa475182bea0474fa0806bd54bb00db4c6' }, this.renderCommandText(), this.renderBadge(), this.renderChevron()));
|
|
22
22
|
}
|
|
23
23
|
renderCommandText() {
|
|
24
24
|
if (this.hotkey) {
|
|
@@ -289,7 +289,7 @@ const Pagination = class {
|
|
|
289
289
|
}
|
|
290
290
|
render() {
|
|
291
291
|
const { slots } = this.view;
|
|
292
|
-
return (index.h(index.Host, { key: '
|
|
292
|
+
return (index.h(index.Host, { key: 'dce4e827fbbaba2f2423b7623caa1371b51a7750' }, index.h("nav", { key: '18e75c58c919f78a5c19986d3a42612c0b125a55', "aria-label": this.translate('pagination.label'), "aria-busy": this.loading ? 'true' : null }, this.renderArrow('previous'), slots.map((slot, index) => this.renderSlot(slot, index)), this.renderArrow('next')), index.h("span", { key: '1aea124497cbec584bdb1977c7371b391f5576a2', class: "live-region", "aria-live": "polite" }, this.liveMessage)));
|
|
293
293
|
}
|
|
294
294
|
/**
|
|
295
295
|
* Without a count we know where the user is but not how far the set goes,
|
|
@@ -197,7 +197,7 @@ const Picker = class {
|
|
|
197
197
|
props.maxItems = 1;
|
|
198
198
|
}
|
|
199
199
|
return [
|
|
200
|
-
index.h("limel-chip-set", Object.assign({ key: '
|
|
200
|
+
index.h("limel-chip-set", Object.assign({ key: '3bd160f27baba3f2b6cfdb75bac451b87a25f75a', type: "input", inputType: "search", label: this.label, helperText: this.helperText, leadingIcon: this.leadingIcon, value: this.chips, disabled: this.disabled, invalid: this.invalid, delimiter: this.renderDelimiter(), readonly: this.readonly, required: this.required, searchLabel: this.searchLabel, language: this.language, onInput: this.handleTextInput, onKeyDown: this.handleInputKeyDown, onChange: this.handleChange, onInteract: this.handleInteract, onStartEdit: this.handleInputFieldFocus, onStopEdit: this.handleStopEditAndBlur, emptyInputOnBlur: false, emptyInputOnChange: false, clearAllButton: this.multiple && !this.chipSetEditMode }, props)),
|
|
201
201
|
this.renderDropdown(),
|
|
202
202
|
];
|
|
203
203
|
}
|
|
@@ -135,7 +135,7 @@ const Popover = class {
|
|
|
135
135
|
render() {
|
|
136
136
|
const cssProperties = this.getCssProperties();
|
|
137
137
|
const popoverZIndex = getComputedStyle(this.host).getPropertyValue('--popover-z-index');
|
|
138
|
-
return (index.h("div", { key: '
|
|
138
|
+
return (index.h("div", { key: 'a819793a1a82680cb7ce15239366c57c5e8300cc', class: "trigger-anchor" }, index.h("slot", { key: 'ddd5f786c93939afae68e0a35446be8470bfe638', name: "trigger", ref: this.setTriggerRef }), index.h("limel-portal", { key: '369a832fab6a9e3438202ed1c3dbb6fe9b5a5f39', visible: this.open, containerId: this.portalId, containerStyle: { 'z-index': popoverZIndex }, openDirection: this.openDirection }, index.h("limel-popover-surface", { key: '1b583fc37aa48fb67ff2b40f8c2e88cb7f6db88f', contentCollection: this.host.children, style: cssProperties }))));
|
|
139
139
|
}
|
|
140
140
|
globalClickListener(event) {
|
|
141
141
|
const element = event.target;
|
|
@@ -179,7 +179,7 @@ const PopoverSurface = class {
|
|
|
179
179
|
this.appendElement();
|
|
180
180
|
}
|
|
181
181
|
render() {
|
|
182
|
-
return index.h("div", { key: '
|
|
182
|
+
return index.h("div", { key: '0efb74a821ff0c1919a048ee08209befdf5582c0', class: "limel-popover-surface", tabindex: "0" });
|
|
183
183
|
}
|
|
184
184
|
appendElement() {
|
|
185
185
|
const portalContainer = this.host.shadowRoot.querySelector('.limel-popover-surface');
|
|
@@ -28568,7 +28568,7 @@ const ProsemirrorAdapter = class {
|
|
|
28568
28568
|
(_e = this.view) === null || _e === void 0 ? void 0 : _e.destroy();
|
|
28569
28569
|
}
|
|
28570
28570
|
render() {
|
|
28571
|
-
return (index$1.h(index$1.Host, { key: '
|
|
28571
|
+
return (index$1.h(index$1.Host, { key: '6c92f1576fdd862e592d0ccf6779c6d3da806808', onFocus: this.handleFocus }, index$1.h("div", { key: '0b1b90a7c68b62ecffed21f4c49fced5333f0d83', id: "editor" }), this.renderToolbar(), this.renderLinkMenu()));
|
|
28572
28572
|
}
|
|
28573
28573
|
renderToolbar() {
|
|
28574
28574
|
if (this.actionBarItems.length === 0 || this.ui === 'no-toolbar') {
|
|
@@ -26,7 +26,7 @@ const RadioButtonGroup = class {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (index.h("limel-list", { key: '
|
|
29
|
+
return (index.h("limel-list", { key: '9c12503b398b5c5d35d47d554b64219baf75d21b', items: this.createItems(), type: "radio", badgeIcons: this.badgeIcons, maxLinesSecondaryText: this.maxLinesSecondaryText, onChange: this.handleChange }));
|
|
30
30
|
}
|
|
31
31
|
createItems() {
|
|
32
32
|
return this.items.map((option) => {
|
|
@@ -9,12 +9,12 @@ const RadioButtonComponent = class {
|
|
|
9
9
|
index.registerInstance(this, hostRef);
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (index.h(index.Host, { key: '
|
|
12
|
+
return (index.h(index.Host, { key: '7cdb4d6a667a0afe8ed668cc32b4a38c39817d75', class: {
|
|
13
13
|
'boolean-input': true,
|
|
14
14
|
'radio-button': true,
|
|
15
15
|
checked: this.checked,
|
|
16
16
|
disabled: this.disabled,
|
|
17
|
-
} }, index.h("input", { key: '
|
|
17
|
+
} }, index.h("input", { key: 'f51cfa414dd1e2f50ea211a690a55dc7525d5501', type: "radio", id: this.id, checked: this.checked, disabled: this.disabled, onChange: this.onChange }), index.h("div", { key: 'a6ec3d879e3410c9973a1b8c66469a852e4e4995', class: "box" }), index.h("label", { key: '978984158d1c8344da8bcc6a4e3d7aa8003f75b2', class: "boolean-input-label", htmlFor: this.id }, this.label)));
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
RadioButtonComponent.style = radioButtonCss();
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-BlsqxTB1.js');
|
|
4
|
+
var keycodes = require('./keycodes-BQ_AERli.js');
|
|
5
|
+
|
|
6
|
+
const KEYBOARD_SIZE_STEP = 8;
|
|
7
|
+
const resizeLocations = {
|
|
8
|
+
left: {
|
|
9
|
+
axis: 'x',
|
|
10
|
+
cursor: 'col-resize',
|
|
11
|
+
direction: -1,
|
|
12
|
+
growKey: keycodes.ARROW_LEFT,
|
|
13
|
+
shrinkKey: keycodes.ARROW_RIGHT,
|
|
14
|
+
},
|
|
15
|
+
right: {
|
|
16
|
+
axis: 'x',
|
|
17
|
+
cursor: 'col-resize',
|
|
18
|
+
direction: 1,
|
|
19
|
+
growKey: keycodes.ARROW_RIGHT,
|
|
20
|
+
shrinkKey: keycodes.ARROW_LEFT,
|
|
21
|
+
},
|
|
22
|
+
top: {
|
|
23
|
+
axis: 'y',
|
|
24
|
+
cursor: 'row-resize',
|
|
25
|
+
direction: -1,
|
|
26
|
+
growKey: keycodes.ARROW_UP,
|
|
27
|
+
shrinkKey: keycodes.ARROW_DOWN,
|
|
28
|
+
},
|
|
29
|
+
bottom: {
|
|
30
|
+
axis: 'y',
|
|
31
|
+
cursor: 'row-resize',
|
|
32
|
+
direction: 1,
|
|
33
|
+
growKey: keycodes.ARROW_DOWN,
|
|
34
|
+
shrinkKey: keycodes.ARROW_UP,
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Returns the orientation of a separator that is a handle at the given
|
|
39
|
+
* location.
|
|
40
|
+
*
|
|
41
|
+
* @param location - the location of the handle
|
|
42
|
+
* @returns the orientation
|
|
43
|
+
*/
|
|
44
|
+
function getOrientation(location) {
|
|
45
|
+
return resizeLocations[location].axis === 'x' ? 'vertical' : 'horizontal';
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Returns how many pixels the size of the element changes when the key is
|
|
49
|
+
* pressed while the handle has focus.
|
|
50
|
+
*
|
|
51
|
+
* @param location - the location of the handle
|
|
52
|
+
* @param key - the `key` of the keyboard event
|
|
53
|
+
* @returns the change in pixels, or `undefined` when the key does not resize
|
|
54
|
+
*/
|
|
55
|
+
function getKeyboardSizeChange(location, key) {
|
|
56
|
+
const { growKey, shrinkKey } = resizeLocations[location];
|
|
57
|
+
if (key === growKey) {
|
|
58
|
+
return KEYBOARD_SIZE_STEP;
|
|
59
|
+
}
|
|
60
|
+
if (key === shrinkKey) {
|
|
61
|
+
return -KEYBOARD_SIZE_STEP;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Returns the size of the element along the axis that a handle at the given
|
|
66
|
+
* location resizes: the width for `left` and `right`, the height for `top` and
|
|
67
|
+
* `bottom`.
|
|
68
|
+
*
|
|
69
|
+
* `offsetWidth` and `offsetHeight` are used and not `getBoundingClientRect`,
|
|
70
|
+
* because an ancestor can be scaled with a transform.
|
|
71
|
+
*
|
|
72
|
+
* @param element - the element that the handle resizes
|
|
73
|
+
* @param location - the location of the handle
|
|
74
|
+
* @returns the size in pixels
|
|
75
|
+
*/
|
|
76
|
+
function measureSize(element, location) {
|
|
77
|
+
return resizeLocations[location].axis === 'x'
|
|
78
|
+
? element.offsetWidth
|
|
79
|
+
: element.offsetHeight;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// Several handles can be dragged at the same time, for example with two
|
|
83
|
+
// fingers. The styles from before the first drag come back when the last drag
|
|
84
|
+
// ends.
|
|
85
|
+
const dragStyles = {
|
|
86
|
+
activeDrags: 0,
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* The handle has captured the pointer, but the browser draws the cursor of the
|
|
90
|
+
* element under the pointer, which after the first pixel is the page, not the
|
|
91
|
+
* handle. Without these styles the cursor changes when the drag leaves the
|
|
92
|
+
* handle, and the drag selects the text that the pointer moves across.
|
|
93
|
+
*
|
|
94
|
+
* @param cursor - the cursor to show during the drag
|
|
95
|
+
*/
|
|
96
|
+
function applyDragStylesToBody(cursor) {
|
|
97
|
+
if (dragStyles.activeDrags === 0) {
|
|
98
|
+
dragStyles.before = getBodyStyles();
|
|
99
|
+
}
|
|
100
|
+
dragStyles.activeDrags += 1;
|
|
101
|
+
setBodyStyles({ cursor: cursor, userSelect: 'none' });
|
|
102
|
+
}
|
|
103
|
+
function restoreBodyStyles() {
|
|
104
|
+
dragStyles.activeDrags -= 1;
|
|
105
|
+
if (dragStyles.activeDrags === 0) {
|
|
106
|
+
setBodyStyles(dragStyles.before);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
function getBodyStyles() {
|
|
110
|
+
return {
|
|
111
|
+
cursor: document.body.style.cursor,
|
|
112
|
+
userSelect: document.body.style.userSelect,
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
function setBodyStyles(styles) {
|
|
116
|
+
document.body.style.cursor = styles.cursor;
|
|
117
|
+
document.body.style.userSelect = styles.userSelect;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Makes an element resizable with a drag handle on one of its edges.
|
|
121
|
+
*
|
|
122
|
+
* @param handle - the drag handle
|
|
123
|
+
* @param listener - gives the location and the size, and is told about the
|
|
124
|
+
* resize
|
|
125
|
+
* @returns a function that removes the event listeners
|
|
126
|
+
*/
|
|
127
|
+
function dragToResize(handle, listener) {
|
|
128
|
+
let activePointerId;
|
|
129
|
+
let traits = resizeLocations.left;
|
|
130
|
+
let startedAt;
|
|
131
|
+
let startedSize;
|
|
132
|
+
let hasResized = false;
|
|
133
|
+
const pointerPosition = (event) => {
|
|
134
|
+
return traits.axis === 'x' ? event.clientX : event.clientY;
|
|
135
|
+
};
|
|
136
|
+
const start = (event) => {
|
|
137
|
+
if (activePointerId !== undefined) {
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
event.preventDefault();
|
|
141
|
+
activePointerId = event.pointerId;
|
|
142
|
+
hasResized = false;
|
|
143
|
+
traits = resizeLocations[listener.getLocation()];
|
|
144
|
+
startedAt = pointerPosition(event);
|
|
145
|
+
startedSize = listener.getSize();
|
|
146
|
+
handle.setPointerCapture(event.pointerId);
|
|
147
|
+
applyDragStylesToBody(traits.cursor);
|
|
148
|
+
};
|
|
149
|
+
const drag = (event) => {
|
|
150
|
+
if (event.pointerId !== activePointerId) {
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
hasResized = true;
|
|
154
|
+
listener.resize(startedSize +
|
|
155
|
+
traits.direction * (pointerPosition(event) - startedAt));
|
|
156
|
+
};
|
|
157
|
+
const end = (event) => {
|
|
158
|
+
if (event.pointerId !== activePointerId) {
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
stop();
|
|
162
|
+
if (hasResized) {
|
|
163
|
+
listener.end();
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
// Cleanup also calls this, also between drags. The body styles can then
|
|
167
|
+
// belong to a different drag, so they are only reset for an active drag.
|
|
168
|
+
const stop = () => {
|
|
169
|
+
if (activePointerId === undefined) {
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
activePointerId = undefined;
|
|
173
|
+
restoreBodyStyles();
|
|
174
|
+
};
|
|
175
|
+
handle.addEventListener('pointerdown', start);
|
|
176
|
+
handle.addEventListener('pointermove', drag);
|
|
177
|
+
handle.addEventListener('pointerup', end);
|
|
178
|
+
handle.addEventListener('pointercancel', end);
|
|
179
|
+
handle.addEventListener('lostpointercapture', end);
|
|
180
|
+
return () => {
|
|
181
|
+
stop();
|
|
182
|
+
handle.removeEventListener('pointerdown', start);
|
|
183
|
+
handle.removeEventListener('pointermove', drag);
|
|
184
|
+
handle.removeEventListener('pointerup', end);
|
|
185
|
+
handle.removeEventListener('pointercancel', end);
|
|
186
|
+
handle.removeEventListener('lostpointercapture', end);
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
const resizeHandleCss = () => `@charset "UTF-8";:host(limel-resize-handle){position:absolute;z-index:1;touch-action:none;display:flex;align-items:center;justify-content:center;border-radius:100vh}:host::before,:host::after{pointer-events:none;content:"";display:block;position:absolute;inset:0;border-radius:100vh;margin:auto}:host::before{transition:scale 0.3s ease, opacity 0.3s ease;transition-delay:0.2s;opacity:0}:host::after{transition:background-color 0.4s ease;transition-delay:0.2s;background-color:rgb(var(--contrast-600))}:host([location=top]),:host([location=bottom]){cursor:row-resize;height:var(--limel-resize-handle-thickness, 0.5rem) !important;right:0;left:0}:host([location=top])::before,:host([location=bottom])::before{scale:1 0.9;height:0.5rem;width:var(--limel-resize-handle-visual-length, auto)}:host([location=top])::after,:host([location=bottom])::after{height:0.125rem;width:var(--limel-resize-handle-visual-length, auto)}:host([location=top]){top:0}:host([location=top])::before{top:0;bottom:auto}:host([location=top])::after{top:calc((0.5rem - 0.125rem) / 2);bottom:auto}:host([location=bottom]){bottom:0}:host([location=bottom])::before{top:auto;bottom:0}:host([location=bottom])::after{top:auto;bottom:calc((0.5rem - 0.125rem) / 2)}:host([location=left]),:host([location=right]){cursor:col-resize;width:0.5rem;top:0;bottom:0}:host([location=left])::before,:host([location=right])::before{scale:0.9 1}:host([location=left])::after,:host([location=right])::after{width:0.125rem}:host([location=left]){left:0}:host([location=right]){right:0}:host(:focus-visible){outline:none}:host(:hover)::before,:host(:focus-visible)::before{transition-duration:0.46s;transition-timing-function:ease-in;opacity:1;scale:1 1;background-color:rgb(var(--color-sky-light), 0.4)}:host(:hover)::after,:host(:focus-visible)::after{transition-duration:0.2s;transition-timing-function:ease-in;background-color:rgb(var(--color-sky-default))}div{transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);pointer-events:none;position:relative;z-index:1;display:flex;gap:0.25rem;align-items:center;justify-content:center;width:fit-content;padding:0.1875rem 0.25rem;border-radius:100vh;margin:auto;background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--button-shadow-pressed)}div span{transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);border-radius:0.125rem;width:0.25rem;height:0.125rem;background-color:rgb(var(--contrast-700))}:host([location=top]) div{margin-top:0;margin-bottom:auto}:host([location=bottom]) div{margin-top:auto;margin-bottom:0}:host([aria-orientation=vertical]) div{rotate:90deg}:host(:hover),:host(:focus-visible){--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}:host(:hover) div,:host(:focus-visible) div{will-change:background-color, box-shadow, transform;transform:translate3d(0, -0.04rem, 0);box-shadow:var(--button-shadow-normal)}:host(:hover) span,:host(:focus-visible) span{will-change:background-color;background-color:var(--mdc-theme-primary)}`;
|
|
191
|
+
|
|
192
|
+
const ResizeHandle = class {
|
|
193
|
+
constructor(hostRef) {
|
|
194
|
+
index.registerInstance(this, hostRef);
|
|
195
|
+
this.changeSize = index.createEvent(this, "changeSize", 1);
|
|
196
|
+
this.endResize = index.createEvent(this, "endResize", 1);
|
|
197
|
+
/**
|
|
198
|
+
* The location of the handle relative to the resizable element.
|
|
199
|
+
*/
|
|
200
|
+
this.location = 'left';
|
|
201
|
+
this.handleKeyDown = (event) => {
|
|
202
|
+
const change = getKeyboardSizeChange(this.location, event.key);
|
|
203
|
+
if (change === undefined) {
|
|
204
|
+
return;
|
|
205
|
+
}
|
|
206
|
+
event.preventDefault();
|
|
207
|
+
this.changeSize.emit(this.elementSize() + change);
|
|
208
|
+
this.endResize.emit();
|
|
209
|
+
};
|
|
210
|
+
this.elementSize = () => {
|
|
211
|
+
return measureSize(this.resizableElement(), this.location);
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
connectedCallback() {
|
|
215
|
+
this.stopResizing = dragToResize(this.host, {
|
|
216
|
+
getLocation: () => this.location,
|
|
217
|
+
getSize: this.elementSize,
|
|
218
|
+
resize: (size) => this.changeSize.emit(size),
|
|
219
|
+
end: () => this.endResize.emit(),
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
disconnectedCallback() {
|
|
223
|
+
var _a;
|
|
224
|
+
(_a = this.stopResizing) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
225
|
+
this.stopResizing = undefined;
|
|
226
|
+
}
|
|
227
|
+
render() {
|
|
228
|
+
return (index.h(index.Host, { key: 'b4f84fff38ded8d6493be55685fbe1c8d27affdb', role: "separator", "aria-orientation": getOrientation(this.location), "aria-label": this.label, "aria-valuenow": this.value, "aria-valuemin": this.min, "aria-valuemax": this.max, tabindex: "0", onKeyDown: this.handleKeyDown }, index.h("div", { key: '02b4abbc61b0dd571ceda1d69de057605523e29a', role: "presentation" }, index.h("span", { key: 'ea5083fca722c11df72f4b0f647f087732a28033' }), index.h("span", { key: '81a176e0594f20572dbc94aea0e5dc7709a21d96' }), index.h("span", { key: '4c39fcd49f2ad087f16a032dfa085d3a8630c41e' }))));
|
|
229
|
+
}
|
|
230
|
+
resizableElement() {
|
|
231
|
+
if (this.host.parentElement) {
|
|
232
|
+
return this.host.parentElement;
|
|
233
|
+
}
|
|
234
|
+
return this.host.getRootNode().host;
|
|
235
|
+
}
|
|
236
|
+
get host() { return index.getElement(this); }
|
|
237
|
+
};
|
|
238
|
+
ResizeHandle.style = resizeHandleCss();
|
|
239
|
+
|
|
240
|
+
exports.limel_resize_handle = ResizeHandle;
|
|
@@ -65,12 +65,12 @@ const Scroller = class {
|
|
|
65
65
|
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
66
66
|
}
|
|
67
67
|
render() {
|
|
68
|
-
return (index.h(index.Host, { key: '
|
|
68
|
+
return (index.h(index.Host, { key: 'c208de7a73b1d3d040a0a76b2bdc7bad3d5ab739' }, index.h("div", { key: '5e69255f710a5f5f439553fa1f9b183e9dc5a9bd', class: {
|
|
69
69
|
scroller: true,
|
|
70
70
|
[this.orientation]: true,
|
|
71
71
|
'can-scroll-to-start': this.canScrollToStart,
|
|
72
72
|
'can-scroll-to-end': this.canScrollToEnd,
|
|
73
|
-
} }, index.h("div", { key: '
|
|
73
|
+
} }, index.h("div", { key: 'fc1b91baa65f317ae7bad667cba13813400ac546', class: "scroll-area", ref: (element) => (this.scrollArea = element), onScroll: this.updateScrollability, onFocusin: this.revealFocusedItem }, index.h("div", { key: '43c02c4acba2ba647aaf6a7516a0326ffc0f16b1', class: "scroll-content", ref: (element) => (this.scrollContent = element) }, index.h("slot", { key: '3d2e82f50748410b5370741c8e8b1f44117adc35', ref: (element) => (this.slotElement = element) }))), this.renderEdge('start'), this.renderEdge('end'))));
|
|
74
74
|
}
|
|
75
75
|
renderEdge(edge) {
|
|
76
76
|
return [
|
|
@@ -800,7 +800,7 @@ const Select = class {
|
|
|
800
800
|
}
|
|
801
801
|
render() {
|
|
802
802
|
const dropdownZIndex = getComputedStyle(this.host).getPropertyValue('--dropdown-z-index');
|
|
803
|
-
return (index.h(SelectTemplate, { key: '
|
|
803
|
+
return (index.h(SelectTemplate, { key: 'dd610ca15d4efd4ebc6bc52dae88625dcbca241f', id: this.portalId, disabled: this.disabled || this.readonly, readonly: this.readonly, required: this.required, invalid: this.invalid, label: this.label, helperText: this.helperText, value: this.value, options: this.options, onMenuChange: this.handleMenuChange, onNativeChange: this.handleNativeChange, onTriggerKeyDown: this.handleMenuTriggerKeyDown, listRef: this.setListElement, multiple: this.multiple, isOpen: this.menuOpen, open: this.openMenu, close: this.closeMenu, checkValid: this.checkValid, native: this.shouldRenderNative(), dropdownZIndex: dropdownZIndex, anchor: this.getAnchorElement() }));
|
|
804
804
|
}
|
|
805
805
|
watchOpen(newValue, oldValue) {
|
|
806
806
|
if (this.checkValid) {
|
|
@@ -53,7 +53,7 @@ const Shortcut = class {
|
|
|
53
53
|
render() {
|
|
54
54
|
var _a, _b, _c, _d, _e;
|
|
55
55
|
const rel = linkHelper.getRel((_a = this.link) === null || _a === void 0 ? void 0 : _a.target, (_b = this.link) === null || _b === void 0 ? void 0 : _b.rel);
|
|
56
|
-
return (index.h(index.Host, { key: '
|
|
56
|
+
return (index.h(index.Host, { key: 'a5b5f21fa6c27511357c3fdf498384ad7b8c3f6e', onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, index.h("a", { key: '74496e167864c94b9169fe2d5ed1aea82c4e2d20', "aria-disabled": this.disabled, href: (_c = this.link) === null || _c === void 0 ? void 0 : _c.href, target: (_d = this.link) === null || _d === void 0 ? void 0 : _d.target, rel: rel, tabindex: "0", "aria-label": this.getAriaLabel(), title: (_e = this.link) === null || _e === void 0 ? void 0 : _e.title }, index.h("limel-icon", { key: '7ba30c4e1f4aae41ad2626228f238979bcce1405', name: this.icon }), index.h("limel-3d-hover-effect-glow", { key: 'f6dd1cedf07c7bce7eba7d8b8eb44f948ab4ce25' })), this.renderLabel(), this.renderNotification()));
|
|
57
57
|
}
|
|
58
58
|
get host() { return index.getElement(this); }
|
|
59
59
|
};
|