@sankhyalabs/ezui 2.3.13 → 2.4.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/dist/cjs/ez-actions-button.cjs.entry.js +1 -0
- package/dist/cjs/ez-button.cjs.entry.js +2 -2
- package/dist/cjs/ez-check.cjs.entry.js +1 -4
- package/dist/cjs/ez-chip.cjs.entry.js +1 -2
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
- package/dist/cjs/ez-combo-box.cjs.entry.js +6 -2
- package/dist/cjs/ez-date-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-date-time-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-filter-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-form.cjs.entry.js +8 -8
- package/dist/cjs/ez-grid.cjs.entry.js +3 -3
- package/dist/cjs/ez-icon.cjs.entry.js +4 -0
- package/dist/cjs/ez-list.cjs.entry.js +4 -0
- package/dist/cjs/ez-number-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +2 -2
- package/dist/cjs/ez-tabselector.cjs.entry.js +5 -4
- package/dist/cjs/ez-text-area.cjs.entry.js +2 -2
- package/dist/cjs/ez-text-edit.cjs.entry.js +2 -2
- package/dist/cjs/ez-text-input.cjs.entry.js +4 -3
- package/dist/cjs/ez-time-input.cjs.entry.js +2 -2
- package/dist/collection/components/ez-actions-button/ez-actions-button.js +2 -1
- package/dist/collection/components/ez-button/ez-button.js +2 -2
- package/dist/collection/components/ez-check/ez-check.js +1 -4
- package/dist/collection/components/ez-chip/ez-chip.js +1 -2
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +1 -1
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +6 -2
- package/dist/collection/components/ez-date-input/ez-date-input.js +3 -3
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +3 -3
- package/dist/collection/components/ez-filter-input/ez-filter-input.js +2 -2
- package/dist/collection/components/ez-form/ez-form.js +4 -4
- package/dist/collection/components/ez-form/structure/FormItem.js +1 -1
- package/dist/collection/components/ez-form/structure/FormSheetMetadata.js +3 -3
- package/dist/collection/components/ez-grid/ez-grid.js +3 -3
- package/dist/collection/components/ez-icon/ez-icon.js +6 -2
- package/dist/collection/components/ez-list/ez-list.js +4 -0
- package/dist/collection/components/ez-number-input/ez-number-input.js +2 -2
- package/dist/collection/components/ez-radio-button/ez-radio-button.js +1 -1
- package/dist/collection/components/ez-search/ez-search.js +2 -2
- package/dist/collection/components/ez-tabselector/ez-tabselector.js +5 -4
- package/dist/collection/components/ez-text-area/ez-text-area.js +2 -2
- package/dist/collection/components/ez-text-edit/ez-text-edit.js +2 -2
- package/dist/collection/components/ez-text-input/ez-text-input.js +4 -3
- package/dist/collection/components/ez-time-input/ez-time-input.js +2 -2
- package/dist/custom-elements/index.js +56 -46
- package/dist/esm/ez-actions-button.entry.js +2 -1
- package/dist/esm/ez-button.entry.js +2 -2
- package/dist/esm/ez-check.entry.js +1 -4
- package/dist/esm/ez-chip.entry.js +1 -2
- package/dist/esm/ez-collapsible-box.entry.js +1 -1
- package/dist/esm/ez-combo-box.entry.js +6 -2
- package/dist/esm/ez-date-input.entry.js +2 -2
- package/dist/esm/ez-date-time-input.entry.js +2 -2
- package/dist/esm/ez-filter-input.entry.js +2 -2
- package/dist/esm/ez-form.entry.js +8 -8
- package/dist/esm/ez-grid.entry.js +3 -3
- package/dist/esm/ez-icon.entry.js +6 -2
- package/dist/esm/ez-list.entry.js +4 -0
- package/dist/esm/ez-number-input.entry.js +2 -2
- package/dist/esm/ez-radio-button.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +2 -2
- package/dist/esm/ez-tabselector.entry.js +5 -4
- package/dist/esm/ez-text-area.entry.js +2 -2
- package/dist/esm/ez-text-edit.entry.js +2 -2
- package/dist/esm/ez-text-input.entry.js +4 -3
- package/dist/esm/ez-time-input.entry.js +2 -2
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-81fb0c90.entry.js → p-01b79946.entry.js} +1 -1
- package/dist/ezui/p-05dbdaeb.entry.js +1 -0
- package/dist/ezui/{p-ccbe8272.entry.js → p-123a2bd5.entry.js} +1 -1
- package/dist/ezui/{p-941d9bf9.entry.js → p-1a89d3ff.entry.js} +1 -1
- package/dist/ezui/{p-ff5be174.entry.js → p-4c061e51.entry.js} +1 -1
- package/dist/ezui/p-590d9e91.entry.js +1 -0
- package/dist/ezui/p-5cb4b43b.entry.js +1 -0
- package/dist/ezui/p-6d0b9d3c.entry.js +1 -0
- package/dist/ezui/p-7b906805.entry.js +1 -0
- package/dist/ezui/p-7e496975.entry.js +1 -0
- package/dist/ezui/p-87ee59e8.entry.js +1 -0
- package/dist/ezui/p-9334a724.entry.js +1 -0
- package/dist/ezui/p-941e9792.entry.js +1 -0
- package/dist/ezui/p-9def6fd0.entry.js +1 -0
- package/dist/ezui/p-a2e55b33.entry.js +1 -0
- package/dist/ezui/p-a34b52f8.entry.js +1 -0
- package/dist/ezui/p-abcd17e6.entry.js +1 -0
- package/dist/ezui/{p-ede1328a.entry.js → p-ad5fe50b.entry.js} +1 -1
- package/dist/ezui/{p-72d755a8.entry.js → p-ea877274.entry.js} +1 -1
- package/dist/ezui/p-f2627de5.entry.js +1 -0
- package/dist/ezui/p-f2c4e811.entry.js +1 -0
- package/dist/types/components/ez-form/ez-form.d.ts +0 -1
- package/dist/types/components/ez-icon/ez-icon.d.ts +2 -0
- package/dist/types/components/ez-list/ez-list.d.ts +1 -0
- package/package.json +1 -1
- package/dist/ezui/p-1214c5ce.entry.js +0 -1
- package/dist/ezui/p-205fc8bc.entry.js +0 -1
- package/dist/ezui/p-66ebdf34.entry.js +0 -1
- package/dist/ezui/p-6acb7364.entry.js +0 -1
- package/dist/ezui/p-6bcf35fd.entry.js +0 -1
- package/dist/ezui/p-7cf71eb3.entry.js +0 -1
- package/dist/ezui/p-88d0fc06.entry.js +0 -1
- package/dist/ezui/p-8964287f.entry.js +0 -1
- package/dist/ezui/p-ac15d77e.entry.js +0 -1
- package/dist/ezui/p-c2ebc450.entry.js +0 -1
- package/dist/ezui/p-ca9a0a49.entry.js +0 -1
- package/dist/ezui/p-e2337c61.entry.js +0 -1
- package/dist/ezui/p-ec9decf2.entry.js +0 -1
- package/dist/ezui/p-f4d2438e.entry.js +0 -1
- package/dist/ezui/p-fcee02c6.entry.js +0 -1
|
@@ -108,7 +108,7 @@ export const buildFromConfig = (config, dataUnit) => {
|
|
|
108
108
|
}
|
|
109
109
|
});
|
|
110
110
|
(_b = config === null || config === void 0 ? void 0 : config.fields) === null || _b === void 0 ? void 0 : _b.forEach((field) => {
|
|
111
|
-
var _a, _b, _c;
|
|
111
|
+
var _a, _b, _c, _d;
|
|
112
112
|
if (field.visible !== false) {
|
|
113
113
|
const tabConfig = getTabConfig(field.tab || "__main", sheets);
|
|
114
114
|
if (hiddenTabs.has(tabConfig.label)) {
|
|
@@ -124,10 +124,10 @@ export const buildFromConfig = (config, dataUnit) => {
|
|
|
124
124
|
requiredFields.push(field.name);
|
|
125
125
|
}
|
|
126
126
|
const cleanOnCopy = field.cleanOnCopy == undefined ? (_a = descriptor.properties) === null || _a === void 0 ? void 0 : _a.cleanOnCopy : field.cleanOnCopy;
|
|
127
|
-
if (cleanOnCopy || ((_b = descriptor.properties) === null || _b === void 0 ? void 0 : _b.autoNum)) {
|
|
127
|
+
if (cleanOnCopy || ((_b = descriptor.properties) === null || _b === void 0 ? void 0 : _b.autoNum) || ((_c = descriptor.properties) === null || _c === void 0 ? void 0 : _c.cleanOnCopy)) {
|
|
128
128
|
cleanOnCopyFields.push(field.name);
|
|
129
129
|
}
|
|
130
|
-
const defaultValue = field.defaultValue == undefined ? (
|
|
130
|
+
const defaultValue = field.defaultValue == undefined ? (_d = descriptor.properties) === null || _d === void 0 ? void 0 : _d.defaultValue : field.defaultValue;
|
|
131
131
|
if (defaultValue) {
|
|
132
132
|
defaultValues[field.name] = field.defaultValue;
|
|
133
133
|
}
|
|
@@ -152,9 +152,9 @@ export class EzGrid {
|
|
|
152
152
|
}
|
|
153
153
|
buildDataElementId() {
|
|
154
154
|
const dataInfo = { dataUnit: this.dataUnit };
|
|
155
|
-
|
|
156
|
-
const dtInfo = { id:
|
|
157
|
-
ElementIDUtils.addIDInfo(this._refPaginationControl,
|
|
155
|
+
ElementIDUtils.addIDInfo(this._element, null, dataInfo);
|
|
156
|
+
const dtInfo = { id: "ezGrid" };
|
|
157
|
+
ElementIDUtils.addIDInfo(this._refPaginationControl, "pagination", dtInfo);
|
|
158
158
|
}
|
|
159
159
|
previousPage() {
|
|
160
160
|
if (this.dataUnit) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StringUtils } from "@sankhyalabs/core";
|
|
2
|
-
import { Component, h, Host, Prop } from "@stencil/core";
|
|
1
|
+
import { ElementIDUtils, StringUtils } from "@sankhyalabs/core";
|
|
2
|
+
import { Component, Element, h, Host, Prop } from "@stencil/core";
|
|
3
3
|
export class EzIcon {
|
|
4
4
|
constructor() {
|
|
5
5
|
/**
|
|
@@ -25,6 +25,9 @@ export class EzIcon {
|
|
|
25
25
|
return h("img", { class: this.size, src: this.href });
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
+
componentDidLoad() {
|
|
29
|
+
ElementIDUtils.addIDInfo(this._hostElement, "icon");
|
|
30
|
+
}
|
|
28
31
|
render() {
|
|
29
32
|
return (h(Host, null, this.getIconContent()));
|
|
30
33
|
}
|
|
@@ -90,4 +93,5 @@ export class EzIcon {
|
|
|
90
93
|
"reflect": true
|
|
91
94
|
}
|
|
92
95
|
}; }
|
|
96
|
+
static get elementRef() { return "_hostElement"; }
|
|
93
97
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ElementIDUtils } from "@sankhyalabs/core";
|
|
1
2
|
import { Component, Event, h, Host, Method, Prop, State } from "@stencil/core";
|
|
2
3
|
;
|
|
3
4
|
;
|
|
@@ -159,6 +160,9 @@ export class EzList {
|
|
|
159
160
|
componentWillRender() {
|
|
160
161
|
this.createList();
|
|
161
162
|
}
|
|
163
|
+
componentDidLoad() {
|
|
164
|
+
ElementIDUtils.addIDInfo(this._element);
|
|
165
|
+
}
|
|
162
166
|
onDrop(ev, dragEndItem) {
|
|
163
167
|
this.removeOverClass();
|
|
164
168
|
this.setSelection(undefined);
|
|
@@ -126,8 +126,8 @@ export class EzNumberInput {
|
|
|
126
126
|
this.setInputValue();
|
|
127
127
|
}
|
|
128
128
|
render() {
|
|
129
|
-
|
|
130
|
-
return (h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo(
|
|
129
|
+
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
130
|
+
return (h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, onBlur: () => this.handleBlur(), onInput: () => this.handleInput(), restrict: this.precision > 0 ? "0123456789-,." : "0123456789-", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode }));
|
|
131
131
|
}
|
|
132
132
|
static get is() { return "ez-number-input"; }
|
|
133
133
|
static get encapsulation() { return "shadow"; }
|
|
@@ -40,7 +40,7 @@ export class EzRadioButton {
|
|
|
40
40
|
return (h(Host, null,
|
|
41
41
|
this.label && h("label", { class: "label" }, this.label),
|
|
42
42
|
h("div", { class: "form form--" + this.direction }, this._options.map((option, key) => h("div", { class: "form__group" },
|
|
43
|
-
h("input", { id: "rad" + key, class: "form__radio", name: "theradio", type: "radio", value: option.value, onChange: (ev) => { this.handleInputChange(ev); }, disabled: !this.enabled, checked: option.value === this.value }),
|
|
43
|
+
h("input", { id: "rad" + key, class: "form__radio", name: "theradio", type: "radio", value: option.value, onChange: (ev) => { this.handleInputChange(ev); }, disabled: !this.enabled, checked: option.value === this.value, "data-element-id": ElementIDUtils.getInternalIDInfo(`input_${option.value}`) }),
|
|
44
44
|
h("label", { htmlFor: "rad" + key, class: "form__label" }, option.label))))));
|
|
45
45
|
}
|
|
46
46
|
static get is() { return "ez-radio-button"; }
|
|
@@ -64,8 +64,8 @@ export class EzSearch {
|
|
|
64
64
|
CSSVarsUtils.applyVarsTextInput(this._elem, this._comboElement);
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
|
-
|
|
68
|
-
return (h("ez-combo-box", { "data-element-id": ElementIDUtils.getInternalIDInfo(
|
|
67
|
+
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
68
|
+
return (h("ez-combo-box", { "data-element-id": ElementIDUtils.getInternalIDInfo("combo"), ref: elem => this._comboElement = elem, value: this.value, label: this.label, enabled: this.enabled, errorMessage: this.errorMessage, optionLoader: this.optionLoader, searchMode: true, onEzChange: event => this.onComboChange(event), showSelectedValue: this.showSelectedValue, showOptionValue: this.showOptionValue, suppressEmptyOption: this.suppressEmptyOption, mode: this.mode }));
|
|
69
69
|
}
|
|
70
70
|
;
|
|
71
71
|
static get is() { return "ez-search"; }
|
|
@@ -67,7 +67,6 @@ export class EzTabselector {
|
|
|
67
67
|
this.setFocusedBtn(false, tab.index);
|
|
68
68
|
}
|
|
69
69
|
componentWillRender() {
|
|
70
|
-
ElementIDUtils.addIDInfo(this._hostElem);
|
|
71
70
|
if (!this._processedTabs) {
|
|
72
71
|
this._processedTabs = [];
|
|
73
72
|
if (this.tabs) {
|
|
@@ -99,10 +98,12 @@ export class EzTabselector {
|
|
|
99
98
|
this.updateScroll();
|
|
100
99
|
}
|
|
101
100
|
componentDidLoad() {
|
|
101
|
+
ElementIDUtils.addIDInfo(this._hostElem, "itemsSelector");
|
|
102
102
|
this._hostElem.shadowRoot.querySelectorAll('button[name="tab-button"]').forEach((elem) => {
|
|
103
|
-
|
|
104
|
-
const
|
|
105
|
-
|
|
103
|
+
var _a;
|
|
104
|
+
const label = (_a = elem.querySelector('span.tab-label')) === null || _a === void 0 ? void 0 : _a.innerText;
|
|
105
|
+
const dataInfo = { id: `${StringUtils.toCamelCase(label)}` };
|
|
106
|
+
ElementIDUtils.addIDInfo(elem, "itemSelector", dataInfo);
|
|
106
107
|
});
|
|
107
108
|
}
|
|
108
109
|
handleSlotChange(ev) {
|
|
@@ -136,13 +136,13 @@ export class EzTextArea {
|
|
|
136
136
|
this.observeMode();
|
|
137
137
|
}
|
|
138
138
|
render() {
|
|
139
|
-
|
|
139
|
+
ElementIDUtils.addIDInfoIfNotExists(this._hostElement, 'input');
|
|
140
140
|
return (h(Host, null,
|
|
141
141
|
h("div", { class: "textarea", ref: (el) => this._container = el },
|
|
142
142
|
this.label && this.mode != "slim" ?
|
|
143
143
|
h("label", { ref: (el) => this._labelElem = el, class: this.enabled ? "textarea__label" : "textarea__label textarea__label--disabled", onClick: () => this._inputElem.focus(), title: this.label }, this.label)
|
|
144
144
|
: null,
|
|
145
|
-
h("textarea", { onFocus: () => this.handleFocus(), "data-element-id": ElementIDUtils.getInternalIDInfo(
|
|
145
|
+
h("textarea", { onFocus: () => this.handleFocus(), "data-element-id": ElementIDUtils.getInternalIDInfo("input"), ref: (el) => this._inputElem = el, value: this.value, disabled: !this.enabled, class: this.mode === "slim" ? "textarea--slim" : "", placeholder: this.mode === "slim" && this.label ? this.label : "", onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); }, onKeyDown: event => event.stopPropagation(), rows: this.rows })),
|
|
146
146
|
this.canShowError && this.mode != "slim" &&
|
|
147
147
|
h("span", { class: "message-box", ref: (el) => this._messageBoxElem = el, title: this.errorMessage }, this.errorMessage)));
|
|
148
148
|
}
|
|
@@ -81,10 +81,10 @@ export class EzTextEdit {
|
|
|
81
81
|
this.setStyledInput();
|
|
82
82
|
}
|
|
83
83
|
render() {
|
|
84
|
-
|
|
84
|
+
ElementIDUtils.addIDInfoIfNotExists(this._element, 'input');
|
|
85
85
|
return (h(Host, null,
|
|
86
86
|
h("span", { class: "text-edit__hidden-value", ref: elem => this._valueBasis = elem }),
|
|
87
|
-
h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo(
|
|
87
|
+
h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), onInput: () => { this.calcSizeInput(this._newValue); }, class: "text-edit__form-input", value: this._newValue, ref: (elem) => this._inputElement = elem, mode: "slim", onEzChange: (evt) => this.setNewValue(evt === null || evt === void 0 ? void 0 : evt.detail), noBorder: true }),
|
|
88
88
|
h("ez-button", { class: "text-edit__icon-check", mode: "icon", iconName: "check", size: "small", onClick: () => { this.handleSaveEdition(); } }),
|
|
89
89
|
h("ez-button", { class: "text-edit__icon-close", mode: "icon", iconName: "close", size: "small", onClick: () => { this.cancelEdition.emit(); } })));
|
|
90
90
|
}
|
|
@@ -187,6 +187,7 @@ export class EzTextInput {
|
|
|
187
187
|
this._labelElem.classList.add("input__label--right");
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
+
slot.name && ElementIDUtils.addIDInfo(content, slot.name);
|
|
190
191
|
}
|
|
191
192
|
this.observeErrorMessage();
|
|
192
193
|
}
|
|
@@ -223,16 +224,16 @@ export class EzTextInput {
|
|
|
223
224
|
}
|
|
224
225
|
}
|
|
225
226
|
render() {
|
|
226
|
-
|
|
227
|
+
ElementIDUtils.addIDInfoIfNotExists(this._hostElement, 'input');
|
|
227
228
|
return (h(Host, null,
|
|
228
229
|
h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }),
|
|
229
230
|
this.label && this.mode != "slim" ?
|
|
230
231
|
h("label", { ref: (el) => this._labelElem = el, class: this.enabled ? "input__label" : "input__label input__label--disabled", onClick: () => this._inputElem.focus(), title: this.label }, this.label)
|
|
231
232
|
: null,
|
|
232
|
-
h("input", { "data-element-id": ElementIDUtils.getInternalIDInfo(
|
|
233
|
+
h("input", { "data-element-id": ElementIDUtils.getInternalIDInfo("input"), onFocus: () => this.doFocus(), ref: (el) => this._inputElem = el, type: "text", class: this.mode === "slim" ? "input--slim" : "", placeholder: this.mode === "slim" && this.label ? this.label : "", value: this.value, disabled: !this.enabled, onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); } }),
|
|
233
234
|
h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }),
|
|
234
235
|
this.canShowError && this.mode != "slim" &&
|
|
235
|
-
h("span", { class: "message-box", ref: (el) => this._messageBoxElem = el, title: this.errorMessage }, this.errorMessage)));
|
|
236
|
+
h("span", { class: "message-box", ref: (el) => this._messageBoxElem = el, title: this.errorMessage, "data-element-id": ElementIDUtils.getInternalIDInfo("message_box") }, this.errorMessage)));
|
|
236
237
|
}
|
|
237
238
|
static get is() { return "ez-text-input"; }
|
|
238
239
|
static get encapsulation() { return "shadow"; }
|
|
@@ -142,9 +142,9 @@ export class EzTimeInput {
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
render() {
|
|
145
|
-
|
|
145
|
+
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
146
146
|
return (h(Host, null,
|
|
147
|
-
h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo(
|
|
147
|
+
h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: (el) => this._textInput = el, "data-slave-mode": "true", value: this._viewValue, enabled: this.enabled, label: this.label, restrict: "0123456789:", onBlur: () => this.handleBlur(), onInput: () => this.handleInput(), errorMessage: this.errorMessage, mode: this.mode },
|
|
148
148
|
h("ez-icon", { slot: "leftIcon", iconName: "timer-outline" }))));
|
|
149
149
|
}
|
|
150
150
|
static get is() { return "ez-time-input"; }
|
|
@@ -310,6 +310,7 @@ let EzActionsButton$1 = class extends HTMLElement$1 {
|
|
|
310
310
|
}
|
|
311
311
|
componentDidLoad() {
|
|
312
312
|
CSSVarsUtils.applyVarsButton(this._element, this._button);
|
|
313
|
+
ElementIDUtils.addIDInfo(this._element);
|
|
313
314
|
this.controlScrollPage();
|
|
314
315
|
}
|
|
315
316
|
componentDidRender() {
|
|
@@ -397,8 +398,8 @@ let EzButton$1 = class extends HTMLElement$1 {
|
|
|
397
398
|
ElementIDUtils.addIDInfo(this._element);
|
|
398
399
|
}
|
|
399
400
|
if (this._button) {
|
|
400
|
-
const dataInfo = { id: '
|
|
401
|
-
ElementIDUtils.addIDInfo(this._button,
|
|
401
|
+
const dataInfo = { id: 'embedded' };
|
|
402
|
+
ElementIDUtils.addIDInfo(this._button, 'button', dataInfo);
|
|
402
403
|
}
|
|
403
404
|
}
|
|
404
405
|
getIconSize(sizeParam = "medium") {
|
|
@@ -748,9 +749,6 @@ let EzCheck$1 = class extends HTMLElement$1 {
|
|
|
748
749
|
this._inputElem.focus();
|
|
749
750
|
}
|
|
750
751
|
componentDidLoad() {
|
|
751
|
-
if (this._inputElem) {
|
|
752
|
-
ElementIDUtils.addIDInfo(this._inputElem, 'input');
|
|
753
|
-
}
|
|
754
752
|
if (this._element) {
|
|
755
753
|
ElementIDUtils.addIDInfo(this._element, 'input');
|
|
756
754
|
}
|
|
@@ -774,7 +772,7 @@ let EzCheck$1 = class extends HTMLElement$1 {
|
|
|
774
772
|
return ((_a = this.mode) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === CheckMode.SWITCH ? "switch-mode" : "regular-mode";
|
|
775
773
|
}
|
|
776
774
|
render() {
|
|
777
|
-
return (h(Host, null, h("input", { type: "checkbox", ref: (el) => this._inputElem = el, class: this.getInputClasses(), checked: this.value === true, onChange: () => { this.changeValue(); }, indeterminate: this.indeterminate, disabled: !this.enabled }), this.label ? h("label", { class: this.getLabelClasses(), onClick: () => { this.changeValue(); }, title: this.label }, this.label) : undefined));
|
|
775
|
+
return (h(Host, null, h("input", { type: "checkbox", ref: (el) => this._inputElem = el, class: this.getInputClasses(), checked: this.value === true, onChange: () => { this.changeValue(); }, indeterminate: this.indeterminate, disabled: !this.enabled, "data-element-id": ElementIDUtils.getInternalIDInfo("input") }), this.label ? h("label", { class: this.getLabelClasses(), onClick: () => { this.changeValue(); }, title: this.label }, this.label) : undefined));
|
|
778
776
|
}
|
|
779
777
|
get _element() { return this; }
|
|
780
778
|
static get watchers() { return {
|
|
@@ -876,8 +874,7 @@ let EzChip$1 = class extends HTMLElement$1 {
|
|
|
876
874
|
if (this._containerElem) {
|
|
877
875
|
this.observeValue();
|
|
878
876
|
this.observeEnabled();
|
|
879
|
-
this._containerElem.setAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME, '
|
|
880
|
-
ElementIDUtils.addIDInfo(this._containerElem);
|
|
877
|
+
this._containerElem.setAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME, ElementIDUtils.getInternalIDInfo('button'));
|
|
881
878
|
}
|
|
882
879
|
}
|
|
883
880
|
render() {
|
|
@@ -1015,7 +1012,7 @@ let EzCollapsibleBox$1 = class extends HTMLElement$1 {
|
|
|
1015
1012
|
render() {
|
|
1016
1013
|
return (h("div", { class: "collapsible-box" }, h("div", { class: "collapsible-box__header" }, h("button", Object.assign({}, (!this._activeEditText ? { onClick: () => { this.showHide(); } } : null), { class: "collapsible-box__title collapsible-box__title--" + (this.headerAlign || "left") +
|
|
1017
1014
|
(this.iconPlacement === "right" ? " collapsible-box__title--icon-right" : "") +
|
|
1018
|
-
(this.value ? " collapsible-box__title--no-margin" : "") }), h("ez-icon", { slot: "icon", "icon-name": "chevron-right", size: this.getHeaderSize(), class: "collapsible-box__icon collapsible-box__icon--" + this.getHeaderSize() + (this.value ? " collapsible-box__icon--collapsed" : "") }), !this._activeEditText ?
|
|
1015
|
+
(this.value ? " collapsible-box__title--no-margin" : "") }), h("ez-icon", { slot: "icon", "icon-name": "chevron-right", size: this.getHeaderSize(), class: "collapsible-box__icon collapsible-box__icon--" + this.getHeaderSize() + (this.value ? " collapsible-box__icon--collapsed" : ""), id: "toggleCollapsible" }), !this._activeEditText ?
|
|
1019
1016
|
h("label", { class: "collapsible-box__label font--" + this.getHeaderSize(), title: this.label, ref: elem => this._refLabel = elem }, h("span", null, this.label), this.editable &&
|
|
1020
1017
|
h("ez-icon", { slot: "icon", "icon-name": "edit", onClick: (evt) => this.editLabel(evt), title: "Editar" }), this.removable &&
|
|
1021
1018
|
h("ez-icon", { slot: "icon", "icon-name": "delete", onClick: (evt) => this.confirmRemove(evt), title: "Remover" })) :
|
|
@@ -1373,9 +1370,13 @@ let EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
1373
1370
|
}
|
|
1374
1371
|
}
|
|
1375
1372
|
componentDidRender() {
|
|
1373
|
+
var _a;
|
|
1376
1374
|
if (this._floatingID === undefined) {
|
|
1377
1375
|
this._listWrapper.remove();
|
|
1378
1376
|
}
|
|
1377
|
+
(_a = this._optionsList) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item").forEach((elem) => {
|
|
1378
|
+
ElementIDUtils.addIDInfoIfNotExists(elem, "itemComboBox");
|
|
1379
|
+
});
|
|
1379
1380
|
}
|
|
1380
1381
|
componentDidLoad() {
|
|
1381
1382
|
CSSVarsUtils.applyVarsTextInput(this.el, this._textInput);
|
|
@@ -1472,8 +1473,8 @@ let EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
1472
1473
|
}
|
|
1473
1474
|
render() {
|
|
1474
1475
|
var _a;
|
|
1475
|
-
|
|
1476
|
-
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo(
|
|
1476
|
+
ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
1477
|
+
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, h("button", { class: "btn", slot: this.searchMode ? "leftIcon" : "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: this.searchMode ? "search" : "chevron-down" })), this.searchMode && ((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value)
|
|
1477
1478
|
? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
|
|
1478
1479
|
: undefined), h("section", { class: "list-container", ref: elem => this._listContainer = elem }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("div", { class: "list-options", ref: elem => this._optionsList = elem }, this._visibleOptions.length === 0
|
|
1479
1480
|
&& h("div", { class: "message" }, !this._showLoading && h("span", { class: "message__no-result" }, this._textEmptyList), this._showLoading && h("div", { class: "message__loading" })), this.showOptionValue
|
|
@@ -1634,8 +1635,8 @@ let EzDateInput$1 = class extends HTMLElement$1 {
|
|
|
1634
1635
|
this.setInputValue();
|
|
1635
1636
|
}
|
|
1636
1637
|
render() {
|
|
1637
|
-
|
|
1638
|
-
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo(
|
|
1638
|
+
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
1639
|
+
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), restrict: "0123456789/", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.showCalendar(), slot: "leftIcon" })), h("ez-calendar", { "data-element-id": ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); }, floating: true, ref: elem => this._calendar = elem })));
|
|
1639
1640
|
}
|
|
1640
1641
|
get _elem() { return this; }
|
|
1641
1642
|
static get watchers() { return {
|
|
@@ -1841,8 +1842,8 @@ let EzDateTimeInput$1 = class extends HTMLElement$1 {
|
|
|
1841
1842
|
this.setInputValue();
|
|
1842
1843
|
}
|
|
1843
1844
|
render() {
|
|
1844
|
-
|
|
1845
|
-
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo(
|
|
1845
|
+
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
1846
|
+
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, restrict: "0123456789/: ", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, onKeyDown: event => { this.handleKeyDown(event); }, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), onFocus: () => this.handleFocus(), onClick: () => this.handleClick() }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.showCalendar(), slot: "leftIcon" })), h("ez-calendar", { "data-element-id": ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.changeValue(this._calendar.value); event.stopPropagation(); }, floating: true, ref: elem => this._calendar = elem, time: true, showSeconds: this.showSeconds })));
|
|
1846
1847
|
}
|
|
1847
1848
|
get _elem() { return this; }
|
|
1848
1849
|
static get watchers() { return {
|
|
@@ -2051,8 +2052,8 @@ let EzFilterInput$1 = class extends HTMLElement$1 {
|
|
|
2051
2052
|
CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
|
|
2052
2053
|
}
|
|
2053
2054
|
render() {
|
|
2054
|
-
|
|
2055
|
-
return (h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo(
|
|
2055
|
+
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
2056
|
+
return (h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, label: this.label, onEzChange: evt => this.changeValue(evt), value: this.value, enabled: this.enabled, errorMessage: this.errorMessage, restrict: this.restrict, mode: this.mode }, h("ez-icon", { slot: "leftIcon", iconName: "search" })));
|
|
2056
2057
|
}
|
|
2057
2058
|
get _elem() { return this; }
|
|
2058
2059
|
static get watchers() { return {
|
|
@@ -2173,7 +2174,7 @@ const buildFromConfig = (config, dataUnit) => {
|
|
|
2173
2174
|
}
|
|
2174
2175
|
});
|
|
2175
2176
|
(_b = config === null || config === void 0 ? void 0 : config.fields) === null || _b === void 0 ? void 0 : _b.forEach((field) => {
|
|
2176
|
-
var _a, _b, _c;
|
|
2177
|
+
var _a, _b, _c, _d;
|
|
2177
2178
|
if (field.visible !== false) {
|
|
2178
2179
|
const tabConfig = getTabConfig(field.tab || "__main", sheets);
|
|
2179
2180
|
if (hiddenTabs.has(tabConfig.label)) {
|
|
@@ -2189,10 +2190,10 @@ const buildFromConfig = (config, dataUnit) => {
|
|
|
2189
2190
|
requiredFields.push(field.name);
|
|
2190
2191
|
}
|
|
2191
2192
|
const cleanOnCopy = field.cleanOnCopy == undefined ? (_a = descriptor.properties) === null || _a === void 0 ? void 0 : _a.cleanOnCopy : field.cleanOnCopy;
|
|
2192
|
-
if (cleanOnCopy || ((_b = descriptor.properties) === null || _b === void 0 ? void 0 : _b.autoNum)) {
|
|
2193
|
+
if (cleanOnCopy || ((_b = descriptor.properties) === null || _b === void 0 ? void 0 : _b.autoNum) || ((_c = descriptor.properties) === null || _c === void 0 ? void 0 : _c.cleanOnCopy)) {
|
|
2193
2194
|
cleanOnCopyFields.push(field.name);
|
|
2194
2195
|
}
|
|
2195
|
-
const defaultValue = field.defaultValue == undefined ? (
|
|
2196
|
+
const defaultValue = field.defaultValue == undefined ? (_d = descriptor.properties) === null || _d === void 0 ? void 0 : _d.defaultValue : field.defaultValue;
|
|
2196
2197
|
if (defaultValue) {
|
|
2197
2198
|
defaultValues[field.name] = field.defaultValue;
|
|
2198
2199
|
}
|
|
@@ -2329,7 +2330,7 @@ const buildField = (field) => {
|
|
|
2329
2330
|
const FormItem = ({ source }) => {
|
|
2330
2331
|
if ("items" in source) {
|
|
2331
2332
|
const fieldSet = source;
|
|
2332
|
-
return h("ez-collapsible-box", { label: source.label, "header-size": "large" }, fieldSet.items.map(fi => buildField(fi)));
|
|
2333
|
+
return h("ez-collapsible-box", { label: source.label, "header-size": "large", key: source.label }, fieldSet.items.map(fi => buildField(fi)));
|
|
2333
2334
|
}
|
|
2334
2335
|
else {
|
|
2335
2336
|
return buildField(source);
|
|
@@ -3008,10 +3009,10 @@ let EzForm$1 = class extends HTMLElement$1 {
|
|
|
3008
3009
|
const tabs = allSheets.map((sheet, index) => {
|
|
3009
3010
|
return { tabKey: sheet.name, label: sheet.label, index };
|
|
3010
3011
|
});
|
|
3011
|
-
const idTabSelector =
|
|
3012
|
+
const idTabSelector = `selector`;
|
|
3012
3013
|
result.push(h("ez-tabselector", { tabs: this.buildIdTabSelector(tabs), onEzChange: (evt) => this._store.dispatch(changeTab(evt.detail)), selectedTab: currentSheet.name, "data-element-id": idTabSelector }));
|
|
3013
3014
|
}
|
|
3014
|
-
const idFormSheet = `${
|
|
3015
|
+
const idFormSheet = `${StringUtils$1.replaceAccentuatedChars(StringUtils$1.toCamelCase(currentSheet.label), false)}_selectorContainer`;
|
|
3015
3016
|
result.push(h(FormSheet, { store: this._store, source: currentSheet, dataElementId: idFormSheet }));
|
|
3016
3017
|
return result;
|
|
3017
3018
|
}
|
|
@@ -3076,7 +3077,7 @@ let EzForm$1 = class extends HTMLElement$1 {
|
|
|
3076
3077
|
this._staticFields = Array.from(this._element.querySelectorAll("[data-field-name]"));
|
|
3077
3078
|
this.processMetadata();
|
|
3078
3079
|
const dataInfo = { dataUnit: this.dataUnit };
|
|
3079
|
-
|
|
3080
|
+
ElementIDUtils.addIDInfo(this._element, null, dataInfo);
|
|
3080
3081
|
}
|
|
3081
3082
|
componentDidRender() {
|
|
3082
3083
|
this._dataBinder.bind(Array.from(this._element.querySelectorAll("[data-field-name]")));
|
|
@@ -3089,7 +3090,7 @@ let EzForm$1 = class extends HTMLElement$1 {
|
|
|
3089
3090
|
}
|
|
3090
3091
|
buildIdTabSelector(tabs) {
|
|
3091
3092
|
if (tabs) {
|
|
3092
|
-
tabs.forEach(tab => tab[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME] =
|
|
3093
|
+
tabs.forEach(tab => tab[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME] = StringUtils$1.toCamelCase(tab.label));
|
|
3093
3094
|
}
|
|
3094
3095
|
return tabs;
|
|
3095
3096
|
}
|
|
@@ -118522,9 +118523,9 @@ let EzGrid$1 = class extends HTMLElement$1 {
|
|
|
118522
118523
|
}
|
|
118523
118524
|
buildDataElementId() {
|
|
118524
118525
|
const dataInfo = { dataUnit: this.dataUnit };
|
|
118525
|
-
|
|
118526
|
-
const dtInfo = { id:
|
|
118527
|
-
ElementIDUtils.addIDInfo(this._refPaginationControl,
|
|
118526
|
+
ElementIDUtils.addIDInfo(this._element, null, dataInfo);
|
|
118527
|
+
const dtInfo = { id: "ezGrid" };
|
|
118528
|
+
ElementIDUtils.addIDInfo(this._refPaginationControl, "pagination", dtInfo);
|
|
118528
118529
|
}
|
|
118529
118530
|
previousPage() {
|
|
118530
118531
|
if (this.dataUnit) {
|
|
@@ -118592,9 +118593,13 @@ let EzIcon$1 = class extends HTMLElement$1 {
|
|
|
118592
118593
|
return h("img", { class: this.size, src: this.href });
|
|
118593
118594
|
}
|
|
118594
118595
|
}
|
|
118596
|
+
componentDidLoad() {
|
|
118597
|
+
ElementIDUtils.addIDInfo(this._hostElement, "icon");
|
|
118598
|
+
}
|
|
118595
118599
|
render() {
|
|
118596
118600
|
return (h(Host, null, this.getIconContent()));
|
|
118597
118601
|
}
|
|
118602
|
+
get _hostElement() { return this; }
|
|
118598
118603
|
static get style() { return ezIconCss; }
|
|
118599
118604
|
};
|
|
118600
118605
|
|
|
@@ -118762,6 +118767,9 @@ let EzList$1 = class extends HTMLElement$1 {
|
|
|
118762
118767
|
componentWillRender() {
|
|
118763
118768
|
this.createList();
|
|
118764
118769
|
}
|
|
118770
|
+
componentDidLoad() {
|
|
118771
|
+
ElementIDUtils.addIDInfo(this._element);
|
|
118772
|
+
}
|
|
118765
118773
|
onDrop(ev, dragEndItem) {
|
|
118766
118774
|
this.removeOverClass();
|
|
118767
118775
|
this.setSelection(undefined);
|
|
@@ -119391,8 +119399,8 @@ let EzNumberInput$1 = class extends HTMLElement$1 {
|
|
|
119391
119399
|
this.setInputValue();
|
|
119392
119400
|
}
|
|
119393
119401
|
render() {
|
|
119394
|
-
|
|
119395
|
-
return (h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo(
|
|
119402
|
+
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
119403
|
+
return (h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, onBlur: () => this.handleBlur(), onInput: () => this.handleInput(), restrict: this.precision > 0 ? "0123456789-,." : "0123456789-", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode }));
|
|
119396
119404
|
}
|
|
119397
119405
|
get _elem() { return this; }
|
|
119398
119406
|
static get watchers() { return {
|
|
@@ -119634,7 +119642,7 @@ let EzRadioButton$1 = class extends HTMLElement$1 {
|
|
|
119634
119642
|
this.ezChange.emit(this.value);
|
|
119635
119643
|
}
|
|
119636
119644
|
render() {
|
|
119637
|
-
return (h(Host, null, this.label && h("label", { class: "label" }, this.label), h("div", { class: "form form--" + this.direction }, this._options.map((option, key) => h("div", { class: "form__group" }, h("input", { id: "rad" + key, class: "form__radio", name: "theradio", type: "radio", value: option.value, onChange: (ev) => { this.handleInputChange(ev); }, disabled: !this.enabled, checked: option.value === this.value }), h("label", { htmlFor: "rad" + key, class: "form__label" }, option.label))))));
|
|
119645
|
+
return (h(Host, null, this.label && h("label", { class: "label" }, this.label), h("div", { class: "form form--" + this.direction }, this._options.map((option, key) => h("div", { class: "form__group" }, h("input", { id: "rad" + key, class: "form__radio", name: "theradio", type: "radio", value: option.value, onChange: (ev) => { this.handleInputChange(ev); }, disabled: !this.enabled, checked: option.value === this.value, "data-element-id": ElementIDUtils.getInternalIDInfo(`input_${option.value}`) }), h("label", { htmlFor: "rad" + key, class: "form__label" }, option.label))))));
|
|
119638
119646
|
}
|
|
119639
119647
|
get hostElement() { return this; }
|
|
119640
119648
|
static get style() { return ezRadioButtonCss; }
|
|
@@ -119885,8 +119893,8 @@ let EzSearch$1 = class extends HTMLElement$1 {
|
|
|
119885
119893
|
CSSVarsUtils.applyVarsTextInput(this._elem, this._comboElement);
|
|
119886
119894
|
}
|
|
119887
119895
|
render() {
|
|
119888
|
-
|
|
119889
|
-
return (h("ez-combo-box", { "data-element-id": ElementIDUtils.getInternalIDInfo(
|
|
119896
|
+
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
119897
|
+
return (h("ez-combo-box", { "data-element-id": ElementIDUtils.getInternalIDInfo("combo"), ref: elem => this._comboElement = elem, value: this.value, label: this.label, enabled: this.enabled, errorMessage: this.errorMessage, optionLoader: this.optionLoader, searchMode: true, onEzChange: event => this.onComboChange(event), showSelectedValue: this.showSelectedValue, showOptionValue: this.showOptionValue, suppressEmptyOption: this.suppressEmptyOption, mode: this.mode }));
|
|
119890
119898
|
}
|
|
119891
119899
|
;
|
|
119892
119900
|
get _elem() { return this; }
|
|
@@ -119970,7 +119978,6 @@ let EzTabselector$1 = class extends HTMLElement$1 {
|
|
|
119970
119978
|
this.setFocusedBtn(false, tab.index);
|
|
119971
119979
|
}
|
|
119972
119980
|
componentWillRender() {
|
|
119973
|
-
ElementIDUtils.addIDInfo(this._hostElem);
|
|
119974
119981
|
if (!this._processedTabs) {
|
|
119975
119982
|
this._processedTabs = [];
|
|
119976
119983
|
if (this.tabs) {
|
|
@@ -120002,10 +120009,12 @@ let EzTabselector$1 = class extends HTMLElement$1 {
|
|
|
120002
120009
|
this.updateScroll();
|
|
120003
120010
|
}
|
|
120004
120011
|
componentDidLoad() {
|
|
120012
|
+
ElementIDUtils.addIDInfo(this._hostElem, "itemsSelector");
|
|
120005
120013
|
this._hostElem.shadowRoot.querySelectorAll('button[name="tab-button"]').forEach((elem) => {
|
|
120006
|
-
|
|
120007
|
-
const
|
|
120008
|
-
|
|
120014
|
+
var _a;
|
|
120015
|
+
const label = (_a = elem.querySelector('span.tab-label')) === null || _a === void 0 ? void 0 : _a.innerText;
|
|
120016
|
+
const dataInfo = { id: `${StringUtils$1.toCamelCase(label)}` };
|
|
120017
|
+
ElementIDUtils.addIDInfo(elem, "itemSelector", dataInfo);
|
|
120009
120018
|
});
|
|
120010
120019
|
}
|
|
120011
120020
|
handleSlotChange(ev) {
|
|
@@ -120263,10 +120272,10 @@ let EzTextArea$1 = class extends HTMLElement$1 {
|
|
|
120263
120272
|
this.observeMode();
|
|
120264
120273
|
}
|
|
120265
120274
|
render() {
|
|
120266
|
-
|
|
120275
|
+
ElementIDUtils.addIDInfoIfNotExists(this._hostElement, 'input');
|
|
120267
120276
|
return (h(Host, null, h("div", { class: "textarea", ref: (el) => this._container = el }, this.label && this.mode != "slim" ?
|
|
120268
120277
|
h("label", { ref: (el) => this._labelElem = el, class: this.enabled ? "textarea__label" : "textarea__label textarea__label--disabled", onClick: () => this._inputElem.focus(), title: this.label }, this.label)
|
|
120269
|
-
: null, h("textarea", { onFocus: () => this.handleFocus(), "data-element-id": ElementIDUtils.getInternalIDInfo(
|
|
120278
|
+
: null, h("textarea", { onFocus: () => this.handleFocus(), "data-element-id": ElementIDUtils.getInternalIDInfo("input"), ref: (el) => this._inputElem = el, value: this.value, disabled: !this.enabled, class: this.mode === "slim" ? "textarea--slim" : "", placeholder: this.mode === "slim" && this.label ? this.label : "", onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); }, onKeyDown: event => event.stopPropagation(), rows: this.rows })), this.canShowError && this.mode != "slim" &&
|
|
120270
120279
|
h("span", { class: "message-box", ref: (el) => this._messageBoxElem = el, title: this.errorMessage }, this.errorMessage)));
|
|
120271
120280
|
}
|
|
120272
120281
|
get _hostElement() { return this; }
|
|
@@ -120368,8 +120377,8 @@ let EzTextEdit$1 = class extends HTMLElement$1 {
|
|
|
120368
120377
|
this.setStyledInput();
|
|
120369
120378
|
}
|
|
120370
120379
|
render() {
|
|
120371
|
-
|
|
120372
|
-
return (h(Host, null, h("span", { class: "text-edit__hidden-value", ref: elem => this._valueBasis = elem }), h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo(
|
|
120380
|
+
ElementIDUtils.addIDInfoIfNotExists(this._element, 'input');
|
|
120381
|
+
return (h(Host, null, h("span", { class: "text-edit__hidden-value", ref: elem => this._valueBasis = elem }), h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), onInput: () => { this.calcSizeInput(this._newValue); }, class: "text-edit__form-input", value: this._newValue, ref: (elem) => this._inputElement = elem, mode: "slim", onEzChange: (evt) => this.setNewValue(evt === null || evt === void 0 ? void 0 : evt.detail), noBorder: true }), h("ez-button", { class: "text-edit__icon-check", mode: "icon", iconName: "check", size: "small", onClick: () => { this.handleSaveEdition(); } }), h("ez-button", { class: "text-edit__icon-close", mode: "icon", iconName: "close", size: "small", onClick: () => { this.cancelEdition.emit(); } })));
|
|
120373
120382
|
}
|
|
120374
120383
|
get _element() { return this; }
|
|
120375
120384
|
static get style() { return ezTextEditCss; }
|
|
@@ -120568,6 +120577,7 @@ let EzTextInput$1 = class extends HTMLElement$1 {
|
|
|
120568
120577
|
this._labelElem.classList.add("input__label--right");
|
|
120569
120578
|
}
|
|
120570
120579
|
}
|
|
120580
|
+
slot.name && ElementIDUtils.addIDInfo(content, slot.name);
|
|
120571
120581
|
}
|
|
120572
120582
|
this.observeErrorMessage();
|
|
120573
120583
|
}
|
|
@@ -120604,11 +120614,11 @@ let EzTextInput$1 = class extends HTMLElement$1 {
|
|
|
120604
120614
|
}
|
|
120605
120615
|
}
|
|
120606
120616
|
render() {
|
|
120607
|
-
|
|
120617
|
+
ElementIDUtils.addIDInfoIfNotExists(this._hostElement, 'input');
|
|
120608
120618
|
return (h(Host, null, h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label && this.mode != "slim" ?
|
|
120609
120619
|
h("label", { ref: (el) => this._labelElem = el, class: this.enabled ? "input__label" : "input__label input__label--disabled", onClick: () => this._inputElem.focus(), title: this.label }, this.label)
|
|
120610
|
-
: null, h("input", { "data-element-id": ElementIDUtils.getInternalIDInfo(
|
|
120611
|
-
h("span", { class: "message-box", ref: (el) => this._messageBoxElem = el, title: this.errorMessage }, this.errorMessage)));
|
|
120620
|
+
: null, h("input", { "data-element-id": ElementIDUtils.getInternalIDInfo("input"), onFocus: () => this.doFocus(), ref: (el) => this._inputElem = el, type: "text", class: this.mode === "slim" ? "input--slim" : "", placeholder: this.mode === "slim" && this.label ? this.label : "", value: this.value, disabled: !this.enabled, onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); } }), h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.canShowError && this.mode != "slim" &&
|
|
120621
|
+
h("span", { class: "message-box", ref: (el) => this._messageBoxElem = el, title: this.errorMessage, "data-element-id": ElementIDUtils.getInternalIDInfo("message_box") }, this.errorMessage)));
|
|
120612
120622
|
}
|
|
120613
120623
|
get _hostElement() { return this; }
|
|
120614
120624
|
static get watchers() { return {
|
|
@@ -120768,8 +120778,8 @@ let EzTimeInput$1 = class extends HTMLElement$1 {
|
|
|
120768
120778
|
}
|
|
120769
120779
|
}
|
|
120770
120780
|
render() {
|
|
120771
|
-
|
|
120772
|
-
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo(
|
|
120781
|
+
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
120782
|
+
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: (el) => this._textInput = el, "data-slave-mode": "true", value: this._viewValue, enabled: this.enabled, label: this.label, restrict: "0123456789:", onBlur: () => this.handleBlur(), onInput: () => this.handleInput(), errorMessage: this.errorMessage, mode: this.mode }, h("ez-icon", { slot: "leftIcon", iconName: "timer-outline" }))));
|
|
120773
120783
|
}
|
|
120774
120784
|
static get assetsDirs() { return ["../assets"]; }
|
|
120775
120785
|
get _elem() { return this; }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-7bc778b3.js';
|
|
2
|
-
import { FloatingManager } from '@sankhyalabs/core';
|
|
2
|
+
import { FloatingManager, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import './ApplicationUtils-205ac4bc.js';
|
|
4
4
|
import { C as CSSVarsUtils } from './CSSVarsUtils-00f67f32.js';
|
|
5
5
|
import './DialogType-4059dc4d.js';
|
|
@@ -168,6 +168,7 @@ let EzActionsButton = class {
|
|
|
168
168
|
}
|
|
169
169
|
componentDidLoad() {
|
|
170
170
|
CSSVarsUtils.applyVarsButton(this._element, this._button);
|
|
171
|
+
ElementIDUtils.addIDInfo(this._element);
|
|
171
172
|
this.controlScrollPage();
|
|
172
173
|
}
|
|
173
174
|
componentDidRender() {
|
|
@@ -32,8 +32,8 @@ let EzButton = class {
|
|
|
32
32
|
ElementIDUtils.addIDInfo(this._element);
|
|
33
33
|
}
|
|
34
34
|
if (this._button) {
|
|
35
|
-
const dataInfo = { id: '
|
|
36
|
-
ElementIDUtils.addIDInfo(this._button,
|
|
35
|
+
const dataInfo = { id: 'embedded' };
|
|
36
|
+
ElementIDUtils.addIDInfo(this._button, 'button', dataInfo);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
getIconSize(sizeParam = "medium") {
|
|
@@ -40,9 +40,6 @@ let EzCheck = class {
|
|
|
40
40
|
this._inputElem.focus();
|
|
41
41
|
}
|
|
42
42
|
componentDidLoad() {
|
|
43
|
-
if (this._inputElem) {
|
|
44
|
-
ElementIDUtils.addIDInfo(this._inputElem, 'input');
|
|
45
|
-
}
|
|
46
43
|
if (this._element) {
|
|
47
44
|
ElementIDUtils.addIDInfo(this._element, 'input');
|
|
48
45
|
}
|
|
@@ -66,7 +63,7 @@ let EzCheck = class {
|
|
|
66
63
|
return ((_a = this.mode) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === CheckMode.SWITCH ? "switch-mode" : "regular-mode";
|
|
67
64
|
}
|
|
68
65
|
render() {
|
|
69
|
-
return (h(Host, null, h("input", { type: "checkbox", ref: (el) => this._inputElem = el, class: this.getInputClasses(), checked: this.value === true, onChange: () => { this.changeValue(); }, indeterminate: this.indeterminate, disabled: !this.enabled }), this.label ? h("label", { class: this.getLabelClasses(), onClick: () => { this.changeValue(); }, title: this.label }, this.label) : undefined));
|
|
66
|
+
return (h(Host, null, h("input", { type: "checkbox", ref: (el) => this._inputElem = el, class: this.getInputClasses(), checked: this.value === true, onChange: () => { this.changeValue(); }, indeterminate: this.indeterminate, disabled: !this.enabled, "data-element-id": ElementIDUtils.getInternalIDInfo("input") }), this.label ? h("label", { class: this.getLabelClasses(), onClick: () => { this.changeValue(); }, title: this.label }, this.label) : undefined));
|
|
70
67
|
}
|
|
71
68
|
get _element() { return getElement(this); }
|
|
72
69
|
static get watchers() { return {
|
|
@@ -92,8 +92,7 @@ let EzChip = class {
|
|
|
92
92
|
if (this._containerElem) {
|
|
93
93
|
this.observeValue();
|
|
94
94
|
this.observeEnabled();
|
|
95
|
-
this._containerElem.setAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME, '
|
|
96
|
-
ElementIDUtils.addIDInfo(this._containerElem);
|
|
95
|
+
this._containerElem.setAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME, ElementIDUtils.getInternalIDInfo('button'));
|
|
97
96
|
}
|
|
98
97
|
}
|
|
99
98
|
render() {
|