@limetech/lime-elements 40.15.0 → 40.16.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 +12 -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 +1 -1
- 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 +1 -1
- package/dist/cjs/limel-picker.cjs.entry.js +1 -1
- package/dist/cjs/limel-popover_2.cjs.entry.js +2 -2
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +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 +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/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 +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.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 +1 -1
- 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 +1 -1
- package/dist/esm/limel-picker.entry.js +1 -1
- package/dist/esm/limel-popover_2.entry.js +2 -2
- 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-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-068b141b.entry.js → p-713a1158.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-3f447d22.entry.js → p-8045eb7f.entry.js} +1 -1
- package/dist/lime-elements/p-813cb15c.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-a81f6962.entry.js +1 -0
- package/dist/lime-elements/{p-6770cf06.entry.js → p-af53caab.entry.js} +1 -1
- 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-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.d.ts +140 -2
- 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-09f8f883.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-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
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as o,h as t,H as r,a as i}from"./p-BU9IJqli.js";import{t as a}from"./p-B26k4gw8.js";import{A as s,b as n,c as l,d as c}from"./p-Bu6-QXrA.js";import"./p-ChagAaNf.js";const h={left:{axis:"x",cursor:"col-resize",direction:-1,growKey:l,shrinkKey:c},right:{axis:"x",cursor:"col-resize",direction:1,growKey:c,shrinkKey:l},top:{axis:"y",cursor:"row-resize",direction:-1,growKey:s,shrinkKey:n},bottom:{axis:"y",cursor:"row-resize",direction:1,growKey:n,shrinkKey:s}};function d(e){return"x"===h[e].axis?"vertical":"horizontal"}const p={activeDrags:0};function b(e){document.body.style.cursor=e.cursor,document.body.style.userSelect=e.userSelect}function m(e,o){let t,r,i,a=h.left,s=!1;const n=e=>"x"===a.axis?e.clientX:e.clientY,l=l=>{var c;void 0===t&&(l.preventDefault(),t=l.pointerId,s=!1,a=h[o.getLocation()],r=n(l),i=o.getSize(),e.setPointerCapture(l.pointerId),c=a.cursor,0===p.activeDrags&&(p.before={cursor:document.body.style.cursor,userSelect:document.body.style.userSelect}),p.activeDrags+=1,b({cursor:c,userSelect:"none"}))},c=e=>{e.pointerId===t&&(s=!0,o.resize(i+a.direction*(n(e)-r)))},d=e=>{e.pointerId===t&&(m(),s&&o.end())},m=()=>{void 0!==t&&(t=void 0,p.activeDrags-=1,0===p.activeDrags&&b(p.before))};return e.addEventListener("pointerdown",l),e.addEventListener("pointermove",c),e.addEventListener("pointerup",d),e.addEventListener("pointercancel",d),e.addEventListener("lostpointercapture",d),()=>{m(),e.removeEventListener("pointerdown",l),e.removeEventListener("pointermove",c),e.removeEventListener("pointerup",d),e.removeEventListener("pointercancel",d),e.removeEventListener("lostpointercapture",d)}}const v="separator",u=class{constructor(t){e(this,t),this.changeSize=o(this,"changeSize",1),this.endResize=o(this,"endResize",1),this.location="left",this.language="en",this.isPointerOver=!1,this.hasKeyboardFocus=!1,this.handlePointerEnter=()=>{this.isPointerOver=!0},this.handlePointerLeave=()=>{this.isPointerOver=!1},this.handleFocus=e=>{this.hasKeyboardFocus=e.currentTarget.matches(":focus-visible")},this.handleBlur=()=>{this.hasKeyboardFocus=!1},this.handleKeyDown=e=>{const o=function(e,o){const{growKey:t,shrinkKey:r}=h[e];return o===t?8:o===r?-8:void 0}(this.location,e.key);void 0!==o&&(e.preventDefault(),this.hasKeyboardFocus=!0,this.changeSize.emit(this.elementSize()+o),this.endResize.emit())},this.elementSize=()=>{return e=this.resizableElement(),"x"===h[this.location].axis?e.offsetWidth:e.offsetHeight;var e}}connectedCallback(){this.stopResizing=m(this.host,{getLocation:()=>this.location,getSize:this.elementSize,resize:e=>this.changeSize.emit(e),end:()=>this.endResize.emit()})}disconnectedCallback(){var e;null===(e=this.stopResizing)||void 0===e||e.call(this),this.stopResizing=void 0}render(){const e=this.getName();return t(r,{key:"
|
|
1
|
+
import{r as e,c as o,h as t,H as r,a as i}from"./p-BU9IJqli.js";import{t as a}from"./p-B26k4gw8.js";import{A as s,b as n,c as l,d as c}from"./p-Bu6-QXrA.js";import"./p-ChagAaNf.js";const h={left:{axis:"x",cursor:"col-resize",direction:-1,growKey:l,shrinkKey:c},right:{axis:"x",cursor:"col-resize",direction:1,growKey:c,shrinkKey:l},top:{axis:"y",cursor:"row-resize",direction:-1,growKey:s,shrinkKey:n},bottom:{axis:"y",cursor:"row-resize",direction:1,growKey:n,shrinkKey:s}};function d(e){return"x"===h[e].axis?"vertical":"horizontal"}const p={activeDrags:0};function b(e){document.body.style.cursor=e.cursor,document.body.style.userSelect=e.userSelect}function m(e,o){let t,r,i,a=h.left,s=!1;const n=e=>"x"===a.axis?e.clientX:e.clientY,l=l=>{var c;void 0===t&&(l.preventDefault(),t=l.pointerId,s=!1,a=h[o.getLocation()],r=n(l),i=o.getSize(),e.setPointerCapture(l.pointerId),c=a.cursor,0===p.activeDrags&&(p.before={cursor:document.body.style.cursor,userSelect:document.body.style.userSelect}),p.activeDrags+=1,b({cursor:c,userSelect:"none"}))},c=e=>{e.pointerId===t&&(s=!0,o.resize(i+a.direction*(n(e)-r)))},d=e=>{e.pointerId===t&&(m(),s&&o.end())},m=()=>{void 0!==t&&(t=void 0,p.activeDrags-=1,0===p.activeDrags&&b(p.before))};return e.addEventListener("pointerdown",l),e.addEventListener("pointermove",c),e.addEventListener("pointerup",d),e.addEventListener("pointercancel",d),e.addEventListener("lostpointercapture",d),()=>{m(),e.removeEventListener("pointerdown",l),e.removeEventListener("pointermove",c),e.removeEventListener("pointerup",d),e.removeEventListener("pointercancel",d),e.removeEventListener("lostpointercapture",d)}}const v="separator",u=class{constructor(t){e(this,t),this.changeSize=o(this,"changeSize",1),this.endResize=o(this,"endResize",1),this.location="left",this.language="en",this.isPointerOver=!1,this.hasKeyboardFocus=!1,this.handlePointerEnter=()=>{this.isPointerOver=!0},this.handlePointerLeave=()=>{this.isPointerOver=!1},this.handleFocus=e=>{this.hasKeyboardFocus=e.currentTarget.matches(":focus-visible")},this.handleBlur=()=>{this.hasKeyboardFocus=!1},this.handleKeyDown=e=>{const o=function(e,o){const{growKey:t,shrinkKey:r}=h[e];return o===t?8:o===r?-8:void 0}(this.location,e.key);void 0!==o&&(e.preventDefault(),this.hasKeyboardFocus=!0,this.changeSize.emit(this.elementSize()+o),this.endResize.emit())},this.elementSize=()=>{return e=this.resizableElement(),"x"===h[this.location].axis?e.offsetWidth:e.offsetHeight;var e}}connectedCallback(){this.stopResizing=m(this.host,{getLocation:()=>this.location,getSize:this.elementSize,resize:e=>this.changeSize.emit(e),end:()=>this.endResize.emit()})}disconnectedCallback(){var e;null===(e=this.stopResizing)||void 0===e||e.call(this),this.stopResizing=void 0}render(){const e=this.getName();return t(r,{key:"60afc9a25d46b0353ea82e5d952c4f16ea966af9",onKeyDown:this.handleKeyDown,onPointerEnter:this.handlePointerEnter,onPointerLeave:this.handlePointerLeave},t("div",{key:"cf668350fd88ceb546b2ba5d9f2e256fad850633",role:"separator",id:v,tabindex:"0","aria-orientation":d(this.location),"aria-label":e,"aria-valuenow":this.value,"aria-valuemin":this.min,"aria-valuemax":this.max,onFocus:this.handleFocus,onBlur:this.handleBlur},t("div",{key:"581a96a20905d70ed32f5a25b8db803ea4daee6a",role:"presentation"},t("span",{key:"a06b14126c53c2a28c32897cf27d95f2d86d6e71"}),t("span",{key:"b0b80786f6fa842b562c3e17c82f6d569f977d6f"}),t("span",{key:"f1604f9a3e96bf59558bba08a3c9388f97ecb17e"}))),t("limel-tooltip",{key:"43c3a9a2502f30e58067f1eb16e53129face2bf4",elementId:v,label:e,helperLabel:this.getHint(),openDirection:this.location}))}getName(){return this.resizableRegionLabel?a.get("resize-handle.resize",this.language,{region:this.resizableRegionLabel}):a.get("resize-handle.resize-this-region",this.language)}getHint(){if(this.isPointerOver&&!this.hasKeyboardFocus)return a.get("resize-handle.drag",this.language);const e="vertical"===d(this.location)?"resize-handle.keys-left-right":"resize-handle.keys-up-down";return a.get(e,this.language)}resizableElement(){return this.host.parentElement?this.host.parentElement:this.host.getRootNode().host}static get delegatesFocus(){return!0}get host(){return i(this)}};u.style='@charset "UTF-8";:host(limel-resize-handle){position:absolute;z-index:1;touch-action:none}div[role=separator]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;border-radius:100vh;outline:none}div[role=separator]::before,div[role=separator]::after{pointer-events:none;content:"";display:block;position:absolute;inset:0;border-radius:100vh;margin:auto}div[role=separator]::before{transition:scale 0.3s ease, opacity 0.3s ease;transition-delay:0.2s;opacity:0}div[role=separator]::after{transition:background-color 0.4s ease;transition-delay:0.2s;background-color:rgb(var(--contrast-600))}:host([location=top]),:host([location=bottom]){cursor:row-resize;height:var(--limel-resize-handle-thickness, 0.5rem) !important;right:0;left:0}:host([location=top]) div[role=separator]::before,:host([location=bottom]) div[role=separator]::before{scale:1 0.9;height:0.5rem;width:var(--limel-resize-handle-visual-length, auto)}:host([location=top]) div[role=separator]::after,:host([location=bottom]) div[role=separator]::after{height:0.125rem;width:var(--limel-resize-handle-visual-length, auto)}:host([location=top]){top:0}:host([location=top]) div[role=separator]::before{top:0;bottom:auto}:host([location=top]) div[role=separator]::after{top:calc((0.5rem - 0.125rem) / 2);bottom:auto}:host([location=bottom]){bottom:0}:host([location=bottom]) div[role=separator]::before{top:auto;bottom:0}:host([location=bottom]) div[role=separator]::after{top:auto;bottom:calc((0.5rem - 0.125rem) / 2)}:host([location=left]),:host([location=right]){cursor:col-resize;width:0.5rem;top:0;bottom:0}:host([location=left]) div[role=separator]::before,:host([location=right]) div[role=separator]::before{scale:0.9 1}:host([location=left]) div[role=separator]::after,:host([location=right]) div[role=separator]::after{width:0.125rem}:host([location=left]){left:0}:host([location=right]){right:0}:host(:hover) div[role=separator]::before,:host div[role=separator]:focus-visible::before{transition-duration:0.46s;transition-timing-function:ease-in;opacity:1;scale:1 1;background-color:rgb(var(--color-sky-light), 0.4)}:host(:hover) div[role=separator]::after,:host div[role=separator]:focus-visible::after{transition-duration:0.2s;transition-timing-function:ease-in;background-color:rgb(var(--color-sky-default))}div[role=presentation]{transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);pointer-events:none;position:relative;z-index:1;display:flex;gap:0.25rem;align-items:center;justify-content:center;width:fit-content;padding:0.1875rem 0.25rem;border-radius:100vh;margin:auto;background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--button-shadow-pressed)}div[role=presentation] span{transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);border-radius:0.125rem;width:0.25rem;height:0.125rem;background-color:rgb(var(--contrast-700))}:host([location=top]) div[role=presentation]{margin-top:0;margin-bottom:auto}:host([location=bottom]) div[role=presentation]{margin-top:auto;margin-bottom:0}div[role=separator][aria-orientation=vertical]>div[role=presentation]{rotate:90deg}:host(:hover),:host div[role=separator]:focus-visible{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}:host(:hover) div[role=presentation],:host div[role=separator]:focus-visible div[role=presentation]{will-change:background-color, box-shadow, transform;transform:translate3d(0, -0.04rem, 0);box-shadow:var(--button-shadow-normal)}:host(:hover) span,:host div[role=separator]:focus-visible span{will-change:background-color;background-color:var(--mdc-theme-primary)}';export{u as limel_resize_handle}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as r,a as o}from"./p-BU9IJqli.js";import{i}from"./p-CnpoFRmN.js";import{g as a,b as l}from"./p-CgNJbSP4.js";import{A as n,b as s,H as c,e as b,c as d,d as h}from"./p-Bu6-QXrA.js";import{a as u,b as m,i as v,D as p}from"./p-DVx8ZwG_.js";import{S as g,c as f}from"./p-BqoaAMnl.js";import{b as w}from"./p-BuX-Eb_J.js";import"./p-CK4jS9_E.js";import"./p-xGeCwSnE.js";import"./p-BcJ-TDVt.js";import"./p-BJQylLSL.js";import"./p-BZrtP4vv.js";import"./p-oiMYqRQ0.js";import"./p-rJbGuVxd.js";import"./p-DbBZn7JO.js";import"./p-CZ30nDJE.js";import"./p-DpFfRQwV.js";import"./p-B8VKuhvH.js";import"./p-CzTSYn-I.js";import"./p-B--C3qwe.js";import"./p-9W8bTt2G.js";var x=m((function(t,e){return v(t)?function(t,e){var r=-1,o=u,i=!0,a=t.length,l=[],n=e.length;if(!a)return l;e.length>=200&&(o=f,i=!1,e=new g(e));t:for(;++r<a;){var s=t[r],c=s;if(s=0!==s?s:0,i&&c==c){for(var b=n;b--;)if(e[b]===c)continue t;l.push(s)}else o(e,c,undefined)||l.push(s)}return l}(t,w(e,1,v,!0)):[]}));const k={horizontal:new Map([[d,"previous"],[h,"next"],[c,"first"],[b,"last"]]),vertical:new Map([[n,"previous"],[s,"next"],[c,"first"],[b,"last"]])};function j(t,e){return t>=0&&t<e}function y(t,e){return r=>{var o;return!(null===(o=null==e?void 0:e.isDisabled)||void 0===o?void 0:o.call(e,t[r]))}}function C(t,e,r,o,i){for(let a=0;a<t;a+=1){const l=e+r*a;if(!o&&!j(l,t))break;const n=(l%t+t)%t;if(i(n))return n}return-1}const z=class{constructor(r){t(this,r),this.changeTab=e(this,"changeTab",7),this.reorderTab=e(this,"reorderTab",7),this.tabs=[],this.orientation="horizontal",this.allowTabReorder=!1,this.hasLoaded=!1,this.isLaidOutAgain=!1,this.renderedTabs=[],this.handleReorder=t=>{const e=function(t,e){const{order:r,fromIndex:o,toIndex:a}=e,l=e=>e>=0&&e<t.length;if(!l(o)||!l(a))return;const n=[...r];return n.splice(o,0,...n.splice(a,1)),i(n,t.map((({id:t})=>String(t))))?{tab:t[o],fromIndex:o,toIndex:a}:void 0}(this.tabs,t);if(!e)return;const r=this.tabs.map((({id:t})=>t));r.splice(e.toIndex,0,...r.splice(e.fromIndex,1)),this.tabIdsAfterReorder=r,this.reorderTab.emit(e)},this.handleKeyDown=this.handleKeyDown.bind(this)}async connectedCallback(){this.hasLoaded&&(this.revealedTabId=void 0,this.setUpReordering(),await this.revealActiveTab("auto"))}disconnectedCallback(){var t;null===(t=this.dragToReorder)||void 0===t||t.teardown()}componentDidLoad(){this.hasLoaded=!0,this.triggerIconColorWarning()}componentWillRender(){var t;const e=this.getTabElements().indexOf(this.host.shadowRoot.activeElement);this.tabWithFocus=-1===e?void 0:{id:null===(t=this.renderedTabs[e])||void 0===t?void 0:t.id,button:this.getTabElements()[e]}}async componentDidRender(){this.restoreFocus(),this.renderedTabs=this.tabs,this.setUpReordering();const t=this.isLaidOutAgain;this.isLaidOutAgain=!1,await this.revealActiveTab(!this.hasLoaded||t?"auto":void 0,t)}render(){const t=function(t,e,r){const o=t.length,i=y(t,r);return j(e,o)&&i(e)?e:C(o,0,1,!1,i)}(this.tabs,this.tabs.findIndex((t=>t.active)),this.getNavigationOptions());return r("div",{key:"d5f54de83640eb4898a58cd71696085e28f3701a",role:"tablist","aria-orientation":this.getOrientation(),onKeyDown:this.handleKeyDown},r("limel-scroller",{key:"565bbbcdf070a6b2521064a84347028baaae273e",orientation:this.getOrientation()},this.tabs.map(((e,r)=>this.renderTabOrMovableTab(e,r,r===t)))))}tabsChanged(t=[],e=[]){const r=t.map((t=>t.id)),o=e.map((t=>t.id));if(i(r,o))return;const a=this.tabIdsAfterReorder;this.tabIdsAfterReorder=void 0,i(r,a)||(this.revealedTabId=void 0)}orientationChanged(){this.revealedTabId=void 0,this.isLaidOutAgain=!0}getOrientation(){return"vertical"===this.orientation?"vertical":"horizontal"}getNavigationOptions(){return{orientation:this.getOrientation(),wrap:!0}}restoreFocus(){var t;const e=this.tabWithFocus;if(this.tabWithFocus=void 0,!e||e.button.isConnected)return;const r=this.tabs.findIndex((t=>t.id===e.id));null===(t=this.getTabElements()[r])||void 0===t||t.focus()}getTabElements(){return[...this.host.shadowRoot.querySelectorAll('button[role="tab"]')]}canReorderTabs(){return this.allowTabReorder&&this.tabs.length>1}setUpReordering(){var t,e;if(!this.canReorderTabs())return void(null===(t=this.dragToReorder)||void 0===t||t.teardown());const r=this.host.shadowRoot.querySelector("limel-scroller");r&&(null!==(e=this.dragToReorder)&&void 0!==e||(this.dragToReorder=new p({draggable:"[data-reorder-id]",revertDrop:!0,onReorder:this.handleReorder})),this.dragToReorder.setup(r,this.getOrientation()))}async revealActiveTab(t,e=!1){const r=this.tabs.findIndex((t=>t.active));if(-1===r)return void(this.revealedTabId=void 0);if(this.tabs[r].id===this.revealedTabId)return;this.revealedTabId=this.tabs[r].id;const o=this.getTabElements()[r],i=this.host.shadowRoot.querySelector("limel-scroller");o&&i&&(o.matches(":focus")&&!e||(await i.componentOnReady(),await i.reveal(o,t)))}handleKeyDown(t){const e=this.getNavigationOptions();if(!function(t,e){return!(t.altKey||t.ctrlKey||t.metaKey)&&k[e.orientation].has(t.key)}(t,e))return;const r=this.getTabElements().indexOf(t.target);-1!==r&&(t.preventDefault(),this.activateTab(function(t,e,r,o){const i=k[o.orientation].get(e),a=t.length,l=y(t,o),n=C(a,0,1,!1,l);if(!i||-1===n)return-1;if("first"===i)return n;const s=C(a,a-1,-1,!1,l);if("last"===i)return s;if(!j(r,a))return"next"===i?n:s;const c="next"===i?1:-1,b=C(a,r+c,c,Boolean(o.wrap),l);return-1===b?r:b}(this.tabs,t.key,r,e)))}activateTab(t){if(-1===t)return;if(this.getTabElements()[t].focus(),t===this.tabs.findIndex((t=>t.active)))return;const e=function(t,e){const r=t.findIndex((t=>!0===t.active)),o=[...t];return-1!==r&&(o[r]=Object.assign(Object.assign({},t[r]),{active:!1})),o[e]=Object.assign(Object.assign({},t[e]),{active:!0}),o}(this.tabs,t),r=x(e,this.tabs).sort(this.sortByInactive);for(const t of r)this.changeTab.emit(t);this.tabs=e}sortByInactive(t,e){return Number(t.active)-Number(e.active)}renderIcon(t){if(!t.icon)return;const e=a(t.icon),o=l(t.icon,t.iconColor),i={color:""};return o&&(i.color=o),r("limel-icon",{name:e,style:i,size:"small","aria-hidden":"true"})}renderTabOrMovableTab(t,e,o){return this.canReorderTabs()?r("div",{key:t.id,role:"presentation","data-reorder-id":t.id},this.renderTab(t,e,o),r("limel-drag-handle",{"aria-hidden":"true",dragDirection:this.getOrientation(),tooltipOpenDirection:"vertical"===this.getOrientation()?"right":"bottom"})):this.renderTab(t,e,o)}renderTab(t,e,o){return r("button",{key:t.id,role:"tab","aria-selected":t.active?"true":"false",tabindex:o?0:-1,onClick:()=>this.activateTab(e)},r("span",{class:"content"},this.renderIcon(t),r("span",{class:"text"},t.text),t.badge?r("limel-badge",{label:t.badge}):""))}triggerIconColorWarning(){this.tabs.some((t=>t.iconColor))&&console.warn("The `iconColor` prop is deprecated now! Use the new `Icon` interface and instead of `iconColor: 'color-name'` write `icon {name: 'icon-name', color: 'color-name'}`.")}get host(){return o(this)}static get watchers(){return{tabs:[{tabsChanged:0}],orientation:[{orientationChanged:0}]}}};z.style="@charset \"UTF-8\";:host(limel-tab-bar){--limel-tab-background-color:var(--contrast-300);--limel-tab-border-radius:0.625rem;--limel-tab-content-inset:0.25rem;--limel-active-tab-background-color:var( --tab-panel-background-color, rgb(var(--contrast-100)) );--limel-active-tab-color:var( --lime-primary-color, var(--limel-theme-primary-color) );--limel-tab-active-outer-edge-curve-size:0.75rem;--limel-tab-separator-width:0.125rem;--limel-tab-separator-background-color:rgb(var(--contrast-600));isolation:isolate;display:block;position:relative}limel-scroller{--limel-scroller-fade-color:var(--limel-tab-background-color);--limel-scroller-content-padding:0.25rem var(--limel-tab-active-outer-edge-curve-size) 0;background-color:rgb(var(--limel-tab-background-color))}:host(.has-tabs-with-equal-width:not([orientation=vertical])) button[role=tab],:host(.has-tabs-with-equal-width:not([orientation=vertical])) limel-scroller>div{flex:1 0 auto;max-width:var(--tab-bar-horizontal-tab-max-width, none)}limel-scroller>div:has(limel-drag-handle:hover),limel-scroller>div:has(limel-drag-handle:focus-within),limel-scroller>div.is-elevated,limel-scroller>div.sortable-chosen{will-change:transform, box-shadow, border-radius, background-color}limel-scroller>div.sortable-ghost{border-radius:0.5rem;box-shadow:var(--shadow-depth-64), 0 0.65rem 0.75rem -0.425rem rgb(var(--color-black), 0.3)}limel-scroller>div.sortable-chosen{border-radius:0.5rem;background-color:var(--lime-elevated-surface-background-color)}limel-scroller>div.is-elevated[draggable=false]{animation:sit-here 0.8s forwards}@keyframes sit-here{0%{border-radius:0.5rem;background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--shadow-depth-64), 0 0.65rem 0.75rem -0.425rem rgb(var(--color-black), 0.3)}100%{box-shadow:none}}limel-scroller>div{position:relative;display:flex;flex:0 0 auto}limel-scroller>div button[role=tab]{flex:1 1 auto;min-width:0}limel-scroller>div span.content{padding-right:2rem}limel-scroller>div limel-drag-handle{position:absolute;z-index:3;top:0;bottom:0;right:0.25rem}button[role=tab]{appearance:none;background:none;border:none;padding:0;margin:0;font:inherit;color:inherit;text-align:inherit;position:relative;display:flex;box-sizing:border-box;border-radius:0;padding:var(--limel-tab-content-inset);min-width:2.5rem;background-color:transparent;flex:0 0 auto;height:2.5rem;outline:none;cursor:pointer;white-space:nowrap;font-size:var(--limel-theme-default-font-size)}button[role=tab] limel-icon{transition:color 0.2s ease;color:rgb(var(--contrast-800));margin-left:-0.25rem;flex-shrink:0}button[role=tab] span.text{transition:color 0.2s ease;line-height:1.25;overflow:hidden;text-overflow:ellipsis;color:var(--limel-theme-on-surface-color)}button[role=tab]:hover span.text{color:var(--limel-theme-text-primary-on-background-color)}button[role=tab] limel-badge{margin-right:-0.25rem;box-shadow:0 0 0 1px rgb(var(--contrast-600));pointer-events:none;flex-shrink:0}button[role=tab][aria-selected=true]{background-color:var(--limel-active-tab-background-color);z-index:2}button[role=tab][aria-selected=true]:before,button[role=tab][aria-selected=true]:after{content:\"\";display:block;width:var(--limel-tab-active-outer-edge-curve-size);height:var(--limel-tab-active-outer-edge-curve-size);position:absolute;background-color:var(--limel-active-tab-background-color);-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20stroke-linejoin='round'%20stroke-miterlimit='2'%20clip-rule='evenodd'%20viewBox='0%200%2050%2050'%3E%3Cdefs/%3E%3Cpath%20d='M0%200c0%2027.594%2022.406%2050%2050%2050H0V0z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20stroke-linejoin='round'%20stroke-miterlimit='2'%20clip-rule='evenodd'%20viewBox='0%200%2050%2050'%3E%3Cdefs/%3E%3Cpath%20d='M0%200c0%2027.594%2022.406%2050%2050%2050H0V0z'/%3E%3C/svg%3E\")}button[role=tab][aria-selected=true] limel-icon{color:var(--limel-active-tab-color)}button[role=tab][aria-selected=true] span.text{color:var(--limel-active-tab-color)}span.content{transition:box-shadow 0.2s ease;display:flex;flex-grow:1;min-width:0;align-items:center;justify-content:center;gap:0.375rem;padding:0 0.75rem;border-radius:calc(var(--limel-tab-border-radius) - var(--limel-tab-content-inset))}button[role=tab]:focus-visible span.content{transition-duration:0.3s;box-shadow:var(--shadow-depth-8-focused)}:host(limel-tab-bar:not([orientation=vertical])) button[role=tab]{max-width:var(--tab-bar-horizontal-tab-max-width, 16rem)}:host(limel-tab-bar:not([orientation=vertical])) button[role=tab]:not([aria-selected=true]):after{content:\"\";display:block;background-color:var(--limel-tab-separator-background-color);width:var(--limel-tab-separator-width);height:1rem;margin:auto;position:absolute;top:0;bottom:0;border-radius:1rem;right:calc(-1 * var(--limel-tab-separator-width))}:host(limel-tab-bar:not([orientation=vertical])) limel-scroller>:last-child:not([aria-selected=true]):after,:host(limel-tab-bar:not([orientation=vertical])) limel-scroller>:last-child>button[role=tab]:not([aria-selected=true]):after{display:none}:host(limel-tab-bar:not([orientation=vertical])) button[role=tab][aria-selected=true]{border-radius:var(--limel-tab-border-radius) var(--limel-tab-border-radius) 0 0}:host(limel-tab-bar:not([orientation=vertical])) button[role=tab][aria-selected=true]:before,:host(limel-tab-bar:not([orientation=vertical])) button[role=tab][aria-selected=true]:after{bottom:0}:host(limel-tab-bar:not([orientation=vertical])) button[role=tab][aria-selected=true]:before{left:calc(-1 * var(--limel-tab-active-outer-edge-curve-size));transform:rotateY(180deg)}:host(limel-tab-bar:not([orientation=vertical])) button[role=tab][aria-selected=true]:after{right:calc(-1 * var(--limel-tab-active-outer-edge-curve-size))}:host(limel-tab-bar[orientation=vertical]){width:var(--tab-bar-vertical-width, 10rem)}:host(limel-tab-bar[orientation=vertical]) div[role=tablist]{height:100%}:host(limel-tab-bar[orientation=vertical]) limel-scroller{--limel-scroller-content-padding:var( --limel-tab-active-outer-edge-curve-size ) 0 var(--limel-tab-active-outer-edge-curve-size) 0.25rem;height:100%}:host(limel-tab-bar[orientation=vertical]) button[role=tab][aria-selected=true]{border-radius:var(--limel-tab-border-radius) 0 0 var(--limel-tab-border-radius)}:host(limel-tab-bar[orientation=vertical]) button[role=tab][aria-selected=true]:before,:host(limel-tab-bar[orientation=vertical]) button[role=tab][aria-selected=true]:after{right:0}:host(limel-tab-bar[orientation=vertical]) button[role=tab][aria-selected=true]:before{bottom:100%;transform:rotateY(180deg)}:host(limel-tab-bar[orientation=vertical]) button[role=tab][aria-selected=true]:after{top:100%;transform:rotate(180deg)}:host(limel-tab-bar[orientation=vertical]) span.content{justify-content:flex-start}:host(limel-tab-bar[orientation=vertical]) span.text{flex-grow:1}";export{z as limel_tab_bar}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function t(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var r=arguments;switch(r.length){case 0:return!t.call(this);case 1:return!t.call(this,r[0]);case 2:return!t.call(this,r[0],r[1]);case 3:return!t.call(this,r[0],r[1],r[2])}return!t.apply(this,r)}}export{t as n}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as t}from"./p-DbBZn7JO.js";import{e as n}from"./p-CZ30nDJE.js";import{M as r}from"./p-DpFfRQwV.js";var i=t(Object,"create"),s=Object.prototype.hasOwnProperty,o=Object.prototype.hasOwnProperty;function u(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var i=t[n];this.set(i[0],i[1])}}function h(t,r){for(var i=t.length;i--;)if(n(t[i][0],r))return i;return-1}u.prototype.clear=function(){this.__data__=i?i(null):{},this.size=0},u.prototype.delete=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n},u.prototype.get=function(t){var n=this.__data__;if(i){var r=n[t];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(n,t)?n[t]:void 0},u.prototype.has=function(t){var n=this.__data__;return i?void 0!==n[t]:o.call(n,t)},u.prototype.set=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=i&&void 0===n?"__lodash_hash_undefined__":n,this};var e=Array.prototype.splice;function a(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var i=t[n];this.set(i[0],i[1])}}function f(t,n){var r,i,s=t.__data__;return("string"==(i=typeof(r=n))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==r:null===r)?s["string"==typeof n?"string":"hash"]:s.map}function v(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var i=t[n];this.set(i[0],i[1])}}function c(t,n){for(var r=-1,i=n.length,s=t.length;++r<i;)t[s+r]=n[r];return t}a.prototype.clear=function(){this.__data__=[],this.size=0},a.prototype.delete=function(t){var n=this.__data__,r=h(n,t);return!(r<0||(r==n.length-1?n.pop():e.call(n,r,1),--this.size,0))},a.prototype.get=function(t){var n=this.__data__,r=h(n,t);return r<0?void 0:n[r][1]},a.prototype.has=function(t){return h(this.__data__,t)>-1},a.prototype.set=function(t,n){var r=this.__data__,i=h(r,t);return i<0?(++this.size,r.push([t,n])):r[i][1]=n,this},v.prototype.clear=function(){this.size=0,this.__data__={hash:new u,map:new(r||a),string:new u}},v.prototype.delete=function(t){var n=f(this,t).delete(t);return this.size-=n?1:0,n},v.prototype.get=function(t){return f(this,t).get(t)},v.prototype.has=function(t){return f(this,t).has(t)},v.prototype.set=function(t,n){var r=f(this,t),i=r.size;return r.set(t,n),this.size+=r.size==i?0:1,this};export{a as L,v as M,c as a}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as r}from"./p-BcJ-TDVt.js";import{i as t}from"./p-BZrtP4vv.js";function i(i){return null!=i&&t(i.length)&&!r(i)}export{i}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { FormError, FormSchema, ValidationError, ValidationStatus } from './form.types';
|
|
2
|
+
import { FormError, FormSchema, HeadingLevel, ValidationError, ValidationStatus } from './form.types';
|
|
3
3
|
/**
|
|
4
4
|
* @exampleComponent limel-example-form
|
|
5
5
|
* @exampleComponent limel-example-nested-form
|
|
@@ -18,6 +18,7 @@ import { FormError, FormSchema, ValidationError, ValidationStatus } from './form
|
|
|
18
18
|
* @exampleComponent limel-example-builtin-field-types-form
|
|
19
19
|
* @exampleComponent limel-example-code-editor-form
|
|
20
20
|
* @exampleComponent limel-example-form-highlighted-field
|
|
21
|
+
* @exampleComponent limel-example-form-heading-level
|
|
21
22
|
*/
|
|
22
23
|
export declare class Form {
|
|
23
24
|
/**
|
|
@@ -51,6 +52,16 @@ export declare class Form {
|
|
|
51
52
|
* errors generated server side.
|
|
52
53
|
*/
|
|
53
54
|
errors: ValidationError;
|
|
55
|
+
/**
|
|
56
|
+
* The level, from `1` to `6`, of the topmost headings in the form.
|
|
57
|
+
* The headings of the sections inside them get one level more for each
|
|
58
|
+
* level of nesting, down to `6`.
|
|
59
|
+
*
|
|
60
|
+
* Set it so that the headings of the form fit below the headings of
|
|
61
|
+
* the page around it. For example, when the form is in a section with
|
|
62
|
+
* an `h2` heading, set it to `3`.
|
|
63
|
+
*/
|
|
64
|
+
headingLevel: HeadingLevel;
|
|
54
65
|
/**
|
|
55
66
|
* Set to `true` to render every field with a validation error as
|
|
56
67
|
* invalid, even untouched ones, and to reflect that on each
|
|
@@ -85,7 +96,10 @@ export declare class Form {
|
|
|
85
96
|
private initialized;
|
|
86
97
|
constructor();
|
|
87
98
|
connectedCallback(): void;
|
|
99
|
+
componentWillLoad(): void;
|
|
88
100
|
componentDidLoad(): void;
|
|
101
|
+
protected handleHeadingLevelChange(): void;
|
|
102
|
+
private warnIfHeadingLevelIsInvalid;
|
|
89
103
|
protected handleHighlightedFieldChange(newPath?: Array<string | number>, oldPath?: Array<string | number>): void;
|
|
90
104
|
private initialize;
|
|
91
105
|
componentDidUpdate(): void;
|
|
@@ -45,4 +45,8 @@ export declare const nestedLayoutSchemaPathSchema: FormSchema;
|
|
|
45
45
|
export declare const getConditionalCustomComponentSchema: (value: Record<string, any>) => FormSchema;
|
|
46
46
|
export declare const arrayItemWithEnumAndDefaultSchema: FormSchema;
|
|
47
47
|
export declare const requiredCheckboxSchema: FormSchema;
|
|
48
|
+
export declare const nestedTitlesSchema: FormSchema;
|
|
49
|
+
export declare const titledRowLayoutSchema: FormSchema;
|
|
50
|
+
export declare const untitledRootSchema: FormSchema;
|
|
51
|
+
export declare const untitledRowSchema: FormSchema;
|
|
48
52
|
//# sourceMappingURL=form.test-schemas.d.ts.map
|
|
@@ -72,6 +72,12 @@ export type ValidationError = {
|
|
|
72
72
|
*/
|
|
73
73
|
[key: string]: string[] | ValidationError;
|
|
74
74
|
};
|
|
75
|
+
/**
|
|
76
|
+
* The level of a heading, from `1` for an `h1` to `6` for an `h6`.
|
|
77
|
+
*
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
export type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
75
81
|
/**
|
|
76
82
|
* @public
|
|
77
83
|
*/
|
|
@@ -6,8 +6,6 @@ import { FormSchema } from '../form.types';
|
|
|
6
6
|
* @param extraProps - additional props to pass to the limel-help element
|
|
7
7
|
*/
|
|
8
8
|
export declare function getHelpComponent(schema: FormSchema, extraProps?: Record<string, unknown>): React.ReactElement<{
|
|
9
|
-
value: string;
|
|
10
|
-
}, string | React.JSXElementConstructor<any>> | React.ReactElement<{
|
|
11
9
|
openDirection?: import("../../..").OpenDirection;
|
|
12
10
|
readMoreLink?: import("../../..").Link;
|
|
13
11
|
trigger?: string;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RowProps } from '../templates/types';
|
|
3
|
+
import { HeadingLevelContext } from '../templates/heading-level';
|
|
3
4
|
export declare class Row extends React.Component<RowProps> {
|
|
4
5
|
props: RowProps;
|
|
6
|
+
static readonly contextType: React.Context<import("../form.types").HeadingLevel>;
|
|
7
|
+
context: React.ContextType<typeof HeadingLevelContext>;
|
|
5
8
|
constructor(props: RowProps);
|
|
6
9
|
render(): React.DetailedReactHTMLElement<{
|
|
7
10
|
className: string;
|
|
@@ -1,13 +1,26 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { JSONSchema7 } from 'json-schema';
|
|
3
3
|
import { ErrorSchema } from '@rjsf/utils';
|
|
4
|
+
import { Help } from '../../help/help.types';
|
|
4
5
|
/**
|
|
6
|
+
* Render the title of a field, with its description and help, as a
|
|
7
|
+
* heading.
|
|
5
8
|
*
|
|
6
|
-
* @param title
|
|
9
|
+
* @param title - the title of the field
|
|
10
|
+
* @param description - the description of the field, in markdown
|
|
11
|
+
* @param help - the help of the field, as in `lime.help` of the schema
|
|
7
12
|
*/
|
|
8
|
-
export declare function
|
|
9
|
-
|
|
10
|
-
|
|
13
|
+
export declare function renderHeader(title: string, description?: string, help?: string | Partial<Help>): React.FunctionComponentElement<import("./heading-level").HeaderProps>;
|
|
14
|
+
/**
|
|
15
|
+
* Render a field with its header, followed by its content. The headings in
|
|
16
|
+
* the content are one level below the heading of the field.
|
|
17
|
+
*
|
|
18
|
+
* @param title - the title of the field
|
|
19
|
+
* @param description - the description of the field, in markdown
|
|
20
|
+
* @param help - the help of the field, as in `lime.help` of the schema
|
|
21
|
+
* @param content - the content of the field
|
|
22
|
+
*/
|
|
23
|
+
export declare function renderSection(title: string, description: string | undefined, help: string | Partial<Help> | undefined, ...content: React.ReactNode[]): React.FunctionComponentElement<React.FragmentProps>;
|
|
11
24
|
/**
|
|
12
25
|
*
|
|
13
26
|
* @param description
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
import { Help } from '../../help/help.types';
|
|
3
|
+
import { HeadingLevel } from '../form.types';
|
|
4
|
+
/**
|
|
5
|
+
* @param level - any value
|
|
6
|
+
* @returns whether the value is a heading level, from `1` to `6`
|
|
7
|
+
*/
|
|
8
|
+
export declare function isHeadingLevel(level: unknown): level is HeadingLevel;
|
|
9
|
+
/**
|
|
10
|
+
* The heading level that a title at the current depth in the form gets.
|
|
11
|
+
*/
|
|
12
|
+
export declare const HeadingLevelContext: React.Context<HeadingLevel>;
|
|
13
|
+
/**
|
|
14
|
+
* @param level - a heading level
|
|
15
|
+
* @returns the level of the headings one step below, down to `h6`
|
|
16
|
+
*/
|
|
17
|
+
export declare function nextHeadingLevel(level: HeadingLevel): HeadingLevel;
|
|
18
|
+
export interface HeaderProps {
|
|
19
|
+
title: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
help?: string | Partial<Help>;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The title of a field, drawn with the heading level of its depth.
|
|
25
|
+
*
|
|
26
|
+
* @param props
|
|
27
|
+
* @param props.title - the title of the field
|
|
28
|
+
* @param props.description - the description of the field, in markdown
|
|
29
|
+
* @param props.help - the help of the field
|
|
30
|
+
*/
|
|
31
|
+
export declare function Header({ title, description, help }: HeaderProps): React.ReactElement<{
|
|
32
|
+
heading: string;
|
|
33
|
+
headingLevel: HeadingLevel;
|
|
34
|
+
description: string;
|
|
35
|
+
help: string | Partial<Help>;
|
|
36
|
+
}, string | React.JSXElementConstructor<any>>;
|
|
37
|
+
export interface BelowHeadingProps {
|
|
38
|
+
hasHeading: boolean;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Gives the fields it wraps one heading level more than the level of the
|
|
42
|
+
* heading above them, if there is one.
|
|
43
|
+
*
|
|
44
|
+
* @param props
|
|
45
|
+
* @param props.hasHeading - whether the fields are below a heading
|
|
46
|
+
* @param props.children - the fields
|
|
47
|
+
*/
|
|
48
|
+
export declare function BelowHeading({ hasHeading, children, }: PropsWithChildren<BelowHeadingProps>): React.FunctionComponentElement<React.ProviderProps<HeadingLevel>>;
|
|
49
|
+
//# sourceMappingURL=heading-level.d.ts.map
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Help } from '../help/help.types';
|
|
2
|
+
import { HeadingLevel } from '../form/form.types';
|
|
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 declare class FormHeader {
|
|
24
|
+
/**
|
|
25
|
+
* The title of the section, the list or the custom component.
|
|
26
|
+
*/
|
|
27
|
+
heading?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Which of the heading elements, from `h1` to `h6`, to draw
|
|
30
|
+
* the `heading` with.
|
|
31
|
+
*/
|
|
32
|
+
headingLevel: HeadingLevel;
|
|
33
|
+
/**
|
|
34
|
+
* Text, in markdown, that describes what the `heading` is about.
|
|
35
|
+
*/
|
|
36
|
+
description?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Help to show beside the `heading`. A string is used as the `value`
|
|
39
|
+
* of the help.
|
|
40
|
+
*/
|
|
41
|
+
help?: string | Partial<Help>;
|
|
42
|
+
render(): any;
|
|
43
|
+
private renderHeading;
|
|
44
|
+
private renderHelp;
|
|
45
|
+
private renderDescription;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=form-header.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Help } from '../help/help.types';
|
|
2
|
+
/**
|
|
3
|
+
* @param help - the help of a field, from its schema
|
|
4
|
+
* @returns the properties of `limel-help` that the help sets, and no others
|
|
5
|
+
*/
|
|
6
|
+
export declare function getHelpProps(help: string | Partial<Help>): Partial<Help>;
|
|
7
|
+
//# sourceMappingURL=help-props.d.ts.map
|
|
@@ -34,7 +34,8 @@ import { FileInfo } from "./global/shared-types/file.types";
|
|
|
34
34
|
import { ResizeOptions } from "./util/image-resize";
|
|
35
35
|
import { OfficeViewer } from "./components/file-viewer/file-viewer.types";
|
|
36
36
|
import { FlexContainerAlign, FlexContainerDirection, FlexContainerJustify } from "./components/flex-container/flex-container.types";
|
|
37
|
-
import { FormError, FormSchema, ValidationError, ValidationStatus } from "./components/form/form.types";
|
|
37
|
+
import { FormError, FormSchema, HeadingLevel, ValidationError, ValidationStatus } from "./components/form/form.types";
|
|
38
|
+
import { Help } from "./components/help/help.types";
|
|
38
39
|
import { IconSize } from "./components/icon/icon.types";
|
|
39
40
|
import { InfoTileProgress } from "./components/info-tile/info-tile.types";
|
|
40
41
|
import { InputType } from "./components/input-field/input-field.types";
|
|
@@ -84,7 +85,8 @@ export { FileInfo } from "./global/shared-types/file.types";
|
|
|
84
85
|
export { ResizeOptions } from "./util/image-resize";
|
|
85
86
|
export { OfficeViewer } from "./components/file-viewer/file-viewer.types";
|
|
86
87
|
export { FlexContainerAlign, FlexContainerDirection, FlexContainerJustify } from "./components/flex-container/flex-container.types";
|
|
87
|
-
export { FormError, FormSchema, ValidationError, ValidationStatus } from "./components/form/form.types";
|
|
88
|
+
export { FormError, FormSchema, HeadingLevel, ValidationError, ValidationStatus } from "./components/form/form.types";
|
|
89
|
+
export { Help } from "./components/help/help.types";
|
|
88
90
|
export { IconSize } from "./components/icon/icon.types";
|
|
89
91
|
export { InfoTileProgress } from "./components/info-tile/info-tile.types";
|
|
90
92
|
export { InputType } from "./components/input-field/input-field.types";
|
|
@@ -1907,6 +1909,7 @@ export namespace Components {
|
|
|
1907
1909
|
* @exampleComponent limel-example-builtin-field-types-form
|
|
1908
1910
|
* @exampleComponent limel-example-code-editor-form
|
|
1909
1911
|
* @exampleComponent limel-example-form-highlighted-field
|
|
1912
|
+
* @exampleComponent limel-example-form-heading-level
|
|
1910
1913
|
*/
|
|
1911
1914
|
interface LimelForm {
|
|
1912
1915
|
/**
|
|
@@ -1918,6 +1921,11 @@ export namespace Components {
|
|
|
1918
1921
|
* Extra errors to display in the form. Typical use case is asynchronous errors generated server side.
|
|
1919
1922
|
*/
|
|
1920
1923
|
"errors": ValidationError;
|
|
1924
|
+
/**
|
|
1925
|
+
* The level, from `1` to `6`, of the topmost headings in the form. The headings of the sections inside them get one level more for each level of nesting, down to `6`. Set it so that the headings of the form fit below the headings of the page around it. For example, when the form is in a section with an `h2` heading, set it to `3`.
|
|
1926
|
+
* @default 1
|
|
1927
|
+
*/
|
|
1928
|
+
"headingLevel": HeadingLevel;
|
|
1921
1929
|
/**
|
|
1922
1930
|
* The path in the value of a field to take the user to, such as `['heroes', 2, 'name']`. When it changes, the form opens the sections and list items the field is in, scrolls it into view, focuses it and briefly highlights it. If the path goes further than the form can show, such as into a custom component, the closest field above the end of the path is shown. To show the same field again, set it to `undefined` first.
|
|
1923
1931
|
* @beta
|
|
@@ -1946,6 +1954,42 @@ export namespace Components {
|
|
|
1946
1954
|
*/
|
|
1947
1955
|
"value": object;
|
|
1948
1956
|
}
|
|
1957
|
+
/**
|
|
1958
|
+
* This is an internal and private component that `limel-form` uses to
|
|
1959
|
+
* draw the heading of a section, a list or a custom component, together
|
|
1960
|
+
* with its description and its help.
|
|
1961
|
+
* Consumers of `limel-form` do not use it. They set the `title`,
|
|
1962
|
+
* the `description` and `lime.help` in the schema, and the form draws
|
|
1963
|
+
* this component with the right heading level.
|
|
1964
|
+
* :::note
|
|
1965
|
+
* The component has `shadow: false`, so that the heading, the description
|
|
1966
|
+
* and the help are part of the DOM of `limel-form`. This way, the styles
|
|
1967
|
+
* of the form that depend on how deep a field is reach them directly.
|
|
1968
|
+
* :::
|
|
1969
|
+
* @exampleComponent limel-example-form-header-basic
|
|
1970
|
+
* @exampleComponent limel-example-form-header-heading-level
|
|
1971
|
+
* @exampleComponent limel-example-form-header-help
|
|
1972
|
+
* @private
|
|
1973
|
+
*/
|
|
1974
|
+
interface LimelFormHeader {
|
|
1975
|
+
/**
|
|
1976
|
+
* Text, in markdown, that describes what the `heading` is about.
|
|
1977
|
+
*/
|
|
1978
|
+
"description"?: string;
|
|
1979
|
+
/**
|
|
1980
|
+
* The title of the section, the list or the custom component.
|
|
1981
|
+
*/
|
|
1982
|
+
"heading"?: string;
|
|
1983
|
+
/**
|
|
1984
|
+
* Which of the heading elements, from `h1` to `h6`, to draw the `heading` with.
|
|
1985
|
+
* @default 1
|
|
1986
|
+
*/
|
|
1987
|
+
"headingLevel": HeadingLevel;
|
|
1988
|
+
/**
|
|
1989
|
+
* Help to show beside the `heading`. A string is used as the `value` of the help.
|
|
1990
|
+
*/
|
|
1991
|
+
"help"?: string | Partial<Help>;
|
|
1992
|
+
}
|
|
1949
1993
|
/**
|
|
1950
1994
|
* This component is deprecated and will be removed in a future version of
|
|
1951
1995
|
* Lime Elements. Please use CSS for your flexible container needs 🙂
|
|
@@ -5697,6 +5741,7 @@ declare global {
|
|
|
5697
5741
|
* @exampleComponent limel-example-builtin-field-types-form
|
|
5698
5742
|
* @exampleComponent limel-example-code-editor-form
|
|
5699
5743
|
* @exampleComponent limel-example-form-highlighted-field
|
|
5744
|
+
* @exampleComponent limel-example-form-heading-level
|
|
5700
5745
|
*/
|
|
5701
5746
|
interface HTMLLimelFormElement extends Components.LimelForm, HTMLStencilElement {
|
|
5702
5747
|
addEventListener<K extends keyof HTMLLimelFormElementEventMap>(type: K, listener: (this: HTMLLimelFormElement, ev: LimelFormCustomEvent<HTMLLimelFormElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -5712,6 +5757,29 @@ declare global {
|
|
|
5712
5757
|
prototype: HTMLLimelFormElement;
|
|
5713
5758
|
new (): HTMLLimelFormElement;
|
|
5714
5759
|
};
|
|
5760
|
+
/**
|
|
5761
|
+
* This is an internal and private component that `limel-form` uses to
|
|
5762
|
+
* draw the heading of a section, a list or a custom component, together
|
|
5763
|
+
* with its description and its help.
|
|
5764
|
+
* Consumers of `limel-form` do not use it. They set the `title`,
|
|
5765
|
+
* the `description` and `lime.help` in the schema, and the form draws
|
|
5766
|
+
* this component with the right heading level.
|
|
5767
|
+
* :::note
|
|
5768
|
+
* The component has `shadow: false`, so that the heading, the description
|
|
5769
|
+
* and the help are part of the DOM of `limel-form`. This way, the styles
|
|
5770
|
+
* of the form that depend on how deep a field is reach them directly.
|
|
5771
|
+
* :::
|
|
5772
|
+
* @exampleComponent limel-example-form-header-basic
|
|
5773
|
+
* @exampleComponent limel-example-form-header-heading-level
|
|
5774
|
+
* @exampleComponent limel-example-form-header-help
|
|
5775
|
+
* @private
|
|
5776
|
+
*/
|
|
5777
|
+
interface HTMLLimelFormHeaderElement extends Components.LimelFormHeader, HTMLStencilElement {
|
|
5778
|
+
}
|
|
5779
|
+
var HTMLLimelFormHeaderElement: {
|
|
5780
|
+
prototype: HTMLLimelFormHeaderElement;
|
|
5781
|
+
new (): HTMLLimelFormHeaderElement;
|
|
5782
|
+
};
|
|
5715
5783
|
/**
|
|
5716
5784
|
* This component is deprecated and will be removed in a future version of
|
|
5717
5785
|
* Lime Elements. Please use CSS for your flexible container needs 🙂
|
|
@@ -7172,6 +7240,7 @@ declare global {
|
|
|
7172
7240
|
"limel-flatpickr-adapter": HTMLLimelFlatpickrAdapterElement;
|
|
7173
7241
|
"limel-flex-container": HTMLLimelFlexContainerElement;
|
|
7174
7242
|
"limel-form": HTMLLimelFormElement;
|
|
7243
|
+
"limel-form-header": HTMLLimelFormHeaderElement;
|
|
7175
7244
|
"limel-grid": HTMLLimelGridElement;
|
|
7176
7245
|
"limel-header": HTMLLimelHeaderElement;
|
|
7177
7246
|
"limel-help": HTMLLimelHelpElement;
|
|
@@ -9159,6 +9228,7 @@ declare namespace LocalJSX {
|
|
|
9159
9228
|
* @exampleComponent limel-example-builtin-field-types-form
|
|
9160
9229
|
* @exampleComponent limel-example-code-editor-form
|
|
9161
9230
|
* @exampleComponent limel-example-form-highlighted-field
|
|
9231
|
+
* @exampleComponent limel-example-form-heading-level
|
|
9162
9232
|
*/
|
|
9163
9233
|
interface LimelForm {
|
|
9164
9234
|
/**
|
|
@@ -9170,6 +9240,11 @@ declare namespace LocalJSX {
|
|
|
9170
9240
|
* Extra errors to display in the form. Typical use case is asynchronous errors generated server side.
|
|
9171
9241
|
*/
|
|
9172
9242
|
"errors"?: ValidationError;
|
|
9243
|
+
/**
|
|
9244
|
+
* The level, from `1` to `6`, of the topmost headings in the form. The headings of the sections inside them get one level more for each level of nesting, down to `6`. Set it so that the headings of the form fit below the headings of the page around it. For example, when the form is in a section with an `h2` heading, set it to `3`.
|
|
9245
|
+
* @default 1
|
|
9246
|
+
*/
|
|
9247
|
+
"headingLevel"?: HeadingLevel;
|
|
9173
9248
|
/**
|
|
9174
9249
|
* The path in the value of a field to take the user to, such as `['heroes', 2, 'name']`. When it changes, the form opens the sections and list items the field is in, scrolls it into view, focuses it and briefly highlights it. If the path goes further than the form can show, such as into a custom component, the closest field above the end of the path is shown. To show the same field again, set it to `undefined` first.
|
|
9175
9250
|
* @beta
|
|
@@ -9206,6 +9281,42 @@ declare namespace LocalJSX {
|
|
|
9206
9281
|
*/
|
|
9207
9282
|
"value"?: object;
|
|
9208
9283
|
}
|
|
9284
|
+
/**
|
|
9285
|
+
* This is an internal and private component that `limel-form` uses to
|
|
9286
|
+
* draw the heading of a section, a list or a custom component, together
|
|
9287
|
+
* with its description and its help.
|
|
9288
|
+
* Consumers of `limel-form` do not use it. They set the `title`,
|
|
9289
|
+
* the `description` and `lime.help` in the schema, and the form draws
|
|
9290
|
+
* this component with the right heading level.
|
|
9291
|
+
* :::note
|
|
9292
|
+
* The component has `shadow: false`, so that the heading, the description
|
|
9293
|
+
* and the help are part of the DOM of `limel-form`. This way, the styles
|
|
9294
|
+
* of the form that depend on how deep a field is reach them directly.
|
|
9295
|
+
* :::
|
|
9296
|
+
* @exampleComponent limel-example-form-header-basic
|
|
9297
|
+
* @exampleComponent limel-example-form-header-heading-level
|
|
9298
|
+
* @exampleComponent limel-example-form-header-help
|
|
9299
|
+
* @private
|
|
9300
|
+
*/
|
|
9301
|
+
interface LimelFormHeader {
|
|
9302
|
+
/**
|
|
9303
|
+
* Text, in markdown, that describes what the `heading` is about.
|
|
9304
|
+
*/
|
|
9305
|
+
"description"?: string;
|
|
9306
|
+
/**
|
|
9307
|
+
* The title of the section, the list or the custom component.
|
|
9308
|
+
*/
|
|
9309
|
+
"heading"?: string;
|
|
9310
|
+
/**
|
|
9311
|
+
* Which of the heading elements, from `h1` to `h6`, to draw the `heading` with.
|
|
9312
|
+
* @default 1
|
|
9313
|
+
*/
|
|
9314
|
+
"headingLevel"?: HeadingLevel;
|
|
9315
|
+
/**
|
|
9316
|
+
* Help to show beside the `heading`. A string is used as the `value` of the help.
|
|
9317
|
+
*/
|
|
9318
|
+
"help"?: string | Partial<Help>;
|
|
9319
|
+
}
|
|
9209
9320
|
/**
|
|
9210
9321
|
* This component is deprecated and will be removed in a future version of
|
|
9211
9322
|
* Lime Elements. Please use CSS for your flexible container needs 🙂
|
|
@@ -12130,8 +12241,15 @@ declare namespace LocalJSX {
|
|
|
12130
12241
|
}
|
|
12131
12242
|
interface LimelFormAttributes {
|
|
12132
12243
|
"disabled": boolean;
|
|
12244
|
+
"headingLevel": HeadingLevel;
|
|
12133
12245
|
"revealErrors": boolean;
|
|
12134
12246
|
}
|
|
12247
|
+
interface LimelFormHeaderAttributes {
|
|
12248
|
+
"heading": string;
|
|
12249
|
+
"headingLevel": HeadingLevel;
|
|
12250
|
+
"description": string;
|
|
12251
|
+
"help": string | Partial<Help>;
|
|
12252
|
+
}
|
|
12135
12253
|
interface LimelHeaderAttributes {
|
|
12136
12254
|
"icon": IconName | Icon;
|
|
12137
12255
|
"heading": string;
|
|
@@ -12536,6 +12654,7 @@ declare namespace LocalJSX {
|
|
|
12536
12654
|
"limel-flatpickr-adapter": Omit<LimelFlatpickrAdapter, keyof LimelFlatpickrAdapterAttributes> & { [K in keyof LimelFlatpickrAdapter & keyof LimelFlatpickrAdapterAttributes]?: LimelFlatpickrAdapter[K] } & { [K in keyof LimelFlatpickrAdapter & keyof LimelFlatpickrAdapterAttributes as `attr:${K}`]?: LimelFlatpickrAdapterAttributes[K] } & { [K in keyof LimelFlatpickrAdapter & keyof LimelFlatpickrAdapterAttributes as `prop:${K}`]?: LimelFlatpickrAdapter[K] };
|
|
12537
12655
|
"limel-flex-container": Omit<LimelFlexContainer, keyof LimelFlexContainerAttributes> & { [K in keyof LimelFlexContainer & keyof LimelFlexContainerAttributes]?: LimelFlexContainer[K] } & { [K in keyof LimelFlexContainer & keyof LimelFlexContainerAttributes as `attr:${K}`]?: LimelFlexContainerAttributes[K] } & { [K in keyof LimelFlexContainer & keyof LimelFlexContainerAttributes as `prop:${K}`]?: LimelFlexContainer[K] };
|
|
12538
12656
|
"limel-form": Omit<LimelForm, keyof LimelFormAttributes> & { [K in keyof LimelForm & keyof LimelFormAttributes]?: LimelForm[K] } & { [K in keyof LimelForm & keyof LimelFormAttributes as `attr:${K}`]?: LimelFormAttributes[K] } & { [K in keyof LimelForm & keyof LimelFormAttributes as `prop:${K}`]?: LimelForm[K] };
|
|
12657
|
+
"limel-form-header": Omit<LimelFormHeader, keyof LimelFormHeaderAttributes> & { [K in keyof LimelFormHeader & keyof LimelFormHeaderAttributes]?: LimelFormHeader[K] } & { [K in keyof LimelFormHeader & keyof LimelFormHeaderAttributes as `attr:${K}`]?: LimelFormHeaderAttributes[K] } & { [K in keyof LimelFormHeader & keyof LimelFormHeaderAttributes as `prop:${K}`]?: LimelFormHeader[K] };
|
|
12539
12658
|
"limel-grid": LimelGrid;
|
|
12540
12659
|
"limel-header": Omit<LimelHeader, keyof LimelHeaderAttributes> & { [K in keyof LimelHeader & keyof LimelHeaderAttributes]?: LimelHeader[K] } & { [K in keyof LimelHeader & keyof LimelHeaderAttributes as `attr:${K}`]?: LimelHeaderAttributes[K] } & { [K in keyof LimelHeader & keyof LimelHeaderAttributes as `prop:${K}`]?: LimelHeader[K] };
|
|
12541
12660
|
"limel-help": Omit<LimelHelp, keyof LimelHelpAttributes> & { [K in keyof LimelHelp & keyof LimelHelpAttributes]?: LimelHelp[K] } & { [K in keyof LimelHelp & keyof LimelHelpAttributes as `attr:${K}`]?: LimelHelpAttributes[K] } & { [K in keyof LimelHelp & keyof LimelHelpAttributes as `prop:${K}`]?: LimelHelp[K] };
|
|
@@ -13239,8 +13358,27 @@ declare module "@stencil/core" {
|
|
|
13239
13358
|
* @exampleComponent limel-example-builtin-field-types-form
|
|
13240
13359
|
* @exampleComponent limel-example-code-editor-form
|
|
13241
13360
|
* @exampleComponent limel-example-form-highlighted-field
|
|
13361
|
+
* @exampleComponent limel-example-form-heading-level
|
|
13242
13362
|
*/
|
|
13243
13363
|
"limel-form": LocalJSX.IntrinsicElements["limel-form"] & JSXBase.HTMLAttributes<HTMLLimelFormElement>;
|
|
13364
|
+
/**
|
|
13365
|
+
* This is an internal and private component that `limel-form` uses to
|
|
13366
|
+
* draw the heading of a section, a list or a custom component, together
|
|
13367
|
+
* with its description and its help.
|
|
13368
|
+
* Consumers of `limel-form` do not use it. They set the `title`,
|
|
13369
|
+
* the `description` and `lime.help` in the schema, and the form draws
|
|
13370
|
+
* this component with the right heading level.
|
|
13371
|
+
* :::note
|
|
13372
|
+
* The component has `shadow: false`, so that the heading, the description
|
|
13373
|
+
* and the help are part of the DOM of `limel-form`. This way, the styles
|
|
13374
|
+
* of the form that depend on how deep a field is reach them directly.
|
|
13375
|
+
* :::
|
|
13376
|
+
* @exampleComponent limel-example-form-header-basic
|
|
13377
|
+
* @exampleComponent limel-example-form-header-heading-level
|
|
13378
|
+
* @exampleComponent limel-example-form-header-help
|
|
13379
|
+
* @private
|
|
13380
|
+
*/
|
|
13381
|
+
"limel-form-header": LocalJSX.IntrinsicElements["limel-form-header"] & JSXBase.HTMLAttributes<HTMLLimelFormHeaderElement>;
|
|
13244
13382
|
/**
|
|
13245
13383
|
* This component is deprecated and will be removed in a future version of
|
|
13246
13384
|
* Lime Elements. Please use CSS for your flexible container needs 🙂
|
|
@@ -19,7 +19,7 @@ export * from './components/flex-container/flex-container.types';
|
|
|
19
19
|
export * from './global/shared-types/custom-element.types';
|
|
20
20
|
export * from './global/config';
|
|
21
21
|
export * from './global/shared-types/link.types';
|
|
22
|
-
export { EventEmitter, ValidationStatus, FormError, ValidationError, FormComponent, FormInfo, FormSchema, LimeSchemaOptions, LimeLayoutOptions, FormComponentOptions, FormLayoutOptions, GridLayoutOptions, RowLayoutOptions, FormLayoutType, ReplaceObjectType, FormSchemaArrayItem, FormSubKeySchema, } from './components/form/form.types';
|
|
22
|
+
export { EventEmitter, ValidationStatus, FormError, ValidationError, FormComponent, FormInfo, FormSchema, HeadingLevel, LimeSchemaOptions, LimeLayoutOptions, FormComponentOptions, FormLayoutOptions, GridLayoutOptions, RowLayoutOptions, FormLayoutType, ReplaceObjectType, FormSchemaArrayItem, FormSubKeySchema, } from './components/form/form.types';
|
|
23
23
|
export * from './components/help/help.types';
|
|
24
24
|
export * from './components/icon/icon.types';
|
|
25
25
|
export * from './components/info-tile/info-tile.types';
|