@limetech/lime-elements 34.1.0-next.15 → 34.1.0-next.16
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 +7 -5
- package/dist/collection/components/form/adapters/widget-adapter.js +4 -1
- package/dist/collection/components/form/widgets/select.js +3 -4
- package/dist/esm/limel-form.entry.js +7 -5
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-fb1f00f4.entry.js → p-b997ce22.entry.js} +1 -1
- package/package.json +1 -1
|
@@ -24440,9 +24440,12 @@ class LimeElementsWidgetAdapter extends react.Component {
|
|
|
24440
24440
|
});
|
|
24441
24441
|
}
|
|
24442
24442
|
isDisabled() {
|
|
24443
|
+
var _a, _b;
|
|
24443
24444
|
const widgetProps = this.props.widgetProps;
|
|
24444
24445
|
const options = widgetProps.schema.lime;
|
|
24445
|
-
return widgetProps.disabled ||
|
|
24446
|
+
return (widgetProps.disabled ||
|
|
24447
|
+
(options === null || options === void 0 ? void 0 : options.disabled) ||
|
|
24448
|
+
((_b = (_a = options === null || options === void 0 ? void 0 : options.component) === null || _a === void 0 ? void 0 : _a.props) === null || _b === void 0 ? void 0 : _b.disabled));
|
|
24446
24449
|
}
|
|
24447
24450
|
isReadOnly() {
|
|
24448
24451
|
const widgetProps = this.props.widgetProps;
|
|
@@ -29467,6 +29470,7 @@ class Select extends react.Component {
|
|
|
29467
29470
|
this.handleChange = this.handleChange.bind(this);
|
|
29468
29471
|
}
|
|
29469
29472
|
render() {
|
|
29473
|
+
var _a, _b;
|
|
29470
29474
|
const props = this.props;
|
|
29471
29475
|
const enumOptions = props.options.enumOptions;
|
|
29472
29476
|
const options = enumOptions.map(createOption);
|
|
@@ -29477,6 +29481,7 @@ class Select extends react.Component {
|
|
|
29477
29481
|
else {
|
|
29478
29482
|
value = findValue(props.value, options);
|
|
29479
29483
|
}
|
|
29484
|
+
const additionalProps = ((_b = (_a = props.schema.lime) === null || _a === void 0 ? void 0 : _a.component) === null || _b === void 0 ? void 0 : _b.props) || {};
|
|
29480
29485
|
return react.createElement(LimeElementsWidgetAdapter, {
|
|
29481
29486
|
name: 'limel-select',
|
|
29482
29487
|
value: value,
|
|
@@ -29484,10 +29489,7 @@ class Select extends react.Component {
|
|
|
29484
29489
|
change: this.handleChange,
|
|
29485
29490
|
},
|
|
29486
29491
|
widgetProps: props,
|
|
29487
|
-
extraProps: {
|
|
29488
|
-
multiple: props.multiple,
|
|
29489
|
-
options: options,
|
|
29490
|
-
},
|
|
29492
|
+
extraProps: Object.assign({ multiple: props.multiple, options: options }, additionalProps),
|
|
29491
29493
|
});
|
|
29492
29494
|
}
|
|
29493
29495
|
handleChange(event) {
|
|
@@ -87,9 +87,12 @@ export class LimeElementsWidgetAdapter extends React.Component {
|
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
isDisabled() {
|
|
90
|
+
var _a, _b;
|
|
90
91
|
const widgetProps = this.props.widgetProps;
|
|
91
92
|
const options = widgetProps.schema.lime;
|
|
92
|
-
return widgetProps.disabled ||
|
|
93
|
+
return (widgetProps.disabled ||
|
|
94
|
+
(options === null || options === void 0 ? void 0 : options.disabled) ||
|
|
95
|
+
((_b = (_a = options === null || options === void 0 ? void 0 : options.component) === null || _a === void 0 ? void 0 : _a.props) === null || _b === void 0 ? void 0 : _b.disabled));
|
|
93
96
|
}
|
|
94
97
|
isReadOnly() {
|
|
95
98
|
const widgetProps = this.props.widgetProps;
|
|
@@ -11,6 +11,7 @@ export class Select extends React.Component {
|
|
|
11
11
|
this.handleChange = this.handleChange.bind(this);
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
+
var _a, _b;
|
|
14
15
|
const props = this.props;
|
|
15
16
|
const enumOptions = props.options.enumOptions;
|
|
16
17
|
const options = enumOptions.map(createOption);
|
|
@@ -21,6 +22,7 @@ export class Select extends React.Component {
|
|
|
21
22
|
else {
|
|
22
23
|
value = findValue(props.value, options);
|
|
23
24
|
}
|
|
25
|
+
const additionalProps = ((_b = (_a = props.schema.lime) === null || _a === void 0 ? void 0 : _a.component) === null || _b === void 0 ? void 0 : _b.props) || {};
|
|
24
26
|
return React.createElement(LimeElementsWidgetAdapter, {
|
|
25
27
|
name: 'limel-select',
|
|
26
28
|
value: value,
|
|
@@ -28,10 +30,7 @@ export class Select extends React.Component {
|
|
|
28
30
|
change: this.handleChange,
|
|
29
31
|
},
|
|
30
32
|
widgetProps: props,
|
|
31
|
-
extraProps: {
|
|
32
|
-
multiple: props.multiple,
|
|
33
|
-
options: options,
|
|
34
|
-
},
|
|
33
|
+
extraProps: Object.assign({ multiple: props.multiple, options: options }, additionalProps),
|
|
35
34
|
});
|
|
36
35
|
}
|
|
37
36
|
handleChange(event) {
|
|
@@ -24436,9 +24436,12 @@ class LimeElementsWidgetAdapter extends react.Component {
|
|
|
24436
24436
|
});
|
|
24437
24437
|
}
|
|
24438
24438
|
isDisabled() {
|
|
24439
|
+
var _a, _b;
|
|
24439
24440
|
const widgetProps = this.props.widgetProps;
|
|
24440
24441
|
const options = widgetProps.schema.lime;
|
|
24441
|
-
return widgetProps.disabled ||
|
|
24442
|
+
return (widgetProps.disabled ||
|
|
24443
|
+
(options === null || options === void 0 ? void 0 : options.disabled) ||
|
|
24444
|
+
((_b = (_a = options === null || options === void 0 ? void 0 : options.component) === null || _a === void 0 ? void 0 : _a.props) === null || _b === void 0 ? void 0 : _b.disabled));
|
|
24442
24445
|
}
|
|
24443
24446
|
isReadOnly() {
|
|
24444
24447
|
const widgetProps = this.props.widgetProps;
|
|
@@ -29463,6 +29466,7 @@ class Select extends react.Component {
|
|
|
29463
29466
|
this.handleChange = this.handleChange.bind(this);
|
|
29464
29467
|
}
|
|
29465
29468
|
render() {
|
|
29469
|
+
var _a, _b;
|
|
29466
29470
|
const props = this.props;
|
|
29467
29471
|
const enumOptions = props.options.enumOptions;
|
|
29468
29472
|
const options = enumOptions.map(createOption);
|
|
@@ -29473,6 +29477,7 @@ class Select extends react.Component {
|
|
|
29473
29477
|
else {
|
|
29474
29478
|
value = findValue(props.value, options);
|
|
29475
29479
|
}
|
|
29480
|
+
const additionalProps = ((_b = (_a = props.schema.lime) === null || _a === void 0 ? void 0 : _a.component) === null || _b === void 0 ? void 0 : _b.props) || {};
|
|
29476
29481
|
return react.createElement(LimeElementsWidgetAdapter, {
|
|
29477
29482
|
name: 'limel-select',
|
|
29478
29483
|
value: value,
|
|
@@ -29480,10 +29485,7 @@ class Select extends react.Component {
|
|
|
29480
29485
|
change: this.handleChange,
|
|
29481
29486
|
},
|
|
29482
29487
|
widgetProps: props,
|
|
29483
|
-
extraProps: {
|
|
29484
|
-
multiple: props.multiple,
|
|
29485
|
-
options: options,
|
|
29486
|
-
},
|
|
29488
|
+
extraProps: Object.assign({ multiple: props.multiple, options: options }, additionalProps),
|
|
29487
29489
|
});
|
|
29488
29490
|
}
|
|
29489
29491
|
handleChange(event) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as l}from"./p-92146da6.js";(()=>{const l=import.meta.url,i={};return""!==l&&(i.resourcesUrl=new URL(".",l).href),e(i)})().then((e=>l([["p-bc8c777b",[[1,"limel-color-picker",{value:[513],label:[513],helperText:[513,"helper-text"],tooltipLabel:[513,"tooltip-label"],required:[516],readonly:[516],isOpen:[32]}]]],["p-1cf833c8",[[1,"limel-picker",{disabled:[4],readonly:[516],label:[1],searchLabel:[1,"search-label"],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-041ae00c",[[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-c35874db",[[1,"limel-button-group",{value:[16],disabled:[516],selectedButtonId:[32]}]]],["p-279b7599",[[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-4b5af81b",[[1,"limel-tab-panel",{tabs:[1040]}]]],["p-a1153d2a",[[1,"limel-file",{value:[16],label:[513],required:[516],disabled:[516],readonly:[516],accept:[513],language:[1],isDraggingOverDropZone:[32]}]]],["p-511d71e0",[[1,"limel-menu",{items:[16],disabled:[516],openDirection:[513,"open-direction"],open:[1540],badgeIcons:[516,"badge-icons"],gridLayout:[516,"grid-layout"]}]]],["p-510bb5a4",[[1,"limel-button",{label:[513],primary:[516],outlined:[516],icon:[513],disabled:[516],loading:[516]}]]],["p-597cbe05",[[1,"limel-collapsible-section",{isOpen:[1540,"is-open"],header:[513],actions:[16]}]]],["p-85094bfc",[[1,"limel-dialog",{heading:[1],fullscreen:[516],open:[1540],closingActions:[16]}]]],["p-a4c532a7",[[1,"limel-progress-flow",{flowItems:[16],disabled:[4],readonly:[4]}]]],["p-fc30b8e3",[[1,"limel-banner",{message:[513],icon:[513],isOpen:[32],open:[64],close:[64]}]]],["p-13f0e4f4",[[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"]}]]],["p-8d8bd2ab",[[1,"limel-checkbox",{disabled:[516],readonly:[516],label:[513],checked:[516],required:[516],modified:[32]}]]],["p-34c7872e",[[1,"limel-circular-progress",{value:[2],maxValue:[2,"max-value"],suffix:[1],displayPercentageColors:[4,"display-percentage-colors"],size:[513]}]]],["p-c6b97214",[[1,"limel-code-editor",{value:[1],language:[1],readonly:[4],lineNumbers:[4,"line-numbers"],colorScheme:[1,"color-scheme"],random:[32]}]]],["p-31fecf5d",[[1,"limel-config",{config:[16]}]]],["p-7476efe0",[[1,"limel-flex-container",{direction:[513],justify:[513],align:[513],reverse:[516]}]]],["p-
|
|
1
|
+
import{p as e,b as l}from"./p-92146da6.js";(()=>{const l=import.meta.url,i={};return""!==l&&(i.resourcesUrl=new URL(".",l).href),e(i)})().then((e=>l([["p-bc8c777b",[[1,"limel-color-picker",{value:[513],label:[513],helperText:[513,"helper-text"],tooltipLabel:[513,"tooltip-label"],required:[516],readonly:[516],isOpen:[32]}]]],["p-1cf833c8",[[1,"limel-picker",{disabled:[4],readonly:[516],label:[1],searchLabel:[1,"search-label"],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-041ae00c",[[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-c35874db",[[1,"limel-button-group",{value:[16],disabled:[516],selectedButtonId:[32]}]]],["p-279b7599",[[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-4b5af81b",[[1,"limel-tab-panel",{tabs:[1040]}]]],["p-a1153d2a",[[1,"limel-file",{value:[16],label:[513],required:[516],disabled:[516],readonly:[516],accept:[513],language:[1],isDraggingOverDropZone:[32]}]]],["p-511d71e0",[[1,"limel-menu",{items:[16],disabled:[516],openDirection:[513,"open-direction"],open:[1540],badgeIcons:[516,"badge-icons"],gridLayout:[516,"grid-layout"]}]]],["p-510bb5a4",[[1,"limel-button",{label:[513],primary:[516],outlined:[516],icon:[513],disabled:[516],loading:[516]}]]],["p-597cbe05",[[1,"limel-collapsible-section",{isOpen:[1540,"is-open"],header:[513],actions:[16]}]]],["p-85094bfc",[[1,"limel-dialog",{heading:[1],fullscreen:[516],open:[1540],closingActions:[16]}]]],["p-a4c532a7",[[1,"limel-progress-flow",{flowItems:[16],disabled:[4],readonly:[4]}]]],["p-fc30b8e3",[[1,"limel-banner",{message:[513],icon:[513],isOpen:[32],open:[64],close:[64]}]]],["p-13f0e4f4",[[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"]}]]],["p-8d8bd2ab",[[1,"limel-checkbox",{disabled:[516],readonly:[516],label:[513],checked:[516],required:[516],modified:[32]}]]],["p-34c7872e",[[1,"limel-circular-progress",{value:[2],maxValue:[2,"max-value"],suffix:[1],displayPercentageColors:[4,"display-percentage-colors"],size:[513]}]]],["p-c6b97214",[[1,"limel-code-editor",{value:[1],language:[1],readonly:[4],lineNumbers:[4,"line-numbers"],colorScheme:[1,"color-scheme"],random:[32]}]]],["p-31fecf5d",[[1,"limel-config",{config:[16]}]]],["p-7476efe0",[[1,"limel-flex-container",{direction:[513],justify:[513],align:[513],reverse:[516]}]]],["p-b997ce22",[[1,"limel-form",{schema:[16],value:[16],disabled:[4],propsFactory:[16]}]]],["p-b386bfeb",[[1,"limel-grid"]]],["p-64549ba6",[[1,"limel-linear-progress",{value:[2],indeterminate:[4]}]]],["p-fbe6100e",[[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-c8c8a946",[[1,"limel-snackbar",{message:[1],timeout:[2],actionText:[1,"action-text"],dismissible:[4],multiline:[4],language:[1],show:[64]}]]],["p-90f3e17c",[[1,"limel-switch",{label:[513],disabled:[516],readonly:[516],value:[516],fieldId:[32]}]]],["p-f2c706b8",[[1,"limel-tab-bar",{tabs:[1040],canScrollLeft:[32],canScrollRight:[32]},[[9,"resize","handleWindowResize"]]]]],["p-1fb5340d",[[1,"limel-header",{icon:[1],heading:[1],subheading:[1],supportingText:[1,"supporting-text"]}]]],["p-58cbe99d",[[0,"limel-progress-flow-item",{item:[16],disabled:[4],readonly:[4]}]]],["p-468e940e",[[1,"limel-flatpickr-adapter",{value:[16],type:[1],format:[1],isOpen:[4,"is-open"],inputElement:[16],language:[1]}]]],["p-d26ca76f",[[1,"limel-menu-list",{items:[16],badgeIcons:[4,"badge-icons"],iconSize:[1,"icon-size"],type:[1],maxLinesSecondaryText:[2,"max-lines-secondary-text"]}]]],["p-4932c029",[[1,"limel-popover-surface",{contentCollection:[16]}]]],["p-be56ffab",[[1,"limel-icon",{size:[513],name:[513],badge:[516]}]]],["p-81258617",[[1,"limel-input-field",{disabled:[516],readonly:[516],invalid:[516],label:[513],helperText:[513,"helper-text"],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-f8a2dc0e",[[1,"limel-color-picker-palette",{value:[513],label:[513],helperText:[513,"helper-text"],required:[516]}],[1,"limel-popover",{open:[4]}]]],["p-d2c74396",[[1,"limel-badge",{label:[514]}]]],["p-b5d6abc3",[[1,"limel-chip-set",{value:[16],type:[513],label:[513],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-143705b1",[[1,"limel-icon-button",{icon:[513],elevated:[516],label:[513],disabled:[516],relayout:[64]}]]],["p-e881e98d",[[1,"limel-spinner",{size:[513],limeBranded:[4,"lime-branded"]}]]],["p-f5a3e526",[[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-4bc5d3fc",[[1,"limel-tooltip",{label:[513],helperLabel:[513,"helper-label"],elementId:[513,"element-id"],open:[32]}],[1,"limel-tooltip-content",{label:[513],helperLabel:[513,"helper-label"]}]]]],e)));
|