@limetech/lime-elements 40.14.5 → 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 +19 -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 +40 -2
- package/dist/cjs/limel-color-picker-palette.cjs.entry.js +2 -2
- package/dist/cjs/limel-color-picker.cjs.entry.js +1 -1
- package/dist/cjs/limel-dialog.cjs.entry.js +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 +15 -12
- 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 +196 -126
- 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 +62 -2
- 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 +40 -2
- package/dist/esm/limel-color-picker-palette.entry.js +2 -2
- package/dist/esm/limel-color-picker.entry.js +1 -1
- package/dist/esm/limel-dialog.entry.js +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 +15 -12
- 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 +191 -121
- 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-1d13245d.entry.js +1 -0
- 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/collapsible-section/collapsible-section.d.ts +14 -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 +155 -2
- package/dist/types/interface.d.ts +1 -1
- package/package.json +3 -3
- 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-01de145c.entry.js +0 -1
- package/dist/lime-elements/p-09f8f883.entry.js +0 -1
- package/dist/lime-elements/p-41fb6e88.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-7829198d.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-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
|
@@ -16,7 +16,7 @@ export class Spinner {
|
|
|
16
16
|
this.limeBranded = false;
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: 'e6dd8f47c04e8839ac03e8889d99c82ee916eb00' }, h("svg", { key: 'd2281d0ecb477e7c8d6919f473e44fd15d1252c2', viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, this.renderSpinner())));
|
|
20
20
|
}
|
|
21
21
|
renderSpinner() {
|
|
22
22
|
if (!this.limeBranded) {
|
|
@@ -55,9 +55,9 @@ export class SplitButton {
|
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
|
-
return (h(Host, { key: '
|
|
58
|
+
return (h(Host, { key: '18de8e93a8ff6756ad149bde1ea84ce90ce0036b', class: {
|
|
59
59
|
'has-menu': this.items.length > 0,
|
|
60
|
-
}, onClick: this.filterClickWhenDisabled }, h("limel-button", { key: '
|
|
60
|
+
}, onClick: this.filterClickWhenDisabled }, h("limel-button", { key: 'a2c1bc26acc989c8e0fa62ce31d644dab9ab9ee2', label: this.label, primary: this.primary, icon: this.icon, disabled: this.disabled, loading: this.loading, loadingFailed: this.loadingFailed }), this.renderMenu()));
|
|
61
61
|
}
|
|
62
62
|
static get is() { return "limel-split-button"; }
|
|
63
63
|
static get encapsulation() { return "shadow"; }
|
|
@@ -79,7 +79,7 @@ export class Switch {
|
|
|
79
79
|
removeEnterClickable(this.host);
|
|
80
80
|
}
|
|
81
81
|
render() {
|
|
82
|
-
return (h(Host, { key: '
|
|
82
|
+
return (h(Host, { key: 'f587a415d29965c927cca8900bc06e4168eb2113' }, this.readonly
|
|
83
83
|
? this.renderReadonly()
|
|
84
84
|
: this.renderInteractive(), this.renderHelperLine()));
|
|
85
85
|
}
|
|
@@ -101,7 +101,7 @@ export class TabBar {
|
|
|
101
101
|
}
|
|
102
102
|
render() {
|
|
103
103
|
const tabStop = findTabStop(this.tabs, this.tabs.findIndex((tab) => tab.active), this.getNavigationOptions());
|
|
104
|
-
return (h("div", { key: '
|
|
104
|
+
return (h("div", { key: 'd5f54de83640eb4898a58cd71696085e28f3701a', role: "tablist", "aria-orientation": this.getOrientation(), onKeyDown: this.handleKeyDown }, h("limel-scroller", { key: '565bbbcdf070a6b2521064a84347028baaae273e', orientation: this.getOrientation() }, this.tabs.map((tab, index) => this.renderTabOrMovableTab(tab, index, index === tabStop)))));
|
|
105
105
|
}
|
|
106
106
|
tabsChanged(newTabs = [], oldTabs = []) {
|
|
107
107
|
const newIds = newTabs.map((tab) => tab.id);
|
|
@@ -75,7 +75,7 @@ export class TabPanel {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
render() {
|
|
78
|
-
return (h(Host, { key: '
|
|
78
|
+
return (h(Host, { key: 'eb146868d93cc4bd4f42cc360005e25e44dd7ad3', onChangeTab: this.handleChangeTabs }, h("div", { key: 'b6453044e1cd4ecf20351bf3b6ebe72debc6c0d5', class: "tab-panel" }, h("limel-tab-bar", { key: '0a12ede1dc3f43c029a959af75afcb67ff853612', tabs: this.tabs, orientation: this.orientation, allowTabReorder: this.allowTabReorder }), h("div", { key: '19b1b3f077a6e9a01a4327f595e4bf8c82a06261', class: "tab-content" }, h("slot", { key: 'b1e30dd491a4a5629a55ec11220f968cf9f1f2c8' })))));
|
|
79
79
|
}
|
|
80
80
|
setSlotElements() {
|
|
81
81
|
const slot = this.getSlot();
|
|
@@ -757,13 +757,13 @@ export class Table {
|
|
|
757
757
|
render() {
|
|
758
758
|
var _a, _b;
|
|
759
759
|
const totalRows = (_a = this.totalRows) !== null && _a !== void 0 ? _a : this.data.length;
|
|
760
|
-
return (h(Host, { key: '
|
|
760
|
+
return (h(Host, { key: '0191a4fb265a4eda818fe9478f253cc0210e3e3a', class: {
|
|
761
761
|
'has-low-density': this.layout === 'lowDensity',
|
|
762
762
|
'has-pagination-on-top': this.paginationLocation === 'top',
|
|
763
763
|
'has-aggregation': this.hasAggregation(this.columns),
|
|
764
764
|
'has-pagination': totalRows > this.pageSize,
|
|
765
765
|
'has-selection': (_b = this.tableSelection) === null || _b === void 0 ? void 0 : _b.hasSelection,
|
|
766
|
-
} }, h("div", { key: '
|
|
766
|
+
} }, h("div", { key: 'c0d266d3f273b437b0aa7d6fa83cb7ebe93b1963', id: "tabulator-container" }, h("div", { key: '836bbd66c7a99bacc2a961e51b6b05af5963cb8d', id: "tabulator-loader", style: { display: this.loading ? 'flex' : 'none' } }, h("limel-spinner", { key: 'b62f403ffb83b30e568b7da64b5ad45cb369b6de', size: "large" })), this.renderEmptyMessage(), this.renderSelectAll(), h("div", { key: '3c9f054e2c7b1a4f18115abf771b07ff729258cf', id: "tabulator-table" }))));
|
|
767
767
|
}
|
|
768
768
|
renderSelectAll() {
|
|
769
769
|
var _a, _b, _c;
|
|
@@ -107,9 +107,9 @@ export class TextEditorLinkMenu {
|
|
|
107
107
|
var _a, _b;
|
|
108
108
|
const isValid = this.isValid(this.link.href);
|
|
109
109
|
return [
|
|
110
|
-
h("limel-input-field", { key: '
|
|
111
|
-
h("limel-input-field", { key: '
|
|
112
|
-
h("div", { key: '
|
|
110
|
+
h("limel-input-field", { key: 'f9676b8287c3d6d366b668f56f701b0f4a61edb9', label: this.getTranslation('editor-link-menu.text'), value: ((_a = this.link) === null || _a === void 0 ? void 0 : _a.text) || '', leadingIcon: "text_cursor", onChange: this.handleLinkTitleChange, onKeyDown: this.handleKeyDown }),
|
|
111
|
+
h("limel-input-field", { key: '4471ed4849ecf1536e1d230c3a9821f8254ecf7e', label: this.getTranslation('editor-link-menu.link'), value: ((_b = this.link) === null || _b === void 0 ? void 0 : _b.href) || '', type: "text", leadingIcon: "-lime-text-link", trailingIcon: "external_link", invalid: !isValid, onChange: this.handleLinkValueChange, onAction: this.handleLinkInputAction, onKeyDown: this.handleKeyDown, ref: (el) => (this.linkInput = el) }),
|
|
112
|
+
h("div", { key: 'fd05d27fce1f463979847fbc16fd9aac8a9fb17a', class: "actions" }, h("limel-button", { key: '9bd0d2e1b0d9a37094872652efad8b5f9e0ace15', label: this.getTranslation('cancel'), onClick: this.handleCancel }), h("limel-button", { key: 'a9aab48e7fe4cf0811e5b9044c9804a0cac73765', primary: true, label: this.getTranslation('save'), disabled: !isValid, onClick: this.handleSave, ref: (el) => (this.saveButton = el), slot: "button" })),
|
|
113
113
|
];
|
|
114
114
|
}
|
|
115
115
|
static get is() { return "limel-text-editor-link-menu"; }
|
|
@@ -332,7 +332,7 @@ export class ProsemirrorAdapter {
|
|
|
332
332
|
(_e = this.view) === null || _e === void 0 ? void 0 : _e.destroy();
|
|
333
333
|
}
|
|
334
334
|
render() {
|
|
335
|
-
return (h(Host, { key: '
|
|
335
|
+
return (h(Host, { key: 'f5d3b059f54cdb32f9499b9063e4b3c732490f0e', onFocus: this.handleFocus }, h("div", { key: '81aa602b9cf3575da987261e60629e008c03269c', id: "editor" }), this.renderToolbar(), this.renderLinkMenu()));
|
|
336
336
|
}
|
|
337
337
|
renderToolbar() {
|
|
338
338
|
if (this.actionBarItems.length === 0 || this.ui === 'no-toolbar') {
|
|
@@ -174,7 +174,7 @@ export class TextEditor {
|
|
|
174
174
|
await ((_a = this.adapterElement) === null || _a === void 0 ? void 0 : _a.clear());
|
|
175
175
|
}
|
|
176
176
|
render() {
|
|
177
|
-
return (h(Host, { key: '
|
|
177
|
+
return (h(Host, { key: 'c67e770630e0b704d0f00e76c59f4c6cf12c4cd9' }, h("limel-notched-outline", { key: 'c4c58e24b9dd09cccf433d2f3227994dbdadf5e4', label: this.label, required: this.required, invalid: this.invalid, disabled: this.disabled, readonly: this.readonly, hasValue: !!this.value, hasFloatingLabel: true }, this.renderEditor(), this.renderPlaceholder()), this.renderHelperLine()));
|
|
178
178
|
}
|
|
179
179
|
renderEditor() {
|
|
180
180
|
if (this.readonly) {
|
|
@@ -15,7 +15,7 @@ export class TooltipContent {
|
|
|
15
15
|
const style = this.maxlength
|
|
16
16
|
? { '--tooltip-max-width-of-text': `${this.maxlength}ch` }
|
|
17
17
|
: undefined;
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: 'f9735b1c49a51e6945014d8a5a23a3e284b53ace', class: { 'has-column-layout': isLabelsTextLong }, style: style }, h("div", { key: '12ed325f94deb0788c72e8ce643adce1127af675', class: "label" }, this.label), this.renderHelperLabel(), this.renderHotkey()));
|
|
19
19
|
}
|
|
20
20
|
renderHelperLabel() {
|
|
21
21
|
if (!this.helperLabel) {
|
|
@@ -76,10 +76,10 @@ export class Tooltip {
|
|
|
76
76
|
}
|
|
77
77
|
render() {
|
|
78
78
|
const tooltipZIndex = getComputedStyle(this.host).getPropertyValue('--tooltip-z-index');
|
|
79
|
-
return (h("div", { key: '
|
|
79
|
+
return (h("div", { key: 'd3fb680f623403a5951303e4d104c07fc7a21d4e', class: "trigger-anchor" }, h("limel-portal", { key: '4050fdb323fce7e7f9953ce76c70e98e92a73eac', openDirection: this.openDirection, visible: this.open, containerId: this.portalId, containerStyle: {
|
|
80
80
|
'z-index': tooltipZIndex,
|
|
81
81
|
'pointer-events': 'none',
|
|
82
|
-
}, anchor: this.ownerElement }, h("limel-tooltip-content", { key: '
|
|
82
|
+
}, anchor: this.ownerElement }, h("limel-tooltip-content", { key: '53ca0371e38f9dcb7ea1382fd20e892d4e0e4b72', label: this.label, helperLabel: this.helperLabel, hotkey: this.hotkey, maxlength: this.maxlength, role: "tooltip", "aria-hidden": !this.open }))));
|
|
83
83
|
}
|
|
84
84
|
async updateDescription() {
|
|
85
85
|
if (!this.ownerElement) {
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { b as baseGetTag, r as root } from './isObject-BJQylLSL.js';
|
|
2
|
+
import { i as isObjectLike } from './isObjectLike-oiMYqRQ0.js';
|
|
3
|
+
import { g as getNative } from './_getNative-COawFdVX.js';
|
|
4
|
+
|
|
5
|
+
/** `Object#toString` result references. */
|
|
6
|
+
var argsTag = '[object Arguments]';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The base implementation of `_.isArguments`.
|
|
10
|
+
*
|
|
11
|
+
* @private
|
|
12
|
+
* @param {*} value The value to check.
|
|
13
|
+
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
14
|
+
*/
|
|
15
|
+
function baseIsArguments(value) {
|
|
16
|
+
return isObjectLike(value) && baseGetTag(value) == argsTag;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** Used for built-in method references. */
|
|
20
|
+
var objectProto = Object.prototype;
|
|
21
|
+
|
|
22
|
+
/** Used to check objects for own properties. */
|
|
23
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
24
|
+
|
|
25
|
+
/** Built-in value references. */
|
|
26
|
+
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Checks if `value` is likely an `arguments` object.
|
|
30
|
+
*
|
|
31
|
+
* @static
|
|
32
|
+
* @memberOf _
|
|
33
|
+
* @since 0.1.0
|
|
34
|
+
* @category Lang
|
|
35
|
+
* @param {*} value The value to check.
|
|
36
|
+
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
37
|
+
* else `false`.
|
|
38
|
+
* @example
|
|
39
|
+
*
|
|
40
|
+
* _.isArguments(function() { return arguments; }());
|
|
41
|
+
* // => true
|
|
42
|
+
*
|
|
43
|
+
* _.isArguments([1, 2, 3]);
|
|
44
|
+
* // => false
|
|
45
|
+
*/
|
|
46
|
+
var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
|
|
47
|
+
return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
|
|
48
|
+
!propertyIsEnumerable.call(value, 'callee');
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/* Built-in method references that are verified to be native. */
|
|
52
|
+
var Map = getNative(root, 'Map');
|
|
53
|
+
|
|
54
|
+
export { Map as M, isArguments as i };
|
|
@@ -0,0 +1,416 @@
|
|
|
1
|
+
import { g as getNative } from './_getNative-COawFdVX.js';
|
|
2
|
+
import { e as eq } from './eq-CZ30nDJE.js';
|
|
3
|
+
import { M as Map } from './_Map-LWJCQc-c.js';
|
|
4
|
+
|
|
5
|
+
/* Built-in method references that are verified to be native. */
|
|
6
|
+
var nativeCreate = getNative(Object, 'create');
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Removes all key-value entries from the hash.
|
|
10
|
+
*
|
|
11
|
+
* @private
|
|
12
|
+
* @name clear
|
|
13
|
+
* @memberOf Hash
|
|
14
|
+
*/
|
|
15
|
+
function hashClear() {
|
|
16
|
+
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
17
|
+
this.size = 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Removes `key` and its value from the hash.
|
|
22
|
+
*
|
|
23
|
+
* @private
|
|
24
|
+
* @name delete
|
|
25
|
+
* @memberOf Hash
|
|
26
|
+
* @param {Object} hash The hash to modify.
|
|
27
|
+
* @param {string} key The key of the value to remove.
|
|
28
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
29
|
+
*/
|
|
30
|
+
function hashDelete(key) {
|
|
31
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
32
|
+
this.size -= result ? 1 : 0;
|
|
33
|
+
return result;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
37
|
+
var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
|
|
38
|
+
|
|
39
|
+
/** Used for built-in method references. */
|
|
40
|
+
var objectProto$1 = Object.prototype;
|
|
41
|
+
|
|
42
|
+
/** Used to check objects for own properties. */
|
|
43
|
+
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Gets the hash value for `key`.
|
|
47
|
+
*
|
|
48
|
+
* @private
|
|
49
|
+
* @name get
|
|
50
|
+
* @memberOf Hash
|
|
51
|
+
* @param {string} key The key of the value to get.
|
|
52
|
+
* @returns {*} Returns the entry value.
|
|
53
|
+
*/
|
|
54
|
+
function hashGet(key) {
|
|
55
|
+
var data = this.__data__;
|
|
56
|
+
if (nativeCreate) {
|
|
57
|
+
var result = data[key];
|
|
58
|
+
return result === HASH_UNDEFINED$1 ? undefined : result;
|
|
59
|
+
}
|
|
60
|
+
return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** Used for built-in method references. */
|
|
64
|
+
var objectProto = Object.prototype;
|
|
65
|
+
|
|
66
|
+
/** Used to check objects for own properties. */
|
|
67
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Checks if a hash value for `key` exists.
|
|
71
|
+
*
|
|
72
|
+
* @private
|
|
73
|
+
* @name has
|
|
74
|
+
* @memberOf Hash
|
|
75
|
+
* @param {string} key The key of the entry to check.
|
|
76
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
77
|
+
*/
|
|
78
|
+
function hashHas(key) {
|
|
79
|
+
var data = this.__data__;
|
|
80
|
+
return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
84
|
+
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Sets the hash `key` to `value`.
|
|
88
|
+
*
|
|
89
|
+
* @private
|
|
90
|
+
* @name set
|
|
91
|
+
* @memberOf Hash
|
|
92
|
+
* @param {string} key The key of the value to set.
|
|
93
|
+
* @param {*} value The value to set.
|
|
94
|
+
* @returns {Object} Returns the hash instance.
|
|
95
|
+
*/
|
|
96
|
+
function hashSet(key, value) {
|
|
97
|
+
var data = this.__data__;
|
|
98
|
+
this.size += this.has(key) ? 0 : 1;
|
|
99
|
+
data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
|
|
100
|
+
return this;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Creates a hash object.
|
|
105
|
+
*
|
|
106
|
+
* @private
|
|
107
|
+
* @constructor
|
|
108
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
109
|
+
*/
|
|
110
|
+
function Hash(entries) {
|
|
111
|
+
var index = -1,
|
|
112
|
+
length = entries == null ? 0 : entries.length;
|
|
113
|
+
|
|
114
|
+
this.clear();
|
|
115
|
+
while (++index < length) {
|
|
116
|
+
var entry = entries[index];
|
|
117
|
+
this.set(entry[0], entry[1]);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// Add methods to `Hash`.
|
|
122
|
+
Hash.prototype.clear = hashClear;
|
|
123
|
+
Hash.prototype['delete'] = hashDelete;
|
|
124
|
+
Hash.prototype.get = hashGet;
|
|
125
|
+
Hash.prototype.has = hashHas;
|
|
126
|
+
Hash.prototype.set = hashSet;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Removes all key-value entries from the list cache.
|
|
130
|
+
*
|
|
131
|
+
* @private
|
|
132
|
+
* @name clear
|
|
133
|
+
* @memberOf ListCache
|
|
134
|
+
*/
|
|
135
|
+
function listCacheClear() {
|
|
136
|
+
this.__data__ = [];
|
|
137
|
+
this.size = 0;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
142
|
+
*
|
|
143
|
+
* @private
|
|
144
|
+
* @param {Array} array The array to inspect.
|
|
145
|
+
* @param {*} key The key to search for.
|
|
146
|
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
147
|
+
*/
|
|
148
|
+
function assocIndexOf(array, key) {
|
|
149
|
+
var length = array.length;
|
|
150
|
+
while (length--) {
|
|
151
|
+
if (eq(array[length][0], key)) {
|
|
152
|
+
return length;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
return -1;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/** Used for built-in method references. */
|
|
159
|
+
var arrayProto = Array.prototype;
|
|
160
|
+
|
|
161
|
+
/** Built-in value references. */
|
|
162
|
+
var splice = arrayProto.splice;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Removes `key` and its value from the list cache.
|
|
166
|
+
*
|
|
167
|
+
* @private
|
|
168
|
+
* @name delete
|
|
169
|
+
* @memberOf ListCache
|
|
170
|
+
* @param {string} key The key of the value to remove.
|
|
171
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
172
|
+
*/
|
|
173
|
+
function listCacheDelete(key) {
|
|
174
|
+
var data = this.__data__,
|
|
175
|
+
index = assocIndexOf(data, key);
|
|
176
|
+
|
|
177
|
+
if (index < 0) {
|
|
178
|
+
return false;
|
|
179
|
+
}
|
|
180
|
+
var lastIndex = data.length - 1;
|
|
181
|
+
if (index == lastIndex) {
|
|
182
|
+
data.pop();
|
|
183
|
+
} else {
|
|
184
|
+
splice.call(data, index, 1);
|
|
185
|
+
}
|
|
186
|
+
--this.size;
|
|
187
|
+
return true;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Gets the list cache value for `key`.
|
|
192
|
+
*
|
|
193
|
+
* @private
|
|
194
|
+
* @name get
|
|
195
|
+
* @memberOf ListCache
|
|
196
|
+
* @param {string} key The key of the value to get.
|
|
197
|
+
* @returns {*} Returns the entry value.
|
|
198
|
+
*/
|
|
199
|
+
function listCacheGet(key) {
|
|
200
|
+
var data = this.__data__,
|
|
201
|
+
index = assocIndexOf(data, key);
|
|
202
|
+
|
|
203
|
+
return index < 0 ? undefined : data[index][1];
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Checks if a list cache value for `key` exists.
|
|
208
|
+
*
|
|
209
|
+
* @private
|
|
210
|
+
* @name has
|
|
211
|
+
* @memberOf ListCache
|
|
212
|
+
* @param {string} key The key of the entry to check.
|
|
213
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
214
|
+
*/
|
|
215
|
+
function listCacheHas(key) {
|
|
216
|
+
return assocIndexOf(this.__data__, key) > -1;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Sets the list cache `key` to `value`.
|
|
221
|
+
*
|
|
222
|
+
* @private
|
|
223
|
+
* @name set
|
|
224
|
+
* @memberOf ListCache
|
|
225
|
+
* @param {string} key The key of the value to set.
|
|
226
|
+
* @param {*} value The value to set.
|
|
227
|
+
* @returns {Object} Returns the list cache instance.
|
|
228
|
+
*/
|
|
229
|
+
function listCacheSet(key, value) {
|
|
230
|
+
var data = this.__data__,
|
|
231
|
+
index = assocIndexOf(data, key);
|
|
232
|
+
|
|
233
|
+
if (index < 0) {
|
|
234
|
+
++this.size;
|
|
235
|
+
data.push([key, value]);
|
|
236
|
+
} else {
|
|
237
|
+
data[index][1] = value;
|
|
238
|
+
}
|
|
239
|
+
return this;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Creates an list cache object.
|
|
244
|
+
*
|
|
245
|
+
* @private
|
|
246
|
+
* @constructor
|
|
247
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
248
|
+
*/
|
|
249
|
+
function ListCache(entries) {
|
|
250
|
+
var index = -1,
|
|
251
|
+
length = entries == null ? 0 : entries.length;
|
|
252
|
+
|
|
253
|
+
this.clear();
|
|
254
|
+
while (++index < length) {
|
|
255
|
+
var entry = entries[index];
|
|
256
|
+
this.set(entry[0], entry[1]);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
// Add methods to `ListCache`.
|
|
261
|
+
ListCache.prototype.clear = listCacheClear;
|
|
262
|
+
ListCache.prototype['delete'] = listCacheDelete;
|
|
263
|
+
ListCache.prototype.get = listCacheGet;
|
|
264
|
+
ListCache.prototype.has = listCacheHas;
|
|
265
|
+
ListCache.prototype.set = listCacheSet;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Removes all key-value entries from the map.
|
|
269
|
+
*
|
|
270
|
+
* @private
|
|
271
|
+
* @name clear
|
|
272
|
+
* @memberOf MapCache
|
|
273
|
+
*/
|
|
274
|
+
function mapCacheClear() {
|
|
275
|
+
this.size = 0;
|
|
276
|
+
this.__data__ = {
|
|
277
|
+
'hash': new Hash,
|
|
278
|
+
'map': new (Map || ListCache),
|
|
279
|
+
'string': new Hash
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Checks if `value` is suitable for use as unique object key.
|
|
285
|
+
*
|
|
286
|
+
* @private
|
|
287
|
+
* @param {*} value The value to check.
|
|
288
|
+
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
289
|
+
*/
|
|
290
|
+
function isKeyable(value) {
|
|
291
|
+
var type = typeof value;
|
|
292
|
+
return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
|
|
293
|
+
? (value !== '__proto__')
|
|
294
|
+
: (value === null);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Gets the data for `map`.
|
|
299
|
+
*
|
|
300
|
+
* @private
|
|
301
|
+
* @param {Object} map The map to query.
|
|
302
|
+
* @param {string} key The reference key.
|
|
303
|
+
* @returns {*} Returns the map data.
|
|
304
|
+
*/
|
|
305
|
+
function getMapData(map, key) {
|
|
306
|
+
var data = map.__data__;
|
|
307
|
+
return isKeyable(key)
|
|
308
|
+
? data[typeof key == 'string' ? 'string' : 'hash']
|
|
309
|
+
: data.map;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Removes `key` and its value from the map.
|
|
314
|
+
*
|
|
315
|
+
* @private
|
|
316
|
+
* @name delete
|
|
317
|
+
* @memberOf MapCache
|
|
318
|
+
* @param {string} key The key of the value to remove.
|
|
319
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
320
|
+
*/
|
|
321
|
+
function mapCacheDelete(key) {
|
|
322
|
+
var result = getMapData(this, key)['delete'](key);
|
|
323
|
+
this.size -= result ? 1 : 0;
|
|
324
|
+
return result;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Gets the map value for `key`.
|
|
329
|
+
*
|
|
330
|
+
* @private
|
|
331
|
+
* @name get
|
|
332
|
+
* @memberOf MapCache
|
|
333
|
+
* @param {string} key The key of the value to get.
|
|
334
|
+
* @returns {*} Returns the entry value.
|
|
335
|
+
*/
|
|
336
|
+
function mapCacheGet(key) {
|
|
337
|
+
return getMapData(this, key).get(key);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* Checks if a map value for `key` exists.
|
|
342
|
+
*
|
|
343
|
+
* @private
|
|
344
|
+
* @name has
|
|
345
|
+
* @memberOf MapCache
|
|
346
|
+
* @param {string} key The key of the entry to check.
|
|
347
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
348
|
+
*/
|
|
349
|
+
function mapCacheHas(key) {
|
|
350
|
+
return getMapData(this, key).has(key);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Sets the map `key` to `value`.
|
|
355
|
+
*
|
|
356
|
+
* @private
|
|
357
|
+
* @name set
|
|
358
|
+
* @memberOf MapCache
|
|
359
|
+
* @param {string} key The key of the value to set.
|
|
360
|
+
* @param {*} value The value to set.
|
|
361
|
+
* @returns {Object} Returns the map cache instance.
|
|
362
|
+
*/
|
|
363
|
+
function mapCacheSet(key, value) {
|
|
364
|
+
var data = getMapData(this, key),
|
|
365
|
+
size = data.size;
|
|
366
|
+
|
|
367
|
+
data.set(key, value);
|
|
368
|
+
this.size += data.size == size ? 0 : 1;
|
|
369
|
+
return this;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Creates a map cache object to store key-value pairs.
|
|
374
|
+
*
|
|
375
|
+
* @private
|
|
376
|
+
* @constructor
|
|
377
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
378
|
+
*/
|
|
379
|
+
function MapCache(entries) {
|
|
380
|
+
var index = -1,
|
|
381
|
+
length = entries == null ? 0 : entries.length;
|
|
382
|
+
|
|
383
|
+
this.clear();
|
|
384
|
+
while (++index < length) {
|
|
385
|
+
var entry = entries[index];
|
|
386
|
+
this.set(entry[0], entry[1]);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
// Add methods to `MapCache`.
|
|
391
|
+
MapCache.prototype.clear = mapCacheClear;
|
|
392
|
+
MapCache.prototype['delete'] = mapCacheDelete;
|
|
393
|
+
MapCache.prototype.get = mapCacheGet;
|
|
394
|
+
MapCache.prototype.has = mapCacheHas;
|
|
395
|
+
MapCache.prototype.set = mapCacheSet;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Appends the elements of `values` to `array`.
|
|
399
|
+
*
|
|
400
|
+
* @private
|
|
401
|
+
* @param {Array} array The array to modify.
|
|
402
|
+
* @param {Array} values The values to append.
|
|
403
|
+
* @returns {Array} Returns `array`.
|
|
404
|
+
*/
|
|
405
|
+
function arrayPush(array, values) {
|
|
406
|
+
var index = -1,
|
|
407
|
+
length = values.length,
|
|
408
|
+
offset = array.length;
|
|
409
|
+
|
|
410
|
+
while (++index < length) {
|
|
411
|
+
array[offset + index] = values[index];
|
|
412
|
+
}
|
|
413
|
+
return array;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
export { ListCache as L, MapCache as M, arrayPush as a };
|