@limetech/lime-elements 34.0.2-next.5 → 34.0.2-next.9
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/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-code-editor.cjs.entry.js +4 -0
- package/dist/cjs/limel-collapsible-section.cjs.entry.js +24 -26
- package/dist/cjs/limel-flatpickr-adapter_2.cjs.entry.js +14 -6
- package/dist/cjs/limel-form.cjs.entry.js +3 -4
- package/dist/cjs/limel-select.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/code-editor/code-editor.js +4 -0
- package/dist/collection/components/collapsible-section/collapsible-section.js +26 -28
- package/dist/collection/components/date-picker/pickers/MonthPicker.js +14 -6
- package/dist/collection/components/form/form.css +3 -3
- package/dist/collection/components/form/templates/array-field.js +2 -3
- package/dist/collection/components/select/select.css +2 -3
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-code-editor.entry.js +4 -0
- package/dist/esm/limel-collapsible-section.entry.js +25 -27
- package/dist/esm/limel-flatpickr-adapter_2.entry.js +14 -6
- package/dist/esm/limel-form.entry.js +3 -4
- package/dist/esm/limel-select.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-3525d50c.entry.js → p-279b7599.entry.js} +1 -1
- package/dist/lime-elements/p-597cbe05.entry.js +1 -0
- package/dist/lime-elements/{p-80622489.entry.js → p-7ed4e81f.entry.js} +1 -1
- package/dist/lime-elements/{p-1d7c7d5e.entry.js → p-c6b97214.entry.js} +1 -1
- package/dist/lime-elements/{p-a3dadae7.entry.js → p-fbe32287.entry.js} +1 -1
- package/dist/types/components/collapsible-section/collapsible-section.d.ts +1 -2
- package/package.json +5 -5
- package/dist/lime-elements/p-aa5bafb0.entry.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, Event, h, Prop
|
|
1
|
+
import { Component, Event, h, Prop } from '@stencil/core';
|
|
2
2
|
import { dispatchResizeEvent } from '../../util/dispatch-resize-event';
|
|
3
3
|
import { ENTER, ENTER_KEY_CODE } from '../../util/keycodes';
|
|
4
4
|
/**
|
|
@@ -15,22 +15,41 @@ export class CollapsibleSection {
|
|
|
15
15
|
* `true` if the section is expanded, `false` if collapsed.
|
|
16
16
|
*/
|
|
17
17
|
this.isOpen = false;
|
|
18
|
+
this.onClick = () => {
|
|
19
|
+
this.handleInteraction();
|
|
20
|
+
};
|
|
18
21
|
this.handleKeyDown = (event) => {
|
|
19
22
|
const isEnter = event.key === ENTER || event.keyCode === ENTER_KEY_CODE;
|
|
20
23
|
if (isEnter) {
|
|
21
24
|
event.stopPropagation();
|
|
22
25
|
event.preventDefault();
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
this.handleInteraction();
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
this.handleInteraction = () => {
|
|
30
|
+
this.isOpen = !this.isOpen;
|
|
31
|
+
if (this.isOpen) {
|
|
32
|
+
this.open.emit();
|
|
33
|
+
const waitForUiToRender = 100;
|
|
34
|
+
setTimeout(dispatchResizeEvent, waitForUiToRender);
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
this.close.emit();
|
|
26
38
|
}
|
|
27
39
|
};
|
|
40
|
+
this.renderActions = () => {
|
|
41
|
+
if (!this.actions) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
return (h("div", { class: "section__header__actions" }, this.actions.map(this.renderActionButton)));
|
|
45
|
+
};
|
|
46
|
+
this.renderActionButton = (action) => {
|
|
47
|
+
return (h("limel-icon-button", { icon: action.icon, label: action.label, disabled: action.disabled, onClick: this.handleActionClick(action) }));
|
|
48
|
+
};
|
|
28
49
|
this.handleActionClick = (action) => (event) => {
|
|
29
50
|
event.stopPropagation();
|
|
30
51
|
this.action.emit(action);
|
|
31
52
|
};
|
|
32
|
-
this.onClick = this.onClick.bind(this);
|
|
33
|
-
this.renderActionButton = this.renderActionButton.bind(this);
|
|
34
53
|
}
|
|
35
54
|
render() {
|
|
36
55
|
return (h("section", { class: `${this.isOpen ? 'open' : ''}` },
|
|
@@ -46,26 +65,6 @@ export class CollapsibleSection {
|
|
|
46
65
|
h("div", { class: "section__body" },
|
|
47
66
|
h("slot", null))));
|
|
48
67
|
}
|
|
49
|
-
onClick() {
|
|
50
|
-
this.isOpen = !this.isOpen;
|
|
51
|
-
if (this.isOpen) {
|
|
52
|
-
this.open.emit();
|
|
53
|
-
const waitForUiToRender = 100;
|
|
54
|
-
setTimeout(dispatchResizeEvent, waitForUiToRender);
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
this.close.emit();
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
renderActions() {
|
|
61
|
-
if (!this.actions) {
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
return (h("div", { class: "section__header__actions" }, this.actions.map(this.renderActionButton)));
|
|
65
|
-
}
|
|
66
|
-
renderActionButton(action) {
|
|
67
|
-
return (h("limel-icon-button", { icon: action.icon, label: action.label, disabled: action.disabled, onClick: this.handleActionClick(action) }));
|
|
68
|
-
}
|
|
69
68
|
static get is() { return "limel-collapsible-section"; }
|
|
70
69
|
static get encapsulation() { return "shadow"; }
|
|
71
70
|
static get originalStyleUrls() { return {
|
|
@@ -108,7 +107,7 @@ export class CollapsibleSection {
|
|
|
108
107
|
"text": "Text to display in the header of the section"
|
|
109
108
|
},
|
|
110
109
|
"attribute": "header",
|
|
111
|
-
"reflect":
|
|
110
|
+
"reflect": true
|
|
112
111
|
},
|
|
113
112
|
"actions": {
|
|
114
113
|
"type": "unknown",
|
|
@@ -182,5 +181,4 @@ export class CollapsibleSection {
|
|
|
182
181
|
}
|
|
183
182
|
}
|
|
184
183
|
}]; }
|
|
185
|
-
static get elementRef() { return "host"; }
|
|
186
184
|
}
|
|
@@ -97,16 +97,24 @@ export class MonthPicker extends Picker {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
prevYear(
|
|
100
|
+
prevYear() {
|
|
101
101
|
if (!this.nativePicker) {
|
|
102
|
-
event
|
|
103
|
-
|
|
102
|
+
// Preventing default or stopping the event from propagating doesn't
|
|
103
|
+
// stop flatpickr from moving one month on its own, so we let it do
|
|
104
|
+
// that, and then move the other 11 months to make it a full year.
|
|
105
|
+
// /Ads
|
|
106
|
+
const monthsToMove = 11;
|
|
107
|
+
this.flatpickr.changeMonth(-monthsToMove);
|
|
104
108
|
}
|
|
105
109
|
}
|
|
106
|
-
nextYear(
|
|
110
|
+
nextYear() {
|
|
107
111
|
if (!this.nativePicker) {
|
|
108
|
-
event
|
|
109
|
-
|
|
112
|
+
// Preventing default or stopping the event from propagating doesn't
|
|
113
|
+
// stop flatpickr from moving one month on its own, so we let it do
|
|
114
|
+
// that, and then move the other 11 months to make it a full year.
|
|
115
|
+
// /Ads
|
|
116
|
+
const monthsToMove = 11;
|
|
117
|
+
this.flatpickr.changeMonth(monthsToMove);
|
|
110
118
|
}
|
|
111
119
|
}
|
|
112
120
|
}
|
|
@@ -495,13 +495,13 @@
|
|
|
495
495
|
grid-column: 1/-1;
|
|
496
496
|
}
|
|
497
497
|
|
|
498
|
-
.form-
|
|
499
|
-
.form-
|
|
498
|
+
.limel-form-layout--grid limel-checkbox,
|
|
499
|
+
.limel-form-layout--grid limel-switch {
|
|
500
500
|
margin-top: 0.5rem;
|
|
501
501
|
display: block;
|
|
502
502
|
min-height: calc( var(--min-height-of-one-row) - 0.9375rem );
|
|
503
503
|
}
|
|
504
|
-
.form-
|
|
504
|
+
.limel-form-layout--grid limel-switch {
|
|
505
505
|
margin-left: 0.5rem;
|
|
506
506
|
}
|
|
507
507
|
|
|
@@ -25,11 +25,10 @@ export class ArrayFieldTemplate extends React.Component {
|
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
renderItem(item, index) {
|
|
28
|
-
const key = `id_${index}`;
|
|
29
28
|
const { schema, formData, formContext } = this.props;
|
|
30
29
|
if (isObjectType(schema.items)) {
|
|
31
30
|
return React.createElement(CollapsibleItemTemplate, {
|
|
32
|
-
key: key,
|
|
31
|
+
key: item.key,
|
|
33
32
|
item: item,
|
|
34
33
|
data: formData[index],
|
|
35
34
|
schema: schema,
|
|
@@ -38,7 +37,7 @@ export class ArrayFieldTemplate extends React.Component {
|
|
|
38
37
|
});
|
|
39
38
|
}
|
|
40
39
|
return React.createElement(SimpleItemTemplate, {
|
|
41
|
-
key: key,
|
|
40
|
+
key: item.key,
|
|
42
41
|
item: item,
|
|
43
42
|
index: index,
|
|
44
43
|
});
|
|
@@ -1327,7 +1327,6 @@
|
|
|
1327
1327
|
:host {
|
|
1328
1328
|
display: block;
|
|
1329
1329
|
position: relative;
|
|
1330
|
-
height: 3.5rem;
|
|
1331
1330
|
}
|
|
1332
1331
|
|
|
1333
1332
|
:host([hidden]) {
|
|
@@ -1367,7 +1366,7 @@
|
|
|
1367
1366
|
}
|
|
1368
1367
|
|
|
1369
1368
|
.limel-select {
|
|
1370
|
-
height:
|
|
1369
|
+
height: 3.5rem;
|
|
1371
1370
|
width: 100%;
|
|
1372
1371
|
}
|
|
1373
1372
|
.limel-select:not(.limel-select--readonly) .limel-select-trigger {
|
|
@@ -1475,7 +1474,7 @@ select.limel-select__native-control {
|
|
|
1475
1474
|
border: 0;
|
|
1476
1475
|
}
|
|
1477
1476
|
|
|
1478
|
-
:host(.is-narrow) {
|
|
1477
|
+
:host(.is-narrow) .limel-select {
|
|
1479
1478
|
height: 2.25rem;
|
|
1480
1479
|
}
|
|
1481
1480
|
:host(.is-narrow) .limel-select .mdc-select__anchor {
|
|
@@ -13,5 +13,5 @@ const patchBrowser = () => {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
patchBrowser().then(options => {
|
|
16
|
-
return bootstrapLazy([["limel-picker",[[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"],"items":[32],"textValue":[32],"loading":[32],"chips":[32]}]]],["limel-date-picker",[[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]}]]],["limel-button-group",[[1,"limel-button-group",{"value":[16],"disabled":[516],"selectedButtonId":[32]}]]],["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]}]]],["limel-tab-panel",[[1,"limel-tab-panel",{"tabs":[1040]}]]],["limel-file",[[1,"limel-file",{"value":[16],"label":[513],"required":[516],"disabled":[516],"readonly":[516],"accept":[513],"language":[1],"isDraggingOverDropZone":[32]}]]],["limel-menu",[[1,"limel-menu",{"items":[16],"disabled":[516],"openDirection":[513,"open-direction"],"open":[1540],"badgeIcons":[516,"badge-icons"],"gridLayout":[516,"grid-layout"]}]]],["limel-button",[[1,"limel-button",{"label":[513],"primary":[516],"outlined":[516],"icon":[513],"disabled":[516],"loading":[516]}]]],["limel-collapsible-section",[[1,"limel-collapsible-section",{"isOpen":[1540,"is-open"],"header":[
|
|
16
|
+
return bootstrapLazy([["limel-picker",[[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"],"items":[32],"textValue":[32],"loading":[32],"chips":[32]}]]],["limel-date-picker",[[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]}]]],["limel-button-group",[[1,"limel-button-group",{"value":[16],"disabled":[516],"selectedButtonId":[32]}]]],["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]}]]],["limel-tab-panel",[[1,"limel-tab-panel",{"tabs":[1040]}]]],["limel-file",[[1,"limel-file",{"value":[16],"label":[513],"required":[516],"disabled":[516],"readonly":[516],"accept":[513],"language":[1],"isDraggingOverDropZone":[32]}]]],["limel-menu",[[1,"limel-menu",{"items":[16],"disabled":[516],"openDirection":[513,"open-direction"],"open":[1540],"badgeIcons":[516,"badge-icons"],"gridLayout":[516,"grid-layout"]}]]],["limel-button",[[1,"limel-button",{"label":[513],"primary":[516],"outlined":[516],"icon":[513],"disabled":[516],"loading":[516]}]]],["limel-collapsible-section",[[1,"limel-collapsible-section",{"isOpen":[1540,"is-open"],"header":[513],"actions":[16]}]]],["limel-dialog",[[1,"limel-dialog",{"heading":[1],"fullscreen":[516],"open":[1540],"closingActions":[16]}]]],["limel-popover",[[1,"limel-popover",{"open":[4]}]]],["limel-progress-flow",[[1,"limel-progress-flow",{"flowItems":[16],"disabled":[4],"readonly":[4]}]]],["limel-banner",[[1,"limel-banner",{"message":[513],"icon":[513],"isOpen":[32],"open":[64],"close":[64]}]]],["limel-table",[[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"]}]]],["limel-checkbox",[[1,"limel-checkbox",{"disabled":[516],"readonly":[516],"label":[513],"checked":[516],"required":[516],"modified":[32]}]]],["limel-circular-progress",[[1,"limel-circular-progress",{"value":[2],"maxValue":[2,"max-value"],"suffix":[1],"displayPercentageColors":[4,"display-percentage-colors"],"size":[513]}]]],["limel-code-editor",[[1,"limel-code-editor",{"value":[1],"language":[1],"readonly":[4],"lineNumbers":[4,"line-numbers"],"colorScheme":[1,"color-scheme"],"random":[32]}]]],["limel-config",[[1,"limel-config",{"config":[16]}]]],["limel-flex-container",[[1,"limel-flex-container",{"direction":[513],"justify":[513],"align":[513],"reverse":[516]}]]],["limel-form",[[1,"limel-form",{"schema":[16],"value":[16],"propsFactory":[16]}]]],["limel-grid",[[1,"limel-grid"]]],["limel-linear-progress",[[1,"limel-linear-progress",{"value":[2],"indeterminate":[4]}]]],["limel-slider",[[1,"limel-slider",{"disabled":[516],"readonly":[516],"factor":[514],"label":[513],"helperText":[513,"helper-text"],"unit":[513],"value":[514],"valuemax":[514],"valuemin":[514],"step":[514],"percentageClass":[32]}]]],["limel-snackbar",[[1,"limel-snackbar",{"message":[1],"timeout":[2],"actionText":[1,"action-text"],"dismissible":[4],"multiline":[4],"language":[1],"show":[64]}]]],["limel-switch",[[1,"limel-switch",{"label":[513],"disabled":[516],"readonly":[516],"value":[516],"fieldId":[32]}]]],["limel-tab-bar",[[1,"limel-tab-bar",{"tabs":[1040],"canScrollLeft":[32],"canScrollRight":[32]},[[9,"resize","handleWindowResize"]]]]],["limel-tooltip",[[1,"limel-tooltip",{"label":[513],"helperLabel":[513,"helper-label"],"elementId":[513,"element-id"],"open":[32]}]]],["limel-header",[[1,"limel-header",{"icon":[1],"heading":[1],"subheading":[1],"supportingText":[1,"supporting-text"]}]]],["limel-progress-flow-item",[[0,"limel-progress-flow-item",{"item":[16],"disabled":[4],"readonly":[4]}]]],["limel-menu-list",[[1,"limel-menu-list",{"items":[16],"badgeIcons":[4,"badge-icons"],"iconSize":[1,"icon-size"],"type":[1],"maxLinesSecondaryText":[2,"max-lines-secondary-text"]}]]],["limel-popover-surface",[[1,"limel-popover-surface",{"contentCollection":[16]}]]],["limel-icon",[[1,"limel-icon",{"size":[513],"name":[513],"badge":[516]}]]],["limel-flatpickr-adapter_2",[[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]}],[1,"limel-flatpickr-adapter",{"value":[16],"type":[1],"format":[1],"isOpen":[4,"is-open"],"inputElement":[16],"language":[1]}]]],["limel-chip-set",[[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]}]]],["limel-tooltip-content",[[1,"limel-tooltip-content",{"label":[513],"helperLabel":[513,"helper-label"]}]]],["limel-icon-button",[[1,"limel-icon-button",{"icon":[513],"elevated":[516],"label":[513],"disabled":[516],"relayout":[64]}]]],["limel-spinner",[[1,"limel-spinner",{"size":[513],"limeBranded":[4,"lime-branded"]}]]],["limel-badge",[[1,"limel-badge",{"label":[514]}]]],["limel-portal",[[1,"limel-portal",{"openDirection":[1,"open-direction"],"position":[1],"containerId":[1,"container-id"],"containerStyle":[16],"parent":[16],"inheritParentWidth":[4,"inherit-parent-width"],"visible":[4]}]]],["limel-list_2",[[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]}]]]], options);
|
|
17
17
|
});
|
|
@@ -11054,6 +11054,10 @@ let CodeEditor = class {
|
|
|
11054
11054
|
this.editor.off('change', this.handleChange);
|
|
11055
11055
|
this.editor = null;
|
|
11056
11056
|
this.darkMode.removeEventListener('change', this.handleChangeDarkMode);
|
|
11057
|
+
const editorElement = this.host.shadowRoot.querySelector('.editor');
|
|
11058
|
+
editorElement === null || editorElement === void 0 ? void 0 : editorElement.childNodes.forEach((child) => {
|
|
11059
|
+
child.remove();
|
|
11060
|
+
});
|
|
11057
11061
|
}
|
|
11058
11062
|
componentDidRender() {
|
|
11059
11063
|
if (this.editor) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-2316f345.js';
|
|
2
2
|
import { d as dispatchResizeEvent } from './dispatch-resize-event-cd1d230c.js';
|
|
3
3
|
import { E as ENTER, a as ENTER_KEY_CODE } from './keycodes-9f971b46.js';
|
|
4
4
|
|
|
@@ -14,47 +14,45 @@ let CollapsibleSection = class {
|
|
|
14
14
|
* `true` if the section is expanded, `false` if collapsed.
|
|
15
15
|
*/
|
|
16
16
|
this.isOpen = false;
|
|
17
|
+
this.onClick = () => {
|
|
18
|
+
this.handleInteraction();
|
|
19
|
+
};
|
|
17
20
|
this.handleKeyDown = (event) => {
|
|
18
21
|
const isEnter = event.key === ENTER || event.keyCode === ENTER_KEY_CODE;
|
|
19
22
|
if (isEnter) {
|
|
20
23
|
event.stopPropagation();
|
|
21
24
|
event.preventDefault();
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
this.handleInteraction();
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
this.handleInteraction = () => {
|
|
29
|
+
this.isOpen = !this.isOpen;
|
|
30
|
+
if (this.isOpen) {
|
|
31
|
+
this.open.emit();
|
|
32
|
+
const waitForUiToRender = 100;
|
|
33
|
+
setTimeout(dispatchResizeEvent, waitForUiToRender);
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
this.close.emit();
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
this.renderActions = () => {
|
|
40
|
+
if (!this.actions) {
|
|
41
|
+
return;
|
|
25
42
|
}
|
|
43
|
+
return (h("div", { class: "section__header__actions" }, this.actions.map(this.renderActionButton)));
|
|
44
|
+
};
|
|
45
|
+
this.renderActionButton = (action) => {
|
|
46
|
+
return (h("limel-icon-button", { icon: action.icon, label: action.label, disabled: action.disabled, onClick: this.handleActionClick(action) }));
|
|
26
47
|
};
|
|
27
48
|
this.handleActionClick = (action) => (event) => {
|
|
28
49
|
event.stopPropagation();
|
|
29
50
|
this.action.emit(action);
|
|
30
51
|
};
|
|
31
|
-
this.onClick = this.onClick.bind(this);
|
|
32
|
-
this.renderActionButton = this.renderActionButton.bind(this);
|
|
33
52
|
}
|
|
34
53
|
render() {
|
|
35
54
|
return (h("section", { class: `${this.isOpen ? 'open' : ''}` }, h("header", { class: "section__header", onClick: this.onClick, onKeyDown: this.handleKeyDown, tabindex: "0" }, h("div", { class: "section__header__expand-icon" }, h("div", { class: "expand-icon__line" }), h("div", { class: "expand-icon__line" }), h("div", { class: "expand-icon__line" }), h("div", { class: "expand-icon__line" })), h("h2", { class: "section__header__title mdc-typography mdc-typography--headline2" }, this.header), h("div", { class: "section__header__divider-line" }), this.renderActions()), h("div", { class: "section__body" }, h("slot", null))));
|
|
36
55
|
}
|
|
37
|
-
onClick() {
|
|
38
|
-
this.isOpen = !this.isOpen;
|
|
39
|
-
if (this.isOpen) {
|
|
40
|
-
this.open.emit();
|
|
41
|
-
const waitForUiToRender = 100;
|
|
42
|
-
setTimeout(dispatchResizeEvent, waitForUiToRender);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
this.close.emit();
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
renderActions() {
|
|
49
|
-
if (!this.actions) {
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
return (h("div", { class: "section__header__actions" }, this.actions.map(this.renderActionButton)));
|
|
53
|
-
}
|
|
54
|
-
renderActionButton(action) {
|
|
55
|
-
return (h("limel-icon-button", { icon: action.icon, label: action.label, disabled: action.disabled, onClick: this.handleActionClick(action) }));
|
|
56
|
-
}
|
|
57
|
-
get host() { return getElement(this); }
|
|
58
56
|
};
|
|
59
57
|
CollapsibleSection.style = collapsibleSectionCss;
|
|
60
58
|
|
|
@@ -7035,16 +7035,24 @@ class MonthPicker extends Picker {
|
|
|
7035
7035
|
}
|
|
7036
7036
|
}
|
|
7037
7037
|
}
|
|
7038
|
-
prevYear(
|
|
7038
|
+
prevYear() {
|
|
7039
7039
|
if (!this.nativePicker) {
|
|
7040
|
-
event
|
|
7041
|
-
|
|
7040
|
+
// Preventing default or stopping the event from propagating doesn't
|
|
7041
|
+
// stop flatpickr from moving one month on its own, so we let it do
|
|
7042
|
+
// that, and then move the other 11 months to make it a full year.
|
|
7043
|
+
// /Ads
|
|
7044
|
+
const monthsToMove = 11;
|
|
7045
|
+
this.flatpickr.changeMonth(-monthsToMove);
|
|
7042
7046
|
}
|
|
7043
7047
|
}
|
|
7044
|
-
nextYear(
|
|
7048
|
+
nextYear() {
|
|
7045
7049
|
if (!this.nativePicker) {
|
|
7046
|
-
event
|
|
7047
|
-
|
|
7050
|
+
// Preventing default or stopping the event from propagating doesn't
|
|
7051
|
+
// stop flatpickr from moving one month on its own, so we let it do
|
|
7052
|
+
// that, and then move the other 11 months to make it a full year.
|
|
7053
|
+
// /Ads
|
|
7054
|
+
const monthsToMove = 11;
|
|
7055
|
+
this.flatpickr.changeMonth(monthsToMove);
|
|
7048
7056
|
}
|
|
7049
7057
|
}
|
|
7050
7058
|
}
|
|
@@ -23991,11 +23991,10 @@ class ArrayFieldTemplate extends react.Component {
|
|
|
23991
23991
|
});
|
|
23992
23992
|
}
|
|
23993
23993
|
renderItem(item, index) {
|
|
23994
|
-
const key = `id_${index}`;
|
|
23995
23994
|
const { schema, formData, formContext } = this.props;
|
|
23996
23995
|
if (isObjectType(schema.items)) {
|
|
23997
23996
|
return react.createElement(CollapsibleItemTemplate, {
|
|
23998
|
-
key: key,
|
|
23997
|
+
key: item.key,
|
|
23999
23998
|
item: item,
|
|
24000
23999
|
data: formData[index],
|
|
24001
24000
|
schema: schema,
|
|
@@ -24004,7 +24003,7 @@ class ArrayFieldTemplate extends react.Component {
|
|
|
24004
24003
|
});
|
|
24005
24004
|
}
|
|
24006
24005
|
return react.createElement(SimpleItemTemplate, {
|
|
24007
|
-
key: key,
|
|
24006
|
+
key: item.key,
|
|
24008
24007
|
item: item,
|
|
24009
24008
|
index: index,
|
|
24010
24009
|
});
|
|
@@ -29526,7 +29525,7 @@ function isInteger(data) {
|
|
|
29526
29525
|
return Number.isInteger(Number(data));
|
|
29527
29526
|
}
|
|
29528
29527
|
|
|
29529
|
-
const formCss = ":host{--mdc-theme-primary:var(\n --lime-primary-color,\n rgb(var(--color-teal-default))\n );--mdc-theme-secondary:var(\n --lime-secondary-color,\n rgb(var(--contrast-1100))\n );--mdc-theme-on-primary:var(\n --lime-on-primary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-secondary:var(\n --lime-on-secondary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-text-disabled-on-background:var(\n --lime-text-disabled-on-background-color,\n rgba(var(--contrast-1700), 0.38)\n );--mdc-theme-text-primary-on-background:var(\n --lime-text-primary-on-background-color,\n rgba(var(--contrast-1700), 0.87)\n );--mdc-theme-text-secondary-on-background:var(\n --lime-text-secondary-on-background-color,\n rgba(var(--contrast-1700), 0.54)\n );--lime-error-text-color:rgb(var(--color-red-darker));--mdc-theme-surface:var(\n --lime-surface-background-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-surface:var(\n --lime-on-surface-color,\n var(--lime-text-primary-on-background-color)\n )}.mdc-typography{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-font-family, Roboto, sans-serif)}.mdc-typography--headline1{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1.375rem;font-size:var(--mdc-typography-headline1-font-size, 1.375rem);line-height:1.375rem;line-height:var(--mdc-typography-headline1-line-height, 1.375rem);font-weight:300;font-weight:var(--mdc-typography-headline1-font-weight, 300);letter-spacing:-0.015625em;letter-spacing:var(--mdc-typography-headline1-letter-spacing, -0.015625em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline1-text-transform, inherit)}.mdc-typography--headline2{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-headline2-font-size, 1rem);line-height:0.875rem;line-height:var(--mdc-typography-headline2-line-height, 0.875rem);font-weight:300;font-weight:var(--mdc-typography-headline2-font-weight, 300);letter-spacing:-0.0083333333em;letter-spacing:var(--mdc-typography-headline2-letter-spacing, -0.0083333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline2-text-transform, inherit)}.mdc-typography--headline3{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline3-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-headline3-font-size, 1rem);line-height:0.875rem;line-height:var(--mdc-typography-headline3-line-height, 0.875rem);font-weight:400;font-weight:var(--mdc-typography-headline3-font-weight, 400);letter-spacing:normal;letter-spacing:var(--mdc-typography-headline3-letter-spacing, normal);text-decoration:inherit;text-decoration:var(--mdc-typography-headline3-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline3-text-transform, inherit)}.mdc-typography--headline4{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline4-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-headline4-font-size, 1rem);line-height:0.875rem;line-height:var(--mdc-typography-headline4-line-height, 0.875rem);font-weight:400;font-weight:var(--mdc-typography-headline4-font-weight, 400);letter-spacing:0.0073529412em;letter-spacing:var(--mdc-typography-headline4-letter-spacing, 0.0073529412em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline4-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline4-text-transform, inherit)}.mdc-typography--headline5{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline5-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-headline5-font-size, 0.875rem);line-height:0.875rem;line-height:var(--mdc-typography-headline5-line-height, 0.875rem);font-weight:400;font-weight:var(--mdc-typography-headline5-font-weight, 400);letter-spacing:normal;letter-spacing:var(--mdc-typography-headline5-letter-spacing, normal);text-decoration:inherit;text-decoration:var(--mdc-typography-headline5-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline5-text-transform, inherit)}.mdc-typography--headline6{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline6-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-headline6-font-size, 0.875rem);line-height:0.875rem;line-height:var(--mdc-typography-headline6-line-height, 0.875rem);font-weight:500;font-weight:var(--mdc-typography-headline6-font-weight, 500);letter-spacing:0.0125em;letter-spacing:var(--mdc-typography-headline6-letter-spacing, 0.0125em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline6-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline6-text-transform, inherit)}.mdc-typography--subtitle1{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-subtitle1-font-size, 0.875rem);line-height:1.125rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.125rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit)}.mdc-typography--subtitle2{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.8125rem;font-size:var(--mdc-typography-subtitle2-font-size, 0.8125rem);line-height:1.125rem;line-height:var(--mdc-typography-subtitle2-line-height, 1.125rem);font-weight:500;font-weight:var(--mdc-typography-subtitle2-font-weight, 500);letter-spacing:0.0071428571em;letter-spacing:var(--mdc-typography-subtitle2-letter-spacing, 0.0071428571em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle2-text-transform, inherit)}.mdc-typography--body1{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.8125rem;font-size:var(--mdc-typography-body1-font-size, 0.8125rem);line-height:1.5rem;line-height:var(--mdc-typography-body1-line-height, 1.5rem);font-weight:400;font-weight:var(--mdc-typography-body1-font-weight, 400);letter-spacing:0.03125em;letter-spacing:var(--mdc-typography-body1-letter-spacing, 0.03125em);text-decoration:inherit;text-decoration:var(--mdc-typography-body1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body1-text-transform, inherit)}.mdc-typography--body2{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.8125rem;font-size:var(--mdc-typography-body2-font-size, 0.8125rem);line-height:1.625rem;line-height:var(--mdc-typography-body2-line-height, 1.625rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit)}.mdc-typography--caption{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.6875rem;font-size:var(--mdc-typography-caption-font-size, 0.6875rem);line-height:0.875rem;line-height:var(--mdc-typography-caption-line-height, 0.875rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit)}.mdc-typography--button{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-button-font-size, 0.875rem);line-height:2.25rem;line-height:var(--mdc-typography-button-line-height, 2.25rem);font-weight:500;font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:0.0892857143em;letter-spacing:var(--mdc-typography-button-letter-spacing, 0.0892857143em);text-decoration:none;text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:none;text-transform:var(--mdc-typography-button-text-transform, none)}.mdc-typography--overline{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-overline-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.6875rem;font-size:var(--mdc-typography-overline-font-size, 0.6875rem);line-height:0.875rem;line-height:var(--mdc-typography-overline-line-height, 0.875rem);font-weight:500;font-weight:var(--mdc-typography-overline-font-weight, 500);letter-spacing:0.1666666667em;letter-spacing:var(--mdc-typography-overline-letter-spacing, 0.1666666667em);text-decoration:none;text-decoration:var(--mdc-typography-overline-text-decoration, none);text-transform:uppercase;text-transform:var(--mdc-typography-overline-text-transform, uppercase)}.limel-form-array-item--simple{display:flex;align-items:center;margin-right:0.625rem}.limel-form-array-item--simple *:first-child{flex-grow:1}.limel-form-layout--default{--gap:1rem;display:grid;gap:var(--gap);padding:var(--form-body-padding, 1rem)}.limel-form-layout--grid{--gap:1rem;--min-height-of-one-row:4.71rem;display:grid;gap:var(--gap);padding:var(--form-body-padding, 1rem);grid-template-columns:repeat(var(--number-of-columns), minmax(0, 1fr))}.limel-form-layout--grid.auto-reorder-to-avoid-empty-cells{grid-auto-flow:dense}.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--1,.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--2,.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--3,.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--4,.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--5{grid-column:span 1}.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--1{grid-column:span 1}.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--2,.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--3,.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--4,.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--5{grid-column:span 2}.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--1{grid-column:span 1}.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--2{grid-column:span 2}.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--3,.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--4,.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--5{grid-column:span 3}.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--1{grid-column:span 1}.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--2{grid-column:span 2}.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--3{grid-column:span 3}.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--4,.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--5{grid-column:span 4}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--1{grid-column:span 1}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--2{grid-column:span 2}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--3{grid-column:span 3}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--4{grid-column:span 4}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--5{grid-column:span 5}.limel-form-layout--grid .limel-form-layout-colspan--all{grid-column:1/-1}.form-group limel-checkbox,.form-group limel-switch{margin-top:0.5rem;display:block;min-height:calc( var(--min-height-of-one-row) - 0.9375rem )}.form-group limel-switch{margin-left:0.5rem}.form-error{color:var(--mdc-theme-error, #b00020);font-size:0.6875rem;line-height:1.5;visibility:inherit;padding-right:1rem;padding-left:1rem;padding-top:0.25rem}.button-add-new{margin-top:0.5rem;width:100%}.mdc-typography--headline1{position:relative}.form-group .mdc-typography--headline1{--mdc-typography-headline1-font-size:2rem;--mdc-typography-headline1-line-height:2.25rem;--mdc-typography-headline1-letter-spacing:-0.0625rem;--mdc-typography-headline1-font-weight:400;color:rgb(var(--contrast-1000));margin-top:1.5rem;margin-bottom:0.5rem}.form-group .form-group .mdc-typography--headline1{--mdc-typography-headline1-font-size:1.625rem;--mdc-typography-headline1-line-height:1.25rem;--mdc-typography-headline1-font-weight:300;margin-top:1.25rem;margin-bottom:0.5rem;color:rgb(var(--contrast-1100))}.form-group .form-group .mdc-typography--headline1:before{content:\"\";display:block;position:absolute;top:0;bottom:0;margin:auto;left:-0.75rem;background-color:var(--mdc-theme-primary);width:0.125rem;height:var(--mdc-typography-headline1-line-height);border-radius:0.125rem;opacity:0.6}.form-group .form-group .form-group .mdc-typography--headline1{--mdc-typography-headline1-font-size:1.375rem;--mdc-typography-headline1-line-height:1.5rem;--mdc-typography-headline1-font-weight:300;margin-top:1rem;margin-bottom:0.5rem;color:rgb(var(--contrast-1200))}.form-group .form-group .form-group .mdc-typography--headline1:before{display:none}.form-group .form-group .form-group .form-group .mdc-typography--headline1{--mdc-typography-headline1-font-size:1.25rem;--mdc-typography-headline1-line-height:1.25rem;--mdc-typography-headline1-font-weight:300;margin-top:1rem;margin-bottom:0.5rem;color:rgb(var(--contrast-1200))}.form-group .form-group .form-group .form-group .mdc-typography--headline1:before{display:none}";
|
|
29528
|
+
const formCss = ":host{--mdc-theme-primary:var(\n --lime-primary-color,\n rgb(var(--color-teal-default))\n );--mdc-theme-secondary:var(\n --lime-secondary-color,\n rgb(var(--contrast-1100))\n );--mdc-theme-on-primary:var(\n --lime-on-primary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-secondary:var(\n --lime-on-secondary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-text-disabled-on-background:var(\n --lime-text-disabled-on-background-color,\n rgba(var(--contrast-1700), 0.38)\n );--mdc-theme-text-primary-on-background:var(\n --lime-text-primary-on-background-color,\n rgba(var(--contrast-1700), 0.87)\n );--mdc-theme-text-secondary-on-background:var(\n --lime-text-secondary-on-background-color,\n rgba(var(--contrast-1700), 0.54)\n );--lime-error-text-color:rgb(var(--color-red-darker));--mdc-theme-surface:var(\n --lime-surface-background-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-surface:var(\n --lime-on-surface-color,\n var(--lime-text-primary-on-background-color)\n )}.mdc-typography{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-font-family, Roboto, sans-serif)}.mdc-typography--headline1{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1.375rem;font-size:var(--mdc-typography-headline1-font-size, 1.375rem);line-height:1.375rem;line-height:var(--mdc-typography-headline1-line-height, 1.375rem);font-weight:300;font-weight:var(--mdc-typography-headline1-font-weight, 300);letter-spacing:-0.015625em;letter-spacing:var(--mdc-typography-headline1-letter-spacing, -0.015625em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline1-text-transform, inherit)}.mdc-typography--headline2{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-headline2-font-size, 1rem);line-height:0.875rem;line-height:var(--mdc-typography-headline2-line-height, 0.875rem);font-weight:300;font-weight:var(--mdc-typography-headline2-font-weight, 300);letter-spacing:-0.0083333333em;letter-spacing:var(--mdc-typography-headline2-letter-spacing, -0.0083333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline2-text-transform, inherit)}.mdc-typography--headline3{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline3-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-headline3-font-size, 1rem);line-height:0.875rem;line-height:var(--mdc-typography-headline3-line-height, 0.875rem);font-weight:400;font-weight:var(--mdc-typography-headline3-font-weight, 400);letter-spacing:normal;letter-spacing:var(--mdc-typography-headline3-letter-spacing, normal);text-decoration:inherit;text-decoration:var(--mdc-typography-headline3-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline3-text-transform, inherit)}.mdc-typography--headline4{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline4-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:1rem;font-size:var(--mdc-typography-headline4-font-size, 1rem);line-height:0.875rem;line-height:var(--mdc-typography-headline4-line-height, 0.875rem);font-weight:400;font-weight:var(--mdc-typography-headline4-font-weight, 400);letter-spacing:0.0073529412em;letter-spacing:var(--mdc-typography-headline4-letter-spacing, 0.0073529412em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline4-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline4-text-transform, inherit)}.mdc-typography--headline5{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline5-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-headline5-font-size, 0.875rem);line-height:0.875rem;line-height:var(--mdc-typography-headline5-line-height, 0.875rem);font-weight:400;font-weight:var(--mdc-typography-headline5-font-weight, 400);letter-spacing:normal;letter-spacing:var(--mdc-typography-headline5-letter-spacing, normal);text-decoration:inherit;text-decoration:var(--mdc-typography-headline5-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline5-text-transform, inherit)}.mdc-typography--headline6{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-headline6-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-headline6-font-size, 0.875rem);line-height:0.875rem;line-height:var(--mdc-typography-headline6-line-height, 0.875rem);font-weight:500;font-weight:var(--mdc-typography-headline6-font-weight, 500);letter-spacing:0.0125em;letter-spacing:var(--mdc-typography-headline6-letter-spacing, 0.0125em);text-decoration:inherit;text-decoration:var(--mdc-typography-headline6-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-headline6-text-transform, inherit)}.mdc-typography--subtitle1{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-subtitle1-font-size, 0.875rem);line-height:1.125rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.125rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit)}.mdc-typography--subtitle2{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.8125rem;font-size:var(--mdc-typography-subtitle2-font-size, 0.8125rem);line-height:1.125rem;line-height:var(--mdc-typography-subtitle2-line-height, 1.125rem);font-weight:500;font-weight:var(--mdc-typography-subtitle2-font-weight, 500);letter-spacing:0.0071428571em;letter-spacing:var(--mdc-typography-subtitle2-letter-spacing, 0.0071428571em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle2-text-transform, inherit)}.mdc-typography--body1{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.8125rem;font-size:var(--mdc-typography-body1-font-size, 0.8125rem);line-height:1.5rem;line-height:var(--mdc-typography-body1-line-height, 1.5rem);font-weight:400;font-weight:var(--mdc-typography-body1-font-weight, 400);letter-spacing:0.03125em;letter-spacing:var(--mdc-typography-body1-letter-spacing, 0.03125em);text-decoration:inherit;text-decoration:var(--mdc-typography-body1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body1-text-transform, inherit)}.mdc-typography--body2{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.8125rem;font-size:var(--mdc-typography-body2-font-size, 0.8125rem);line-height:1.625rem;line-height:var(--mdc-typography-body2-line-height, 1.625rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit)}.mdc-typography--caption{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.6875rem;font-size:var(--mdc-typography-caption-font-size, 0.6875rem);line-height:0.875rem;line-height:var(--mdc-typography-caption-line-height, 0.875rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit)}.mdc-typography--button{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-button-font-size, 0.875rem);line-height:2.25rem;line-height:var(--mdc-typography-button-line-height, 2.25rem);font-weight:500;font-weight:var(--mdc-typography-button-font-weight, 500);letter-spacing:0.0892857143em;letter-spacing:var(--mdc-typography-button-letter-spacing, 0.0892857143em);text-decoration:none;text-decoration:var(--mdc-typography-button-text-decoration, none);text-transform:none;text-transform:var(--mdc-typography-button-text-transform, none)}.mdc-typography--overline{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-overline-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.6875rem;font-size:var(--mdc-typography-overline-font-size, 0.6875rem);line-height:0.875rem;line-height:var(--mdc-typography-overline-line-height, 0.875rem);font-weight:500;font-weight:var(--mdc-typography-overline-font-weight, 500);letter-spacing:0.1666666667em;letter-spacing:var(--mdc-typography-overline-letter-spacing, 0.1666666667em);text-decoration:none;text-decoration:var(--mdc-typography-overline-text-decoration, none);text-transform:uppercase;text-transform:var(--mdc-typography-overline-text-transform, uppercase)}.limel-form-array-item--simple{display:flex;align-items:center;margin-right:0.625rem}.limel-form-array-item--simple *:first-child{flex-grow:1}.limel-form-layout--default{--gap:1rem;display:grid;gap:var(--gap);padding:var(--form-body-padding, 1rem)}.limel-form-layout--grid{--gap:1rem;--min-height-of-one-row:4.71rem;display:grid;gap:var(--gap);padding:var(--form-body-padding, 1rem);grid-template-columns:repeat(var(--number-of-columns), minmax(0, 1fr))}.limel-form-layout--grid.auto-reorder-to-avoid-empty-cells{grid-auto-flow:dense}.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--1,.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--2,.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--3,.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--4,.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--5{grid-column:span 1}.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--1{grid-column:span 1}.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--2,.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--3,.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--4,.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--5{grid-column:span 2}.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--1{grid-column:span 1}.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--2{grid-column:span 2}.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--3,.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--4,.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--5{grid-column:span 3}.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--1{grid-column:span 1}.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--2{grid-column:span 2}.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--3{grid-column:span 3}.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--4,.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--5{grid-column:span 4}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--1{grid-column:span 1}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--2{grid-column:span 2}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--3{grid-column:span 3}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--4{grid-column:span 4}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--5{grid-column:span 5}.limel-form-layout--grid .limel-form-layout-colspan--all{grid-column:1/-1}.limel-form-layout--grid limel-checkbox,.limel-form-layout--grid limel-switch{margin-top:0.5rem;display:block;min-height:calc( var(--min-height-of-one-row) - 0.9375rem )}.limel-form-layout--grid limel-switch{margin-left:0.5rem}.form-error{color:var(--mdc-theme-error, #b00020);font-size:0.6875rem;line-height:1.5;visibility:inherit;padding-right:1rem;padding-left:1rem;padding-top:0.25rem}.button-add-new{margin-top:0.5rem;width:100%}.mdc-typography--headline1{position:relative}.form-group .mdc-typography--headline1{--mdc-typography-headline1-font-size:2rem;--mdc-typography-headline1-line-height:2.25rem;--mdc-typography-headline1-letter-spacing:-0.0625rem;--mdc-typography-headline1-font-weight:400;color:rgb(var(--contrast-1000));margin-top:1.5rem;margin-bottom:0.5rem}.form-group .form-group .mdc-typography--headline1{--mdc-typography-headline1-font-size:1.625rem;--mdc-typography-headline1-line-height:1.25rem;--mdc-typography-headline1-font-weight:300;margin-top:1.25rem;margin-bottom:0.5rem;color:rgb(var(--contrast-1100))}.form-group .form-group .mdc-typography--headline1:before{content:\"\";display:block;position:absolute;top:0;bottom:0;margin:auto;left:-0.75rem;background-color:var(--mdc-theme-primary);width:0.125rem;height:var(--mdc-typography-headline1-line-height);border-radius:0.125rem;opacity:0.6}.form-group .form-group .form-group .mdc-typography--headline1{--mdc-typography-headline1-font-size:1.375rem;--mdc-typography-headline1-line-height:1.5rem;--mdc-typography-headline1-font-weight:300;margin-top:1rem;margin-bottom:0.5rem;color:rgb(var(--contrast-1200))}.form-group .form-group .form-group .mdc-typography--headline1:before{display:none}.form-group .form-group .form-group .form-group .mdc-typography--headline1{--mdc-typography-headline1-font-size:1.25rem;--mdc-typography-headline1-line-height:1.25rem;--mdc-typography-headline1-font-weight:300;margin-top:1rem;margin-bottom:0.5rem;color:rgb(var(--contrast-1200))}.form-group .form-group .form-group .form-group .mdc-typography--headline1:before{display:none}";
|
|
29530
29529
|
|
|
29531
29530
|
let Form = class {
|
|
29532
29531
|
constructor(hostRef) {
|