@sankhyalabs/ezui 0.0.0-bugfix-dev-kb-74339.1 → 0.0.0-bugfix-dev-KB-74224.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 -1
- package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-alert.cjs.entry.js +1 -1
- package/dist/cjs/ez-application.cjs.entry.js +1 -1
- package/dist/cjs/ez-badge.cjs.entry.js +1 -1
- package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ez-button.cjs.entry.js +2 -2
- package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
- package/dist/cjs/ez-card-item_3.cjs.entry.js +1 -1
- package/dist/cjs/ez-chart.cjs.entry.js +1 -1
- package/dist/cjs/ez-check.cjs.entry.js +1 -1
- package/dist/cjs/ez-chip.cjs.entry.js +1 -1
- 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-custom-form-input_2.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-dialog.cjs.entry.js +1 -1
- package/dist/cjs/{ez-dropdown.cjs.entry.js → ez-dropdown_2.cjs.entry.js} +76 -9
- package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +1 -1
- package/dist/cjs/ez-form.cjs.entry.js +2 -2
- package/dist/cjs/ez-grid.cjs.entry.js +1 -1
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-list.cjs.entry.js +7 -8
- package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal.cjs.entry.js +12 -3
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-popover.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +13 -1
- package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +12 -19
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-button.cjs.entry.js +2 -2
- package/dist/cjs/ez-split-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
- package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-area.cjs.entry.js +3 -3
- package/dist/cjs/ez-text-input.cjs.entry.js +5 -2
- package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/ez-tree.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +1 -1
- package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +2 -2
- package/dist/cjs/filter-column.cjs.entry.js +1 -1
- package/dist/cjs/{index-9e5554cb.js → index-a7b0c73d.js} +2 -9
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/ez-button/ez-button.css +10 -11
- package/dist/collection/components/ez-combo-box/ez-combo-box.css +1 -1
- package/dist/collection/components/ez-date-input/ez-date-input.css +1 -1
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +1 -1
- package/dist/collection/components/ez-dropdown/ez-dropdown.js +33 -8
- package/dist/collection/components/ez-list/ez-list.js +6 -7
- package/dist/collection/components/ez-modal/ez-modal.js +11 -2
- package/dist/collection/components/ez-popup/ez-popup.js +12 -0
- package/dist/collection/components/ez-search/ez-search.css +2 -2
- package/dist/collection/components/ez-search/ez-search.js +11 -17
- package/dist/collection/components/ez-split-button/ez-split-button.css +47 -11
- package/dist/collection/components/ez-text-area/ez-text-area.css +24 -28
- package/dist/collection/components/ez-text-area/ez-text-area.js +1 -1
- package/dist/collection/components/ez-text-input/ez-text-input.css +27 -33
- package/dist/collection/components/ez-text-input/ez-text-input.js +3 -0
- package/dist/collection/utils/form/DataBinder.js +1 -1
- package/dist/custom-elements/index.js +68 -47
- package/dist/esm/ez-actions-button.entry.js +1 -1
- package/dist/esm/ez-alert-list.entry.js +1 -1
- package/dist/esm/ez-alert.entry.js +1 -1
- package/dist/esm/ez-application.entry.js +1 -1
- package/dist/esm/ez-badge.entry.js +1 -1
- package/dist/esm/ez-breadcrumb.entry.js +1 -1
- package/dist/esm/ez-button.entry.js +2 -2
- package/dist/esm/ez-calendar.entry.js +1 -1
- package/dist/esm/ez-card-item_3.entry.js +1 -1
- package/dist/esm/ez-chart.entry.js +1 -1
- package/dist/esm/ez-check.entry.js +1 -1
- package/dist/esm/ez-chip.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +1 -1
- package/dist/esm/ez-combo-box.entry.js +2 -2
- package/dist/esm/ez-custom-form-input_2.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-dialog.entry.js +1 -1
- package/dist/esm/{ez-dropdown.entry.js → ez-dropdown_2.entry.js} +76 -10
- package/dist/esm/ez-file-item.entry.js +1 -1
- package/dist/esm/ez-form-view.entry.js +1 -1
- package/dist/esm/ez-form.entry.js +2 -2
- package/dist/esm/ez-grid.entry.js +1 -1
- package/dist/esm/ez-guide-navigator.entry.js +1 -1
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-list.entry.js +7 -8
- package/dist/esm/ez-loading-bar.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +1 -1
- package/dist/esm/ez-modal.entry.js +12 -3
- package/dist/esm/ez-multi-selection-list.entry.js +1 -1
- package/dist/esm/ez-number-input.entry.js +1 -1
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +13 -1
- package/dist/esm/ez-radio-button.entry.js +1 -1
- package/dist/esm/ez-scroller_2.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +12 -19
- package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
- package/dist/esm/ez-split-button.entry.js +2 -2
- package/dist/esm/ez-split-item.entry.js +1 -1
- package/dist/esm/ez-split-panel.entry.js +1 -1
- package/dist/esm/ez-tabselector.entry.js +1 -1
- package/dist/esm/ez-text-area.entry.js +3 -3
- package/dist/esm/ez-text-input.entry.js +5 -2
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/ez-tree.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +1 -1
- package/dist/esm/ez-view-stack.entry.js +1 -1
- package/dist/esm/ezui.js +3 -3
- package/dist/esm/filter-column.entry.js +1 -1
- package/dist/esm/{index-5a720e56.js → index-baa5e267.js} +3 -9
- package/dist/esm/loader.js +3 -3
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-e6b38ade.entry.js → p-0306dff7.entry.js} +1 -1
- package/dist/ezui/{p-91ccae0c.entry.js → p-09de35a2.entry.js} +1 -1
- package/dist/ezui/p-10820c20.entry.js +1 -0
- package/dist/ezui/{p-11b09aa1.entry.js → p-1285c902.entry.js} +1 -1
- package/dist/ezui/{p-b2f6bc0a.entry.js → p-17be134a.entry.js} +1 -1
- package/dist/ezui/{p-81461d2f.entry.js → p-1e7a8633.entry.js} +1 -1
- package/dist/ezui/{p-6b51c9cc.entry.js → p-1f50fa05.entry.js} +1 -1
- package/dist/ezui/{p-e4c7eb39.js → p-23a36bb6.js} +2 -2
- package/dist/ezui/{p-2480e948.entry.js → p-37219d42.entry.js} +1 -1
- package/dist/ezui/{p-0378416a.entry.js → p-44caad9a.entry.js} +1 -1
- package/dist/ezui/{p-f291db18.entry.js → p-49456b34.entry.js} +1 -1
- package/dist/ezui/{p-7567ccdd.entry.js → p-555c9018.entry.js} +1 -1
- package/dist/ezui/{p-8ac13678.entry.js → p-5a90d7d1.entry.js} +1 -1
- package/dist/ezui/{p-044d46d5.entry.js → p-5b205c80.entry.js} +1 -1
- package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
- package/dist/ezui/{p-f5ffadb1.entry.js → p-62732269.entry.js} +1 -1
- package/dist/ezui/{p-f1c2c19e.entry.js → p-650e4b6d.entry.js} +1 -1
- package/dist/ezui/{p-554522db.entry.js → p-6d79930d.entry.js} +1 -1
- package/dist/ezui/{p-fc194825.entry.js → p-6e429cff.entry.js} +1 -1
- package/dist/ezui/{p-11bfeca3.entry.js → p-77a4bd35.entry.js} +1 -1
- package/dist/ezui/{p-3f8c33e0.entry.js → p-7bc07c31.entry.js} +1 -1
- package/dist/ezui/{p-e18d9e6a.entry.js → p-7fdd479f.entry.js} +1 -1
- package/dist/ezui/{p-1b08bf3c.entry.js → p-8888d9ed.entry.js} +1 -1
- package/dist/ezui/{p-82fa4b09.entry.js → p-8df1ca33.entry.js} +1 -1
- package/dist/ezui/{p-e7395eae.entry.js → p-90bcd2ba.entry.js} +1 -1
- package/dist/ezui/{p-a921e3e7.entry.js → p-990b4318.entry.js} +1 -1
- package/dist/ezui/p-9d9ecb7c.entry.js +1 -0
- package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
- package/dist/ezui/p-a2e5b8c3.entry.js +1 -0
- package/dist/ezui/{p-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
- package/dist/ezui/p-abce5219.entry.js +1 -0
- package/dist/ezui/p-b3b94f72.entry.js +1 -0
- package/dist/ezui/p-b54e17d2.entry.js +1 -0
- package/dist/ezui/{p-24ca32a3.entry.js → p-b95632e8.entry.js} +1 -1
- package/dist/ezui/{p-30951bd7.entry.js → p-baf80b13.entry.js} +1 -1
- package/dist/ezui/p-bc2f844e.entry.js +1 -0
- package/dist/ezui/{p-868b56f7.entry.js → p-bcb53f27.entry.js} +1 -1
- package/dist/ezui/p-bcd47eda.entry.js +1 -0
- package/dist/ezui/p-bfad39eb.entry.js +1 -0
- package/dist/ezui/{p-92748142.entry.js → p-c0d9c4f8.entry.js} +1 -1
- package/dist/ezui/p-c25f0e92.entry.js +1 -0
- package/dist/ezui/{p-b858fc6e.entry.js → p-c3045972.entry.js} +1 -1
- package/dist/ezui/{p-190c190f.entry.js → p-c3c3d640.entry.js} +1 -1
- package/dist/ezui/{p-82ac8b06.entry.js → p-c4320a39.entry.js} +1 -1
- package/dist/ezui/{p-52100a6e.entry.js → p-cdc472cc.entry.js} +1 -1
- package/dist/ezui/{p-a7490128.entry.js → p-d2c06f38.entry.js} +1 -1
- package/dist/ezui/{p-bef7daac.entry.js → p-e347df9c.entry.js} +1 -1
- package/dist/ezui/{p-36180f4d.entry.js → p-e85c48d7.entry.js} +1 -1
- package/dist/ezui/{p-9174ab3c.entry.js → p-f299c608.entry.js} +1 -1
- package/dist/ezui/{p-70f1c812.entry.js → p-f9e551de.entry.js} +1 -1
- package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +4 -0
- package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +1 -1
- package/dist/types/components/ez-modal/ez-modal.d.ts +1 -0
- package/dist/types/components/ez-popup/ez-popup.d.ts +1 -0
- package/dist/types/components/ez-search/ez-search.d.ts +2 -1
- package/dist/types/components.d.ts +4 -0
- package/package.json +1 -1
- package/dist/cjs/ez-skeleton.cjs.entry.js +0 -67
- package/dist/esm/ez-skeleton.entry.js +0 -63
- package/dist/ezui/p-1bd07c43.entry.js +0 -1
- package/dist/ezui/p-4b5f83a4.entry.js +0 -1
- package/dist/ezui/p-6ec40dec.entry.js +0 -1
- package/dist/ezui/p-7946f2d4.entry.js +0 -1
- package/dist/ezui/p-8eef0f70.entry.js +0 -1
- package/dist/ezui/p-940760bf.entry.js +0 -1
- package/dist/ezui/p-b0e71d23.entry.js +0 -1
- package/dist/ezui/p-b9fa2526.entry.js +0 -1
- package/dist/ezui/p-c3b7a23e.entry.js +0 -1
- package/dist/ezui/p-e03c2774.entry.js +0 -1
- package/dist/ezui/p-ff233029.entry.js +0 -1
|
@@ -18,6 +18,7 @@ export class EzSearch {
|
|
|
18
18
|
this._visibleOptions = undefined;
|
|
19
19
|
this._startLoading = false;
|
|
20
20
|
this._showLoading = true;
|
|
21
|
+
this._showLoadingDescription = false;
|
|
21
22
|
this._criteria = undefined;
|
|
22
23
|
this.value = undefined;
|
|
23
24
|
this.label = undefined;
|
|
@@ -340,10 +341,13 @@ export class EzSearch {
|
|
|
340
341
|
this._startLoading = false;
|
|
341
342
|
if (source instanceof Promise) {
|
|
342
343
|
this._showLoading = true;
|
|
344
|
+
this._showLoadingDescription = true;
|
|
343
345
|
source.then(result => {
|
|
344
|
-
this._showLoading = false;
|
|
345
346
|
this.updateSource(result);
|
|
346
|
-
}).
|
|
347
|
+
}).finally(() => {
|
|
348
|
+
this._showLoading = false;
|
|
349
|
+
this._showLoadingDescription = false;
|
|
350
|
+
});
|
|
347
351
|
this.updateVisibleOptions();
|
|
348
352
|
}
|
|
349
353
|
else {
|
|
@@ -446,19 +450,6 @@ export class EzSearch {
|
|
|
446
450
|
this.controlListWithOnlyOne();
|
|
447
451
|
}
|
|
448
452
|
}
|
|
449
|
-
validateDescriptionValue() {
|
|
450
|
-
if (StringUtils.isEmpty(this.value)) {
|
|
451
|
-
return;
|
|
452
|
-
}
|
|
453
|
-
if (!this.validateNewValue(this.value, this._currentValue)) {
|
|
454
|
-
return;
|
|
455
|
-
}
|
|
456
|
-
let value = this.value;
|
|
457
|
-
if (typeof value === "object") {
|
|
458
|
-
return;
|
|
459
|
-
}
|
|
460
|
-
this.loadDescriptionValue(value);
|
|
461
|
-
}
|
|
462
453
|
async loadDescriptionValue(argument) {
|
|
463
454
|
var _a, _b;
|
|
464
455
|
if (argument == undefined) {
|
|
@@ -557,7 +548,6 @@ export class EzSearch {
|
|
|
557
548
|
(_a = this._optionsList) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item").forEach((elem) => {
|
|
558
549
|
ElementIDUtils.addIDInfoIfNotExists(elem, "itemSearch");
|
|
559
550
|
});
|
|
560
|
-
this.validateDescriptionValue();
|
|
561
551
|
}
|
|
562
552
|
componentDidLoad() {
|
|
563
553
|
this._currentValue = this.value;
|
|
@@ -680,10 +670,13 @@ export class EzSearch {
|
|
|
680
670
|
canShowListOptions() {
|
|
681
671
|
return !this._showLoading && this._visibleOptions.length > 0;
|
|
682
672
|
}
|
|
673
|
+
canShowLoadSpinDescription() {
|
|
674
|
+
return this._showLoadingDescription && this._floatingID == undefined;
|
|
675
|
+
}
|
|
683
676
|
render() {
|
|
684
677
|
var _a;
|
|
685
678
|
ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
686
|
-
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), 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: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: "search" })), (((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value) || this.ensureClearButtonVisible)
|
|
679
|
+
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), 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: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, this.canShowLoadSpinDescription() ? h("div", { class: "message__loading" }) : h("ez-icon", { iconName: "search" })), (((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value) || this.ensureClearButtonVisible)
|
|
687
680
|
? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
|
|
688
681
|
: undefined), h("section", { class: "list-container", ref: elem => this._listContainer = elem }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this._showLoading
|
|
689
682
|
&& this._visibleOptions.length === 0
|
|
@@ -1071,6 +1064,7 @@ export class EzSearch {
|
|
|
1071
1064
|
"_visibleOptions": {},
|
|
1072
1065
|
"_startLoading": {},
|
|
1073
1066
|
"_showLoading": {},
|
|
1067
|
+
"_showLoadingDescription": {},
|
|
1074
1068
|
"_criteria": {}
|
|
1075
1069
|
};
|
|
1076
1070
|
}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
--ez-split-button__right-button--padding-left: 8px;
|
|
22
22
|
/* general */
|
|
23
23
|
/*@doc Define a cor do label.*/
|
|
24
|
-
--ez-split-button--color: var(--title--primary, #
|
|
24
|
+
--ez-split-button--color: var(--title--primary, #2B3A54);
|
|
25
25
|
/*@doc Define o tamanho do label.*/
|
|
26
26
|
--ez-split-button--font-size: var(--text--small, 12px);
|
|
27
27
|
/*@doc Define a família da fonte do label.*/
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
/*@doc Define o peso da fonte do label.*/
|
|
30
30
|
--ez-split-button--font-weight: var(--text-weight--large);
|
|
31
31
|
/*@doc Define a cor de fundo do botão.*/
|
|
32
|
-
--ez-split-button--background-color: var(--background--
|
|
32
|
+
--ez-split-button--background-color: var(--background--light, #ffffff);
|
|
33
33
|
/*@doc Define o raio da borda do botão.*/
|
|
34
|
-
--ez-split-button--border-radius: var(--border--radius-large,
|
|
34
|
+
--ez-split-button--border-radius: var(--border--radius-large, 24px);
|
|
35
35
|
/*@doc Define o estilo da borda do botão.*/
|
|
36
|
-
--ez-split-button--border:
|
|
36
|
+
--ez-split-button--border: 1px solid var(--color--strokes);
|
|
37
37
|
/*@doc Define o alinhamento horizontal do conteúdo do botão.*/
|
|
38
38
|
--ez-split-button--justify-content: center;
|
|
39
39
|
/*@doc Define a cor do texto e do ícone quando o cursor está sobre o botão.*/
|
|
40
|
-
--ez-split-button--hover-color: var(--color--primary-600);
|
|
40
|
+
--ez-split-button--hover-color: var(--color--primary-600, #007a5a);
|
|
41
41
|
/*@doc Define a cor de fundo quando o cursor está sobre o botão.*/
|
|
42
|
-
--ez-split-button--hover--background-color: var(--background--
|
|
42
|
+
--ez-split-button--hover--background-color: var(--background--light, #ffffff);
|
|
43
43
|
/*@doc Define a cor do texto quando o botão está desabilitado.*/
|
|
44
44
|
--ez-split-button--disabled-color: var(--text--disable);
|
|
45
45
|
/*@doc Define a cor de fundo quando o botão está desabilitado.*/
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
background-color: var(--ez-split-button--background-color);
|
|
82
82
|
color: var(--ez-split-button--color);
|
|
83
83
|
fill: var(--ez-split-button--color);
|
|
84
|
-
border:
|
|
84
|
+
border: none;
|
|
85
85
|
justify-content: var(--ez-split-button--justify-content);
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -97,11 +97,28 @@
|
|
|
97
97
|
fill: var(--ez-split-button--active-color);
|
|
98
98
|
--ez-icon--color: var(--ez-split-button--active-color);
|
|
99
99
|
}
|
|
100
|
+
.ez-split-button__left-button{
|
|
101
|
+
border: var(--ez-split-button--border);
|
|
102
|
+
border-right: none;
|
|
103
|
+
}
|
|
104
|
+
.ez-split-button__right-button{
|
|
105
|
+
border: var(--ez-split-button--border);
|
|
106
|
+
border-left: none;
|
|
107
|
+
}
|
|
100
108
|
|
|
101
|
-
.ez-split-button__left-button:focus
|
|
109
|
+
.ez-split-button__left-button:focus{
|
|
110
|
+
box-shadow:
|
|
111
|
+
0 0 0 2px var(--color--primary-300), /* right */
|
|
112
|
+
0 2px 0 0 var(--color--primary-300), /* bottom */
|
|
113
|
+
0 -2px 0 0 var(--color--primary-300); /* top */
|
|
114
|
+
|
|
115
|
+
}
|
|
102
116
|
.ez-split-button__right-button:focus {
|
|
103
|
-
|
|
104
|
-
|
|
117
|
+
box-shadow:
|
|
118
|
+
2px 0 0 0 var(--color--primary-300), /* right */
|
|
119
|
+
0 2px 0 0 var(--color--primary-300), /* bottom */
|
|
120
|
+
0 -2px 0 0 var(--color--primary-300); /* top */
|
|
121
|
+
|
|
105
122
|
}
|
|
106
123
|
|
|
107
124
|
.ez-split-button__left-button:hover,
|
|
@@ -113,6 +130,16 @@
|
|
|
113
130
|
--ez-icon--color: var(--ez-split-button--hover-color);
|
|
114
131
|
}
|
|
115
132
|
|
|
133
|
+
.ez-split-button__left-button:active,
|
|
134
|
+
.ez-split-button__right-button:active {
|
|
135
|
+
outline: none;
|
|
136
|
+
box-shadow: none;
|
|
137
|
+
background-color: var(--ez-split-button--active--background-color);
|
|
138
|
+
color: var(--ez-split-button--active-color);
|
|
139
|
+
fill: var(--ez-split-button--active-color);
|
|
140
|
+
--ez-icon--color: var(--ez-split-button--active-color);
|
|
141
|
+
}
|
|
142
|
+
|
|
116
143
|
.ez-split-button__left-button:disabled,
|
|
117
144
|
.ez-split-button__left-button:disabled label,
|
|
118
145
|
.ez-split-button__right-button:disabled{
|
|
@@ -123,7 +150,15 @@
|
|
|
123
150
|
--ez-icon--color: var(--ez-split-button--disabled-color);
|
|
124
151
|
cursor: not-allowed;
|
|
125
152
|
}
|
|
126
|
-
|
|
153
|
+
.ez-split-button__left-button:disabled{
|
|
154
|
+
border: var(--ez-split-button--disabled-border);
|
|
155
|
+
border-right: none;
|
|
156
|
+
}
|
|
157
|
+
.ez-split-button__right-button:disabled{
|
|
158
|
+
border: var(--ez-split-button--disabled-border);
|
|
159
|
+
border-left: none;
|
|
160
|
+
}
|
|
161
|
+
|
|
127
162
|
button.large {
|
|
128
163
|
height: var(--ez-split-button__large--height);
|
|
129
164
|
}
|
|
@@ -161,6 +196,7 @@
|
|
|
161
196
|
border-bottom-right-radius: var(--ez-split-button--border-radius);
|
|
162
197
|
border-top-left-radius: 0;
|
|
163
198
|
border-bottom-left-radius:0;
|
|
199
|
+
border-right: var(--ez-split-button--border);
|
|
164
200
|
}
|
|
165
201
|
|
|
166
202
|
.ez-split-button__right-button--medium {
|
|
@@ -13,24 +13,25 @@
|
|
|
13
13
|
/*@doc Define o peso da fonte do label do componente.*/
|
|
14
14
|
--text-area--font-weight: var(--text-weight--medium, 400);
|
|
15
15
|
/*@doc Define a cor da fonte do input e label do componente.*/
|
|
16
|
-
--text-area--color: var(--title--primary, #
|
|
16
|
+
--text-area--color: var(--title--primary, #2B3A54);
|
|
17
17
|
|
|
18
18
|
/* input */
|
|
19
19
|
/*@doc Define a cor de fundo do input.*/
|
|
20
|
-
--text-area__input--background-color: var(--background--
|
|
20
|
+
--text-area__input--background-color: var(--background--light, #FFFFFF);
|
|
21
21
|
/*@doc Define o estilo da borda do input.*/
|
|
22
22
|
--text-area__input--border: var(--border--medium, 2px solid);
|
|
23
23
|
/*@doc Define a cor da borda do input.*/
|
|
24
|
-
--text-area__input--border-color: var(--
|
|
25
|
-
/*no modo normal usamos a borda com a mesma cor do bg*/
|
|
24
|
+
--text-area__input--border-color: var(--color--strokes,#DCE0E8);
|
|
26
25
|
/*@doc Define a cor da borda do input quando focado.*/
|
|
27
26
|
--text-area__input--focus--border-color: var(--color--primary, #008561);
|
|
28
27
|
/*@doc Define a cor de fundo do input quando desabilitado.*/
|
|
29
|
-
--text-area__input--disabled--background-color: var(--
|
|
28
|
+
--text-area__input--disabled--background-color: var(--background--medium, #F0F3F7);
|
|
30
29
|
/*@doc Define a cor do texto do input.*/
|
|
31
|
-
--text-area__input--disabled--color: var(--text--
|
|
30
|
+
--text-area__input--disabled--color: var(--text--primary, #626E82);
|
|
31
|
+
/*@doc Define a borda do texto do input quando desabilitado.*/
|
|
32
|
+
--text-area__input--disabled--border--color: var(--color--strokes,#DCE0E8);
|
|
32
33
|
/*@doc Define a cor da borda do input quando com erro.*/
|
|
33
|
-
--text-area__input--error--border-color:
|
|
34
|
+
--text-area__input--error--border-color: var(--color-alert--error-800,#BD0025);
|
|
34
35
|
|
|
35
36
|
/* message box */
|
|
36
37
|
/*@doc Define o tamanho da fonte da mensagem abaixo do input.*/
|
|
@@ -38,7 +39,7 @@
|
|
|
38
39
|
/*@doc Define a cor da fonte da mensagem quando info.*/
|
|
39
40
|
--text-area__message_box--info--color: var(--color--success, #22085d);
|
|
40
41
|
/*@doc Define a cor da fonte da mensagem quando erro.*/
|
|
41
|
-
--text-area__message_box--error--color: var(--color--error
|
|
42
|
+
--text-area__message_box--error--color: var(--color-alert--error-800,#BD0025);
|
|
42
43
|
|
|
43
44
|
/* label */
|
|
44
45
|
/*@doc Define o posicionamento do label.*/
|
|
@@ -87,6 +88,8 @@ textarea:disabled {
|
|
|
87
88
|
/*public*/
|
|
88
89
|
background-color: transparent;
|
|
89
90
|
color: var(--text-area__input--disabled--color);
|
|
91
|
+
border: var(--text-area__input--disabled--border);
|
|
92
|
+
cursor: not-allowed;
|
|
90
93
|
}
|
|
91
94
|
|
|
92
95
|
.textarea {
|
|
@@ -102,6 +105,13 @@ textarea:disabled {
|
|
|
102
105
|
border-color: var(--text-area__input--border-color);
|
|
103
106
|
background-color: var(--text-area__input--background-color);
|
|
104
107
|
}
|
|
108
|
+
.textarea--disabled{
|
|
109
|
+
border-radius: var(--text-area--border-radius);
|
|
110
|
+
border: var(--text-area__input--border);
|
|
111
|
+
border-color: var(--text-area__input--disabled--border--color);
|
|
112
|
+
background-color: var(--text-area__input--disabled--background-color);
|
|
113
|
+
cursor: not-allowed;
|
|
114
|
+
}
|
|
105
115
|
|
|
106
116
|
.textarea--resizable {
|
|
107
117
|
resize: both;
|
|
@@ -169,6 +179,7 @@ textarea:disabled {
|
|
|
169
179
|
|
|
170
180
|
.textarea__label--disabled {
|
|
171
181
|
color: var(--text-area__input--disabled--color);
|
|
182
|
+
cursor: not-allowed;
|
|
172
183
|
}
|
|
173
184
|
|
|
174
185
|
.textarea--slim {
|
|
@@ -216,27 +227,12 @@ textarea:disabled {
|
|
|
216
227
|
color: var(--text-area--color);
|
|
217
228
|
}
|
|
218
229
|
|
|
219
|
-
.textarea--slim:disabled::-webkit-input-placeholder
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
.textarea--slim:disabled:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
|
|
225
|
-
/*public*/
|
|
226
|
-
color: var(--text-area__input--disabled--color);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.textarea--slim:disabled::-moz-placeholder { /* Mozilla Firefox 19+ */
|
|
230
|
-
/*public*/
|
|
231
|
-
color: var(--text-area__input--disabled--color);
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
.textarea--slim:disabled:-ms-input-placeholder { /* Internet Explorer 10+ */
|
|
235
|
-
/*public*/
|
|
236
|
-
color: var(--text-area__input--disabled--color);
|
|
237
|
-
}
|
|
238
|
-
|
|
230
|
+
.textarea--slim:disabled::-webkit-input-placeholder, /* WebKit browsers */
|
|
231
|
+
.textarea--slim:disabled:-moz-placeholder, /* Mozilla Firefox 4 to 18 */
|
|
232
|
+
.textarea--slim:disabled::-moz-placeholder, /* Mozilla Firefox 19+ */
|
|
233
|
+
.textarea--slim:disabled:-ms-input-placeholder, /* Internet Explorer 10+ */
|
|
239
234
|
.textarea--slim:disabled::placeholder {
|
|
240
235
|
/*public*/
|
|
241
236
|
color: var(--text-area__input--disabled--color);
|
|
237
|
+
cursor: not-allowed
|
|
242
238
|
}
|
|
@@ -149,7 +149,7 @@ export class EzTextArea {
|
|
|
149
149
|
}
|
|
150
150
|
render() {
|
|
151
151
|
ElementIDUtils.addIDInfoIfNotExists(this._hostElement, 'input');
|
|
152
|
-
return (h(Host, null, h("div", { class: "textarea"
|
|
152
|
+
return (h(Host, null, h("div", { class: `textarea ${this.enabled ? "" : "textarea--disabled"}`, ref: (el) => this._container = el }, this.label && this.mode != "slim" ?
|
|
153
153
|
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)
|
|
154
154
|
: null, h("textarea", { onFocus: () => this.handleFocus(), "data-element-id": ElementIDUtils.getInternalIDInfo("input"), ref: (el) => this._inputElem = el, value: this.value, disabled: !this.enabled, class: {
|
|
155
155
|
"textarea--slim": this.mode === "slim",
|
|
@@ -23,20 +23,25 @@
|
|
|
23
23
|
|
|
24
24
|
/* input */
|
|
25
25
|
/*@doc Define a cor de fundo do input.*/
|
|
26
|
-
--ez-text-input__input--background-color: var(--background--
|
|
26
|
+
--ez-text-input__input--background-color: var(--background--light, #ffffff);
|
|
27
27
|
/*@doc Define o estilo da borda do input.*/
|
|
28
|
-
--ez-text-input__input--border: var(--border--
|
|
28
|
+
--ez-text-input__input--border: var(--border--small, 1px solid);
|
|
29
29
|
/*@doc Define a cor da borda do input.*/
|
|
30
|
-
--ez-text-input__input--border-color: var(--
|
|
31
|
-
/*no modo normal usamos a borda com a mesma cor do bg*/
|
|
30
|
+
--ez-text-input__input--border-color: var(--color--strokes,#DCE0E8);
|
|
32
31
|
/*@doc Define a cor da borda do input quando focado.*/
|
|
33
32
|
--ez-text-input__input--focus--border-color: var(--color--primary, #008561);
|
|
33
|
+
|
|
34
|
+
/* input disabled */
|
|
34
35
|
/*@doc Define a cor de fundo do input quando desabilitado.*/
|
|
35
|
-
--ez-text-input__input--disabled--background-color: var(--
|
|
36
|
+
--ez-text-input__input--disabled--background-color: var(--background--medium, #F0F3F7);
|
|
36
37
|
/*@doc Define a cor do texto do input.*/
|
|
37
|
-
--ez-text-input__input--disabled--color: var(--text--
|
|
38
|
+
--ez-text-input__input--disabled--color: var(--text--primary, #626E82);
|
|
39
|
+
|
|
40
|
+
/* input error */
|
|
38
41
|
/*@doc Define a cor da borda do input quando com erro.*/
|
|
39
|
-
--ez-text-input__input--error--border-color:
|
|
42
|
+
--ez-text-input__input--error--border-color: var(--color-alert--error-800,#BD0025);
|
|
43
|
+
|
|
44
|
+
|
|
40
45
|
/*@doc Define a cor do input quando não possuir borda*/
|
|
41
46
|
--ez-text-input__input--noborder-color: white;
|
|
42
47
|
/*@doc Define o padding do input*/
|
|
@@ -44,11 +49,11 @@
|
|
|
44
49
|
|
|
45
50
|
/* message box */
|
|
46
51
|
/*@doc Define o tamanho da fonte da mensagem abaixo do input.*/
|
|
47
|
-
--ez-text-input__message_box--font-size: var(--text--small,
|
|
52
|
+
--ez-text-input__message_box--font-size: var(--text--extra-small, 10px);
|
|
48
53
|
/*@doc Define a cor da fonte da mensagem quando info.*/
|
|
49
54
|
--ez-text-input__message_box--info--color: var(--color--success, #22085d);
|
|
50
55
|
/*@doc Define a cor da fonte da mensagem quando erro.*/
|
|
51
|
-
--ez-text-input__message_box--error--color: var(--color--error
|
|
56
|
+
--ez-text-input__message_box--error--color: var(--color-alert--error-800,#BD0025);
|
|
52
57
|
|
|
53
58
|
/* label */
|
|
54
59
|
/*@doc Define o posicionamento do label.*/
|
|
@@ -61,7 +66,9 @@
|
|
|
61
66
|
--ez-text-input__label--padding-right: 12px;
|
|
62
67
|
|
|
63
68
|
/*@doc Define a cor do ícone do slot.*/
|
|
64
|
-
--ez-text-input__input--focus--icon-color: var(--
|
|
69
|
+
--ez-text-input__input--focus--icon-color: var(--title--primary, #2B3A54);
|
|
70
|
+
/*@doc Define a cor do ícone do slot quando disabled.*/
|
|
71
|
+
--ez-text-input__input--disabled--focus--icon-color: var(--text--primary, #626E82);
|
|
65
72
|
|
|
66
73
|
|
|
67
74
|
/***************
|
|
@@ -101,6 +108,7 @@ input:disabled {
|
|
|
101
108
|
/*public*/
|
|
102
109
|
background-color: var(--ez-text-input__input--disabled--background-color);
|
|
103
110
|
color: var(--ez-text-input__input--disabled--color);
|
|
111
|
+
cursor: not-allowed;
|
|
104
112
|
}
|
|
105
113
|
|
|
106
114
|
input:focus {
|
|
@@ -131,16 +139,17 @@ input.text--right {
|
|
|
131
139
|
text-align: right;
|
|
132
140
|
}
|
|
133
141
|
|
|
142
|
+
input:disabled,
|
|
134
143
|
input:read-only {
|
|
135
|
-
cursor:
|
|
144
|
+
cursor: not-allowed;
|
|
136
145
|
}
|
|
137
146
|
|
|
138
147
|
.message-box {
|
|
139
148
|
/*private*/
|
|
140
|
-
min-height:
|
|
149
|
+
min-height: 14px;
|
|
141
150
|
min-width: 100%;
|
|
142
151
|
margin-top: 3px;
|
|
143
|
-
line-height:
|
|
152
|
+
line-height: 10px;
|
|
144
153
|
overflow: hidden;
|
|
145
154
|
text-overflow: ellipsis;
|
|
146
155
|
white-space: nowrap;
|
|
@@ -188,6 +197,7 @@ input:read-only {
|
|
|
188
197
|
|
|
189
198
|
.input__label--disabled {
|
|
190
199
|
color: var(--ez-text-input__input--disabled--color);
|
|
200
|
+
cursor: not-allowed;
|
|
191
201
|
}
|
|
192
202
|
|
|
193
203
|
.input__label--left {
|
|
@@ -268,26 +278,10 @@ input:read-only {
|
|
|
268
278
|
color: var(--ez-text-input--color);
|
|
269
279
|
}
|
|
270
280
|
|
|
271
|
-
.input--slim:disabled::-webkit-input-placeholder
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
.input--slim:disabled:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
|
|
277
|
-
/*public*/
|
|
278
|
-
color: var(--ez-text-input__input--disabled--color);
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.input--slim:disabled::-moz-placeholder { /* Mozilla Firefox 19+ */
|
|
282
|
-
/*public*/
|
|
283
|
-
color: var(--ez-text-input__input--disabled--color);
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.input--slim:disabled:-ms-input-placeholder { /* Internet Explorer 10+ */
|
|
287
|
-
/*public*/
|
|
288
|
-
color: var(--ez-text-input__input--disabled--color);
|
|
289
|
-
}
|
|
290
|
-
|
|
281
|
+
.input--slim:disabled::-webkit-input-placeholder, /* WebKit browsers */
|
|
282
|
+
.input--slim:disabled:-moz-placeholder, /* Mozilla Firefox 4 to 18 */
|
|
283
|
+
.input--slim:disabled::-moz-placeholder, /* Mozilla Firefox 19+ */
|
|
284
|
+
.input--slim:disabled:-ms-input-placeholder, /* Internet Explorer 10+ */
|
|
291
285
|
.input--slim:disabled::placeholder {
|
|
292
286
|
/*public*/
|
|
293
287
|
color: var(--ez-text-input__input--disabled--color);
|
|
@@ -202,6 +202,9 @@ export class EzTextInput {
|
|
|
202
202
|
this.observeMask();
|
|
203
203
|
this.adjustFloatingLabel();
|
|
204
204
|
this.adjustBorderInput();
|
|
205
|
+
this._inputElem.addEventListener('focus', () => {
|
|
206
|
+
this._inputElem.setSelectionRange(0, this._inputElem.value.length);
|
|
207
|
+
});
|
|
205
208
|
}
|
|
206
209
|
componentWillLoad() {
|
|
207
210
|
this.observeMask();
|
|
@@ -160,10 +160,10 @@ export default class DataBinder {
|
|
|
160
160
|
if (oldBind) {
|
|
161
161
|
oldBind.destroy();
|
|
162
162
|
}
|
|
163
|
+
this.bindSearchOptionsLoader(fieldName, field);
|
|
163
164
|
field["value"] = this._dataUnit.getFieldValue(fieldName);
|
|
164
165
|
this.updateErrorMessage(fieldName, field);
|
|
165
166
|
this._fields.set(fieldName, Bind.create(fieldName, field, (fieldName, waitingChange) => this.changeStarted(fieldName, waitingChange), (fieldName) => this.cancelWaitingChange(fieldName), (fieldName, newValue) => this.setFieldValue(fieldName, newValue)));
|
|
166
|
-
this.bindSearchOptionsLoader(fieldName, field);
|
|
167
167
|
this.applyEzUploadContext(fieldName, field);
|
|
168
168
|
}
|
|
169
169
|
changeStarted(fieldName, waitingChange) {
|