@sankhyalabs/ezui 2.3.0 → 2.3.2
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/README.md +1 -0
- package/dist/cjs/ez-actions-button.cjs.entry.js +12 -8
- package/dist/cjs/ez-button.cjs.entry.js +5 -5
- package/dist/cjs/ez-calendar.cjs.entry.js +10 -13
- package/dist/cjs/ez-check.cjs.entry.js +5 -8
- package/dist/cjs/ez-chip.cjs.entry.js +4 -4
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +14 -14
- package/dist/cjs/ez-combo-box.cjs.entry.js +11 -11
- package/dist/cjs/ez-date-input.cjs.entry.js +5 -5
- package/dist/cjs/ez-date-time-input.cjs.entry.js +7 -7
- package/dist/cjs/ez-dialog.cjs.entry.js +4 -7
- package/dist/cjs/ez-filter-input.cjs.entry.js +6 -6
- package/dist/cjs/ez-form.cjs.entry.js +4 -7
- package/dist/cjs/ez-grid.cjs.entry.js +93 -19
- package/dist/cjs/ez-icon.cjs.entry.js +3 -3
- package/dist/cjs/ez-list.cjs.entry.js +71 -71
- package/dist/cjs/ez-loading-bar.cjs.entry.js +8 -4
- package/dist/cjs/ez-modal-container.cjs.entry.js +2 -2
- package/dist/cjs/ez-modal.cjs.entry.js +6 -6
- package/dist/cjs/ez-number-input.cjs.entry.js +5 -5
- package/dist/cjs/ez-popover.cjs.entry.js +8 -10
- package/dist/cjs/ez-popup.cjs.entry.js +4 -5
- package/dist/cjs/ez-radio-button.cjs.entry.js +3 -3
- package/dist/cjs/ez-scroller.cjs.entry.js +2 -7
- package/dist/cjs/ez-search.cjs.entry.js +13 -14
- package/dist/cjs/ez-text-area.cjs.entry.js +7 -7
- package/dist/cjs/ez-text-edit.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-input.cjs.entry.js +7 -7
- package/dist/cjs/ez-time-input.cjs.entry.js +6 -6
- package/dist/cjs/ez-toast.cjs.entry.js +5 -5
- package/dist/cjs/ez-upload.cjs.entry.js +5 -5
- package/dist/cjs/ez-view-stack.cjs.entry.js +2 -2
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ez-actions-button/ez-actions-button.js +27 -22
- package/dist/collection/components/ez-button/ez-button.js +15 -15
- package/dist/collection/components/ez-calendar/ez-calendar.js +18 -21
- package/dist/collection/components/ez-card-item/ez-card-item.js +2 -2
- package/dist/collection/components/ez-check/ez-check.js +28 -22
- package/dist/collection/components/ez-chip/ez-chip.js +15 -15
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +28 -28
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +42 -33
- package/dist/collection/components/ez-date-input/ez-date-input.js +18 -18
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +21 -21
- package/dist/collection/components/ez-dialog/ez-dialog.js +13 -35
- package/dist/collection/components/ez-filter-input/ez-filter-input.js +18 -35
- package/dist/collection/components/ez-form/ez-form.js +8 -43
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +63 -1
- package/dist/collection/components/ez-grid/ez-grid.js +57 -44
- package/dist/collection/components/ez-icon/ez-icon.js +11 -11
- package/dist/collection/components/ez-list/ez-list.js +112 -93
- package/dist/collection/components/ez-loading-bar/ez-loading-bar.js +10 -6
- package/dist/collection/components/ez-modal/ez-modal.js +14 -14
- package/dist/collection/components/ez-modal-container/ez-modal-container.js +16 -16
- package/dist/collection/components/ez-number-input/ez-number-input.js +20 -20
- package/dist/collection/components/ez-popover/ez-popover.js +22 -24
- package/dist/collection/components/ez-popup/ez-popup.js +16 -17
- package/dist/collection/components/ez-radio-button/ez-radio-button.js +8 -8
- package/dist/collection/components/ez-scroller/ez-scroller.js +6 -12
- package/dist/collection/components/ez-search/ez-search.js +42 -46
- package/dist/collection/components/ez-tabselector/ez-tabselector.js +2 -2
- package/dist/collection/components/ez-text-area/ez-text-area.js +20 -37
- package/dist/collection/components/ez-text-edit/ez-text-edit.js +6 -6
- package/dist/collection/components/ez-text-input/ez-text-input.js +21 -38
- package/dist/collection/components/ez-time-input/ez-time-input.js +20 -20
- package/dist/collection/components/ez-toast/ez-toast.js +12 -12
- package/dist/collection/components/ez-upload/ez-upload.js +14 -14
- package/dist/collection/components/ez-view-stack/ez-view-stack.js +4 -4
- package/dist/custom-elements/index.js +344 -283
- package/dist/esm/ez-actions-button.entry.js +12 -8
- package/dist/esm/ez-button.entry.js +5 -5
- package/dist/esm/ez-calendar.entry.js +10 -13
- package/dist/esm/ez-check.entry.js +5 -8
- package/dist/esm/ez-chip.entry.js +4 -4
- package/dist/esm/ez-collapsible-box.entry.js +14 -14
- package/dist/esm/ez-combo-box.entry.js +11 -11
- package/dist/esm/ez-date-input.entry.js +5 -5
- package/dist/esm/ez-date-time-input.entry.js +7 -7
- package/dist/esm/ez-dialog.entry.js +4 -7
- package/dist/esm/ez-filter-input.entry.js +6 -6
- package/dist/esm/ez-form.entry.js +4 -7
- package/dist/esm/ez-grid.entry.js +93 -19
- package/dist/esm/ez-icon.entry.js +3 -3
- package/dist/esm/ez-list.entry.js +71 -71
- package/dist/esm/ez-loading-bar.entry.js +8 -4
- package/dist/esm/ez-modal-container.entry.js +2 -2
- package/dist/esm/ez-modal.entry.js +6 -6
- package/dist/esm/ez-number-input.entry.js +5 -5
- package/dist/esm/ez-popover.entry.js +8 -10
- package/dist/esm/ez-popup.entry.js +4 -5
- package/dist/esm/ez-radio-button.entry.js +3 -3
- package/dist/esm/ez-scroller.entry.js +2 -7
- package/dist/esm/ez-search.entry.js +13 -14
- package/dist/esm/ez-text-area.entry.js +7 -7
- package/dist/esm/ez-text-edit.entry.js +1 -1
- package/dist/esm/ez-text-input.entry.js +7 -7
- package/dist/esm/ez-time-input.entry.js +6 -6
- package/dist/esm/ez-toast.entry.js +5 -5
- package/dist/esm/ez-upload.entry.js +5 -5
- package/dist/esm/ez-view-stack.entry.js +2 -2
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-1214c5ce.entry.js +1 -0
- package/dist/ezui/{p-77b7b623.entry.js → p-19a38745.entry.js} +1 -1
- package/dist/ezui/p-2af9fe67.entry.js +1 -0
- package/dist/ezui/p-642c530f.entry.js +1 -0
- package/dist/ezui/p-96265e26.entry.js +1 -0
- package/dist/ezui/p-b47eb5d4.entry.js +1 -0
- package/dist/ezui/{p-855f99f8.entry.js → p-ccbe8272.entry.js} +1 -1
- package/dist/ezui/p-e60e7308.entry.js +1 -0
- package/dist/ezui/p-ede1328a.entry.js +1 -0
- package/dist/ezui/p-f6111077.entry.js +1 -0
- package/dist/types/components/ez-actions-button/ez-actions-button.d.ts +15 -14
- package/dist/types/components/ez-button/ez-button.d.ts +10 -10
- package/dist/types/components/ez-calendar/ez-calendar.d.ts +11 -14
- package/dist/types/components/ez-card-item/ez-card-item.d.ts +7 -0
- package/dist/types/components/ez-check/ez-check.d.ts +11 -13
- package/dist/types/components/ez-chip/ez-chip.d.ts +15 -14
- package/dist/types/components/ez-collapsible-box/ez-collapsible-box.d.ts +25 -25
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +21 -20
- package/dist/types/components/ez-date-input/ez-date-input.d.ts +16 -17
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +18 -19
- package/dist/types/components/ez-dialog/ez-dialog.d.ts +13 -16
- package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +12 -17
- package/dist/types/components/ez-form/ez-form.d.ts +7 -5
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +10 -2
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +4 -0
- package/dist/types/components/ez-grid/ez-grid.d.ts +38 -39
- package/dist/types/components/ez-icon/ez-icon.d.ts +4 -4
- package/dist/types/components/ez-list/ez-list.d.ts +29 -32
- package/dist/types/components/ez-loading-bar/ez-loading-bar.d.ts +6 -0
- package/dist/types/components/ez-modal/ez-modal.d.ts +15 -15
- package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +10 -10
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +18 -24
- package/dist/types/components/ez-popover/ez-popover.d.ts +13 -16
- package/dist/types/components/ez-popup/ez-popup.d.ts +12 -13
- package/dist/types/components/ez-radio-button/ez-radio-button.d.ts +8 -8
- package/dist/types/components/ez-scroller/ez-scroller.d.ts +3 -4
- package/dist/types/components/ez-search/ez-search.d.ts +27 -31
- package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +4 -7
- package/dist/types/components/ez-text-area/ez-text-area.d.ts +12 -16
- package/dist/types/components/ez-text-edit/ez-text-edit.d.ts +5 -5
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +14 -19
- package/dist/types/components/ez-time-input/ez-time-input.d.ts +16 -17
- package/dist/types/components/ez-toast/ez-toast.d.ts +7 -7
- package/dist/types/components/ez-upload/ez-upload.d.ts +11 -12
- package/dist/types/components/ez-view-stack/ez-view-stack.d.ts +2 -2
- package/dist/types/components.d.ts +514 -529
- package/package.json +2 -2
- package/dist/ezui/p-0fb5f4be.entry.js +0 -1
- package/dist/ezui/p-1ba371a3.entry.js +0 -1
- package/dist/ezui/p-42c6493e.entry.js +0 -1
- package/dist/ezui/p-6700360e.entry.js +0 -1
- package/dist/ezui/p-8c2105a5.entry.js +0 -1
- package/dist/ezui/p-cba61296.entry.js +0 -1
- package/dist/ezui/p-ed2135a5.entry.js +0 -1
- package/dist/ezui/p-f6afdc4d.entry.js +0 -1
package/README.md
CHANGED
|
@@ -71,3 +71,4 @@ o build do ezui, link do react-output e ezui, build do react-output e a disponib
|
|
|
71
71
|
- [Olá EZUi](https://git.sankhya.com.br/sankhyalabs/ez-ui/-/wikis/Ol%C3%A1-EzUI)
|
|
72
72
|
- [Diretrizes de codificação](https://git.sankhya.com.br/sankhyalabs/ez-ui/-/wikis/Diretrizes-de-codifica%C3%A7%C3%A3o)
|
|
73
73
|
- [Diretrizes de componentização](https://git.sankhya.com.br/sankhyalabs/ez-ui/-/wikis/Diretrizes-de-componentiza%C3%A7%C3%A3o)
|
|
74
|
+
- [Diretrizes de documentação](https://git.sankhya.com.br/sankhyalabs/ez-ui/-/wikis/Diretrizes-de-documenta%C3%A7%C3%A3o)
|
|
@@ -16,23 +16,27 @@ let EzActionsButton = class {
|
|
|
16
16
|
index.registerInstance(this, hostRef);
|
|
17
17
|
this.ezAction = index.createEvent(this, "ezAction", 7);
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Se false o usuário não pode interagir com o componente.
|
|
20
20
|
*/
|
|
21
21
|
this.enabled = true;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Determina o tamanho do ez-action-button.
|
|
24
|
+
*/
|
|
25
|
+
this.size = "medium";
|
|
26
|
+
/**
|
|
27
|
+
* Se true o label será apresentado.
|
|
24
28
|
*/
|
|
25
29
|
this.showLabel = false;
|
|
26
30
|
/**
|
|
27
|
-
*
|
|
31
|
+
* Se true o check será apresentado para os itens.
|
|
28
32
|
*/
|
|
29
33
|
this.checkOption = false;
|
|
30
34
|
/**
|
|
31
|
-
*
|
|
35
|
+
* Se true o background será transparent.
|
|
32
36
|
*/
|
|
33
37
|
this.isTransparent = false;
|
|
34
38
|
/**
|
|
35
|
-
*
|
|
39
|
+
* Se true a seta de ordenação será apresentada.
|
|
36
40
|
*/
|
|
37
41
|
this.arrowActive = false;
|
|
38
42
|
this.innerClickCheck = (floatingContainer, node) => {
|
|
@@ -52,7 +56,7 @@ let EzActionsButton = class {
|
|
|
52
56
|
};
|
|
53
57
|
}
|
|
54
58
|
/**
|
|
55
|
-
* Oculta a lista de ações
|
|
59
|
+
* Oculta a lista de ações.
|
|
56
60
|
*/
|
|
57
61
|
async hideActions() {
|
|
58
62
|
if (this._floatingID != undefined) {
|
|
@@ -61,7 +65,7 @@ let EzActionsButton = class {
|
|
|
61
65
|
this._floatingID = undefined;
|
|
62
66
|
}
|
|
63
67
|
/**
|
|
64
|
-
* Verifica se a lista de ações está
|
|
68
|
+
* Verifica se a lista de ações está aberta.
|
|
65
69
|
*/
|
|
66
70
|
async isOpened() {
|
|
67
71
|
return this._floatingID != undefined;
|
|
@@ -144,7 +148,7 @@ let EzActionsButton = class {
|
|
|
144
148
|
render() {
|
|
145
149
|
var _a;
|
|
146
150
|
return (index.h(index.Host, null, index.h("ez-button", { ref: elem => this._button = elem, class: (this.isTransparent ? "ez-actions-button__btn-transparent" : "") +
|
|
147
|
-
(this.showLabel ? " ez-actions-button__btn-label" : ""), label: this.showLabel && ((_a = this._selectedAction) === null || _a === void 0 ? void 0 : _a.label), enabled: this.enabled, mode: this.showLabel ?
|
|
151
|
+
(this.showLabel ? " ez-actions-button__btn-label" : ""), label: this.showLabel && ((_a = this._selectedAction) === null || _a === void 0 ? void 0 : _a.label), enabled: this.enabled, mode: this.showLabel ? undefined : "icon", iconName: this.showLabel ? "" : this.displayIcon || "dots-vertical", size: this.size, onClick: () => this.handlerButtonClick() }, this.showLabel &&
|
|
148
152
|
index.h("ez-icon", { class: "ez-actions-button__icon-right", slot: "rightIcon", iconName: this.displayIcon || "dots-vertical" })), index.h("section", { class: "ez-actions-button__list-container", ref: elem => this._listContainer = elem }, this.arrowActive &&
|
|
149
153
|
index.h("div", { class: "ez-actions-button__arrow" +
|
|
150
154
|
(this.isTransparent ? " ez-actions-button__arrow--upped" : "") }), index.h("div", { ref: elem => this._actionsList = elem, class: "ez-actions-button__actions-list" +
|
|
@@ -11,22 +11,22 @@ let EzButton = class {
|
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Se false o usuário não pode interagir com o botão.
|
|
15
15
|
*/
|
|
16
16
|
this.enabled = true;
|
|
17
17
|
/**
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
* Define o modo de uso do botão.
|
|
19
|
+
*/
|
|
20
20
|
this.mode = "regular";
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Aplica o foco no botão.
|
|
24
24
|
*/
|
|
25
25
|
async setFocus() {
|
|
26
26
|
this._button.focus();
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
|
-
* Remove o foco
|
|
29
|
+
* Remove o foco do botão.
|
|
30
30
|
*/
|
|
31
31
|
async setBlur() {
|
|
32
32
|
this._button.blur();
|
|
@@ -18,28 +18,25 @@ let EzCalendar = class {
|
|
|
18
18
|
this._hoursLabel = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23"];
|
|
19
19
|
this._minutosLabel = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59"];
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Define o valor do calendário.
|
|
22
22
|
*/
|
|
23
23
|
this.value = new Date();
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
* quando o método show() for acionado.
|
|
25
|
+
* Define se a exibição do ez-calendar será feita pelos métodos `show()` e `hide()`.
|
|
27
26
|
*/
|
|
28
27
|
this.floating = false;
|
|
29
28
|
/**
|
|
30
|
-
*
|
|
29
|
+
* Se true a data considera horas e minutos.
|
|
31
30
|
*/
|
|
32
31
|
this.time = false;
|
|
33
32
|
/**
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
* Se true a data considera segundos. Deve ser usado em conjunto com a propriedade `time`.
|
|
34
|
+
*/
|
|
36
35
|
this.showSeconds = false;
|
|
37
36
|
}
|
|
38
37
|
/**
|
|
39
|
-
*
|
|
40
|
-
* É possível determinar
|
|
41
|
-
* top, left, bottom e right. Esses parâmetros devem ser informados como
|
|
42
|
-
* strings no formato css.
|
|
38
|
+
* Exibe o ez-calendar em uma posição determinada.
|
|
39
|
+
* É possível determinar o posicionamento através dos parâmetros, no formato css.
|
|
43
40
|
*/
|
|
44
41
|
async show(top, left, bottom, right) {
|
|
45
42
|
if (this.floating) {
|
|
@@ -51,8 +48,8 @@ let EzCalendar = class {
|
|
|
51
48
|
}
|
|
52
49
|
}
|
|
53
50
|
/**
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
* Ajusta o posicionamento do ez-calendar conforme a disponibilidade de espaço.
|
|
52
|
+
*/
|
|
56
53
|
async fitVertical(topOffset, bottomOffset) {
|
|
57
54
|
const neededHeight = this._container.getBoundingClientRect().bottom + this._calendarHeight;
|
|
58
55
|
const availableBottom = (window.innerHeight || document.documentElement.clientHeight) > neededHeight;
|
|
@@ -64,7 +61,7 @@ let EzCalendar = class {
|
|
|
64
61
|
}
|
|
65
62
|
}
|
|
66
63
|
/**
|
|
67
|
-
*
|
|
64
|
+
* Oculta o ez-calendar.
|
|
68
65
|
*/
|
|
69
66
|
async hide() {
|
|
70
67
|
if (this._floatingID !== undefined) {
|
|
@@ -13,14 +13,11 @@ let EzCheck = class {
|
|
|
13
13
|
index.registerInstance(this, hostRef);
|
|
14
14
|
this.ezChange = index.createEvent(this, "ezChange", 7);
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Se false o usuário não pode interagir com o campo.
|
|
17
17
|
*/
|
|
18
18
|
this.enabled = true;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
* Se esta propriedade for omitida, o componete assume o formato "regular".
|
|
22
|
-
* No modo "regular" a visualização é a tradicional de uma caixinha marcada/desmarcada.
|
|
23
|
-
* No modo "switch" o campo tem uma interface em formato de um pino liga/desliga.
|
|
20
|
+
* Define o modo de visualização do ez-check.
|
|
24
21
|
*/
|
|
25
22
|
this.mode = CheckMode.CheckMode.REGULAR;
|
|
26
23
|
}
|
|
@@ -28,13 +25,13 @@ let EzCheck = class {
|
|
|
28
25
|
// Public methods
|
|
29
26
|
//---------------------------------------------
|
|
30
27
|
/**
|
|
31
|
-
*
|
|
28
|
+
* Obtém o modo escolhido.
|
|
32
29
|
*/
|
|
33
30
|
async getMode() {
|
|
34
|
-
return this.mode;
|
|
31
|
+
return CheckMode.CheckMode[this.mode];
|
|
35
32
|
}
|
|
36
33
|
/**
|
|
37
|
-
*
|
|
34
|
+
* Aplica o foco no campo.
|
|
38
35
|
*/
|
|
39
36
|
async setFocus() {
|
|
40
37
|
this._inputElem.focus();
|
|
@@ -14,11 +14,11 @@ let EzChip = class {
|
|
|
14
14
|
this.removeChip = index.createEvent(this, "removeChip", 7);
|
|
15
15
|
this.actionClick = index.createEvent(this, "actionClick", 7);
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Se false o usuário não pode interagir com o ez-chip.
|
|
18
18
|
*/
|
|
19
19
|
this.enabled = true;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Define o valor do ez-chip.
|
|
22
22
|
*/
|
|
23
23
|
this.value = false;
|
|
24
24
|
}
|
|
@@ -26,13 +26,13 @@ let EzChip = class {
|
|
|
26
26
|
// Public methods
|
|
27
27
|
//---------------------------------------------
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Aplica o foco no ez-chip.
|
|
30
30
|
*/
|
|
31
31
|
async setFocus() {
|
|
32
32
|
this._labelElem.focus();
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
|
-
* Remove o foco
|
|
35
|
+
* Remove o foco do ez-chip.
|
|
36
36
|
*/
|
|
37
37
|
async setBlur() {
|
|
38
38
|
this._labelElem.blur();
|
|
@@ -19,45 +19,45 @@ let EzCollapsibleBox = class {
|
|
|
19
19
|
this.ezEditLabelMode = index.createEvent(this, "ezEditLabelMode", 7);
|
|
20
20
|
this._activeEditText = false;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Define o valor do componente.
|
|
23
23
|
*/
|
|
24
24
|
this.value = false;
|
|
25
25
|
/**
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
* Define o tamanho do texto e do ícone.
|
|
27
|
+
*/
|
|
28
28
|
this.headerSize = "small";
|
|
29
29
|
/**
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
* Define o posicionamento do ícone.
|
|
31
|
+
*/
|
|
32
32
|
this.iconPlacement = "left";
|
|
33
33
|
/**
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
* Se true o título irá ocupar toda a largura do componente.
|
|
35
|
+
*/
|
|
36
36
|
this.stretchTitle = false;
|
|
37
37
|
/**
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
* Se true mostra o ícone para remoção do componente.
|
|
39
|
+
*/
|
|
40
40
|
this.removable = false;
|
|
41
41
|
/**
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
* Se true mostra o ícone para edição do componente.
|
|
43
|
+
*/
|
|
44
44
|
this.editable = false;
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Oculta/mostra o conteúdo do ez-collapsible-box.
|
|
48
48
|
*/
|
|
49
49
|
async showHide() {
|
|
50
50
|
this.value = !this.value;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
* Aplica
|
|
53
|
+
* Aplica o foco no campo de edição de título.
|
|
54
54
|
*/
|
|
55
55
|
async applyFocusTextEdit() {
|
|
56
56
|
var _a;
|
|
57
57
|
(_a = this._refTextEdit) === null || _a === void 0 ? void 0 : _a.applyFocusSelect();
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
60
|
+
* Cancela a edição de título.
|
|
61
61
|
*/
|
|
62
62
|
async cancelEdition() {
|
|
63
63
|
this._activeEditText = false;
|
|
@@ -24,31 +24,31 @@ let EzComboBox = class {
|
|
|
24
24
|
this._startLoading = false;
|
|
25
25
|
this._showLoading = true;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Se false o usuário não pode interagir com o campo.
|
|
28
28
|
*/
|
|
29
29
|
this.enabled = true;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Se true a opção selecionada exibe o `value` junto com `label`.
|
|
32
32
|
*/
|
|
33
33
|
this.showSelectedValue = false;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Se true cada opção na lista exibe o `value` junto com `label`.
|
|
36
36
|
*/
|
|
37
37
|
this.showOptionValue = false;
|
|
38
38
|
/**
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
* Se true desabilita a digitação dentro do componente.
|
|
40
|
+
*/
|
|
41
41
|
this.suppressSearch = false;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Se true remove a opção vazia da lista.
|
|
44
44
|
*/
|
|
45
45
|
this.suppressEmptyOption = false;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* Se false deixa de exibir a mensagem de erro dentro do campo.
|
|
48
48
|
*/
|
|
49
49
|
this.canShowError = true;
|
|
50
50
|
/**
|
|
51
|
-
* Define o
|
|
51
|
+
* Define o tamanho do campo.
|
|
52
52
|
*/
|
|
53
53
|
this.mode = "regular";
|
|
54
54
|
}
|
|
@@ -82,19 +82,19 @@ let EzComboBox = class {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
85
|
+
* Aplica o foco no campo.
|
|
86
86
|
*/
|
|
87
87
|
async setFocus() {
|
|
88
88
|
this._textInput.setFocus();
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
|
-
* Remove o foco
|
|
91
|
+
* Remove o foco do campo.
|
|
92
92
|
*/
|
|
93
93
|
async setBlur() {
|
|
94
94
|
this._textInput.setBlur();
|
|
95
95
|
}
|
|
96
96
|
/**
|
|
97
|
-
* Retorna
|
|
97
|
+
* Retorna se o conteúdo é inválido.
|
|
98
98
|
*/
|
|
99
99
|
async isInvalid() {
|
|
100
100
|
return typeof this.errorMessage === "string" && this.errorMessage.trim() !== "";
|
|
@@ -16,11 +16,11 @@ let EzDateInput = class {
|
|
|
16
16
|
this.ezCancelWaitingChange = index.createEvent(this, "ezCancelWaitingChange", 7);
|
|
17
17
|
this._focused = false;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Se false o usuário não pode interagir com o campo.
|
|
20
20
|
*/
|
|
21
21
|
this.enabled = true;
|
|
22
22
|
/**
|
|
23
|
-
* Define o
|
|
23
|
+
* Define o tamanho do campo.
|
|
24
24
|
*/
|
|
25
25
|
this.mode = "regular";
|
|
26
26
|
}
|
|
@@ -56,19 +56,19 @@ let EzDateInput = class {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Aplica o foco no campo.
|
|
60
60
|
*/
|
|
61
61
|
async setFocus() {
|
|
62
62
|
this._textInput.setFocus();
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
|
-
* Remove o foco
|
|
65
|
+
* Remove o foco do campo.
|
|
66
66
|
*/
|
|
67
67
|
async setBlur() {
|
|
68
68
|
this._textInput.setBlur();
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
|
-
* Retorna
|
|
71
|
+
* Retorna se o conteúdo é inválido.
|
|
72
72
|
*/
|
|
73
73
|
async isInvalid() {
|
|
74
74
|
return typeof this.errorMessage === "string" && this.errorMessage.trim() !== "";
|
|
@@ -16,15 +16,15 @@ let EzDateTimeInput = class {
|
|
|
16
16
|
this.ezCancelWaitingChange = index.createEvent(this, "ezCancelWaitingChange", 7);
|
|
17
17
|
this._focused = false;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Se false o usuário não pode interagir com o campo.
|
|
20
20
|
*/
|
|
21
21
|
this.enabled = true;
|
|
22
22
|
/**
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
* Se true considera segundos.
|
|
24
|
+
*/
|
|
25
25
|
this.showSeconds = false;
|
|
26
26
|
/**
|
|
27
|
-
* Define o
|
|
27
|
+
* Define o tamanho do campo.
|
|
28
28
|
*/
|
|
29
29
|
this.mode = "regular";
|
|
30
30
|
}
|
|
@@ -60,19 +60,19 @@ let EzDateTimeInput = class {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* Aplica o foco no campo.
|
|
64
64
|
*/
|
|
65
65
|
async setFocus() {
|
|
66
66
|
this._textInput.setFocus();
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
69
|
-
* Remove o foco
|
|
69
|
+
* Remove o foco do campo.
|
|
70
70
|
*/
|
|
71
71
|
async setBlur() {
|
|
72
72
|
this._textInput.setBlur();
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
|
-
* Retorna
|
|
75
|
+
* Retorna se o conteúdo é inválido.
|
|
76
76
|
*/
|
|
77
77
|
async isInvalid() {
|
|
78
78
|
return typeof this.errorMessage === "string" && this.errorMessage.trim() !== "";
|
|
@@ -29,19 +29,16 @@ let EzDialog = class {
|
|
|
29
29
|
this.labelCancel = 'Não';
|
|
30
30
|
this.btnConfirmDanger = false;
|
|
31
31
|
/**
|
|
32
|
-
* Define se o
|
|
32
|
+
* Define se o ez-dialog será utilizado no modo de confirmação.
|
|
33
33
|
*/
|
|
34
34
|
this.confirm = false;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Define se o ez-dialog está aberto.
|
|
37
37
|
*/
|
|
38
38
|
this.opened = false;
|
|
39
39
|
this._messageQueue = [];
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
* Lida com o clique nos botões de dentro do componente.
|
|
43
|
-
*/
|
|
44
|
-
async handleButtonClick(selectedOption) {
|
|
41
|
+
handleButtonClick(selectedOption) {
|
|
45
42
|
this.opened = this._messageQueue.length > 0;
|
|
46
43
|
if (this._currentMessage.callBack) {
|
|
47
44
|
this._currentMessage.callBack(selectedOption);
|
|
@@ -53,7 +50,7 @@ let EzDialog = class {
|
|
|
53
50
|
index.forceUpdate(this);
|
|
54
51
|
}
|
|
55
52
|
/**
|
|
56
|
-
*
|
|
53
|
+
* Exibe o ez-dialog.
|
|
57
54
|
*/
|
|
58
55
|
async show(title, message, dialogType, confirm, icon, labelCancel, labelConfirm, btnConfirmDanger) {
|
|
59
56
|
this.opened = true;
|
|
@@ -13,11 +13,11 @@ let EzFilterInput = class {
|
|
|
13
13
|
index.registerInstance(this, hostRef);
|
|
14
14
|
this.ezChange = index.createEvent(this, "ezChange", 7);
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Se false o usuário não pode interagir com o campo.
|
|
17
17
|
*/
|
|
18
18
|
this.enabled = true;
|
|
19
19
|
/**
|
|
20
|
-
* Define o
|
|
20
|
+
* Define o tamanho do campo.
|
|
21
21
|
*/
|
|
22
22
|
this.mode = "regular";
|
|
23
23
|
}
|
|
@@ -38,19 +38,19 @@ let EzFilterInput = class {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Aplica o foco no campo.
|
|
42
42
|
*/
|
|
43
43
|
async setFocus() {
|
|
44
44
|
this._textInput.setFocus();
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
|
-
* Remove o foco
|
|
47
|
+
* Remove o foco do campo.
|
|
48
48
|
*/
|
|
49
49
|
async setBlur() {
|
|
50
50
|
this._textInput.setBlur();
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
* Retorna
|
|
53
|
+
* Retorna se o conteúdo é inválido.
|
|
54
54
|
*/
|
|
55
55
|
async isInvalid() {
|
|
56
56
|
return typeof this.errorMessage === "string" && this.errorMessage.trim() !== "";
|
|
@@ -67,7 +67,7 @@ let EzFilterInput = class {
|
|
|
67
67
|
}
|
|
68
68
|
render() {
|
|
69
69
|
let elementId = core.ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
70
|
-
return (index.h("ez-text-input", { "data-element-id": core.ElementIDUtils.getInternalIDInfo(elementId, "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,
|
|
70
|
+
return (index.h("ez-text-input", { "data-element-id": core.ElementIDUtils.getInternalIDInfo(elementId, "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 }, index.h("ez-icon", { slot: "leftIcon", iconName: "search" })));
|
|
71
71
|
}
|
|
72
72
|
get _elem() { return index.getElement(this); }
|
|
73
73
|
static get watchers() { return {
|
|
@@ -856,12 +856,9 @@ let EzForm = class {
|
|
|
856
856
|
}
|
|
857
857
|
};
|
|
858
858
|
}
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
cancel() {
|
|
863
|
-
return Promise.resolve();
|
|
864
|
-
}
|
|
859
|
+
/**
|
|
860
|
+
* Realiza validação no conteúdo de todos os campos.
|
|
861
|
+
*/
|
|
865
862
|
validate() {
|
|
866
863
|
return new Promise((accept, reject) => {
|
|
867
864
|
var _a;
|
|
@@ -948,7 +945,7 @@ let EzForm = class {
|
|
|
948
945
|
const idTabSelector = `${this._dataElementIdEzForm}_internal_tabSelector`;
|
|
949
946
|
result.push(index.h("ez-tabselector", { tabs: this.buildIdTabSelector(tabs), onEzChange: (evt) => this._store.dispatch(changeTab(evt.detail)), selectedTab: currentSheet.name, "data-element-id": idTabSelector }));
|
|
950
947
|
}
|
|
951
|
-
const idFormSheet = `${this._dataElementIdEzForm}_${core.StringUtils.toCamelCase(currentSheet.label)}`;
|
|
948
|
+
const idFormSheet = `${this._dataElementIdEzForm}_${core.StringUtils.replaceAccentuatedChars(core.StringUtils.toCamelCase(currentSheet.label), false)}`;
|
|
952
949
|
result.push(index.h(FormSheet, { store: this._store, source: currentSheet, dataElementId: idFormSheet }));
|
|
953
950
|
return result;
|
|
954
951
|
}
|