@limetech/lime-elements 35.1.0-next.3 → 35.1.0-next.4
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/limel-form.cjs.entry.js +11 -0
- package/dist/collection/components/form/templates/object-field.js +11 -0
- package/dist/esm/limel-form.entry.js +11 -0
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-66fe4c89.entry.js → p-b8a0454f.entry.js} +1 -1
- package/package.json +1 -1
|
@@ -24072,9 +24072,20 @@ function renderCollapsibleField(props) {
|
|
|
24072
24072
|
const defaultOpen = !isCollapsed(props.schema);
|
|
24073
24073
|
return react.createElement('limel-collapsible-section', {
|
|
24074
24074
|
header: props.title,
|
|
24075
|
+
id: getSchemaObjectPropertyPath(props.formContext.schema, props.idSchema),
|
|
24075
24076
|
'is-open': defaultOpen,
|
|
24076
24077
|
}, renderDescription(props.description), renderProperties(props.properties, props.schema));
|
|
24077
24078
|
}
|
|
24079
|
+
function getSchemaObjectPropertyPath(schema, subSchema) {
|
|
24080
|
+
var _a;
|
|
24081
|
+
const refPrefixLength = 2;
|
|
24082
|
+
const matchAllForwardSlashes = /\//g;
|
|
24083
|
+
const rootPath = schema.$ref
|
|
24084
|
+
.replace(matchAllForwardSlashes, '.')
|
|
24085
|
+
.slice(refPrefixLength);
|
|
24086
|
+
const subSchemaPath = (_a = subSchema.$id) === null || _a === void 0 ? void 0 : _a.replace('_', '.properties.');
|
|
24087
|
+
return subSchemaPath.replace('root', rootPath);
|
|
24088
|
+
}
|
|
24078
24089
|
function renderProperties(properties, schema) {
|
|
24079
24090
|
var _a;
|
|
24080
24091
|
const layout = (_a = schema.lime) === null || _a === void 0 ? void 0 : _a.layout;
|
|
@@ -19,9 +19,20 @@ function renderCollapsibleField(props) {
|
|
|
19
19
|
const defaultOpen = !isCollapsed(props.schema);
|
|
20
20
|
return React.createElement('limel-collapsible-section', {
|
|
21
21
|
header: props.title,
|
|
22
|
+
id: getSchemaObjectPropertyPath(props.formContext.schema, props.idSchema),
|
|
22
23
|
'is-open': defaultOpen,
|
|
23
24
|
}, renderDescription(props.description), renderProperties(props.properties, props.schema));
|
|
24
25
|
}
|
|
26
|
+
function getSchemaObjectPropertyPath(schema, subSchema) {
|
|
27
|
+
var _a;
|
|
28
|
+
const refPrefixLength = 2;
|
|
29
|
+
const matchAllForwardSlashes = /\//g;
|
|
30
|
+
const rootPath = schema.$ref
|
|
31
|
+
.replace(matchAllForwardSlashes, '.')
|
|
32
|
+
.slice(refPrefixLength);
|
|
33
|
+
const subSchemaPath = (_a = subSchema.$id) === null || _a === void 0 ? void 0 : _a.replace('_', '.properties.');
|
|
34
|
+
return subSchemaPath.replace('root', rootPath);
|
|
35
|
+
}
|
|
25
36
|
function renderProperties(properties, schema) {
|
|
26
37
|
var _a;
|
|
27
38
|
const layout = (_a = schema.lime) === null || _a === void 0 ? void 0 : _a.layout;
|
|
@@ -24068,9 +24068,20 @@ function renderCollapsibleField(props) {
|
|
|
24068
24068
|
const defaultOpen = !isCollapsed(props.schema);
|
|
24069
24069
|
return react.createElement('limel-collapsible-section', {
|
|
24070
24070
|
header: props.title,
|
|
24071
|
+
id: getSchemaObjectPropertyPath(props.formContext.schema, props.idSchema),
|
|
24071
24072
|
'is-open': defaultOpen,
|
|
24072
24073
|
}, renderDescription(props.description), renderProperties(props.properties, props.schema));
|
|
24073
24074
|
}
|
|
24075
|
+
function getSchemaObjectPropertyPath(schema, subSchema) {
|
|
24076
|
+
var _a;
|
|
24077
|
+
const refPrefixLength = 2;
|
|
24078
|
+
const matchAllForwardSlashes = /\//g;
|
|
24079
|
+
const rootPath = schema.$ref
|
|
24080
|
+
.replace(matchAllForwardSlashes, '.')
|
|
24081
|
+
.slice(refPrefixLength);
|
|
24082
|
+
const subSchemaPath = (_a = subSchema.$id) === null || _a === void 0 ? void 0 : _a.replace('_', '.properties.');
|
|
24083
|
+
return subSchemaPath.replace('root', rootPath);
|
|
24084
|
+
}
|
|
24074
24085
|
function renderProperties(properties, schema) {
|
|
24075
24086
|
var _a;
|
|
24076
24087
|
const layout = (_a = schema.lime) === null || _a === void 0 ? void 0 : _a.layout;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as l}from"./p-e9a95b8f.js";(()=>{const l=import.meta.url,i={};return""!==l&&(i.resourcesUrl=new URL(".",l).href),e(i)})().then((e=>l([["p-5908c21d",[[1,"limel-color-picker",{value:[513],label:[513],helperText:[513,"helper-text"],tooltipLabel:[513,"tooltip-label"],required:[516],readonly:[516],isOpen:[32]}]]],["p-84f933f7",[[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]}]]],["p-4d5a874a",[[1,"limel-date-picker",{disabled:[516],readonly:[516],invalid:[516],label:[513],helperText:[513,"helper-text"],required:[516],value:[16],type:[513],format:[513],language:[513],formattedValue:[32],internalFormat:[32],showPortal:[32]}]]],["p-95f275ab",[[1,"limel-button-group",{value:[16],disabled:[516],selectedButtonId:[32]}]]],["p-d1ee4501",[[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]}]]],["p-440454ed",[[1,"limel-tab-panel",{tabs:[1040]}]]],["p-94899019",[[1,"limel-file",{value:[16],label:[513],required:[516],disabled:[516],readonly:[516],accept:[513],language:[1],isDraggingOverDropZone:[32]}]]],["p-e80dd2ff",[[1,"limel-menu",{items:[16],disabled:[516],openDirection:[513,"open-direction"],open:[1540],badgeIcons:[516,"badge-icons"],gridLayout:[516,"grid-layout"]}]]],["p-404e1465",[[1,"limel-button",{label:[513],primary:[516],outlined:[516],icon:[513],disabled:[516],loading:[516]}]]],["p-97d6c4a6",[[1,"limel-collapsible-section",{isOpen:[1540,"is-open"],header:[513],actions:[16]}]]],["p-f9bfbeb3",[[1,"limel-dialog",{heading:[1],fullscreen:[516],open:[1540],closingActions:[16]}]]],["p-9af0704c",[[1,"limel-progress-flow",{flowItems:[16],disabled:[4],readonly:[4]}]]],["p-2639edf9",[[1,"limel-checkbox",{disabled:[516],readonly:[516],label:[513],helperText:[513,"helper-text"],checked:[516],indeterminate:[516],required:[516],modified:[32]}]]],["p-b95e80c9",[[1,"limel-table",{data:[16],columns:[16],mode:[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]}]]],["p-63e25a0a",[[1,"limel-banner",{message:[513],icon:[513],isOpen:[32],open:[64],close:[64]}]]],["p-53e01330",[[1,"limel-circular-progress",{value:[2],maxValue:[2,"max-value"],suffix:[1],displayPercentageColors:[4,"display-percentage-colors"],size:[513]}]]],["p-6966b5df",[[1,"limel-code-editor",{value:[1],language:[1],readonly:[4],lineNumbers:[4,"line-numbers"],colorScheme:[1,"color-scheme"],random:[32]}]]],["p-d74fa89e",[[1,"limel-config",{config:[16]}]]],["p-a5af84a7",[[1,"limel-flex-container",{direction:[513],justify:[513],align:[513],reverse:[516]}]]],["p-
|
|
1
|
+
import{p as e,b as l}from"./p-e9a95b8f.js";(()=>{const l=import.meta.url,i={};return""!==l&&(i.resourcesUrl=new URL(".",l).href),e(i)})().then((e=>l([["p-5908c21d",[[1,"limel-color-picker",{value:[513],label:[513],helperText:[513,"helper-text"],tooltipLabel:[513,"tooltip-label"],required:[516],readonly:[516],isOpen:[32]}]]],["p-84f933f7",[[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]}]]],["p-4d5a874a",[[1,"limel-date-picker",{disabled:[516],readonly:[516],invalid:[516],label:[513],helperText:[513,"helper-text"],required:[516],value:[16],type:[513],format:[513],language:[513],formattedValue:[32],internalFormat:[32],showPortal:[32]}]]],["p-95f275ab",[[1,"limel-button-group",{value:[16],disabled:[516],selectedButtonId:[32]}]]],["p-d1ee4501",[[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]}]]],["p-440454ed",[[1,"limel-tab-panel",{tabs:[1040]}]]],["p-94899019",[[1,"limel-file",{value:[16],label:[513],required:[516],disabled:[516],readonly:[516],accept:[513],language:[1],isDraggingOverDropZone:[32]}]]],["p-e80dd2ff",[[1,"limel-menu",{items:[16],disabled:[516],openDirection:[513,"open-direction"],open:[1540],badgeIcons:[516,"badge-icons"],gridLayout:[516,"grid-layout"]}]]],["p-404e1465",[[1,"limel-button",{label:[513],primary:[516],outlined:[516],icon:[513],disabled:[516],loading:[516]}]]],["p-97d6c4a6",[[1,"limel-collapsible-section",{isOpen:[1540,"is-open"],header:[513],actions:[16]}]]],["p-f9bfbeb3",[[1,"limel-dialog",{heading:[1],fullscreen:[516],open:[1540],closingActions:[16]}]]],["p-9af0704c",[[1,"limel-progress-flow",{flowItems:[16],disabled:[4],readonly:[4]}]]],["p-2639edf9",[[1,"limel-checkbox",{disabled:[516],readonly:[516],label:[513],helperText:[513,"helper-text"],checked:[516],indeterminate:[516],required:[516],modified:[32]}]]],["p-b95e80c9",[[1,"limel-table",{data:[16],columns:[16],mode:[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]}]]],["p-63e25a0a",[[1,"limel-banner",{message:[513],icon:[513],isOpen:[32],open:[64],close:[64]}]]],["p-53e01330",[[1,"limel-circular-progress",{value:[2],maxValue:[2,"max-value"],suffix:[1],displayPercentageColors:[4,"display-percentage-colors"],size:[513]}]]],["p-6966b5df",[[1,"limel-code-editor",{value:[1],language:[1],readonly:[4],lineNumbers:[4,"line-numbers"],colorScheme:[1,"color-scheme"],random:[32]}]]],["p-d74fa89e",[[1,"limel-config",{config:[16]}]]],["p-a5af84a7",[[1,"limel-flex-container",{direction:[513],justify:[513],align:[513],reverse:[516]}]]],["p-b8a0454f",[[1,"limel-form",{schema:[16],value:[16],disabled:[4],propsFactory:[16],transformErrors:[16],errors:[16]}]]],["p-6e7809a6",[[1,"limel-grid"]]],["p-71efe2ca",[[1,"limel-linear-progress",{value:[2],indeterminate:[4]}]]],["p-c80acfb2",[[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]}]]],["p-e98d76e8",[[1,"limel-snackbar",{message:[1],timeout:[2],actionText:[1,"action-text"],dismissible:[4],multiline:[4],language:[1],show:[64]}]]],["p-a465084b",[[1,"limel-switch",{label:[513],disabled:[516],readonly:[516],value:[516],fieldId:[32]}]]],["p-8827628d",[[1,"limel-tab-bar",{tabs:[1040],canScrollLeft:[32],canScrollRight:[32]},[[9,"resize","handleWindowResize"]]]]],["p-b0046fcd",[[1,"limel-header",{icon:[1],heading:[1],subheading:[1],supportingText:[1,"supporting-text"]}]]],["p-83ea517b",[[0,"limel-progress-flow-item",{item:[16],disabled:[4],readonly:[4]}]]],["p-af0ec482",[[1,"limel-flatpickr-adapter",{value:[16],type:[1],format:[1],isOpen:[4,"is-open"],inputElement:[16],language:[1]}]]],["p-c7953a05",[[1,"limel-menu-list",{items:[16],badgeIcons:[4,"badge-icons"],iconSize:[1,"icon-size"],type:[1],maxLinesSecondaryText:[2,"max-lines-secondary-text"]}]]],["p-705334c1",[[1,"limel-popover-surface",{contentCollection:[16]}]]],["p-f0c9dadd",[[1,"limel-icon",{size:[513],name:[513],badge:[516]}]]],["p-7ee4b825",[[1,"limel-input-field",{disabled:[516],readonly:[516],invalid:[516],label:[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]}]]],["p-2754e134",[[1,"limel-color-picker-palette",{value:[513],label:[513],helperText:[513,"helper-text"],required:[516]}],[1,"limel-popover",{open:[4]}]]],["p-42b67933",[[1,"limel-badge",{label:[514]}]]],["p-e83dddcd",[[1,"limel-chip-set",{value:[16],type:[513],label:[513],helperText:[513,"helper-text"],disabled:[516],readonly:[516],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]}]]],["p-bd8c9384",[[1,"limel-icon-button",{icon:[513],elevated:[516],label:[513],disabled:[516],relayout:[64]}]]],["p-ed65468d",[[1,"limel-spinner",{size:[513],limeBranded:[4,"lime-branded"]}]]],["p-b91dc1ef",[[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]}],[1,"limel-portal",{openDirection:[1,"open-direction"],position:[1],containerId:[1,"container-id"],containerStyle:[16],parent:[16],inheritParentWidth:[4,"inherit-parent-width"],visible:[4]}]]],["p-36ecbd03",[[1,"limel-tooltip",{elementId:[513,"element-id"],label:[513],helperLabel:[513,"helper-label"],maxlength:[514],open:[32]}],[1,"limel-tooltip-content",{label:[513],helperLabel:[513,"helper-label"],maxlength:[514]}]]]],e)));
|