@limetech/lime-elements 40.18.2 → 40.19.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 +25 -0
- package/dist/cjs/controlled-element-Ajn5eA-q.js +26 -0
- package/dist/cjs/{index-zZvs6xK-.js → index-DIiA99Er.js} +271 -71
- 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 +4 -4
- package/dist/cjs/limel-ai-avatar.cjs.entry.js +2 -2
- 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 +131 -39
- 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 +2 -2
- package/dist/cjs/limel-card.cjs.entry.js +1 -1
- package/dist/cjs/limel-chart.cjs.entry.js +1 -1
- package/dist/cjs/limel-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/limel-chip-set.cjs.entry.js +23 -4
- package/dist/cjs/limel-chip_2.cjs.entry.js +2 -2
- package/dist/cjs/limel-circular-progress.cjs.entry.js +1 -1
- package/dist/cjs/limel-code-diff.cjs.entry.js +2 -2
- package/dist/cjs/limel-code-editor.cjs.entry.js +2 -2
- package/dist/cjs/limel-collapsible-section.cjs.entry.js +2 -2
- 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 +3 -3
- package/dist/cjs/limel-drag-handle_2.cjs.entry.js +4 -4
- package/dist/cjs/limel-email-viewer.cjs.entry.js +2 -2
- package/dist/cjs/limel-file-dropzone_2.cjs.entry.js +2 -2
- package/dist/cjs/limel-file-viewer.cjs.entry.js +2 -2
- package/dist/cjs/limel-file.cjs.entry.js +2 -2
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +2 -2
- package/dist/cjs/limel-flex-container.cjs.entry.js +1 -1
- package/dist/cjs/limel-form-header.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_2.cjs.entry.js +3 -3
- package/dist/cjs/limel-helper-line_3.cjs.entry.js +15 -24
- 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 +3 -3
- package/dist/cjs/limel-markdown.cjs.entry.js +4 -4
- 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-jump.cjs.entry.js +1 -1
- package/dist/cjs/limel-pagination.cjs.entry.js +2 -2
- package/dist/cjs/limel-picker.cjs.entry.js +58 -36
- package/dist/cjs/limel-popover_2.cjs.entry.js +4 -11
- package/dist/cjs/limel-profile-picture.cjs.entry.js +1 -1
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +4 -4
- 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 +2 -2
- package/dist/cjs/limel-select.cjs.entry.js +10 -169
- package/dist/cjs/limel-shortcut.cjs.entry.js +1 -1
- package/dist/cjs/limel-side-panel.cjs.entry.js +2 -2
- package/dist/cjs/limel-slider.cjs.entry.js +4 -4
- package/dist/cjs/limel-snackbar.cjs.entry.js +3 -3
- 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 +3 -3
- package/dist/cjs/limel-text-editor-link-menu.cjs.entry.js +4 -4
- package/dist/cjs/limel-text-editor.cjs.entry.js +1 -1
- package/dist/cjs/live-message-BNl3Ihcz.js +65 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{markdown-exporter-VtX_2D1d.js → markdown-exporter-BWS2EBxq.js} +2 -2
- package/dist/cjs/{markdown-parser-BYtTHL4W.js → markdown-parser-toAp9-Eq.js} +1 -1
- package/dist/cjs/{translations-CLSqfR3x.js → translations-CqJEWcfw.js} +8 -0
- package/dist/cjs/typeahead-CnyIjog_.js +194 -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 +66 -3
- 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/form-header/form-header.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.css +13 -0
- package/dist/collection/components/input-field/input-field.js +152 -32
- package/dist/collection/components/list/list-renderer.js +1 -1
- package/dist/collection/components/list/list.js +31 -20
- 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.css +112 -0
- package/dist/collection/components/picker/picker.js +56 -32
- package/dist/collection/components/popover/popover.js +3 -10
- 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.js +1 -1
- 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.js +1 -1
- 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/translations/da.js +1 -0
- package/dist/collection/translations/de.js +1 -0
- package/dist/collection/translations/en.js +1 -0
- package/dist/collection/translations/fi.js +1 -0
- package/dist/collection/translations/fr.js +1 -0
- package/dist/collection/translations/nl.js +1 -0
- package/dist/collection/translations/no.js +1 -0
- package/dist/collection/translations/sv.js +1 -0
- package/dist/collection/util/controlled-element.js +22 -0
- package/dist/collection/util/live-message.js +30 -0
- package/dist/collection/util/typeahead.js +26 -0
- package/dist/esm/controlled-element-ByOXsysp.js +24 -0
- package/dist/esm/{index-BN64nlbO.js → index-CofmbCdQ.js} +271 -71
- 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 +4 -4
- package/dist/esm/limel-ai-avatar.entry.js +2 -2
- 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 +131 -39
- 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 +2 -2
- package/dist/esm/limel-card.entry.js +1 -1
- package/dist/esm/limel-chart.entry.js +1 -1
- package/dist/esm/limel-checkbox.entry.js +1 -1
- package/dist/esm/limel-chip-set.entry.js +23 -4
- 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 +2 -2
- package/dist/esm/limel-code-editor.entry.js +2 -2
- package/dist/esm/limel-collapsible-section.entry.js +2 -2
- 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 +3 -3
- package/dist/esm/limel-drag-handle_2.entry.js +4 -4
- package/dist/esm/limel-email-viewer.entry.js +2 -2
- package/dist/esm/limel-file-dropzone_2.entry.js +2 -2
- package/dist/esm/limel-file-viewer.entry.js +2 -2
- package/dist/esm/limel-file.entry.js +2 -2
- package/dist/esm/limel-flatpickr-adapter.entry.js +2 -2
- package/dist/esm/limel-flex-container.entry.js +1 -1
- package/dist/esm/limel-form-header.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_2.entry.js +3 -3
- package/dist/esm/limel-helper-line_3.entry.js +15 -24
- 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 +3 -3
- package/dist/esm/limel-markdown.entry.js +4 -4
- 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 +2 -2
- package/dist/esm/limel-picker.entry.js +57 -35
- package/dist/esm/limel-popover_2.entry.js +4 -11
- package/dist/esm/limel-profile-picture.entry.js +1 -1
- package/dist/esm/limel-prosemirror-adapter.entry.js +4 -4
- 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 +2 -2
- package/dist/esm/limel-select.entry.js +2 -161
- package/dist/esm/limel-shortcut.entry.js +1 -1
- package/dist/esm/limel-side-panel.entry.js +2 -2
- package/dist/esm/limel-slider.entry.js +4 -4
- package/dist/esm/limel-snackbar.entry.js +3 -3
- 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 +1 -1
- package/dist/esm/limel-tab-panel.entry.js +1 -1
- package/dist/esm/limel-table.entry.js +3 -3
- 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/live-message-BQAYeNiX.js +62 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{markdown-exporter-tb8ft8Gq.js → markdown-exporter-B2vFxSLw.js} +2 -2
- package/dist/esm/{markdown-parser-DFP65EFu.js → markdown-parser-Cw8iW5R9.js} +1 -1
- package/dist/esm/{translations-Drl5LNAD.js → translations-kct5Kybu.js} +8 -0
- package/dist/esm/typeahead-DOlnT3wh.js +188 -0
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-55f7c9f5.entry.js → p-02aac2c0.entry.js} +1 -1
- package/dist/lime-elements/{p-a608ebe3.entry.js → p-0319f07f.entry.js} +1 -1
- package/dist/lime-elements/{p-dd383c12.entry.js → p-0910aefc.entry.js} +1 -1
- package/dist/lime-elements/{p-a7a84633.entry.js → p-1a7d1d2b.entry.js} +1 -1
- package/dist/lime-elements/{p-f8566c5b.entry.js → p-1d9bc526.entry.js} +1 -1
- package/dist/lime-elements/{p-e0ab0046.entry.js → p-1e0ced6a.entry.js} +1 -1
- package/dist/lime-elements/{p-5f2a34ed.entry.js → p-28957b5c.entry.js} +1 -1
- package/dist/lime-elements/{p-fdc7da58.entry.js → p-38ab193f.entry.js} +1 -1
- package/dist/lime-elements/{p-3ae5fb67.entry.js → p-39d1e157.entry.js} +1 -1
- package/dist/lime-elements/{p-d0908a85.entry.js → p-3ac39bd5.entry.js} +2 -2
- package/dist/lime-elements/p-3ca188f6.entry.js +159 -0
- package/dist/lime-elements/{p-7f1a1ed5.entry.js → p-3f7fa772.entry.js} +1 -1
- package/dist/lime-elements/{p-b80433be.entry.js → p-40940a6c.entry.js} +1 -1
- package/dist/lime-elements/{p-7235d147.entry.js → p-438fe49b.entry.js} +1 -1
- package/dist/lime-elements/p-45572e9d.entry.js +1 -0
- package/dist/lime-elements/{p-0c314c3c.entry.js → p-47fe76a8.entry.js} +1 -1
- package/dist/lime-elements/p-4834e7c1.entry.js +1 -0
- package/dist/lime-elements/{p-22c44279.entry.js → p-48a412ed.entry.js} +1 -1
- package/dist/lime-elements/{p-eb5a18ff.entry.js → p-496b2437.entry.js} +1 -1
- package/dist/lime-elements/{p-5d9a2877.entry.js → p-4c080cd9.entry.js} +1 -1
- package/dist/lime-elements/{p-be0a8125.entry.js → p-54537c85.entry.js} +1 -1
- package/dist/lime-elements/{p-2c29c27f.entry.js → p-55fa19ae.entry.js} +1 -1
- package/dist/lime-elements/{p-da4b4a81.entry.js → p-5dce791c.entry.js} +1 -1
- package/dist/lime-elements/{p-b983531f.entry.js → p-6053608a.entry.js} +1 -1
- package/dist/lime-elements/{p-164e1ad0.entry.js → p-6ae093c8.entry.js} +1 -1
- package/dist/lime-elements/{p-29815107.entry.js → p-6d2d25b9.entry.js} +1 -1
- package/dist/lime-elements/{p-9e30d206.entry.js → p-6d9b89db.entry.js} +1 -1
- package/dist/lime-elements/{p-be2b8c1e.entry.js → p-6e9eeb0a.entry.js} +1 -1
- package/dist/lime-elements/{p-68129487.entry.js → p-764d2f86.entry.js} +1 -1
- package/dist/lime-elements/{p-49a53f0b.entry.js → p-7ab726c2.entry.js} +1 -1
- package/dist/lime-elements/{p-cced022b.entry.js → p-7b87e547.entry.js} +1 -1
- package/dist/lime-elements/{p-65eafc85.entry.js → p-7bf3bf8a.entry.js} +1 -1
- package/dist/lime-elements/{p-586ee40c.entry.js → p-7d0ffc60.entry.js} +1 -1
- package/dist/lime-elements/{p-fad7a3fa.entry.js → p-7f0743d6.entry.js} +1 -1
- package/dist/lime-elements/{p-7d27d572.entry.js → p-814b4934.entry.js} +1 -1
- package/dist/lime-elements/p-843886fe.entry.js +1 -0
- package/dist/lime-elements/p-8d602078.entry.js +1 -0
- package/dist/lime-elements/p-8fe28845.entry.js +1 -0
- package/dist/lime-elements/{p-f35880ef.entry.js → p-909466b8.entry.js} +1 -1
- package/dist/lime-elements/{p-545c087b.entry.js → p-933ffaa8.entry.js} +1 -1
- package/dist/lime-elements/p-94ae27e2.entry.js +23 -0
- package/dist/lime-elements/{p-cc8d6198.entry.js → p-95a486c8.entry.js} +1 -1
- package/dist/lime-elements/{p-565c85ac.entry.js → p-9b2623fe.entry.js} +1 -1
- package/dist/lime-elements/{p-C0wwdPYT.js → p-Bd37Vplf.js} +2 -2
- package/dist/lime-elements/p-ByOXsysp.js +1 -0
- package/dist/lime-elements/{p-_UXAljNc.js → p-CbPYnlF-.js} +1 -1
- package/dist/lime-elements/{p-Bgn2bikC.js → p-CvHpvp0f.js} +1 -1
- package/dist/lime-elements/p-Cw7VQSGU.js +1 -0
- package/dist/lime-elements/p-Dzp8dXTo.js +1 -0
- package/dist/lime-elements/{p-565e5ea7.entry.js → p-a6387dc7.entry.js} +1 -1
- package/dist/lime-elements/{p-40a48f70.entry.js → p-a6c6a31b.entry.js} +1 -1
- package/dist/lime-elements/{p-e8255f0b.entry.js → p-a7be03e1.entry.js} +1 -1
- package/dist/lime-elements/{p-67acf39d.entry.js → p-af7d07fd.entry.js} +1 -1
- package/dist/lime-elements/{p-707d4b28.entry.js → p-bffb5ed2.entry.js} +1 -1
- package/dist/lime-elements/{p-7035d93d.entry.js → p-c0ebf7cc.entry.js} +1 -1
- package/dist/lime-elements/{p-7aae3d13.entry.js → p-c2056ebc.entry.js} +1 -1
- package/dist/lime-elements/{p-19681a98.entry.js → p-c2f993cc.entry.js} +1 -1
- package/dist/lime-elements/{p-c73f4160.entry.js → p-c61e9b83.entry.js} +1 -1
- package/dist/lime-elements/{p-519603f5.entry.js → p-c6b3448c.entry.js} +1 -1
- package/dist/lime-elements/{p-153e91e1.entry.js → p-ce71c5b9.entry.js} +1 -1
- package/dist/lime-elements/{p-2a375a65.entry.js → p-d35d2859.entry.js} +1 -1
- package/dist/lime-elements/{p-26347009.entry.js → p-d3f13124.entry.js} +1 -1
- package/dist/lime-elements/{p-300f80e7.entry.js → p-d4702653.entry.js} +1 -1
- package/dist/lime-elements/{p-a2dc6645.entry.js → p-d8559847.entry.js} +1 -1
- package/dist/lime-elements/{p-c8f09dd5.entry.js → p-db9cb7ef.entry.js} +1 -1
- package/dist/lime-elements/{p-05c1f5a0.entry.js → p-e5abe390.entry.js} +1 -1
- package/dist/lime-elements/p-f036ad27.entry.js +1 -0
- package/dist/lime-elements/{p-2f5face5.entry.js → p-f59447bf.entry.js} +1 -1
- package/dist/lime-elements/{p-a81f6962.entry.js → p-f5bb17eb.entry.js} +1 -1
- package/dist/lime-elements/{p-9bbf2612.entry.js → p-f7a90228.entry.js} +1 -1
- package/dist/lime-elements/p-fYs7n6yY.js +1 -0
- package/dist/types/components/chip-set/chip-set.d.ts +15 -0
- package/dist/types/components/input-field/input-field.d.ts +19 -6
- package/dist/types/components/list/list-renderer-config.d.ts +1 -0
- package/dist/types/components/list/list.d.ts +6 -0
- package/dist/types/components/picker/picker.d.ts +12 -5
- package/dist/types/components/popover/popover.d.ts +0 -1
- package/dist/types/components.d.ts +46 -0
- package/dist/types/translations/da.d.ts +1 -0
- package/dist/types/translations/de.d.ts +1 -0
- package/dist/types/translations/en.d.ts +1 -0
- package/dist/types/translations/fi.d.ts +1 -0
- package/dist/types/translations/fr.d.ts +1 -0
- package/dist/types/translations/nl.d.ts +1 -0
- package/dist/types/translations/no.d.ts +1 -0
- package/dist/types/translations/sv.d.ts +1 -0
- package/dist/types/util/controlled-element.d.ts +11 -0
- package/dist/types/util/live-message.d.ts +17 -0
- package/dist/types/util/typeahead.d.ts +16 -0
- package/package.json +2 -2
- package/dist/cjs/dom-BWMDM6En.js +0 -32
- package/dist/esm/dom-B9Ofc5RB.js +0 -30
- package/dist/lime-elements/p-27d7c255.entry.js +0 -159
- package/dist/lime-elements/p-3c861ca8.entry.js +0 -23
- package/dist/lime-elements/p-513d2a5e.entry.js +0 -1
- package/dist/lime-elements/p-55abec82.entry.js +0 -1
- package/dist/lime-elements/p-6aae3f58.entry.js +0 -1
- package/dist/lime-elements/p-7af16e1d.entry.js +0 -1
- package/dist/lime-elements/p-813cb15c.entry.js +0 -1
- package/dist/lime-elements/p-895a68c5.entry.js +0 -1
- package/dist/lime-elements/p-B26k4gw8.js +0 -1
- package/dist/lime-elements/p-B9Ofc5RB.js +0 -1
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import translate from "../../global/translations";
|
|
2
|
-
import { h, } from "@stencil/core";
|
|
2
|
+
import { h, Host, } from "@stencil/core";
|
|
3
3
|
import { isDescendant } from "../../util/dom";
|
|
4
4
|
import { ARROW_DOWN, ARROW_UP, ENTER, ESCAPE, TAB } from "../../util/keycodes";
|
|
5
|
+
import { createLiveMessage } from "../../util/live-message";
|
|
5
6
|
import { createRandomString } from "../../util/random-string";
|
|
7
|
+
import { isTextEditingKey } from "../../util/typeahead";
|
|
6
8
|
import { getIconFillColor, getIconName } from "../icon/get-icon-props";
|
|
7
9
|
import { debounce } from "lodash-es";
|
|
8
10
|
const SEARCH_DEBOUNCE = 300;
|
|
@@ -91,11 +93,13 @@ export class Picker {
|
|
|
91
93
|
*/
|
|
92
94
|
this.badgeIcons = false;
|
|
93
95
|
this.textValue = '';
|
|
96
|
+
this.suggestionsEngaged = false;
|
|
94
97
|
this.loading = false;
|
|
95
98
|
this.chips = [];
|
|
96
99
|
// Should NOT be decorated with State(), since this
|
|
97
100
|
// should not trigger a re-render by itself.
|
|
98
101
|
this.chipSetEditMode = false;
|
|
102
|
+
this.suggestionsMessage = createLiveMessage(() => this.getSuggestionsMessage());
|
|
99
103
|
this.getValueId = (item) => {
|
|
100
104
|
const value = item.value;
|
|
101
105
|
if (!!value && typeof value === 'object') {
|
|
@@ -174,8 +178,12 @@ export class Picker {
|
|
|
174
178
|
this.chipSet = this.host.shadowRoot.querySelector(CHIP_SET_TAG_NAME);
|
|
175
179
|
this.updateTabIndex();
|
|
176
180
|
}
|
|
181
|
+
componentDidRender() {
|
|
182
|
+
this.suggestionsMessage.update();
|
|
183
|
+
}
|
|
177
184
|
disconnectedCallback() {
|
|
178
185
|
this.debouncedSearch.cancel();
|
|
186
|
+
this.suggestionsMessage.update.cancel();
|
|
179
187
|
}
|
|
180
188
|
onDisabledChange() {
|
|
181
189
|
this.updateTabIndex();
|
|
@@ -195,13 +203,11 @@ export class Picker {
|
|
|
195
203
|
}
|
|
196
204
|
render() {
|
|
197
205
|
const props = {};
|
|
206
|
+
const dropdownContent = this.getDropdownContentList();
|
|
198
207
|
if (!this.multiple) {
|
|
199
208
|
props.maxItems = 1;
|
|
200
209
|
}
|
|
201
|
-
return
|
|
202
|
-
h("limel-chip-set", Object.assign({ key: 'eed0789b538bd50638936e1c6ad7e9deaef954ec', 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
|
-
this.renderDropdown(),
|
|
204
|
-
];
|
|
210
|
+
return (h(Host, { key: 'b8a2414331b89aa646ecdab2a0e5fb9bfce06de4' }, h("limel-chip-set", Object.assign({ key: 'bf4fe7ed7973f40c903116cd538f485e3f44881d', 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, suggestionListId: this.canOpenList() ? this.portalId : undefined, suggestionListOpen: this.suggestionsEngaged && dropdownContent.length > 0 }, props)), this.renderPortal(dropdownContent), h("span", { key: '3967fc14d3207567c5976c48c1154b96ea3fe285', class: "suggestions-message", "aria-live": "polite", ref: this.suggestionsMessage.setElement })));
|
|
205
211
|
}
|
|
206
212
|
onChangeValue() {
|
|
207
213
|
this.chips = this.createChips(this.value);
|
|
@@ -213,27 +219,44 @@ export class Picker {
|
|
|
213
219
|
return null;
|
|
214
220
|
}
|
|
215
221
|
/**
|
|
216
|
-
*
|
|
217
|
-
* is waiting for items to be received
|
|
222
|
+
* Collects what the dropdown shows: the items to pick from, or a spinner
|
|
223
|
+
* if the picker is waiting for items to be received, and the actions. The
|
|
224
|
+
* dropdown is open when there is anything to show.
|
|
218
225
|
*
|
|
219
|
-
* @returns
|
|
226
|
+
* @returns the pieces of the dropdown
|
|
220
227
|
*/
|
|
221
|
-
|
|
228
|
+
getDropdownContentList() {
|
|
222
229
|
const dropDownContent = this.getDropdownContent();
|
|
223
230
|
const content = [];
|
|
224
231
|
if (this.shouldShowDropDownContent()) {
|
|
225
232
|
const actionContent = this.getActionContent();
|
|
226
|
-
if (this.actionPosition === 'top') {
|
|
233
|
+
if (actionContent && this.actionPosition === 'top') {
|
|
227
234
|
content.push(actionContent);
|
|
228
235
|
}
|
|
229
236
|
if (dropDownContent) {
|
|
230
237
|
content.push(dropDownContent);
|
|
231
238
|
}
|
|
232
|
-
if (this.actionPosition === 'bottom') {
|
|
239
|
+
if (actionContent && this.actionPosition === 'bottom') {
|
|
233
240
|
content.push(actionContent);
|
|
234
241
|
}
|
|
235
242
|
}
|
|
236
|
-
return
|
|
243
|
+
return content;
|
|
244
|
+
}
|
|
245
|
+
getSuggestionsMessage() {
|
|
246
|
+
var _a;
|
|
247
|
+
if (!this.shouldShowDropDownContent()) {
|
|
248
|
+
return '';
|
|
249
|
+
}
|
|
250
|
+
if (this.loading) {
|
|
251
|
+
return translate.get('loading', this.language);
|
|
252
|
+
}
|
|
253
|
+
if (!((_a = this.items) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
254
|
+
return this.textValue === '' ? '' : this.getEmptyResultMessage();
|
|
255
|
+
}
|
|
256
|
+
const count = this.items.filter((item) => !('separator' in item)).length;
|
|
257
|
+
return count
|
|
258
|
+
? translate.get('suggestions.available', this.language, { count })
|
|
259
|
+
: '';
|
|
237
260
|
}
|
|
238
261
|
getActionContent() {
|
|
239
262
|
var _a, _b;
|
|
@@ -247,17 +270,17 @@ export class Picker {
|
|
|
247
270
|
'is-on-top': this.actionPosition === 'top',
|
|
248
271
|
'is-at-bottom': this.actionPosition === 'bottom',
|
|
249
272
|
'has-position-sticky': this.actionScrollBehavior === 'sticky',
|
|
250
|
-
}, badgeIcons: true, type: 'selectable', onChange: this.handleActionListChange, items: this.actions.map(this.removeUnusedPropertiesOnAction) }),
|
|
273
|
+
}, badgeIcons: true, type: 'selectable', onChange: this.handleActionListChange, onKeyDown: this.onListKeyDown, items: this.actions.map(this.removeUnusedPropertiesOnAction) }),
|
|
251
274
|
];
|
|
252
275
|
}
|
|
253
276
|
removeUnusedPropertiesOnAction(action) {
|
|
254
277
|
return Object.assign(Object.assign({}, action), { actions: [] });
|
|
255
278
|
}
|
|
279
|
+
canOpenList() {
|
|
280
|
+
return !this.readonly && !this.isFull();
|
|
281
|
+
}
|
|
256
282
|
shouldShowDropDownContent() {
|
|
257
|
-
|
|
258
|
-
return false;
|
|
259
|
-
}
|
|
260
|
-
return !!this.chipSetEditMode;
|
|
283
|
+
return this.canOpenList() && !!this.chipSetEditMode;
|
|
261
284
|
}
|
|
262
285
|
getDropdownContent() {
|
|
263
286
|
var _a;
|
|
@@ -297,11 +320,14 @@ export class Picker {
|
|
|
297
320
|
padding: '1rem 0',
|
|
298
321
|
} }, h("limel-spinner", { limeBranded: false })));
|
|
299
322
|
}
|
|
300
|
-
|
|
301
|
-
|
|
323
|
+
getEmptyResultMessage() {
|
|
324
|
+
return (this.emptyResultMessage ||
|
|
302
325
|
translate.get('picker.no-matching-results', this.language, {
|
|
303
326
|
query: this.textValue,
|
|
304
|
-
});
|
|
327
|
+
}));
|
|
328
|
+
}
|
|
329
|
+
renderEmptyMessage() {
|
|
330
|
+
const text = this.getEmptyResultMessage();
|
|
305
331
|
const style = {
|
|
306
332
|
color: 'rgb(var(--contrast-1100))',
|
|
307
333
|
textAlign: 'center',
|
|
@@ -311,7 +337,7 @@ export class Picker {
|
|
|
311
337
|
return h("p", { style: style }, text);
|
|
312
338
|
}
|
|
313
339
|
renderListResult() {
|
|
314
|
-
return (h("limel-list", { badgeIcons: this.badgeIcons, onChange: this.handleListChange, onKeyDown: this.onListKeyDown, type: "selectable", items: this.items }));
|
|
340
|
+
return (h("limel-list", { "data-suggestions": "", accessibleLabel: this.label || this.searchLabel, badgeIcons: this.badgeIcons, onChange: this.handleListChange, onKeyDown: this.onListKeyDown, type: "selectable", items: this.items }));
|
|
315
341
|
}
|
|
316
342
|
onListKeyDown(event) {
|
|
317
343
|
if (event.key === ESCAPE) {
|
|
@@ -323,7 +349,7 @@ export class Picker {
|
|
|
323
349
|
this.chipSet.setFocus();
|
|
324
350
|
return;
|
|
325
351
|
}
|
|
326
|
-
if ([TAB, ENTER].includes(event.key)) {
|
|
352
|
+
if ([TAB, ENTER].includes(event.key) || isTextEditingKey(event)) {
|
|
327
353
|
this.chipSet.setFocus();
|
|
328
354
|
}
|
|
329
355
|
}
|
|
@@ -347,6 +373,7 @@ export class Picker {
|
|
|
347
373
|
isDescendant(element, portalElement)) {
|
|
348
374
|
return;
|
|
349
375
|
}
|
|
376
|
+
this.suggestionsEngaged = false;
|
|
350
377
|
this.clearInputField();
|
|
351
378
|
}
|
|
352
379
|
/**
|
|
@@ -358,6 +385,7 @@ export class Picker {
|
|
|
358
385
|
event.stopPropagation();
|
|
359
386
|
const query = event.detail;
|
|
360
387
|
this.textValue = query;
|
|
388
|
+
this.suggestionsEngaged = true;
|
|
361
389
|
this.debouncedSearch(query);
|
|
362
390
|
// If the search-query is an empty string, bypass debouncing.
|
|
363
391
|
if (query === '') {
|
|
@@ -452,10 +480,8 @@ export class Picker {
|
|
|
452
480
|
* @param event - event
|
|
453
481
|
*/
|
|
454
482
|
handleInputKeyDown(event) {
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
!event.metaKey &&
|
|
458
|
-
!event.shiftKey;
|
|
483
|
+
var _a;
|
|
484
|
+
this.suggestionsEngaged = true;
|
|
459
485
|
const isUp = event.key === ARROW_UP;
|
|
460
486
|
const isDown = event.key === ARROW_DOWN;
|
|
461
487
|
const isEscape = event.key === ESCAPE;
|
|
@@ -465,14 +491,14 @@ export class Picker {
|
|
|
465
491
|
this.handleEscape();
|
|
466
492
|
return;
|
|
467
493
|
}
|
|
468
|
-
if (!
|
|
494
|
+
if (!isUp && !isDown) {
|
|
469
495
|
return;
|
|
470
496
|
}
|
|
471
|
-
const list = document.querySelector(` #${this.portalId} limel-list`);
|
|
497
|
+
const list = (_a = document.querySelector(` #${this.portalId} limel-list[data-suggestions]`)) !== null && _a !== void 0 ? _a : document.querySelector(` #${this.portalId} limel-list`);
|
|
472
498
|
if (!list) {
|
|
473
499
|
return;
|
|
474
500
|
}
|
|
475
|
-
if (
|
|
501
|
+
if (isDown) {
|
|
476
502
|
// Match by class only (not `:first-child`) so a leading
|
|
477
503
|
// `ListSeparator` doesn't shadow the first focusable item.
|
|
478
504
|
const listElement = list.shadowRoot.querySelector('.mdc-deprecated-list-item');
|
|
@@ -483,9 +509,6 @@ export class Picker {
|
|
|
483
509
|
listElement.focus();
|
|
484
510
|
return;
|
|
485
511
|
}
|
|
486
|
-
if (!isUp) {
|
|
487
|
-
return;
|
|
488
|
-
}
|
|
489
512
|
const listItems = list.shadowRoot.querySelectorAll('.mdc-deprecated-list-item');
|
|
490
513
|
const listElement = [...listItems].at(-1);
|
|
491
514
|
if (!listElement) {
|
|
@@ -1028,6 +1051,7 @@ export class Picker {
|
|
|
1028
1051
|
return {
|
|
1029
1052
|
"items": {},
|
|
1030
1053
|
"textValue": {},
|
|
1054
|
+
"suggestionsEngaged": {},
|
|
1031
1055
|
"loading": {},
|
|
1032
1056
|
"chips": {}
|
|
1033
1057
|
};
|
|
@@ -4,6 +4,7 @@ import { zipObject } from "lodash-es";
|
|
|
4
4
|
import { portalContains } from "../portal/contains";
|
|
5
5
|
import { ESCAPE } from "../../util/keycodes";
|
|
6
6
|
import { focusTriggerElement } from "../../util/focus-trigger-element";
|
|
7
|
+
import { setControlledElement } from "../../util/controlled-element";
|
|
7
8
|
/**
|
|
8
9
|
* A popover is an impermanent layer that is displayed on top of other content
|
|
9
10
|
* when user taps an element that triggers the popover. This element can be
|
|
@@ -83,7 +84,7 @@ export class Popover {
|
|
|
83
84
|
// `aria-expanded` is needed even when the popover is closed. Without
|
|
84
85
|
// it, the trigger reads as an ordinary button to a screen reader.
|
|
85
86
|
element.setAttribute('aria-expanded', this.open ? 'true' : 'false');
|
|
86
|
-
this.
|
|
87
|
+
setControlledElement(element, this.portalId);
|
|
87
88
|
element.setAttribute('role', 'button');
|
|
88
89
|
};
|
|
89
90
|
this.portalId = createRandomString();
|
|
@@ -142,7 +143,7 @@ export class Popover {
|
|
|
142
143
|
render() {
|
|
143
144
|
const cssProperties = this.getCssProperties();
|
|
144
145
|
const popoverZIndex = getComputedStyle(this.host).getPropertyValue('--popover-z-index');
|
|
145
|
-
return (h("div", { key: '
|
|
146
|
+
return (h("div", { key: '25f9721cd8faad3f7f8d2d6f6f5152bfa507783c', class: "trigger-anchor" }, h("slot", { key: 'b3a48d53f82b3caaf6ba3123b8df0c6b2880a6d7', name: "trigger", ref: this.setTriggerRef }), h("limel-portal", { key: '3707b6a5157e89bc57f0687ef2ca74a592226e70', visible: this.open, containerId: this.portalId, containerStyle: { 'z-index': popoverZIndex }, openDirection: this.openDirection }, h("limel-popover-surface", { key: 'bb5eb9c961732fe8582cc3e95787803efec6e6a4', contentCollection: this.host.children, popupRole: this.getNamedPopupRole(), accessibleLabel: this.accessibleLabel, style: cssProperties }))));
|
|
146
147
|
}
|
|
147
148
|
globalClickListener(event) {
|
|
148
149
|
const element = event.target;
|
|
@@ -177,14 +178,6 @@ export class Popover {
|
|
|
177
178
|
}
|
|
178
179
|
this.hasWarnedAboutMissingName = hasNoName;
|
|
179
180
|
}
|
|
180
|
-
setControlledPopup(element) {
|
|
181
|
-
const popup = document.querySelector(`#${this.portalId}`);
|
|
182
|
-
if ('ariaControlsElements' in element) {
|
|
183
|
-
element.ariaControlsElements = popup ? [popup] : null;
|
|
184
|
-
return;
|
|
185
|
-
}
|
|
186
|
-
element.setAttribute('aria-controls', this.portalId);
|
|
187
|
-
}
|
|
188
181
|
static get is() { return "limel-popover"; }
|
|
189
182
|
static get encapsulation() { return "shadow"; }
|
|
190
183
|
static get originalStyleUrls() {
|
|
@@ -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: 'b3b766fa5d9b26b48136c0856bbfb40745498b7c', class: "limel-popover-surface", tabindex: "0", role: this.popupRole, "aria-label": this.accessibleLabel }));
|
|
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: '37784f868a6be293c052c90eaa87b40f97717694' });
|
|
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: 'b9c2e1312803c82e8729e0f55b2e2c06e24c00a0', 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: '9fd754e0cad07b0dafc27ff12966f1ecc43ac94c', 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: 'e6dfb4a56fd955db9718400bdf9f1315d768883c', type: "radio", id: this.id, checked: this.checked, disabled: this.disabled, onChange: this.onChange }), h("div", { key: '371b6ff8362f34dc1dcedb254c99246c36bbd8db', class: "box" }), h("label", { key: '2a65aee91c5f82a13b9e469f6bd5eb9126d798cf', 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() {
|
|
@@ -84,7 +84,7 @@ export class ResizeHandle {
|
|
|
84
84
|
}
|
|
85
85
|
render() {
|
|
86
86
|
const name = this.getName();
|
|
87
|
-
return (h(Host, { key: '
|
|
87
|
+
return (h(Host, { key: 'ae82ff62dfeb954f5dec181a8d3e0a0e564e0219', onKeyDown: this.handleKeyDown, onPointerEnter: this.handlePointerEnter, onPointerLeave: this.handlePointerLeave }, h("div", { key: '68826930c86850047893b5f8edcb8203000b0126', role: "separator", id: SEPARATOR_ID, tabindex: "0", "aria-orientation": getOrientation(this.location), "aria-label": name, "aria-valuenow": this.value, "aria-valuemin": this.min, "aria-valuemax": this.max, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '15be73014f20e7788cdb3a9ff0d332a0c036a1fe', role: "presentation" }, h("span", { key: '69e9b4c0496d659db9b82d91339ab60e455b8bcc' }), h("span", { key: '9549feb07707e9ba8751ab4d06e6c2b5f9d1bbd7' }), h("span", { key: '4ce59a99ca80989774915fa499a5251ef041db83' }))), h("limel-tooltip", { key: 'cbadd628e570b83c4bd3944e7e87d5834dbcd418', elementId: SEPARATOR_ID, label: name, helperLabel: this.getHint(), openDirection: this.location })));
|
|
88
88
|
}
|
|
89
89
|
getName() {
|
|
90
90
|
if (!this.resizableRegionLabel) {
|
|
@@ -87,12 +87,12 @@ export class Scroller {
|
|
|
87
87
|
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
88
88
|
}
|
|
89
89
|
render() {
|
|
90
|
-
return (h(Host, { key: '
|
|
90
|
+
return (h(Host, { key: '78f61e7088a1810df15e343a8efe7e5b9600ed40' }, h("div", { key: 'fab873acfcd0635b23321c97724f5d43dffdac57', class: {
|
|
91
91
|
scroller: true,
|
|
92
92
|
[this.orientation]: true,
|
|
93
93
|
'can-scroll-to-start': this.canScrollToStart,
|
|
94
94
|
'can-scroll-to-end': this.canScrollToEnd,
|
|
95
|
-
} }, h("div", { key: '
|
|
95
|
+
} }, h("div", { key: '660a1d2df42aa6087065b1ace5d538ec64e59d6a', class: "scroll-area", ref: (element) => (this.scrollArea = element), onScroll: this.updateScrollability, onFocusin: this.revealFocusedItem }, h("div", { key: '9ec447c273092f67a645676f0c5f34e6d08c128f', class: "scroll-content", ref: (element) => (this.scrollContent = element) }, h("slot", { key: '67385c7bd003d7062b045250afedc0ca21f5e5f8', ref: (element) => (this.slotElement = element) }))), this.renderEdge('start'), this.renderEdge('end'))));
|
|
96
96
|
}
|
|
97
97
|
renderEdge(edge) {
|
|
98
98
|
return [
|
|
@@ -183,7 +183,7 @@ export class Select {
|
|
|
183
183
|
}
|
|
184
184
|
render() {
|
|
185
185
|
const dropdownZIndex = getComputedStyle(this.host).getPropertyValue('--dropdown-z-index');
|
|
186
|
-
return (h(SelectTemplate, { key: '
|
|
186
|
+
return (h(SelectTemplate, { key: '4e7a0b4acfc0a76fa2e10089d974796a08b81f22', id: this.portalId, disabled: this.disabled, 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() }));
|
|
187
187
|
}
|
|
188
188
|
watchOpen(newValue, oldValue) {
|
|
189
189
|
if (this.checkValid) {
|
|
@@ -61,7 +61,7 @@ export class Shortcut {
|
|
|
61
61
|
render() {
|
|
62
62
|
var _a, _b, _c, _d, _e;
|
|
63
63
|
const rel = getRel((_a = this.link) === null || _a === void 0 ? void 0 : _a.target, (_b = this.link) === null || _b === void 0 ? void 0 : _b.rel);
|
|
64
|
-
return (h(Host, { key: '
|
|
64
|
+
return (h(Host, { key: '85fa2d40b55cf7760d741790a1c46aed214b9138', onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, h("a", { key: 'd0947264d9e635538b680c49f6d63d9b1fe5c276', "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 }, h("limel-icon", { key: '49f8738c4f675badac5c048a74b15070f883e425', name: this.icon }), h("limel-3d-hover-effect-glow", { key: 'd079dc72de9f71b9694ce6dad18f37082ebf4c8b' })), this.renderLabel(), this.renderNotification()));
|
|
65
65
|
}
|
|
66
66
|
static get is() { return "limel-shortcut"; }
|
|
67
67
|
static get encapsulation() { return "shadow"; }
|
|
@@ -233,7 +233,7 @@ export class SidePanel {
|
|
|
233
233
|
.querySelector('button.close')) === null || _a === void 0 ? void 0 : _a.focus();
|
|
234
234
|
}
|
|
235
235
|
render() {
|
|
236
|
-
return (h(Host, { key: '
|
|
236
|
+
return (h(Host, { key: '9b897330f9b462ea664d78d5886c1a192b95b037' }, h("section", { key: 'dd60b5b91233d1dedde3fbdabf6145a2f008e99a', ref: this.setPanel, role: "dialog", "aria-label": this.label, tabindex: "-1" }, this.renderHandle(), h("div", { key: 'd6e145ccba5ca797168eeb39da030844a03d1dc1', class: "content" }, h("div", { key: 'f1b5b41bcd39b5b1192ed080ddb770a7b5f694ac', class: "toolbar" }, this.renderCloseButton(), this.renderActions()), this.renderHeader(), this.renderBody())), this.renderStack(), h("span", { key: 'b84046762f4f9c81a8a93eb388037b7565f6457a', "data-limit": "min", ref: this.setMinLimit }), h("span", { key: '2a3c7a1084875e6d57fe401716e550a365d8adc8', "data-limit": "max", ref: this.setMaxLimit })));
|
|
237
237
|
}
|
|
238
238
|
// A native button and not `limel-icon-button`, because the hover animation
|
|
239
239
|
// styles the icon, which is inside the shadow root of `limel-icon-button`.
|
|
@@ -271,15 +271,15 @@ export class Slider {
|
|
|
271
271
|
if (this.disabled || this.readonly) {
|
|
272
272
|
inputProps.disabled = true;
|
|
273
273
|
}
|
|
274
|
-
return (h(Host, { key: '
|
|
274
|
+
return (h(Host, { key: 'f36c727962bfff9e4b4d1f59659edf19e3d7966f', class: this.getContainerClassList() }, h("limel-notched-outline", { key: '0e87be789bc4f5462b45d9ac9e7f2318ca59000f', labelId: this.inputId, label: this.label, required: this.required, invalid: this.invalid, disabled: this.disabled, readonly: this.readonly, hasValue: !this.isUnset, hasFloatingLabel: true }, h("div", { key: '2d46c8256b2497a041ad0ef70a17a8a9c3a68646', slot: "content" }, h("div", { key: '55f05f623a70dd946189a70b399372c1409757e2', class: "slider", style: { '--slider-fraction': `${fraction}` } }, h("input", Object.assign({ key: 'f56b592cdab90fd824081529800ad995b0129dc4', id: this.inputId, type: "range", min: min, max: max, value: this.displayValue, "aria-describedby": this.helperText
|
|
275
275
|
? this.helperTextId
|
|
276
276
|
: undefined, "aria-invalid": this.invalid ? 'true' : undefined, "aria-valuetext": this.isUnset
|
|
277
277
|
? translate.get('value-not-set', this.language)
|
|
278
278
|
: undefined, ref: (el) => {
|
|
279
279
|
this.inputElement = el;
|
|
280
|
-
}, onInput: this.handleInput, onChange: this.handleChange, onClick: this.handleClick }, inputProps)), h("div", { key: '
|
|
280
|
+
}, onInput: this.handleInput, onChange: this.handleChange, onClick: this.handleClick }, inputProps)), h("div", { key: 'bc8caf7e40128a09bd09c5dfaa1932702a3181ec', class: "track" }, h("div", { key: 'b76f3d65f499dfc0b0c689bc1f18af79842847e1', class: "active" }), this.renderStepDots(min, max)), h("div", { key: '197a21d948777705839baf6c9e37606675d92952', class: "thumb" }, h("div", { key: 'e9f5ec56849f8165071d6c0b79f0366b4dbe664d', class: "knob" }), h("div", { key: '932a98222a1bd85cfcec64f318aaf7acb9b03e97', class: "indicator", "aria-hidden": "true" }, this.isUnset
|
|
281
281
|
? '\u{2194}\u{FE0E}'
|
|
282
|
-
: this.displayValue))), h("div", { key: '
|
|
282
|
+
: this.displayValue))), h("div", { key: '19f3779a56a21d317bf350f99a5f93068b1be09d', class: "range-labels" }, h("span", { key: '4e4ad708a44753912606aa177dfe6a7c742138fe', class: "min" }, this.multiplyByFactor(this.valuemin), this.unit), h("span", { key: 'b9e990eabfbe6284c732189be3609cc476caf169', class: "max" }, this.multiplyByFactor(this.valuemax), this.unit)))), this.renderClearButton(), this.renderHelperLine()));
|
|
283
283
|
}
|
|
284
284
|
watchValue() {
|
|
285
285
|
this.syncStateFromValue();
|
|
@@ -122,14 +122,14 @@ export class Snackbar {
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
render() {
|
|
125
|
-
return (h("aside", { key: '
|
|
125
|
+
return (h("aside", { key: '86271cf61d1b060d3f12b753be16190d111ea3d1', popover: "manual", style: {
|
|
126
126
|
'--snackbar-timeout': `${Math.max(this.timeout || 0, 0)}ms`,
|
|
127
127
|
'--snackbar-distance-to-top-edge': `${this.offset}px`,
|
|
128
128
|
}, class: {
|
|
129
129
|
open: this.open,
|
|
130
130
|
'is-closing': this.closing,
|
|
131
131
|
'limel-portal--parent': true,
|
|
132
|
-
}, id: this.snackbarId, role: this.setAriaRoles(), "aria-atomic": this.open ? 'true' : undefined, "aria-relevant": this.open ? 'additions' : undefined }, h("div", { key: '
|
|
132
|
+
}, id: this.snackbarId, role: this.setAriaRoles(), "aria-atomic": this.open ? 'true' : undefined, "aria-relevant": this.open ? 'additions' : undefined }, h("div", { key: 'cf0e868a834c0ec189cb42a6f22bbc7435d9f566', class: "surface" }, h("limel-markdown", { key: '4d55bc3eac78572795aaa1eef0d3d43721150123', class: "label", value: this.message }), this.renderActions(this.actionText), this.renderDismissButton(this.dismissible))));
|
|
133
133
|
}
|
|
134
134
|
setAriaRoles() {
|
|
135
135
|
if (!this.open) {
|
|
@@ -16,7 +16,7 @@ export class Spinner {
|
|
|
16
16
|
this.limeBranded = false;
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '298ed5130e128e780cef1017670d9252928678cd' }, h("svg", { key: 'ae79c4ffb443afdd9a905e2e277c3ca445ef5e2f', viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, this.renderSpinner())));
|
|
20
20
|
}
|
|
21
21
|
renderSpinner() {
|
|
22
22
|
if (!this.limeBranded) {
|
|
@@ -55,9 +55,9 @@ export class SplitButton {
|
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
|
-
return (h(Host, { key: '
|
|
58
|
+
return (h(Host, { key: 'e9fb690c19e7e7276bbe1457f7c9ddf34535f2e5', class: {
|
|
59
59
|
'has-menu': this.items.length > 0,
|
|
60
|
-
}, onClick: this.filterClickWhenDisabled }, h("limel-button", { key: '
|
|
60
|
+
}, onClick: this.filterClickWhenDisabled }, h("limel-button", { key: '3dbc886df3854572ef0a1655aa815925150a6987', label: this.label, primary: this.primary, icon: this.icon, disabled: this.disabled, loading: this.loading, loadingFailed: this.loadingFailed }), this.renderMenu()));
|
|
61
61
|
}
|
|
62
62
|
static get is() { return "limel-split-button"; }
|
|
63
63
|
static get encapsulation() { return "shadow"; }
|
|
@@ -79,7 +79,7 @@ export class Switch {
|
|
|
79
79
|
removeEnterClickable(this.host);
|
|
80
80
|
}
|
|
81
81
|
render() {
|
|
82
|
-
return (h(Host, { key: '
|
|
82
|
+
return (h(Host, { key: 'dd5e5f289e3d62bfe697d93b178ffc0ecd84e498' }, this.readonly
|
|
83
83
|
? this.renderReadonly()
|
|
84
84
|
: this.renderInteractive(), this.renderHelperLine()));
|
|
85
85
|
}
|
|
@@ -101,7 +101,7 @@ export class TabBar {
|
|
|
101
101
|
}
|
|
102
102
|
render() {
|
|
103
103
|
const tabStop = findTabStop(this.tabs, this.tabs.findIndex((tab) => tab.active), this.getNavigationOptions());
|
|
104
|
-
return (h("div", { key: '
|
|
104
|
+
return (h("div", { key: '520c0e3987f3de626ca2c01809b42b504146eb76', role: "tablist", "aria-orientation": this.getOrientation(), onKeyDown: this.handleKeyDown }, h("limel-scroller", { key: '60512f257f8ef89cc0b6142ac80d515060bbbba0', orientation: this.getOrientation() }, this.tabs.map((tab, index) => this.renderTabOrMovableTab(tab, index, index === tabStop)))));
|
|
105
105
|
}
|
|
106
106
|
tabsChanged(newTabs = [], oldTabs = []) {
|
|
107
107
|
const newIds = newTabs.map((tab) => tab.id);
|
|
@@ -75,7 +75,7 @@ export class TabPanel {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
render() {
|
|
78
|
-
return (h(Host, { key: '
|
|
78
|
+
return (h(Host, { key: 'b914d64b43fdcb450e1e4d229952a1a9af8b7eed', onChangeTab: this.handleChangeTabs }, h("div", { key: 'b01a95d321115f07399d3ee40780f234bf8a3ed7', class: "tab-panel" }, h("limel-tab-bar", { key: '96a9dc357929d64c3dbbbb23441b5729efea33b3', tabs: this.tabs, orientation: this.orientation, allowTabReorder: this.allowTabReorder }), h("div", { key: '0dd475dbc1fbc58a3e826dec668d35b1ce0f4318', class: "tab-content" }, h("slot", { key: '3918e9fc54b588e898c8280fc92e89270fd896a1' })))));
|
|
79
79
|
}
|
|
80
80
|
setSlotElements() {
|
|
81
81
|
const slot = this.getSlot();
|
|
@@ -757,13 +757,13 @@ export class Table {
|
|
|
757
757
|
render() {
|
|
758
758
|
var _a, _b;
|
|
759
759
|
const totalRows = (_a = this.totalRows) !== null && _a !== void 0 ? _a : this.data.length;
|
|
760
|
-
return (h(Host, { key: '
|
|
760
|
+
return (h(Host, { key: '14890d8a92126d1e7e07071b40f745a3bc110ef4', class: {
|
|
761
761
|
'has-low-density': this.layout === 'lowDensity',
|
|
762
762
|
'has-pagination-on-top': this.paginationLocation === 'top',
|
|
763
763
|
'has-aggregation': this.hasAggregation(this.columns),
|
|
764
764
|
'has-pagination': totalRows > this.pageSize,
|
|
765
765
|
'has-selection': (_b = this.tableSelection) === null || _b === void 0 ? void 0 : _b.hasSelection,
|
|
766
|
-
} }, h("div", { key: '
|
|
766
|
+
} }, h("div", { key: '07aec37799ff2dd44949e24655b44da04b9ae4de', id: "tabulator-container" }, h("div", { key: '97984b2a9bf59cef4b04395cbb1248c48bac5bc3', id: "tabulator-loader", style: { display: this.loading ? 'flex' : 'none' } }, h("limel-spinner", { key: '29a35c732185becb5192c854ad1bceea43a395fd', size: "large" })), this.renderEmptyMessage(), this.renderSelectAll(), h("div", { key: '22a46313cf345b16e17b4ddc46283a3610accac5', id: "tabulator-table" }))));
|
|
767
767
|
}
|
|
768
768
|
renderSelectAll() {
|
|
769
769
|
var _a, _b, _c;
|
|
@@ -107,9 +107,9 @@ export class TextEditorLinkMenu {
|
|
|
107
107
|
var _a, _b;
|
|
108
108
|
const isValid = this.isValid(this.link.href);
|
|
109
109
|
return [
|
|
110
|
-
h("limel-input-field", { key: '
|
|
111
|
-
h("limel-input-field", { key: '
|
|
112
|
-
h("div", { key: '
|
|
110
|
+
h("limel-input-field", { key: 'e9ff24b3ef0ffbc098c32f77c1cefeac9b2dbcd9', label: this.getTranslation('editor-link-menu.text'), value: ((_a = this.link) === null || _a === void 0 ? void 0 : _a.text) || '', leadingIcon: "text_cursor", onChange: this.handleLinkTitleChange, onKeyDown: this.handleKeyDown }),
|
|
111
|
+
h("limel-input-field", { key: 'df5552b700c8c73d28ab83658b31e817b7dedceb', label: this.getTranslation('editor-link-menu.link'), value: ((_b = this.link) === null || _b === void 0 ? void 0 : _b.href) || '', type: "text", leadingIcon: "-lime-text-link", trailingIcon: "external_link", invalid: !isValid, onChange: this.handleLinkValueChange, onAction: this.handleLinkInputAction, onKeyDown: this.handleKeyDown, ref: (el) => (this.linkInput = el) }),
|
|
112
|
+
h("div", { key: 'd4243e548a1227865ec40af31a5868e7f7214b5e', class: "actions" }, h("limel-button", { key: 'a16b1a026825dd3441a5ce018704f6ae9e0ed576', label: this.getTranslation('cancel'), onClick: this.handleCancel }), h("limel-button", { key: '8c4b46e58487ef17c9e2637127a17b5a2847863d', primary: true, label: this.getTranslation('save'), disabled: !isValid, onClick: this.handleSave, ref: (el) => (this.saveButton = el), slot: "button" })),
|
|
113
113
|
];
|
|
114
114
|
}
|
|
115
115
|
static get is() { return "limel-text-editor-link-menu"; }
|
|
@@ -332,7 +332,7 @@ export class ProsemirrorAdapter {
|
|
|
332
332
|
(_e = this.view) === null || _e === void 0 ? void 0 : _e.destroy();
|
|
333
333
|
}
|
|
334
334
|
render() {
|
|
335
|
-
return (h(Host, { key: '
|
|
335
|
+
return (h(Host, { key: '8146122990b6020e7c1062938123d233e6c4e6aa', onFocus: this.handleFocus }, h("div", { key: '49dfd2b845efad4528689a9890e2f59cb5cd030e', id: "editor" }), this.renderToolbar(), this.renderLinkMenu()));
|
|
336
336
|
}
|
|
337
337
|
renderToolbar() {
|
|
338
338
|
if (this.actionBarItems.length === 0 || this.ui === 'no-toolbar') {
|
|
@@ -174,7 +174,7 @@ export class TextEditor {
|
|
|
174
174
|
await ((_a = this.adapterElement) === null || _a === void 0 ? void 0 : _a.clear());
|
|
175
175
|
}
|
|
176
176
|
render() {
|
|
177
|
-
return (h(Host, { key: '
|
|
177
|
+
return (h(Host, { key: 'e0ebfa29ceaf175ab0dc5fe78f7eb055f80d045c' }, h("limel-notched-outline", { key: '2f2823bb140c77e1af697adb75985729c01cfbb4', label: this.label, required: this.required, invalid: this.invalid, disabled: this.disabled, readonly: this.readonly, hasValue: !!this.value, hasFloatingLabel: true }, this.renderEditor(), this.renderPlaceholder()), this.renderHelperLine()));
|
|
178
178
|
}
|
|
179
179
|
renderEditor() {
|
|
180
180
|
if (this.readonly) {
|
|
@@ -15,7 +15,7 @@ export class TooltipContent {
|
|
|
15
15
|
const style = this.maxlength
|
|
16
16
|
? { '--tooltip-max-width-of-text': `${this.maxlength}ch` }
|
|
17
17
|
: undefined;
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: '05369a8209c96b17763eaa4074c82543f96cd908', class: { 'has-column-layout': isLabelsTextLong }, style: style }, h("div", { key: '1bfac9e319921070cc262a74347b9280de12e025', class: "label" }, this.label), this.renderHelperLabel(), this.renderHotkey()));
|
|
19
19
|
}
|
|
20
20
|
renderHelperLabel() {
|
|
21
21
|
if (!this.helperLabel) {
|
|
@@ -76,10 +76,10 @@ export class Tooltip {
|
|
|
76
76
|
}
|
|
77
77
|
render() {
|
|
78
78
|
const tooltipZIndex = getComputedStyle(this.host).getPropertyValue('--tooltip-z-index');
|
|
79
|
-
return (h("div", { key: '
|
|
79
|
+
return (h("div", { key: '9b893c590d0626f4e7c88f97f14e9c87cb1520d7', class: "trigger-anchor" }, h("limel-portal", { key: 'de7ee98705df289e59a034f49daf33823ab6aa86', openDirection: this.openDirection, visible: this.open, containerId: this.portalId, containerStyle: {
|
|
80
80
|
'z-index': tooltipZIndex,
|
|
81
81
|
'pointer-events': 'none',
|
|
82
|
-
}, anchor: this.ownerElement }, h("limel-tooltip-content", { key: '
|
|
82
|
+
}, anchor: this.ownerElement }, h("limel-tooltip-content", { key: '83ae108e4c32627527c9962a3f82a2b77ecda873', label: this.label, helperLabel: this.helperLabel, hotkey: this.hotkey, maxlength: this.maxlength, role: "tooltip", "aria-hidden": !this.open }))));
|
|
83
83
|
}
|
|
84
84
|
async updateDescription() {
|
|
85
85
|
if (!this.ownerElement) {
|
|
@@ -139,4 +139,5 @@ Du kan fortsætte med at blokere billeder (e-mailen kan se ufuldstændig ud) ell
|
|
|
139
139
|
'pagination.page-range': '{ first }–{ last }',
|
|
140
140
|
'pagination.go': 'Gå',
|
|
141
141
|
'dock.show-labels': 'Vis etiketter på navigationsknapper',
|
|
142
|
+
'suggestions.available': 'Forslag tilgængelige: { count }. Tryk på pil ned for at gå til dem.',
|
|
142
143
|
};
|
|
@@ -139,4 +139,5 @@ Sie können Bilder weiterhin blockieren (die E-Mail kann unvollständig aussehen
|
|
|
139
139
|
'pagination.page-range': '{ first }–{ last }',
|
|
140
140
|
'pagination.go': 'Los',
|
|
141
141
|
'dock.show-labels': 'Beschriftungen der Navigationsschaltflächen anzeigen',
|
|
142
|
+
'suggestions.available': 'Vorschläge verfügbar: { count }. Drücken Sie die Pfeiltaste nach unten, um dorthin zu wechseln.',
|
|
142
143
|
};
|
|
@@ -139,4 +139,5 @@ You can keep images blocked (the email may look incomplete), or load them if you
|
|
|
139
139
|
'pagination.page-range': '{ first }–{ last }',
|
|
140
140
|
'pagination.go': 'Go',
|
|
141
141
|
'dock.show-labels': 'Show navigation button labels',
|
|
142
|
+
'suggestions.available': 'Suggestions available: { count }. Press the down arrow to move to them.',
|
|
142
143
|
};
|
|
@@ -139,4 +139,5 @@ Voit pitää kuvat estettyinä (sähköposti voi näyttää puutteelliselta) tai
|
|
|
139
139
|
'pagination.page-range': '{ first }–{ last }',
|
|
140
140
|
'pagination.go': 'Siirry',
|
|
141
141
|
'dock.show-labels': 'Näytä siirtymispainikkeiden nimikkeet',
|
|
142
|
+
'suggestions.available': 'Ehdotuksia saatavilla: { count }. Siirry niihin painamalla nuolta alas.',
|
|
142
143
|
};
|
|
@@ -139,4 +139,5 @@ Vous pouvez laisser les images bloquées (l'e-mail peut sembler incomplet) ou le
|
|
|
139
139
|
'pagination.page-range': '{ first }–{ last }',
|
|
140
140
|
'pagination.go': 'Aller',
|
|
141
141
|
'dock.show-labels': 'Afficher les libellés des boutons de navigation',
|
|
142
|
+
'suggestions.available': 'Suggestions disponibles : { count }. Appuyez sur la flèche du bas pour y accéder.',
|
|
142
143
|
};
|