@sankhyalabs/ezui 2.3.13 → 2.3.14
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 +2 -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 +5 -5
- 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 +2 -2
- 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 +2 -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-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 +2 -2
- package/dist/collection/components/ez-time-input/ez-time-input.js +2 -2
- package/dist/custom-elements/index.js +47 -42
- 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 +2 -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 +5 -5
- 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 +2 -2
- 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-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-51e31ecb.entry.js +1 -0
- package/dist/ezui/p-52997e83.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-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-bf26ae36.entry.js +1 -0
- 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
|
@@ -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
|
}
|
|
@@ -223,13 +223,13 @@ export class EzTextInput {
|
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
render() {
|
|
226
|
-
|
|
226
|
+
ElementIDUtils.addIDInfoIfNotExists(this._hostElement, 'input');
|
|
227
227
|
return (h(Host, null,
|
|
228
228
|
h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }),
|
|
229
229
|
this.label && this.mode != "slim" ?
|
|
230
230
|
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
231
|
: null,
|
|
232
|
-
h("input", { "data-element-id": ElementIDUtils.getInternalIDInfo(
|
|
232
|
+
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
233
|
h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }),
|
|
234
234
|
this.canShowError && this.mode != "slim" &&
|
|
235
235
|
h("span", { class: "message-box", ref: (el) => this._messageBoxElem = el, title: this.errorMessage }, this.errorMessage)));
|
|
@@ -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" })) :
|
|
@@ -1472,8 +1469,8 @@ let EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
1472
1469
|
}
|
|
1473
1470
|
render() {
|
|
1474
1471
|
var _a;
|
|
1475
|
-
|
|
1476
|
-
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo(
|
|
1472
|
+
ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
1473
|
+
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
1474
|
? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
|
|
1478
1475
|
: 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
1476
|
&& 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 +1631,8 @@ let EzDateInput$1 = class extends HTMLElement$1 {
|
|
|
1634
1631
|
this.setInputValue();
|
|
1635
1632
|
}
|
|
1636
1633
|
render() {
|
|
1637
|
-
|
|
1638
|
-
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo(
|
|
1634
|
+
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
1635
|
+
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
1636
|
}
|
|
1640
1637
|
get _elem() { return this; }
|
|
1641
1638
|
static get watchers() { return {
|
|
@@ -1841,8 +1838,8 @@ let EzDateTimeInput$1 = class extends HTMLElement$1 {
|
|
|
1841
1838
|
this.setInputValue();
|
|
1842
1839
|
}
|
|
1843
1840
|
render() {
|
|
1844
|
-
|
|
1845
|
-
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo(
|
|
1841
|
+
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
1842
|
+
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
1843
|
}
|
|
1847
1844
|
get _elem() { return this; }
|
|
1848
1845
|
static get watchers() { return {
|
|
@@ -2051,8 +2048,8 @@ let EzFilterInput$1 = class extends HTMLElement$1 {
|
|
|
2051
2048
|
CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
|
|
2052
2049
|
}
|
|
2053
2050
|
render() {
|
|
2054
|
-
|
|
2055
|
-
return (h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo(
|
|
2051
|
+
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
2052
|
+
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
2053
|
}
|
|
2057
2054
|
get _elem() { return this; }
|
|
2058
2055
|
static get watchers() { return {
|
|
@@ -2329,7 +2326,7 @@ const buildField = (field) => {
|
|
|
2329
2326
|
const FormItem = ({ source }) => {
|
|
2330
2327
|
if ("items" in source) {
|
|
2331
2328
|
const fieldSet = source;
|
|
2332
|
-
return h("ez-collapsible-box", { label: source.label, "header-size": "large" }, fieldSet.items.map(fi => buildField(fi)));
|
|
2329
|
+
return h("ez-collapsible-box", { label: source.label, "header-size": "large", key: source.label }, fieldSet.items.map(fi => buildField(fi)));
|
|
2333
2330
|
}
|
|
2334
2331
|
else {
|
|
2335
2332
|
return buildField(source);
|
|
@@ -3008,10 +3005,10 @@ let EzForm$1 = class extends HTMLElement$1 {
|
|
|
3008
3005
|
const tabs = allSheets.map((sheet, index) => {
|
|
3009
3006
|
return { tabKey: sheet.name, label: sheet.label, index };
|
|
3010
3007
|
});
|
|
3011
|
-
const idTabSelector =
|
|
3008
|
+
const idTabSelector = `selector`;
|
|
3012
3009
|
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
3010
|
}
|
|
3014
|
-
const idFormSheet = `${
|
|
3011
|
+
const idFormSheet = `${StringUtils$1.replaceAccentuatedChars(StringUtils$1.toCamelCase(currentSheet.label), false)}_selectorContainer`;
|
|
3015
3012
|
result.push(h(FormSheet, { store: this._store, source: currentSheet, dataElementId: idFormSheet }));
|
|
3016
3013
|
return result;
|
|
3017
3014
|
}
|
|
@@ -3076,7 +3073,7 @@ let EzForm$1 = class extends HTMLElement$1 {
|
|
|
3076
3073
|
this._staticFields = Array.from(this._element.querySelectorAll("[data-field-name]"));
|
|
3077
3074
|
this.processMetadata();
|
|
3078
3075
|
const dataInfo = { dataUnit: this.dataUnit };
|
|
3079
|
-
|
|
3076
|
+
ElementIDUtils.addIDInfo(this._element, null, dataInfo);
|
|
3080
3077
|
}
|
|
3081
3078
|
componentDidRender() {
|
|
3082
3079
|
this._dataBinder.bind(Array.from(this._element.querySelectorAll("[data-field-name]")));
|
|
@@ -3089,7 +3086,7 @@ let EzForm$1 = class extends HTMLElement$1 {
|
|
|
3089
3086
|
}
|
|
3090
3087
|
buildIdTabSelector(tabs) {
|
|
3091
3088
|
if (tabs) {
|
|
3092
|
-
tabs.forEach(tab => tab[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME] =
|
|
3089
|
+
tabs.forEach(tab => tab[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME] = StringUtils$1.toCamelCase(tab.label));
|
|
3093
3090
|
}
|
|
3094
3091
|
return tabs;
|
|
3095
3092
|
}
|
|
@@ -118522,9 +118519,9 @@ let EzGrid$1 = class extends HTMLElement$1 {
|
|
|
118522
118519
|
}
|
|
118523
118520
|
buildDataElementId() {
|
|
118524
118521
|
const dataInfo = { dataUnit: this.dataUnit };
|
|
118525
|
-
|
|
118526
|
-
const dtInfo = { id:
|
|
118527
|
-
ElementIDUtils.addIDInfo(this._refPaginationControl,
|
|
118522
|
+
ElementIDUtils.addIDInfo(this._element, null, dataInfo);
|
|
118523
|
+
const dtInfo = { id: "ezGrid" };
|
|
118524
|
+
ElementIDUtils.addIDInfo(this._refPaginationControl, "pagination", dtInfo);
|
|
118528
118525
|
}
|
|
118529
118526
|
previousPage() {
|
|
118530
118527
|
if (this.dataUnit) {
|
|
@@ -118592,9 +118589,13 @@ let EzIcon$1 = class extends HTMLElement$1 {
|
|
|
118592
118589
|
return h("img", { class: this.size, src: this.href });
|
|
118593
118590
|
}
|
|
118594
118591
|
}
|
|
118592
|
+
componentDidLoad() {
|
|
118593
|
+
ElementIDUtils.addIDInfo(this._hostElement, "icon");
|
|
118594
|
+
}
|
|
118595
118595
|
render() {
|
|
118596
118596
|
return (h(Host, null, this.getIconContent()));
|
|
118597
118597
|
}
|
|
118598
|
+
get _hostElement() { return this; }
|
|
118598
118599
|
static get style() { return ezIconCss; }
|
|
118599
118600
|
};
|
|
118600
118601
|
|
|
@@ -118762,6 +118763,9 @@ let EzList$1 = class extends HTMLElement$1 {
|
|
|
118762
118763
|
componentWillRender() {
|
|
118763
118764
|
this.createList();
|
|
118764
118765
|
}
|
|
118766
|
+
componentDidLoad() {
|
|
118767
|
+
ElementIDUtils.addIDInfo(this._element);
|
|
118768
|
+
}
|
|
118765
118769
|
onDrop(ev, dragEndItem) {
|
|
118766
118770
|
this.removeOverClass();
|
|
118767
118771
|
this.setSelection(undefined);
|
|
@@ -119391,8 +119395,8 @@ let EzNumberInput$1 = class extends HTMLElement$1 {
|
|
|
119391
119395
|
this.setInputValue();
|
|
119392
119396
|
}
|
|
119393
119397
|
render() {
|
|
119394
|
-
|
|
119395
|
-
return (h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo(
|
|
119398
|
+
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
119399
|
+
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
119400
|
}
|
|
119397
119401
|
get _elem() { return this; }
|
|
119398
119402
|
static get watchers() { return {
|
|
@@ -119634,7 +119638,7 @@ let EzRadioButton$1 = class extends HTMLElement$1 {
|
|
|
119634
119638
|
this.ezChange.emit(this.value);
|
|
119635
119639
|
}
|
|
119636
119640
|
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))))));
|
|
119641
|
+
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
119642
|
}
|
|
119639
119643
|
get hostElement() { return this; }
|
|
119640
119644
|
static get style() { return ezRadioButtonCss; }
|
|
@@ -119885,8 +119889,8 @@ let EzSearch$1 = class extends HTMLElement$1 {
|
|
|
119885
119889
|
CSSVarsUtils.applyVarsTextInput(this._elem, this._comboElement);
|
|
119886
119890
|
}
|
|
119887
119891
|
render() {
|
|
119888
|
-
|
|
119889
|
-
return (h("ez-combo-box", { "data-element-id": ElementIDUtils.getInternalIDInfo(
|
|
119892
|
+
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
119893
|
+
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
119894
|
}
|
|
119891
119895
|
;
|
|
119892
119896
|
get _elem() { return this; }
|
|
@@ -119970,7 +119974,6 @@ let EzTabselector$1 = class extends HTMLElement$1 {
|
|
|
119970
119974
|
this.setFocusedBtn(false, tab.index);
|
|
119971
119975
|
}
|
|
119972
119976
|
componentWillRender() {
|
|
119973
|
-
ElementIDUtils.addIDInfo(this._hostElem);
|
|
119974
119977
|
if (!this._processedTabs) {
|
|
119975
119978
|
this._processedTabs = [];
|
|
119976
119979
|
if (this.tabs) {
|
|
@@ -120002,10 +120005,12 @@ let EzTabselector$1 = class extends HTMLElement$1 {
|
|
|
120002
120005
|
this.updateScroll();
|
|
120003
120006
|
}
|
|
120004
120007
|
componentDidLoad() {
|
|
120008
|
+
ElementIDUtils.addIDInfo(this._hostElem, "itemsSelector");
|
|
120005
120009
|
this._hostElem.shadowRoot.querySelectorAll('button[name="tab-button"]').forEach((elem) => {
|
|
120006
|
-
|
|
120007
|
-
const
|
|
120008
|
-
|
|
120010
|
+
var _a;
|
|
120011
|
+
const label = (_a = elem.querySelector('span.tab-label')) === null || _a === void 0 ? void 0 : _a.innerText;
|
|
120012
|
+
const dataInfo = { id: `${StringUtils$1.toCamelCase(label)}` };
|
|
120013
|
+
ElementIDUtils.addIDInfo(elem, "itemSelector", dataInfo);
|
|
120009
120014
|
});
|
|
120010
120015
|
}
|
|
120011
120016
|
handleSlotChange(ev) {
|
|
@@ -120263,10 +120268,10 @@ let EzTextArea$1 = class extends HTMLElement$1 {
|
|
|
120263
120268
|
this.observeMode();
|
|
120264
120269
|
}
|
|
120265
120270
|
render() {
|
|
120266
|
-
|
|
120271
|
+
ElementIDUtils.addIDInfoIfNotExists(this._hostElement, 'input');
|
|
120267
120272
|
return (h(Host, null, h("div", { class: "textarea", ref: (el) => this._container = el }, this.label && this.mode != "slim" ?
|
|
120268
120273
|
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(
|
|
120274
|
+
: 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
120275
|
h("span", { class: "message-box", ref: (el) => this._messageBoxElem = el, title: this.errorMessage }, this.errorMessage)));
|
|
120271
120276
|
}
|
|
120272
120277
|
get _hostElement() { return this; }
|
|
@@ -120368,8 +120373,8 @@ let EzTextEdit$1 = class extends HTMLElement$1 {
|
|
|
120368
120373
|
this.setStyledInput();
|
|
120369
120374
|
}
|
|
120370
120375
|
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(
|
|
120376
|
+
ElementIDUtils.addIDInfoIfNotExists(this._element, 'input');
|
|
120377
|
+
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
120378
|
}
|
|
120374
120379
|
get _element() { return this; }
|
|
120375
120380
|
static get style() { return ezTextEditCss; }
|
|
@@ -120604,10 +120609,10 @@ let EzTextInput$1 = class extends HTMLElement$1 {
|
|
|
120604
120609
|
}
|
|
120605
120610
|
}
|
|
120606
120611
|
render() {
|
|
120607
|
-
|
|
120612
|
+
ElementIDUtils.addIDInfoIfNotExists(this._hostElement, 'input');
|
|
120608
120613
|
return (h(Host, null, h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label && this.mode != "slim" ?
|
|
120609
120614
|
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(
|
|
120615
|
+
: 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" &&
|
|
120611
120616
|
h("span", { class: "message-box", ref: (el) => this._messageBoxElem = el, title: this.errorMessage }, this.errorMessage)));
|
|
120612
120617
|
}
|
|
120613
120618
|
get _hostElement() { return this; }
|
|
@@ -120768,8 +120773,8 @@ let EzTimeInput$1 = class extends HTMLElement$1 {
|
|
|
120768
120773
|
}
|
|
120769
120774
|
}
|
|
120770
120775
|
render() {
|
|
120771
|
-
|
|
120772
|
-
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo(
|
|
120776
|
+
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
120777
|
+
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
120778
|
}
|
|
120774
120779
|
static get assetsDirs() { return ["../assets"]; }
|
|
120775
120780
|
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() {
|
|
@@ -122,7 +122,7 @@ let EzCollapsibleBox = class {
|
|
|
122
122
|
render() {
|
|
123
123
|
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") +
|
|
124
124
|
(this.iconPlacement === "right" ? " collapsible-box__title--icon-right" : "") +
|
|
125
|
-
(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 ?
|
|
125
|
+
(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 ?
|
|
126
126
|
h("label", { class: "collapsible-box__label font--" + this.getHeaderSize(), title: this.label, ref: elem => this._refLabel = elem }, h("span", null, this.label), this.editable &&
|
|
127
127
|
h("ez-icon", { slot: "icon", "icon-name": "edit", onClick: (evt) => this.editLabel(evt), title: "Editar" }), this.removable &&
|
|
128
128
|
h("ez-icon", { slot: "icon", "icon-name": "delete", onClick: (evt) => this.confirmRemove(evt), title: "Remover" })) :
|
|
@@ -447,8 +447,8 @@ let EzComboBox = class {
|
|
|
447
447
|
}
|
|
448
448
|
render() {
|
|
449
449
|
var _a;
|
|
450
|
-
|
|
451
|
-
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo(
|
|
450
|
+
ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
451
|
+
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)
|
|
452
452
|
? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
|
|
453
453
|
: 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
|
|
454
454
|
&& h("div", { class: "message" }, !this._showLoading && h("span", { class: "message__no-result" }, this._textEmptyList), this._showLoading && h("div", { class: "message__loading" })), this.showOptionValue
|
|
@@ -140,8 +140,8 @@ let EzDateInput = class {
|
|
|
140
140
|
this.setInputValue();
|
|
141
141
|
}
|
|
142
142
|
render() {
|
|
143
|
-
|
|
144
|
-
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo(
|
|
143
|
+
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
144
|
+
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 })));
|
|
145
145
|
}
|
|
146
146
|
get _elem() { return getElement(this); }
|
|
147
147
|
static get watchers() { return {
|
|
@@ -195,8 +195,8 @@ let EzDateTimeInput = class {
|
|
|
195
195
|
this.setInputValue();
|
|
196
196
|
}
|
|
197
197
|
render() {
|
|
198
|
-
|
|
199
|
-
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo(
|
|
198
|
+
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
199
|
+
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 })));
|
|
200
200
|
}
|
|
201
201
|
get _elem() { return getElement(this); }
|
|
202
202
|
static get watchers() { return {
|
|
@@ -62,8 +62,8 @@ let EzFilterInput = class {
|
|
|
62
62
|
CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
|
|
63
63
|
}
|
|
64
64
|
render() {
|
|
65
|
-
|
|
66
|
-
return (h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo(
|
|
65
|
+
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
66
|
+
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" })));
|
|
67
67
|
}
|
|
68
68
|
get _elem() { return getElement(this); }
|
|
69
69
|
static get watchers() { return {
|
|
@@ -270,7 +270,7 @@ const buildField = (field) => {
|
|
|
270
270
|
const FormItem = ({ source }) => {
|
|
271
271
|
if ("items" in source) {
|
|
272
272
|
const fieldSet = source;
|
|
273
|
-
return h("ez-collapsible-box", { label: source.label, "header-size": "large" }, fieldSet.items.map(fi => buildField(fi)));
|
|
273
|
+
return h("ez-collapsible-box", { label: source.label, "header-size": "large", key: source.label }, fieldSet.items.map(fi => buildField(fi)));
|
|
274
274
|
}
|
|
275
275
|
else {
|
|
276
276
|
return buildField(source);
|
|
@@ -948,10 +948,10 @@ let EzForm = class {
|
|
|
948
948
|
const tabs = allSheets.map((sheet, index) => {
|
|
949
949
|
return { tabKey: sheet.name, label: sheet.label, index };
|
|
950
950
|
});
|
|
951
|
-
const idTabSelector =
|
|
951
|
+
const idTabSelector = `selector`;
|
|
952
952
|
result.push(h("ez-tabselector", { tabs: this.buildIdTabSelector(tabs), onEzChange: (evt) => this._store.dispatch(changeTab(evt.detail)), selectedTab: currentSheet.name, "data-element-id": idTabSelector }));
|
|
953
953
|
}
|
|
954
|
-
const idFormSheet = `${
|
|
954
|
+
const idFormSheet = `${StringUtils.replaceAccentuatedChars(StringUtils.toCamelCase(currentSheet.label), false)}_selectorContainer`;
|
|
955
955
|
result.push(h(FormSheet, { store: this._store, source: currentSheet, dataElementId: idFormSheet }));
|
|
956
956
|
return result;
|
|
957
957
|
}
|
|
@@ -1016,7 +1016,7 @@ let EzForm = class {
|
|
|
1016
1016
|
this._staticFields = Array.from(this._element.querySelectorAll("[data-field-name]"));
|
|
1017
1017
|
this.processMetadata();
|
|
1018
1018
|
const dataInfo = { dataUnit: this.dataUnit };
|
|
1019
|
-
|
|
1019
|
+
ElementIDUtils.addIDInfo(this._element, null, dataInfo);
|
|
1020
1020
|
}
|
|
1021
1021
|
componentDidRender() {
|
|
1022
1022
|
this._dataBinder.bind(Array.from(this._element.querySelectorAll("[data-field-name]")));
|
|
@@ -1029,7 +1029,7 @@ let EzForm = class {
|
|
|
1029
1029
|
}
|
|
1030
1030
|
buildIdTabSelector(tabs) {
|
|
1031
1031
|
if (tabs) {
|
|
1032
|
-
tabs.forEach(tab => tab[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME] =
|
|
1032
|
+
tabs.forEach(tab => tab[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME] = StringUtils.toCamelCase(tab.label));
|
|
1033
1033
|
}
|
|
1034
1034
|
return tabs;
|
|
1035
1035
|
}
|
|
@@ -115419,9 +115419,9 @@ let EzGrid = class {
|
|
|
115419
115419
|
}
|
|
115420
115420
|
buildDataElementId() {
|
|
115421
115421
|
const dataInfo = { dataUnit: this.dataUnit };
|
|
115422
|
-
|
|
115423
|
-
const dtInfo = { id:
|
|
115424
|
-
ElementIDUtils.addIDInfo(this._refPaginationControl,
|
|
115422
|
+
ElementIDUtils.addIDInfo(this._element, null, dataInfo);
|
|
115423
|
+
const dtInfo = { id: "ezGrid" };
|
|
115424
|
+
ElementIDUtils.addIDInfo(this._refPaginationControl, "pagination", dtInfo);
|
|
115425
115425
|
}
|
|
115426
115426
|
previousPage() {
|
|
115427
115427
|
if (this.dataUnit) {
|