@limetech/lime-elements 40.15.0 → 40.17.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 +26 -0
- package/dist/cjs/_Map-BsuE0Kgq.js +57 -0
- package/dist/cjs/_arrayPush-0Rd-eNkQ.js +420 -0
- package/dist/cjs/_baseFlatten-BonTAUIo.js +199 -0
- package/dist/cjs/{_baseForOwn-8jMPwf3X.js → _baseForOwn-Bflq946d.js} +1 -1
- package/dist/cjs/{_baseIsEqual-zzV9DKMv.js → _baseIsEqual-DNSR68qD.js} +16 -428
- package/dist/cjs/_baseIteratee-Cistiy8H.js +263 -0
- package/dist/cjs/{_baseSet-DykMx7uF.js → _basePickBy-DeOMws-h.js} +29 -43
- package/dist/cjs/{_getPrototype-CCLHkBHj.js → _getPrototype-D74M8h-k.js} +1 -1
- package/dist/cjs/{_getTag-BC28Za7d.js → _getTag-CxGZ3DRt.js} +7 -57
- package/dist/cjs/{cloneDeep-D2immmwT.js → cloneDeep-CiuKX6HE.js} +3 -3
- package/dist/cjs/{drag-to-reorder-BP5YkPuu.js → drag-to-reorder-BmVz_kUy.js} +3 -193
- package/dist/cjs/{_baseIteratee-BIMRm4nq.js → hasIn-BQ92Jk0F.js} +10 -264
- package/dist/cjs/help-props-Ds30nnt1.js +90 -0
- package/dist/cjs/isArrayLike-0-cyPB5I.js +35 -0
- package/dist/cjs/{isEmpty-CCxl3bYc.js → isEmpty-BsdhcVKT.js} +4 -3
- package/dist/cjs/{isEqual-D3eFkhqd.js → isEqual-QhCilNoo.js} +1 -1
- package/dist/cjs/isLength-DvlFY_9S.js +37 -0
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-3d-hover-effect-glow.cjs.entry.js +1 -1
- package/dist/cjs/limel-action-bar_3.cjs.entry.js +3 -3
- package/dist/cjs/limel-ai-avatar.cjs.entry.js +1 -1
- package/dist/cjs/limel-badge.cjs.entry.js +2 -2
- package/dist/cjs/limel-banner.cjs.entry.js +1 -1
- package/dist/cjs/limel-breadcrumbs_6.cjs.entry.js +6 -6
- package/dist/cjs/limel-button-group.cjs.entry.js +1 -1
- package/dist/cjs/limel-button.cjs.entry.js +2 -2
- package/dist/cjs/limel-callout.cjs.entry.js +1 -1
- package/dist/cjs/limel-card.cjs.entry.js +1 -1
- package/dist/cjs/limel-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/limel-chip-set.cjs.entry.js +11 -8
- package/dist/cjs/limel-chip_2.cjs.entry.js +7 -5
- package/dist/cjs/limel-circular-progress.cjs.entry.js +1 -1
- package/dist/cjs/limel-code-diff.cjs.entry.js +1 -1
- package/dist/cjs/limel-code-editor.cjs.entry.js +1 -1
- package/dist/cjs/limel-collapsible-section.cjs.entry.js +1 -1
- package/dist/cjs/limel-color-picker-palette.cjs.entry.js +2 -2
- package/dist/cjs/limel-color-picker.cjs.entry.js +2 -2
- package/dist/cjs/limel-dialog.cjs.entry.js +12 -9
- package/dist/cjs/limel-dock.cjs.entry.js +2 -2
- package/dist/cjs/limel-drag-handle_2.cjs.entry.js +3 -3
- package/dist/cjs/limel-email-viewer.cjs.entry.js +1 -1
- package/dist/cjs/limel-file-dropzone_2.cjs.entry.js +14 -10
- package/dist/cjs/limel-file.cjs.entry.js +1 -1
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +3 -2
- package/dist/cjs/limel-flex-container.cjs.entry.js +1 -1
- package/dist/cjs/limel-form-header.cjs.entry.js +59 -0
- package/dist/cjs/limel-form.cjs.entry.js +140 -45
- 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.cjs.entry.js → limel-help_2.cjs.entry.js} +22 -2
- package/dist/cjs/limel-helper-line_3.cjs.entry.js +4 -4
- package/dist/cjs/limel-hotkey_4.cjs.entry.js +5 -5
- package/dist/cjs/limel-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-icon.cjs.entry.js +1 -1
- package/dist/cjs/limel-info-tile.cjs.entry.js +2 -2
- package/dist/cjs/limel-list-item.cjs.entry.js +2 -2
- package/dist/cjs/limel-markdown.cjs.entry.js +1 -1
- package/dist/cjs/limel-masonry-layout.cjs.entry.js +1 -1
- package/dist/cjs/limel-menu-item-meta.cjs.entry.js +1 -1
- package/dist/cjs/limel-pagination.cjs.entry.js +3 -2
- package/dist/cjs/limel-picker.cjs.entry.js +1 -1
- package/dist/cjs/limel-popover_2.cjs.entry.js +27 -4
- package/dist/cjs/limel-profile-picture.cjs.entry.js +2 -1
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +13 -10
- 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 +1 -1
- 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 +1 -1
- package/dist/cjs/limel-slider.cjs.entry.js +3 -3
- package/dist/cjs/limel-snackbar.cjs.entry.js +2 -2
- package/dist/cjs/limel-split-button.cjs.entry.js +2 -2
- package/dist/cjs/limel-switch.cjs.entry.js +1 -1
- package/dist/cjs/limel-tab-bar.cjs.entry.js +14 -10
- package/dist/cjs/limel-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/limel-table.cjs.entry.js +21 -41
- package/dist/cjs/limel-text-editor-link-menu.cjs.entry.js +3 -3
- package/dist/cjs/limel-text-editor.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/negate-Bg3SqQh6.js +42 -0
- package/dist/collection/collection-manifest.json +1 -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 +2 -2
- 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/fields/object-field.js +2 -2
- package/dist/collection/components/form/form.css +21 -21
- package/dist/collection/components/form/form.js +60 -3
- package/dist/collection/components/form/form.test-schemas.js +62 -0
- package/dist/collection/components/form/help/help.js +2 -5
- package/dist/collection/components/form/row/row.js +4 -1
- package/dist/collection/components/form/templates/array-field.js +4 -4
- package/dist/collection/components/form/templates/common.js +21 -4
- package/dist/collection/components/form/templates/heading-level.js +51 -0
- package/dist/collection/components/form/templates/object-field.js +3 -9
- package/dist/collection/components/form-header/form-header.css +3 -0
- package/dist/collection/components/form-header/form-header.js +163 -0
- package/dist/collection/components/form-header/help-props.js +17 -0
- 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 +3 -2
- package/dist/collection/components/picker/picker.js +1 -1
- package/dist/collection/components/popover/popover.js +64 -3
- package/dist/collection/components/popover-surface/popover-surface.js +39 -1
- package/dist/collection/components/portal/portal.js +1 -1
- package/dist/collection/components/profile-picture/profile-picture.js +2 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button.js +2 -2
- package/dist/collection/components/resize-handle/resize-handle.js +1 -1
- package/dist/collection/components/scroller/scroller.js +2 -2
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/shortcut/shortcut.js +1 -1
- package/dist/collection/components/side-panel/side-panel.js +1 -1
- package/dist/collection/components/slider/slider.js +3 -3
- package/dist/collection/components/snackbar/snackbar.js +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-button/split-button.js +2 -2
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab-bar/tab-bar.js +1 -1
- package/dist/collection/components/tab-panel/tab-panel.js +1 -1
- package/dist/collection/components/table/table.js +2 -2
- package/dist/collection/components/text-editor/link-menu/editor-link-menu.js +3 -3
- package/dist/collection/components/text-editor/prosemirror-adapter/prosemirror-adapter.js +1 -1
- package/dist/collection/components/text-editor/text-editor.js +1 -1
- package/dist/collection/components/tooltip/tooltip-content.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/esm/_Map-LWJCQc-c.js +54 -0
- package/dist/esm/_arrayPush-NEl7BpFy.js +416 -0
- package/dist/esm/_baseFlatten-mvFj07qD.js +195 -0
- package/dist/esm/{_baseForOwn-vKFWmmaS.js → _baseForOwn-C3COyhQS.js} +1 -1
- package/dist/esm/{_baseIsEqual-B_JRErB0.js → _baseIsEqual-CJf575VC.js} +9 -419
- package/dist/esm/_baseIteratee-DM5xljbg.js +260 -0
- package/dist/esm/{_baseSet-BUAq8NGm.js → _basePickBy-D_9Hus6l.js} +27 -41
- package/dist/esm/{_getPrototype-B0kMNv1F.js → _getPrototype-CQlOogH0.js} +1 -1
- package/dist/esm/{_getTag-BiAaLWvH.js → _getTag-BTNY_Z_q.js} +5 -53
- package/dist/esm/{cloneDeep-Bcll-3f8.js → cloneDeep-BYrS7zqD.js} +3 -3
- package/dist/esm/{drag-to-reorder-BXmXIwCa.js → drag-to-reorder-9gxiYkIo.js} +3 -192
- package/dist/esm/{_baseIteratee-CVz7aes3.js → hasIn-CKUl04DZ.js} +5 -259
- package/dist/esm/help-props-DULV6dHr.js +88 -0
- package/dist/esm/isArrayLike-wfLI14yj.js +33 -0
- package/dist/esm/{isEmpty-BGVZ12Ea.js → isEmpty-CvLNUkER.js} +3 -2
- package/dist/esm/{isEqual-C-pK6AAU.js → isEqual-BIfg0KPc.js} +1 -1
- package/dist/esm/isLength-BZrtP4vv.js +35 -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 +3 -3
- package/dist/esm/limel-ai-avatar.entry.js +1 -1
- package/dist/esm/limel-badge.entry.js +2 -2
- package/dist/esm/limel-banner.entry.js +1 -1
- package/dist/esm/limel-breadcrumbs_6.entry.js +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 +1 -1
- package/dist/esm/limel-card.entry.js +1 -1
- package/dist/esm/limel-checkbox.entry.js +1 -1
- package/dist/esm/limel-chip-set.entry.js +11 -8
- package/dist/esm/limel-chip_2.entry.js +7 -5
- package/dist/esm/limel-circular-progress.entry.js +1 -1
- package/dist/esm/limel-code-diff.entry.js +1 -1
- package/dist/esm/limel-code-editor.entry.js +1 -1
- package/dist/esm/limel-collapsible-section.entry.js +1 -1
- package/dist/esm/limel-color-picker-palette.entry.js +2 -2
- package/dist/esm/limel-color-picker.entry.js +2 -2
- package/dist/esm/limel-dialog.entry.js +12 -9
- package/dist/esm/limel-dock.entry.js +2 -2
- package/dist/esm/limel-drag-handle_2.entry.js +3 -3
- package/dist/esm/limel-email-viewer.entry.js +1 -1
- package/dist/esm/limel-file-dropzone_2.entry.js +14 -10
- package/dist/esm/limel-file.entry.js +1 -1
- package/dist/esm/limel-flatpickr-adapter.entry.js +3 -2
- package/dist/esm/limel-flex-container.entry.js +1 -1
- package/dist/esm/limel-form-header.entry.js +57 -0
- package/dist/esm/limel-form.entry.js +136 -41
- package/dist/esm/limel-grid.entry.js +1 -1
- package/dist/esm/limel-header.entry.js +1 -1
- package/dist/esm/{limel-help.entry.js → limel-help_2.entry.js} +22 -3
- package/dist/esm/limel-helper-line_3.entry.js +4 -4
- package/dist/esm/limel-hotkey_4.entry.js +5 -5
- package/dist/esm/limel-icon-button.entry.js +1 -1
- package/dist/esm/limel-icon.entry.js +1 -1
- package/dist/esm/limel-info-tile.entry.js +2 -2
- package/dist/esm/limel-list-item.entry.js +2 -2
- package/dist/esm/limel-markdown.entry.js +1 -1
- package/dist/esm/limel-masonry-layout.entry.js +1 -1
- package/dist/esm/limel-menu-item-meta.entry.js +1 -1
- package/dist/esm/limel-pagination.entry.js +3 -2
- package/dist/esm/limel-picker.entry.js +1 -1
- package/dist/esm/limel-popover_2.entry.js +27 -4
- package/dist/esm/limel-profile-picture.entry.js +2 -1
- package/dist/esm/limel-prosemirror-adapter.entry.js +13 -10
- 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 +1 -1
- 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 +1 -1
- package/dist/esm/limel-slider.entry.js +3 -3
- package/dist/esm/limel-snackbar.entry.js +2 -2
- package/dist/esm/limel-split-button.entry.js +2 -2
- package/dist/esm/limel-switch.entry.js +1 -1
- package/dist/esm/limel-tab-bar.entry.js +14 -10
- package/dist/esm/limel-tab-panel.entry.js +1 -1
- package/dist/esm/limel-table.entry.js +16 -36
- package/dist/esm/limel-text-editor-link-menu.entry.js +3 -3
- package/dist/esm/limel-text-editor.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/negate-ooVD-6_a.js +40 -0
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-1d6014ed.entry.js → p-05c1f5a0.entry.js} +1 -1
- package/dist/lime-elements/p-0c314c3c.entry.js +1 -0
- package/dist/lime-elements/{p-aac603af.entry.js → p-153e91e1.entry.js} +1 -1
- package/dist/lime-elements/{p-f455150b.entry.js → p-164e1ad0.entry.js} +1 -1
- package/dist/lime-elements/{p-67536ac3.entry.js → p-19681a98.entry.js} +1 -1
- package/dist/lime-elements/{p-6e9c34f9.entry.js → p-1d13245d.entry.js} +1 -1
- package/dist/lime-elements/{p-87c9f4de.entry.js → p-22c44279.entry.js} +1 -1
- package/dist/lime-elements/{p-7375fac2.entry.js → p-26347009.entry.js} +1 -1
- package/dist/lime-elements/{p-f0e3a147.entry.js → p-27d7c255.entry.js} +2 -2
- package/dist/lime-elements/{p-3fa66fb1.entry.js → p-29815107.entry.js} +1 -1
- package/dist/lime-elements/{p-27d375f3.entry.js → p-2a375a65.entry.js} +1 -1
- package/dist/lime-elements/{p-aee75ad1.entry.js → p-2c29c27f.entry.js} +1 -1
- package/dist/lime-elements/{p-19426c76.entry.js → p-2f5face5.entry.js} +1 -1
- package/dist/lime-elements/{p-8f133cd6.entry.js → p-3ae5fb67.entry.js} +1 -1
- package/dist/lime-elements/{p-bb40b96c.entry.js → p-3c861ca8.entry.js} +1 -1
- package/dist/lime-elements/{p-f96a8e2c.entry.js → p-40a48f70.entry.js} +1 -1
- package/dist/lime-elements/p-513d2a5e.entry.js +1 -0
- package/dist/lime-elements/{p-9e9187ce.entry.js → p-519603f5.entry.js} +1 -1
- package/dist/lime-elements/{p-4a381bc6.entry.js → p-545c087b.entry.js} +1 -1
- package/dist/lime-elements/{p-89316964.entry.js → p-55abec82.entry.js} +1 -1
- package/dist/lime-elements/{p-8e78fd4f.entry.js → p-55f7c9f5.entry.js} +1 -1
- package/dist/lime-elements/{p-2370ff51.entry.js → p-565e5ea7.entry.js} +1 -1
- package/dist/lime-elements/{p-3b4f6329.entry.js → p-586ee40c.entry.js} +1 -1
- package/dist/lime-elements/p-5d9a2877.entry.js +1 -0
- package/dist/lime-elements/{p-ddabfac0.entry.js → p-5f2a34ed.entry.js} +1 -1
- package/dist/lime-elements/{p-dd065596.entry.js → p-5f82ea0b.entry.js} +1 -1
- package/dist/lime-elements/{p-82672504.entry.js → p-65eafc85.entry.js} +1 -1
- package/dist/lime-elements/p-67acf39d.entry.js +1 -0
- package/dist/lime-elements/{p-d1eaba10.entry.js → p-6aae3f58.entry.js} +1 -1
- package/dist/lime-elements/p-7035d93d.entry.js +1 -0
- package/dist/lime-elements/{p-674680f9.entry.js → p-707d4b28.entry.js} +1 -1
- package/dist/lime-elements/{p-d94f1c0f.entry.js → p-7235d147.entry.js} +1 -1
- package/dist/lime-elements/p-72907ffd.entry.js +1 -0
- package/dist/lime-elements/{p-242f1032.entry.js → p-7aae3d13.entry.js} +1 -1
- package/dist/lime-elements/{p-88dcba1e.entry.js → p-7af16e1d.entry.js} +1 -1
- package/dist/lime-elements/{p-56fe13ef.entry.js → p-7d27d572.entry.js} +1 -1
- package/dist/lime-elements/{p-8339d921.entry.js → p-7f1a1ed5.entry.js} +1 -1
- package/dist/lime-elements/p-813cb15c.entry.js +1 -0
- package/dist/lime-elements/p-895a68c5.entry.js +1 -0
- package/dist/lime-elements/{p-0de00849.entry.js → p-9436aba6.entry.js} +4 -4
- package/dist/lime-elements/{p-b5ebcbfc.entry.js → p-9e30d206.entry.js} +1 -1
- package/dist/lime-elements/p-BIYP3lTf.js +1 -0
- package/dist/lime-elements/p-BZrtP4vv.js +1 -0
- package/dist/lime-elements/p-BqoaAMnl.js +1 -0
- package/dist/lime-elements/p-BuX-Eb_J.js +1 -0
- package/dist/lime-elements/p-C-Qy5a39.js +1 -0
- package/dist/lime-elements/p-Cn3Alk9P.js +1 -0
- package/dist/lime-elements/p-CnpoFRmN.js +1 -0
- package/dist/lime-elements/p-CzTSYn-I.js +1 -0
- package/dist/lime-elements/p-D5dy3YDO.js +1 -0
- package/dist/lime-elements/p-DVx8ZwG_.js +7 -0
- package/dist/lime-elements/p-DWd0MyPU.js +1 -0
- package/dist/lime-elements/p-DpFfRQwV.js +1 -0
- package/dist/lime-elements/p-UDFTKggt.js +1 -0
- package/dist/lime-elements/{p-9d354eca.entry.js → p-a608ebe3.entry.js} +1 -1
- package/dist/lime-elements/p-a7a84633.entry.js +1 -0
- package/dist/lime-elements/p-a81f6962.entry.js +1 -0
- package/dist/lime-elements/{p-150010b5.entry.js → p-b80433be.entry.js} +1 -1
- package/dist/lime-elements/{p-e13e0001.entry.js → p-b983531f.entry.js} +3 -3
- package/dist/lime-elements/{p-e9b1e0bd.entry.js → p-be0a8125.entry.js} +1 -1
- package/dist/lime-elements/{p-f0bf3fd1.entry.js → p-be2b8c1e.entry.js} +1 -1
- package/dist/lime-elements/p-c2_jcMp6.js +1 -0
- package/dist/lime-elements/{p-de3cf7d8.entry.js → p-c73f4160.entry.js} +1 -1
- package/dist/lime-elements/p-c8f09dd5.entry.js +1 -0
- package/dist/lime-elements/{p-5ea07cbe.entry.js → p-cc8d6198.entry.js} +1 -1
- package/dist/lime-elements/{p-026eed2d.entry.js → p-cced022b.entry.js} +1 -1
- package/dist/lime-elements/{p-BAqAt5It.js → p-cv8kR73y.js} +1 -1
- package/dist/lime-elements/{p-be8950a6.entry.js → p-d0908a85.entry.js} +2 -2
- package/dist/lime-elements/{p-17aa9235.entry.js → p-da4b4a81.entry.js} +1 -1
- package/dist/lime-elements/{p-5d623004.entry.js → p-dd383c12.entry.js} +1 -1
- package/dist/lime-elements/{p-41172b62.entry.js → p-e0ab0046.entry.js} +1 -1
- package/dist/lime-elements/{p-8a9361a2.entry.js → p-eb5a18ff.entry.js} +1 -1
- package/dist/lime-elements/p-f35880ef.entry.js +1 -0
- package/dist/lime-elements/p-f8566c5b.entry.js +1 -0
- package/dist/lime-elements/{p-64540beb.entry.js → p-fad7a3fa.entry.js} +1 -1
- package/dist/lime-elements/p-fdc7da58.entry.js +1 -0
- package/dist/lime-elements/p-ooVD-6_a.js +1 -0
- package/dist/lime-elements/p-rJbGuVxd.js +1 -0
- package/dist/lime-elements/p-xGeCwSnE.js +1 -0
- package/dist/types/components/form/form.d.ts +15 -1
- package/dist/types/components/form/form.test-schemas.d.ts +4 -0
- package/dist/types/components/form/form.types.d.ts +6 -0
- package/dist/types/components/form/help/help.d.ts +0 -2
- package/dist/types/components/form/row/row.d.ts +3 -0
- package/dist/types/components/form/templates/common.d.ts +17 -4
- package/dist/types/components/form/templates/heading-level.d.ts +49 -0
- package/dist/types/components/form-header/form-header.d.ts +47 -0
- package/dist/types/components/form-header/help-props.d.ts +7 -0
- package/dist/types/components/popover/popover.d.ts +24 -0
- package/dist/types/components/popover-surface/popover-surface.d.ts +8 -0
- package/dist/types/components.d.ts +179 -3
- package/dist/types/interface.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/isArrayLike-C2RwZMG4.js +0 -69
- package/dist/cjs/limel-help-content.cjs.entry.js +0 -24
- package/dist/esm/isArrayLike-CyVGB489.js +0 -66
- package/dist/esm/limel-help-content.entry.js +0 -22
- package/dist/lime-elements/p-047c3234.entry.js +0 -1
- package/dist/lime-elements/p-068b141b.entry.js +0 -1
- package/dist/lime-elements/p-09f8f883.entry.js +0 -1
- package/dist/lime-elements/p-3f447d22.entry.js +0 -1
- package/dist/lime-elements/p-5633c069.entry.js +0 -1
- package/dist/lime-elements/p-600466a9.entry.js +0 -1
- package/dist/lime-elements/p-62b6e235.entry.js +0 -1
- package/dist/lime-elements/p-6770cf06.entry.js +0 -1
- package/dist/lime-elements/p-BYfPV0O4.js +0 -1
- package/dist/lime-elements/p-CW2-jhzP.js +0 -1
- package/dist/lime-elements/p-Cu9Ji1iJ.js +0 -1
- package/dist/lime-elements/p-D2VFSWDU.js +0 -1
- package/dist/lime-elements/p-D9Ezd43A.js +0 -1
- package/dist/lime-elements/p-DFu1q54T.js +0 -1
- package/dist/lime-elements/p-DK0pjX-Y.js +0 -1
- package/dist/lime-elements/p-DdnBHYb-.js +0 -7
- package/dist/lime-elements/p-DeIIlp6m.js +0 -1
- package/dist/lime-elements/p-Dq0uNStc.js +0 -1
- package/dist/lime-elements/p-afbe54e6.entry.js +0 -1
- package/dist/lime-elements/p-c583ab0d.entry.js +0 -1
- package/dist/lime-elements/p-e2971111.entry.js +0 -1
- package/dist/lime-elements/p-e332bb9b.entry.js +0 -1
- package/dist/lime-elements/p-e50acec1.entry.js +0 -1
- package/dist/lime-elements/p-f1ac7608.entry.js +0 -1
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { getHelpProps } from "./help-props";
|
|
3
|
+
/**
|
|
4
|
+
* This is an internal and private component that `limel-form` uses to
|
|
5
|
+
* draw the heading of a section, a list or a custom component, together
|
|
6
|
+
* with its description and its help.
|
|
7
|
+
*
|
|
8
|
+
* Consumers of `limel-form` do not use it. They set the `title`,
|
|
9
|
+
* the `description` and `lime.help` in the schema, and the form draws
|
|
10
|
+
* this component with the right heading level.
|
|
11
|
+
*
|
|
12
|
+
* :::note
|
|
13
|
+
* The component has `shadow: false`, so that the heading, the description
|
|
14
|
+
* and the help are part of the DOM of `limel-form`. This way, the styles
|
|
15
|
+
* of the form that depend on how deep a field is reach them directly.
|
|
16
|
+
* :::
|
|
17
|
+
*
|
|
18
|
+
* @exampleComponent limel-example-form-header-basic
|
|
19
|
+
* @exampleComponent limel-example-form-header-heading-level
|
|
20
|
+
* @exampleComponent limel-example-form-header-help
|
|
21
|
+
* @private
|
|
22
|
+
*/
|
|
23
|
+
export class FormHeader {
|
|
24
|
+
constructor() {
|
|
25
|
+
/**
|
|
26
|
+
* Which of the heading elements, from `h1` to `h6`, to draw
|
|
27
|
+
* the `heading` with.
|
|
28
|
+
*/
|
|
29
|
+
this.headingLevel = 1;
|
|
30
|
+
}
|
|
31
|
+
render() {
|
|
32
|
+
return (h(Host, { key: 'bfb0a90340ac54c7f083df2989fd8c2acb97308f' }, this.renderHeading(), this.renderHelp(), this.renderDescription()));
|
|
33
|
+
}
|
|
34
|
+
renderHeading() {
|
|
35
|
+
if (!this.heading) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const Heading = `h${this.headingLevel}`;
|
|
39
|
+
return h(Heading, null, this.heading);
|
|
40
|
+
}
|
|
41
|
+
renderHelp() {
|
|
42
|
+
if (!this.help) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
return h("limel-help", Object.assign({}, getHelpProps(this.help)));
|
|
46
|
+
}
|
|
47
|
+
renderDescription() {
|
|
48
|
+
if (!this.description) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
return h("limel-markdown", { value: this.description });
|
|
52
|
+
}
|
|
53
|
+
static get is() { return "limel-form-header"; }
|
|
54
|
+
static get originalStyleUrls() {
|
|
55
|
+
return {
|
|
56
|
+
"$": ["form-header.scss"]
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
static get styleUrls() {
|
|
60
|
+
return {
|
|
61
|
+
"$": ["form-header.css"]
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
static get properties() {
|
|
65
|
+
return {
|
|
66
|
+
"heading": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"mutable": false,
|
|
69
|
+
"complexType": {
|
|
70
|
+
"original": "string",
|
|
71
|
+
"resolved": "string",
|
|
72
|
+
"references": {}
|
|
73
|
+
},
|
|
74
|
+
"required": false,
|
|
75
|
+
"optional": true,
|
|
76
|
+
"docs": {
|
|
77
|
+
"tags": [],
|
|
78
|
+
"text": "The title of the section, the list or the custom component."
|
|
79
|
+
},
|
|
80
|
+
"getter": false,
|
|
81
|
+
"setter": false,
|
|
82
|
+
"reflect": false,
|
|
83
|
+
"attribute": "heading"
|
|
84
|
+
},
|
|
85
|
+
"headingLevel": {
|
|
86
|
+
"type": "number",
|
|
87
|
+
"mutable": false,
|
|
88
|
+
"complexType": {
|
|
89
|
+
"original": "HeadingLevel",
|
|
90
|
+
"resolved": "1 | 2 | 3 | 4 | 5 | 6",
|
|
91
|
+
"references": {
|
|
92
|
+
"HeadingLevel": {
|
|
93
|
+
"location": "import",
|
|
94
|
+
"path": "../form/form.types",
|
|
95
|
+
"id": "src/components/form/form.types.ts::HeadingLevel",
|
|
96
|
+
"referenceLocation": "HeadingLevel"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"required": false,
|
|
101
|
+
"optional": false,
|
|
102
|
+
"docs": {
|
|
103
|
+
"tags": [],
|
|
104
|
+
"text": "Which of the heading elements, from `h1` to `h6`, to draw\nthe `heading` with."
|
|
105
|
+
},
|
|
106
|
+
"getter": false,
|
|
107
|
+
"setter": false,
|
|
108
|
+
"reflect": false,
|
|
109
|
+
"attribute": "heading-level",
|
|
110
|
+
"defaultValue": "1"
|
|
111
|
+
},
|
|
112
|
+
"description": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"mutable": false,
|
|
115
|
+
"complexType": {
|
|
116
|
+
"original": "string",
|
|
117
|
+
"resolved": "string",
|
|
118
|
+
"references": {}
|
|
119
|
+
},
|
|
120
|
+
"required": false,
|
|
121
|
+
"optional": true,
|
|
122
|
+
"docs": {
|
|
123
|
+
"tags": [],
|
|
124
|
+
"text": "Text, in markdown, that describes what the `heading` is about."
|
|
125
|
+
},
|
|
126
|
+
"getter": false,
|
|
127
|
+
"setter": false,
|
|
128
|
+
"reflect": false,
|
|
129
|
+
"attribute": "description"
|
|
130
|
+
},
|
|
131
|
+
"help": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"mutable": false,
|
|
134
|
+
"complexType": {
|
|
135
|
+
"original": "string | Partial<Help>",
|
|
136
|
+
"resolved": "Help | string",
|
|
137
|
+
"references": {
|
|
138
|
+
"Partial": {
|
|
139
|
+
"location": "global",
|
|
140
|
+
"id": "global::Partial"
|
|
141
|
+
},
|
|
142
|
+
"Help": {
|
|
143
|
+
"location": "import",
|
|
144
|
+
"path": "../help/help.types",
|
|
145
|
+
"id": "src/components/help/help.types.ts::Help",
|
|
146
|
+
"referenceLocation": "Help"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"required": false,
|
|
151
|
+
"optional": true,
|
|
152
|
+
"docs": {
|
|
153
|
+
"tags": [],
|
|
154
|
+
"text": "Help to show beside the `heading`. A string is used as the `value`\nof the help."
|
|
155
|
+
},
|
|
156
|
+
"getter": false,
|
|
157
|
+
"setter": false,
|
|
158
|
+
"reflect": false,
|
|
159
|
+
"attribute": "help"
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { pick } from "lodash-es";
|
|
2
|
+
const HELP_PROPERTIES = [
|
|
3
|
+
'openDirection',
|
|
4
|
+
'readMoreLink',
|
|
5
|
+
'trigger',
|
|
6
|
+
'value',
|
|
7
|
+
];
|
|
8
|
+
/**
|
|
9
|
+
* @param help - the help of a field, from its schema
|
|
10
|
+
* @returns the properties of `limel-help` that the help sets, and no others
|
|
11
|
+
*/
|
|
12
|
+
export function getHelpProps(help) {
|
|
13
|
+
if (typeof help === 'string') {
|
|
14
|
+
return { value: help };
|
|
15
|
+
}
|
|
16
|
+
return pick(help, HELP_PROPERTIES);
|
|
17
|
+
}
|
|
@@ -12,7 +12,7 @@ export class Grid {
|
|
|
12
12
|
console.warn('limel-grid is deprecated, please use CSS instead: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout');
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return h("slot", { key: '
|
|
15
|
+
return h("slot", { key: '4ebe5815a717a9991c2e2951125f839e8e1708d4' });
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "limel-grid"; }
|
|
18
18
|
static get encapsulation() { return "shadow"; }
|
|
@@ -61,7 +61,7 @@ export class Header {
|
|
|
61
61
|
this.subheadingDivider = '·';
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
|
-
return (h(Host, { key: '
|
|
64
|
+
return (h(Host, { key: 'ee7ff339654246fbe74a971c13555ac58eb193d6' }, h("div", { key: '24a8ea8b2b02a18096fdad46aeaa7716986f39f3', class: "information" }, this.renderIcon(), h("div", { key: '4e6badb9212a41286043a158238edb889e95c20a', class: "headings" }, h("h1", { key: 'cb1e64f29d720de62e7e99d15daa77b3c3a344cb', class: "heading", title: this.heading }, this.heading), h("h2", { key: 'fbdd1399802934b780fb24f35dbaf8d2df98b09c', class: "subheading", title: this.subheading }, this.subheading, this.renderSupportingText()))), h("slot", { key: '53774b488cc505aca85e776d9c8280c85ef7acfd', name: "actions" }, h("slot", { key: 'd9093bf6ca786faa5481e62c5bff604b20f0283e' }))));
|
|
65
65
|
}
|
|
66
66
|
renderIcon() {
|
|
67
67
|
var _a, _b, _c, _d, _e;
|
|
@@ -19,7 +19,7 @@ export class HelpContent {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: 'c05fa685d65b0b884c0697d259ba1b4811f038d7' }, h("limel-markdown", { key: '6260af655452683b21b704fb9962e010abfe2a1b', value: this.value }), this.renderReadMoreLink()));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "limel-help-content"; }
|
|
25
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -41,9 +41,9 @@ export class HelpComponent {
|
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return (h(Host, { key: '
|
|
44
|
+
return (h(Host, { key: 'ff14013e9f366372a5ac61fdb9852e73377e7c7f' }, h("limel-popover", { key: 'b63ff7f51c29dc61ffdfe647329020639f1a8511', open: this.isOpen, onClose: this.onPopoverClose, openDirection: this.openDirection }, h("button", { key: '09f65e0a7f2bdca258f848f459eadc49f863b9f2', slot: "trigger", type: "button", onClick: this.openPopover, class: {
|
|
45
45
|
'is-open': this.isOpen,
|
|
46
|
-
} }, this.trigger), h("limel-help-content", { key: '
|
|
46
|
+
} }, this.trigger), h("limel-help-content", { key: '92223e842dd3dbf07365a1f45003b61033109b25', value: this.value, readMoreLink: this.readMoreLink }))));
|
|
47
47
|
}
|
|
48
48
|
static get is() { return "limel-help"; }
|
|
49
49
|
static get encapsulation() { return "shadow"; }
|
|
@@ -50,9 +50,9 @@ export class HelperLine {
|
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
|
-
return (h(Host, { key: '
|
|
53
|
+
return (h(Host, { key: '3dba31860682ccb6230de96f458e19252a150dd0', tabIndex: -1, class: {
|
|
54
54
|
invalid: this.invalid,
|
|
55
|
-
}, style: this.hasContent() ? {} : { display: 'none' }, "aria-hidden": !this.hasContent() }, h("div", { key: '
|
|
55
|
+
}, style: this.hasContent() ? {} : { display: 'none' }, "aria-hidden": !this.hasContent() }, h("div", { key: '28dd4294f7a2d6db746388109ef9fb7d1f640b4d' }, this.renderHelperText(), this.renderCharacterCounter())));
|
|
56
56
|
}
|
|
57
57
|
static get is() { return "limel-helper-line"; }
|
|
58
58
|
static get originalStyleUrls() {
|
|
@@ -30,7 +30,7 @@ export class Hotkey {
|
|
|
30
30
|
const parts = tokenizeHotkeyString(this.value);
|
|
31
31
|
const displayParts = parts.map((part) => formatDisplayToken(part, this.isApple));
|
|
32
32
|
const ariaLabel = getHotkeyAriaLabel(this.value, this.isApple);
|
|
33
|
-
return (h(Host, { key: '
|
|
33
|
+
return (h(Host, { key: '6c2857b3a8827d78ea18379d7338f0e31c3f44a9', "aria-label": ariaLabel || undefined }, displayParts.map(({ display, isGlyph }, index) => (h("kbd", { key: `${parts[index]}-${index}`, class: isGlyph ? 'is-glyph' : undefined }, h("span", null, display))))));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "limel-hotkey"; }
|
|
36
36
|
static get encapsulation() { return "shadow"; }
|
|
@@ -50,7 +50,7 @@ export class Icon {
|
|
|
50
50
|
this.loadIcon(this.name);
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
|
-
return h("div", { key: '
|
|
53
|
+
return h("div", { key: '68180e22c8eda7efb4a5ca9085ff0dc127052b3f', class: "container" });
|
|
54
54
|
}
|
|
55
55
|
updateAccessibility() {
|
|
56
56
|
if (!this.internals) {
|
|
@@ -52,7 +52,7 @@ export class IconButton {
|
|
|
52
52
|
if (this.host.hasAttribute('tabindex')) {
|
|
53
53
|
buttonAttributes.tabindex = this.host.getAttribute('tabindex');
|
|
54
54
|
}
|
|
55
|
-
return (h(Host, { key: '
|
|
55
|
+
return (h(Host, { key: 'ecf9bef958b6d3f2666d61c8eb10b6790311706d', onClick: this.filterClickWhenDisabled }, h("button", Object.assign({ key: 'fcadafff6a3e2a36082f4baad0c342a448c4126f', "aria-label": this.label, disabled: this.disabled, id: this.tooltipId }, buttonAttributes), this.renderIcon(), this.renderTooltip(this.tooltipId))));
|
|
56
56
|
}
|
|
57
57
|
renderIcon() {
|
|
58
58
|
var _a, _b;
|
|
@@ -127,9 +127,9 @@ export class InfoTile {
|
|
|
127
127
|
this.checkProps((_d = this === null || this === void 0 ? void 0 : this.link) === null || _d === void 0 ? void 0 : _d.title);
|
|
128
128
|
const link = this.disabled ? '#' : (_e = this.link) === null || _e === void 0 ? void 0 : _e.href;
|
|
129
129
|
const rel = getRel((_f = this.link) === null || _f === void 0 ? void 0 : _f.target, (_g = this.link) === null || _g === void 0 ? void 0 : _g.rel);
|
|
130
|
-
return (h(Host, { key: '
|
|
130
|
+
return (h(Host, { key: '4ae5614ddf0ecc7cb112788bd1c42ca4747cf431', onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, class: { 'has-primary-slot-content': this.hasPrimarySlot } }, h("a", { key: '5cb4cd396a5472c050e5911f54aa0272cf1d324d', title: (_h = this.link) === null || _h === void 0 ? void 0 : _h.title, href: link, target: (_j = this.link) === null || _j === void 0 ? void 0 : _j.target, rel: rel, tabindex: "0", "aria-label": extendedAriaLabel, "aria-disabled": this.disabled, "aria-busy": this.loading ? 'true' : 'false', "aria-live": "polite", class: {
|
|
131
131
|
'is-clickable': !!((_k = this.link) === null || _k === void 0 ? void 0 : _k.href) && !this.disabled,
|
|
132
|
-
} }, this.renderIcon(), this.renderProgress(), h("slot", { key: '
|
|
132
|
+
} }, this.renderIcon(), this.renderProgress(), h("slot", { key: 'd111590fd120c7f4a784430d9f13423e6813d88f', name: "primary", onSlotchange: this.updateHasPrimarySlotContent }), h("div", { key: '717a54afb2ffe8c434fdbbe403bbc816ba231fbd', class: "value-group" }, this.renderPrefix(), h("div", { key: '569a6cbb516d6c455757c7685d48a2af9692eca2', class: "value-and-suffix" }, this.renderValue(), this.renderSuffix()), this.renderSpinner()), this.renderLabel(), h("limel-3d-hover-effect-glow", { key: '2afedffb05ddd550677d943a58564565965194dc' })), this.renderNotification()));
|
|
133
133
|
}
|
|
134
134
|
checkProps(propValue) {
|
|
135
135
|
return propValue ? propValue + ' ' : '';
|
|
@@ -601,7 +601,7 @@ export class InputField {
|
|
|
601
601
|
if (this.renderAutocompleteList()) {
|
|
602
602
|
properties['aria-controls'] = this.portalId;
|
|
603
603
|
}
|
|
604
|
-
return (h(Host, { key: '
|
|
604
|
+
return (h(Host, { key: '3abb0e074f55f8e47f46cf77ed885797047e44b9' }, h("limel-notched-outline", { key: '0d25df2774e7cda39da90163b0832a1ea117d7c8', labelId: this.inputId, labelElementId: this.labelElementId, label: this.label, required: this.required, invalid: this.invalid || this.isInvalid(), disabled: this.disabled, readonly: this.readonly, hasValue: !!this.value, hasLeadingIcon: !!this.leadingIcon }, h("label", { key: 'a60a2bfcdafe232b32a0d67f972c3885fc5b6428', slot: "content", class: this.getContainerClassList() }, this.renderLeadingIcon(), this.renderPrefix(), this.renderFormattedNumber(), this.renderInput(properties), this.renderSuffix(), this.renderTextarea(properties), this.renderTrailingLinkOrButton())), this.renderHelperLine(), this.renderAutocompleteList()));
|
|
605
605
|
}
|
|
606
606
|
valueWatcher(newValue) {
|
|
607
607
|
if (!this.mdcTextField || this.changeWaiting) {
|
|
@@ -194,7 +194,7 @@ export class List {
|
|
|
194
194
|
maxLinesSecondaryText = 1;
|
|
195
195
|
}
|
|
196
196
|
const html = this.listRenderer.render(this.items, this.config);
|
|
197
|
-
return (h(Host, { key: '
|
|
197
|
+
return (h(Host, { key: 'c1c087f11542451c1747d510c133e79f94d643ba', style: {
|
|
198
198
|
'--maxLinesSecondaryText': `${maxLinesSecondaryText}`,
|
|
199
199
|
} }, html));
|
|
200
200
|
}
|
|
@@ -158,9 +158,9 @@ export class ListItemComponent {
|
|
|
158
158
|
// also keep for `menuitem` for visual state consistency
|
|
159
159
|
ariaProps['aria-selected'] = this.selected ? 'true' : 'false';
|
|
160
160
|
}
|
|
161
|
-
return (h(Host, Object.assign({ key: '
|
|
161
|
+
return (h(Host, Object.assign({ key: '0ff3eea71319a17641cc264d85ba35c1c8db83c8', role: this.getHostRole(), class: {
|
|
162
162
|
'has-primary-component': !!((_a = this.primaryComponent) === null || _a === void 0 ? void 0 : _a.name),
|
|
163
|
-
} }, ariaProps), this.renderRadioButton(), this.renderCheckbox(), this.renderIcon(), this.renderImage(), this.renderPrimaryComponent(), h("div", { key: '
|
|
163
|
+
} }, ariaProps), this.renderRadioButton(), this.renderCheckbox(), this.renderIcon(), this.renderImage(), this.renderPrimaryComponent(), h("div", { key: 'e38dc3bb9a09cf08892e7485681a4421a5bdd2ba', class: "text" }, this.renderLabel(), this.renderDescription()), this.renderActionMenu(this.actions)));
|
|
164
164
|
}
|
|
165
165
|
/**
|
|
166
166
|
* Returns a stable reference for the provided actions array to avoid
|
|
@@ -22,7 +22,7 @@ export class MenuItemMeta {
|
|
|
22
22
|
this.showChevron = false;
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: 'd4bb2de50d260fdf49eafe2449ca388f0369a682' }, this.renderCommandText(), this.renderBadge(), this.renderChevron()));
|
|
26
26
|
}
|
|
27
27
|
renderCommandText() {
|
|
28
28
|
if (this.hotkey) {
|
|
@@ -170,7 +170,7 @@ export class Markdown {
|
|
|
170
170
|
this.cleanupImageIntersectionObserver();
|
|
171
171
|
}
|
|
172
172
|
render() {
|
|
173
|
-
return (h(Host, { key: '
|
|
173
|
+
return (h(Host, { key: '3121124a57e9522dced4b749bfedfbe8dea2ea70' }, h("div", { key: '6f2b983303c0921a7b979cf0bbbdcc657e7555f8', id: "markdown", ref: (el) => (this.rootElement = el) })));
|
|
174
174
|
}
|
|
175
175
|
setupImageIntersectionObserver() {
|
|
176
176
|
if (this.lazyLoadImages) {
|
|
@@ -59,7 +59,7 @@ export class MasonryLayout {
|
|
|
59
59
|
const style = {
|
|
60
60
|
height: `${this.containerHeight}rem`,
|
|
61
61
|
};
|
|
62
|
-
return (h(Host, { key: '
|
|
62
|
+
return (h(Host, { key: 'db11d17d15303afcf0d767e085dbe653ab90f9dd', style: style, class: { 'is-laid-out': this.hasRendered } }, h("slot", { key: '7a4f2639e7b02720b08b778d437e536ee5707cfa' })));
|
|
63
63
|
}
|
|
64
64
|
setupObservers() {
|
|
65
65
|
this.resizeObserver = new ResizeObserver(() => {
|
|
@@ -593,7 +593,7 @@ export class Menu {
|
|
|
593
593
|
const cssProperties = this.getCssProperties();
|
|
594
594
|
const dropdownZIndex = getComputedStyle(this.host).getPropertyValue('--dropdown-z-index');
|
|
595
595
|
const menuSurfaceWidth = this.getMenuSurfaceWidth(cssProperties['--menu-surface-width']);
|
|
596
|
-
return (h("div", { key: '
|
|
596
|
+
return (h("div", { key: 'b989b659926fd335f77346886528cf3277f39c4d', class: "mdc-menu-surface--anchor", onClick: this.onTriggerClick }, h("slot", { key: '3a8f9cbf65303bcf18358607559a204e944b18bb', ref: this.setTriggerRef, name: "trigger" }), this.renderNotificationBadge(), h("limel-portal", { key: 'd56ff6ab5d7504f9d4646ef2dcde736bd4515143', visible: this.open, containerId: this.portalId, openDirection: this.openDirection, position: "absolute", containerStyle: { 'z-index': dropdownZIndex } }, h("limel-menu-surface", { key: '983315550638557b27cac1f9d604a36dca16bdd7', open: this.open, onDismiss: this.onClose, style: Object.assign(Object.assign({}, cssProperties), { '--menu-surface-width': menuSurfaceWidth, '--limel-menu-surface-display': 'flex', '--limel-menu-surface-flex-direction': 'column' }), class: {
|
|
597
597
|
'has-grid-layout': this.gridLayout,
|
|
598
598
|
} }, this.renderSearchField(), this.renderBreadcrumb(), this.renderLoader(), this.renderEmptyMessage(), this.renderMenuList()))));
|
|
599
599
|
}
|
|
@@ -88,7 +88,7 @@ export class MenuList {
|
|
|
88
88
|
iconSize: this.iconSize,
|
|
89
89
|
};
|
|
90
90
|
const html = this.MenuListRenderer.render(this.items, this.config);
|
|
91
|
-
return h("div", { key: '
|
|
91
|
+
return h("div", { key: '193deffa6146711b12adc1dd7ddcdeffd3b8c3c7', class: "mdc-menu mdc-menu-surface" }, html);
|
|
92
92
|
}
|
|
93
93
|
itemsChanged() {
|
|
94
94
|
setTimeout(() => {
|
|
@@ -103,7 +103,7 @@ export class MenuSurface {
|
|
|
103
103
|
'mdc-elevation-transition': true,
|
|
104
104
|
'mdc-elevation--z4': true,
|
|
105
105
|
};
|
|
106
|
-
return (h("div", { key: '
|
|
106
|
+
return (h("div", { key: 'da08fd948f5b38010647be878ab4d9ff4e6a8361', class: classList, tabindex: "-1" }, h("slot", { key: '2e69828eb156273746e946cc34f2c557bad111c4' })));
|
|
107
107
|
}
|
|
108
108
|
static get is() { return "limel-menu-surface"; }
|
|
109
109
|
static get encapsulation() { return "shadow"; }
|
|
@@ -59,7 +59,7 @@ export class NotchedOutline {
|
|
|
59
59
|
this.hasFloatingLabel = false;
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
62
|
-
return (h("div", { key: '
|
|
62
|
+
return (h("div", { key: '8d1e3ea6b74700e4f79050dac678c5a1b4d1d0bc', class: "limel-notched-outline" }, h("slot", { key: 'fcb6831f64089a7ac25a0a9998eb331a9a965ae7', name: "content" }), h("span", { key: '870e9ddbefbbba75e61336b7171fcf43137c1379', class: "limel-notched-outline--outlines", "aria-hidden": "true" }, h("span", { key: '5a12f8d71d2dbf8245b4faacf3ae8ec3f92a3cba', class: "limel-notched-outline--leading-outline" }), this.renderLabel(), h("span", { key: '73d69b455321439990591b94894f13f8837f2617', class: "limel-notched-outline--trailing-outline" }), this.renderEmptyReadonlyValue())));
|
|
63
63
|
}
|
|
64
64
|
renderLabel() {
|
|
65
65
|
if (!this.label) {
|
|
@@ -304,7 +304,7 @@ export class Pagination {
|
|
|
304
304
|
}
|
|
305
305
|
render() {
|
|
306
306
|
const { slots } = this.view;
|
|
307
|
-
return (h(Host, { key: '
|
|
307
|
+
return (h(Host, { key: '7d7e26956a5df97a75d2e9d4a8d5b2407b2b65a3' }, h("nav", { key: 'e2b6b6a1bb513e3136b6fcc2e34c668be8e64089', "aria-label": this.translate('pagination.label'), "aria-busy": this.loading ? 'true' : null }, this.renderArrow('previous'), slots.map((slot, index) => this.renderSlot(slot, index)), this.renderArrow('next')), h("span", { key: '00e74cdbf6ca753b7bac6b4731a5b63c4ac4d338', class: "live-region", "aria-live": "polite" }, this.liveMessage)));
|
|
308
308
|
}
|
|
309
309
|
/**
|
|
310
310
|
* Without a count we know where the user is but not how far the set goes,
|
|
@@ -342,7 +342,8 @@ export class Pagination {
|
|
|
342
342
|
if (pageCount === null) {
|
|
343
343
|
return;
|
|
344
344
|
}
|
|
345
|
-
|
|
345
|
+
const jumpLabel = this.translate('pagination.jump-to-a-page');
|
|
346
|
+
return (h("limel-popover", { key: `gap-${index}`, open: this.openGap === index, openDirection: "bottom", popupRole: "dialog", accessibleLabel: jumpLabel, onClose: this.closeJump }, h("button", { slot: "trigger", class: "gap", id: this.slotId(index), "aria-label": jumpLabel, "aria-disabled": this.loading ? 'true' : null, "data-index": index, onClick: this.openJump }, "\u00B7\u00B7\u00B7"), h("limel-pagination-jump", { open: this.openGap === index, page: this.view.page, pageCount: pageCount, loading: this.loading, language: this.languageForNumbers, onJump: this.handleJump })));
|
|
346
347
|
}
|
|
347
348
|
focusGap(index) {
|
|
348
349
|
var _a;
|
|
@@ -199,7 +199,7 @@ export class Picker {
|
|
|
199
199
|
props.maxItems = 1;
|
|
200
200
|
}
|
|
201
201
|
return [
|
|
202
|
-
h("limel-chip-set", Object.assign({ key: '
|
|
202
|
+
h("limel-chip-set", Object.assign({ key: 'eed0789b538bd50638936e1c6ad7e9deaef954ec', type: "input", inputType: "search", label: this.label, helperText: this.helperText, leadingIcon: this.leadingIcon, value: this.chips, disabled: this.disabled, invalid: this.invalid, delimiter: this.renderDelimiter(), readonly: this.readonly, required: this.required, searchLabel: this.searchLabel, language: this.language, onInput: this.handleTextInput, onKeyDown: this.handleInputKeyDown, onChange: this.handleChange, onInteract: this.handleInteract, onStartEdit: this.handleInputFieldFocus, onStopEdit: this.handleStopEditAndBlur, emptyInputOnBlur: false, emptyInputOnChange: false, clearAllButton: this.multiple && !this.chipSetEditMode }, props)),
|
|
203
203
|
this.renderDropdown(),
|
|
204
204
|
];
|
|
205
205
|
}
|
|
@@ -56,6 +56,7 @@ export class Popover {
|
|
|
56
56
|
*/
|
|
57
57
|
this.open = false;
|
|
58
58
|
this.shouldRestoreFocusOnClose = false;
|
|
59
|
+
this.hasWarnedAboutMissingName = false;
|
|
59
60
|
this.handleGlobalKeyPress = (event) => {
|
|
60
61
|
if (event.key !== ESCAPE) {
|
|
61
62
|
return;
|
|
@@ -77,11 +78,12 @@ export class Popover {
|
|
|
77
78
|
focusTriggerElement(trigger);
|
|
78
79
|
};
|
|
79
80
|
this.setTriggerAttributes = (element) => {
|
|
80
|
-
|
|
81
|
+
var _a;
|
|
82
|
+
element.setAttribute('aria-haspopup', (_a = this.getNamedPopupRole()) !== null && _a !== void 0 ? _a : 'true');
|
|
81
83
|
// `aria-expanded` is needed even when the popover is closed. Without
|
|
82
84
|
// it, the trigger reads as an ordinary button to a screen reader.
|
|
83
85
|
element.setAttribute('aria-expanded', this.open ? 'true' : 'false');
|
|
84
|
-
|
|
86
|
+
this.setControlledPopup(element);
|
|
85
87
|
element.setAttribute('role', 'button');
|
|
86
88
|
};
|
|
87
89
|
this.portalId = createRandomString();
|
|
@@ -101,6 +103,9 @@ export class Popover {
|
|
|
101
103
|
disconnectedCallback() {
|
|
102
104
|
this.teardownGlobalHandlers();
|
|
103
105
|
}
|
|
106
|
+
componentWillRender() {
|
|
107
|
+
this.warnIfRoleHasNoName();
|
|
108
|
+
}
|
|
104
109
|
componentDidRender() {
|
|
105
110
|
if (!this.triggerSlot) {
|
|
106
111
|
return;
|
|
@@ -137,7 +142,7 @@ export class Popover {
|
|
|
137
142
|
render() {
|
|
138
143
|
const cssProperties = this.getCssProperties();
|
|
139
144
|
const popoverZIndex = getComputedStyle(this.host).getPropertyValue('--popover-z-index');
|
|
140
|
-
return (h("div", { key: '
|
|
145
|
+
return (h("div", { key: 'f314178b0648433c2e764a31b64c94c85f31d7ce', class: "trigger-anchor" }, h("slot", { key: '93953d9f7bf5c1c0550e445a4e49591029408725', name: "trigger", ref: this.setTriggerRef }), h("limel-portal", { key: '01d43457e8eeebd3c135ea823bb26e0e3e336d12', visible: this.open, containerId: this.portalId, containerStyle: { 'z-index': popoverZIndex }, openDirection: this.openDirection }, h("limel-popover-surface", { key: '6c368bcc7a3914fa62525b01f912cf4d0e640531', contentCollection: this.host.children, popupRole: this.getNamedPopupRole(), accessibleLabel: this.accessibleLabel, style: cssProperties }))));
|
|
141
146
|
}
|
|
142
147
|
globalClickListener(event) {
|
|
143
148
|
const element = event.target;
|
|
@@ -162,6 +167,24 @@ export class Popover {
|
|
|
162
167
|
});
|
|
163
168
|
return zipObject(propertyNames, values);
|
|
164
169
|
}
|
|
170
|
+
getNamedPopupRole() {
|
|
171
|
+
return this.accessibleLabel ? this.popupRole : undefined;
|
|
172
|
+
}
|
|
173
|
+
warnIfRoleHasNoName() {
|
|
174
|
+
const hasNoName = !!this.popupRole && !this.accessibleLabel;
|
|
175
|
+
if (hasNoName && !this.hasWarnedAboutMissingName) {
|
|
176
|
+
console.warn(`limel-popover: popupRole is "${this.popupRole}", but there is no accessibleLabel to name the popup. The role is not used until the popup has a name.`);
|
|
177
|
+
}
|
|
178
|
+
this.hasWarnedAboutMissingName = hasNoName;
|
|
179
|
+
}
|
|
180
|
+
setControlledPopup(element) {
|
|
181
|
+
const popup = document.querySelector(`#${this.portalId}`);
|
|
182
|
+
if ('ariaControlsElements' in element) {
|
|
183
|
+
element.ariaControlsElements = popup ? [popup] : null;
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
element.setAttribute('aria-controls', this.portalId);
|
|
187
|
+
}
|
|
165
188
|
static get is() { return "limel-popover"; }
|
|
166
189
|
static get encapsulation() { return "shadow"; }
|
|
167
190
|
static get originalStyleUrls() {
|
|
@@ -221,6 +244,44 @@ export class Popover {
|
|
|
221
244
|
"setter": false,
|
|
222
245
|
"reflect": true,
|
|
223
246
|
"attribute": "open-direction"
|
|
247
|
+
},
|
|
248
|
+
"popupRole": {
|
|
249
|
+
"type": "string",
|
|
250
|
+
"mutable": false,
|
|
251
|
+
"complexType": {
|
|
252
|
+
"original": "'dialog' | 'menu' | 'listbox' | 'tree' | 'grid'",
|
|
253
|
+
"resolved": "\"dialog\" | \"grid\" | \"listbox\" | \"menu\" | \"tree\"",
|
|
254
|
+
"references": {}
|
|
255
|
+
},
|
|
256
|
+
"required": false,
|
|
257
|
+
"optional": true,
|
|
258
|
+
"docs": {
|
|
259
|
+
"tags": [],
|
|
260
|
+
"text": "Says what kind of popup the trigger opens, so that a screen reader can\nannounce it. Use the one that fits what you put in the popover: `dialog`\nfor a form, a message or other content, and `menu`, `listbox`, `tree`\nor `grid` when the content is one of those widgets.\n\nA popup with one of these roles needs a name, so the role is used only\ntogether with `accessibleLabel`. Without one, the popover warns in the\nconsole.\n\nWhen the role is not set or not used, the trigger only says that it\nopens a popup."
|
|
261
|
+
},
|
|
262
|
+
"getter": false,
|
|
263
|
+
"setter": false,
|
|
264
|
+
"reflect": false,
|
|
265
|
+
"attribute": "popup-role"
|
|
266
|
+
},
|
|
267
|
+
"accessibleLabel": {
|
|
268
|
+
"type": "string",
|
|
269
|
+
"mutable": false,
|
|
270
|
+
"complexType": {
|
|
271
|
+
"original": "string",
|
|
272
|
+
"resolved": "string",
|
|
273
|
+
"references": {}
|
|
274
|
+
},
|
|
275
|
+
"required": false,
|
|
276
|
+
"optional": true,
|
|
277
|
+
"docs": {
|
|
278
|
+
"tags": [],
|
|
279
|
+
"text": "The name of the popup, which a screen reader announces when the focus\nmoves into it. Used together with `popupRole`."
|
|
280
|
+
},
|
|
281
|
+
"getter": false,
|
|
282
|
+
"setter": false,
|
|
283
|
+
"reflect": false,
|
|
284
|
+
"attribute": "accessible-label"
|
|
224
285
|
}
|
|
225
286
|
};
|
|
226
287
|
}
|
|
@@ -8,7 +8,7 @@ export class PopoverSurface {
|
|
|
8
8
|
this.appendElement();
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("div", { key: '
|
|
11
|
+
return (h("div", { key: '0391463d9777ee0a43de19b4fcf97e5b1ef120d9', class: "limel-popover-surface", tabindex: "0", role: this.popupRole, "aria-label": this.accessibleLabel }));
|
|
12
12
|
}
|
|
13
13
|
appendElement() {
|
|
14
14
|
const portalContainer = this.host.shadowRoot.querySelector('.limel-popover-surface');
|
|
@@ -55,6 +55,44 @@ export class PopoverSurface {
|
|
|
55
55
|
},
|
|
56
56
|
"getter": false,
|
|
57
57
|
"setter": false
|
|
58
|
+
},
|
|
59
|
+
"popupRole": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"mutable": false,
|
|
62
|
+
"complexType": {
|
|
63
|
+
"original": "string",
|
|
64
|
+
"resolved": "string",
|
|
65
|
+
"references": {}
|
|
66
|
+
},
|
|
67
|
+
"required": false,
|
|
68
|
+
"optional": true,
|
|
69
|
+
"docs": {
|
|
70
|
+
"tags": [],
|
|
71
|
+
"text": "The role of the surface, for assistive technology"
|
|
72
|
+
},
|
|
73
|
+
"getter": false,
|
|
74
|
+
"setter": false,
|
|
75
|
+
"reflect": false,
|
|
76
|
+
"attribute": "popup-role"
|
|
77
|
+
},
|
|
78
|
+
"accessibleLabel": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"mutable": false,
|
|
81
|
+
"complexType": {
|
|
82
|
+
"original": "string",
|
|
83
|
+
"resolved": "string",
|
|
84
|
+
"references": {}
|
|
85
|
+
},
|
|
86
|
+
"required": false,
|
|
87
|
+
"optional": true,
|
|
88
|
+
"docs": {
|
|
89
|
+
"tags": [],
|
|
90
|
+
"text": "The name of the surface, for assistive technology"
|
|
91
|
+
},
|
|
92
|
+
"getter": false,
|
|
93
|
+
"setter": false,
|
|
94
|
+
"reflect": false,
|
|
95
|
+
"attribute": "accessible-label"
|
|
58
96
|
}
|
|
59
97
|
};
|
|
60
98
|
}
|
|
@@ -115,7 +115,7 @@ export class Portal {
|
|
|
115
115
|
this.showContainer();
|
|
116
116
|
}
|
|
117
117
|
render() {
|
|
118
|
-
return h("slot", { key: '
|
|
118
|
+
return h("slot", { key: '153c97264598d26b0c043075c889ed882bf5e9de' });
|
|
119
119
|
}
|
|
120
120
|
onVisible() {
|
|
121
121
|
if (!this.container && this.visible) {
|
|
@@ -243,7 +243,8 @@ export class ProfilePicture {
|
|
|
243
243
|
maxWidth: '20rem',
|
|
244
244
|
borderRadius: '0.75rem',
|
|
245
245
|
};
|
|
246
|
-
|
|
246
|
+
const title = this.getTranslation('profile-picture.unsupported-preview.title');
|
|
247
|
+
return (h("limel-popover", { open: this.isErrorMessagePopoverOpen, popupRole: "dialog", accessibleLabel: title, onClick: this.openPopover, onClose: this.onPopoverClose }, h("limel-icon-button", { slot: "trigger", elevated: true, icon: errorIcon, "aria-live": "polite", label: title }), h("limel-callout", { type: "warning", style: errorMessageStyles, heading: title }, this.getTranslation('profile-picture.unsupported-preview.description'))));
|
|
247
248
|
}
|
|
248
249
|
getImageSrc() {
|
|
249
250
|
if (!this.value) {
|