@limetech/lime-elements 40.13.0 → 40.13.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 +8 -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 +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 +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 +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 +2 -2
- 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 +1 -1
- 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.cjs.entry.js +1 -1
- package/dist/cjs/limel-grid.cjs.entry.js +1 -1
- package/dist/cjs/limel-header.cjs.entry.js +1 -1
- package/dist/cjs/limel-help-content.cjs.entry.js +1 -1
- package/dist/cjs/limel-help.cjs.entry.js +2 -2
- package/dist/cjs/limel-helper-line_3.cjs.entry.js +4 -4
- package/dist/cjs/limel-hotkey_4.cjs.entry.js +5 -5
- package/dist/cjs/limel-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-icon.cjs.entry.js +1 -1
- package/dist/cjs/limel-info-tile.cjs.entry.js +2 -2
- package/dist/cjs/limel-list-item.cjs.entry.js +3 -3
- 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-jump.cjs.entry.js +1 -1
- package/dist/cjs/limel-pagination.cjs.entry.js +2 -2
- package/dist/cjs/limel-picker.cjs.entry.js +2 -2
- package/dist/cjs/limel-popover_2.cjs.entry.js +2 -2
- package/dist/cjs/limel-profile-picture.cjs.entry.js +1 -1
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +2 -2
- 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 +43 -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 +16 -6
- 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/loader.cjs.js +1 -1
- package/dist/cjs/{translations-DDyw5Zzz.js → translations-CLSqfR3x.js} +56 -0
- package/dist/collection/components/3d-hover-effect-glow/3d-hover-effect-glow.js +1 -1
- package/dist/collection/components/action-bar/action-bar-item/action-bar-overflow-menu.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +2 -2
- package/dist/collection/components/ai-avatar/ai-avatar.js +1 -1
- package/dist/collection/components/badge/badge.js +2 -2
- package/dist/collection/components/banner/banner.js +1 -1
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +1 -1
- package/dist/collection/components/button/button.js +2 -2
- package/dist/collection/components/button-group/button-group.js +1 -1
- package/dist/collection/components/callout/callout.js +1 -1
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/chip-set/chip-set.js +1 -1
- package/dist/collection/components/circular-progress/circular-progress.js +1 -1
- package/dist/collection/components/code-diff/code-diff.js +1 -1
- package/dist/collection/components/code-editor/code-editor.js +1 -1
- package/dist/collection/components/collapsible-section/collapsible-section.js +1 -1
- package/dist/collection/components/color-picker/color-picker-palette.js +2 -2
- package/dist/collection/components/color-picker/color-picker.js +1 -1
- package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.js +1 -1
- package/dist/collection/components/dialog/dialog.js +2 -2
- package/dist/collection/components/dock/dock.js +2 -2
- package/dist/collection/components/drag-handle/drag-handle.js +1 -1
- package/dist/collection/components/email-viewer/email-viewer.js +1 -1
- package/dist/collection/components/file/file.js +1 -1
- package/dist/collection/components/file-dropzone/file-dropzone.js +1 -1
- package/dist/collection/components/file-input/file-input.js +1 -1
- package/dist/collection/components/flex-container/flex-container.js +1 -1
- package/dist/collection/components/form/form.js +1 -1
- package/dist/collection/components/grid/grid.js +1 -1
- package/dist/collection/components/header/header.js +1 -1
- package/dist/collection/components/help/help-content.js +1 -1
- package/dist/collection/components/help/help.js +2 -2
- package/dist/collection/components/helper-line/helper-line.js +2 -2
- package/dist/collection/components/hotkey/hotkey.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon-button/icon-button.js +1 -1
- package/dist/collection/components/info-tile/info-tile.js +2 -2
- package/dist/collection/components/input-field/input-field.js +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list-item/list-item.js +2 -2
- package/dist/collection/components/list-item/menu-item-meta/menu-item-meta.js +1 -1
- package/dist/collection/components/markdown/markdown.js +1 -1
- package/dist/collection/components/masonry-layout/masonry-layout.js +1 -1
- package/dist/collection/components/menu/menu.js +1 -1
- package/dist/collection/components/menu-list/menu-list.js +1 -1
- package/dist/collection/components/menu-surface/menu-surface.js +1 -1
- package/dist/collection/components/notched-outline/notched-outline.js +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/picker/picker.js +1 -1
- package/dist/collection/components/popover/popover.js +1 -1
- package/dist/collection/components/popover-surface/popover-surface.js +1 -1
- package/dist/collection/components/portal/portal.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button.js +2 -2
- package/dist/collection/components/resize-handle/resize-handle.css +35 -33
- package/dist/collection/components/resize-handle/resize-handle.js +86 -4
- 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 +44 -27
- 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 +7 -0
- package/dist/collection/translations/de.js +7 -0
- package/dist/collection/translations/en.js +7 -0
- package/dist/collection/translations/fi.js +7 -0
- package/dist/collection/translations/fr.js +7 -0
- package/dist/collection/translations/nl.js +7 -0
- package/dist/collection/translations/no.js +7 -0
- package/dist/collection/translations/sv.js +7 -0
- 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 +6 -6
- 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 +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 +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 +1 -1
- 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.entry.js +1 -1
- package/dist/esm/limel-grid.entry.js +1 -1
- package/dist/esm/limel-header.entry.js +1 -1
- package/dist/esm/limel-help-content.entry.js +1 -1
- package/dist/esm/limel-help.entry.js +2 -2
- package/dist/esm/limel-helper-line_3.entry.js +4 -4
- package/dist/esm/limel-hotkey_4.entry.js +5 -5
- package/dist/esm/limel-icon-button.entry.js +1 -1
- package/dist/esm/limel-icon.entry.js +1 -1
- package/dist/esm/limel-info-tile.entry.js +2 -2
- package/dist/esm/limel-list-item.entry.js +3 -3
- 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 +2 -2
- package/dist/esm/limel-picker.entry.js +2 -2
- package/dist/esm/limel-popover_2.entry.js +2 -2
- package/dist/esm/limel-profile-picture.entry.js +1 -1
- package/dist/esm/limel-prosemirror-adapter.entry.js +2 -2
- 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 +43 -2
- package/dist/esm/limel-select.entry.js +1 -1
- package/dist/esm/limel-shortcut.entry.js +1 -1
- package/dist/esm/limel-side-panel.entry.js +16 -6
- 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/loader.js +1 -1
- package/dist/esm/{translations-UrIr-5_D.js → translations-Drl5LNAD.js} +56 -0
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-13f2afc9.entry.js → p-01de145c.entry.js} +1 -1
- package/dist/lime-elements/{p-3ee121fa.entry.js → p-026eed2d.entry.js} +1 -1
- package/dist/lime-elements/{p-9ff6a455.entry.js → p-068b141b.entry.js} +1 -1
- package/dist/lime-elements/{p-bd58c761.entry.js → p-09f8f883.entry.js} +1 -1
- package/dist/lime-elements/{p-3b6d4934.entry.js → p-1066a057.entry.js} +1 -1
- package/dist/lime-elements/{p-95322502.entry.js → p-1663fa9d.entry.js} +1 -1
- package/dist/lime-elements/{p-def7b38f.entry.js → p-17aa9235.entry.js} +1 -1
- package/dist/lime-elements/{p-910807cb.entry.js → p-19426c76.entry.js} +1 -1
- package/dist/lime-elements/{p-622660dd.entry.js → p-1d6014ed.entry.js} +1 -1
- package/dist/lime-elements/p-2370ff51.entry.js +1 -0
- package/dist/lime-elements/{p-0f18981d.entry.js → p-242f1032.entry.js} +1 -1
- package/dist/lime-elements/{p-828558cf.entry.js → p-27d375f3.entry.js} +1 -1
- package/dist/lime-elements/{p-2ba9d62f.entry.js → p-300f80e7.entry.js} +1 -1
- package/dist/lime-elements/{p-9ca18ba5.entry.js → p-3b4f6329.entry.js} +1 -1
- package/dist/lime-elements/{p-2528f75e.entry.js → p-3de45ea6.entry.js} +2 -2
- package/dist/lime-elements/{p-675a7469.entry.js → p-3f447d22.entry.js} +1 -1
- package/dist/lime-elements/{p-780dae0b.entry.js → p-3fa66fb1.entry.js} +1 -1
- package/dist/lime-elements/{p-09390c6a.entry.js → p-41172b62.entry.js} +1 -1
- package/dist/lime-elements/{p-d5144955.entry.js → p-41fb6e88.entry.js} +1 -1
- package/dist/lime-elements/{p-f4c9940e.entry.js → p-44ec1f22.entry.js} +1 -1
- package/dist/lime-elements/{p-268b4da1.entry.js → p-4a272ac2.entry.js} +1 -1
- package/dist/lime-elements/{p-e25bfb2c.entry.js → p-4a381bc6.entry.js} +1 -1
- package/dist/lime-elements/{p-fb526a05.entry.js → p-56fe13ef.entry.js} +1 -1
- package/dist/lime-elements/p-5d623004.entry.js +1 -0
- package/dist/lime-elements/{p-8a59698f.entry.js → p-5ea07cbe.entry.js} +1 -1
- package/dist/lime-elements/{p-67767276.entry.js → p-600466a9.entry.js} +1 -1
- package/dist/lime-elements/{p-657bfa36.entry.js → p-62b6e235.entry.js} +1 -1
- package/dist/lime-elements/p-64540beb.entry.js +1 -0
- package/dist/lime-elements/{p-1020ca20.entry.js → p-674680f9.entry.js} +1 -1
- package/dist/lime-elements/{p-d79d777e.entry.js → p-67536ac3.entry.js} +1 -1
- package/dist/lime-elements/{p-dd075353.entry.js → p-6770cf06.entry.js} +1 -1
- package/dist/lime-elements/{p-887eea11.entry.js → p-7375fac2.entry.js} +1 -1
- package/dist/lime-elements/{p-6d65ee35.entry.js → p-7829198d.entry.js} +1 -1
- package/dist/lime-elements/{p-abed5afd.entry.js → p-82672504.entry.js} +1 -1
- package/dist/lime-elements/{p-24e5d420.entry.js → p-8339d921.entry.js} +1 -1
- package/dist/lime-elements/{p-33ed0c68.entry.js → p-87c9f4de.entry.js} +1 -1
- package/dist/lime-elements/{p-7a290372.entry.js → p-89316964.entry.js} +1 -1
- package/dist/lime-elements/{p-527e9c95.entry.js → p-8a9361a2.entry.js} +1 -1
- package/dist/lime-elements/{p-46bf8b22.entry.js → p-8e78fd4f.entry.js} +1 -1
- package/dist/lime-elements/{p-db1f9eba.entry.js → p-8f133cd6.entry.js} +1 -1
- package/dist/lime-elements/{p-7ae71c13.entry.js → p-90198515.entry.js} +1 -1
- package/dist/lime-elements/{p-236743f1.entry.js → p-95ca7426.entry.js} +1 -1
- package/dist/lime-elements/{p-55b56742.entry.js → p-9aa921a2.entry.js} +1 -1
- package/dist/lime-elements/{p-540b2b24.entry.js → p-9bbf2612.entry.js} +1 -1
- package/dist/lime-elements/{p-a449ca04.entry.js → p-9d354eca.entry.js} +1 -1
- package/dist/lime-elements/{p-68542e00.entry.js → p-9e9187ce.entry.js} +1 -1
- package/dist/lime-elements/p-B26k4gw8.js +1 -0
- package/dist/lime-elements/{p-4a7df81a.entry.js → p-aac603af.entry.js} +1 -1
- package/dist/lime-elements/{p-5473eb74.entry.js → p-aee75ad1.entry.js} +1 -1
- package/dist/lime-elements/{p-4882acaa.entry.js → p-afbe54e6.entry.js} +1 -1
- package/dist/lime-elements/{p-a78aaf37.entry.js → p-b5ebcbfc.entry.js} +1 -1
- package/dist/lime-elements/{p-07916acc.entry.js → p-be8950a6.entry.js} +2 -2
- package/dist/lime-elements/{p-714ab66d.entry.js → p-c8cb4912.entry.js} +1 -1
- package/dist/lime-elements/{p-de4d261a.entry.js → p-dd065596.entry.js} +1 -1
- package/dist/lime-elements/{p-0c2ce99b.entry.js → p-ddabfac0.entry.js} +1 -1
- package/dist/lime-elements/{p-d3475514.entry.js → p-de3cf7d8.entry.js} +1 -1
- package/dist/lime-elements/{p-c7e34502.entry.js → p-e13e0001.entry.js} +1 -1
- package/dist/lime-elements/p-e2971111.entry.js +1 -0
- package/dist/lime-elements/{p-ecded772.entry.js → p-e332bb9b.entry.js} +1 -1
- package/dist/lime-elements/{p-54631dbf.entry.js → p-e50acec1.entry.js} +1 -1
- package/dist/lime-elements/{p-074275f4.entry.js → p-e9b1e0bd.entry.js} +1 -1
- package/dist/lime-elements/p-ec531ecb.entry.js +1 -0
- package/dist/lime-elements/{p-90286e5c.entry.js → p-f0bf3fd1.entry.js} +1 -1
- package/dist/lime-elements/p-f1ac7608.entry.js +1 -0
- package/dist/lime-elements/{p-c12fbc91.entry.js → p-f455150b.entry.js} +1 -1
- package/dist/types/components/resize-handle/resize-handle.d.ts +31 -2
- package/dist/types/components/side-panel/side-panel.d.ts +11 -4
- package/dist/types/components.d.ts +63 -16
- package/dist/types/translations/da.d.ts +7 -0
- package/dist/types/translations/de.d.ts +7 -0
- package/dist/types/translations/en.d.ts +7 -0
- package/dist/types/translations/fi.d.ts +7 -0
- package/dist/types/translations/fr.d.ts +7 -0
- package/dist/types/translations/nl.d.ts +7 -0
- package/dist/types/translations/no.d.ts +7 -0
- package/dist/types/translations/sv.d.ts +7 -0
- package/package.json +1 -1
- package/dist/lime-elements/p-26813b2c.entry.js +0 -1
- package/dist/lime-elements/p-4f58c6b3.entry.js +0 -1
- package/dist/lime-elements/p-9b384d62.entry.js +0 -1
- package/dist/lime-elements/p-a317f2fa.entry.js +0 -1
- package/dist/lime-elements/p-b5bb124f.entry.js +0 -1
- package/dist/lime-elements/p-d7e5a4a7.entry.js +0 -1
- package/dist/lime-elements/p-w3yKYfBQ.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as a,h as s,H as i,a as e}from"./p-BU9IJqli.js";import{d as o}from"./p-z_E3sq3p.js";const h=class{constructor(s){t(this,s),this.changeTab=a(this,"changeTab",7),this.reorderTab=a(this,"reorderTab",7),this.tabs=[],this.orientation="horizontal",this.allowTabReorder=!1,this.slotElements=[],this.handleChangeTabs=this.handleChangeTabs.bind(this),this.setSlotElements=this.setSlotElements.bind(this),this.setTabStatus=this.setTabStatus.bind(this)}connectedCallback(){this.initialize()}componentDidLoad(){this.initialize()}initialize(){const t=this.getSlot();if(t){t.addEventListener("slotchange",this.setSlotElements),this.setSlotElements();for(const t of this.tabs)this.setTabStatus(t)}}disconnectedCallback(){this.getSlot().removeEventListener("slotchange",this.setSlotElements)}tabsChanged(){this.hidePanels();for(const t of this.tabs)this.setTabStatus(t)}render(){return s(i,{key:"530a6e0b8ae7387edaf8e0c1b6360a5a8099f155",onChangeTab:this.handleChangeTabs},s("div",{key:"5d2ba03a54a5315b9c400d28b8dc0967a41a34fe",class:"tab-panel"},s("limel-tab-bar",{key:"69183dd7c31a1d5c6d7027a81bf152586bf6fd0a",tabs:this.tabs,orientation:this.orientation,allowTabReorder:this.allowTabReorder}),s("div",{key:"f7ac219b8f1941a1b2b5656f36646077165b2ec9",class:"tab-content"},s("slot",{key:"177a1e39cdc731a2e77b6d06a691851a193b2a40"}))))}setSlotElements(){const t=this.getSlot();this.hidePanels(),this.slotElements=Array.prototype.slice.call(t.assignedElements());for(const t of this.tabs)this.setTabStatus(t)}setTabStatus(t){const a=this.slotElements.find((a=>a.id===t.id));a&&(a.style.display=t.active?"":"none",a.tab=t)}handleChangeTabs(t){this.tabs=this.tabs.map((a=>a.id===t.detail.id?t.detail:a)),this.setTabStatus(t.detail),setTimeout(o,0)}getSlot(){return this.host.shadowRoot.querySelector("slot")}hidePanels(){for(const t of this.slotElements)t.style.display="none"}get host(){return e(this)}static get watchers(){return{tabs:[{tabsChanged:0}]}}};h.style=":host(limel-tab-panel){--tab-panel-background-color:rgb(var(--contrast-100));display:block;height:100%}.tab-panel{height:100%;position:relative;display:flex;flex-direction:column}.tab-content{height:100%;flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;background-color:var(--tab-panel-background-color)}:host(limel-tab-panel[orientation=vertical]) div.tab-panel{flex-direction:row}:host(limel-tab-panel[orientation=vertical]) div.tab-content{min-width:0}";export{h as limel_tab_panel}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s,H as i,a as e}from"./p-BU9IJqli.js";const o=class{constructor(s){t(this,s),this.ordered=!1,this.containerHeight=0,this.hasRendered=!1,this.pendingLayoutFrame=null}onOrderedChange(){this.scheduleLayout()}componentDidLoad(){this.setupObservers(),this.layoutItems(),this.hasRendered=!0}connectedCallback(){this.hasRendered&&(this.setupObservers(),this.scheduleLayout())}disconnectedCallback(){var t,s,i;null===(t=this.resizeObserver)||void 0===t||t.disconnect(),null===(s=this.mutationObserver)||void 0===s||s.disconnect(),null===(i=this.itemResizeObserver)||void 0===i||i.disconnect(),null!==this.pendingLayoutFrame&&cancelAnimationFrame(this.pendingLayoutFrame)}render(){return s(i,{key:"
|
|
1
|
+
import{r as t,h as s,H as i,a as e}from"./p-BU9IJqli.js";const o=class{constructor(s){t(this,s),this.ordered=!1,this.containerHeight=0,this.hasRendered=!1,this.pendingLayoutFrame=null}onOrderedChange(){this.scheduleLayout()}componentDidLoad(){this.setupObservers(),this.layoutItems(),this.hasRendered=!0}connectedCallback(){this.hasRendered&&(this.setupObservers(),this.scheduleLayout())}disconnectedCallback(){var t,s,i;null===(t=this.resizeObserver)||void 0===t||t.disconnect(),null===(s=this.mutationObserver)||void 0===s||s.disconnect(),null===(i=this.itemResizeObserver)||void 0===i||i.disconnect(),null!==this.pendingLayoutFrame&&cancelAnimationFrame(this.pendingLayoutFrame)}render(){return s(i,{key:"b25a2eb6e10535aa5fedb8de8baeb96f51e10739",style:{height:`${this.containerHeight}rem`},class:{"is-laid-out":this.hasRendered}},s("slot",{key:"fa2c4773d1fb41e2ea0725a28911840e45e5c809"}))}setupObservers(){this.resizeObserver=new ResizeObserver((()=>{this.scheduleLayout()})),this.resizeObserver.observe(this.host),this.itemResizeObserver=new ResizeObserver((()=>{this.scheduleLayout()})),this.mutationObserver=new MutationObserver((()=>{this.observeItemSizes(),this.scheduleLayout()})),this.mutationObserver.observe(this.host,{childList:!0}),this.observeItemSizes()}observeItemSizes(){var t;null===(t=this.itemResizeObserver)||void 0===t||t.disconnect();const s=this.getItems();for(const t of s)this.itemResizeObserver.observe(t)}getItems(){return[...this.host.children].filter((t=>t instanceof HTMLElement))}getRootFontSize(){return Number.parseFloat(getComputedStyle(document.documentElement).fontSize)}pxToRem(t,s){return t/s}getCssPropertyInPx(t,s,i){const e=getComputedStyle(this.host).getPropertyValue(t).trim()||s,o=Number.parseFloat(e);return e.endsWith("px")?o:o*i}scheduleLayout(){null!==this.pendingLayoutFrame&&cancelAnimationFrame(this.pendingLayoutFrame),this.pendingLayoutFrame=requestAnimationFrame((()=>{this.pendingLayoutFrame=null,this.layoutItems()}))}layoutItems(){const t=this.getItems();if(0===t.length)return void(this.containerHeight=0);const s=this.host.offsetWidth;if(!s)return;const i=this.getRootFontSize(),e=this.getCssPropertyInPx("--masonry-layout-gap","1rem",i),{columnCount:o,columnWidth:n}=this.calculateColumns(s,e,i),r=this.positionItems(t,o,n,e,i),h=this.pxToRem(Math.max(...r)-e,i);Math.abs(h-this.containerHeight)>.1&&(this.containerHeight=h)}calculateColumns(t,s,i){const e=this.getCssPropertyInPx("--masonry-layout-min-column-width","12rem",i),o=Math.max(1,Math.floor((t+s)/(e+s)));return{columnCount:o,columnWidth:(t-(o-1)*s)/o}}positionItems(t,s,i,e,o){const n=Array.from({length:s},(()=>0));let r=0;for(const h of t){const t=this.ordered?r%s:n.indexOf(Math.min(...n)),a=t*(i+e),l=n[t];h.style.position="absolute",h.style.left=`${this.pxToRem(a,o)}rem`,h.style.top=`${this.pxToRem(l,o)}rem`,h.style.width=`${this.pxToRem(i,o)}rem`,this.hasRendered||this.staggerFadeIn(h,r),n[t]+=h.offsetHeight+e,r++}return n}staggerFadeIn(t,s){if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;t.style.transition="opacity 0.2s cubic-bezier(0.2, 0, 0.2, 1)",t.style.transitionDelay=20*s+"ms";const i=s=>{s.target===t&&"opacity"===s.propertyName&&(t.style.transition="",t.style.transitionDelay="",t.removeEventListener("transitionend",i))};t.addEventListener("transitionend",i)}get host(){return e(this)}static get watchers(){return{ordered:[{onOrderedChange:0}]}}};o.style=":host(limel-masonry-layout){display:block;position:relative;box-sizing:border-box;visibility:hidden}:host(limel-masonry-layout) ::slotted(*){opacity:0;box-sizing:border-box}:host(limel-masonry-layout.is-laid-out){visibility:visible}:host(limel-masonry-layout.is-laid-out) ::slotted(*){opacity:1}";export{o as limel_masonry_layout}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { Languages } from '../date-picker/date.types';
|
|
2
3
|
/**
|
|
3
4
|
* A handle on an edge of an element. The user drags the handle, or presses an
|
|
4
5
|
* arrow key while the handle has focus, to resize the element.
|
|
@@ -13,9 +14,18 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
|
13
14
|
* `static`. If other content covers the handle, also give the element
|
|
14
15
|
* `isolation: isolate`.
|
|
15
16
|
*
|
|
17
|
+
* ## Accessibility
|
|
18
|
+
* The user reaches the handle with the <kbd>Tab</kbd> key. The handle is named
|
|
19
|
+
* "Resize" followed by `resizableRegionLabel`, for example "Resize side
|
|
20
|
+
* panel". A tooltip shows the name and how to resize. While the pointer is
|
|
21
|
+
* over the handle, it says to drag the handle. While the handle has keyboard
|
|
22
|
+
* focus, it says which arrow keys to press, which fit `location`. Screen
|
|
23
|
+
* readers read the arrow keys as the description of the handle.
|
|
24
|
+
*
|
|
16
25
|
* @exampleComponent limel-example-resize-handle-basic
|
|
17
26
|
* @exampleComponent limel-example-resize-handle-locations
|
|
18
27
|
* @exampleComponent limel-example-resize-handle-grab-area
|
|
28
|
+
* @exampleComponent limel-example-resize-handle-accessibility
|
|
19
29
|
* @private
|
|
20
30
|
*/
|
|
21
31
|
export declare class ResizeHandle {
|
|
@@ -24,9 +34,20 @@ export declare class ResizeHandle {
|
|
|
24
34
|
*/
|
|
25
35
|
location: 'left' | 'right' | 'top' | 'bottom';
|
|
26
36
|
/**
|
|
27
|
-
* The
|
|
37
|
+
* The name of the region that the handle resizes, for example
|
|
38
|
+
* `side panel`. The accessible name of the handle is "Resize" followed by
|
|
39
|
+
* this name, for example "Resize side panel". When no name is set, the
|
|
40
|
+
* handle is named "Resize this region".
|
|
41
|
+
*
|
|
42
|
+
* Write the name in the language that is set in `language`, in the form
|
|
43
|
+
* that reads right after "Resize", for example `side panel` in English
|
|
44
|
+
* and `sidopanelen` in Swedish.
|
|
45
|
+
*/
|
|
46
|
+
resizableRegionLabel?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Defines the language for translations.
|
|
28
49
|
*/
|
|
29
|
-
|
|
50
|
+
language: Languages;
|
|
30
51
|
/**
|
|
31
52
|
* The size of the element, in pixels: the width when `location` is `left`
|
|
32
53
|
* or `right`, and the height when it is `top` or `bottom`.
|
|
@@ -52,11 +73,19 @@ export declare class ResizeHandle {
|
|
|
52
73
|
* press. Pressing and releasing the handle without moving it emits nothing.
|
|
53
74
|
*/
|
|
54
75
|
endResize: EventEmitter<void>;
|
|
76
|
+
private isPointerOver;
|
|
77
|
+
private hasKeyboardFocus;
|
|
55
78
|
private host;
|
|
56
79
|
private stopResizing?;
|
|
57
80
|
connectedCallback(): void;
|
|
58
81
|
disconnectedCallback(): void;
|
|
59
82
|
render(): any;
|
|
83
|
+
private getName;
|
|
84
|
+
private getHint;
|
|
85
|
+
private handlePointerEnter;
|
|
86
|
+
private handlePointerLeave;
|
|
87
|
+
private handleFocus;
|
|
88
|
+
private handleBlur;
|
|
60
89
|
private handleKeyDown;
|
|
61
90
|
private elementSize;
|
|
62
91
|
private resizableElement;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { Languages } from '../date-picker/date.types';
|
|
2
3
|
import { SidePanelAction, SidePanelActionSelect, SidePanelEntry } from './side-panel.types';
|
|
3
4
|
/**
|
|
4
5
|
* A resizable panel that is displayed on top of the right side of the page.
|
|
@@ -24,6 +25,7 @@ import { SidePanelAction, SidePanelActionSelect, SidePanelEntry } from './side-p
|
|
|
24
25
|
* @exampleComponent limel-example-side-panel-header-actions
|
|
25
26
|
* @exampleComponent limel-example-side-panel-stacking
|
|
26
27
|
* @exampleComponent limel-example-side-panel-full-screen
|
|
28
|
+
* @exampleComponent limel-example-side-panel-accessibility
|
|
27
29
|
* @slot - Content of the panel
|
|
28
30
|
* @slot header-actions - Small controls at the right end of the header. Content that is larger than half the header width or the height of the headings is cut off.
|
|
29
31
|
* @private
|
|
@@ -32,8 +34,16 @@ export declare class SidePanel {
|
|
|
32
34
|
/**
|
|
33
35
|
* Accessible name of the panel. Screen readers announce it. Set it to
|
|
34
36
|
* something that tells the user what the panel is for.
|
|
37
|
+
*
|
|
38
|
+
* The resize handle is named after it, for example "Resize Customer
|
|
39
|
+
* details panel". When no label is set, the handle is named "Resize side
|
|
40
|
+
* panel".
|
|
35
41
|
*/
|
|
36
42
|
label?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Defines the language for translations.
|
|
45
|
+
*/
|
|
46
|
+
language: Languages;
|
|
37
47
|
/**
|
|
38
48
|
* Label of the close button. Shown as a tooltip and used as the accessible
|
|
39
49
|
* name.
|
|
@@ -49,10 +59,6 @@ export declare class SidePanel {
|
|
|
49
59
|
* Buttons in the toolbar, to the right of the close button.
|
|
50
60
|
*/
|
|
51
61
|
actions: SidePanelAction[];
|
|
52
|
-
/**
|
|
53
|
-
* Label of the resize handle. Used as the accessible name.
|
|
54
|
-
*/
|
|
55
|
-
resizeLabel: string;
|
|
56
62
|
/**
|
|
57
63
|
* Whether pressing Escape emits `close`. Set to `false` to let only the
|
|
58
64
|
* close button emit `close`. The panel then does not prevent the Escape
|
|
@@ -120,6 +126,7 @@ export declare class SidePanel {
|
|
|
120
126
|
private renderBack;
|
|
121
127
|
private renderHeader;
|
|
122
128
|
private renderHandle;
|
|
129
|
+
private getRegionLabel;
|
|
123
130
|
private renderBody;
|
|
124
131
|
/**
|
|
125
132
|
* Components in the content can emit events with the same names as the
|
|
@@ -3481,16 +3481,25 @@ export namespace Components {
|
|
|
3481
3481
|
* the edge that `location` names. Give the element a `position` other than
|
|
3482
3482
|
* `static`. If other content covers the handle, also give the element
|
|
3483
3483
|
* `isolation: isolate`.
|
|
3484
|
+
* ## Accessibility
|
|
3485
|
+
* The user reaches the handle with the <kbd>Tab</kbd> key. The handle is named
|
|
3486
|
+
* "Resize" followed by `resizableRegionLabel`, for example "Resize side
|
|
3487
|
+
* panel". A tooltip shows the name and how to resize. While the pointer is
|
|
3488
|
+
* over the handle, it says to drag the handle. While the handle has keyboard
|
|
3489
|
+
* focus, it says which arrow keys to press, which fit `location`. Screen
|
|
3490
|
+
* readers read the arrow keys as the description of the handle.
|
|
3484
3491
|
* @exampleComponent limel-example-resize-handle-basic
|
|
3485
3492
|
* @exampleComponent limel-example-resize-handle-locations
|
|
3486
3493
|
* @exampleComponent limel-example-resize-handle-grab-area
|
|
3494
|
+
* @exampleComponent limel-example-resize-handle-accessibility
|
|
3487
3495
|
* @private
|
|
3488
3496
|
*/
|
|
3489
3497
|
interface LimelResizeHandle {
|
|
3490
3498
|
/**
|
|
3491
|
-
*
|
|
3499
|
+
* Defines the language for translations.
|
|
3500
|
+
* @default 'en'
|
|
3492
3501
|
*/
|
|
3493
|
-
"
|
|
3502
|
+
"language": Languages;
|
|
3494
3503
|
/**
|
|
3495
3504
|
* The location of the handle relative to the resizable element.
|
|
3496
3505
|
* @default 'left'
|
|
@@ -3504,6 +3513,10 @@ export namespace Components {
|
|
|
3504
3513
|
* The smallest size that the element can have, in pixels.
|
|
3505
3514
|
*/
|
|
3506
3515
|
"min"?: number;
|
|
3516
|
+
/**
|
|
3517
|
+
* The name of the region that the handle resizes, for example `side panel`. The accessible name of the handle is "Resize" followed by this name, for example "Resize side panel". When no name is set, the handle is named "Resize this region". Write the name in the language that is set in `language`, in the form that reads right after "Resize", for example `side panel` in English and `sidopanelen` in Swedish.
|
|
3518
|
+
*/
|
|
3519
|
+
"resizableRegionLabel"?: string;
|
|
3507
3520
|
/**
|
|
3508
3521
|
* The size of the element, in pixels: the width when `location` is `left` or `right`, and the height when it is `top` or `bottom`.
|
|
3509
3522
|
*/
|
|
@@ -3666,6 +3679,7 @@ export namespace Components {
|
|
|
3666
3679
|
* @exampleComponent limel-example-side-panel-header-actions
|
|
3667
3680
|
* @exampleComponent limel-example-side-panel-stacking
|
|
3668
3681
|
* @exampleComponent limel-example-side-panel-full-screen
|
|
3682
|
+
* @exampleComponent limel-example-side-panel-accessibility
|
|
3669
3683
|
* @private
|
|
3670
3684
|
*/
|
|
3671
3685
|
interface LimelSidePanel {
|
|
@@ -3690,14 +3704,14 @@ export namespace Components {
|
|
|
3690
3704
|
*/
|
|
3691
3705
|
"fullScreen": boolean;
|
|
3692
3706
|
/**
|
|
3693
|
-
* Accessible name of the panel. Screen readers announce it. Set it to something that tells the user what the panel is for.
|
|
3707
|
+
* Accessible name of the panel. Screen readers announce it. Set it to something that tells the user what the panel is for. The resize handle is named after it, for example "Resize Customer details panel". When no label is set, the handle is named "Resize side panel".
|
|
3694
3708
|
*/
|
|
3695
3709
|
"label"?: string;
|
|
3696
3710
|
/**
|
|
3697
|
-
*
|
|
3698
|
-
* @default '
|
|
3711
|
+
* Defines the language for translations.
|
|
3712
|
+
* @default 'en'
|
|
3699
3713
|
*/
|
|
3700
|
-
"
|
|
3714
|
+
"language": Languages;
|
|
3701
3715
|
/**
|
|
3702
3716
|
* The panels in the stack, outermost first. The last entry is the panel that is displayed. Its heading, subheading and icon are shown in the header. The other entries are shown as backs behind the panel.
|
|
3703
3717
|
* @default []
|
|
@@ -6570,9 +6584,17 @@ declare global {
|
|
|
6570
6584
|
* the edge that `location` names. Give the element a `position` other than
|
|
6571
6585
|
* `static`. If other content covers the handle, also give the element
|
|
6572
6586
|
* `isolation: isolate`.
|
|
6587
|
+
* ## Accessibility
|
|
6588
|
+
* The user reaches the handle with the <kbd>Tab</kbd> key. The handle is named
|
|
6589
|
+
* "Resize" followed by `resizableRegionLabel`, for example "Resize side
|
|
6590
|
+
* panel". A tooltip shows the name and how to resize. While the pointer is
|
|
6591
|
+
* over the handle, it says to drag the handle. While the handle has keyboard
|
|
6592
|
+
* focus, it says which arrow keys to press, which fit `location`. Screen
|
|
6593
|
+
* readers read the arrow keys as the description of the handle.
|
|
6573
6594
|
* @exampleComponent limel-example-resize-handle-basic
|
|
6574
6595
|
* @exampleComponent limel-example-resize-handle-locations
|
|
6575
6596
|
* @exampleComponent limel-example-resize-handle-grab-area
|
|
6597
|
+
* @exampleComponent limel-example-resize-handle-accessibility
|
|
6576
6598
|
* @private
|
|
6577
6599
|
*/
|
|
6578
6600
|
interface HTMLLimelResizeHandleElement extends Components.LimelResizeHandle, HTMLStencilElement {
|
|
@@ -6701,6 +6723,7 @@ declare global {
|
|
|
6701
6723
|
* @exampleComponent limel-example-side-panel-header-actions
|
|
6702
6724
|
* @exampleComponent limel-example-side-panel-stacking
|
|
6703
6725
|
* @exampleComponent limel-example-side-panel-full-screen
|
|
6726
|
+
* @exampleComponent limel-example-side-panel-accessibility
|
|
6704
6727
|
* @private
|
|
6705
6728
|
*/
|
|
6706
6729
|
interface HTMLLimelSidePanelElement extends Components.LimelSidePanel, HTMLStencilElement {
|
|
@@ -10786,16 +10809,25 @@ declare namespace LocalJSX {
|
|
|
10786
10809
|
* the edge that `location` names. Give the element a `position` other than
|
|
10787
10810
|
* `static`. If other content covers the handle, also give the element
|
|
10788
10811
|
* `isolation: isolate`.
|
|
10812
|
+
* ## Accessibility
|
|
10813
|
+
* The user reaches the handle with the <kbd>Tab</kbd> key. The handle is named
|
|
10814
|
+
* "Resize" followed by `resizableRegionLabel`, for example "Resize side
|
|
10815
|
+
* panel". A tooltip shows the name and how to resize. While the pointer is
|
|
10816
|
+
* over the handle, it says to drag the handle. While the handle has keyboard
|
|
10817
|
+
* focus, it says which arrow keys to press, which fit `location`. Screen
|
|
10818
|
+
* readers read the arrow keys as the description of the handle.
|
|
10789
10819
|
* @exampleComponent limel-example-resize-handle-basic
|
|
10790
10820
|
* @exampleComponent limel-example-resize-handle-locations
|
|
10791
10821
|
* @exampleComponent limel-example-resize-handle-grab-area
|
|
10822
|
+
* @exampleComponent limel-example-resize-handle-accessibility
|
|
10792
10823
|
* @private
|
|
10793
10824
|
*/
|
|
10794
10825
|
interface LimelResizeHandle {
|
|
10795
10826
|
/**
|
|
10796
|
-
*
|
|
10827
|
+
* Defines the language for translations.
|
|
10828
|
+
* @default 'en'
|
|
10797
10829
|
*/
|
|
10798
|
-
"
|
|
10830
|
+
"language"?: Languages;
|
|
10799
10831
|
/**
|
|
10800
10832
|
* The location of the handle relative to the resizable element.
|
|
10801
10833
|
* @default 'left'
|
|
@@ -10817,6 +10849,10 @@ declare namespace LocalJSX {
|
|
|
10817
10849
|
* Emitted after the last `changeSize` when the user has finished a resize: when the pointer is released after it has moved, and after each arrow key press. Pressing and releasing the handle without moving it emits nothing.
|
|
10818
10850
|
*/
|
|
10819
10851
|
"onEndResize"?: (event: LimelResizeHandleCustomEvent<void>) => void;
|
|
10852
|
+
/**
|
|
10853
|
+
* The name of the region that the handle resizes, for example `side panel`. The accessible name of the handle is "Resize" followed by this name, for example "Resize side panel". When no name is set, the handle is named "Resize this region". Write the name in the language that is set in `language`, in the form that reads right after "Resize", for example `side panel` in English and `sidopanelen` in Swedish.
|
|
10854
|
+
*/
|
|
10855
|
+
"resizableRegionLabel"?: string;
|
|
10820
10856
|
/**
|
|
10821
10857
|
* The size of the element, in pixels: the width when `location` is `left` or `right`, and the height when it is `top` or `bottom`.
|
|
10822
10858
|
*/
|
|
@@ -10977,6 +11013,7 @@ declare namespace LocalJSX {
|
|
|
10977
11013
|
* @exampleComponent limel-example-side-panel-header-actions
|
|
10978
11014
|
* @exampleComponent limel-example-side-panel-stacking
|
|
10979
11015
|
* @exampleComponent limel-example-side-panel-full-screen
|
|
11016
|
+
* @exampleComponent limel-example-side-panel-accessibility
|
|
10980
11017
|
* @private
|
|
10981
11018
|
*/
|
|
10982
11019
|
interface LimelSidePanel {
|
|
@@ -11001,9 +11038,14 @@ declare namespace LocalJSX {
|
|
|
11001
11038
|
*/
|
|
11002
11039
|
"fullScreen"?: boolean;
|
|
11003
11040
|
/**
|
|
11004
|
-
* Accessible name of the panel. Screen readers announce it. Set it to something that tells the user what the panel is for.
|
|
11041
|
+
* Accessible name of the panel. Screen readers announce it. Set it to something that tells the user what the panel is for. The resize handle is named after it, for example "Resize Customer details panel". When no label is set, the handle is named "Resize side panel".
|
|
11005
11042
|
*/
|
|
11006
11043
|
"label"?: string;
|
|
11044
|
+
/**
|
|
11045
|
+
* Defines the language for translations.
|
|
11046
|
+
* @default 'en'
|
|
11047
|
+
*/
|
|
11048
|
+
"language"?: Languages;
|
|
11007
11049
|
/**
|
|
11008
11050
|
* Emitted when the user has finished a resize that changed the width. The detail is the new width in pixels. The panel already uses the new width. Store the value to restore the width with `--side-panel-width` the next time the panel opens.
|
|
11009
11051
|
*/
|
|
@@ -11020,11 +11062,6 @@ declare namespace LocalJSX {
|
|
|
11020
11062
|
* Emitted when a back of the stack is clicked. The detail is the index of its entry in `stack`.
|
|
11021
11063
|
*/
|
|
11022
11064
|
"onSelectStackEntry"?: (event: LimelSidePanelCustomEvent<number>) => void;
|
|
11023
|
-
/**
|
|
11024
|
-
* Label of the resize handle. Used as the accessible name.
|
|
11025
|
-
* @default 'Resize'
|
|
11026
|
-
*/
|
|
11027
|
-
"resizeLabel"?: string;
|
|
11028
11065
|
/**
|
|
11029
11066
|
* The panels in the stack, outermost first. The last entry is the panel that is displayed. Its heading, subheading and icon are shown in the header. The other entries are shown as backs behind the panel.
|
|
11030
11067
|
* @default []
|
|
@@ -12315,7 +12352,8 @@ declare namespace LocalJSX {
|
|
|
12315
12352
|
}
|
|
12316
12353
|
interface LimelResizeHandleAttributes {
|
|
12317
12354
|
"location": 'left' | 'right' | 'top' | 'bottom';
|
|
12318
|
-
"
|
|
12355
|
+
"resizableRegionLabel": string;
|
|
12356
|
+
"language": Languages;
|
|
12319
12357
|
"value": number;
|
|
12320
12358
|
"min": number;
|
|
12321
12359
|
"max": number;
|
|
@@ -12340,8 +12378,8 @@ declare namespace LocalJSX {
|
|
|
12340
12378
|
}
|
|
12341
12379
|
interface LimelSidePanelAttributes {
|
|
12342
12380
|
"label": string;
|
|
12381
|
+
"language": Languages;
|
|
12343
12382
|
"closeLabel": string;
|
|
12344
|
-
"resizeLabel": string;
|
|
12345
12383
|
"closeOnEscape": boolean;
|
|
12346
12384
|
"fullScreen": boolean;
|
|
12347
12385
|
}
|
|
@@ -13737,9 +13775,17 @@ declare module "@stencil/core" {
|
|
|
13737
13775
|
* the edge that `location` names. Give the element a `position` other than
|
|
13738
13776
|
* `static`. If other content covers the handle, also give the element
|
|
13739
13777
|
* `isolation: isolate`.
|
|
13778
|
+
* ## Accessibility
|
|
13779
|
+
* The user reaches the handle with the <kbd>Tab</kbd> key. The handle is named
|
|
13780
|
+
* "Resize" followed by `resizableRegionLabel`, for example "Resize side
|
|
13781
|
+
* panel". A tooltip shows the name and how to resize. While the pointer is
|
|
13782
|
+
* over the handle, it says to drag the handle. While the handle has keyboard
|
|
13783
|
+
* focus, it says which arrow keys to press, which fit `location`. Screen
|
|
13784
|
+
* readers read the arrow keys as the description of the handle.
|
|
13740
13785
|
* @exampleComponent limel-example-resize-handle-basic
|
|
13741
13786
|
* @exampleComponent limel-example-resize-handle-locations
|
|
13742
13787
|
* @exampleComponent limel-example-resize-handle-grab-area
|
|
13788
|
+
* @exampleComponent limel-example-resize-handle-accessibility
|
|
13743
13789
|
* @private
|
|
13744
13790
|
*/
|
|
13745
13791
|
"limel-resize-handle": LocalJSX.IntrinsicElements["limel-resize-handle"] & JSXBase.HTMLAttributes<HTMLLimelResizeHandleElement>;
|
|
@@ -13823,6 +13869,7 @@ declare module "@stencil/core" {
|
|
|
13823
13869
|
* @exampleComponent limel-example-side-panel-header-actions
|
|
13824
13870
|
* @exampleComponent limel-example-side-panel-stacking
|
|
13825
13871
|
* @exampleComponent limel-example-side-panel-full-screen
|
|
13872
|
+
* @exampleComponent limel-example-side-panel-accessibility
|
|
13826
13873
|
* @private
|
|
13827
13874
|
*/
|
|
13828
13875
|
"limel-side-panel": LocalJSX.IntrinsicElements["limel-side-panel"] & JSXBase.HTMLAttributes<HTMLLimelSidePanelElement>;
|
|
@@ -29,6 +29,13 @@ declare const _default: {
|
|
|
29
29
|
'date-picker.year.heading': string;
|
|
30
30
|
'drag-handle.drag-handle': string;
|
|
31
31
|
'drag-handle.drag-to-reorder': string;
|
|
32
|
+
'resize-handle.resize': string;
|
|
33
|
+
'resize-handle.resize-this-region': string;
|
|
34
|
+
'resize-handle.drag': string;
|
|
35
|
+
'resize-handle.keys-left-right': string;
|
|
36
|
+
'resize-handle.keys-up-down': string;
|
|
37
|
+
'side-panel.resize-region': string;
|
|
38
|
+
'side-panel.resize-region.named': string;
|
|
32
39
|
'chip-set.clear-all': string;
|
|
33
40
|
'snackbar.dismiss': string;
|
|
34
41
|
'file.drag-and-drop-tips': string;
|
|
@@ -29,6 +29,13 @@ declare const _default: {
|
|
|
29
29
|
'date-picker.year.heading': string;
|
|
30
30
|
'drag-handle.drag-handle': string;
|
|
31
31
|
'drag-handle.drag-to-reorder': string;
|
|
32
|
+
'resize-handle.resize': string;
|
|
33
|
+
'resize-handle.resize-this-region': string;
|
|
34
|
+
'resize-handle.drag': string;
|
|
35
|
+
'resize-handle.keys-left-right': string;
|
|
36
|
+
'resize-handle.keys-up-down': string;
|
|
37
|
+
'side-panel.resize-region': string;
|
|
38
|
+
'side-panel.resize-region.named': string;
|
|
32
39
|
'chip-set.clear-all': string;
|
|
33
40
|
'snackbar.dismiss': string;
|
|
34
41
|
'file.drag-and-drop-tips': string;
|
|
@@ -29,6 +29,13 @@ declare const _default: {
|
|
|
29
29
|
'date-picker.year.heading': string;
|
|
30
30
|
'drag-handle.drag-handle': string;
|
|
31
31
|
'drag-handle.drag-to-reorder': string;
|
|
32
|
+
'resize-handle.resize': string;
|
|
33
|
+
'resize-handle.resize-this-region': string;
|
|
34
|
+
'resize-handle.drag': string;
|
|
35
|
+
'resize-handle.keys-left-right': string;
|
|
36
|
+
'resize-handle.keys-up-down': string;
|
|
37
|
+
'side-panel.resize-region': string;
|
|
38
|
+
'side-panel.resize-region.named': string;
|
|
32
39
|
'chip-set.clear-all': string;
|
|
33
40
|
'snackbar.dismiss': string;
|
|
34
41
|
'file.drag-and-drop-tips': string;
|
|
@@ -29,6 +29,13 @@ declare const _default: {
|
|
|
29
29
|
'date-picker.year.heading': string;
|
|
30
30
|
'drag-handle.drag-handle': string;
|
|
31
31
|
'drag-handle.drag-to-reorder': string;
|
|
32
|
+
'resize-handle.resize': string;
|
|
33
|
+
'resize-handle.resize-this-region': string;
|
|
34
|
+
'resize-handle.drag': string;
|
|
35
|
+
'resize-handle.keys-left-right': string;
|
|
36
|
+
'resize-handle.keys-up-down': string;
|
|
37
|
+
'side-panel.resize-region': string;
|
|
38
|
+
'side-panel.resize-region.named': string;
|
|
32
39
|
'chip-set.clear-all': string;
|
|
33
40
|
'snackbar.dismiss': string;
|
|
34
41
|
'file.drag-and-drop-tips': string;
|
|
@@ -29,6 +29,13 @@ declare const _default: {
|
|
|
29
29
|
'date-picker.year.heading': string;
|
|
30
30
|
'drag-handle.drag-handle': string;
|
|
31
31
|
'drag-handle.drag-to-reorder': string;
|
|
32
|
+
'resize-handle.resize': string;
|
|
33
|
+
'resize-handle.resize-this-region': string;
|
|
34
|
+
'resize-handle.drag': string;
|
|
35
|
+
'resize-handle.keys-left-right': string;
|
|
36
|
+
'resize-handle.keys-up-down': string;
|
|
37
|
+
'side-panel.resize-region': string;
|
|
38
|
+
'side-panel.resize-region.named': string;
|
|
32
39
|
'chip-set.clear-all': string;
|
|
33
40
|
'snackbar.dismiss': string;
|
|
34
41
|
'file.drag-and-drop-tips': string;
|
|
@@ -29,6 +29,13 @@ declare const _default: {
|
|
|
29
29
|
'date-picker.year.heading': string;
|
|
30
30
|
'drag-handle.drag-handle': string;
|
|
31
31
|
'drag-handle.drag-to-reorder': string;
|
|
32
|
+
'resize-handle.resize': string;
|
|
33
|
+
'resize-handle.resize-this-region': string;
|
|
34
|
+
'resize-handle.drag': string;
|
|
35
|
+
'resize-handle.keys-left-right': string;
|
|
36
|
+
'resize-handle.keys-up-down': string;
|
|
37
|
+
'side-panel.resize-region': string;
|
|
38
|
+
'side-panel.resize-region.named': string;
|
|
32
39
|
'chip-set.clear-all': string;
|
|
33
40
|
'snackbar.dismiss': string;
|
|
34
41
|
'file.drag-and-drop-tips': string;
|
|
@@ -29,6 +29,13 @@ declare const _default: {
|
|
|
29
29
|
'date-picker.year.heading': string;
|
|
30
30
|
'drag-handle.drag-handle': string;
|
|
31
31
|
'drag-handle.drag-to-reorder': string;
|
|
32
|
+
'resize-handle.resize': string;
|
|
33
|
+
'resize-handle.resize-this-region': string;
|
|
34
|
+
'resize-handle.drag': string;
|
|
35
|
+
'resize-handle.keys-left-right': string;
|
|
36
|
+
'resize-handle.keys-up-down': string;
|
|
37
|
+
'side-panel.resize-region': string;
|
|
38
|
+
'side-panel.resize-region.named': string;
|
|
32
39
|
'chip-set.clear-all': string;
|
|
33
40
|
'file.drag-and-drop-tips': string;
|
|
34
41
|
'file.optimizing': string;
|
|
@@ -29,6 +29,13 @@ declare const _default: {
|
|
|
29
29
|
'date-picker.year.heading': string;
|
|
30
30
|
'drag-handle.drag-handle': string;
|
|
31
31
|
'drag-handle.drag-to-reorder': string;
|
|
32
|
+
'resize-handle.resize': string;
|
|
33
|
+
'resize-handle.resize-this-region': string;
|
|
34
|
+
'resize-handle.drag': string;
|
|
35
|
+
'resize-handle.keys-left-right': string;
|
|
36
|
+
'resize-handle.keys-up-down': string;
|
|
37
|
+
'side-panel.resize-region': string;
|
|
38
|
+
'side-panel.resize-region.named': string;
|
|
32
39
|
'chip-set.clear-all': string;
|
|
33
40
|
'snackbar.dismiss': string;
|
|
34
41
|
'file.drag-and-drop-tips': string;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as t,H as o,a as i}from"./p-BU9IJqli.js";import{m as a,r}from"./p-CIf8aGSd.js";import{d as n,g as s}from"./p-CgNJbSP4.js";const l=class{constructor(t){e(this,t),this.primary=!1,this.outlined=!1,this.disabled=!1,this.loading=!1,this.loadingFailed=!1,this.justLoaded=!1,this.filterClickWhenDisabled=e=>{this.disabled&&e.preventDefault()}}componentWillLoad(){a(this.host)}disconnectedCallback(){r(this.host)}render(){return t(o,{key:"0c29dc9e776e7f8847c3c2b72c901f4c48614fe7",onClick:this.filterClickWhenDisabled},t("button",{key:"4b4ce07c60d70ee0586ede555a354f44a8c28502",class:{loading:this.loading,"just-loaded":this.justLoaded&&!this.loadingFailed,"just-failed":this.justLoaded&&this.loadingFailed,outlined:this.outlined},disabled:this.disabled||this.loading,"aria-busy":this.loading?"true":"false","aria-live":"polite"},this.renderIcon(this.icon),this.renderLabel(),this.renderSpinner(),t("svg",{key:"ec49bd0ef8920fd33b6db0d5e7b1569f756c5eeb",viewBox:"0 0 30 30"},this.renderLoadingIcons())))}loadingWatcher(e,t){this.hasFinishedLoading(e,t)?this.handleLoadingFinished():e&&this.handleLoadingStarted()}hasFinishedLoading(e,t){return t&&!e}handleLoadingFinished(){this.justLoaded=!0,this.justLoadedTimeout=window.setTimeout((()=>{this.justLoaded=!1}),2e3)}handleLoadingStarted(){this.justLoaded=!1,window.clearTimeout(this.justLoadedTimeout)}renderLoadingIcons(){return this.loadingFailed?[t("line",{x1:"9",y1:"9",x2:"21",y2:"21"}),t("line",{x1:"21",y1:"9",x2:"9",y2:"21"})]:[t("line",{x1:"8",y1:"14",x2:"15",y2:"20"}),t("line",{x1:"23",y1:"9",x2:"14",y2:"20"})]}renderIcon(e){const o=s(e);if(!o)return;const i=n(e);let a;return this.label||i||console.warn("⚠️ Accessibility warning: `limel-button` has no `label` and its `icon` has no `title`. This creates an inaccessible button for screen reader users. Please add either a `label`, a `title` to the `icon`, or use a `limel-tooltip`. See https://lundalogik.github.io/lime-elements/versions/latest/#/component/limel-button/ for more information."),"object"==typeof e&&(a=e.color),t("limel-icon",Object.assign({},{role:i?"img":"presentation",name:o,"aria-label":i,"aria-hidden":i?null:"true",style:{color:a}}))}renderLabel(){if(this.label)return t("span",{class:"label"},this.label)}renderSpinner(){if(this.loading)return t("limel-spinner",{limeBranded:!1})}static get delegatesFocus(){return!0}get host(){return i(this)}static get watchers(){return{loading:[{loadingWatcher:0}]}}};l.style='@charset "UTF-8";@keyframes reduced-presence{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.7)}}:host(.has-reduced-presence) button[disabled]:not(.loading):not(.just-loaded){animation:reduced-presence 0.3s ease forwards;transition:padding 0.3s ease, min-width 0.3s ease;transition-delay:0.3s;padding:0;min-width:0}:host(.has-reduced-presence) button[disabled]:not(.loading):not(.just-loaded) .label{transition:font-size 0.8s ease;transition-delay:0.3s;font-size:0;opacity:0}:host(.has-reduced-presence) button[disabled]:not(.loading):not(.just-loaded) limel-icon,:host(.has-reduced-presence) button[disabled]:not(.loading):not(.just-loaded) limel-spinner,:host(.has-reduced-presence) button[disabled]:not(.loading):not(.just-loaded) svg,:host(.has-reduced-presence) button[disabled]:not(.loading):not(.just-loaded) .icon{transition:all 0.3s ease;transition-delay:0.3s;opacity:0;width:0;height:0}:host{display:inline-block}:host([hidden]){display:none}:host([aria-expanded=true]) button,:host([aria-expanded]:not([aria-expanded=false])) button{box-shadow:var(--button-shadow-inset-pressed) !important}button.mdc-button{font-family:inherit}button{--_primary-color:var( --lime-primary-color, var(--limel-theme-primary-color) );display:flex;align-items:center;justify-content:center;gap:0.125rem;border:none;border-radius:0.4rem;padding-top:0;padding-right:var(--button-padding-right, 0.5rem);padding-bottom:0;padding-left:var(--button-padding-left, 0.5rem);min-height:2.25rem;width:100%}button:not(:disabled){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);cursor:pointer;color:var(--limel-theme-on-surface-color);background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--button-shadow-normal)}button:not(:disabled):hover,button:not(:disabled):focus,button:not(:disabled):focus-visible{will-change:color, background-color, box-shadow, transform}button:not(:disabled):hover,button:not(:disabled):focus-visible{transform:translate3d(0, -0.04rem, 0);color:var(--limel-theme-on-surface-color);background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--button-shadow-hovered)}button:not(:disabled):active{--limel-clickable-transform-timing-function:cubic-bezier( 0.83, -0.15, 0.49, 1.16 );transform:translate3d(0, 0.05rem, 0);box-shadow:var(--button-shadow-pressed)}button:not(:disabled):hover,button:not(:disabled):active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}button:not(:disabled):focus{outline:none}button:not(:disabled):focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}button:disabled{cursor:not-allowed}:host(limel-button[primary]) button:not(:disabled){color:var(--lime-on-primary-color, var(--limel-theme-on-primary-color));background-color:var(--_primary-color)}:host(limel-button[primary]) button:disabled{background-color:color-mix(in srgb, var(--_primary-color), transparent 80%)}:host(limel-button:not([primary])) button:not(:disabled){color:var(--_primary-color)}:host(limel-button:not([primary])) button:disabled.outlined{color:color-mix(in srgb, var(--_primary-color), transparent 60%);border-color:color-mix(in srgb, var(--_primary-color), transparent 70%)}:host(limel-button:not([primary])) button:disabled:not(.outlined){color:rgba(var(--contrast-1100), 0.37);background-color:rgba(var(--contrast-900), 0.1)}.label{font-size:var(--limel-theme-default-font-size);font-weight:600;letter-spacing:0.03125rem;padding:0 0.25rem}limel-spinner{position:absolute}limel-icon{width:1.25rem;flex-shrink:0;vertical-align:top}svg{height:1.875rem;opacity:0;pointer-events:none;position:absolute;width:1.875rem}svg line{stroke:rgb(var(--contrast-600));stroke-width:2}limel-icon,.label,limel-spinner,svg{transition:opacity 300ms ease-in-out}.loading limel-icon,.loading .label{opacity:0}.loading limel-spinner{opacity:1}.just-loaded limel-icon,.just-loaded .label,.just-failed limel-icon,.just-failed .label{opacity:0}.just-loaded svg,.just-failed svg{opacity:1}.just-failed{background-color:var(--limel-theme-error-color) !important;animation:shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both}.outlined{border:1px solid;border-color:var(--_primary-color)}@keyframes shake{10%,90%{transform:translate3d(-0.0625rem, 0, 0)}20%,80%{transform:translate3d(0.125rem, 0, 0)}30%,50%,70%{transform:translate3d(-0.1875rem, 0, 0)}40%,60%{transform:translate3d(0.1875rem, 0, 0)}}';export{l as limel_button}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as t,h as i,H as o,a}from"./p-BU9IJqli.js";import{E as r}from"./p-Bu6-QXrA.js";import{c as s}from"./p-BrjD-ITe.js";const n=[],l={newTab:"up_right_arrow",expand:"expand"};function c(e){if(e.href&&"newTab"===e.type)return"_blank"}function d(e){e.stopPropagation()}const h=class{constructor(o){e(this,o),this.close=t(this,"close",7),this.selectAction=t(this,"selectAction",7),this.changeWidth=t(this,"changeWidth",7),this.selectStackEntry=t(this,"selectStackEntry",7),this.closeLabel="Close",this.stack=[],this.actions=[],this.resizeLabel="Resize",this.closeOnEscape=!0,this.fullScreen=!1,this.closeButtonId=s(),this.actionIdPrefix=s(),this.backIdPrefix=s(),this.focusCloseButtonAfterRender=!1,this.renderAction=(e,t)=>{const o=`${this.actionIdPrefix}-${t}`;return i(e.href?"a":"button",{class:e.type,id:o,href:e.href,target:c(e),"aria-label":e.label,onClick:this.handleClickAction(e)},i("limel-icon",{name:l[e.type],"aria-hidden":"true"}),i("limel-tooltip",{elementId:o,label:e.label,helperLabel:e.helperLabel}))},this.renderBack=(e,t)=>{var o;const a=`${this.backIdPrefix}-${t}`;return i("button",{class:"back",id:a,style:{width:null===(o=this.panel)||void 0===o?void 0:o.style.width},"aria-label":e.heading,onClick:this.handleClickBack(t)},i("span",{class:"back-toolbar"}),i("span",{class:"back-band",style:{"background-color":e.color}}),i("limel-tooltip",{elementId:a,label:e.heading,helperLabel:e.subheading,openDirection:"left"}))},this.stopContentEvents=e=>{null==e||e.addEventListener("close",d),null==e||e.addEventListener("changeWidth",d)},this.restoreFocus=()=>{const e=!document.activeElement||document.activeElement===document.body;if(this.host.isConnected||!e)return;const t=this.focusedBefore;this.focusedBefore=void 0,(null==t?void 0:t.isConnected)&&t.focus()},this.setPanel=e=>{this.panel=e},this.setMinLimit=e=>{this.minLimit=e},this.setMaxLimit=e=>{this.maxLimit=e},this.handleKeyDown=e=>{this.closeOnEscape&&e.key===r&&!e.defaultPrevented&&this.isLastOpened()&&(e.preventDefault(),this.close.emit())},this.handleChangeSize=e=>{this.rememberWidthBeforeResize(),this.setWidth(e.detail)},this.handleEndResize=()=>{if(!this.isResizing())return;const e=this.widthBeforeResize;this.widthBeforeResize=void 0,this.keepClampedWidth(),this.updateWidthRange(),this.emitWidthIfChanged(e)},this.handleSizeChange=e=>{e.every(this.isMeasured)||this.updateWidthRange()},this.isMeasured=e=>{var t;return e.target===this.panel&&Math.round(e.borderBoxSize[0].inlineSize)===(null===(t=this.widthRange)||void 0===t?void 0:t.now)},this.updateWidthRange=()=>{this.isResizing()||(this.widthRange=this.measureWidthRange())},this.handleClickAction=e=>t=>{var i;this.selectAction.emit({id:null!==(i=e.id)&&void 0!==i?i:e.type,event:t})},this.handleClickBack=e=>()=>{this.selectStackEntry.emit(e)},this.handleClickClose=()=>{this.close.emit()}}connectedCallback(){n.push(this),window.addEventListener("keydown",this.handleKeyDown),this.rememberFocusedElement(),this.observeWidth()}componentDidLoad(){this.observeWidth(),this.moveFocusIntoPanel()}disconnectedCallback(){this.widthBeforeResize=void 0,this.stopObservingWidth(),window.removeEventListener("keydown",this.handleKeyDown),this.removeFromOpenPanels(),queueMicrotask(this.restoreFocus)}handleBacksChange(){this.focusCloseButtonAfterRender=this.isFocusedBackRemoved()}componentDidRender(){var e;this.focusCloseButtonAfterRender&&(this.focusCloseButtonAfterRender=!1,null===(e=this.host.shadowRoot.querySelector("button.close"))||void 0===e||e.focus())}render(){return i(o,{key:"ca07c3557df3be7e026a95da296689e1e3c0cf41"},i("section",{key:"610a8b47c7b34a6d4cb4d253d40cff889ea4c73d",ref:this.setPanel,role:"dialog","aria-label":this.label,tabindex:"-1"},this.renderHandle(),i("div",{key:"c9ddb80456ac82cb39801943b55fcd4de3928852",class:"content"},i("div",{key:"f1430da0610a4fe71363ead5c7730d627a8a935c",class:"toolbar"},this.renderCloseButton(),this.renderActions()),this.renderHeader(),this.renderBody())),this.renderStack(),i("span",{key:"c7d204c8b323f88962508a4c54493717fe347c8e","data-limit":"min",ref:this.setMinLimit}),i("span",{key:"2a7fa787fd0d4c777f90b2ef7dff1d9316108416","data-limit":"max",ref:this.setMaxLimit}))}renderCloseButton(){return i("button",{class:"close",id:this.closeButtonId,"aria-label":this.closeLabel,onClick:this.handleClickClose},i("limel-icon",{name:"multiply","aria-hidden":"true"}),i("limel-tooltip",{elementId:this.closeButtonId,label:this.closeLabel}))}renderActions(){if(0!==this.actions.length)return i("div",{class:"actions"},this.actions.map(((e,t)=>this.renderAction(e,t))))}renderStack(){const e=this.stack.slice(0,-1);if(!this.fullScreen&&0!==e.length)return i("div",{class:"stack"},e.map(((e,t)=>this.renderBack(e,t))))}isFocusedBackRemoved(){const e=[...this.host.shadowRoot.querySelectorAll(".back")].indexOf(this.host.shadowRoot.activeElement);return-1!==e&&(this.fullScreen||e>=this.stack.length-1)}renderHeader(){const e=this.stack.at(-1);if(e)return i("limel-header",{class:{header:!0,"has-color":!!e.color},style:{"--header-background-color":e.color},icon:e.icon,heading:e.heading,subheading:e.subheading},i("div",{class:"header-actions",slot:"actions",ref:this.stopContentEvents},i("slot",{name:"header-actions"})))}renderHandle(){var e,t,o;if(!this.fullScreen)return i("limel-resize-handle",{class:"handle",label:this.resizeLabel,value:null===(e=this.widthRange)||void 0===e?void 0:e.now,min:null===(t=this.widthRange)||void 0===t?void 0:t.min,max:null===(o=this.widthRange)||void 0===o?void 0:o.max,onChangeSize:this.handleChangeSize,onEndResize:this.handleEndResize})}renderBody(){return i("div",{class:"body",ref:this.stopContentEvents},i("slot",null))}stopContentEventAtHost(e){e.target!==this.host&&e.stopImmediatePropagation()}moveFocusIntoPanel(){this.panel.focus({preventScroll:!0})}rememberFocusedElement(){const e=function(){var e;let t=document.activeElement;for(;null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement;)t=t.shadowRoot.activeElement;return t}();e&&e!==document.body&&(this.focusedBefore=e)}removeFromOpenPanels(){const e=n.indexOf(this);-1!==e&&n.splice(e,1)}isLastOpened(){return n.at(-1)===this}setWidth(e){for(const t of this.getPanelBoxes())t.style.width=`${e}px`}getPanelBoxes(){const e=this.host.shadowRoot.querySelectorAll(".back");return[this.panel,...e]}rememberWidthBeforeResize(){this.isResizing()||(this.widthBeforeResize=this.currentWidth())}isResizing(){return void 0!==this.widthBeforeResize}keepClampedWidth(){this.setWidth(this.currentWidth())}emitWidthIfChanged(e){const t=this.currentWidth();t!==e&&this.changeWidth.emit(t)}observeWidth(){if(this.stopObservingWidth(),this.panel){this.widthObserver=new ResizeObserver(this.handleSizeChange);for(const e of[this.panel,this.minLimit,this.maxLimit])e&&this.widthObserver.observe(e)}}stopObservingWidth(){var e;null===(e=this.widthObserver)||void 0===e||e.disconnect(),this.widthObserver=void 0}measureWidthRange(){const e=this.minLimit.offsetWidth,t=Math.max(e,this.maxLimit.offsetWidth);return{now:Math.round(this.currentWidth()),min:Math.round(e),max:Math.round(t)}}currentWidth(){return this.panel.offsetWidth}get host(){return a(this)}static get watchers(){return{stack:[{handleBacksChange:0}],fullScreen:[{handleBacksChange:0}]}}};h.style='@charset "UTF-8";:host(limel-side-panel){--_side-panel-width:var(--side-panel-width, 37.5rem);--_side-panel-min-width:var(--side-panel-min-width, 25rem);--_side-panel-top-inset:var(--side-panel-top-inset, 0px);--_side-panel-right-inset:var(--side-panel-right-inset, 0px);--_side-panel-bottom-inset:var(--side-panel-bottom-inset, 0px);--_side-panel-z-index:var(--side-panel-z-index, 6);--_side-panel-dropdown-z-index:var(--dropdown-z-index);--_side-panel-popover-z-index:var(--popover-z-index);--_side-panel-tooltip-z-index:var(--tooltip-z-index)}@keyframes show-side-panel{0%{transform:translate3d(12.5rem, 0, 0) scale(0.95);opacity:0}60%{opacity:1}100%{transform:translate3d(0, 0, 0) scale(1)}}section{position:absolute;top:var(--_side-panel-top-inset);right:var(--_side-panel-right-inset);bottom:var(--_side-panel-bottom-inset);margin:0.5rem;width:var(--_side-panel-width);min-width:min(var(--_side-panel-min-width), 100% - 1rem);max-width:min(100% - 1rem - 3rem, 60%);max-height:100%;border-radius:1rem;z-index:var(--_side-panel-z-index);display:flex;flex-direction:column;isolation:isolate;box-shadow:var(--shadow-depth-64);transform-origin:left center;transition:background-color 0.5s ease, transform 0.3s ease, opacity 0.2s ease, right 0.2s ease;animation:show-side-panel 0.46s cubic-bezier(0.08, 0.54, 0.06, 1.11) forwards}section:focus{outline:none}@media (prefers-reduced-motion){section{animation:none;transition:none}}.content,.stack{--dropdown-z-index:var( --_side-panel-dropdown-z-index, calc(var(--_side-panel-z-index) + 1) );--popover-z-index:var( --_side-panel-popover-z-index, calc(var(--_side-panel-z-index) + 1) );--tooltip-z-index:var( --_side-panel-tooltip-z-index, calc(var(--_side-panel-z-index) + 1) )}:host([full-screen]) section{left:0;width:100%;min-width:100%;max-width:100%;margin:0}:host([full-screen]) section,:host([full-screen]) .content{border-radius:0}.content{display:flex;flex-direction:column;flex-grow:1;min-height:0;overflow:hidden;border-radius:1rem;background-color:rgb(var(--contrast-100))}.toolbar{flex-shrink:0;display:flex;align-items:center;gap:0.25rem;box-sizing:border-box;min-height:2.375rem;padding:0.25rem 0.125rem;background-color:rgb(var(--contrast-300))}.actions{display:flex;align-items:center;gap:0.25rem;margin-left:auto}.actions>*{appearance:none;background:none;border:none;padding:0;margin:0;font:inherit;color:inherit;text-align:inherit;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);cursor:pointer;color:var(--limel-theme-on-surface-color);background-color:transparent}.actions>*:hover,.actions>*:focus,.actions>*:focus-visible{will-change:color, background-color, box-shadow, transform}.actions>*:hover,.actions>*:focus-visible{transform:translate3d(0, 0.01rem, 0);color:var(--limel-theme-on-surface-color);background-color:var(--lime-elevated-surface-background-color)}.actions>*:hover{box-shadow:var(--button-shadow-hovered)}.actions>*:active{--limel-clickable-transform-timing-function:cubic-bezier( 0.83, -0.15, 0.49, 1.16 );transform:translate3d(0, 0.05rem, 0);box-shadow:var(--button-shadow-pressed)}.actions>*:hover,.actions>*:active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}.actions>*:focus{outline:none}.actions>*:focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}.actions>*{isolation:isolate;position:relative;display:flex;justify-content:center;align-items:center;width:1.875rem;height:1.875rem;border-radius:50%}.actions>* limel-icon{width:1.25rem;transition:transform 0.2s ease, color 0.2s ease}.actions>*{--_side-panel-action-background-color:rgb(var(--contrast-300))}.actions>*:hover,.actions>*:focus-visible{--_side-panel-action-background-color:var( --lime-elevated-surface-background-color )}.actions>*:hover limel-icon{color:var(--mdc-theme-primary)}.newTab limel-icon{transition:transform 0.2s ease;transform:scale(0.8);z-index:3}.newTab:before{z-index:2}.newTab:after{z-index:1}.newTab:before,.newTab:after{content:"";transition:transform 0.2s ease, outline-color 0.2s ease;position:absolute;width:0.875rem;height:0.875rem;outline:1.5px solid rgb(var(--contrast-900));border-radius:1px;background-color:var(--_side-panel-action-background-color)}.newTab:hover limel-icon{transform:translate3d(-0.1rem, 0.1rem, 0) scale(1)}.newTab:hover:before{transform:translate3d(0.125rem, -0.125rem, 0);outline-color:rgb(var(--contrast-1000));box-shadow:var(--shadow-depth-8)}.newTab:hover:after{transform:translate3d(-0.15rem, 0.15rem, 0) scale(0.9);outline-color:rgb(var(--contrast-700))}.expand:after{transition:transform 0.2s ease;content:"";position:absolute;z-index:1;background-color:var(--_side-panel-action-background-color);width:0.75rem;height:0.75rem}.expand:hover:after{transform:scale(0.5)}.expand:hover limel-icon{transform:scale(1.18)}.close{appearance:none;background:none;border:none;padding:0;margin:0;font:inherit;color:inherit;text-align:inherit;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);cursor:pointer;color:var(--limel-theme-on-surface-color);background-color:transparent}.close:hover,.close:focus,.close:focus-visible{will-change:color, background-color, box-shadow, transform}.close:hover,.close:focus-visible{transform:translate3d(0, 0.01rem, 0);color:var(--limel-theme-on-surface-color);background-color:var(--lime-elevated-surface-background-color)}.close:hover{box-shadow:var(--button-shadow-hovered)}.close:active{--limel-clickable-transform-timing-function:cubic-bezier( 0.83, -0.15, 0.49, 1.16 );transform:translate3d(0, 0.05rem, 0);box-shadow:var(--button-shadow-pressed)}.close:hover,.close:active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}.close:focus{outline:none}.close:focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}.close{isolation:isolate;position:relative;display:flex;justify-content:center;align-items:center;width:1.875rem;height:1.875rem;border-radius:50%}.close limel-icon{width:1.25rem;transition:transform 0.2s ease, color 0.2s ease}.close:before,.close:after{content:"";position:absolute;z-index:-1;inset:0;border-radius:50%;opacity:0;transition-delay:0.1s}.close:before{transition:transform 0.3s ease, opacity 0.3s ease;background-color:rgb(var(--color-orange-dark))}.close:after{transition:transform 0.6s ease, opacity 0.6s ease;background-color:rgb(var(--color-orange-light))}.close:hover limel-icon{color:rgb(var(--color-white));transform:scale(0.7) rotate(90deg)}.close:hover:before{opacity:1;transform:scale(0.4)}.close:hover:after{opacity:0.4;transform:scale(0.6)}.header{--side-panel-header-text-color:var(--limel-theme-on-surface-color);--header-top-right-left-border-radius:0;flex-shrink:0;min-height:2.5rem;padding:0.125rem 0.75rem 0.125rem 0.25rem;background-color:var(--header-background-color, rgb(var(--contrast-200)))}.header-actions{display:flex;align-items:center;gap:0.25rem;flex-shrink:0;max-width:50%;overflow:hidden;box-sizing:border-box;max-height:calc(1.25rem + 1rem + 2 * 0.25rem);padding:0.25rem;margin:-0.25rem -0.25rem -0.25rem auto;color:var(--side-panel-header-text-color);text-shadow:none}.has-color{--side-panel-header-text-color:rgb(var(--color-white));--header-heading-color:var(--side-panel-header-text-color);--header-subheading-color:var(--side-panel-header-text-color);text-shadow:0 0 1px rgba(var(--color-black), 0.2), 0 0 0.25rem rgba(var(--color-black), 0.2)}.body{flex-grow:1;min-height:0;display:flex;flex-direction:column;overflow:hidden auto}.handle{position:absolute;z-index:1;top:calc(2.375rem + 0.5rem);bottom:1rem;left:calc(0.5rem / -2);width:0.5rem}[data-limit]{position:absolute;visibility:hidden;pointer-events:none;height:0}[data-limit=min]{width:min(var(--_side-panel-min-width), 100% - 1rem)}[data-limit=max]{width:min(100% - 1rem - 3rem, 60%)}.stack{position:absolute;inset:0;z-index:calc(var(--_side-panel-z-index) - 1);pointer-events:none}.back{appearance:none;background:none;border:none;padding:0;margin:0;font:inherit;color:inherit;text-align:inherit;position:absolute;top:var(--_side-panel-top-inset);right:var(--_side-panel-right-inset);bottom:var(--_side-panel-bottom-inset);margin:0.5rem;width:var(--_side-panel-width);min-width:min(var(--_side-panel-min-width), 100% - 1rem);max-width:min(100% - 1rem - 3rem, 60%);max-height:100%;border-radius:1rem}.back:focus{outline:none}.back:focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}.back{pointer-events:auto;cursor:pointer;box-sizing:border-box;overflow:hidden;display:flex;flex-direction:column;background-color:rgb(var(--contrast-100));box-shadow:var(--shadow-depth-16);transform-origin:left center;transition:transform 0.3s ease, box-shadow 0.2s ease, background-color 0.2s ease, right 0.2s ease}@media (prefers-reduced-motion){.back{transition:none}}.back:nth-last-child(1){transform:translate3d(-1.4rem, 0, 0) scale(0.98)}.back:nth-last-child(2){transform:translate3d(-2.3rem, 0, 0) scale(0.96)}.back:nth-last-child(3){transform:translate3d(-3rem, 0, 0) scale(0.94)}.back:nth-last-child(n+4){transform:translate3d(-3.4rem, 0, 0) scale(0.92)}.back:hover{box-shadow:var(--shadow-depth-64)}.back:hover,.back:focus-visible{right:calc(var(--_side-panel-right-inset) + 0.25rem);background-color:var(--lime-elevated-surface-background-color)}.stack:has(.back:hover) .back:nth-last-child(2){transform:translate3d(-2.6rem, 0, 0) scale(0.96)}.stack:has(.back:hover) .back:nth-last-child(3){transform:translate3d(-3.8rem, 0, 0) scale(0.94)}.stack:has(.back:hover) .back:nth-last-child(n+4){transform:translate3d(-4.9rem, 0, 0) scale(0.92)}.back-toolbar,.back-band{flex-shrink:0}.back-toolbar{height:2.375rem;background-color:rgb(var(--contrast-300))}.back-band{height:2.5rem;background-color:rgb(var(--contrast-200))}';export{h as limel_side_panel}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,h as t,H as e,a as i}from"./p-BU9IJqli.js";import{m as n,r as a}from"./p-CIf8aGSd.js";import{c as s}from"./p-BrjD-ITe.js";import{d as r,g as l}from"./p-CgNJbSP4.js";const d=class{constructor(t){o(this,t),this.elevated=!1,this.disabled=!1,this.tooltipId=s(),this.filterClickWhenDisabled=o=>{this.disabled&&o.preventDefault()}}connectedCallback(){this.initialize()}componentWillLoad(){n(this.host)}disconnectedCallback(){a(this.host)}componentDidLoad(){this.initialize()}initialize(){this.host.shadowRoot.querySelector(".mdc-icon-button")}render(){const o={};return this.host.hasAttribute("tabindex")&&(o.tabindex=this.host.getAttribute("tabindex")),t(e,{key:"0c2536bf5d9628ed72bc55ed768c4e5eb6396b68",onClick:this.filterClickWhenDisabled},t("button",Object.assign({key:"3c18c8f45209887df5c4f76ec635839f3cc147ab","aria-label":this.label,disabled:this.disabled,id:this.tooltipId},o),this.renderIcon(),this.renderTooltip(this.tooltipId)))}renderIcon(){var o,e;const i=l(this.icon),n=r(this.icon);return t("limel-icon",{name:i,"aria-label":n,"aria-hidden":n?null:"true",style:{color:`${null===(o=this.icon)||void 0===o?void 0:o.color}`,"--icon-background-color":`${null===(e=this.icon)||void 0===e?void 0:e.backgroundColor}`}})}renderTooltip(o){if(this.label)return t("limel-tooltip",{elementId:o,label:this.label,helperLabel:this.helperLabel})}static get delegatesFocus(){return!0}get host(){return i(this)}};d.style='@charset "UTF-8";:host([hidden]){display:none}:host([aria-expanded=true]) button,:host([aria-expanded]:not([aria-expanded=false])) button{box-shadow:var(--button-shadow-inset-pressed) !important}button{appearance:none;background:none;border:none;padding:0;margin:0;font:inherit;color:inherit;text-align:inherit}button:not(:disabled){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);cursor:pointer;color:var(--limel-theme-on-surface-color);background-color:var(--icon-background-color, transparent)}button:not(:disabled):hover,button:not(:disabled):focus,button:not(:disabled):focus-visible{will-change:color, background-color, box-shadow, transform}button:not(:disabled):hover,button:not(:disabled):focus-visible{transform:translate3d(0, 0.01rem, 0);color:var(--limel-theme-on-surface-color);background-color:var(--lime-elevated-surface-background-color)}button:not(:disabled):hover{box-shadow:var(--button-shadow-hovered)}button:not(:disabled):active{--limel-clickable-transform-timing-function:cubic-bezier( 0.83, -0.15, 0.49, 1.16 );transform:translate3d(0, 0.05rem, 0);box-shadow:var(--button-shadow-pressed)}button:not(:disabled):hover,button:not(:disabled):active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}button:not(:disabled):focus{outline:none}button:not(:disabled):focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}button{display:inline-flex;align-items:center;justify-content:center;height:2.25rem;width:2.25rem;border-radius:50%}button:disabled{cursor:not-allowed;color:var(--limel-theme-text-disabled-on-background-color)}:host([elevated]) button:not(:hover):not(:active):not(:disabled):not(:focus-visible){box-shadow:var(--button-shadow-normal)}:host([elevated]) button:disabled{box-shadow:var(--button-shadow-normal)}limel-icon{padding:0.25rem;width:1.75rem}';export{d as limel_icon_button}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,a as e}from"./p-BU9IJqli.js";import{t as h}from"./p-w3yKYfBQ.js";import{i as n}from"./p-B9Ofc5RB.js";import{E as r,T as o,a,A as l,b as c}from"./p-Bu6-QXrA.js";import{c as d}from"./p-BrjD-ITe.js";import{a as u,g as p}from"./p-CgNJbSP4.js";import{d as m}from"./p-BviYUVSD.js";import"./p-ChagAaNf.js";import"./p-BJQylLSL.js";import"./p-D6dCQvwl.js";import"./p-BOEi1C7r.js";import"./p-oiMYqRQ0.js";const g=class{constructor(s){t(this,s),this.change=i(this,"change",7),this.interact=i(this,"interact",7),this.action=i(this,"action",7),this.disabled=!1,this.readonly=!1,this.language="en",this.required=!1,this.invalid=!1,this.allItems=[],this.multiple=!1,this.delimiter=null,this.actions=[],this.actionPosition="bottom",this.actionScrollBehavior="sticky",this.badgeIcons=!1,this.textValue="",this.loading=!1,this.chips=[],this.chipSetEditMode=!1,this.getValueId=t=>{const i=t.value;return i&&"object"==typeof i?i.id:i},this.createChips=t=>t?this.multiple?t.map(this.createChip):[this.createChip(t)]:[],this.createChip=t=>{const i=p(t.icon),s=u(t.icon,t.iconColor);return{id:`${this.getValueId(t)}`,text:t.text,removable:!1!==t.removable,icon:i?{name:i,color:s}:void 0,image:t.image,value:t,menuItems:t.actions,badge:t.badge}},this.search=async t=>{const i=setTimeout((()=>{this.loading=!0}),0),s=this.searcher||this.defaultSearcher,e=await s(this.textValue);clearTimeout(i),this.handleSearchResult(t,e)},this.defaultSearcher=async t=>""===t?this.allItems.slice(0,20):this.allItems.filter((i=>{let s=i.text.toLowerCase();return i.secondaryText&&(s=s+" "+i.secondaryText.toLowerCase()),s.includes(t.toLowerCase())})).slice(0,20),this.handleTextInput=this.handleTextInput.bind(this),this.handleInputKeyDown=this.handleInputKeyDown.bind(this),this.handleInputFieldFocus=this.handleInputFieldFocus.bind(this),this.handleChange=this.handleChange.bind(this),this.handleInteract=this.handleInteract.bind(this),this.handleListChange=this.handleListChange.bind(this),this.handleActionListChange=this.handleActionListChange.bind(this),this.handleStopEditAndBlur=this.handleStopEditAndBlur.bind(this),this.handleCloseMenu=this.handleCloseMenu.bind(this),this.onListKeyDown=this.onListKeyDown.bind(this),this.portalId=d(),this.debouncedSearch=m(this.search,300)}componentWillLoad(){this.chips=this.createChips(this.value)}componentDidLoad(){this.chipSet=this.host.shadowRoot.querySelector("limel-chip-set"),this.updateTabIndex()}disconnectedCallback(){this.debouncedSearch.cancel()}onDisabledChange(){this.updateTabIndex()}updateTabIndex(){this.host.setAttribute("tabindex",this.disabled||this.readonly?"-1":"0")}async componentWillUpdate(){this.chipSetEditMode=!1,this.chipSet&&(this.chipSetEditMode=await this.chipSet.getEditMode())}render(){const t={};return this.multiple||(t.maxItems=1),[s("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:!1,emptyInputOnChange:!1,clearAllButton:this.multiple&&!this.chipSetEditMode},t)),this.renderDropdown()]}onChangeValue(){this.chips=this.createChips(this.value)}renderDelimiter(){return this.multiple?this.delimiter:null}renderDropdown(){const t=this.getDropdownContent(),i=[];if(this.shouldShowDropDownContent()){const s=this.getActionContent();"top"===this.actionPosition&&i.push(s),t&&i.push(t),"bottom"===this.actionPosition&&i.push(s)}return this.renderPortal(i)}getActionContent(){var t,i;return 0===(null!==(i=null===(t=this.actions)||void 0===t?void 0:t.length)&&void 0!==i?i:0)?null:[s("limel-list",{class:{"static-actions-list":!0,"is-on-top":"top"===this.actionPosition,"is-at-bottom":"bottom"===this.actionPosition,"has-position-sticky":"sticky"===this.actionScrollBehavior},badgeIcons:!0,type:"selectable",onChange:this.handleActionListChange,items:this.actions.map(this.removeUnusedPropertiesOnAction)})]}removeUnusedPropertiesOnAction(t){return Object.assign(Object.assign({},t),{actions:[]})}shouldShowDropDownContent(){return!this.isFull()&&!!this.chipSetEditMode}getDropdownContent(){var t;if(this.shouldShowDropDownContent())return this.loading?this.renderSpinner():(null===(t=this.items)||void 0===t?void 0:t.length)?this.renderListResult():""!==this.textValue?this.renderEmptyMessage():void 0}isFull(){return!this.multiple&&!!this.value}renderSpinner(){return s("div",{style:{width:"100%",display:"flex","align-items":"center","justify-content":"center",padding:"1rem 0"}},s("limel-spinner",{limeBranded:!1}))}renderEmptyMessage(){const t=this.emptyResultMessage||h.get("picker.no-matching-results",this.language,{query:this.textValue});return s("p",{style:{color:"rgb(var(--contrast-1100))",textAlign:"center",fontSize:"var(--limel-theme-default-font-size)",margin:"0.5rem 1rem"}},t)}renderListResult(){return s("limel-list",{badgeIcons:this.badgeIcons,onChange:this.handleListChange,onKeyDown:this.onListKeyDown,type:"selectable",items:this.items})}onListKeyDown(t){if(t.key===r)return t.preventDefault(),t.stopPropagation(),this.handleEscape(),void this.chipSet.setFocus();[o,a].includes(t.key)&&this.chipSet.setFocus()}renderPortal(t=[]){const i=getComputedStyle(this.host).getPropertyValue("--dropdown-z-index");return s("limel-portal",{visible:t.length>0,containerId:this.portalId,inheritParentWidth:!0,containerStyle:{"z-index":i}},s("limel-menu-surface",{open:t.length>0,allowClicksElement:this.host,style:{"--menu-surface-width":"100%","max-height":"inherit",display:"flex"},onDismiss:this.handleCloseMenu},t))}handleStopEditAndBlur(){const t=this.host.shadowRoot.activeElement||document.activeElement,i=document.querySelector(`#${this.portalId}`);n(t,this.host)||n(t,i)||this.clearInputField()}async handleTextInput(t){t.stopPropagation();const i=t.detail;this.textValue=i,this.debouncedSearch(i),""===i&&this.debouncedSearch.flush()}handleListChange(t){var i,s;if(t.stopPropagation(),!this.value||this.value!==t.detail){let s=t.detail;this.multiple&&(s=[...null!==(i=this.value)&&void 0!==i?i:[],t.detail]),this.change.emit(s),this.updateSearchAfterPick()}this.multiple&&(null===(s=this.chipSet)||void 0===s||s.setFocus())}updateSearchAfterPick(){this.multiple?this.resetSearchAfterValueChange():this.clearInputField()}handleActionListChange(t){t.stopPropagation(),t.detail&&(this.action.emit(t.detail.value),this.items=[])}handleInputFieldFocus(){this.debouncedSearch(this.textValue)}async handleChange(t){var i,s;t.stopPropagation();let e=null;this.multiple&&(e=t.detail.map((t=>this.value.find((i=>`${this.getValueId(i)}`===t.id))))),this.change.emit(e);const h=await(null===(i=this.chipSet)||void 0===i?void 0:i.getEditMode()),n=(null===(s=this.items)||void 0===s?void 0:s.length)>0||""!==this.textValue;this.multiple&&h&&n?this.resetSearchAfterValueChange():this.clearInputField()}handleInteract(t){t.stopPropagation(),this.interact.emit(t.detail?t.detail.value:t.detail)}handleInputKeyDown(t){const i=t.key===o&&!t.altKey&&!t.metaKey&&!t.shiftKey,s=t.key===l,e=t.key===c;if(t.key===r)return t.preventDefault(),t.stopPropagation(),void this.handleEscape();if(!i&&!s&&!e)return;const h=document.querySelector(` #${this.portalId} limel-list`);if(!h)return;if(i||e){const i=h.shadowRoot.querySelector(".mdc-deprecated-list-item");if(!i)return;return t.preventDefault(),void i.focus()}if(!s)return;const n=[...h.shadowRoot.querySelectorAll(".mdc-deprecated-list-item")].at(-1);n&&(t.preventDefault(),n.focus())}handleSearchResult(t,i){var s;if(t!==this.textValue)return;let e=i;if(this.multiple){const t=null!==(s=this.value)&&void 0!==s?s:[];e=i.filter((i=>"separator"in i||!t.includes(i)))}this.items=this.prependSearchHeader(t,e),this.loading=!1}hasPickableItems(t){return t.some((t=>!("separator"in t)))}prependSearchHeader(t,i){return""===t?i:this.hasPickableItems(i)?[{separator:!0,text:h.get("picker.results-matching",this.language,{query:t})},...i]:i}handleCloseMenu(){this.clearInputField()}clearTextValue(){this.chipSet.emptyInput(),this.textValue="",this.debouncedSearch.cancel()}clearInputField(){this.clearTextValue(),this.handleSearchResult("",[])}resetSearchToDefault(){this.clearTextValue(),this.search("")}resetSearchAfterValueChange(){this.clearTextValue(),this.debouncedSearch("")}handleEscape(){""===this.textValue?this.clearInputField():this.resetSearchToDefault()}static get delegatesFocus(){return!0}get host(){return e(this)}static get watchers(){return{disabled:[{onDisabledChange:0}],value:[{onChangeValue:0}]}}};g.style=":host{position:relative;display:block}:host([hidden]){display:none}";export{g as limel_picker}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as e,H as i,a}from"./p-BU9IJqli.js";import{d as o}from"./p-z_E3sq3p.js";const h=class{constructor(e){t(this,e),this.changeTab=s(this,"changeTab",7),this.reorderTab=s(this,"reorderTab",7),this.tabs=[],this.orientation="horizontal",this.allowTabReorder=!1,this.slotElements=[],this.handleChangeTabs=this.handleChangeTabs.bind(this),this.setSlotElements=this.setSlotElements.bind(this),this.setTabStatus=this.setTabStatus.bind(this)}connectedCallback(){this.initialize()}componentDidLoad(){this.initialize()}initialize(){const t=this.getSlot();if(t){t.addEventListener("slotchange",this.setSlotElements),this.setSlotElements();for(const t of this.tabs)this.setTabStatus(t)}}disconnectedCallback(){this.getSlot().removeEventListener("slotchange",this.setSlotElements)}tabsChanged(){this.hidePanels();for(const t of this.tabs)this.setTabStatus(t)}render(){return e(i,{key:"3f70176f334708cbe3c0629ed5b00ea26676b187",onChangeTab:this.handleChangeTabs},e("div",{key:"49d629465a2df872df90a8534aba05db1d1eab6d",class:"tab-panel"},e("limel-tab-bar",{key:"c6c7392edaaf36de925bee5851ff24c64cf639a3",tabs:this.tabs,orientation:this.orientation,allowTabReorder:this.allowTabReorder}),e("div",{key:"2f1e5eb59c3ae94fa0dc92a6fe3ba4dec50dd5be",class:"tab-content"},e("slot",{key:"7441131f62ff758351e44c33c50b4a499e05351c"}))))}setSlotElements(){const t=this.getSlot();this.hidePanels(),this.slotElements=Array.prototype.slice.call(t.assignedElements());for(const t of this.tabs)this.setTabStatus(t)}setTabStatus(t){const s=this.slotElements.find((s=>s.id===t.id));s&&(s.style.display=t.active?"":"none",s.tab=t)}handleChangeTabs(t){this.tabs=this.tabs.map((s=>s.id===t.detail.id?t.detail:s)),this.setTabStatus(t.detail),setTimeout(o,0)}getSlot(){return this.host.shadowRoot.querySelector("slot")}hidePanels(){for(const t of this.slotElements)t.style.display="none"}get host(){return a(this)}static get watchers(){return{tabs:[{tabsChanged:0}]}}};h.style=":host(limel-tab-panel){--tab-panel-background-color:rgb(var(--contrast-100));display:block;height:100%}.tab-panel{height:100%;position:relative;display:flex;flex-direction:column}.tab-content{height:100%;flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;background-color:var(--tab-panel-background-color)}:host(limel-tab-panel[orientation=vertical]) div.tab-panel{flex-direction:row}:host(limel-tab-panel[orientation=vertical]) div.tab-content{min-width:0}";export{h as limel_tab_panel}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,c as t,h as e,H as i,a as r}from"./p-BU9IJqli.js";import{A as a,b as s,c as n,d as l}from"./p-Bu6-QXrA.js";const c={left:{axis:"x",cursor:"col-resize",direction:-1,growKey:n,shrinkKey:l},right:{axis:"x",cursor:"col-resize",direction:1,growKey:l,shrinkKey:n},top:{axis:"y",cursor:"row-resize",direction:-1,growKey:a,shrinkKey:s},bottom:{axis:"y",cursor:"row-resize",direction:1,growKey:s,shrinkKey:a}},h={activeDrags:0};function d(o){document.body.style.cursor=o.cursor,document.body.style.userSelect=o.userSelect}function m(o,t){let e,i,r,a=c.left,s=!1;const n=o=>"x"===a.axis?o.clientX:o.clientY,l=l=>{var m;void 0===e&&(l.preventDefault(),e=l.pointerId,s=!1,a=c[t.getLocation()],i=n(l),r=t.getSize(),o.setPointerCapture(l.pointerId),m=a.cursor,0===h.activeDrags&&(h.before={cursor:document.body.style.cursor,userSelect:document.body.style.userSelect}),h.activeDrags+=1,d({cursor:m,userSelect:"none"}))},m=o=>{o.pointerId===e&&(s=!0,t.resize(r+a.direction*(n(o)-i)))},b=o=>{o.pointerId===e&&(u(),s&&t.end())},u=()=>{void 0!==e&&(e=void 0,h.activeDrags-=1,0===h.activeDrags&&d(h.before))};return o.addEventListener("pointerdown",l),o.addEventListener("pointermove",m),o.addEventListener("pointerup",b),o.addEventListener("pointercancel",b),o.addEventListener("lostpointercapture",b),()=>{u(),o.removeEventListener("pointerdown",l),o.removeEventListener("pointermove",m),o.removeEventListener("pointerup",b),o.removeEventListener("pointercancel",b),o.removeEventListener("lostpointercapture",b)}}const b=class{constructor(e){o(this,e),this.changeSize=t(this,"changeSize",1),this.endResize=t(this,"endResize",1),this.location="left",this.handleKeyDown=o=>{const t=function(o,t){const{growKey:e,shrinkKey:i}=c[o];return t===e?8:t===i?-8:void 0}(this.location,o.key);void 0!==t&&(o.preventDefault(),this.changeSize.emit(this.elementSize()+t),this.endResize.emit())},this.elementSize=()=>{return o=this.resizableElement(),"x"===c[this.location].axis?o.offsetWidth:o.offsetHeight;var o}}connectedCallback(){this.stopResizing=m(this.host,{getLocation:()=>this.location,getSize:this.elementSize,resize:o=>this.changeSize.emit(o),end:()=>this.endResize.emit()})}disconnectedCallback(){var o;null===(o=this.stopResizing)||void 0===o||o.call(this),this.stopResizing=void 0}render(){return e(i,{key:"b4f84fff38ded8d6493be55685fbe1c8d27affdb",role:"separator","aria-orientation":(o=this.location,"x"===c[o].axis?"vertical":"horizontal"),"aria-label":this.label,"aria-valuenow":this.value,"aria-valuemin":this.min,"aria-valuemax":this.max,tabindex:"0",onKeyDown:this.handleKeyDown},e("div",{key:"02b4abbc61b0dd571ceda1d69de057605523e29a",role:"presentation"},e("span",{key:"ea5083fca722c11df72f4b0f647f087732a28033"}),e("span",{key:"81a176e0594f20572dbc94aea0e5dc7709a21d96"}),e("span",{key:"4c39fcd49f2ad087f16a032dfa085d3a8630c41e"})));var o}resizableElement(){return this.host.parentElement?this.host.parentElement:this.host.getRootNode().host}get host(){return r(this)}};b.style='@charset "UTF-8";:host(limel-resize-handle){position:absolute;z-index:1;touch-action:none;display:flex;align-items:center;justify-content:center;border-radius:100vh}:host::before,:host::after{pointer-events:none;content:"";display:block;position:absolute;inset:0;border-radius:100vh;margin:auto}:host::before{transition:scale 0.3s ease, opacity 0.3s ease;transition-delay:0.2s;opacity:0}:host::after{transition:background-color 0.4s ease;transition-delay:0.2s;background-color:rgb(var(--contrast-600))}:host([location=top]),:host([location=bottom]){cursor:row-resize;height:var(--limel-resize-handle-thickness, 0.5rem) !important;right:0;left:0}:host([location=top])::before,:host([location=bottom])::before{scale:1 0.9;height:0.5rem;width:var(--limel-resize-handle-visual-length, auto)}:host([location=top])::after,:host([location=bottom])::after{height:0.125rem;width:var(--limel-resize-handle-visual-length, auto)}:host([location=top]){top:0}:host([location=top])::before{top:0;bottom:auto}:host([location=top])::after{top:calc((0.5rem - 0.125rem) / 2);bottom:auto}:host([location=bottom]){bottom:0}:host([location=bottom])::before{top:auto;bottom:0}:host([location=bottom])::after{top:auto;bottom:calc((0.5rem - 0.125rem) / 2)}:host([location=left]),:host([location=right]){cursor:col-resize;width:0.5rem;top:0;bottom:0}:host([location=left])::before,:host([location=right])::before{scale:0.9 1}:host([location=left])::after,:host([location=right])::after{width:0.125rem}:host([location=left]){left:0}:host([location=right]){right:0}:host(:focus-visible){outline:none}:host(:hover)::before,:host(:focus-visible)::before{transition-duration:0.46s;transition-timing-function:ease-in;opacity:1;scale:1 1;background-color:rgb(var(--color-sky-light), 0.4)}:host(:hover)::after,:host(:focus-visible)::after{transition-duration:0.2s;transition-timing-function:ease-in;background-color:rgb(var(--color-sky-default))}div{transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);pointer-events:none;position:relative;z-index:1;display:flex;gap:0.25rem;align-items:center;justify-content:center;width:fit-content;padding:0.1875rem 0.25rem;border-radius:100vh;margin:auto;background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--button-shadow-pressed)}div span{transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);border-radius:0.125rem;width:0.25rem;height:0.125rem;background-color:rgb(var(--contrast-700))}:host([location=top]) div{margin-top:0;margin-bottom:auto}:host([location=bottom]) div{margin-top:auto;margin-bottom:0}:host([aria-orientation=vertical]) div{rotate:90deg}:host(:hover),:host(:focus-visible){--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}:host(:hover) div,:host(:focus-visible) div{will-change:background-color, box-shadow, transform;transform:translate3d(0, -0.04rem, 0);box-shadow:var(--button-shadow-normal)}:host(:hover) span,:host(:focus-visible) span{will-change:background-color;background-color:var(--mdc-theme-primary)}';export{b as limel_resize_handle}
|