@limetech/lime-elements 39.29.3 → 39.31.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/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-breadcrumbs_8.cjs.entry.js +7 -1
- package/dist/cjs/limel-form.cjs.entry.js +100 -24
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/form/adapters/widget-adapter.js +3 -1
- package/dist/collection/components/form/fields/array-field.js +7 -1
- package/dist/collection/components/form/fields/schema-field.js +3 -1
- package/dist/collection/components/form/form.js +30 -1
- package/dist/collection/components/form/form.test-schemas.js +88 -0
- package/dist/collection/components/form/templates/array-context.js +11 -0
- package/dist/collection/components/form/templates/array-field-collapsible-item.js +4 -2
- package/dist/collection/components/form/templates/array-field-item.js +4 -1
- package/dist/collection/components/form/templates/common.js +22 -0
- package/dist/collection/components/form/templates/grid-layout.js +3 -0
- package/dist/collection/components/form/templates/object-field.js +29 -12
- package/dist/collection/components/form/templates/row-layout.js +4 -2
- package/dist/collection/components/form/validation-display.js +7 -6
- package/dist/collection/components/input-field/input-field.js +7 -1
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-breadcrumbs_8.entry.js +7 -1
- package/dist/esm/limel-form.entry.js +100 -24
- package/dist/esm/loader.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-263bfd74.entry.js → p-9a08f55a.entry.js} +2 -2
- package/dist/lime-elements/{p-09466969.entry.js → p-e5e8a734.entry.js} +1 -1
- package/dist/types/components/form/form.d.ts +8 -0
- package/dist/types/components/form/form.test-schemas.d.ts +5 -0
- package/dist/types/components/form/templates/array-context.d.ts +12 -0
- package/dist/types/components/form/templates/array-field-collapsible-item.d.ts +14 -1
- package/dist/types/components/form/templates/common.d.ts +13 -0
- package/dist/types/components/form/templates/grid-layout.d.ts +2 -0
- package/dist/types/components/form/templates/object-field.d.ts +8 -0
- package/dist/types/components/form/templates/row-layout.d.ts +8 -3
- package/dist/types/components/form/validation-display.d.ts +3 -5
- package/dist/types/components.d.ts +15 -0
- package/package.json +12 -1
|
@@ -25,20 +25,21 @@ export function hasValue(value) {
|
|
|
25
25
|
/**
|
|
26
26
|
* Determine whether a field should be displayed as invalid.
|
|
27
27
|
*
|
|
28
|
-
* A field with errors is shown as invalid only when the user has
|
|
29
|
-
* interacted with it, it already contains a value, or it is optional.
|
|
30
|
-
* This avoids showing errors on untouched required fields before the
|
|
31
|
-
* user has had a chance to fill them in.
|
|
32
|
-
*
|
|
33
28
|
* @param field - the current field state
|
|
34
29
|
* @param field.hasErrors - whether the field currently has validation errors
|
|
35
30
|
* @param field.modified - whether the user has interacted with the field
|
|
36
31
|
* @param field.hasValue - whether the field holds a non-empty value
|
|
37
32
|
* @param field.required - whether the field is required
|
|
33
|
+
* @param field.revealErrors - whether the form has been asked to reveal
|
|
34
|
+
* all errors at once (typically on a save attempt)
|
|
38
35
|
* @returns `true` when the field should render in an invalid state
|
|
39
36
|
*/
|
|
40
37
|
export function isFieldInvalid(field) {
|
|
41
|
-
return (field.hasErrors &&
|
|
38
|
+
return (field.hasErrors &&
|
|
39
|
+
(field.modified ||
|
|
40
|
+
field.hasValue ||
|
|
41
|
+
!field.required ||
|
|
42
|
+
!!field.revealErrors));
|
|
42
43
|
}
|
|
43
44
|
/**
|
|
44
45
|
* Check whether a field should be marked as required.
|
|
@@ -514,6 +514,12 @@ export class InputField {
|
|
|
514
514
|
if (this.invalid) {
|
|
515
515
|
this.mdcTextField.valid = false;
|
|
516
516
|
}
|
|
517
|
+
else if (!this.wasInvalid) {
|
|
518
|
+
// Reset MDC's internal validity once the consumer no longer
|
|
519
|
+
// considers the field invalid and our own check hasn't
|
|
520
|
+
// flagged it either.
|
|
521
|
+
this.mdcTextField.valid = true;
|
|
522
|
+
}
|
|
517
523
|
this.mdcTextField.disabled = this.disabled || this.readonly;
|
|
518
524
|
}
|
|
519
525
|
/**
|
|
@@ -588,7 +594,7 @@ export class InputField {
|
|
|
588
594
|
if (ariaControls) {
|
|
589
595
|
properties['aria-controls'] = ariaControls;
|
|
590
596
|
}
|
|
591
|
-
return (h(Host, { key: '
|
|
597
|
+
return (h(Host, { key: '883ac6e2bbca1b5491ed08d432101fb03984992a' }, h("limel-notched-outline", { key: 'c0ff8073d2cc6a0960513d7e038643373fe30af3', labelId: this.labelId, label: this.label, required: this.required, invalid: this.invalid || this.isInvalid(), disabled: this.disabled, readonly: this.readonly, hasValue: !!this.value, hasLeadingIcon: !!this.leadingIcon }, h("label", { key: 'c28e3ca982d3c11c521db80212f86d287e2b586b', slot: "content", class: this.getContainerClassList() }, this.renderLeadingIcon(), this.renderPrefix(), this.renderFormattedNumber(), this.renderInput(properties), this.renderSuffix(), this.renderTextarea(properties), this.renderTrailingLinkOrButton())), this.renderHelperLine(), this.renderAutocompleteList()));
|
|
592
598
|
}
|
|
593
599
|
valueWatcher(newValue) {
|
|
594
600
|
if (!this.mdcTextField) {
|
|
@@ -16,5 +16,5 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy(JSON.parse("[[\"limel-icon\",[[1,\"limel-icon\",{\"size\":[513],\"name\":[513],\"badge\":[516],\"svgClass\":[513,\"svg-class\"]},null,{\"name\":[{\"loadIcon\":0}],\"svgClass\":[{\"applySvgClass\":0}]}]]],[\"limel-text-editor\",[[17,\"limel-text-editor\",{\"contentType\":[1,\"content-type\"],\"language\":[513],\"disabled\":[516],\"readonly\":[516],\"helperText\":[513,\"helper-text\"],\"placeholder\":[513],\"label\":[513],\"invalid\":[516],\"value\":[513],\"customElements\":[16],\"triggers\":[16],\"required\":[516],\"allowResize\":[516,\"allow-resize\"],\"ui\":[513]}]]],[\"limel-file-viewer\",[[1,\"limel-file-viewer\",{\"url\":[513],\"filename\":[513],\"alt\":[513],\"allowFullscreen\":[516,\"allow-fullscreen\"],\"allowOpenInNewTab\":[516,\"allow-open-in-new-tab\"],\"allowDownload\":[516,\"allow-download\"],\"language\":[1],\"officeViewer\":[513,\"office-viewer\"],\"actions\":[16],\"isFullscreen\":[32],\"fileType\":[32],\"loading\":[32],\"fileUrl\":[32],\"email\":[32]},null,{\"url\":[{\"watchUrl\":0}]}]]],[\"limel-card\",[[257,\"limel-card\",{\"heading\":[513],\"subheading\":[513],\"image\":[16],\"icon\":[513],\"value\":[1],\"actions\":[16],\"clickable\":[516],\"orientation\":[513],\"selected\":[516],\"show3dEffect\":[516,\"show-3d-effect\"],\"canScrollUp\":[32],\"canScrollDown\":[32]}]]],[\"limel-file\",[[1,\"limel-file\",{\"value\":[16],\"label\":[513],\"required\":[516],\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"accept\":[513],\"language\":[1]}]]],[\"limel-code-diff\",[[1,\"limel-code-diff\",{\"oldValue\":[1,\"old-value\"],\"newValue\":[1,\"new-value\"],\"oldHeading\":[513,\"old-heading\"],\"newHeading\":[513,\"new-heading\"],\"layout\":[513],\"contextLines\":[514,\"context-lines\"],\"lineWrapping\":[516,\"line-wrapping\"],\"language\":[513],\"reformatJson\":[516,\"reformat-json\"],\"translationLanguage\":[513,\"translation-language\"],\"diffResult\":[32],\"liveAnnouncement\":[32],\"copyState\":[32],\"searchVisible\":[32],\"searchTerm\":[32],\"currentMatchIndex\":[32]},null,{\"oldValue\":[{\"watchInputs\":0}],\"newValue\":[{\"watchInputs\":0}],\"contextLines\":[{\"watchInputs\":0}],\"reformatJson\":[{\"watchInputs\":0}],\"layout\":[{\"watchInputs\":0}]}]]],[\"limel-list-item\",[[0,\"limel-list-item\",{\"language\":[513],\"value\":[8],\"text\":[513],\"secondaryText\":[513,\"secondary-text\"],\"disabled\":[516],\"icon\":[1],\"iconSize\":[513,\"icon-size\"],\"badgeIcon\":[516,\"badge-icon\"],\"selected\":[516],\"actions\":[16],\"primaryComponent\":[16],\"image\":[16],\"type\":[513]}]]],[\"limel-picker\",[[17,\"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\"],\"language\":[1],\"required\":[4],\"invalid\":[516],\"value\":[16],\"searcher\":[16],\"allItems\":[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]},null,{\"disabled\":[{\"onDisabledChange\":0}],\"value\":[{\"onChangeValue\":0}]}]]],[\"limel-split-button\",[[17,\"limel-split-button\",{\"label\":[513],\"primary\":[516],\"icon\":[513],\"disabled\":[516],\"loading\":[516],\"loadingFailed\":[516,\"loading-failed\"],\"items\":[16]}]]],[\"limel-color-picker\",[[1,\"limel-color-picker\",{\"value\":[513],\"label\":[513],\"helperText\":[513,\"helper-text\"],\"tooltipLabel\":[513,\"tooltip-label\"],\"required\":[516],\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"placeholder\":[513],\"manualInput\":[516,\"manual-input\"],\"palette\":[16],\"paletteColumnCount\":[514,\"palette-column-count\"],\"isOpen\":[32]}]]],[\"limel-profile-picture\",[[1,\"limel-profile-picture\",{\"language\":[513],\"label\":[513],\"icon\":[1],\"helperText\":[1,\"helper-text\"],\"disabled\":[516],\"readonly\":[516],\"required\":[516],\"invalid\":[516],\"loading\":[516],\"value\":[1],\"imageFit\":[513,\"image-fit\"],\"accept\":[513],\"resize\":[16],\"objectUrl\":[32],\"imageError\":[32],\"isErrorMessagePopoverOpen\":[32]},null,{\"value\":[{\"handleValueChange\":0}]}]]],[\"limel-dock\",[[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-snackbar\",[[1,\"limel-snackbar\",{\"open\":[516],\"message\":[1],\"timeout\":[514],\"actionText\":[1,\"action-text\"],\"dismissible\":[4],\"multiline\":[4],\"language\":[1],\"offset\":[32],\"isOpen\":[32],\"closing\":[32],\"show\":[64]},[[0,\"changeOffset\",\"onChangeIndex\"]],{\"open\":[{\"watchOpen\":0}]}]]],[\"limel-date-picker\",[[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],\"internalFormat\":[32],\"showPortal\":[32]}]]],[\"limel-button-group\",[[1,\"limel-button-group\",{\"value\":[16],\"disabled\":[516],\"selectedButtonId\":[32]},null,{\"value\":[{\"valueChanged\":0}]}]]],[\"limel-chart\",[[1,\"limel-chart\",{\"language\":[513],\"accessibleLabel\":[513,\"accessible-label\"],\"accessibleItemsLabel\":[513,\"accessible-items-label\"],\"accessibleValuesLabel\":[513,\"accessible-values-label\"],\"displayAxisLabels\":[516,\"display-axis-labels\"],\"displayItemText\":[516,\"display-item-text\"],\"displayItemValue\":[516,\"display-item-value\"],\"items\":[16],\"type\":[513],\"orientation\":[513],\"maxValue\":[514,\"max-value\"],\"axisIncrement\":[514,\"axis-increment\"],\"loading\":[516]},null,{\"items\":[{\"handleChange\":0}],\"axisIncrement\":[{\"handleChange\":0}],\"maxValue\":[{\"handleChange\":0}]}]]],[\"limel-select\",[[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]},null,{\"value\":[{\"resetHasChanged\":0}],\"options\":[{\"resetHasChanged\":0},{\"updateHasPrimaryComponent\":0}],\"menuOpen\":[{\"watchOpen\":0}]}]]],[\"limel-help\",[[1,\"limel-help\",{\"value\":[1],\"trigger\":[1],\"readMoreLink\":[16],\"openDirection\":[513,\"open-direction\"],\"isOpen\":[32]}]]],[\"limel-info-tile\",[[257,\"limel-info-tile\",{\"value\":[520],\"icon\":[1],\"label\":[513],\"prefix\":[513],\"suffix\":[513],\"disabled\":[516],\"reducedPresence\":[516,\"reduced-presence\"],\"badge\":[520],\"loading\":[516],\"link\":[16],\"progress\":[16],\"hasPrimarySlot\":[32]}]]],[\"limel-table\",[[1,\"limel-table\",{\"data\":[16],\"columns\":[16],\"mode\":[513],\"layout\":[513],\"pageSize\":[514,\"page-size\"],\"totalRows\":[514,\"total-rows\"],\"sorting\":[16],\"activeRow\":[1040],\"movableColumns\":[516,\"movable-columns\"],\"movableRows\":[516,\"movable-rows\"],\"sortableColumns\":[516,\"sortable-columns\"],\"loading\":[516],\"page\":[514],\"emptyMessage\":[1,\"empty-message\"],\"aggregates\":[16],\"selectable\":[516],\"selection\":[16],\"language\":[513],\"paginationLocation\":[513,\"pagination-location\"]},null,{\"totalRows\":[{\"totalRowsChanged\":0}],\"pageSize\":[{\"pageSizeChanged\":0}],\"page\":[{\"pageChanged\":0}],\"activeRow\":[{\"activeRowChanged\":0}],\"data\":[{\"updateData\":0}],\"columns\":[{\"updateColumns\":0}],\"aggregates\":[{\"updateAggregates\":0}],\"selection\":[{\"updateSelection\":0}],\"selectable\":[{\"updateSelectable\":0}],\"movableRows\":[{\"updateMovableRows\":0}],\"sortableColumns\":[{\"updateSortableColumns\":0}],\"sorting\":[{\"updateSorting\":0}]}]]],[\"limel-drag-handle\",[[0,\"limel-drag-handle\",{\"dragDirection\":[513,\"drag-direction\"],\"tooltipOpenDirection\":[513,\"tooltip-open-direction\"],\"language\":[513]}]]],[\"limel-shortcut\",[[1,\"limel-shortcut\",{\"icon\":[513],\"label\":[513],\"disabled\":[516],\"badge\":[520],\"link\":[16]}]]],[\"limel-switch\",[[1,\"limel-switch\",{\"label\":[513],\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"value\":[516],\"helperText\":[513,\"helper-text\"],\"readonlyLabels\":[16],\"fieldId\":[32]}]]],[\"limel-tab-panel\",[[257,\"limel-tab-panel\",{\"tabs\":[1040]},null,{\"tabs\":[{\"tabsChanged\":0}]}]]],[\"limel-code-editor\",[[1,\"limel-code-editor\",{\"value\":[1],\"language\":[1],\"readonly\":[516],\"disabled\":[516],\"invalid\":[516],\"required\":[516],\"label\":[513],\"helperText\":[513,\"helper-text\"],\"lineNumbers\":[516,\"line-numbers\"],\"lineWrapping\":[516,\"line-wrapping\"],\"fold\":[516],\"lint\":[516],\"colorScheme\":[513,\"color-scheme\"],\"translationLanguage\":[513,\"translation-language\"],\"showCopyButton\":[516,\"show-copy-button\"],\"random\":[32],\"wasCopied\":[32]},null,{\"value\":[{\"watchValue\":0}],\"disabled\":[{\"watchDisabled\":0}],\"readonly\":[{\"watchReadonly\":0}],\"invalid\":[{\"watchInvalid\":0}],\"required\":[{\"watchRequired\":0}],\"helperText\":[{\"watchHelperText\":0}]}]]],[\"limel-dialog\",[[257,\"limel-dialog\",{\"heading\":[1],\"fullscreen\":[516],\"open\":[1540],\"closingActions\":[16]},null,{\"open\":[{\"watchHandler\":0}],\"closingActions\":[{\"closingActionsChanged\":0}]}]]],[\"limel-menu-item-meta\",[[1,\"limel-menu-item-meta\",{\"commandText\":[513,\"command-text\"],\"hotkey\":[513],\"disabled\":[516],\"badge\":[8],\"showChevron\":[4,\"show-chevron\"]}]]],[\"limel-progress-flow\",[[1,\"limel-progress-flow\",{\"flowItems\":[16],\"disabled\":[4],\"readonly\":[4]}]]],[\"limel-slider\",[[1,\"limel-slider\",{\"disabled\":[516],\"readonly\":[516],\"factor\":[514],\"label\":[513],\"helperText\":[513,\"helper-text\"],\"required\":[516],\"invalid\":[516],\"displaysPercentageColors\":[516,\"displays-percentage-colors\"],\"unit\":[513],\"value\":[514],\"valuemax\":[514],\"valuemin\":[514],\"step\":[514],\"percentageClass\":[32],\"displayValue\":[32]},null,{\"value\":[{\"watchValue\":0}]}]]],[\"limel-banner\",[[257,\"limel-banner\",{\"message\":[513],\"icon\":[513],\"isOpen\":[32],\"open\":[64],\"close\":[64]}]]],[\"limel-form\",[[1,\"limel-form\",{\"schema\":[16],\"value\":[16],\"disabled\":[4],\"propsFactory\":[16],\"transformErrors\":[16],\"errors\":[16]}]]],[\"limel-radio-button-group\",[[0,\"limel-radio-button-group\",{\"items\":[16],\"selectedItem\":[16],\"disabled\":[516],\"badgeIcons\":[516,\"badge-icons\"],\"maxLinesSecondaryText\":[514,\"max-lines-secondary-text\"]}]]],[\"limel-ai-avatar\",[[1,\"limel-ai-avatar\",{\"isThinking\":[516,\"is-thinking\"],\"mode\":[513],\"variant\":[513],\"language\":[513]},null,{\"isThinking\":[{\"onIsThinkingChange\":0}]}]]],[\"limel-config\",[[1,\"limel-config\",{\"config\":[16]}]]],[\"limel-flex-container\",[[257,\"limel-flex-container\",{\"direction\":[513],\"justify\":[513],\"align\":[513],\"reverse\":[516]}]]],[\"limel-grid\",[[257,\"limel-grid\"]]],[\"limel-masonry-layout\",[[257,\"limel-masonry-layout\",{\"ordered\":[516],\"containerHeight\":[32]},null,{\"ordered\":[{\"onOrderedChange\":0}]}]]],[\"limel-email-viewer\",[[257,\"limel-email-viewer\",{\"email\":[16],\"fallbackUrl\":[513,\"fallback-url\"],\"language\":[513],\"allowRemoteImages\":[4,\"allow-remote-images\"],\"allowRemoteImagesState\":[32]},null,{\"email\":[{\"resetAllowRemoteImages\":0}]}]]],[\"limel-prosemirror-adapter\",[[17,\"limel-prosemirror-adapter\",{\"contentType\":[1,\"content-type\"],\"value\":[1],\"language\":[513],\"disabled\":[516],\"customElements\":[16],\"triggerCharacters\":[16],\"ui\":[1],\"view\":[32],\"actionBarItems\":[32],\"link\":[32],\"isLinkMenuOpen\":[32]},null,{\"value\":[{\"watchValue\":0}]}]]],[\"limel-dock-button\",[[0,\"limel-dock-button\",{\"item\":[16],\"expanded\":[516],\"useMobileLayout\":[516,\"use-mobile-layout\"],\"isOpen\":[32]},null,{\"isOpen\":[{\"openWatcher\":0}]}]]],[\"limel-color-picker-palette\",[[17,\"limel-color-picker-palette\",{\"value\":[513],\"label\":[513],\"helperText\":[513,\"helper-text\"],\"placeholder\":[513],\"required\":[516],\"invalid\":[516],\"manualInput\":[516,\"manual-input\"],\"columnCount\":[514,\"column-count\"],\"palette\":[16]}]]],[\"limel-checkbox\",[[1,\"limel-checkbox\",{\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"label\":[513],\"helperText\":[513,\"helper-text\"],\"checked\":[516],\"indeterminate\":[516],\"required\":[516],\"readonlyLabels\":[16],\"modified\":[32]},null,{\"checked\":[{\"handleCheckedChange\":0}],\"indeterminate\":[{\"handleIndeterminateChange\":0}],\"readonly\":[{\"handleReadonlyChange\":0}]}]]],[\"limel-tab-bar\",[[1,\"limel-tab-bar\",{\"tabs\":[1040],\"canScrollLeft\":[32],\"canScrollRight\":[32]},[[9,\"resize\",\"handleWindowResize\"]],{\"tabs\":[{\"tabsChanged\":0}]}]]],[\"limel-callout\",[[257,\"limel-callout\",{\"heading\":[513],\"icon\":[513],\"type\":[513],\"language\":[1]}]]],[\"limel-header\",[[257,\"limel-header\",{\"icon\":[1],\"heading\":[1],\"subheading\":[1],\"supportingText\":[1,\"supporting-text\"],\"subheadingDivider\":[1,\"subheading-divider\"]}]]],[\"limel-help-content\",[[1,\"limel-help-content\",{\"value\":[1],\"readMoreLink\":[16]}]]],[\"limel-progress-flow-item\",[[0,\"limel-progress-flow-item\",{\"item\":[16],\"disabled\":[4],\"readonly\":[4],\"currentStep\":[4,\"current-step\"]}]]],[\"limel-circular-progress\",[[1,\"limel-circular-progress\",{\"value\":[2],\"maxValue\":[2,\"max-value\"],\"prefix\":[513],\"suffix\":[1],\"displayPercentageColors\":[4,\"display-percentage-colors\"],\"size\":[513]}]]],[\"limel-flatpickr-adapter\",[[1,\"limel-flatpickr-adapter\",{\"value\":[16],\"type\":[1],\"format\":[1],\"isOpen\":[4,\"is-open\"],\"inputElement\":[16],\"language\":[1],\"formatter\":[16]}]]],[\"limel-radio-button\",[[0,\"limel-radio-button\",{\"checked\":[516],\"disabled\":[516],\"id\":[1],\"label\":[1],\"onChange\":[16]}]]],[\"limel-chip-set\",[[17,\"limel-chip-set\",{\"value\":[16],\"type\":[513],\"label\":[513],\"helperText\":[513,\"helper-text\"],\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"inputType\":[513,\"input-type\"],\"maxItems\":[514,\"max-items\"],\"required\":[516],\"searchLabel\":[513,\"search-label\"],\"emptyInputOnBlur\":[516,\"empty-input-on-blur\"],\"emptyInputOnChange\":[516,\"empty-input-on-change\"],\"clearAllButton\":[4,\"clear-all-button\"],\"leadingIcon\":[513,\"leading-icon\"],\"delimiter\":[513],\"autocomplete\":[513],\"language\":[1],\"editMode\":[32],\"textValue\":[32],\"blurred\":[32],\"inputChipIndexSelected\":[32],\"selectedChipIds\":[32],\"getEditMode\":[64],\"setFocus\":[64],\"emptyInput\":[64]},null,{\"value\":[{\"handleChangeChips\":0}]}]]],[\"limel-button\",[[17,\"limel-button\",{\"label\":[513],\"primary\":[516],\"outlined\":[516],\"icon\":[513],\"disabled\":[516],\"loading\":[516],\"loadingFailed\":[516,\"loading-failed\"],\"justLoaded\":[32]},null,{\"loading\":[{\"loadingWatcher\":0}]}]]],[\"limel-hotkey_4\",[[1,\"limel-tooltip\",{\"elementId\":[513,\"element-id\"],\"label\":[513],\"helperLabel\":[513,\"helper-label\"],\"hotkey\":[513],\"maxlength\":[514],\"openDirection\":[513,\"open-direction\"],\"open\":[32]}],[1,\"limel-tooltip-content\",{\"label\":[513],\"helperLabel\":[513,\"helper-label\"],\"maxlength\":[514],\"hotkey\":[513]}],[1,\"limel-hotkey\",{\"value\":[513],\"disabled\":[516]}],[257,\"limel-portal\",{\"openDirection\":[513,\"open-direction\"],\"position\":[513],\"containerId\":[513,\"container-id\"],\"containerStyle\":[16],\"inheritParentWidth\":[516,\"inherit-parent-width\"],\"visible\":[516],\"anchor\":[16]},null,{\"visible\":[{\"onVisible\":0}]}]]],[\"limel-text-editor-link-menu\",[[1,\"limel-text-editor-link-menu\",{\"link\":[16],\"language\":[513],\"isOpen\":[516,\"is-open\"]}]]],[\"limel-collapsible-section\",[[257,\"limel-collapsible-section\",{\"isOpen\":[1540,\"is-open\"],\"header\":[513],\"icon\":[1],\"invalid\":[516],\"actions\":[16],\"language\":[513]}]]],[\"limel-3d-hover-effect-glow\",[[1,\"limel-3d-hover-effect-glow\"]]],[\"limel-file-dropzone_2\",[[257,\"limel-file-dropzone\",{\"accept\":[513],\"disabled\":[4],\"text\":[1],\"helperText\":[1,\"helper-text\"],\"hasFileToDrop\":[32]}],[257,\"limel-file-input\",{\"accept\":[513],\"disabled\":[516],\"multiple\":[516]}]]],[\"limel-dynamic-label\",[[1,\"limel-dynamic-label\",{\"value\":[8],\"defaultLabel\":[16],\"labels\":[16]}]]],[\"limel-icon-button\",[[17,\"limel-icon-button\",{\"icon\":[1],\"elevated\":[516],\"label\":[513],\"helperLabel\":[513,\"helper-label\"],\"disabled\":[516]}]]],[\"limel-markdown\",[[1,\"limel-markdown\",{\"value\":[1],\"whitelist\":[16],\"lazyLoadImages\":[516,\"lazy-load-images\"],\"removeEmptyParagraphs\":[516,\"remove-empty-paragraphs\"],\"adaptColorContrast\":[516,\"adapt-color-contrast\"]},null,{\"value\":[{\"textChanged\":0}],\"whitelist\":[{\"handleWhitelistChange\":0}],\"removeEmptyParagraphs\":[{\"handleRemoveEmptyParagraphsChange\":0}],\"adaptColorContrast\":[{\"handleAdaptColorContrastChange\":0}]}]]],[\"limel-popover_2\",[[257,\"limel-popover\",{\"open\":[4],\"openDirection\":[513,\"open-direction\"]},null,{\"open\":[{\"watchOpen\":0}]}],[1,\"limel-popover-surface\",{\"contentCollection\":[16]}]]],[\"limel-badge\",[[1,\"limel-badge\",{\"label\":[520]}]]],[\"limel-helper-line\",[[1,\"limel-helper-line\",{\"helperText\":[513,\"helper-text\"],\"length\":[514],\"maxLength\":[514,\"max-length\"],\"invalid\":[516],\"helperTextId\":[513,\"helper-text-id\"]}]]],[\"limel-breadcrumbs_8\",[[257,\"limel-menu\",{\"items\":[16],\"disabled\":[516],\"openDirection\":[513,\"open-direction\"],\"surfaceWidth\":[513,\"surface-width\"],\"open\":[1540],\"badgeIcons\":[516,\"badge-icons\"],\"gridLayout\":[516,\"grid-layout\"],\"loading\":[516],\"currentSubMenu\":[1040],\"rootItem\":[16],\"searcher\":[16],\"searchPlaceholder\":[1,\"search-placeholder\"],\"emptyResultMessage\":[1,\"empty-result-message\"],\"keepOpenOnSelect\":[516,\"keep-open-on-select\"],\"loadingSubItems\":[32],\"searchValue\":[32],\"searchResults\":[32]},null,{\"items\":[{\"itemsWatcher\":0}],\"open\":[{\"openWatcher\":0}]}],[1,\"limel-breadcrumbs\",{\"items\":[16],\"divider\":[1]}],[17,\"limel-menu-list\",{\"items\":[16],\"badgeIcons\":[4,\"badge-icons\"],\"iconSize\":[1,\"icon-size\"]},null,{\"items\":[{\"itemsChanged\":0}]}],[17,\"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\"],\"locale\":[513],\"isFocused\":[32],\"wasInvalid\":[32],\"showCompletions\":[32],\"getSelectionStart\":[64],\"getSelectionEnd\":[64],\"getSelectionDirection\":[64]},null,{\"value\":[{\"valueWatcher\":0}],\"completions\":[{\"completionsWatcher\":0}]}],[257,\"limel-menu-surface\",{\"open\":[4],\"allowClicksElement\":[16]}],[1,\"limel-spinner\",{\"size\":[513],\"limeBranded\":[4,\"lime-branded\"]}],[17,\"limel-list\",{\"items\":[16],\"badgeIcons\":[4,\"badge-icons\"],\"iconSize\":[1,\"icon-size\"],\"type\":[1],\"maxLinesSecondaryText\":[2,\"max-lines-secondary-text\"]},null,{\"type\":[{\"handleType\":0}],\"items\":[{\"itemsChanged\":0}]}],[260,\"limel-notched-outline\",{\"required\":[516],\"readonly\":[516],\"invalid\":[516],\"disabled\":[516],\"label\":[513],\"labelId\":[513,\"label-id\"],\"hasValue\":[516,\"has-value\"],\"hasLeadingIcon\":[516,\"has-leading-icon\"],\"hasFloatingLabel\":[516,\"has-floating-label\"]}]]],[\"limel-chip_2\",[[17,\"limel-chip\",{\"language\":[513],\"text\":[513],\"icon\":[1],\"image\":[16],\"link\":[16],\"badge\":[520],\"disabled\":[516],\"readonly\":[516],\"selected\":[516],\"invalid\":[516],\"removable\":[516],\"type\":[513],\"loading\":[516],\"progress\":[514],\"identifier\":[520],\"size\":[513],\"menuItems\":[16]}],[1,\"limel-linear-progress\",{\"language\":[513],\"value\":[514],\"indeterminate\":[516],\"accessibleLabel\":[513,\"accessible-label\"]},null,{\"value\":[{\"watchValue\":0}]}]]],[\"limel-action-bar_3\",[[1,\"limel-action-bar\",{\"actions\":[16],\"accessibleLabel\":[513,\"accessible-label\"],\"language\":[1],\"layout\":[513],\"collapsible\":[516],\"openDirection\":[513,\"open-direction\"],\"overflowCutoff\":[32]}],[0,\"limel-action-bar-overflow-menu\",{\"items\":[16],\"openDirection\":[513,\"open-direction\"]}],[0,\"limel-action-bar-item\",{\"item\":[16],\"isVisible\":[516,\"is-visible\"],\"selected\":[516]}]]]]"), options);
|
|
19
|
+
return bootstrapLazy(JSON.parse("[[\"limel-icon\",[[1,\"limel-icon\",{\"size\":[513],\"name\":[513],\"badge\":[516],\"svgClass\":[513,\"svg-class\"]},null,{\"name\":[{\"loadIcon\":0}],\"svgClass\":[{\"applySvgClass\":0}]}]]],[\"limel-text-editor\",[[17,\"limel-text-editor\",{\"contentType\":[1,\"content-type\"],\"language\":[513],\"disabled\":[516],\"readonly\":[516],\"helperText\":[513,\"helper-text\"],\"placeholder\":[513],\"label\":[513],\"invalid\":[516],\"value\":[513],\"customElements\":[16],\"triggers\":[16],\"required\":[516],\"allowResize\":[516,\"allow-resize\"],\"ui\":[513]}]]],[\"limel-file-viewer\",[[1,\"limel-file-viewer\",{\"url\":[513],\"filename\":[513],\"alt\":[513],\"allowFullscreen\":[516,\"allow-fullscreen\"],\"allowOpenInNewTab\":[516,\"allow-open-in-new-tab\"],\"allowDownload\":[516,\"allow-download\"],\"language\":[1],\"officeViewer\":[513,\"office-viewer\"],\"actions\":[16],\"isFullscreen\":[32],\"fileType\":[32],\"loading\":[32],\"fileUrl\":[32],\"email\":[32]},null,{\"url\":[{\"watchUrl\":0}]}]]],[\"limel-card\",[[257,\"limel-card\",{\"heading\":[513],\"subheading\":[513],\"image\":[16],\"icon\":[513],\"value\":[1],\"actions\":[16],\"clickable\":[516],\"orientation\":[513],\"selected\":[516],\"show3dEffect\":[516,\"show-3d-effect\"],\"canScrollUp\":[32],\"canScrollDown\":[32]}]]],[\"limel-file\",[[1,\"limel-file\",{\"value\":[16],\"label\":[513],\"required\":[516],\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"accept\":[513],\"language\":[1]}]]],[\"limel-code-diff\",[[1,\"limel-code-diff\",{\"oldValue\":[1,\"old-value\"],\"newValue\":[1,\"new-value\"],\"oldHeading\":[513,\"old-heading\"],\"newHeading\":[513,\"new-heading\"],\"layout\":[513],\"contextLines\":[514,\"context-lines\"],\"lineWrapping\":[516,\"line-wrapping\"],\"language\":[513],\"reformatJson\":[516,\"reformat-json\"],\"translationLanguage\":[513,\"translation-language\"],\"diffResult\":[32],\"liveAnnouncement\":[32],\"copyState\":[32],\"searchVisible\":[32],\"searchTerm\":[32],\"currentMatchIndex\":[32]},null,{\"oldValue\":[{\"watchInputs\":0}],\"newValue\":[{\"watchInputs\":0}],\"contextLines\":[{\"watchInputs\":0}],\"reformatJson\":[{\"watchInputs\":0}],\"layout\":[{\"watchInputs\":0}]}]]],[\"limel-list-item\",[[0,\"limel-list-item\",{\"language\":[513],\"value\":[8],\"text\":[513],\"secondaryText\":[513,\"secondary-text\"],\"disabled\":[516],\"icon\":[1],\"iconSize\":[513,\"icon-size\"],\"badgeIcon\":[516,\"badge-icon\"],\"selected\":[516],\"actions\":[16],\"primaryComponent\":[16],\"image\":[16],\"type\":[513]}]]],[\"limel-picker\",[[17,\"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\"],\"language\":[1],\"required\":[4],\"invalid\":[516],\"value\":[16],\"searcher\":[16],\"allItems\":[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]},null,{\"disabled\":[{\"onDisabledChange\":0}],\"value\":[{\"onChangeValue\":0}]}]]],[\"limel-split-button\",[[17,\"limel-split-button\",{\"label\":[513],\"primary\":[516],\"icon\":[513],\"disabled\":[516],\"loading\":[516],\"loadingFailed\":[516,\"loading-failed\"],\"items\":[16]}]]],[\"limel-color-picker\",[[1,\"limel-color-picker\",{\"value\":[513],\"label\":[513],\"helperText\":[513,\"helper-text\"],\"tooltipLabel\":[513,\"tooltip-label\"],\"required\":[516],\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"placeholder\":[513],\"manualInput\":[516,\"manual-input\"],\"palette\":[16],\"paletteColumnCount\":[514,\"palette-column-count\"],\"isOpen\":[32]}]]],[\"limel-profile-picture\",[[1,\"limel-profile-picture\",{\"language\":[513],\"label\":[513],\"icon\":[1],\"helperText\":[1,\"helper-text\"],\"disabled\":[516],\"readonly\":[516],\"required\":[516],\"invalid\":[516],\"loading\":[516],\"value\":[1],\"imageFit\":[513,\"image-fit\"],\"accept\":[513],\"resize\":[16],\"objectUrl\":[32],\"imageError\":[32],\"isErrorMessagePopoverOpen\":[32]},null,{\"value\":[{\"handleValueChange\":0}]}]]],[\"limel-dock\",[[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-snackbar\",[[1,\"limel-snackbar\",{\"open\":[516],\"message\":[1],\"timeout\":[514],\"actionText\":[1,\"action-text\"],\"dismissible\":[4],\"multiline\":[4],\"language\":[1],\"offset\":[32],\"isOpen\":[32],\"closing\":[32],\"show\":[64]},[[0,\"changeOffset\",\"onChangeIndex\"]],{\"open\":[{\"watchOpen\":0}]}]]],[\"limel-date-picker\",[[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],\"internalFormat\":[32],\"showPortal\":[32]}]]],[\"limel-button-group\",[[1,\"limel-button-group\",{\"value\":[16],\"disabled\":[516],\"selectedButtonId\":[32]},null,{\"value\":[{\"valueChanged\":0}]}]]],[\"limel-chart\",[[1,\"limel-chart\",{\"language\":[513],\"accessibleLabel\":[513,\"accessible-label\"],\"accessibleItemsLabel\":[513,\"accessible-items-label\"],\"accessibleValuesLabel\":[513,\"accessible-values-label\"],\"displayAxisLabels\":[516,\"display-axis-labels\"],\"displayItemText\":[516,\"display-item-text\"],\"displayItemValue\":[516,\"display-item-value\"],\"items\":[16],\"type\":[513],\"orientation\":[513],\"maxValue\":[514,\"max-value\"],\"axisIncrement\":[514,\"axis-increment\"],\"loading\":[516]},null,{\"items\":[{\"handleChange\":0}],\"axisIncrement\":[{\"handleChange\":0}],\"maxValue\":[{\"handleChange\":0}]}]]],[\"limel-select\",[[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]},null,{\"value\":[{\"resetHasChanged\":0}],\"options\":[{\"resetHasChanged\":0},{\"updateHasPrimaryComponent\":0}],\"menuOpen\":[{\"watchOpen\":0}]}]]],[\"limel-help\",[[1,\"limel-help\",{\"value\":[1],\"trigger\":[1],\"readMoreLink\":[16],\"openDirection\":[513,\"open-direction\"],\"isOpen\":[32]}]]],[\"limel-info-tile\",[[257,\"limel-info-tile\",{\"value\":[520],\"icon\":[1],\"label\":[513],\"prefix\":[513],\"suffix\":[513],\"disabled\":[516],\"reducedPresence\":[516,\"reduced-presence\"],\"badge\":[520],\"loading\":[516],\"link\":[16],\"progress\":[16],\"hasPrimarySlot\":[32]}]]],[\"limel-table\",[[1,\"limel-table\",{\"data\":[16],\"columns\":[16],\"mode\":[513],\"layout\":[513],\"pageSize\":[514,\"page-size\"],\"totalRows\":[514,\"total-rows\"],\"sorting\":[16],\"activeRow\":[1040],\"movableColumns\":[516,\"movable-columns\"],\"movableRows\":[516,\"movable-rows\"],\"sortableColumns\":[516,\"sortable-columns\"],\"loading\":[516],\"page\":[514],\"emptyMessage\":[1,\"empty-message\"],\"aggregates\":[16],\"selectable\":[516],\"selection\":[16],\"language\":[513],\"paginationLocation\":[513,\"pagination-location\"]},null,{\"totalRows\":[{\"totalRowsChanged\":0}],\"pageSize\":[{\"pageSizeChanged\":0}],\"page\":[{\"pageChanged\":0}],\"activeRow\":[{\"activeRowChanged\":0}],\"data\":[{\"updateData\":0}],\"columns\":[{\"updateColumns\":0}],\"aggregates\":[{\"updateAggregates\":0}],\"selection\":[{\"updateSelection\":0}],\"selectable\":[{\"updateSelectable\":0}],\"movableRows\":[{\"updateMovableRows\":0}],\"sortableColumns\":[{\"updateSortableColumns\":0}],\"sorting\":[{\"updateSorting\":0}]}]]],[\"limel-drag-handle\",[[0,\"limel-drag-handle\",{\"dragDirection\":[513,\"drag-direction\"],\"tooltipOpenDirection\":[513,\"tooltip-open-direction\"],\"language\":[513]}]]],[\"limel-shortcut\",[[1,\"limel-shortcut\",{\"icon\":[513],\"label\":[513],\"disabled\":[516],\"badge\":[520],\"link\":[16]}]]],[\"limel-switch\",[[1,\"limel-switch\",{\"label\":[513],\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"value\":[516],\"helperText\":[513,\"helper-text\"],\"readonlyLabels\":[16],\"fieldId\":[32]}]]],[\"limel-tab-panel\",[[257,\"limel-tab-panel\",{\"tabs\":[1040]},null,{\"tabs\":[{\"tabsChanged\":0}]}]]],[\"limel-code-editor\",[[1,\"limel-code-editor\",{\"value\":[1],\"language\":[1],\"readonly\":[516],\"disabled\":[516],\"invalid\":[516],\"required\":[516],\"label\":[513],\"helperText\":[513,\"helper-text\"],\"lineNumbers\":[516,\"line-numbers\"],\"lineWrapping\":[516,\"line-wrapping\"],\"fold\":[516],\"lint\":[516],\"colorScheme\":[513,\"color-scheme\"],\"translationLanguage\":[513,\"translation-language\"],\"showCopyButton\":[516,\"show-copy-button\"],\"random\":[32],\"wasCopied\":[32]},null,{\"value\":[{\"watchValue\":0}],\"disabled\":[{\"watchDisabled\":0}],\"readonly\":[{\"watchReadonly\":0}],\"invalid\":[{\"watchInvalid\":0}],\"required\":[{\"watchRequired\":0}],\"helperText\":[{\"watchHelperText\":0}]}]]],[\"limel-dialog\",[[257,\"limel-dialog\",{\"heading\":[1],\"fullscreen\":[516],\"open\":[1540],\"closingActions\":[16]},null,{\"open\":[{\"watchHandler\":0}],\"closingActions\":[{\"closingActionsChanged\":0}]}]]],[\"limel-menu-item-meta\",[[1,\"limel-menu-item-meta\",{\"commandText\":[513,\"command-text\"],\"hotkey\":[513],\"disabled\":[516],\"badge\":[8],\"showChevron\":[4,\"show-chevron\"]}]]],[\"limel-progress-flow\",[[1,\"limel-progress-flow\",{\"flowItems\":[16],\"disabled\":[4],\"readonly\":[4]}]]],[\"limel-slider\",[[1,\"limel-slider\",{\"disabled\":[516],\"readonly\":[516],\"factor\":[514],\"label\":[513],\"helperText\":[513,\"helper-text\"],\"required\":[516],\"invalid\":[516],\"displaysPercentageColors\":[516,\"displays-percentage-colors\"],\"unit\":[513],\"value\":[514],\"valuemax\":[514],\"valuemin\":[514],\"step\":[514],\"percentageClass\":[32],\"displayValue\":[32]},null,{\"value\":[{\"watchValue\":0}]}]]],[\"limel-banner\",[[257,\"limel-banner\",{\"message\":[513],\"icon\":[513],\"isOpen\":[32],\"open\":[64],\"close\":[64]}]]],[\"limel-form\",[[1,\"limel-form\",{\"schema\":[16],\"value\":[16],\"disabled\":[4],\"propsFactory\":[16],\"transformErrors\":[16],\"errors\":[16],\"revealErrors\":[4,\"reveal-errors\"]}]]],[\"limel-radio-button-group\",[[0,\"limel-radio-button-group\",{\"items\":[16],\"selectedItem\":[16],\"disabled\":[516],\"badgeIcons\":[516,\"badge-icons\"],\"maxLinesSecondaryText\":[514,\"max-lines-secondary-text\"]}]]],[\"limel-ai-avatar\",[[1,\"limel-ai-avatar\",{\"isThinking\":[516,\"is-thinking\"],\"mode\":[513],\"variant\":[513],\"language\":[513]},null,{\"isThinking\":[{\"onIsThinkingChange\":0}]}]]],[\"limel-config\",[[1,\"limel-config\",{\"config\":[16]}]]],[\"limel-flex-container\",[[257,\"limel-flex-container\",{\"direction\":[513],\"justify\":[513],\"align\":[513],\"reverse\":[516]}]]],[\"limel-grid\",[[257,\"limel-grid\"]]],[\"limel-masonry-layout\",[[257,\"limel-masonry-layout\",{\"ordered\":[516],\"containerHeight\":[32]},null,{\"ordered\":[{\"onOrderedChange\":0}]}]]],[\"limel-email-viewer\",[[257,\"limel-email-viewer\",{\"email\":[16],\"fallbackUrl\":[513,\"fallback-url\"],\"language\":[513],\"allowRemoteImages\":[4,\"allow-remote-images\"],\"allowRemoteImagesState\":[32]},null,{\"email\":[{\"resetAllowRemoteImages\":0}]}]]],[\"limel-prosemirror-adapter\",[[17,\"limel-prosemirror-adapter\",{\"contentType\":[1,\"content-type\"],\"value\":[1],\"language\":[513],\"disabled\":[516],\"customElements\":[16],\"triggerCharacters\":[16],\"ui\":[1],\"view\":[32],\"actionBarItems\":[32],\"link\":[32],\"isLinkMenuOpen\":[32]},null,{\"value\":[{\"watchValue\":0}]}]]],[\"limel-dock-button\",[[0,\"limel-dock-button\",{\"item\":[16],\"expanded\":[516],\"useMobileLayout\":[516,\"use-mobile-layout\"],\"isOpen\":[32]},null,{\"isOpen\":[{\"openWatcher\":0}]}]]],[\"limel-color-picker-palette\",[[17,\"limel-color-picker-palette\",{\"value\":[513],\"label\":[513],\"helperText\":[513,\"helper-text\"],\"placeholder\":[513],\"required\":[516],\"invalid\":[516],\"manualInput\":[516,\"manual-input\"],\"columnCount\":[514,\"column-count\"],\"palette\":[16]}]]],[\"limel-checkbox\",[[1,\"limel-checkbox\",{\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"label\":[513],\"helperText\":[513,\"helper-text\"],\"checked\":[516],\"indeterminate\":[516],\"required\":[516],\"readonlyLabels\":[16],\"modified\":[32]},null,{\"checked\":[{\"handleCheckedChange\":0}],\"indeterminate\":[{\"handleIndeterminateChange\":0}],\"readonly\":[{\"handleReadonlyChange\":0}]}]]],[\"limel-tab-bar\",[[1,\"limel-tab-bar\",{\"tabs\":[1040],\"canScrollLeft\":[32],\"canScrollRight\":[32]},[[9,\"resize\",\"handleWindowResize\"]],{\"tabs\":[{\"tabsChanged\":0}]}]]],[\"limel-callout\",[[257,\"limel-callout\",{\"heading\":[513],\"icon\":[513],\"type\":[513],\"language\":[1]}]]],[\"limel-header\",[[257,\"limel-header\",{\"icon\":[1],\"heading\":[1],\"subheading\":[1],\"supportingText\":[1,\"supporting-text\"],\"subheadingDivider\":[1,\"subheading-divider\"]}]]],[\"limel-help-content\",[[1,\"limel-help-content\",{\"value\":[1],\"readMoreLink\":[16]}]]],[\"limel-progress-flow-item\",[[0,\"limel-progress-flow-item\",{\"item\":[16],\"disabled\":[4],\"readonly\":[4],\"currentStep\":[4,\"current-step\"]}]]],[\"limel-circular-progress\",[[1,\"limel-circular-progress\",{\"value\":[2],\"maxValue\":[2,\"max-value\"],\"prefix\":[513],\"suffix\":[1],\"displayPercentageColors\":[4,\"display-percentage-colors\"],\"size\":[513]}]]],[\"limel-flatpickr-adapter\",[[1,\"limel-flatpickr-adapter\",{\"value\":[16],\"type\":[1],\"format\":[1],\"isOpen\":[4,\"is-open\"],\"inputElement\":[16],\"language\":[1],\"formatter\":[16]}]]],[\"limel-radio-button\",[[0,\"limel-radio-button\",{\"checked\":[516],\"disabled\":[516],\"id\":[1],\"label\":[1],\"onChange\":[16]}]]],[\"limel-chip-set\",[[17,\"limel-chip-set\",{\"value\":[16],\"type\":[513],\"label\":[513],\"helperText\":[513,\"helper-text\"],\"disabled\":[516],\"readonly\":[516],\"invalid\":[516],\"inputType\":[513,\"input-type\"],\"maxItems\":[514,\"max-items\"],\"required\":[516],\"searchLabel\":[513,\"search-label\"],\"emptyInputOnBlur\":[516,\"empty-input-on-blur\"],\"emptyInputOnChange\":[516,\"empty-input-on-change\"],\"clearAllButton\":[4,\"clear-all-button\"],\"leadingIcon\":[513,\"leading-icon\"],\"delimiter\":[513],\"autocomplete\":[513],\"language\":[1],\"editMode\":[32],\"textValue\":[32],\"blurred\":[32],\"inputChipIndexSelected\":[32],\"selectedChipIds\":[32],\"getEditMode\":[64],\"setFocus\":[64],\"emptyInput\":[64]},null,{\"value\":[{\"handleChangeChips\":0}]}]]],[\"limel-button\",[[17,\"limel-button\",{\"label\":[513],\"primary\":[516],\"outlined\":[516],\"icon\":[513],\"disabled\":[516],\"loading\":[516],\"loadingFailed\":[516,\"loading-failed\"],\"justLoaded\":[32]},null,{\"loading\":[{\"loadingWatcher\":0}]}]]],[\"limel-hotkey_4\",[[1,\"limel-tooltip\",{\"elementId\":[513,\"element-id\"],\"label\":[513],\"helperLabel\":[513,\"helper-label\"],\"hotkey\":[513],\"maxlength\":[514],\"openDirection\":[513,\"open-direction\"],\"open\":[32]}],[1,\"limel-tooltip-content\",{\"label\":[513],\"helperLabel\":[513,\"helper-label\"],\"maxlength\":[514],\"hotkey\":[513]}],[1,\"limel-hotkey\",{\"value\":[513],\"disabled\":[516]}],[257,\"limel-portal\",{\"openDirection\":[513,\"open-direction\"],\"position\":[513],\"containerId\":[513,\"container-id\"],\"containerStyle\":[16],\"inheritParentWidth\":[516,\"inherit-parent-width\"],\"visible\":[516],\"anchor\":[16]},null,{\"visible\":[{\"onVisible\":0}]}]]],[\"limel-text-editor-link-menu\",[[1,\"limel-text-editor-link-menu\",{\"link\":[16],\"language\":[513],\"isOpen\":[516,\"is-open\"]}]]],[\"limel-collapsible-section\",[[257,\"limel-collapsible-section\",{\"isOpen\":[1540,\"is-open\"],\"header\":[513],\"icon\":[1],\"invalid\":[516],\"actions\":[16],\"language\":[513]}]]],[\"limel-3d-hover-effect-glow\",[[1,\"limel-3d-hover-effect-glow\"]]],[\"limel-file-dropzone_2\",[[257,\"limel-file-dropzone\",{\"accept\":[513],\"disabled\":[4],\"text\":[1],\"helperText\":[1,\"helper-text\"],\"hasFileToDrop\":[32]}],[257,\"limel-file-input\",{\"accept\":[513],\"disabled\":[516],\"multiple\":[516]}]]],[\"limel-dynamic-label\",[[1,\"limel-dynamic-label\",{\"value\":[8],\"defaultLabel\":[16],\"labels\":[16]}]]],[\"limel-icon-button\",[[17,\"limel-icon-button\",{\"icon\":[1],\"elevated\":[516],\"label\":[513],\"helperLabel\":[513,\"helper-label\"],\"disabled\":[516]}]]],[\"limel-markdown\",[[1,\"limel-markdown\",{\"value\":[1],\"whitelist\":[16],\"lazyLoadImages\":[516,\"lazy-load-images\"],\"removeEmptyParagraphs\":[516,\"remove-empty-paragraphs\"],\"adaptColorContrast\":[516,\"adapt-color-contrast\"]},null,{\"value\":[{\"textChanged\":0}],\"whitelist\":[{\"handleWhitelistChange\":0}],\"removeEmptyParagraphs\":[{\"handleRemoveEmptyParagraphsChange\":0}],\"adaptColorContrast\":[{\"handleAdaptColorContrastChange\":0}]}]]],[\"limel-popover_2\",[[257,\"limel-popover\",{\"open\":[4],\"openDirection\":[513,\"open-direction\"]},null,{\"open\":[{\"watchOpen\":0}]}],[1,\"limel-popover-surface\",{\"contentCollection\":[16]}]]],[\"limel-badge\",[[1,\"limel-badge\",{\"label\":[520]}]]],[\"limel-helper-line\",[[1,\"limel-helper-line\",{\"helperText\":[513,\"helper-text\"],\"length\":[514],\"maxLength\":[514,\"max-length\"],\"invalid\":[516],\"helperTextId\":[513,\"helper-text-id\"]}]]],[\"limel-breadcrumbs_8\",[[257,\"limel-menu\",{\"items\":[16],\"disabled\":[516],\"openDirection\":[513,\"open-direction\"],\"surfaceWidth\":[513,\"surface-width\"],\"open\":[1540],\"badgeIcons\":[516,\"badge-icons\"],\"gridLayout\":[516,\"grid-layout\"],\"loading\":[516],\"currentSubMenu\":[1040],\"rootItem\":[16],\"searcher\":[16],\"searchPlaceholder\":[1,\"search-placeholder\"],\"emptyResultMessage\":[1,\"empty-result-message\"],\"keepOpenOnSelect\":[516,\"keep-open-on-select\"],\"loadingSubItems\":[32],\"searchValue\":[32],\"searchResults\":[32]},null,{\"items\":[{\"itemsWatcher\":0}],\"open\":[{\"openWatcher\":0}]}],[1,\"limel-breadcrumbs\",{\"items\":[16],\"divider\":[1]}],[17,\"limel-menu-list\",{\"items\":[16],\"badgeIcons\":[4,\"badge-icons\"],\"iconSize\":[1,\"icon-size\"]},null,{\"items\":[{\"itemsChanged\":0}]}],[17,\"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\"],\"locale\":[513],\"isFocused\":[32],\"wasInvalid\":[32],\"showCompletions\":[32],\"getSelectionStart\":[64],\"getSelectionEnd\":[64],\"getSelectionDirection\":[64]},null,{\"value\":[{\"valueWatcher\":0}],\"completions\":[{\"completionsWatcher\":0}]}],[257,\"limel-menu-surface\",{\"open\":[4],\"allowClicksElement\":[16]}],[1,\"limel-spinner\",{\"size\":[513],\"limeBranded\":[4,\"lime-branded\"]}],[17,\"limel-list\",{\"items\":[16],\"badgeIcons\":[4,\"badge-icons\"],\"iconSize\":[1,\"icon-size\"],\"type\":[1],\"maxLinesSecondaryText\":[2,\"max-lines-secondary-text\"]},null,{\"type\":[{\"handleType\":0}],\"items\":[{\"itemsChanged\":0}]}],[260,\"limel-notched-outline\",{\"required\":[516],\"readonly\":[516],\"invalid\":[516],\"disabled\":[516],\"label\":[513],\"labelId\":[513,\"label-id\"],\"hasValue\":[516,\"has-value\"],\"hasLeadingIcon\":[516,\"has-leading-icon\"],\"hasFloatingLabel\":[516,\"has-floating-label\"]}]]],[\"limel-chip_2\",[[17,\"limel-chip\",{\"language\":[513],\"text\":[513],\"icon\":[1],\"image\":[16],\"link\":[16],\"badge\":[520],\"disabled\":[516],\"readonly\":[516],\"selected\":[516],\"invalid\":[516],\"removable\":[516],\"type\":[513],\"loading\":[516],\"progress\":[514],\"identifier\":[520],\"size\":[513],\"menuItems\":[16]}],[1,\"limel-linear-progress\",{\"language\":[513],\"value\":[514],\"indeterminate\":[516],\"accessibleLabel\":[513,\"accessible-label\"]},null,{\"value\":[{\"watchValue\":0}]}]]],[\"limel-action-bar_3\",[[1,\"limel-action-bar\",{\"actions\":[16],\"accessibleLabel\":[513,\"accessible-label\"],\"language\":[1],\"layout\":[513],\"collapsible\":[516],\"openDirection\":[513,\"open-direction\"],\"overflowCutoff\":[32]}],[0,\"limel-action-bar-overflow-menu\",{\"items\":[16],\"openDirection\":[513,\"open-direction\"]}],[0,\"limel-action-bar-item\",{\"item\":[16],\"isVisible\":[516,\"is-visible\"],\"selected\":[516]}]]]]"), options);
|
|
20
20
|
});
|
|
@@ -596,6 +596,12 @@ const InputField = class {
|
|
|
596
596
|
if (this.invalid) {
|
|
597
597
|
this.mdcTextField.valid = false;
|
|
598
598
|
}
|
|
599
|
+
else if (!this.wasInvalid) {
|
|
600
|
+
// Reset MDC's internal validity once the consumer no longer
|
|
601
|
+
// considers the field invalid and our own check hasn't
|
|
602
|
+
// flagged it either.
|
|
603
|
+
this.mdcTextField.valid = true;
|
|
604
|
+
}
|
|
599
605
|
this.mdcTextField.disabled = this.disabled || this.readonly;
|
|
600
606
|
}
|
|
601
607
|
/**
|
|
@@ -670,7 +676,7 @@ const InputField = class {
|
|
|
670
676
|
if (ariaControls) {
|
|
671
677
|
properties['aria-controls'] = ariaControls;
|
|
672
678
|
}
|
|
673
|
-
return (h(Host, { key: '
|
|
679
|
+
return (h(Host, { key: '883ac6e2bbca1b5491ed08d432101fb03984992a' }, h("limel-notched-outline", { key: 'c0ff8073d2cc6a0960513d7e038643373fe30af3', labelId: this.labelId, label: this.label, required: this.required, invalid: this.invalid || this.isInvalid(), disabled: this.disabled, readonly: this.readonly, hasValue: !!this.value, hasLeadingIcon: !!this.leadingIcon }, h("label", { key: 'c28e3ca982d3c11c521db80212f86d287e2b586b', slot: "content", class: this.getContainerClassList() }, this.renderLeadingIcon(), this.renderPrefix(), this.renderFormattedNumber(), this.renderInput(properties), this.renderSuffix(), this.renderTextarea(properties), this.renderTrailingLinkOrButton())), this.renderHelperLine(), this.renderAutocompleteList()));
|
|
674
680
|
}
|
|
675
681
|
valueWatcher(newValue) {
|
|
676
682
|
if (!this.mdcTextField) {
|
|
@@ -37303,6 +37303,28 @@ function findSchemaTitle(value, schema) {
|
|
|
37303
37303
|
}
|
|
37304
37304
|
return value;
|
|
37305
37305
|
}
|
|
37306
|
+
/**
|
|
37307
|
+
* Recursively check whether an RJSF `errorSchema` subtree contains any
|
|
37308
|
+
* field with validation errors.
|
|
37309
|
+
*
|
|
37310
|
+
* Used to reflect the validity of nested fields onto a containing
|
|
37311
|
+
* collapsible section's header, so a collapsed section with invalid
|
|
37312
|
+
* contents is still flagged in the UI.
|
|
37313
|
+
*
|
|
37314
|
+
* @param errorSchema - the RJSF error schema subtree to inspect
|
|
37315
|
+
* @returns `true` when any nested field has one or more errors
|
|
37316
|
+
*/
|
|
37317
|
+
function hasNestedErrors(errorSchema) {
|
|
37318
|
+
if (!errorSchema) {
|
|
37319
|
+
return false;
|
|
37320
|
+
}
|
|
37321
|
+
return Object.entries(errorSchema).some(([key, value]) => {
|
|
37322
|
+
if (key === '__errors') {
|
|
37323
|
+
return Array.isArray(value) && value.length > 0;
|
|
37324
|
+
}
|
|
37325
|
+
return hasNestedErrors(value);
|
|
37326
|
+
});
|
|
37327
|
+
}
|
|
37306
37328
|
|
|
37307
37329
|
/**!
|
|
37308
37330
|
* Sortable 1.15.6
|
|
@@ -39968,6 +39990,17 @@ Sortable.mount(new AutoScrollPlugin());
|
|
|
39968
39990
|
Sortable.mount(Remove, Revert);
|
|
39969
39991
|
|
|
39970
39992
|
const ArrayFieldContext = reactExports.createContext(null);
|
|
39993
|
+
/**
|
|
39994
|
+
* The array's validation errors as an RJSF `errorSchema`, keyed by item
|
|
39995
|
+
* index (e.g. `{ 1: { phone: { __errors: [...] } } }`).
|
|
39996
|
+
*
|
|
39997
|
+
* RJSF passes `errorSchema` to the array *field* (`FieldProps`) but, for
|
|
39998
|
+
* non-fixed arrays, does not forward it to `ArrayFieldItemTemplate` — so
|
|
39999
|
+
* the custom `ArrayField` shares it here for each item to read its own
|
|
40000
|
+
* slice (`errorSchema[index]`). This lets a collapsed item flag itself as
|
|
40001
|
+
* invalid without rendering (and DOM-walking) its hidden children.
|
|
40002
|
+
*/
|
|
40003
|
+
const ArrayItemErrorsContext = reactExports.createContext(null);
|
|
39971
40004
|
|
|
39972
40005
|
const ARRAY_REORDER_EVENT = 'arrayReorder';
|
|
39973
40006
|
const DRAG_HANDLE_SELECTOR = '[data-drag-handle]';
|
|
@@ -40296,7 +40329,7 @@ class CollapsibleItemTemplate extends React.Component {
|
|
|
40296
40329
|
section.removeEventListener('open', this.handleOpen);
|
|
40297
40330
|
}
|
|
40298
40331
|
render() {
|
|
40299
|
-
const { data, schema, formSchema } = this.props;
|
|
40332
|
+
const { data, schema, formSchema, errorSchema, revealErrors } = this.props;
|
|
40300
40333
|
let children;
|
|
40301
40334
|
if (this.state.isOpen) {
|
|
40302
40335
|
children = this.props.children;
|
|
@@ -40307,6 +40340,7 @@ class CollapsibleItemTemplate extends React.Component {
|
|
|
40307
40340
|
class: 'drag-handle',
|
|
40308
40341
|
})
|
|
40309
40342
|
: null;
|
|
40343
|
+
const invalid = revealErrors === true && hasNestedErrors(errorSchema);
|
|
40310
40344
|
return React.createElement('limel-collapsible-section', {
|
|
40311
40345
|
header: findTitle(data, schema, formSchema) || 'New item',
|
|
40312
40346
|
class: 'array-item limel-form-array-item--object',
|
|
@@ -40318,6 +40352,7 @@ class CollapsibleItemTemplate extends React.Component {
|
|
|
40318
40352
|
'data-reorderable': this.props.allowItemReorder
|
|
40319
40353
|
? 'true'
|
|
40320
40354
|
: 'false',
|
|
40355
|
+
invalid: invalid,
|
|
40321
40356
|
}, dragHandle, children);
|
|
40322
40357
|
}
|
|
40323
40358
|
setActions(element) {
|
|
@@ -40400,6 +40435,7 @@ class SimpleItemTemplate extends React.Component {
|
|
|
40400
40435
|
|
|
40401
40436
|
const ArrayFieldItemTemplate = (props) => {
|
|
40402
40437
|
const arrayContext = reactExports.useContext(ArrayFieldContext);
|
|
40438
|
+
const itemErrors = reactExports.useContext(ArrayItemErrorsContext);
|
|
40403
40439
|
const schema = arrayContext === null || arrayContext === void 0 ? void 0 : arrayContext.arraySchema;
|
|
40404
40440
|
const formData = arrayContext === null || arrayContext === void 0 ? void 0 : arrayContext.formData;
|
|
40405
40441
|
const formContext = props.registry.formContext;
|
|
@@ -40418,6 +40454,8 @@ const ArrayFieldItemTemplate = (props) => {
|
|
|
40418
40454
|
formSchema: formContext === null || formContext === void 0 ? void 0 : formContext.schema,
|
|
40419
40455
|
allowItemRemoval: allowItemRemoval,
|
|
40420
40456
|
allowItemReorder: allowItemReorder,
|
|
40457
|
+
errorSchema: itemErrors === null || itemErrors === void 0 ? void 0 : itemErrors[props.index],
|
|
40458
|
+
revealErrors: (formContext === null || formContext === void 0 ? void 0 : formContext.revealErrors) === true,
|
|
40421
40459
|
}, props.children);
|
|
40422
40460
|
}
|
|
40423
40461
|
return React.createElement(SimpleItemTemplate, {
|
|
@@ -40489,6 +40527,7 @@ class GridLayout extends React.Component {
|
|
|
40489
40527
|
});
|
|
40490
40528
|
}
|
|
40491
40529
|
render() {
|
|
40530
|
+
var _a;
|
|
40492
40531
|
const classes = ['limel-form-layout--grid'];
|
|
40493
40532
|
const columns = this.getColumnCount(this.state.maxColumns);
|
|
40494
40533
|
classes.push(`layout-${columns}-columns`);
|
|
@@ -40497,6 +40536,7 @@ class GridLayout extends React.Component {
|
|
|
40497
40536
|
}
|
|
40498
40537
|
return React.createElement('div', {
|
|
40499
40538
|
className: classes.join(' '),
|
|
40539
|
+
'data-schema-path': toSchemaPath((_a = this.props.schemaPath) !== null && _a !== void 0 ? _a : []),
|
|
40500
40540
|
ref: this.elementRef,
|
|
40501
40541
|
}, this.props.children);
|
|
40502
40542
|
}
|
|
@@ -40568,9 +40608,10 @@ class RowLayout extends React.Component {
|
|
|
40568
40608
|
this.elementRef = React.createRef();
|
|
40569
40609
|
}
|
|
40570
40610
|
render() {
|
|
40571
|
-
|
|
40611
|
+
var _a;
|
|
40572
40612
|
return React.createElement('div', {
|
|
40573
|
-
className:
|
|
40613
|
+
className: 'limel-form-row--layout',
|
|
40614
|
+
'data-schema-path': toSchemaPath((_a = this.props.schemaPath) !== null && _a !== void 0 ? _a : []),
|
|
40574
40615
|
ref: this.elementRef,
|
|
40575
40616
|
}, this.props.children.map((child, index) => {
|
|
40576
40617
|
return React.createElement(Row, {
|
|
@@ -40602,7 +40643,7 @@ const ObjectFieldTemplate = (props) => {
|
|
|
40602
40643
|
const arrayContext = reactExports.useContext(ArrayFieldContext);
|
|
40603
40644
|
const id = props.fieldPathId.$id;
|
|
40604
40645
|
if (arrayContext && id !== 'root') {
|
|
40605
|
-
return React.createElement(ArrayFieldContext.Provider, { value: null }, renderProperties(props.properties, props.schema));
|
|
40646
|
+
return React.createElement(ArrayFieldContext.Provider, { value: null }, renderProperties(props.properties, props.schema, props.fieldPathId.path.map(String)));
|
|
40606
40647
|
}
|
|
40607
40648
|
if (id === 'root' || !isCollapsible(props.schema)) {
|
|
40608
40649
|
return renderFieldWithTitle(props);
|
|
@@ -40610,7 +40651,7 @@ const ObjectFieldTemplate = (props) => {
|
|
|
40610
40651
|
return renderCollapsibleField(props);
|
|
40611
40652
|
};
|
|
40612
40653
|
function renderFieldWithTitle(props) {
|
|
40613
|
-
return React.createElement(React.Fragment, {}, renderSectionHeader(props), renderDescription(props.description), renderProperties(props.properties, props.schema));
|
|
40654
|
+
return React.createElement(React.Fragment, {}, renderSectionHeader(props), renderDescription(props.description), renderProperties(props.properties, props.schema, props.fieldPathId.path.map(String)));
|
|
40614
40655
|
}
|
|
40615
40656
|
function renderSectionHeader(props) {
|
|
40616
40657
|
const help = getHelpComponent(props.schema);
|
|
@@ -40620,15 +40661,19 @@ function renderSectionHeader(props) {
|
|
|
40620
40661
|
return React.createElement(React.Fragment, {}, renderTitle(props.title), help);
|
|
40621
40662
|
}
|
|
40622
40663
|
function renderCollapsibleField(props) {
|
|
40664
|
+
var _a;
|
|
40623
40665
|
const defaultOpen = !isCollapsed(props.schema);
|
|
40624
40666
|
const helpElement = getHelpComponent(props.schema, {
|
|
40625
40667
|
slot: 'header',
|
|
40626
40668
|
});
|
|
40669
|
+
const revealErrors = ((_a = props.registry.formContext) === null || _a === void 0 ? void 0 : _a.revealErrors) === true;
|
|
40670
|
+
const invalid = revealErrors && hasNestedErrors(props.errorSchema);
|
|
40627
40671
|
return React.createElement('limel-collapsible-section', {
|
|
40628
40672
|
header: props.title,
|
|
40629
40673
|
id: getSchemaObjectPropertyPath(props.registry.formContext.schema, props.fieldPathId),
|
|
40630
40674
|
'is-open': defaultOpen,
|
|
40631
|
-
|
|
40675
|
+
invalid: invalid,
|
|
40676
|
+
}, helpElement, renderDescription(props.description), renderProperties(props.properties, props.schema, props.fieldPathId.path.map(String)));
|
|
40632
40677
|
}
|
|
40633
40678
|
function getSchemaObjectPropertyPath(schema, fieldPathId) {
|
|
40634
40679
|
var _a, _b;
|
|
@@ -40640,32 +40685,45 @@ function getSchemaObjectPropertyPath(schema, fieldPathId) {
|
|
|
40640
40685
|
.join('');
|
|
40641
40686
|
return `${rootPath}${subSchemaPath}`;
|
|
40642
40687
|
}
|
|
40643
|
-
function renderProperties(properties, schema) {
|
|
40688
|
+
function renderProperties(properties, schema, schemaPath) {
|
|
40644
40689
|
var _a;
|
|
40645
40690
|
const layout = (_a = schema.lime) === null || _a === void 0 ? void 0 : _a.layout;
|
|
40646
|
-
return renderLayout(properties, layout);
|
|
40691
|
+
return renderLayout(properties, layout, schemaPath);
|
|
40647
40692
|
}
|
|
40648
|
-
function renderLayout(properties, layout) {
|
|
40693
|
+
function renderLayout(properties, layout, schemaPath) {
|
|
40649
40694
|
const type = (layout === null || layout === void 0 ? void 0 : layout.type) || 'default';
|
|
40650
40695
|
const layouts = {
|
|
40651
40696
|
default: renderDefaultLayout,
|
|
40652
40697
|
grid: renderGridLayout,
|
|
40653
40698
|
row: renderRowLayout,
|
|
40654
40699
|
};
|
|
40655
|
-
return layouts[type](properties, layout);
|
|
40700
|
+
return layouts[type](properties, layout, schemaPath);
|
|
40656
40701
|
}
|
|
40657
|
-
function renderDefaultLayout(properties) {
|
|
40702
|
+
function renderDefaultLayout(properties, _layout, schemaPath) {
|
|
40658
40703
|
return React.createElement('div', {
|
|
40659
40704
|
className: 'limel-form-layout--default',
|
|
40705
|
+
'data-schema-path': toSchemaPath(schemaPath),
|
|
40660
40706
|
}, properties.map((element) => element.content));
|
|
40661
40707
|
}
|
|
40662
|
-
|
|
40708
|
+
/**
|
|
40709
|
+
* Render a schema path as a leading-slash string. Root → `/`,
|
|
40710
|
+
* `['rules']` → `/rules`, `['rules', 'details']` → `/rules/details`.
|
|
40711
|
+
*
|
|
40712
|
+
* @param path the schema-path segments (typically `fieldPathId.path`).
|
|
40713
|
+
*/
|
|
40714
|
+
function toSchemaPath(path) {
|
|
40715
|
+
return path.length === 0 ? '/' : `/${path.join('/')}`;
|
|
40716
|
+
}
|
|
40717
|
+
function renderGridLayout(properties, layout, schemaPath) {
|
|
40663
40718
|
return React.createElement(GridLayout, {
|
|
40664
40719
|
options: layout,
|
|
40720
|
+
schemaPath: schemaPath,
|
|
40665
40721
|
}, properties.map((element) => element.content));
|
|
40666
40722
|
}
|
|
40667
|
-
function renderRowLayout(properties) {
|
|
40668
|
-
return React.createElement(RowLayout, {
|
|
40723
|
+
function renderRowLayout(properties, _layout, schemaPath) {
|
|
40724
|
+
return React.createElement(RowLayout, {
|
|
40725
|
+
schemaPath: schemaPath,
|
|
40726
|
+
}, properties.map((element) => element.content));
|
|
40669
40727
|
}
|
|
40670
40728
|
function isCollapsible(schema) {
|
|
40671
40729
|
var _a;
|
|
@@ -40701,20 +40759,21 @@ function hasValue(value) {
|
|
|
40701
40759
|
/**
|
|
40702
40760
|
* Determine whether a field should be displayed as invalid.
|
|
40703
40761
|
*
|
|
40704
|
-
* A field with errors is shown as invalid only when the user has
|
|
40705
|
-
* interacted with it, it already contains a value, or it is optional.
|
|
40706
|
-
* This avoids showing errors on untouched required fields before the
|
|
40707
|
-
* user has had a chance to fill them in.
|
|
40708
|
-
*
|
|
40709
40762
|
* @param field - the current field state
|
|
40710
40763
|
* @param field.hasErrors - whether the field currently has validation errors
|
|
40711
40764
|
* @param field.modified - whether the user has interacted with the field
|
|
40712
40765
|
* @param field.hasValue - whether the field holds a non-empty value
|
|
40713
40766
|
* @param field.required - whether the field is required
|
|
40767
|
+
* @param field.revealErrors - whether the form has been asked to reveal
|
|
40768
|
+
* all errors at once (typically on a save attempt)
|
|
40714
40769
|
* @returns `true` when the field should render in an invalid state
|
|
40715
40770
|
*/
|
|
40716
40771
|
function isFieldInvalid(field) {
|
|
40717
|
-
return (field.hasErrors &&
|
|
40772
|
+
return (field.hasErrors &&
|
|
40773
|
+
(field.modified ||
|
|
40774
|
+
field.hasValue ||
|
|
40775
|
+
!field.required ||
|
|
40776
|
+
!!field.revealErrors));
|
|
40718
40777
|
}
|
|
40719
40778
|
/**
|
|
40720
40779
|
* Check whether a field should be marked as required.
|
|
@@ -40887,13 +40946,15 @@ class LimeElementsWidgetAdapter extends React.Component {
|
|
|
40887
40946
|
return label || schema.title;
|
|
40888
40947
|
}
|
|
40889
40948
|
isInvalid() {
|
|
40949
|
+
var _a;
|
|
40890
40950
|
const { modified } = this.state;
|
|
40891
|
-
const { rawErrors, required, schema } = this.props.widgetProps;
|
|
40951
|
+
const { rawErrors, required, schema, registry } = this.props.widgetProps;
|
|
40892
40952
|
return isFieldInvalid({
|
|
40893
40953
|
hasErrors: !!rawErrors,
|
|
40894
40954
|
modified: modified,
|
|
40895
40955
|
hasValue: hasValue(this.getValue()),
|
|
40896
40956
|
required: isFieldRequired({ required, minItems: schema.minItems }),
|
|
40957
|
+
revealErrors: ((_a = registry === null || registry === void 0 ? void 0 : registry.formContext) === null || _a === void 0 ? void 0 : _a.revealErrors) === true,
|
|
40897
40958
|
});
|
|
40898
40959
|
}
|
|
40899
40960
|
getHelperText() {
|
|
@@ -41101,13 +41162,15 @@ class SchemaField extends React.Component {
|
|
|
41101
41162
|
this.handleCustomComponentChange.bind(this);
|
|
41102
41163
|
}
|
|
41103
41164
|
isInvalid() {
|
|
41165
|
+
var _a;
|
|
41104
41166
|
const { modified } = this.state;
|
|
41105
|
-
const { errorSchema, required, schema } = this.props;
|
|
41167
|
+
const { errorSchema, required, schema, registry } = this.props;
|
|
41106
41168
|
return isFieldInvalid({
|
|
41107
41169
|
hasErrors: !isEmpty(errorSchema),
|
|
41108
41170
|
modified: modified,
|
|
41109
41171
|
hasValue: hasValue(this.props.formData),
|
|
41110
41172
|
required: isFieldRequired({ required, minItems: schema.minItems }),
|
|
41173
|
+
revealErrors: ((_a = registry.formContext) === null || _a === void 0 ? void 0 : _a.revealErrors) === true,
|
|
41111
41174
|
});
|
|
41112
41175
|
}
|
|
41113
41176
|
getHelperText() {
|
|
@@ -41339,8 +41402,13 @@ class ArrayField extends React.Component {
|
|
|
41339
41402
|
return resetDependentFields(oldItem, newItem, itemSchema, rootSchema);
|
|
41340
41403
|
}
|
|
41341
41404
|
render() {
|
|
41405
|
+
var _a;
|
|
41342
41406
|
const arrayProps = Object.assign(Object.assign({}, this.props), { onChange: this.handleChange });
|
|
41343
|
-
|
|
41407
|
+
// Share the array's `errorSchema` (keyed by item index) with the
|
|
41408
|
+
// item templates rendered below. RJSF does not forward it to a
|
|
41409
|
+
// non-fixed array's `ArrayFieldItemTemplate`, so a collapsed item
|
|
41410
|
+
// would otherwise have no way to tell it contains invalid fields.
|
|
41411
|
+
return React.createElement('div', { ref: this.setWrapper }, React.createElement(ArrayItemErrorsContext.Provider, { value: (_a = this.props.errorSchema) !== null && _a !== void 0 ? _a : null }, React.createElement(BaseArrayField, arrayProps)));
|
|
41344
41412
|
}
|
|
41345
41413
|
}
|
|
41346
41414
|
function getSchemaAtPath(schema, pathSegments) {
|
|
@@ -41792,6 +41860,13 @@ const Form = class {
|
|
|
41792
41860
|
* Set to `true` to disable the whole form.
|
|
41793
41861
|
*/
|
|
41794
41862
|
this.disabled = false;
|
|
41863
|
+
/**
|
|
41864
|
+
* Set to `true` to render every field with a validation error as
|
|
41865
|
+
* invalid, even untouched ones, and to reflect that on each
|
|
41866
|
+
* containing collapsible section's header. Defaults to `false`,
|
|
41867
|
+
* which keeps untouched required-empty fields silent.
|
|
41868
|
+
*/
|
|
41869
|
+
this.revealErrors = false;
|
|
41795
41870
|
this.isValid = true;
|
|
41796
41871
|
this.initialized = false;
|
|
41797
41872
|
this.handleChange = this.handleChange.bind(this);
|
|
@@ -41826,7 +41901,7 @@ const Form = class {
|
|
|
41826
41901
|
this.initialized = false;
|
|
41827
41902
|
}
|
|
41828
41903
|
render() {
|
|
41829
|
-
return h$1("div", { key: '
|
|
41904
|
+
return h$1("div", { key: '8d32f742da3237b922f0315bc13fd211a1fb9d4b', class: "root" });
|
|
41830
41905
|
}
|
|
41831
41906
|
reactRender() {
|
|
41832
41907
|
if (!this.root) {
|
|
@@ -41854,6 +41929,7 @@ const Form = class {
|
|
|
41854
41929
|
schema: this.schema,
|
|
41855
41930
|
rootValue: this.value,
|
|
41856
41931
|
propsFactory: this.propsFactory,
|
|
41932
|
+
revealErrors: this.revealErrors,
|
|
41857
41933
|
},
|
|
41858
41934
|
fields: {
|
|
41859
41935
|
SchemaField: SchemaField,
|