@limetech/lime-elements 40.13.0 → 40.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -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 +732 -279
- 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 +387 -70
- 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 +732 -279
- 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 +387 -70
- 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-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-6d4d7e3f.entry.js +16 -0
- 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-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-3b6d4934.entry.js → p-e6be5819.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/form/form.types.d.ts +7 -0
- 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 +4 -4
- 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-714ab66d.entry.js +0 -16
- 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
|
@@ -105,14 +105,20 @@
|
|
|
105
105
|
position: absolute;
|
|
106
106
|
z-index: 1;
|
|
107
107
|
touch-action: none;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
div[role=separator] {
|
|
111
|
+
position: absolute;
|
|
112
|
+
inset: 0;
|
|
108
113
|
display: flex;
|
|
109
114
|
align-items: center;
|
|
110
115
|
justify-content: center;
|
|
111
116
|
border-radius: 100vh;
|
|
117
|
+
outline: none;
|
|
112
118
|
}
|
|
113
119
|
|
|
114
|
-
|
|
115
|
-
|
|
120
|
+
div[role=separator]::before,
|
|
121
|
+
div[role=separator]::after {
|
|
116
122
|
pointer-events: none;
|
|
117
123
|
content: "";
|
|
118
124
|
display: block;
|
|
@@ -122,13 +128,13 @@
|
|
|
122
128
|
margin: auto;
|
|
123
129
|
}
|
|
124
130
|
|
|
125
|
-
|
|
131
|
+
div[role=separator]::before {
|
|
126
132
|
transition: scale 0.3s ease, opacity 0.3s ease;
|
|
127
133
|
transition-delay: 0.2s;
|
|
128
134
|
opacity: 0;
|
|
129
135
|
}
|
|
130
136
|
|
|
131
|
-
|
|
137
|
+
div[role=separator]::after {
|
|
132
138
|
transition: background-color 0.4s ease;
|
|
133
139
|
transition-delay: 0.2s;
|
|
134
140
|
background-color: rgb(var(--contrast-600));
|
|
@@ -141,14 +147,14 @@
|
|
|
141
147
|
right: 0;
|
|
142
148
|
left: 0;
|
|
143
149
|
}
|
|
144
|
-
:host([location=top])::before,
|
|
145
|
-
:host([location=bottom])::before {
|
|
150
|
+
:host([location=top]) div[role=separator]::before,
|
|
151
|
+
:host([location=bottom]) div[role=separator]::before {
|
|
146
152
|
scale: 1 0.9;
|
|
147
153
|
height: 0.5rem;
|
|
148
154
|
width: var(--limel-resize-handle-visual-length, auto);
|
|
149
155
|
}
|
|
150
|
-
:host([location=top])::after,
|
|
151
|
-
:host([location=bottom])::after {
|
|
156
|
+
:host([location=top]) div[role=separator]::after,
|
|
157
|
+
:host([location=bottom]) div[role=separator]::after {
|
|
152
158
|
height: 0.125rem;
|
|
153
159
|
width: var(--limel-resize-handle-visual-length, auto);
|
|
154
160
|
}
|
|
@@ -156,11 +162,11 @@
|
|
|
156
162
|
:host([location=top]) {
|
|
157
163
|
top: 0;
|
|
158
164
|
}
|
|
159
|
-
:host([location=top])::before {
|
|
165
|
+
:host([location=top]) div[role=separator]::before {
|
|
160
166
|
top: 0;
|
|
161
167
|
bottom: auto;
|
|
162
168
|
}
|
|
163
|
-
:host([location=top])::after {
|
|
169
|
+
:host([location=top]) div[role=separator]::after {
|
|
164
170
|
top: calc((0.5rem - 0.125rem) / 2);
|
|
165
171
|
bottom: auto;
|
|
166
172
|
}
|
|
@@ -168,11 +174,11 @@
|
|
|
168
174
|
:host([location=bottom]) {
|
|
169
175
|
bottom: 0;
|
|
170
176
|
}
|
|
171
|
-
:host([location=bottom])::before {
|
|
177
|
+
:host([location=bottom]) div[role=separator]::before {
|
|
172
178
|
top: auto;
|
|
173
179
|
bottom: 0;
|
|
174
180
|
}
|
|
175
|
-
:host([location=bottom])::after {
|
|
181
|
+
:host([location=bottom]) div[role=separator]::after {
|
|
176
182
|
top: auto;
|
|
177
183
|
bottom: calc((0.5rem - 0.125rem) / 2);
|
|
178
184
|
}
|
|
@@ -184,12 +190,12 @@
|
|
|
184
190
|
top: 0;
|
|
185
191
|
bottom: 0;
|
|
186
192
|
}
|
|
187
|
-
:host([location=left])::before,
|
|
188
|
-
:host([location=right])::before {
|
|
193
|
+
:host([location=left]) div[role=separator]::before,
|
|
194
|
+
:host([location=right]) div[role=separator]::before {
|
|
189
195
|
scale: 0.9 1;
|
|
190
196
|
}
|
|
191
|
-
:host([location=left])::after,
|
|
192
|
-
:host([location=right])::after {
|
|
197
|
+
:host([location=left]) div[role=separator]::after,
|
|
198
|
+
:host([location=right]) div[role=separator]::after {
|
|
193
199
|
width: 0.125rem;
|
|
194
200
|
}
|
|
195
201
|
|
|
@@ -201,12 +207,8 @@
|
|
|
201
207
|
right: 0;
|
|
202
208
|
}
|
|
203
209
|
|
|
204
|
-
:host(:
|
|
205
|
-
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
:host(:hover)::before,
|
|
209
|
-
:host(:focus-visible)::before {
|
|
210
|
+
:host(:hover) div[role=separator]::before,
|
|
211
|
+
:host div[role=separator]:focus-visible::before {
|
|
210
212
|
transition-duration: 0.46s;
|
|
211
213
|
transition-timing-function: ease-in;
|
|
212
214
|
opacity: 1;
|
|
@@ -214,14 +216,14 @@
|
|
|
214
216
|
background-color: rgb(var(--color-sky-light), 0.4);
|
|
215
217
|
}
|
|
216
218
|
|
|
217
|
-
:host(:hover)::after,
|
|
218
|
-
:host
|
|
219
|
+
:host(:hover) div[role=separator]::after,
|
|
220
|
+
:host div[role=separator]:focus-visible::after {
|
|
219
221
|
transition-duration: 0.2s;
|
|
220
222
|
transition-timing-function: ease-in;
|
|
221
223
|
background-color: rgb(var(--color-sky-default));
|
|
222
224
|
}
|
|
223
225
|
|
|
224
|
-
div {
|
|
226
|
+
div[role=presentation] {
|
|
225
227
|
transition: color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);
|
|
226
228
|
pointer-events: none;
|
|
227
229
|
position: relative;
|
|
@@ -237,38 +239,38 @@ div {
|
|
|
237
239
|
background-color: var(--lime-elevated-surface-background-color);
|
|
238
240
|
box-shadow: var(--button-shadow-pressed);
|
|
239
241
|
}
|
|
240
|
-
div span {
|
|
242
|
+
div[role=presentation] span {
|
|
241
243
|
transition: color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);
|
|
242
244
|
border-radius: 0.125rem;
|
|
243
245
|
width: 0.25rem;
|
|
244
246
|
height: 0.125rem;
|
|
245
247
|
background-color: rgb(var(--contrast-700));
|
|
246
248
|
}
|
|
247
|
-
:host([location=top]) div {
|
|
249
|
+
:host([location=top]) div[role=presentation] {
|
|
248
250
|
margin-top: 0;
|
|
249
251
|
margin-bottom: auto;
|
|
250
252
|
}
|
|
251
|
-
:host([location=bottom]) div {
|
|
253
|
+
:host([location=bottom]) div[role=presentation] {
|
|
252
254
|
margin-top: auto;
|
|
253
255
|
margin-bottom: 0;
|
|
254
256
|
}
|
|
255
|
-
|
|
257
|
+
div[role=separator][aria-orientation=vertical] > div[role=presentation] {
|
|
256
258
|
rotate: 90deg;
|
|
257
259
|
}
|
|
258
260
|
|
|
259
261
|
:host(:hover),
|
|
260
|
-
:host
|
|
262
|
+
:host div[role=separator]:focus-visible {
|
|
261
263
|
--limel-clickable-transition-speed: 0.2s;
|
|
262
264
|
--limel-clickable-transform-speed: 0.16s;
|
|
263
265
|
}
|
|
264
|
-
:host(:hover) div,
|
|
265
|
-
:host
|
|
266
|
+
:host(:hover) div[role=presentation],
|
|
267
|
+
:host div[role=separator]:focus-visible div[role=presentation] {
|
|
266
268
|
will-change: background-color, box-shadow, transform;
|
|
267
269
|
transform: translate3d(0, -0.04rem, 0);
|
|
268
270
|
box-shadow: var(--button-shadow-normal);
|
|
269
271
|
}
|
|
270
272
|
:host(:hover) span,
|
|
271
|
-
:host
|
|
273
|
+
:host div[role=separator]:focus-visible span {
|
|
272
274
|
will-change: background-color;
|
|
273
275
|
background-color: var(--mdc-theme-primary);
|
|
274
276
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
|
+
import translate from "../../global/translations";
|
|
2
3
|
import { dragToResize } from "../../util/drag-to-resize";
|
|
3
4
|
import { getKeyboardSizeChange, getOrientation, measureSize, } from "../../util/resize-location";
|
|
5
|
+
const SEPARATOR_ID = 'separator';
|
|
4
6
|
/**
|
|
5
7
|
* A handle on an edge of an element. The user drags the handle, or presses an
|
|
6
8
|
* arrow key while the handle has focus, to resize the element.
|
|
@@ -15,9 +17,18 @@ import { getKeyboardSizeChange, getOrientation, measureSize, } from "../../util/
|
|
|
15
17
|
* `static`. If other content covers the handle, also give the element
|
|
16
18
|
* `isolation: isolate`.
|
|
17
19
|
*
|
|
20
|
+
* ## Accessibility
|
|
21
|
+
* The user reaches the handle with the <kbd>Tab</kbd> key. The handle is named
|
|
22
|
+
* "Resize" followed by `resizableRegionLabel`, for example "Resize side
|
|
23
|
+
* panel". A tooltip shows the name and how to resize. While the pointer is
|
|
24
|
+
* over the handle, it says to drag the handle. While the handle has keyboard
|
|
25
|
+
* focus, it says which arrow keys to press, which fit `location`. Screen
|
|
26
|
+
* readers read the arrow keys as the description of the handle.
|
|
27
|
+
*
|
|
18
28
|
* @exampleComponent limel-example-resize-handle-basic
|
|
19
29
|
* @exampleComponent limel-example-resize-handle-locations
|
|
20
30
|
* @exampleComponent limel-example-resize-handle-grab-area
|
|
31
|
+
* @exampleComponent limel-example-resize-handle-accessibility
|
|
21
32
|
* @private
|
|
22
33
|
*/
|
|
23
34
|
export class ResizeHandle {
|
|
@@ -26,12 +37,31 @@ export class ResizeHandle {
|
|
|
26
37
|
* The location of the handle relative to the resizable element.
|
|
27
38
|
*/
|
|
28
39
|
this.location = 'left';
|
|
40
|
+
/**
|
|
41
|
+
* Defines the language for translations.
|
|
42
|
+
*/
|
|
43
|
+
this.language = 'en';
|
|
44
|
+
this.isPointerOver = false;
|
|
45
|
+
this.hasKeyboardFocus = false;
|
|
46
|
+
this.handlePointerEnter = () => {
|
|
47
|
+
this.isPointerOver = true;
|
|
48
|
+
};
|
|
49
|
+
this.handlePointerLeave = () => {
|
|
50
|
+
this.isPointerOver = false;
|
|
51
|
+
};
|
|
52
|
+
this.handleFocus = (event) => {
|
|
53
|
+
this.hasKeyboardFocus = event.currentTarget.matches(':focus-visible');
|
|
54
|
+
};
|
|
55
|
+
this.handleBlur = () => {
|
|
56
|
+
this.hasKeyboardFocus = false;
|
|
57
|
+
};
|
|
29
58
|
this.handleKeyDown = (event) => {
|
|
30
59
|
const change = getKeyboardSizeChange(this.location, event.key);
|
|
31
60
|
if (change === undefined) {
|
|
32
61
|
return;
|
|
33
62
|
}
|
|
34
63
|
event.preventDefault();
|
|
64
|
+
this.hasKeyboardFocus = true;
|
|
35
65
|
this.changeSize.emit(this.elementSize() + change);
|
|
36
66
|
this.endResize.emit();
|
|
37
67
|
};
|
|
@@ -53,7 +83,25 @@ export class ResizeHandle {
|
|
|
53
83
|
this.stopResizing = undefined;
|
|
54
84
|
}
|
|
55
85
|
render() {
|
|
56
|
-
|
|
86
|
+
const name = this.getName();
|
|
87
|
+
return (h(Host, { key: 'a764146953b0d52a3a3b81450e8e1e65c90c5210', onKeyDown: this.handleKeyDown, onPointerEnter: this.handlePointerEnter, onPointerLeave: this.handlePointerLeave }, h("div", { key: '0d65a5646d9ede0f310045cb2858c554210c001a', role: "separator", id: SEPARATOR_ID, tabindex: "0", "aria-orientation": getOrientation(this.location), "aria-label": name, "aria-valuenow": this.value, "aria-valuemin": this.min, "aria-valuemax": this.max, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '6c5d001384b9b7289c7a40c641c858c7c72de3ca', role: "presentation" }, h("span", { key: 'c43208aff2850d3e3ce439774e069d3bba23bdec' }), h("span", { key: 'f30a64d1bde31ba4a6578d2cdb71ad742bc55ae6' }), h("span", { key: '6d6bac3ba8a6ad7cbdebc730084eed8a8df2f9a2' }))), h("limel-tooltip", { key: '9e2c59edf8223ff52a634e227855ca8b1b4d7664', elementId: SEPARATOR_ID, label: name, helperLabel: this.getHint(), openDirection: this.location })));
|
|
88
|
+
}
|
|
89
|
+
getName() {
|
|
90
|
+
if (!this.resizableRegionLabel) {
|
|
91
|
+
return translate.get('resize-handle.resize-this-region', this.language);
|
|
92
|
+
}
|
|
93
|
+
return translate.get('resize-handle.resize', this.language, {
|
|
94
|
+
region: this.resizableRegionLabel,
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
getHint() {
|
|
98
|
+
if (this.isPointerOver && !this.hasKeyboardFocus) {
|
|
99
|
+
return translate.get('resize-handle.drag', this.language);
|
|
100
|
+
}
|
|
101
|
+
const key = getOrientation(this.location) === 'vertical'
|
|
102
|
+
? 'resize-handle.keys-left-right'
|
|
103
|
+
: 'resize-handle.keys-up-down';
|
|
104
|
+
return translate.get(key, this.language);
|
|
57
105
|
}
|
|
58
106
|
resizableElement() {
|
|
59
107
|
if (this.host.parentElement) {
|
|
@@ -63,6 +111,7 @@ export class ResizeHandle {
|
|
|
63
111
|
}
|
|
64
112
|
static get is() { return "limel-resize-handle"; }
|
|
65
113
|
static get encapsulation() { return "shadow"; }
|
|
114
|
+
static get delegatesFocus() { return true; }
|
|
66
115
|
static get originalStyleUrls() {
|
|
67
116
|
return {
|
|
68
117
|
"$": ["resize-handle.scss"]
|
|
@@ -95,7 +144,7 @@ export class ResizeHandle {
|
|
|
95
144
|
"attribute": "location",
|
|
96
145
|
"defaultValue": "'left'"
|
|
97
146
|
},
|
|
98
|
-
"
|
|
147
|
+
"resizableRegionLabel": {
|
|
99
148
|
"type": "string",
|
|
100
149
|
"mutable": false,
|
|
101
150
|
"complexType": {
|
|
@@ -104,15 +153,42 @@ export class ResizeHandle {
|
|
|
104
153
|
"references": {}
|
|
105
154
|
},
|
|
106
155
|
"required": false,
|
|
156
|
+
"optional": true,
|
|
157
|
+
"docs": {
|
|
158
|
+
"tags": [],
|
|
159
|
+
"text": "The name of the region that the handle resizes, for example\n`side panel`. The accessible name of the handle is \"Resize\" followed by\nthis name, for example \"Resize side panel\". When no name is set, the\nhandle is named \"Resize this region\".\n\nWrite the name in the language that is set in `language`, in the form\nthat reads right after \"Resize\", for example `side panel` in English\nand `sidopanelen` in Swedish."
|
|
160
|
+
},
|
|
161
|
+
"getter": false,
|
|
162
|
+
"setter": false,
|
|
163
|
+
"reflect": true,
|
|
164
|
+
"attribute": "resizable-region-label"
|
|
165
|
+
},
|
|
166
|
+
"language": {
|
|
167
|
+
"type": "string",
|
|
168
|
+
"mutable": false,
|
|
169
|
+
"complexType": {
|
|
170
|
+
"original": "Languages",
|
|
171
|
+
"resolved": "\"da\" | \"de\" | \"en\" | \"fi\" | \"fr\" | \"nb\" | \"nl\" | \"no\" | \"sv\"",
|
|
172
|
+
"references": {
|
|
173
|
+
"Languages": {
|
|
174
|
+
"location": "import",
|
|
175
|
+
"path": "../date-picker/date.types",
|
|
176
|
+
"id": "src/components/date-picker/date.types.ts::Languages",
|
|
177
|
+
"referenceLocation": "Languages"
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"required": false,
|
|
107
182
|
"optional": false,
|
|
108
183
|
"docs": {
|
|
109
184
|
"tags": [],
|
|
110
|
-
"text": "
|
|
185
|
+
"text": "Defines the language for translations."
|
|
111
186
|
},
|
|
112
187
|
"getter": false,
|
|
113
188
|
"setter": false,
|
|
114
189
|
"reflect": true,
|
|
115
|
-
"attribute": "
|
|
190
|
+
"attribute": "language",
|
|
191
|
+
"defaultValue": "'en'"
|
|
116
192
|
},
|
|
117
193
|
"value": {
|
|
118
194
|
"type": "number",
|
|
@@ -173,6 +249,12 @@ export class ResizeHandle {
|
|
|
173
249
|
}
|
|
174
250
|
};
|
|
175
251
|
}
|
|
252
|
+
static get states() {
|
|
253
|
+
return {
|
|
254
|
+
"isPointerOver": {},
|
|
255
|
+
"hasKeyboardFocus": {}
|
|
256
|
+
};
|
|
257
|
+
}
|
|
176
258
|
static get events() {
|
|
177
259
|
return [{
|
|
178
260
|
"method": "changeSize",
|
|
@@ -87,12 +87,12 @@ export class Scroller {
|
|
|
87
87
|
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
88
88
|
}
|
|
89
89
|
render() {
|
|
90
|
-
return (h(Host, { key: '
|
|
90
|
+
return (h(Host, { key: '6e546a2b31136af45497d3de8369754b33992da9' }, h("div", { key: '22fbd0723a170201a422d073f41ce8e2a0d726d3', class: {
|
|
91
91
|
scroller: true,
|
|
92
92
|
[this.orientation]: true,
|
|
93
93
|
'can-scroll-to-start': this.canScrollToStart,
|
|
94
94
|
'can-scroll-to-end': this.canScrollToEnd,
|
|
95
|
-
} }, h("div", { key: '
|
|
95
|
+
} }, h("div", { key: '379da89bc7f3b7b2a4700d1740df7c63906e065f', class: "scroll-area", ref: (element) => (this.scrollArea = element), onScroll: this.updateScrollability, onFocusin: this.revealFocusedItem }, h("div", { key: '448ee73f8e9c68db5cadbd0910c9d1135d8d40ee', class: "scroll-content", ref: (element) => (this.scrollContent = element) }, h("slot", { key: 'fc12618e40799918647a37be83fe8d8d5f7b8077', ref: (element) => (this.slotElement = element) }))), this.renderEdge('start'), this.renderEdge('end'))));
|
|
96
96
|
}
|
|
97
97
|
renderEdge(edge) {
|
|
98
98
|
return [
|
|
@@ -175,7 +175,7 @@ export class Select {
|
|
|
175
175
|
}
|
|
176
176
|
render() {
|
|
177
177
|
const dropdownZIndex = getComputedStyle(this.host).getPropertyValue('--dropdown-z-index');
|
|
178
|
-
return (h(SelectTemplate, { key: '
|
|
178
|
+
return (h(SelectTemplate, { key: 'f7cecafda170b279f117175603e646bf483f5f87', id: this.portalId, disabled: this.disabled || this.readonly, readonly: this.readonly, required: this.required, invalid: this.invalid, label: this.label, helperText: this.helperText, value: this.value, options: this.options, onMenuChange: this.handleMenuChange, onNativeChange: this.handleNativeChange, onTriggerKeyDown: this.handleMenuTriggerKeyDown, listRef: this.setListElement, multiple: this.multiple, isOpen: this.menuOpen, open: this.openMenu, close: this.closeMenu, checkValid: this.checkValid, native: this.shouldRenderNative(), dropdownZIndex: dropdownZIndex, anchor: this.getAnchorElement() }));
|
|
179
179
|
}
|
|
180
180
|
watchOpen(newValue, oldValue) {
|
|
181
181
|
if (this.checkValid) {
|
|
@@ -61,7 +61,7 @@ export class Shortcut {
|
|
|
61
61
|
render() {
|
|
62
62
|
var _a, _b, _c, _d, _e;
|
|
63
63
|
const rel = getRel((_a = this.link) === null || _a === void 0 ? void 0 : _a.target, (_b = this.link) === null || _b === void 0 ? void 0 : _b.rel);
|
|
64
|
-
return (h(Host, { key: '
|
|
64
|
+
return (h(Host, { key: 'e3ecd861d0acb20d1e5a3d832a6b5e641d5a4804', onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, h("a", { key: 'cca63c61bd258b665d65368cbbac0cc56072ed62', "aria-disabled": this.disabled, href: (_c = this.link) === null || _c === void 0 ? void 0 : _c.href, target: (_d = this.link) === null || _d === void 0 ? void 0 : _d.target, rel: rel, tabindex: "0", "aria-label": this.getAriaLabel(), title: (_e = this.link) === null || _e === void 0 ? void 0 : _e.title }, h("limel-icon", { key: 'c9e2de4ab8bdb3d8de874e3f92584a4bdce6af07', name: this.icon }), h("limel-3d-hover-effect-glow", { key: '816c61763d036dc0343805d816c5dc6983af2a41' })), this.renderLabel(), this.renderNotification()));
|
|
65
65
|
}
|
|
66
66
|
static get is() { return "limel-shortcut"; }
|
|
67
67
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
|
+
import translate from "../../global/translations";
|
|
2
3
|
import { getDeepActiveElement } from "../../util/get-deep-active-element";
|
|
3
4
|
import { ESCAPE } from "../../util/keycodes";
|
|
4
5
|
import { createRandomString } from "../../util/random-string";
|
|
@@ -44,12 +45,17 @@ function stopEvent(event) {
|
|
|
44
45
|
* @exampleComponent limel-example-side-panel-header-actions
|
|
45
46
|
* @exampleComponent limel-example-side-panel-stacking
|
|
46
47
|
* @exampleComponent limel-example-side-panel-full-screen
|
|
48
|
+
* @exampleComponent limel-example-side-panel-accessibility
|
|
47
49
|
* @slot - Content of the panel
|
|
48
50
|
* @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.
|
|
49
51
|
* @private
|
|
50
52
|
*/
|
|
51
53
|
export class SidePanel {
|
|
52
54
|
constructor() {
|
|
55
|
+
/**
|
|
56
|
+
* Defines the language for translations.
|
|
57
|
+
*/
|
|
58
|
+
this.language = 'en';
|
|
53
59
|
/**
|
|
54
60
|
* Label of the close button. Shown as a tooltip and used as the accessible
|
|
55
61
|
* name.
|
|
@@ -65,10 +71,6 @@ export class SidePanel {
|
|
|
65
71
|
* Buttons in the toolbar, to the right of the close button.
|
|
66
72
|
*/
|
|
67
73
|
this.actions = [];
|
|
68
|
-
/**
|
|
69
|
-
* Label of the resize handle. Used as the accessible name.
|
|
70
|
-
*/
|
|
71
|
-
this.resizeLabel = 'Resize';
|
|
72
74
|
/**
|
|
73
75
|
* Whether pressing Escape emits `close`. Set to `false` to let only the
|
|
74
76
|
* close button emit `close`. The panel then does not prevent the Escape
|
|
@@ -231,7 +233,7 @@ export class SidePanel {
|
|
|
231
233
|
.querySelector('button.close')) === null || _a === void 0 ? void 0 : _a.focus();
|
|
232
234
|
}
|
|
233
235
|
render() {
|
|
234
|
-
return (h(Host, { key: '
|
|
236
|
+
return (h(Host, { key: 'f4ddb3df52344cfb6106ab2982c7d0c077e075fb' }, h("section", { key: '2dcf62861e49014f9fc080a945a9c1e0c5bd3920', ref: this.setPanel, role: "dialog", "aria-label": this.label, tabindex: "-1" }, this.renderHandle(), h("div", { key: '169006b7eed55cf37b7db4ce393d29b5d1184d42', class: "content" }, h("div", { key: '9fa270803bf650e258358e7c9031d10f58c35189', class: "toolbar" }, this.renderCloseButton(), this.renderActions()), this.renderHeader(), this.renderBody())), this.renderStack(), h("span", { key: 'c8e01b49683bdaa2d549830930e4247f3a49895b', "data-limit": "min", ref: this.setMinLimit }), h("span", { key: '9baec9cc89a6e1f375f97d4f9069f8951f90bf6a', "data-limit": "max", ref: this.setMaxLimit })));
|
|
235
237
|
}
|
|
236
238
|
// A native button and not `limel-icon-button`, because the hover animation
|
|
237
239
|
// styles the icon, which is inside the shadow root of `limel-icon-button`.
|
|
@@ -271,7 +273,15 @@ export class SidePanel {
|
|
|
271
273
|
if (this.fullScreen) {
|
|
272
274
|
return;
|
|
273
275
|
}
|
|
274
|
-
return (h("limel-resize-handle", { class: "handle",
|
|
276
|
+
return (h("limel-resize-handle", { class: "handle", resizableRegionLabel: this.getRegionLabel(), language: this.language, value: (_a = this.widthRange) === null || _a === void 0 ? void 0 : _a.now, min: (_b = this.widthRange) === null || _b === void 0 ? void 0 : _b.min, max: (_c = this.widthRange) === null || _c === void 0 ? void 0 : _c.max, onChangeSize: this.handleChangeSize, onEndResize: this.handleEndResize }));
|
|
277
|
+
}
|
|
278
|
+
getRegionLabel() {
|
|
279
|
+
if (!this.label) {
|
|
280
|
+
return translate.get('side-panel.resize-region', this.language);
|
|
281
|
+
}
|
|
282
|
+
return translate.get('side-panel.resize-region.named', this.language, {
|
|
283
|
+
label: this.label,
|
|
284
|
+
});
|
|
275
285
|
}
|
|
276
286
|
renderBody() {
|
|
277
287
|
return (h("div", { class: "body", ref: this.stopContentEvents }, h("slot", null)));
|
|
@@ -409,13 +419,40 @@ export class SidePanel {
|
|
|
409
419
|
"optional": true,
|
|
410
420
|
"docs": {
|
|
411
421
|
"tags": [],
|
|
412
|
-
"text": "Accessible name of the panel. Screen readers announce it. Set it to\nsomething that tells the user what the panel is for."
|
|
422
|
+
"text": "Accessible name of the panel. Screen readers announce it. Set it to\nsomething that tells the user what the panel is for.\n\nThe resize handle is named after it, for example \"Resize Customer\ndetails panel\". When no label is set, the handle is named \"Resize side\npanel\"."
|
|
413
423
|
},
|
|
414
424
|
"getter": false,
|
|
415
425
|
"setter": false,
|
|
416
426
|
"reflect": false,
|
|
417
427
|
"attribute": "label"
|
|
418
428
|
},
|
|
429
|
+
"language": {
|
|
430
|
+
"type": "string",
|
|
431
|
+
"mutable": false,
|
|
432
|
+
"complexType": {
|
|
433
|
+
"original": "Languages",
|
|
434
|
+
"resolved": "\"da\" | \"de\" | \"en\" | \"fi\" | \"fr\" | \"nb\" | \"nl\" | \"no\" | \"sv\"",
|
|
435
|
+
"references": {
|
|
436
|
+
"Languages": {
|
|
437
|
+
"location": "import",
|
|
438
|
+
"path": "../date-picker/date.types",
|
|
439
|
+
"id": "src/components/date-picker/date.types.ts::Languages",
|
|
440
|
+
"referenceLocation": "Languages"
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
"required": false,
|
|
445
|
+
"optional": false,
|
|
446
|
+
"docs": {
|
|
447
|
+
"tags": [],
|
|
448
|
+
"text": "Defines the language for translations."
|
|
449
|
+
},
|
|
450
|
+
"getter": false,
|
|
451
|
+
"setter": false,
|
|
452
|
+
"reflect": true,
|
|
453
|
+
"attribute": "language",
|
|
454
|
+
"defaultValue": "'en'"
|
|
455
|
+
},
|
|
419
456
|
"closeLabel": {
|
|
420
457
|
"type": "string",
|
|
421
458
|
"mutable": false,
|
|
@@ -486,26 +523,6 @@ export class SidePanel {
|
|
|
486
523
|
"setter": false,
|
|
487
524
|
"defaultValue": "[]"
|
|
488
525
|
},
|
|
489
|
-
"resizeLabel": {
|
|
490
|
-
"type": "string",
|
|
491
|
-
"mutable": false,
|
|
492
|
-
"complexType": {
|
|
493
|
-
"original": "string",
|
|
494
|
-
"resolved": "string",
|
|
495
|
-
"references": {}
|
|
496
|
-
},
|
|
497
|
-
"required": false,
|
|
498
|
-
"optional": false,
|
|
499
|
-
"docs": {
|
|
500
|
-
"tags": [],
|
|
501
|
-
"text": "Label of the resize handle. Used as the accessible name."
|
|
502
|
-
},
|
|
503
|
-
"getter": false,
|
|
504
|
-
"setter": false,
|
|
505
|
-
"reflect": false,
|
|
506
|
-
"attribute": "resize-label",
|
|
507
|
-
"defaultValue": "'Resize'"
|
|
508
|
-
},
|
|
509
526
|
"closeOnEscape": {
|
|
510
527
|
"type": "boolean",
|
|
511
528
|
"mutable": false,
|
|
@@ -270,15 +270,15 @@ export class Slider {
|
|
|
270
270
|
if (this.disabled || this.readonly) {
|
|
271
271
|
inputProps.disabled = true;
|
|
272
272
|
}
|
|
273
|
-
return (h(Host, { key: '
|
|
273
|
+
return (h(Host, { key: '3a782f6aa420997f4a088e922438245c7c34143b', class: this.getContainerClassList() }, h("limel-notched-outline", { key: '997046fb961c325d2a4a1e5cc51b08d84bcc2274', labelId: this.inputId, label: this.label, required: this.required, invalid: this.invalid, disabled: this.disabled, readonly: this.readonly, hasValue: !this.isUnset, hasFloatingLabel: true }, h("div", { key: '985fceba0aa4385936c06b1e8cd083ead77823b2', slot: "content" }, h("div", { key: '47238548b281254d3fe7e9fe7350890ffb5f573e', class: "slider", style: { '--slider-fraction': `${fraction}` } }, h("input", Object.assign({ key: 'f3fc215a6b2c331342487f206c549e04d109a061', id: this.inputId, type: "range", min: min, max: max, value: this.displayValue, "aria-describedby": this.helperText
|
|
274
274
|
? this.helperTextId
|
|
275
275
|
: undefined, "aria-invalid": this.invalid ? 'true' : undefined, "aria-valuetext": this.isUnset
|
|
276
276
|
? translate.get('value-not-set', this.language)
|
|
277
277
|
: undefined, ref: (el) => {
|
|
278
278
|
this.inputElement = el;
|
|
279
|
-
}, onInput: this.handleInput, onChange: this.handleChange, onClick: this.handleClick }, inputProps)), h("div", { key: '
|
|
279
|
+
}, onInput: this.handleInput, onChange: this.handleChange, onClick: this.handleClick }, inputProps)), h("div", { key: '407448db5cd86d489adb909e4c5ecc0e0d050c53', class: "track" }, h("div", { key: '7f8c47aa449ee1a5ffe9c8fbc35e7b8ec9c818ad', class: "active" }), this.renderStepDots(min, max)), h("div", { key: '866541538223dddbd750c57836426941ef4e6139', class: "thumb" }, h("div", { key: 'b663cbb67b3656bec79b81a3d0b47fb08f234bfb', class: "knob" }), h("div", { key: '58bc88bc2c9ff6e1a2c4635708d2dd1c5744e7ac', class: "indicator", "aria-hidden": "true" }, this.isUnset
|
|
280
280
|
? '\u{2194}\u{FE0E}'
|
|
281
|
-
: this.displayValue))), h("div", { key: '
|
|
281
|
+
: this.displayValue))), h("div", { key: '4bc12eebc0006e5e54ff2d6c44d04303e0370de0', class: "range-labels" }, h("span", { key: 'faa2e129c54b50f7503277fdfb8430270a154524', class: "min" }, this.multiplyByFactor(this.valuemin), this.unit), h("span", { key: 'ade8069607794cddfddec0d6b5d574b54fb7da0e', class: "max" }, this.multiplyByFactor(this.valuemax), this.unit)))), this.renderClearButton(), this.renderHelperLine()));
|
|
282
282
|
}
|
|
283
283
|
watchValue() {
|
|
284
284
|
this.syncStateFromValue();
|
|
@@ -122,14 +122,14 @@ export class Snackbar {
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
render() {
|
|
125
|
-
return (h("aside", { key: '
|
|
125
|
+
return (h("aside", { key: '8783a6f2dfbc27d97e2923e4b1733a605c96426a', popover: "manual", style: {
|
|
126
126
|
'--snackbar-timeout': `${Math.max(this.timeout || 0, 0)}ms`,
|
|
127
127
|
'--snackbar-distance-to-top-edge': `${this.offset}px`,
|
|
128
128
|
}, class: {
|
|
129
129
|
open: this.open,
|
|
130
130
|
'is-closing': this.closing,
|
|
131
131
|
'limel-portal--parent': true,
|
|
132
|
-
}, id: this.snackbarId, role: this.setAriaRoles(), "aria-atomic": this.open ? 'true' : undefined, "aria-relevant": this.open ? 'additions' : undefined }, h("div", { key: '
|
|
132
|
+
}, id: this.snackbarId, role: this.setAriaRoles(), "aria-atomic": this.open ? 'true' : undefined, "aria-relevant": this.open ? 'additions' : undefined }, h("div", { key: '96335eef9b7ea7c5c32a7fe3dc197a5a51f91606', class: "surface" }, h("limel-markdown", { key: 'a28c251f5c22723a816e0c662a479ecd98c59ad0', class: "label", value: this.message }), this.renderActions(this.actionText), this.renderDismissButton(this.dismissible))));
|
|
133
133
|
}
|
|
134
134
|
setAriaRoles() {
|
|
135
135
|
if (!this.open) {
|
|
@@ -16,7 +16,7 @@ export class Spinner {
|
|
|
16
16
|
this.limeBranded = false;
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '9883b127040b5ff110bdd1d8b6d38007fb02df6f' }, h("svg", { key: '019b40d28fc363dd0a6e6b740408df2de717bf65', viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, this.renderSpinner())));
|
|
20
20
|
}
|
|
21
21
|
renderSpinner() {
|
|
22
22
|
if (!this.limeBranded) {
|
|
@@ -55,9 +55,9 @@ export class SplitButton {
|
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
|
-
return (h(Host, { key: '
|
|
58
|
+
return (h(Host, { key: '7d99f6e787578f89d011b03d7f74555514e26644', class: {
|
|
59
59
|
'has-menu': this.items.length > 0,
|
|
60
|
-
}, onClick: this.filterClickWhenDisabled }, h("limel-button", { key: '
|
|
60
|
+
}, onClick: this.filterClickWhenDisabled }, h("limel-button", { key: 'b846b51c307b36831bebe2bb6c3c4efc1c9019a9', label: this.label, primary: this.primary, icon: this.icon, disabled: this.disabled, loading: this.loading, loadingFailed: this.loadingFailed }), this.renderMenu()));
|
|
61
61
|
}
|
|
62
62
|
static get is() { return "limel-split-button"; }
|
|
63
63
|
static get encapsulation() { return "shadow"; }
|
|
@@ -78,7 +78,7 @@ export class Switch {
|
|
|
78
78
|
removeEnterClickable(this.host);
|
|
79
79
|
}
|
|
80
80
|
render() {
|
|
81
|
-
return (h(Host, { key: '
|
|
81
|
+
return (h(Host, { key: 'b6c37d2c9a9dc66e7e02271fe7877d24f190aaa9' }, this.readonly
|
|
82
82
|
? this.renderReadonly()
|
|
83
83
|
: this.renderInteractive(), this.renderHelperLine()));
|
|
84
84
|
}
|
|
@@ -101,7 +101,7 @@ export class TabBar {
|
|
|
101
101
|
}
|
|
102
102
|
render() {
|
|
103
103
|
const tabStop = findTabStop(this.tabs, this.tabs.findIndex((tab) => tab.active), this.getNavigationOptions());
|
|
104
|
-
return (h("div", { key: '
|
|
104
|
+
return (h("div", { key: 'dc7667c302c9f0e6646fde68910a7db307df4981', role: "tablist", "aria-orientation": this.getOrientation(), onKeyDown: this.handleKeyDown }, h("limel-scroller", { key: 'bedbb5b569822a394582a7f1c3e108206d230912', orientation: this.getOrientation() }, this.tabs.map((tab, index) => this.renderTabOrMovableTab(tab, index, index === tabStop)))));
|
|
105
105
|
}
|
|
106
106
|
tabsChanged(newTabs = [], oldTabs = []) {
|
|
107
107
|
const newIds = newTabs.map((tab) => tab.id);
|
|
@@ -75,7 +75,7 @@ export class TabPanel {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
render() {
|
|
78
|
-
return (h(Host, { key: '
|
|
78
|
+
return (h(Host, { key: '530a6e0b8ae7387edaf8e0c1b6360a5a8099f155', onChangeTab: this.handleChangeTabs }, h("div", { key: '5d2ba03a54a5315b9c400d28b8dc0967a41a34fe', class: "tab-panel" }, h("limel-tab-bar", { key: '69183dd7c31a1d5c6d7027a81bf152586bf6fd0a', tabs: this.tabs, orientation: this.orientation, allowTabReorder: this.allowTabReorder }), h("div", { key: 'f7ac219b8f1941a1b2b5656f36646077165b2ec9', class: "tab-content" }, h("slot", { key: '177a1e39cdc731a2e77b6d06a691851a193b2a40' })))));
|
|
79
79
|
}
|
|
80
80
|
setSlotElements() {
|
|
81
81
|
const slot = this.getSlot();
|
|
@@ -757,13 +757,13 @@ export class Table {
|
|
|
757
757
|
render() {
|
|
758
758
|
var _a, _b;
|
|
759
759
|
const totalRows = (_a = this.totalRows) !== null && _a !== void 0 ? _a : this.data.length;
|
|
760
|
-
return (h(Host, { key: '
|
|
760
|
+
return (h(Host, { key: 'b83772fd4b3fda9ec2e422d7ae96108ac8c3e30a', class: {
|
|
761
761
|
'has-low-density': this.layout === 'lowDensity',
|
|
762
762
|
'has-pagination-on-top': this.paginationLocation === 'top',
|
|
763
763
|
'has-aggregation': this.hasAggregation(this.columns),
|
|
764
764
|
'has-pagination': totalRows > this.pageSize,
|
|
765
765
|
'has-selection': (_b = this.tableSelection) === null || _b === void 0 ? void 0 : _b.hasSelection,
|
|
766
|
-
} }, h("div", { key: '
|
|
766
|
+
} }, h("div", { key: 'cae198d9b1cad3fc776bc09517013a93243c2228', id: "tabulator-container" }, h("div", { key: 'fe968494d9b7977eac1643aadeee1bf0d2347f0e', id: "tabulator-loader", style: { display: this.loading ? 'flex' : 'none' } }, h("limel-spinner", { key: 'd73ed9fbcca8b75039fa7119e7c9bf0b00b58f0c', size: "large" })), this.renderEmptyMessage(), this.renderSelectAll(), h("div", { key: '67ffdb6b7627a0660008f17e3e5ae3ac62554a64', id: "tabulator-table" }))));
|
|
767
767
|
}
|
|
768
768
|
renderSelectAll() {
|
|
769
769
|
var _a, _b, _c;
|