@limetech/lime-elements 36.3.1-next.1 → 36.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{checkbox.template-ac867c17.js → checkbox.template-60ed3ee2.js} +1 -2
- package/dist/cjs/{dom-20826de0.js → dom-eb080f70.js} +0 -1
- package/dist/cjs/{format-c0047dfb.js → format-5b928cf3.js} +0 -1
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-badge.cjs.entry.js +1 -1
- package/dist/cjs/limel-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/limel-chip-set.cjs.entry.js +6 -22
- package/dist/cjs/limel-circular-progress_2.cjs.entry.js +1 -1
- package/dist/cjs/limel-form.cjs.entry.js +1 -20
- package/dist/cjs/limel-helper-line.cjs.entry.js +48 -0
- package/dist/cjs/limel-icon.cjs.entry.js +0 -2
- package/dist/cjs/limel-input-field.cjs.entry.js +4 -21
- package/dist/cjs/limel-list_2.cjs.entry.js +3 -7
- package/dist/cjs/limel-menu-list.cjs.entry.js +1 -5
- package/dist/cjs/limel-picker.cjs.entry.js +1 -10
- package/dist/cjs/limel-popover_4.cjs.entry.js +0 -1
- package/dist/cjs/limel-select.cjs.entry.js +4 -5
- package/dist/cjs/limel-slider.cjs.entry.js +2 -2
- package/dist/cjs/limel-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/limel-tab-bar.cjs.entry.js +0 -1
- package/dist/cjs/limel-table.cjs.entry.js +0 -19
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{multiple-8fab83eb.js → multiple-2af83b6d.js} +0 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/badge/badge.js +0 -1
- package/dist/collection/components/badge/format.js +0 -1
- package/dist/collection/components/button-group/button-group.js +0 -1
- package/dist/collection/components/callout/callout.js +0 -1
- package/dist/collection/components/checkbox/checkbox.css +8 -92
- package/dist/collection/components/checkbox/checkbox.template.js +1 -1
- package/dist/collection/components/chip-set/chip-set-input-helpers.js +0 -1
- package/dist/collection/components/chip-set/chip-set.css +4 -18
- package/dist/collection/components/chip-set/chip-set.js +5 -20
- package/dist/collection/components/circular-progress/circular-progress.js +0 -1
- package/dist/collection/components/code-editor/code-editor.js +1 -2
- package/dist/collection/components/color-picker/color-picker.js +0 -1
- package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.js +0 -1
- package/dist/collection/components/dialog/dialog.js +0 -1
- package/dist/collection/components/file/file.js +2 -3
- package/dist/collection/components/flex-container/flex-container.js +0 -1
- package/dist/collection/components/form/adapters/base-adapter.js +0 -12
- package/dist/collection/components/form/fields/field-helpers.js +0 -3
- package/dist/collection/components/form/fields/schema-field.js +0 -3
- package/dist/collection/components/form/templates/common.js +0 -1
- package/dist/collection/components/grid/grid.js +0 -1
- package/dist/collection/components/header/header.js +0 -1
- package/dist/collection/components/helper-line/helper-line.css +30 -0
- package/dist/collection/components/helper-line/helper-line.js +166 -0
- package/dist/collection/components/icon/icon.js +0 -2
- package/dist/collection/components/info-tile/info-tile.js +0 -1
- package/dist/collection/components/input-field/input-field.css +3 -15
- package/dist/collection/components/input-field/input-field.js +3 -20
- package/dist/collection/components/list/list-renderer.js +0 -4
- package/dist/collection/components/list/list.css +16 -184
- package/dist/collection/components/menu-list/menu-list-renderer.js +0 -4
- package/dist/collection/components/menu-list/menu-list.css +16 -185
- package/dist/collection/components/picker/picker.js +0 -9
- package/dist/collection/components/popover/popover.js +0 -2
- package/dist/collection/components/portal/contains.js +0 -1
- package/dist/collection/components/portal/portal.js +10 -11
- package/dist/collection/components/select/select.css +10 -40
- package/dist/collection/components/select/select.template.js +2 -2
- package/dist/collection/components/shortcut/shortcut.js +0 -1
- package/dist/collection/components/slider/slider.css +6 -33
- package/dist/collection/components/slider/slider.js +1 -1
- package/dist/collection/components/snackbar/snackbar.js +26 -3
- package/dist/collection/components/split-button/split-button.js +0 -1
- package/dist/collection/components/tab-bar/tab-bar.js +1 -2
- package/dist/collection/components/tab-bar/tabs.js +0 -1
- package/dist/collection/components/tab-panel/tab-panel.js +0 -1
- package/dist/collection/components/table/columns.js +0 -9
- package/dist/collection/components/table/element-pool.js +0 -2
- package/dist/collection/components/table/selection.js +0 -4
- package/dist/collection/components/table/table-selection.js +0 -4
- package/dist/collection/components/tooltip/tooltip-content.js +0 -1
- package/dist/collection/components/tooltip/tooltip.js +0 -1
- package/dist/collection/global/icon-cache.js +0 -1
- package/dist/collection/util/dom.js +0 -1
- package/dist/collection/util/multiple.js +0 -1
- package/dist/esm/{checkbox.template-fc7fcd06.js → checkbox.template-4ce8d92f.js} +1 -2
- package/dist/esm/{dom-0f79cbe7.js → dom-2fe617e7.js} +0 -1
- package/dist/esm/{format-a0e2d949.js → format-c76733cb.js} +0 -1
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-badge.entry.js +1 -1
- package/dist/esm/limel-checkbox.entry.js +2 -2
- package/dist/esm/limel-chip-set.entry.js +6 -22
- package/dist/esm/limel-circular-progress_2.entry.js +1 -1
- package/dist/esm/limel-form.entry.js +1 -20
- package/dist/esm/limel-helper-line.entry.js +44 -0
- package/dist/esm/limel-icon.entry.js +0 -2
- package/dist/esm/limel-input-field.entry.js +4 -21
- package/dist/esm/limel-list_2.entry.js +3 -7
- package/dist/esm/limel-menu-list.entry.js +1 -5
- package/dist/esm/limel-picker.entry.js +1 -10
- package/dist/esm/limel-popover_4.entry.js +0 -1
- package/dist/esm/limel-select.entry.js +4 -5
- package/dist/esm/limel-slider.entry.js +2 -2
- package/dist/esm/limel-snackbar.entry.js +1 -1
- package/dist/esm/limel-tab-bar.entry.js +0 -1
- package/dist/esm/limel-table.entry.js +0 -19
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{multiple-254f4b61.js → multiple-0bd62427.js} +0 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/p-094dd76a.entry.js +126 -0
- package/dist/lime-elements/p-20059fcf.entry.js +82 -0
- package/dist/lime-elements/{p-157e0417.entry.js → p-5ab179b4.entry.js} +3 -3
- package/dist/lime-elements/{p-eed2a202.entry.js → p-6b8142ba.entry.js} +5 -5
- package/dist/lime-elements/{p-05d88196.entry.js → p-727fd4ea.entry.js} +2 -2
- package/dist/lime-elements/p-803cc4b7.entry.js +1 -0
- package/dist/lime-elements/{p-8178b348.entry.js → p-8a2d1761.entry.js} +1 -1
- package/dist/lime-elements/{p-d955c169.entry.js → p-8acabe02.entry.js} +1 -1
- package/dist/lime-elements/{p-a88f2922.entry.js → p-8d3a9e2c.entry.js} +1 -1
- package/dist/lime-elements/p-ba7661f6.entry.js +1 -0
- package/dist/lime-elements/p-d034bbcf.entry.js +1 -0
- package/dist/lime-elements/{p-1af8258b.js → p-d2a3d50b.js} +1 -1
- package/dist/lime-elements/{p-2fd478df.entry.js → p-ef93fd3e.entry.js} +1 -1
- package/dist/lime-elements/{p-58e9df30.entry.js → p-f4cbcdcf.entry.js} +1 -1
- package/dist/types/components/badge/badge.d.ts +0 -1
- package/dist/types/components/badge/format.d.ts +0 -1
- package/dist/types/components/button-group/button-group.d.ts +0 -1
- package/dist/types/components/callout/callout.d.ts +0 -1
- package/dist/types/components/chip-set/chip-set-input-helpers.d.ts +0 -1
- package/dist/types/components/chip-set/chip-set.d.ts +1 -7
- package/dist/types/components/circular-progress/circular-progress.d.ts +0 -1
- package/dist/types/components/code-editor/code-editor.d.ts +1 -2
- package/dist/types/components/color-picker/color-picker.d.ts +0 -1
- package/dist/types/components/date-picker/flatpickr-adapter/flatpickr-adapter.d.ts +0 -1
- package/dist/types/components/dialog/dialog.d.ts +0 -1
- package/dist/types/components/file/file.d.ts +2 -3
- package/dist/types/components/flex-container/flex-container.d.ts +0 -1
- package/dist/types/components/form/adapters/base-adapter.d.ts +0 -11
- package/dist/types/components/form/fields/field-helpers.d.ts +0 -2
- package/dist/types/components/form/fields/schema-field.d.ts +0 -2
- package/dist/types/components/form/templates/common.d.ts +0 -1
- package/dist/types/components/grid/grid.d.ts +0 -1
- package/dist/types/components/header/header.d.ts +0 -1
- package/dist/types/components/helper-line/helper-line.d.ts +57 -0
- package/dist/types/components/icon/icon.d.ts +0 -2
- package/dist/types/components/info-tile/info-tile.d.ts +0 -1
- package/dist/types/components/input-field/input-field.d.ts +0 -3
- package/dist/types/components/list/list-renderer.d.ts +0 -4
- package/dist/types/components/menu-list/menu-list-renderer.d.ts +0 -4
- package/dist/types/components/picker/picker.d.ts +0 -9
- package/dist/types/components/picker/searcher.types.d.ts +0 -1
- package/dist/types/components/popover/popover.d.ts +0 -2
- package/dist/types/components/portal/contains.d.ts +0 -1
- package/dist/types/components/portal/portal.d.ts +10 -11
- package/dist/types/components/shortcut/shortcut.d.ts +0 -1
- package/dist/types/components/snackbar/snackbar.d.ts +23 -1
- package/dist/types/components/split-button/split-button.d.ts +0 -1
- package/dist/types/components/tab-bar/tab-bar.d.ts +1 -2
- package/dist/types/components/tab-bar/tabs.d.ts +0 -1
- package/dist/types/components/tab-panel/tab-panel.d.ts +0 -1
- package/dist/types/components/table/columns.d.ts +0 -7
- package/dist/types/components/table/element-pool.d.ts +0 -2
- package/dist/types/components/table/selection.d.ts +0 -4
- package/dist/types/components/table/table-selection.d.ts +0 -4
- package/dist/types/components/table/table.types.d.ts +0 -3
- package/dist/types/components/tooltip/tooltip-content.d.ts +0 -1
- package/dist/types/components/tooltip/tooltip.d.ts +0 -1
- package/dist/types/components.d.ts +54 -1
- package/dist/types/global/icon-cache.d.ts +0 -1
- package/dist/types/util/dom.d.ts +0 -1
- package/dist/types/util/multiple.d.ts +0 -1
- package/package.json +7 -7
- package/dist/lime-elements/p-142910d8.entry.js +0 -126
- package/dist/lime-elements/p-73613abb.entry.js +0 -82
- package/dist/lime-elements/p-d0084a70.entry.js +0 -1
- package/dist/lime-elements/p-ff0e407a.entry.js +0 -1
- /package/dist/lime-elements/{p-f08f504b.js → p-0eabb204.js} +0 -0
- /package/dist/lime-elements/{p-0534b23b.js → p-5f020b3c.js} +0 -0
- /package/dist/lime-elements/{p-af8d4fe7.js → p-acf307d9.js} +0 -0
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["limel-color-picker.cjs",[[1,"limel-color-picker",{"value":[513],"label":[513],"helperText":[513,"helper-text"],"tooltipLabel":[513,"tooltip-label"],"required":[516],"readonly":[516],"isOpen":[32]}]]],["limel-dock.cjs",[[1,"limel-dock",{"dockItems":[16],"dockFooterItems":[16],"accessibleLabel":[513,"accessible-label"],"expanded":[516],"allowResize":[516,"allow-resize"],"mobileBreakPoint":[514,"mobile-break-point"],"useMobileLayout":[32]}]]],["limel-
|
|
17
|
+
return index.bootstrapLazy([["limel-color-picker.cjs",[[1,"limel-color-picker",{"value":[513],"label":[513],"helperText":[513,"helper-text"],"tooltipLabel":[513,"tooltip-label"],"required":[516],"readonly":[516],"isOpen":[32]}]]],["limel-dock.cjs",[[1,"limel-dock",{"dockItems":[16],"dockFooterItems":[16],"accessibleLabel":[513,"accessible-label"],"expanded":[516],"allowResize":[516,"allow-resize"],"mobileBreakPoint":[514,"mobile-break-point"],"useMobileLayout":[32]}]]],["limel-picker.cjs",[[1,"limel-picker",{"disabled":[4],"readonly":[516],"label":[1],"searchLabel":[1,"search-label"],"helperText":[513,"helper-text"],"leadingIcon":[1,"leading-icon"],"emptyResultMessage":[1,"empty-result-message"],"required":[4],"value":[16],"searcher":[16],"multiple":[4],"delimiter":[513],"actions":[16],"actionPosition":[1,"action-position"],"actionScrollBehavior":[1,"action-scroll-behavior"],"badgeIcons":[516,"badge-icons"],"items":[32],"textValue":[32],"loading":[32],"chips":[32]}]]],["limel-split-button.cjs",[[1,"limel-split-button",{"label":[513],"primary":[516],"icon":[513],"disabled":[516],"items":[16]}]]],["limel-date-picker.cjs",[[1,"limel-date-picker",{"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"placeholder":[513],"helperText":[513,"helper-text"],"required":[516],"value":[16],"type":[513],"format":[513],"language":[513],"formatter":[16],"formattedValue":[32],"internalFormat":[32],"showPortal":[32]}]]],["limel-button-group.cjs",[[1,"limel-button-group",{"value":[16],"disabled":[516],"selectedButtonId":[32]}]]],["limel-select.cjs",[[1,"limel-select",{"disabled":[516],"readonly":[516],"invalid":[516],"required":[516],"label":[513],"helperText":[513,"helper-text"],"value":[16],"options":[16],"multiple":[4],"menuOpen":[32]}]]],["limel-file.cjs",[[1,"limel-file",{"value":[16],"label":[513],"required":[516],"disabled":[516],"readonly":[516],"accept":[513],"language":[1],"isDraggingOverDropZone":[32]}]]],["limel-info-tile.cjs",[[1,"limel-info-tile",{"value":[520],"icon":[1],"label":[513],"prefix":[513],"suffix":[513],"disabled":[516],"badge":[520],"loading":[516],"link":[16],"progress":[16]}]]],["limel-snackbar.cjs",[[1,"limel-snackbar",{"message":[1],"timeout":[2],"actionText":[1,"action-text"],"dismissible":[4],"multiline":[4],"language":[1],"show":[64]}]]],["limel-tab-panel.cjs",[[1,"limel-tab-panel",{"tabs":[1040]}]]],["limel-table.cjs",[[1,"limel-table",{"data":[16],"columns":[16],"mode":[1],"layout":[1],"pageSize":[2,"page-size"],"totalRows":[2,"total-rows"],"sorting":[16],"activeRow":[1040],"movableColumns":[4,"movable-columns"],"loading":[4],"page":[2],"emptyMessage":[1,"empty-message"],"aggregates":[16],"selectable":[4],"selection":[16]}]]],["limel-collapsible-section.cjs",[[1,"limel-collapsible-section",{"isOpen":[1540,"is-open"],"header":[513],"actions":[16]}]]],["limel-dialog.cjs",[[1,"limel-dialog",{"heading":[1],"fullscreen":[516],"open":[1540],"closingActions":[16]}]]],["limel-progress-flow.cjs",[[1,"limel-progress-flow",{"flowItems":[16],"disabled":[4],"readonly":[4]}]]],["limel-shortcut.cjs",[[1,"limel-shortcut",{"icon":[513],"label":[513],"disabled":[516],"badge":[520],"link":[16]}]]],["limel-banner.cjs",[[1,"limel-banner",{"message":[513],"icon":[513],"isOpen":[32],"open":[64],"close":[64]}]]],["limel-callout.cjs",[[1,"limel-callout",{"heading":[513],"icon":[513],"type":[513],"language":[1]}]]],["limel-slider.cjs",[[1,"limel-slider",{"disabled":[516],"readonly":[516],"factor":[514],"label":[513],"helperText":[513,"helper-text"],"unit":[513],"value":[514],"valuemax":[514],"valuemin":[514],"step":[514],"percentageClass":[32]}]]],["limel-code-editor.cjs",[[1,"limel-code-editor",{"value":[1],"language":[1],"readonly":[4],"lineNumbers":[4,"line-numbers"],"fold":[4],"lint":[4],"colorScheme":[1,"color-scheme"],"random":[32]}]]],["limel-config.cjs",[[1,"limel-config",{"config":[16]}]]],["limel-flex-container.cjs",[[1,"limel-flex-container",{"direction":[513],"justify":[513],"align":[513],"reverse":[516]}]]],["limel-form.cjs",[[1,"limel-form",{"schema":[16],"value":[16],"disabled":[4],"propsFactory":[16],"transformErrors":[16],"errors":[16]}]]],["limel-grid.cjs",[[1,"limel-grid"]]],["limel-switch.cjs",[[1,"limel-switch",{"label":[513],"disabled":[516],"readonly":[516],"value":[516],"fieldId":[32]}]]],["limel-dock-button.cjs",[[0,"limel-dock-button",{"item":[16],"expanded":[516],"useMobileLayout":[516,"use-mobile-layout"],"isOpen":[32]}]]],["limel-color-picker-palette.cjs",[[1,"limel-color-picker-palette",{"value":[513],"label":[513],"helperText":[513,"helper-text"],"required":[516]}]]],["limel-menu-list.cjs",[[1,"limel-menu-list",{"items":[16],"badgeIcons":[4,"badge-icons"],"iconSize":[1,"icon-size"],"type":[1],"maxLinesSecondaryText":[2,"max-lines-secondary-text"]}]]],["limel-menu.cjs",[[1,"limel-menu",{"items":[16],"disabled":[516],"openDirection":[513,"open-direction"],"open":[1540],"badgeIcons":[516,"badge-icons"],"gridLayout":[516,"grid-layout"]}]]],["limel-icon-button.cjs",[[1,"limel-icon-button",{"icon":[513],"elevated":[516],"label":[513],"disabled":[516]}]]],["limel-tab-bar.cjs",[[1,"limel-tab-bar",{"tabs":[1040],"canScrollLeft":[32],"canScrollRight":[32]},[[9,"resize","handleWindowResize"]]]]],["limel-checkbox.cjs",[[1,"limel-checkbox",{"disabled":[516],"readonly":[516],"label":[513],"helperText":[513,"helper-text"],"checked":[516],"indeterminate":[516],"required":[516],"modified":[32]}]]],["limel-header.cjs",[[1,"limel-header",{"icon":[1],"heading":[1],"subheading":[1],"supportingText":[1,"supporting-text"]}]]],["limel-progress-flow-item.cjs",[[0,"limel-progress-flow-item",{"item":[16],"disabled":[4],"readonly":[4]}]]],["limel-flatpickr-adapter.cjs",[[1,"limel-flatpickr-adapter",{"value":[16],"type":[1],"format":[1],"isOpen":[4,"is-open"],"inputElement":[16],"language":[1],"formatter":[16]}]]],["limel-helper-line.cjs",[[1,"limel-helper-line",{"helperText":[513,"helper-text"],"length":[514],"maxLength":[514,"max-length"],"invalid":[516],"helperTextId":[513,"helper-text-id"]}]]],["limel-icon.cjs",[[1,"limel-icon",{"size":[513],"name":[513],"badge":[516]}]]],["limel-chip-set.cjs",[[1,"limel-chip-set",{"value":[16],"type":[513],"label":[513],"helperText":[513,"helper-text"],"disabled":[516],"readonly":[516],"inputType":[513,"input-type"],"maxItems":[514,"max-items"],"required":[516],"searchLabel":[513,"search-label"],"emptyInputOnBlur":[516,"empty-input-on-blur"],"clearAllButton":[4,"clear-all-button"],"leadingIcon":[513,"leading-icon"],"delimiter":[513],"language":[1],"editMode":[32],"textValue":[32],"blurred":[32],"inputChipIndexSelected":[32],"getEditMode":[64],"setFocus":[64],"emptyInput":[64]}]]],["limel-button.cjs",[[1,"limel-button",{"label":[513],"primary":[516],"outlined":[516],"icon":[513],"disabled":[516],"loading":[516],"loadingFailed":[516,"loading-failed"],"justLoaded":[32]}]]],["limel-circular-progress_2.cjs",[[1,"limel-circular-progress",{"value":[2],"maxValue":[2,"max-value"],"prefix":[513],"suffix":[1],"displayPercentageColors":[4,"display-percentage-colors"],"size":[513]}],[1,"limel-linear-progress",{"value":[2],"indeterminate":[4]}]]],["limel-portal.cjs",[[1,"limel-portal",{"openDirection":[1,"open-direction"],"position":[1],"containerId":[1,"container-id"],"containerStyle":[16],"parent":[16],"inheritParentWidth":[4,"inherit-parent-width"],"visible":[4]}]]],["limel-input-field.cjs",[[1,"limel-input-field",{"disabled":[516],"readonly":[516],"invalid":[516],"label":[513],"placeholder":[513],"helperText":[513,"helper-text"],"prefix":[513],"suffix":[513],"required":[516],"value":[513],"trailingIcon":[513,"trailing-icon"],"leadingIcon":[513,"leading-icon"],"pattern":[513],"type":[513],"formatNumber":[516,"format-number"],"step":[520],"max":[514],"min":[514],"maxlength":[514],"minlength":[514],"completions":[16],"showLink":[516,"show-link"],"isFocused":[32],"isModified":[32],"showCompletions":[32]}]]],["limel-spinner.cjs",[[1,"limel-spinner",{"size":[513],"limeBranded":[4,"lime-branded"]}]]],["limel-badge.cjs",[[1,"limel-badge",{"label":[520]}]]],["limel-list_2.cjs",[[1,"limel-list",{"items":[16],"badgeIcons":[4,"badge-icons"],"iconSize":[1,"icon-size"],"type":[1],"maxLinesSecondaryText":[2,"max-lines-secondary-text"]}],[1,"limel-menu-surface",{"open":[4],"allowClicksElement":[16]}]]],["limel-popover_4.cjs",[[1,"limel-popover",{"open":[4],"openDirection":[513,"open-direction"]}],[1,"limel-tooltip",{"elementId":[513,"element-id"],"label":[513],"helperLabel":[513,"helper-label"],"maxlength":[514],"open":[32]}],[1,"limel-popover-surface",{"contentCollection":[16]}],[1,"limel-tooltip-content",{"label":[513],"helperLabel":[513,"helper-label"],"maxlength":[514]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"./components/form/form.js",
|
|
24
24
|
"./components/grid/grid.js",
|
|
25
25
|
"./components/header/header.js",
|
|
26
|
+
"./components/helper-line/helper-line.js",
|
|
26
27
|
"./components/icon/icon.js",
|
|
27
28
|
"./components/icon-button/icon-button.js",
|
|
28
29
|
"./components/info-tile/info-tile.js",
|
|
@@ -3,7 +3,6 @@ import { abbreviate } from './format';
|
|
|
3
3
|
/**
|
|
4
4
|
* The Badge component can be used to display a notification badge,
|
|
5
5
|
* optionally with a number or a text label.
|
|
6
|
-
*
|
|
7
6
|
* @exampleComponent limel-example-badge
|
|
8
7
|
* @exampleComponent limel-example-badge-number
|
|
9
8
|
* @exampleComponent limel-example-badge-string
|
|
@@ -29,7 +29,6 @@ import { createRandomString } from '../../util/random-string';
|
|
|
29
29
|
*
|
|
30
30
|
* Within the group, icon buttons will all have the same width, while each text button
|
|
31
31
|
* inherits its width from its content.
|
|
32
|
-
*
|
|
33
32
|
* @exampleComponent limel-example-button-group-icons
|
|
34
33
|
* @exampleComponent limel-example-button-group
|
|
35
34
|
* @exampleComponent limel-example-button-group-mix
|
|
@@ -15,7 +15,6 @@ import { getHeading, getIcon } from './callout.helpers';
|
|
|
15
15
|
* presented. In such cases, a callout should not be used as a static and
|
|
16
16
|
* constantly present element of the UI. Rather, it should be displayed when
|
|
17
17
|
* something unusual or remarkable demands the user's attention.
|
|
18
|
-
*
|
|
19
18
|
* @exampleComponent limel-example-callout-note
|
|
20
19
|
* @exampleComponent limel-example-callout-important
|
|
21
20
|
* @exampleComponent limel-example-callout-tip
|
|
@@ -815,105 +815,21 @@
|
|
|
815
815
|
color: var(--lime-error-text-color);
|
|
816
816
|
}
|
|
817
817
|
|
|
818
|
-
|
|
819
|
-
* This file is imported into every component!
|
|
820
|
-
*
|
|
821
|
-
* Nothing in this file may output any CSS
|
|
822
|
-
* without being explicitly called by outside code.
|
|
823
|
-
*/
|
|
824
|
-
/*
|
|
825
|
-
* This file is imported into every component that uses MDC!
|
|
826
|
-
*
|
|
827
|
-
* Anything in this file that generates CSS output on its own,
|
|
828
|
-
* without being explicitly used, will output that CSS in every
|
|
829
|
-
* single component, increasing the size of the production build.
|
|
830
|
-
* Avoid that unless there's very good reason for it!
|
|
831
|
-
*/
|
|
832
|
-
/*
|
|
833
|
-
* This file is imported into every component that uses MDC!
|
|
834
|
-
*
|
|
835
|
-
* Anything in this file that generates CSS output on its own,
|
|
836
|
-
* without being explicitly used, will output that CSS in every
|
|
837
|
-
* single component, increasing the size of the production build.
|
|
838
|
-
* Avoid that unless there's very good reason for it!
|
|
839
|
-
*/
|
|
840
|
-
:host {
|
|
841
|
-
--mdc-theme-primary: var(
|
|
842
|
-
--lime-primary-color,
|
|
843
|
-
rgb(var(--color-teal-default))
|
|
844
|
-
);
|
|
845
|
-
--mdc-theme-secondary: var(
|
|
846
|
-
--lime-secondary-color,
|
|
847
|
-
rgb(var(--contrast-1100))
|
|
848
|
-
);
|
|
849
|
-
--mdc-theme-on-primary: var(
|
|
850
|
-
--lime-on-primary-color,
|
|
851
|
-
rgb(var(--contrast-100))
|
|
852
|
-
);
|
|
853
|
-
--mdc-theme-on-secondary: var(
|
|
854
|
-
--lime-on-secondary-color,
|
|
855
|
-
rgb(var(--contrast-100))
|
|
856
|
-
);
|
|
857
|
-
--mdc-theme-text-disabled-on-background: var(
|
|
858
|
-
--lime-text-disabled-on-background-color,
|
|
859
|
-
rgba(var(--contrast-1700), 0.38)
|
|
860
|
-
);
|
|
861
|
-
--mdc-theme-text-primary-on-background: var(
|
|
862
|
-
--lime-text-primary-on-background-color,
|
|
863
|
-
rgba(var(--contrast-1700), 0.87)
|
|
864
|
-
);
|
|
865
|
-
--mdc-theme-text-secondary-on-background: var(
|
|
866
|
-
--lime-text-secondary-on-background-color,
|
|
867
|
-
rgba(var(--contrast-1700), 0.54)
|
|
868
|
-
);
|
|
869
|
-
--mdc-theme-error: var(
|
|
870
|
-
--lime-error-background-color,
|
|
871
|
-
rgb(var(--color-red-dark))
|
|
872
|
-
);
|
|
873
|
-
--lime-error-text-color: rgb(var(--color-red-darker));
|
|
874
|
-
--mdc-theme-surface: var(
|
|
875
|
-
--lime-surface-background-color,
|
|
876
|
-
rgb(var(--contrast-100))
|
|
877
|
-
);
|
|
878
|
-
--mdc-theme-on-surface: var(
|
|
879
|
-
--lime-on-surface-color,
|
|
880
|
-
rgb(var(--contrast-1500))
|
|
881
|
-
);
|
|
882
|
-
}
|
|
883
|
-
|
|
884
|
-
.limel-checkbox-helper-line {
|
|
885
|
-
padding-right: 1rem;
|
|
886
|
-
padding-left: 1rem;
|
|
887
|
-
flex-basis: 100%;
|
|
888
|
-
width: 100%;
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
.limel-checkbox-helper-text {
|
|
892
|
-
font-family: Roboto, sans-serif;
|
|
893
|
-
-moz-osx-font-smoothing: grayscale;
|
|
894
|
-
-webkit-font-smoothing: antialiased;
|
|
895
|
-
font-size: 0.6875rem;
|
|
896
|
-
font-weight: 400;
|
|
897
|
-
letter-spacing: 0.0333333333em;
|
|
898
|
-
text-decoration: inherit;
|
|
899
|
-
text-transform: inherit;
|
|
900
|
-
display: block;
|
|
901
|
-
margin-top: 0;
|
|
902
|
-
line-height: normal;
|
|
903
|
-
margin: 0;
|
|
904
|
-
transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
818
|
+
limel-helper-line {
|
|
905
819
|
opacity: 0;
|
|
906
|
-
color: rgba(var(--contrast-1200), 1);
|
|
907
|
-
}
|
|
908
|
-
:host(:hover) .limel-checkbox-helper-text, :host(:focus) .limel-checkbox-helper-text, :host(:focus-within) .limel-checkbox-helper-text {
|
|
909
|
-
opacity: 1;
|
|
910
820
|
}
|
|
911
821
|
|
|
912
822
|
@media (pointer: coarse) {
|
|
913
|
-
|
|
823
|
+
limel-helper-line {
|
|
914
824
|
opacity: 1;
|
|
915
825
|
}
|
|
916
826
|
}
|
|
827
|
+
:host(:focus) limel-helper-line,
|
|
828
|
+
:host(:focus-visible) limel-helper-line,
|
|
829
|
+
:host(:focus-within) limel-helper-line {
|
|
830
|
+
opacity: 1;
|
|
831
|
+
}
|
|
832
|
+
|
|
917
833
|
.lime-checkbox--readonly.mdc-checkbox--disabled {
|
|
918
834
|
opacity: 1;
|
|
919
835
|
--mdc-ripple-press-opacity: 1;
|
|
@@ -26,5 +26,5 @@ const HelperText = (props) => {
|
|
|
26
26
|
if (typeof props.text !== 'string') {
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
29
|
-
return
|
|
29
|
+
return h("limel-helper-line", { helperText: props.text.trim() });
|
|
30
30
|
};
|
|
@@ -2825,30 +2825,16 @@ limel-icon.mdc-chip__icon.mdc-chip__icon--leading {
|
|
|
2825
2825
|
max-width: 40%;
|
|
2826
2826
|
}
|
|
2827
2827
|
|
|
2828
|
-
.mdc-text-field-helper-line {
|
|
2829
|
-
|
|
2830
|
-
}
|
|
2831
|
-
|
|
2832
|
-
.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field-character-counter,
|
|
2833
|
-
.mdc-text-field:not(.mdc-text-field--disabled) + .mdc-text-field-helper-line .mdc-text-field-character-counter,
|
|
2834
|
-
.mdc-text-field:not(.mdc-text-field--disabled) + .mdc-text-field-helper-line .mdc-text-field-helper-text {
|
|
2835
|
-
color: rgba(var(--contrast-1200), 1);
|
|
2836
|
-
}
|
|
2837
|
-
|
|
2838
|
-
.mdc-text-field-helper-text:before {
|
|
2839
|
-
height: 0.75rem;
|
|
2840
|
-
display: inline-block;
|
|
2841
|
-
width: 0;
|
|
2842
|
-
content: "";
|
|
2843
|
-
vertical-align: 0;
|
|
2828
|
+
:not(.mdc-text-field--focused):not(.mdc-text-field--invalid):not(.force-invalid) + limel-helper-line {
|
|
2829
|
+
opacity: 0;
|
|
2844
2830
|
}
|
|
2845
2831
|
|
|
2846
|
-
:host(:not([type=input])) .mdc-chip-set:hover
|
|
2832
|
+
:host(:not([type=input])) .mdc-chip-set:hover limel-helper-line, :host(:not([type=input])) .mdc-chip-set:focus limel-helper-line, :host(:not([type=input])) .mdc-chip-set:focus-visible limel-helper-line, :host(:not([type=input])) .mdc-chip-set:focus-within limel-helper-line {
|
|
2847
2833
|
opacity: 1;
|
|
2848
2834
|
}
|
|
2849
2835
|
|
|
2850
2836
|
@media (pointer: coarse) {
|
|
2851
|
-
:host(:not([type=input]))
|
|
2837
|
+
:host(:not([type=input])) limel-helper-line {
|
|
2852
2838
|
opacity: 1;
|
|
2853
2839
|
}
|
|
2854
2840
|
}
|
|
@@ -34,24 +34,14 @@ export class ChipSet {
|
|
|
34
34
|
this.dropZoneTip = () => {
|
|
35
35
|
return translate.get('file.drag-and-drop-tips', this.language);
|
|
36
36
|
};
|
|
37
|
-
this.
|
|
38
|
-
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
return (h("div", { tabIndex: -1, class: "mdc-text-field-helper-line" }, this.renderHelperText()));
|
|
37
|
+
this.hasHelperText = () => {
|
|
38
|
+
return this.helperText !== null && this.helperText !== undefined;
|
|
42
39
|
};
|
|
43
|
-
this.
|
|
44
|
-
if (!this.hasHelperText()) {
|
|
40
|
+
this.renderHelperLine = () => {
|
|
41
|
+
if (!this.maxItems && !this.hasHelperText()) {
|
|
45
42
|
return;
|
|
46
43
|
}
|
|
47
|
-
|
|
48
|
-
'mdc-text-field-helper-text': true,
|
|
49
|
-
'mdc-text-field-helper-text--validation-msg': this.isInvalid(),
|
|
50
|
-
};
|
|
51
|
-
return h("p", { class: classList }, this.helperText);
|
|
52
|
-
};
|
|
53
|
-
this.hasHelperText = () => {
|
|
54
|
-
return this.helperText !== null && this.helperText !== undefined;
|
|
44
|
+
return (h("limel-helper-line", { length: this.value.length, maxLength: this.maxItems, helperText: this.helperText, invalid: this.isInvalid() }));
|
|
55
45
|
};
|
|
56
46
|
this.clearAllChipsLabel = () => {
|
|
57
47
|
return translate.get('chip-set.clear-all', this.language);
|
|
@@ -95,7 +85,6 @@ export class ChipSet {
|
|
|
95
85
|
}
|
|
96
86
|
/**
|
|
97
87
|
* Used to find out whether the chip-set is in edit mode.
|
|
98
|
-
*
|
|
99
88
|
* @returns {Promise<boolean>} `true` if the chip-set is in edit mode, `false` otherwise.
|
|
100
89
|
*/
|
|
101
90
|
async getEditMode() {
|
|
@@ -103,7 +92,6 @@ export class ChipSet {
|
|
|
103
92
|
}
|
|
104
93
|
/**
|
|
105
94
|
* Used to set focus to the chip-set input field.
|
|
106
|
-
*
|
|
107
95
|
* @param {boolean} emptyInput if `true`, any text in the input is discarded
|
|
108
96
|
* @returns {Promise<void>} does not return anything, but methods have to be async
|
|
109
97
|
*/
|
|
@@ -121,7 +109,6 @@ export class ChipSet {
|
|
|
121
109
|
/**
|
|
122
110
|
* Used to empty the input field. Used in conjunction with `emptyInputOnBlur` to let the
|
|
123
111
|
* consumer control when the input is emptied.
|
|
124
|
-
*
|
|
125
112
|
* @returns {Promise<void>} does not return anything, but methods have to be async
|
|
126
113
|
*/
|
|
127
114
|
async emptyInput() {
|
|
@@ -250,7 +237,6 @@ export class ChipSet {
|
|
|
250
237
|
}
|
|
251
238
|
/**
|
|
252
239
|
* Enter edit mode when the text field receives focus. When editMode is true, the input element will be visible
|
|
253
|
-
*
|
|
254
240
|
* @returns {void}
|
|
255
241
|
*/
|
|
256
242
|
handleTextFieldFocus() {
|
|
@@ -266,7 +252,6 @@ export class ChipSet {
|
|
|
266
252
|
/**
|
|
267
253
|
* Exit edit mode when the input element loses focus. This makes sure the input element does not take up any
|
|
268
254
|
* additional space when the user it not typing anything
|
|
269
|
-
*
|
|
270
255
|
* @returns {void}
|
|
271
256
|
*/
|
|
272
257
|
handleInputBlur() {
|
|
@@ -18,7 +18,6 @@ const PERCENT = 100;
|
|
|
18
18
|
* Of course such numbers, if bigger than `maxValue` will be visualized as a
|
|
19
19
|
* full progress.
|
|
20
20
|
* :::
|
|
21
|
-
*
|
|
22
21
|
* @exampleComponent limel-example-circular-progress
|
|
23
22
|
* @exampleComponent limel-example-circular-progress-sizes
|
|
24
23
|
* @exampleComponent limel-example-circular-progress-props
|
|
@@ -10,8 +10,7 @@ import 'codemirror/addon/fold/brace-fold';
|
|
|
10
10
|
import jslint from 'jsonlint-mod';
|
|
11
11
|
/**
|
|
12
12
|
* Currently this component support syntax highlighting for `javascript`,
|
|
13
|
-
`json` and `typescript` formats.
|
|
14
|
-
*
|
|
13
|
+
* `json` and `typescript` formats.
|
|
15
14
|
* @exampleComponent limel-example-code-editor
|
|
16
15
|
* @exampleComponent limel-example-code-editor-readonly-with-line-numbers
|
|
17
16
|
* @exampleComponent limel-example-code-editor-fold-lint
|
|
@@ -10,7 +10,6 @@ import { h } from '@stencil/core';
|
|
|
10
10
|
* :::note
|
|
11
11
|
* Make sure to read our [guidelines about usage of colors](/#/DesignGuidelines/color-system.md/) from our palette.
|
|
12
12
|
* :::
|
|
13
|
-
*
|
|
14
13
|
* @exampleComponent limel-example-color-picker
|
|
15
14
|
* @exampleComponent limel-example-color-picker-readonly
|
|
16
15
|
*/
|
|
@@ -11,7 +11,6 @@ import { YearPicker } from '../pickers/YearPicker';
|
|
|
11
11
|
* This component is internal and only supposed to be used by
|
|
12
12
|
* the limel-date-picker. This component is needed in order for us
|
|
13
13
|
* to render the flatpickr calendar in a portal.
|
|
14
|
-
*
|
|
15
14
|
* @private
|
|
16
15
|
*/
|
|
17
16
|
export class DatePickerCalendar {
|
|
@@ -19,7 +19,6 @@ import { createRandomString } from '../../util/random-string';
|
|
|
19
19
|
* you should use the [DialogService](https://lundalogik.github.io/lime-web-components/versions/latest/#/api/dialog-service)
|
|
20
20
|
* from Lime Web Components to open dialogs in Lime CRM.
|
|
21
21
|
* :::
|
|
22
|
-
*
|
|
23
22
|
* @exampleComponent limel-example-dialog
|
|
24
23
|
* @exampleComponent limel-example-dialog-nested-close-events
|
|
25
24
|
* @exampleComponent limel-example-dialog-heading
|
|
@@ -20,7 +20,7 @@ const DEFAULT_FILE_CHIP = {
|
|
|
20
20
|
* visual design including the upload icon hints end-users that this is not a
|
|
21
21
|
* normal input field like other fields in the form for example.
|
|
22
22
|
*
|
|
23
|
-
|
|
23
|
+
* :::important
|
|
24
24
|
* you need to use a descriptive `label` that clarifies the
|
|
25
25
|
* functionality of the file picker, and/or provides users with clear
|
|
26
26
|
* instructions.
|
|
@@ -36,8 +36,7 @@ const DEFAULT_FILE_CHIP = {
|
|
|
36
36
|
* - Choose a file
|
|
37
37
|
*
|
|
38
38
|
* and similar phrases...
|
|
39
|
-
|
|
40
|
-
*
|
|
39
|
+
* :::
|
|
41
40
|
* @exampleComponent limel-example-file
|
|
42
41
|
* @exampleComponent limel-example-file-custom-icon
|
|
43
42
|
* @exampleComponent limel-example-file-accepted-types
|
|
@@ -3,7 +3,6 @@ import { h } from '@stencil/core';
|
|
|
3
3
|
* This component is deprecated and will be removed in a future version of
|
|
4
4
|
* Lime Elements. Please use CSS for your flexible container needs 🙂
|
|
5
5
|
* https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Basic_Concepts_of_Flexbox
|
|
6
|
-
*
|
|
7
6
|
* @deprecated
|
|
8
7
|
* @private
|
|
9
8
|
* @slot - Container content
|
|
@@ -7,7 +7,6 @@ import { isNil, isNumber, isString, isBoolean, pickBy, negate, kebabCase, mapKey
|
|
|
7
7
|
* the real definition of a primitive in javascript. In this context, primitive
|
|
8
8
|
* really means "can be properly rendered to the dom by react". It just so
|
|
9
9
|
* happens that react can render most primitives to the dom correctly.
|
|
10
|
-
*
|
|
11
10
|
* @see https://developer.mozilla.org/en-US/docs/Glossary/Primitive
|
|
12
11
|
* @param {any} value the value to check
|
|
13
12
|
* @returns {boolean} Whether or not the value is primitive
|
|
@@ -43,7 +42,6 @@ export class LimeElementsAdapter extends React.Component {
|
|
|
43
42
|
/**
|
|
44
43
|
* Given a key a value set the value of property named `key` to
|
|
45
44
|
* the value of `value`
|
|
46
|
-
*
|
|
47
45
|
* @param {string} key The name of the property
|
|
48
46
|
* @param {any} value The value of the property
|
|
49
47
|
* @returns {void}
|
|
@@ -57,7 +55,6 @@ export class LimeElementsAdapter extends React.Component {
|
|
|
57
55
|
*
|
|
58
56
|
* Events must be bound using this function otherwise events will bubble up too far
|
|
59
57
|
* since react events are different that native dom events
|
|
60
|
-
*
|
|
61
58
|
* @param {string} eventName the name of the event to get the handler for
|
|
62
59
|
* @returns {any} the handler to bind to the component for the event name
|
|
63
60
|
*/
|
|
@@ -70,7 +67,6 @@ export class LimeElementsAdapter extends React.Component {
|
|
|
70
67
|
}
|
|
71
68
|
/**
|
|
72
69
|
* Set events on the web component
|
|
73
|
-
*
|
|
74
70
|
* @param {object} events Event names to handlers
|
|
75
71
|
* @returns {void}
|
|
76
72
|
*/
|
|
@@ -82,7 +78,6 @@ export class LimeElementsAdapter extends React.Component {
|
|
|
82
78
|
}
|
|
83
79
|
/**
|
|
84
80
|
* Remove events on the web component
|
|
85
|
-
*
|
|
86
81
|
* @param {object} events Event names to handlers
|
|
87
82
|
* @returns {void}
|
|
88
83
|
*/
|
|
@@ -94,7 +89,6 @@ export class LimeElementsAdapter extends React.Component {
|
|
|
94
89
|
}
|
|
95
90
|
/**
|
|
96
91
|
* Get the events to remove from the component
|
|
97
|
-
*
|
|
98
92
|
* @param {object} prevEvents previous events
|
|
99
93
|
* @param {object} nextEvents new events
|
|
100
94
|
* @returns {object} the events to remove
|
|
@@ -104,7 +98,6 @@ export class LimeElementsAdapter extends React.Component {
|
|
|
104
98
|
}
|
|
105
99
|
/**
|
|
106
100
|
* Get the events to add to the component
|
|
107
|
-
*
|
|
108
101
|
* @param {object} prevEvents previous events
|
|
109
102
|
* @param {object} nextEvents new events
|
|
110
103
|
* @returns {object} the events to add
|
|
@@ -116,7 +109,6 @@ export class LimeElementsAdapter extends React.Component {
|
|
|
116
109
|
* Detect if event handlers have changed. If they
|
|
117
110
|
* have changed, store them in the state, and remove and
|
|
118
111
|
* re-add the changed event handlers
|
|
119
|
-
*
|
|
120
112
|
* @returns {void}
|
|
121
113
|
*/
|
|
122
114
|
updateEvents() {
|
|
@@ -141,7 +133,6 @@ export class LimeElementsAdapter extends React.Component {
|
|
|
141
133
|
}
|
|
142
134
|
/**
|
|
143
135
|
* Get non primitive props. i.e. object, function, array, etc
|
|
144
|
-
*
|
|
145
136
|
* @param {object} elementProps the props to pass the webcomponet
|
|
146
137
|
* @returns {object} non primitive props
|
|
147
138
|
*/
|
|
@@ -150,7 +141,6 @@ export class LimeElementsAdapter extends React.Component {
|
|
|
150
141
|
}
|
|
151
142
|
/**
|
|
152
143
|
* Get primitive props. i.e. integer, boolean, etc
|
|
153
|
-
*
|
|
154
144
|
* @param {object} elementProps the props to pass the webcomponet
|
|
155
145
|
* @returns {object} primitive props
|
|
156
146
|
*/
|
|
@@ -161,7 +151,6 @@ export class LimeElementsAdapter extends React.Component {
|
|
|
161
151
|
* Given the previous renders props and the next renders props,
|
|
162
152
|
* check if any of the property values have changed and return an
|
|
163
153
|
* object with only those values
|
|
164
|
-
*
|
|
165
154
|
* @param {object} prevNonPrimitiveProps the previous renders non primitive props
|
|
166
155
|
* @param {object} nextNonPrimitiveProps the current renders non primitive props
|
|
167
156
|
* @returns {object} the changed primitive props
|
|
@@ -176,7 +165,6 @@ export class LimeElementsAdapter extends React.Component {
|
|
|
176
165
|
* instead of passing them as props the the React.createElement
|
|
177
166
|
* function because non primitive props are not passed properly to the web
|
|
178
167
|
* component via React.createElement
|
|
179
|
-
*
|
|
180
168
|
* @param {object} elementProps element props to set
|
|
181
169
|
* @returns {void}
|
|
182
170
|
*/
|
|
@@ -3,7 +3,6 @@ import { retrieveSchema, ADDITIONAL_PROPERTY_FLAG } from '@rjsf/core/lib/utils';
|
|
|
3
3
|
/**
|
|
4
4
|
* Given two objects, get a list of keys for each value that is different between
|
|
5
5
|
* the two objects. Compares using deep comparison
|
|
6
|
-
*
|
|
7
6
|
* @param {object} a first object
|
|
8
7
|
* @param {object} b second object
|
|
9
8
|
* @returns {any[]} the array of keys
|
|
@@ -19,7 +18,6 @@ const getDifferentKeys = (a = {}, b = {}) => {
|
|
|
19
18
|
* has any other fields that are dependent on it, and if so reset those dependent fields
|
|
20
19
|
* (by deleting them from the data so that their defaults are populated on the next rerender).
|
|
21
20
|
* Call onChange with the updated data
|
|
22
|
-
*
|
|
23
21
|
* @param {any} oldData The previous data before a data change event
|
|
24
22
|
* @param {any} newData The form data from a change event
|
|
25
23
|
* @param {object} schema The schema associated with the data
|
|
@@ -52,7 +50,6 @@ export const resetDependentFields = (oldData, newData, schema, rootSchema) => {
|
|
|
52
50
|
};
|
|
53
51
|
/**
|
|
54
52
|
* Check if the schema is of type object and have no declared properties
|
|
55
|
-
*
|
|
56
53
|
* @param {any} schema the schema
|
|
57
54
|
* @returns {boolean} true if the schema is for a custom object
|
|
58
55
|
*/
|
|
@@ -23,7 +23,6 @@ import { FieldTemplate } from '../templates';
|
|
|
23
23
|
* from the form data I would delete all the text from the name input field. Web components would emit this empty value
|
|
24
24
|
* as '' or null. If the web component tries to emit `undefined`, null would be emitted instead because CustomEvent has
|
|
25
25
|
* a default `detail` value of null
|
|
26
|
-
*
|
|
27
26
|
* @param {any} value the value associated with the schema
|
|
28
27
|
* @param {any} schema the schema for the value
|
|
29
28
|
* @returns {boolean} whether or not null should be changed to undefined
|
|
@@ -52,7 +51,6 @@ const getCustomComponent = (schema) => {
|
|
|
52
51
|
};
|
|
53
52
|
/**
|
|
54
53
|
* Create properties from the factory that is set on `limel-form`
|
|
55
|
-
*
|
|
56
54
|
* @param {*} formContext the form context
|
|
57
55
|
* @param {*} schema the schema for the current field
|
|
58
56
|
* @returns {object} the properties created by the factory
|
|
@@ -178,7 +176,6 @@ export class SchemaField extends React.Component {
|
|
|
178
176
|
}
|
|
179
177
|
/**
|
|
180
178
|
* Gets the path to the current property within the schema
|
|
181
|
-
*
|
|
182
179
|
* @param {string} schemaId the id of the schema
|
|
183
180
|
* @returns {string[]} an array with the schema path for the current property
|
|
184
181
|
* @example
|
|
@@ -19,7 +19,6 @@ export function renderDescription(description) {
|
|
|
19
19
|
* If an object has the key 'title' it will have priority, followed by the key 'name'.
|
|
20
20
|
* If 'title' nor 'name' is found, a required item will be considered.
|
|
21
21
|
* Otherwise the first occurrence of a nonempty string is chosen.
|
|
22
|
-
*
|
|
23
22
|
* @param {*} data the data to find the title for
|
|
24
23
|
* @param {*} fieldSchema schema for the item
|
|
25
24
|
* @param {*} formSchema schema for the form
|
|
@@ -3,7 +3,6 @@ import { h } from '@stencil/core';
|
|
|
3
3
|
* The `limel-grid` component creates a grid which can be used to control the
|
|
4
4
|
* layout of other components. It uses CSS [grid-template-areas](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-areas)
|
|
5
5
|
* to enable easy configuration of its child-elements.
|
|
6
|
-
*
|
|
7
6
|
* @exampleComponent limel-example-grid
|
|
8
7
|
* @slot - Grid content
|
|
9
8
|
*/
|
|
@@ -38,7 +38,6 @@ import { h } from '@stencil/core';
|
|
|
38
38
|
* Background colors behind icons make them look like "call to action" buttons
|
|
39
39
|
* and take a lot of attention from users.
|
|
40
40
|
* :::
|
|
41
|
-
*
|
|
42
41
|
* @exampleComponent limel-example-header
|
|
43
42
|
* @exampleComponent limel-example-header-colors
|
|
44
43
|
* @exampleComponent limel-example-header-responsive
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
:host(limel-helper-line) {
|
|
2
|
+
transition: opacity 0.2s ease;
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
display: none;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
gap: 0.75rem;
|
|
7
|
+
padding: 0.125rem 1rem 0 1rem;
|
|
8
|
+
min-width: 0;
|
|
9
|
+
font-family: Roboto, sans-serif;
|
|
10
|
+
-moz-osx-font-smoothing: grayscale;
|
|
11
|
+
-webkit-font-smoothing: antialiased;
|
|
12
|
+
font-size: 0.6875rem;
|
|
13
|
+
font-weight: 400;
|
|
14
|
+
letter-spacing: 0.0333333333em;
|
|
15
|
+
line-height: normal;
|
|
16
|
+
color: rgb(var(--contrast-1200));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:host(limel-helper-line.show) {
|
|
20
|
+
display: flex;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:host(limel-helper-line.invalid) .helper-text {
|
|
24
|
+
color: var(--mdc-theme-error);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.counter {
|
|
28
|
+
flex-shrink: 0;
|
|
29
|
+
margin-left: auto;
|
|
30
|
+
}
|