@limetech/lime-elements 40.9.0 → 40.10.1
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 +21 -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 +231 -15
- 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/get-hotkey-aria-label.js +14 -0
- package/dist/collection/components/hotkey/hotkey.js +3 -5
- 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/description-registry.js +57 -0
- package/dist/collection/components/tooltip/get-description.js +42 -0
- package/dist/collection/components/tooltip/tooltip-content.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +53 -11
- 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/get-focus-target.js +69 -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 +231 -15
- 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-1a5478e3.entry.js +1 -0
- 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-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/hotkey/get-hotkey-aria-label.d.ts +8 -0
- 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/tooltip/description-registry.d.ts +21 -0
- package/dist/types/components/tooltip/get-description.d.ts +13 -0
- package/dist/types/components/tooltip/tooltip.d.ts +11 -3
- package/dist/types/components.d.ts +325 -6
- 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/get-focus-target.d.ts +14 -0
- package/dist/types/util/resize-location.d.ts +59 -0
- package/package.json +4 -4
- 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-a1d1470c.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
|
@@ -31,7 +31,7 @@ export class FlexContainer {
|
|
|
31
31
|
console.warn('limel-flex-container is deprecated, please use CSS instead: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Basic_Concepts_of_Flexbox');
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return h("slot", { key: '
|
|
34
|
+
return h("slot", { key: '791a96736443febd2103b7aeb1437299b103be80' });
|
|
35
35
|
}
|
|
36
36
|
static get is() { return "limel-flex-container"; }
|
|
37
37
|
static get encapsulation() { return "shadow"; }
|
|
@@ -87,7 +87,7 @@ export class Form {
|
|
|
87
87
|
this.initialized = false;
|
|
88
88
|
}
|
|
89
89
|
render() {
|
|
90
|
-
return h("div", { key: '
|
|
90
|
+
return h("div", { key: '9c5db05ffcc594473a3ca7b2e3962f1659d3601d', class: "root" });
|
|
91
91
|
}
|
|
92
92
|
reactRender() {
|
|
93
93
|
if (!this.root) {
|
|
@@ -12,7 +12,7 @@ export class Grid {
|
|
|
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 h("slot", { key: '
|
|
15
|
+
return h("slot", { key: 'fcc80e1ddf56068650e342120441027bce5263b5' });
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "limel-grid"; }
|
|
18
18
|
static get encapsulation() { return "shadow"; }
|
|
@@ -61,7 +61,7 @@ export class Header {
|
|
|
61
61
|
this.subheadingDivider = '·';
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
|
-
return (h(Host, { key: '
|
|
64
|
+
return (h(Host, { key: 'e90e33e08296a0215db2467226e09da918df2e89' }, h("div", { key: '82c18d96c84e78109a38add09df18b0b8b6dd0e3', class: "information" }, this.renderIcon(), h("div", { key: '16e17dfe84b683aece74dafd2ab6a9c433014959', class: "headings" }, h("h1", { key: '1dc86af4d544af7d610442f05fb88c24cc3bb969', class: "heading", title: this.heading }, this.heading), h("h2", { key: '8dcec7cba249b55b543025e7484e3b5cf6b2a6d8', class: "subheading", title: this.subheading }, this.subheading, this.renderSupportingText()))), h("slot", { key: '589ab97c6f9574b84e785ff79c57ecccd51a633d', name: "actions" }, h("slot", { key: '5c1b4d222d5200690917c7a25ef7bb7565d07ef5' }))));
|
|
65
65
|
}
|
|
66
66
|
renderIcon() {
|
|
67
67
|
var _a, _b, _c, _d, _e;
|
|
@@ -19,7 +19,7 @@ export class HelpContent {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: 'dd9facb6511b80349bc2da0b226bb660b6d90027' }, h("limel-markdown", { key: 'e74f0a9a0321bfb0fb16544c39b0c05c736e0d8b', value: this.value }), this.renderReadMoreLink()));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "limel-help-content"; }
|
|
25
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -41,9 +41,9 @@ export class HelpComponent {
|
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return (h(Host, { key: '
|
|
44
|
+
return (h(Host, { key: '0a59bc47d2f8281466fb478804656d4d69707293' }, h("limel-popover", { key: '4fbb9cc254d7d8428dac179dfecdec15589646cb', open: this.isOpen, onClose: this.onPopoverClose, openDirection: this.openDirection }, h("button", { key: 'b15e2219cb9850fc571d6b2441e2efa999ae3c2d', slot: "trigger", type: "button", onClick: this.openPopover, class: {
|
|
45
45
|
'is-open': this.isOpen,
|
|
46
|
-
} }, this.trigger), h("limel-help-content", { key: '
|
|
46
|
+
} }, this.trigger), h("limel-help-content", { key: '38e1a3222de220e2da82cf0cfc6e7885d7af0c6d', value: this.value, readMoreLink: this.readMoreLink }))));
|
|
47
47
|
}
|
|
48
48
|
static get is() { return "limel-help"; }
|
|
49
49
|
static get encapsulation() { return "shadow"; }
|
|
@@ -46,9 +46,9 @@ export class HelperLine {
|
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: '69872d6dcdbecf1d703a9fb441f118f9389596bc', tabIndex: -1, class: {
|
|
50
50
|
invalid: this.invalid,
|
|
51
|
-
}, style: this.hasContent() ? {} : { display: 'none' }, "aria-hidden": !this.hasContent() }, h("div", { key: '
|
|
51
|
+
}, style: this.hasContent() ? {} : { display: 'none' }, "aria-hidden": !this.hasContent() }, h("div", { key: 'bf63441b2481b1d91fae50d7f85630e361fb2089' }, this.renderHelperText(), this.renderCharacterCounter())));
|
|
52
52
|
}
|
|
53
53
|
static get is() { return "limel-helper-line"; }
|
|
54
54
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { tokenizeHotkeyString } from "../../util/hotkeys";
|
|
2
|
+
import { formatDisplayToken } from "./format-display-token";
|
|
3
|
+
/**
|
|
4
|
+
* Get the text that a screen reader reads for a hotkey, e.g. `"Command K"`.
|
|
5
|
+
*
|
|
6
|
+
* @param hotkey - The hotkey string, e.g. `"meta+k"`.
|
|
7
|
+
* @param isApple - Whether the current device is an Apple device.
|
|
8
|
+
*/
|
|
9
|
+
export function getHotkeyAriaLabel(hotkey, isApple) {
|
|
10
|
+
return tokenizeHotkeyString(hotkey)
|
|
11
|
+
.map((token) => formatDisplayToken(token, isApple).ariaName)
|
|
12
|
+
.filter(Boolean)
|
|
13
|
+
.join(' ');
|
|
14
|
+
}
|
|
@@ -2,6 +2,7 @@ import { Host, h } from "@stencil/core";
|
|
|
2
2
|
import { tokenizeHotkeyString } from "../../util/hotkeys";
|
|
3
3
|
import { isAppleDevice } from "../../util/device";
|
|
4
4
|
import { formatDisplayToken } from "./format-display-token";
|
|
5
|
+
import { getHotkeyAriaLabel } from "./get-hotkey-aria-label";
|
|
5
6
|
/**
|
|
6
7
|
* This is a display-only component used to visualize keyboard shortcuts.
|
|
7
8
|
* It renders hotkey strings as styled `<kbd>` elements with
|
|
@@ -28,11 +29,8 @@ export class Hotkey {
|
|
|
28
29
|
render() {
|
|
29
30
|
const parts = tokenizeHotkeyString(this.value);
|
|
30
31
|
const displayParts = parts.map((part) => formatDisplayToken(part, this.isApple));
|
|
31
|
-
const ariaLabel =
|
|
32
|
-
|
|
33
|
-
.filter(Boolean)
|
|
34
|
-
.join(' ');
|
|
35
|
-
return (h(Host, { key: 'dd8bc8134560dae3014e6ab5ab6eadeaa0bb6a4e', "aria-label": ariaLabel || undefined }, displayParts.map(({ display, isGlyph }, index) => (h("kbd", { key: `${parts[index]}-${index}`, class: isGlyph ? 'is-glyph' : undefined }, h("span", null, display))))));
|
|
32
|
+
const ariaLabel = getHotkeyAriaLabel(this.value, this.isApple);
|
|
33
|
+
return (h(Host, { key: '8ffc94c7ac5061743e423e5efb8097b7ea03dc6e', "aria-label": ariaLabel || undefined }, displayParts.map(({ display, isGlyph }, index) => (h("kbd", { key: `${parts[index]}-${index}`, class: isGlyph ? 'is-glyph' : undefined }, h("span", null, display))))));
|
|
36
34
|
}
|
|
37
35
|
static get is() { return "limel-hotkey"; }
|
|
38
36
|
static get encapsulation() { return "shadow"; }
|
|
@@ -19,7 +19,7 @@ export class Icon {
|
|
|
19
19
|
this.loadIcon(this.name);
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return h("div", { key: '
|
|
22
|
+
return h("div", { key: '6d01432082e0272137562dd22ab309b75ce95504', class: "container" });
|
|
23
23
|
}
|
|
24
24
|
async loadIcon(name) {
|
|
25
25
|
if (name === undefined || name === '') {
|
|
@@ -52,7 +52,7 @@ export class IconButton {
|
|
|
52
52
|
if (this.host.hasAttribute('tabindex')) {
|
|
53
53
|
buttonAttributes.tabindex = this.host.getAttribute('tabindex');
|
|
54
54
|
}
|
|
55
|
-
return (h(Host, { key: '
|
|
55
|
+
return (h(Host, { key: '0c2536bf5d9628ed72bc55ed768c4e5eb6396b68', onClick: this.filterClickWhenDisabled }, h("button", Object.assign({ key: '3c18c8f45209887df5c4f76ec635839f3cc147ab', "aria-label": this.label, disabled: this.disabled, id: this.tooltipId }, buttonAttributes), this.renderIcon(), this.renderTooltip(this.tooltipId))));
|
|
56
56
|
}
|
|
57
57
|
renderIcon() {
|
|
58
58
|
var _a, _b;
|
|
@@ -127,9 +127,9 @@ export class InfoTile {
|
|
|
127
127
|
this.checkProps((_d = this === null || this === void 0 ? void 0 : this.link) === null || _d === void 0 ? void 0 : _d.title);
|
|
128
128
|
const link = this.disabled ? '#' : (_e = this.link) === null || _e === void 0 ? void 0 : _e.href;
|
|
129
129
|
const rel = getRel((_f = this.link) === null || _f === void 0 ? void 0 : _f.target, (_g = this.link) === null || _g === void 0 ? void 0 : _g.rel);
|
|
130
|
-
return (h(Host, { key: '
|
|
130
|
+
return (h(Host, { key: 'a21ede478dc485edad5648d167cb5168a8560c85', onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, class: { 'has-primary-slot-content': this.hasPrimarySlot } }, 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: {
|
|
131
131
|
'is-clickable': !!((_k = this.link) === null || _k === void 0 ? void 0 : _k.href) && !this.disabled,
|
|
132
|
-
} }, this.renderIcon(), this.renderProgress(), h("slot", { key: '
|
|
132
|
+
} }, this.renderIcon(), this.renderProgress(), h("slot", { key: '753e0576a88b10a3a981e0e46ba266266d84aec6', name: "primary", onSlotchange: this.updateHasPrimarySlotContent }), h("div", { key: '0d125992ed03f4aedcc8b82d47929bd45a268c80', class: "value-group" }, this.renderPrefix(), h("div", { key: 'bde1b5e9cd8fe539d29f267d8b1675bcbc8dbe0b', class: "value-and-suffix" }, this.renderValue(), this.renderSuffix()), this.renderSpinner()), this.renderLabel(), h("limel-3d-hover-effect-glow", { key: '6263b7a134238981c5ce6cdc5dc4321cc7ac43d1' })), this.renderNotification()));
|
|
133
133
|
}
|
|
134
134
|
checkProps(propValue) {
|
|
135
135
|
return propValue ? propValue + ' ' : '';
|
|
@@ -597,7 +597,7 @@ export class InputField {
|
|
|
597
597
|
if (ariaControls) {
|
|
598
598
|
properties['aria-controls'] = ariaControls;
|
|
599
599
|
}
|
|
600
|
-
return (h(Host, { key: '
|
|
600
|
+
return (h(Host, { key: 'd12c660cb9aad1bd47680672e632287aba8dd97e' }, h("limel-notched-outline", { key: '91b34653b223e956a6218de02c7f6670a1fe1857', labelId: this.labelId, label: this.label, required: this.required, invalid: this.invalid || this.isInvalid(), disabled: this.disabled, readonly: this.readonly, hasValue: !!this.value, hasLeadingIcon: !!this.leadingIcon }, h("label", { key: 'd55df49d702b0bf8938304512b716e82b3d3e348', slot: "content", class: this.getContainerClassList() }, this.renderLeadingIcon(), this.renderPrefix(), this.renderFormattedNumber(), this.renderInput(properties), this.renderSuffix(), this.renderTextarea(properties), this.renderTrailingLinkOrButton())), this.renderHelperLine(), this.renderAutocompleteList()));
|
|
601
601
|
}
|
|
602
602
|
valueWatcher(newValue) {
|
|
603
603
|
if (!this.mdcTextField || this.changeWaiting) {
|
|
@@ -194,7 +194,7 @@ export class List {
|
|
|
194
194
|
maxLinesSecondaryText = 1;
|
|
195
195
|
}
|
|
196
196
|
const html = this.listRenderer.render(this.items, this.config);
|
|
197
|
-
return (h(Host, { key: '
|
|
197
|
+
return (h(Host, { key: '5a259a6d125ba3cc5ee04a68dd3ab761bceb2cfb', style: {
|
|
198
198
|
'--maxLinesSecondaryText': `${maxLinesSecondaryText}`,
|
|
199
199
|
} }, html));
|
|
200
200
|
}
|
|
@@ -158,9 +158,9 @@ export class ListItemComponent {
|
|
|
158
158
|
// also keep for `menuitem` for visual state consistency
|
|
159
159
|
ariaProps['aria-selected'] = this.selected ? 'true' : 'false';
|
|
160
160
|
}
|
|
161
|
-
return (h(Host, Object.assign({ key: '
|
|
161
|
+
return (h(Host, Object.assign({ key: '628910c7216db5d7580fb139475210d0a05c55db', role: this.getHostRole(), class: {
|
|
162
162
|
'has-primary-component': !!((_a = this.primaryComponent) === null || _a === void 0 ? void 0 : _a.name),
|
|
163
|
-
} }, ariaProps), this.renderRadioButton(), this.renderCheckbox(), this.renderIcon(), this.renderImage(), this.renderPrimaryComponent(), h("div", { key: '
|
|
163
|
+
} }, ariaProps), this.renderRadioButton(), this.renderCheckbox(), this.renderIcon(), this.renderImage(), this.renderPrimaryComponent(), h("div", { key: 'acb5d43d2690515d88146b5592a9bfd32225ab88', class: "text" }, this.renderLabel(), this.renderDescription()), this.renderActionMenu(this.actions)));
|
|
164
164
|
}
|
|
165
165
|
/**
|
|
166
166
|
* Returns a stable reference for the provided actions array to avoid
|
|
@@ -22,7 +22,7 @@ export class MenuItemMeta {
|
|
|
22
22
|
this.showChevron = false;
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: '468078fa475182bea0474fa0806bd54bb00db4c6' }, this.renderCommandText(), this.renderBadge(), this.renderChevron()));
|
|
26
26
|
}
|
|
27
27
|
renderCommandText() {
|
|
28
28
|
if (this.hotkey) {
|
|
@@ -170,7 +170,7 @@ export class Markdown {
|
|
|
170
170
|
this.cleanupImageIntersectionObserver();
|
|
171
171
|
}
|
|
172
172
|
render() {
|
|
173
|
-
return (h(Host, { key: '
|
|
173
|
+
return (h(Host, { key: 'a1883ae4c80a775bc1dbdd9f2b993ab4af8c4cba' }, h("div", { key: 'd8a1cd8f5a102a209fa89f8baf0b08912ead1059', id: "markdown", ref: (el) => (this.rootElement = el) })));
|
|
174
174
|
}
|
|
175
175
|
setupImageIntersectionObserver() {
|
|
176
176
|
if (this.lazyLoadImages) {
|
|
@@ -59,7 +59,7 @@ export class MasonryLayout {
|
|
|
59
59
|
const style = {
|
|
60
60
|
height: `${this.containerHeight}rem`,
|
|
61
61
|
};
|
|
62
|
-
return (h(Host, { key: '
|
|
62
|
+
return (h(Host, { key: '4739b8085adca277a42f36478b1692970e2a8675', style: style, class: { 'is-laid-out': this.hasRendered } }, h("slot", { key: '14290465ddb5ea67ff9d2883904f3298900151ee' })));
|
|
63
63
|
}
|
|
64
64
|
setupObservers() {
|
|
65
65
|
this.resizeObserver = new ResizeObserver(() => {
|
|
@@ -593,7 +593,7 @@ export class Menu {
|
|
|
593
593
|
const cssProperties = this.getCssProperties();
|
|
594
594
|
const dropdownZIndex = getComputedStyle(this.host).getPropertyValue('--dropdown-z-index');
|
|
595
595
|
const menuSurfaceWidth = this.getMenuSurfaceWidth(cssProperties['--menu-surface-width']);
|
|
596
|
-
return (h("div", { key: '
|
|
596
|
+
return (h("div", { key: '4297bd7cef14f8cc64e76b855bb816cd957ae777', class: "mdc-menu-surface--anchor", onClick: this.onTriggerClick }, h("slot", { key: '5b9d29a6a872c56d0473dc1b758275c1061d29e9', ref: this.setTriggerRef, name: "trigger" }), this.renderNotificationBadge(), h("limel-portal", { key: '4df2b9dee190c430c66697fc28834f4b2e648d93', visible: this.open, containerId: this.portalId, openDirection: this.openDirection, position: "absolute", containerStyle: { 'z-index': dropdownZIndex } }, h("limel-menu-surface", { key: 'a09c1a6ebcaf9faadbf05de1c3d901e391249de3', open: this.open, onDismiss: this.onClose, style: Object.assign(Object.assign({}, cssProperties), { '--menu-surface-width': menuSurfaceWidth, '--limel-menu-surface-display': 'flex', '--limel-menu-surface-flex-direction': 'column' }), class: {
|
|
597
597
|
'has-grid-layout': this.gridLayout,
|
|
598
598
|
} }, this.renderSearchField(), this.renderBreadcrumb(), this.renderLoader(), this.renderEmptyMessage(), this.renderMenuList()))));
|
|
599
599
|
}
|
|
@@ -88,7 +88,7 @@ export class MenuList {
|
|
|
88
88
|
iconSize: this.iconSize,
|
|
89
89
|
};
|
|
90
90
|
const html = this.MenuListRenderer.render(this.items, this.config);
|
|
91
|
-
return h("div", { key: '
|
|
91
|
+
return h("div", { key: '23e18e570d984333dfafc3b45e1e8f06cf02420d', class: "mdc-menu mdc-menu-surface" }, html);
|
|
92
92
|
}
|
|
93
93
|
itemsChanged() {
|
|
94
94
|
setTimeout(() => {
|
|
@@ -103,7 +103,7 @@ export class MenuSurface {
|
|
|
103
103
|
'mdc-elevation-transition': true,
|
|
104
104
|
'mdc-elevation--z4': true,
|
|
105
105
|
};
|
|
106
|
-
return (h("div", { key: '
|
|
106
|
+
return (h("div", { key: 'ad7c084b7ac99d8837f0641eb2d1da16cf54866a', class: classList, tabindex: "-1" }, h("slot", { key: 'ddba9bf6dca376d72801e0feb5548bbd0e767d61' })));
|
|
107
107
|
}
|
|
108
108
|
static get is() { return "limel-menu-surface"; }
|
|
109
109
|
static get encapsulation() { return "shadow"; }
|
|
@@ -59,7 +59,7 @@ export class NotchedOutline {
|
|
|
59
59
|
this.hasFloatingLabel = false;
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
62
|
-
return (h("div", { key: '
|
|
62
|
+
return (h("div", { key: 'a7d059bafca0519edd93c90daad620131d3fbdd0', class: "limel-notched-outline" }, h("slot", { key: '2498cc520769655fe0445ff58bd782e5ccfb857f', name: "content" }), h("span", { key: '8946f7b280ee76331b6ac66e4b212ea8a3aa567c', class: "limel-notched-outline--outlines", "aria-hidden": "true" }, h("span", { key: '096357fb61dddafd811669d36d910dfd753fcc1e', class: "limel-notched-outline--leading-outline" }), this.renderLabel(), h("span", { key: '37460f34ac2cd82360a0a3bd6cba015133d64516', class: "limel-notched-outline--trailing-outline" }), this.renderEmptyReadonlyValue())));
|
|
63
63
|
}
|
|
64
64
|
renderLabel() {
|
|
65
65
|
if (!this.label) {
|
|
@@ -304,7 +304,7 @@ export class Pagination {
|
|
|
304
304
|
}
|
|
305
305
|
render() {
|
|
306
306
|
const { slots } = this.view;
|
|
307
|
-
return (h(Host, { key: '
|
|
307
|
+
return (h(Host, { key: 'dce4e827fbbaba2f2423b7623caa1371b51a7750' }, 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')), h("span", { key: '1aea124497cbec584bdb1977c7371b391f5576a2', class: "live-region", "aria-live": "polite" }, this.liveMessage)));
|
|
308
308
|
}
|
|
309
309
|
/**
|
|
310
310
|
* Without a count we know where the user is but not how far the set goes,
|
|
@@ -199,7 +199,7 @@ export class Picker {
|
|
|
199
199
|
props.maxItems = 1;
|
|
200
200
|
}
|
|
201
201
|
return [
|
|
202
|
-
h("limel-chip-set", Object.assign({ key: '
|
|
202
|
+
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)),
|
|
203
203
|
this.renderDropdown(),
|
|
204
204
|
];
|
|
205
205
|
}
|
|
@@ -137,7 +137,7 @@ export class Popover {
|
|
|
137
137
|
render() {
|
|
138
138
|
const cssProperties = this.getCssProperties();
|
|
139
139
|
const popoverZIndex = getComputedStyle(this.host).getPropertyValue('--popover-z-index');
|
|
140
|
-
return (h("div", { key: '
|
|
140
|
+
return (h("div", { key: 'a819793a1a82680cb7ce15239366c57c5e8300cc', class: "trigger-anchor" }, h("slot", { key: 'ddd5f786c93939afae68e0a35446be8470bfe638', name: "trigger", ref: this.setTriggerRef }), h("limel-portal", { key: '369a832fab6a9e3438202ed1c3dbb6fe9b5a5f39', visible: this.open, containerId: this.portalId, containerStyle: { 'z-index': popoverZIndex }, openDirection: this.openDirection }, h("limel-popover-surface", { key: '1b583fc37aa48fb67ff2b40f8c2e88cb7f6db88f', contentCollection: this.host.children, style: cssProperties }))));
|
|
141
141
|
}
|
|
142
142
|
globalClickListener(event) {
|
|
143
143
|
const element = event.target;
|
|
@@ -8,7 +8,7 @@ export class PopoverSurface {
|
|
|
8
8
|
this.appendElement();
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("div", { key: '
|
|
11
|
+
return h("div", { key: '0efb74a821ff0c1919a048ee08209befdf5582c0', class: "limel-popover-surface", tabindex: "0" });
|
|
12
12
|
}
|
|
13
13
|
appendElement() {
|
|
14
14
|
const portalContainer = this.host.shadowRoot.querySelector('.limel-popover-surface');
|
|
@@ -115,7 +115,7 @@ export class Portal {
|
|
|
115
115
|
this.showContainer();
|
|
116
116
|
}
|
|
117
117
|
render() {
|
|
118
|
-
return h("slot", { key: '
|
|
118
|
+
return h("slot", { key: 'f4db0b146b4cd851a9837bf10dc7d331cd5a9dce' });
|
|
119
119
|
}
|
|
120
120
|
onVisible() {
|
|
121
121
|
if (!this.container && this.visible) {
|
|
@@ -37,7 +37,7 @@ export class RadioButtonGroup {
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h("limel-list", { key: '
|
|
40
|
+
return (h("limel-list", { key: '9c12503b398b5c5d35d47d554b64219baf75d21b', items: this.createItems(), type: "radio", badgeIcons: this.badgeIcons, maxLinesSecondaryText: this.maxLinesSecondaryText, onChange: this.handleChange }));
|
|
41
41
|
}
|
|
42
42
|
createItems() {
|
|
43
43
|
return this.items.map((option) => {
|
|
@@ -31,12 +31,12 @@ import { Host, h } from "@stencil/core";
|
|
|
31
31
|
*/
|
|
32
32
|
export class RadioButtonComponent {
|
|
33
33
|
render() {
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: '7cdb4d6a667a0afe8ed668cc32b4a38c39817d75', class: {
|
|
35
35
|
'boolean-input': true,
|
|
36
36
|
'radio-button': true,
|
|
37
37
|
checked: this.checked,
|
|
38
38
|
disabled: this.disabled,
|
|
39
|
-
} }, h("input", { key: '
|
|
39
|
+
} }, h("input", { key: 'f51cfa414dd1e2f50ea211a690a55dc7525d5501', type: "radio", id: this.id, checked: this.checked, disabled: this.disabled, onChange: this.onChange }), h("div", { key: 'a6ec3d879e3410c9973a1b8c66469a852e4e4995', class: "box" }), h("label", { key: '978984158d1c8344da8bcc6a4e3d7aa8003f75b2', class: "boolean-input-label", htmlFor: this.id }, this.label)));
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "limel-radio-button"; }
|
|
42
42
|
static get originalStyleUrls() {
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/**
|
|
3
|
+
* @prop --limel-resize-handle-thickness: Size of the grab area of a handle with `location="top"` or `location="bottom"`, measured in the direction of the drag. Has no effect on a handle with `location="left"` or `location="right"`. Defaults to `0.5rem`, which is the size of the visible strip. Increase it to give touch pointers a larger target. The grab area grows away from the edge that is dragged, and the visible strip stays at the edge.
|
|
4
|
+
* @prop --limel-resize-handle-visual-length: Length of the visible strip of a handle with `location="top"` or `location="bottom"`, measured along the edge. Has no effect on a handle with `location="left"` or `location="right"`. Defaults to `auto`, so the strip spans the whole grab area. Set it when the grab area is longer than the strip should appear.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Note! This file is forwarded via `src/style/exports.scss`
|
|
8
|
+
* and exposed to consumers through the root `index.scss`.
|
|
9
|
+
*
|
|
10
|
+
* Consumers import it using:
|
|
11
|
+
* `@use '@limetech/lime-elements' as lime-elements;`
|
|
12
|
+
*
|
|
13
|
+
* Legacy import paths (`dist/scss/mixins`) are maintained
|
|
14
|
+
* for backward compatibility via copy rules in the Stencil config.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Neutralizes the user-agent styles that browsers apply to `<button>` elements
|
|
18
|
+
* (their default background, border, padding, font, etc.), without stripping
|
|
19
|
+
* the useful defaults that `all: unset;` would also remove
|
|
20
|
+
* (such as `display`, `cursor`, and focus behavior).
|
|
21
|
+
*
|
|
22
|
+
* Prefer this mixin over `all: unset;` on `<button>` elements, then layer
|
|
23
|
+
* the styling you want on top — often one of the `is-*-clickable` mixins.
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* This can be used on a trigger element that opens a dropdown menu or a popover.
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* This mixin will mask out the content that is close to
|
|
30
|
+
* the edges of a scrollable area.
|
|
31
|
+
* - If the scrollable content has `overflow-y`, use `vertically`
|
|
32
|
+
* as an argument for `$direction`.
|
|
33
|
+
- If the scrollable content has `overflow-x`, use `horizontally`
|
|
34
|
+
* as an argument for `$direction`.
|
|
35
|
+
*
|
|
36
|
+
* For the visual effect to work smoothly, we need to make sure that
|
|
37
|
+
* the size of the fade-out edge effect is the same as the
|
|
38
|
+
* internal paddings of the scrollable area. Otherwise, content of a
|
|
39
|
+
* scrollable area that does not have a padding will fade out before
|
|
40
|
+
* any scrolling has been done.
|
|
41
|
+
* This is why this mixin already adds paddings, which automatically
|
|
42
|
+
* default to the size of the fade-out effect.
|
|
43
|
+
* This size defaults to `1rem`, but to override the size use
|
|
44
|
+
* `--limel-top-edge-fade-height` & `--limel-bottom-edge-fade-height`
|
|
45
|
+
* when `vertically` argument is set, and use
|
|
46
|
+
* `--limel-left-edge-fade-width` & `--limel-right-edge-fade-width`
|
|
47
|
+
* when `horizontally` argument is set.
|
|
48
|
+
* Of course you can also programmatically increase and decrease the
|
|
49
|
+
* size of these variables for each edge, based on the amount of
|
|
50
|
+
* scrolling that has been done by the user. In this case, make sure
|
|
51
|
+
* to add a custom padding where the mixin is used, to override
|
|
52
|
+
* the paddings that are automatically added by the mixin in the
|
|
53
|
+
* compiled CSS code.
|
|
54
|
+
*/
|
|
55
|
+
/**
|
|
56
|
+
* This mixin will add an animated underline to the bottom of an `a` elements.
|
|
57
|
+
* Note that you may need to add `all: unset;` –depending on your use case–
|
|
58
|
+
* before using this mixin.
|
|
59
|
+
*/
|
|
60
|
+
/**
|
|
61
|
+
* This mixin creates a cross-browser font stack.
|
|
62
|
+
* - `sans-serif` can be used for the UI of the components.
|
|
63
|
+
* - `monospace` can be used for code.
|
|
64
|
+
*
|
|
65
|
+
* ⚠️ If we change the font stacks, we need to update
|
|
66
|
+
* 1. the consumer documentation in `README.md`, and
|
|
67
|
+
* 2. the CSS variables of `--kompendium-example-font-family`
|
|
68
|
+
* in the `<style>` tag of `index.html`.
|
|
69
|
+
*/
|
|
70
|
+
/**
|
|
71
|
+
* This mixin is a hack, using old CSS syntax
|
|
72
|
+
* to enable you to truncate a piece of text,
|
|
73
|
+
* after a certain number of lines.
|
|
74
|
+
*/
|
|
75
|
+
/**
|
|
76
|
+
* This mixin will add a chessboard background pattern,
|
|
77
|
+
* typically used to visualize transparency.
|
|
78
|
+
*/
|
|
79
|
+
/**
|
|
80
|
+
* Make a container resizable by the user.
|
|
81
|
+
* This is used in the documentations and examples
|
|
82
|
+
* of some components, to demonstrate how the component
|
|
83
|
+
* behaves in a resizable container.
|
|
84
|
+
*/
|
|
85
|
+
/**
|
|
86
|
+
* Drag to reorder mixins
|
|
87
|
+
*/
|
|
88
|
+
/**
|
|
89
|
+
* The breakpoints below are used to create responsive designs
|
|
90
|
+
* in Lime's products. Therefore, they are here to get distributed
|
|
91
|
+
* to all components in other private repos, which rely on this `mixins`
|
|
92
|
+
* file, to create consistent styles.
|
|
93
|
+
*
|
|
94
|
+
* :::important
|
|
95
|
+
* In very rare cases you should used media queries!
|
|
96
|
+
* Nowadays, there are many better ways of achieving responsive design
|
|
97
|
+
* without media queries. For example, using CSS Grid, Flexbox, and their features.
|
|
98
|
+
* :::
|
|
99
|
+
*/
|
|
100
|
+
/**
|
|
101
|
+
* Media query mixins for responsive design based on screen width.
|
|
102
|
+
* Note that these mixins do not detect the device type!
|
|
103
|
+
*/
|
|
104
|
+
:host(limel-resize-handle) {
|
|
105
|
+
position: absolute;
|
|
106
|
+
z-index: 1;
|
|
107
|
+
touch-action: none;
|
|
108
|
+
display: flex;
|
|
109
|
+
align-items: center;
|
|
110
|
+
justify-content: center;
|
|
111
|
+
border-radius: 100vh;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:host::before,
|
|
115
|
+
:host::after {
|
|
116
|
+
pointer-events: none;
|
|
117
|
+
content: "";
|
|
118
|
+
display: block;
|
|
119
|
+
position: absolute;
|
|
120
|
+
inset: 0;
|
|
121
|
+
border-radius: 100vh;
|
|
122
|
+
margin: auto;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
:host::before {
|
|
126
|
+
transition: scale 0.3s ease, opacity 0.3s ease;
|
|
127
|
+
transition-delay: 0.2s;
|
|
128
|
+
opacity: 0;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
:host::after {
|
|
132
|
+
transition: background-color 0.4s ease;
|
|
133
|
+
transition-delay: 0.2s;
|
|
134
|
+
background-color: rgb(var(--contrast-600));
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
:host([location=top]),
|
|
138
|
+
:host([location=bottom]) {
|
|
139
|
+
cursor: row-resize;
|
|
140
|
+
height: var(--limel-resize-handle-thickness, 0.5rem) !important;
|
|
141
|
+
right: 0;
|
|
142
|
+
left: 0;
|
|
143
|
+
}
|
|
144
|
+
:host([location=top])::before,
|
|
145
|
+
:host([location=bottom])::before {
|
|
146
|
+
scale: 1 0.9;
|
|
147
|
+
height: 0.5rem;
|
|
148
|
+
width: var(--limel-resize-handle-visual-length, auto);
|
|
149
|
+
}
|
|
150
|
+
:host([location=top])::after,
|
|
151
|
+
:host([location=bottom])::after {
|
|
152
|
+
height: 0.125rem;
|
|
153
|
+
width: var(--limel-resize-handle-visual-length, auto);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
:host([location=top]) {
|
|
157
|
+
top: 0;
|
|
158
|
+
}
|
|
159
|
+
:host([location=top])::before {
|
|
160
|
+
top: 0;
|
|
161
|
+
bottom: auto;
|
|
162
|
+
}
|
|
163
|
+
:host([location=top])::after {
|
|
164
|
+
top: calc((0.5rem - 0.125rem) / 2);
|
|
165
|
+
bottom: auto;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
:host([location=bottom]) {
|
|
169
|
+
bottom: 0;
|
|
170
|
+
}
|
|
171
|
+
:host([location=bottom])::before {
|
|
172
|
+
top: auto;
|
|
173
|
+
bottom: 0;
|
|
174
|
+
}
|
|
175
|
+
:host([location=bottom])::after {
|
|
176
|
+
top: auto;
|
|
177
|
+
bottom: calc((0.5rem - 0.125rem) / 2);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
:host([location=left]),
|
|
181
|
+
:host([location=right]) {
|
|
182
|
+
cursor: col-resize;
|
|
183
|
+
width: 0.5rem;
|
|
184
|
+
top: 0;
|
|
185
|
+
bottom: 0;
|
|
186
|
+
}
|
|
187
|
+
:host([location=left])::before,
|
|
188
|
+
:host([location=right])::before {
|
|
189
|
+
scale: 0.9 1;
|
|
190
|
+
}
|
|
191
|
+
:host([location=left])::after,
|
|
192
|
+
:host([location=right])::after {
|
|
193
|
+
width: 0.125rem;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
:host([location=left]) {
|
|
197
|
+
left: 0;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
:host([location=right]) {
|
|
201
|
+
right: 0;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
:host(:focus-visible) {
|
|
205
|
+
outline: none;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
:host(:hover)::before,
|
|
209
|
+
:host(:focus-visible)::before {
|
|
210
|
+
transition-duration: 0.46s;
|
|
211
|
+
transition-timing-function: ease-in;
|
|
212
|
+
opacity: 1;
|
|
213
|
+
scale: 1 1;
|
|
214
|
+
background-color: rgb(var(--color-sky-light), 0.4);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
:host(:hover)::after,
|
|
218
|
+
:host(:focus-visible)::after {
|
|
219
|
+
transition-duration: 0.2s;
|
|
220
|
+
transition-timing-function: ease-in;
|
|
221
|
+
background-color: rgb(var(--color-sky-default));
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
div {
|
|
225
|
+
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);
|
|
226
|
+
pointer-events: none;
|
|
227
|
+
position: relative;
|
|
228
|
+
z-index: 1;
|
|
229
|
+
display: flex;
|
|
230
|
+
gap: 0.25rem;
|
|
231
|
+
align-items: center;
|
|
232
|
+
justify-content: center;
|
|
233
|
+
width: fit-content;
|
|
234
|
+
padding: 0.1875rem 0.25rem;
|
|
235
|
+
border-radius: 100vh;
|
|
236
|
+
margin: auto;
|
|
237
|
+
background-color: var(--lime-elevated-surface-background-color);
|
|
238
|
+
box-shadow: var(--button-shadow-pressed);
|
|
239
|
+
}
|
|
240
|
+
div span {
|
|
241
|
+
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);
|
|
242
|
+
border-radius: 0.125rem;
|
|
243
|
+
width: 0.25rem;
|
|
244
|
+
height: 0.125rem;
|
|
245
|
+
background-color: rgb(var(--contrast-700));
|
|
246
|
+
}
|
|
247
|
+
:host([location=top]) div {
|
|
248
|
+
margin-top: 0;
|
|
249
|
+
margin-bottom: auto;
|
|
250
|
+
}
|
|
251
|
+
:host([location=bottom]) div {
|
|
252
|
+
margin-top: auto;
|
|
253
|
+
margin-bottom: 0;
|
|
254
|
+
}
|
|
255
|
+
:host([aria-orientation=vertical]) div {
|
|
256
|
+
rotate: 90deg;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
:host(:hover),
|
|
260
|
+
:host(:focus-visible) {
|
|
261
|
+
--limel-clickable-transition-speed: 0.2s;
|
|
262
|
+
--limel-clickable-transform-speed: 0.16s;
|
|
263
|
+
}
|
|
264
|
+
:host(:hover) div,
|
|
265
|
+
:host(:focus-visible) div {
|
|
266
|
+
will-change: background-color, box-shadow, transform;
|
|
267
|
+
transform: translate3d(0, -0.04rem, 0);
|
|
268
|
+
box-shadow: var(--button-shadow-normal);
|
|
269
|
+
}
|
|
270
|
+
:host(:hover) span,
|
|
271
|
+
:host(:focus-visible) span {
|
|
272
|
+
will-change: background-color;
|
|
273
|
+
background-color: var(--mdc-theme-primary);
|
|
274
|
+
}
|