@sankhyalabs/ezui 2.3.1 → 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 +3 -6
- package/dist/cjs/ez-grid.cjs.entry.js +16 -17
- 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 +7 -42
- package/dist/collection/components/ez-grid/ez-grid.js +41 -42
- 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 +265 -279
- 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 +3 -6
- package/dist/esm/ez-grid.entry.js +16 -17
- 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-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 +2 -2
- package/dist/types/components/ez-grid/ez-grid.d.ts +37 -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-89b2a151.entry.js +0 -1
- package/dist/ezui/p-8c2105a5.entry.js +0 -1
- package/dist/ezui/p-ed2135a5.entry.js +0 -1
- package/dist/ezui/p-f6afdc4d.entry.js +0 -1
|
@@ -12,23 +12,27 @@ let EzActionsButton = class {
|
|
|
12
12
|
registerInstance(this, hostRef);
|
|
13
13
|
this.ezAction = createEvent(this, "ezAction", 7);
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Se false o usuário não pode interagir com o componente.
|
|
16
16
|
*/
|
|
17
17
|
this.enabled = true;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Determina o tamanho do ez-action-button.
|
|
20
|
+
*/
|
|
21
|
+
this.size = "medium";
|
|
22
|
+
/**
|
|
23
|
+
* Se true o label será apresentado.
|
|
20
24
|
*/
|
|
21
25
|
this.showLabel = false;
|
|
22
26
|
/**
|
|
23
|
-
*
|
|
27
|
+
* Se true o check será apresentado para os itens.
|
|
24
28
|
*/
|
|
25
29
|
this.checkOption = false;
|
|
26
30
|
/**
|
|
27
|
-
*
|
|
31
|
+
* Se true o background será transparent.
|
|
28
32
|
*/
|
|
29
33
|
this.isTransparent = false;
|
|
30
34
|
/**
|
|
31
|
-
*
|
|
35
|
+
* Se true a seta de ordenação será apresentada.
|
|
32
36
|
*/
|
|
33
37
|
this.arrowActive = false;
|
|
34
38
|
this.innerClickCheck = (floatingContainer, node) => {
|
|
@@ -48,7 +52,7 @@ let EzActionsButton = class {
|
|
|
48
52
|
};
|
|
49
53
|
}
|
|
50
54
|
/**
|
|
51
|
-
* Oculta a lista de ações
|
|
55
|
+
* Oculta a lista de ações.
|
|
52
56
|
*/
|
|
53
57
|
async hideActions() {
|
|
54
58
|
if (this._floatingID != undefined) {
|
|
@@ -57,7 +61,7 @@ let EzActionsButton = class {
|
|
|
57
61
|
this._floatingID = undefined;
|
|
58
62
|
}
|
|
59
63
|
/**
|
|
60
|
-
* Verifica se a lista de ações está
|
|
64
|
+
* Verifica se a lista de ações está aberta.
|
|
61
65
|
*/
|
|
62
66
|
async isOpened() {
|
|
63
67
|
return this._floatingID != undefined;
|
|
@@ -140,7 +144,7 @@ let EzActionsButton = class {
|
|
|
140
144
|
render() {
|
|
141
145
|
var _a;
|
|
142
146
|
return (h(Host, null, h("ez-button", { ref: elem => this._button = elem, class: (this.isTransparent ? "ez-actions-button__btn-transparent" : "") +
|
|
143
|
-
(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 ?
|
|
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 ? undefined : "icon", iconName: this.showLabel ? "" : this.displayIcon || "dots-vertical", size: this.size, onClick: () => this.handlerButtonClick() }, this.showLabel &&
|
|
144
148
|
h("ez-icon", { class: "ez-actions-button__icon-right", slot: "rightIcon", iconName: this.displayIcon || "dots-vertical" })), h("section", { class: "ez-actions-button__list-container", ref: elem => this._listContainer = elem }, this.arrowActive &&
|
|
145
149
|
h("div", { class: "ez-actions-button__arrow" +
|
|
146
150
|
(this.isTransparent ? " ez-actions-button__arrow--upped" : "") }), h("div", { ref: elem => this._actionsList = elem, class: "ez-actions-button__actions-list" +
|
|
@@ -7,22 +7,22 @@ let EzButton = class {
|
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Se false o usuário não pode interagir com o botão.
|
|
11
11
|
*/
|
|
12
12
|
this.enabled = true;
|
|
13
13
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
* Define o modo de uso do botão.
|
|
15
|
+
*/
|
|
16
16
|
this.mode = "regular";
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Aplica o foco no botão.
|
|
20
20
|
*/
|
|
21
21
|
async setFocus() {
|
|
22
22
|
this._button.focus();
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
|
-
* Remove o foco
|
|
25
|
+
* Remove o foco do botão.
|
|
26
26
|
*/
|
|
27
27
|
async setBlur() {
|
|
28
28
|
this._button.blur();
|
|
@@ -14,28 +14,25 @@ let EzCalendar = class {
|
|
|
14
14
|
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"];
|
|
15
15
|
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"];
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Define o valor do calendário.
|
|
18
18
|
*/
|
|
19
19
|
this.value = new Date();
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
|
-
* quando o método show() for acionado.
|
|
21
|
+
* Define se a exibição do ez-calendar será feita pelos métodos `show()` e `hide()`.
|
|
23
22
|
*/
|
|
24
23
|
this.floating = false;
|
|
25
24
|
/**
|
|
26
|
-
*
|
|
25
|
+
* Se true a data considera horas e minutos.
|
|
27
26
|
*/
|
|
28
27
|
this.time = false;
|
|
29
28
|
/**
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
* Se true a data considera segundos. Deve ser usado em conjunto com a propriedade `time`.
|
|
30
|
+
*/
|
|
32
31
|
this.showSeconds = false;
|
|
33
32
|
}
|
|
34
33
|
/**
|
|
35
|
-
*
|
|
36
|
-
* É possível determinar
|
|
37
|
-
* top, left, bottom e right. Esses parâmetros devem ser informados como
|
|
38
|
-
* strings no formato css.
|
|
34
|
+
* Exibe o ez-calendar em uma posição determinada.
|
|
35
|
+
* É possível determinar o posicionamento através dos parâmetros, no formato css.
|
|
39
36
|
*/
|
|
40
37
|
async show(top, left, bottom, right) {
|
|
41
38
|
if (this.floating) {
|
|
@@ -47,8 +44,8 @@ let EzCalendar = class {
|
|
|
47
44
|
}
|
|
48
45
|
}
|
|
49
46
|
/**
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
* Ajusta o posicionamento do ez-calendar conforme a disponibilidade de espaço.
|
|
48
|
+
*/
|
|
52
49
|
async fitVertical(topOffset, bottomOffset) {
|
|
53
50
|
const neededHeight = this._container.getBoundingClientRect().bottom + this._calendarHeight;
|
|
54
51
|
const availableBottom = (window.innerHeight || document.documentElement.clientHeight) > neededHeight;
|
|
@@ -60,7 +57,7 @@ let EzCalendar = class {
|
|
|
60
57
|
}
|
|
61
58
|
}
|
|
62
59
|
/**
|
|
63
|
-
*
|
|
60
|
+
* Oculta o ez-calendar.
|
|
64
61
|
*/
|
|
65
62
|
async hide() {
|
|
66
63
|
if (this._floatingID !== undefined) {
|
|
@@ -9,14 +9,11 @@ let EzCheck = class {
|
|
|
9
9
|
registerInstance(this, hostRef);
|
|
10
10
|
this.ezChange = createEvent(this, "ezChange", 7);
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Se false o usuário não pode interagir com o campo.
|
|
13
13
|
*/
|
|
14
14
|
this.enabled = true;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
* Se esta propriedade for omitida, o componete assume o formato "regular".
|
|
18
|
-
* No modo "regular" a visualização é a tradicional de uma caixinha marcada/desmarcada.
|
|
19
|
-
* No modo "switch" o campo tem uma interface em formato de um pino liga/desliga.
|
|
16
|
+
* Define o modo de visualização do ez-check.
|
|
20
17
|
*/
|
|
21
18
|
this.mode = CheckMode.REGULAR;
|
|
22
19
|
}
|
|
@@ -24,13 +21,13 @@ let EzCheck = class {
|
|
|
24
21
|
// Public methods
|
|
25
22
|
//---------------------------------------------
|
|
26
23
|
/**
|
|
27
|
-
*
|
|
24
|
+
* Obtém o modo escolhido.
|
|
28
25
|
*/
|
|
29
26
|
async getMode() {
|
|
30
|
-
return this.mode;
|
|
27
|
+
return CheckMode[this.mode];
|
|
31
28
|
}
|
|
32
29
|
/**
|
|
33
|
-
*
|
|
30
|
+
* Aplica o foco no campo.
|
|
34
31
|
*/
|
|
35
32
|
async setFocus() {
|
|
36
33
|
this._inputElem.focus();
|
|
@@ -10,11 +10,11 @@ let EzChip = class {
|
|
|
10
10
|
this.removeChip = createEvent(this, "removeChip", 7);
|
|
11
11
|
this.actionClick = createEvent(this, "actionClick", 7);
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Se false o usuário não pode interagir com o ez-chip.
|
|
14
14
|
*/
|
|
15
15
|
this.enabled = true;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Define o valor do ez-chip.
|
|
18
18
|
*/
|
|
19
19
|
this.value = false;
|
|
20
20
|
}
|
|
@@ -22,13 +22,13 @@ let EzChip = class {
|
|
|
22
22
|
// Public methods
|
|
23
23
|
//---------------------------------------------
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Aplica o foco no ez-chip.
|
|
26
26
|
*/
|
|
27
27
|
async setFocus() {
|
|
28
28
|
this._labelElem.focus();
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
* Remove o foco
|
|
31
|
+
* Remove o foco do ez-chip.
|
|
32
32
|
*/
|
|
33
33
|
async setBlur() {
|
|
34
34
|
this._labelElem.blur();
|
|
@@ -15,45 +15,45 @@ let EzCollapsibleBox = class {
|
|
|
15
15
|
this.ezEditLabelMode = createEvent(this, "ezEditLabelMode", 7);
|
|
16
16
|
this._activeEditText = false;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Define o valor do componente.
|
|
19
19
|
*/
|
|
20
20
|
this.value = false;
|
|
21
21
|
/**
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
* Define o tamanho do texto e do ícone.
|
|
23
|
+
*/
|
|
24
24
|
this.headerSize = "small";
|
|
25
25
|
/**
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
* Define o posicionamento do ícone.
|
|
27
|
+
*/
|
|
28
28
|
this.iconPlacement = "left";
|
|
29
29
|
/**
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
* Se true o título irá ocupar toda a largura do componente.
|
|
31
|
+
*/
|
|
32
32
|
this.stretchTitle = false;
|
|
33
33
|
/**
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
* Se true mostra o ícone para remoção do componente.
|
|
35
|
+
*/
|
|
36
36
|
this.removable = false;
|
|
37
37
|
/**
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
* Se true mostra o ícone para edição do componente.
|
|
39
|
+
*/
|
|
40
40
|
this.editable = false;
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Oculta/mostra o conteúdo do ez-collapsible-box.
|
|
44
44
|
*/
|
|
45
45
|
async showHide() {
|
|
46
46
|
this.value = !this.value;
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
|
-
* Aplica
|
|
49
|
+
* Aplica o foco no campo de edição de título.
|
|
50
50
|
*/
|
|
51
51
|
async applyFocusTextEdit() {
|
|
52
52
|
var _a;
|
|
53
53
|
(_a = this._refTextEdit) === null || _a === void 0 ? void 0 : _a.applyFocusSelect();
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Cancela a edição de título.
|
|
57
57
|
*/
|
|
58
58
|
async cancelEdition() {
|
|
59
59
|
this._activeEditText = false;
|
|
@@ -20,31 +20,31 @@ let EzComboBox = class {
|
|
|
20
20
|
this._startLoading = false;
|
|
21
21
|
this._showLoading = true;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Se false o usuário não pode interagir com o campo.
|
|
24
24
|
*/
|
|
25
25
|
this.enabled = true;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Se true a opção selecionada exibe o `value` junto com `label`.
|
|
28
28
|
*/
|
|
29
29
|
this.showSelectedValue = false;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Se true cada opção na lista exibe o `value` junto com `label`.
|
|
32
32
|
*/
|
|
33
33
|
this.showOptionValue = false;
|
|
34
34
|
/**
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
* Se true desabilita a digitação dentro do componente.
|
|
36
|
+
*/
|
|
37
37
|
this.suppressSearch = false;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Se true remove a opção vazia da lista.
|
|
40
40
|
*/
|
|
41
41
|
this.suppressEmptyOption = false;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Se false deixa de exibir a mensagem de erro dentro do campo.
|
|
44
44
|
*/
|
|
45
45
|
this.canShowError = true;
|
|
46
46
|
/**
|
|
47
|
-
* Define o
|
|
47
|
+
* Define o tamanho do campo.
|
|
48
48
|
*/
|
|
49
49
|
this.mode = "regular";
|
|
50
50
|
}
|
|
@@ -78,19 +78,19 @@ let EzComboBox = class {
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
|
-
*
|
|
81
|
+
* Aplica o foco no campo.
|
|
82
82
|
*/
|
|
83
83
|
async setFocus() {
|
|
84
84
|
this._textInput.setFocus();
|
|
85
85
|
}
|
|
86
86
|
/**
|
|
87
|
-
* Remove o foco
|
|
87
|
+
* Remove o foco do campo.
|
|
88
88
|
*/
|
|
89
89
|
async setBlur() {
|
|
90
90
|
this._textInput.setBlur();
|
|
91
91
|
}
|
|
92
92
|
/**
|
|
93
|
-
* Retorna
|
|
93
|
+
* Retorna se o conteúdo é inválido.
|
|
94
94
|
*/
|
|
95
95
|
async isInvalid() {
|
|
96
96
|
return typeof this.errorMessage === "string" && this.errorMessage.trim() !== "";
|
|
@@ -12,11 +12,11 @@ let EzDateInput = class {
|
|
|
12
12
|
this.ezCancelWaitingChange = createEvent(this, "ezCancelWaitingChange", 7);
|
|
13
13
|
this._focused = false;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Se false o usuário não pode interagir com o campo.
|
|
16
16
|
*/
|
|
17
17
|
this.enabled = true;
|
|
18
18
|
/**
|
|
19
|
-
* Define o
|
|
19
|
+
* Define o tamanho do campo.
|
|
20
20
|
*/
|
|
21
21
|
this.mode = "regular";
|
|
22
22
|
}
|
|
@@ -52,19 +52,19 @@ let EzDateInput = class {
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Aplica o foco no campo.
|
|
56
56
|
*/
|
|
57
57
|
async setFocus() {
|
|
58
58
|
this._textInput.setFocus();
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
|
-
* Remove o foco
|
|
61
|
+
* Remove o foco do campo.
|
|
62
62
|
*/
|
|
63
63
|
async setBlur() {
|
|
64
64
|
this._textInput.setBlur();
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
|
-
* Retorna
|
|
67
|
+
* Retorna se o conteúdo é inválido.
|
|
68
68
|
*/
|
|
69
69
|
async isInvalid() {
|
|
70
70
|
return typeof this.errorMessage === "string" && this.errorMessage.trim() !== "";
|
|
@@ -12,15 +12,15 @@ let EzDateTimeInput = class {
|
|
|
12
12
|
this.ezCancelWaitingChange = createEvent(this, "ezCancelWaitingChange", 7);
|
|
13
13
|
this._focused = false;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Se false o usuário não pode interagir com o campo.
|
|
16
16
|
*/
|
|
17
17
|
this.enabled = true;
|
|
18
18
|
/**
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
* Se true considera segundos.
|
|
20
|
+
*/
|
|
21
21
|
this.showSeconds = false;
|
|
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 EzDateTimeInput = 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() !== "";
|
|
@@ -25,19 +25,16 @@ let EzDialog = class {
|
|
|
25
25
|
this.labelCancel = 'Não';
|
|
26
26
|
this.btnConfirmDanger = false;
|
|
27
27
|
/**
|
|
28
|
-
* Define se o
|
|
28
|
+
* Define se o ez-dialog será utilizado no modo de confirmação.
|
|
29
29
|
*/
|
|
30
30
|
this.confirm = false;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Define se o ez-dialog está aberto.
|
|
33
33
|
*/
|
|
34
34
|
this.opened = false;
|
|
35
35
|
this._messageQueue = [];
|
|
36
36
|
}
|
|
37
|
-
|
|
38
|
-
* Lida com o clique nos botões de dentro do componente.
|
|
39
|
-
*/
|
|
40
|
-
async handleButtonClick(selectedOption) {
|
|
37
|
+
handleButtonClick(selectedOption) {
|
|
41
38
|
this.opened = this._messageQueue.length > 0;
|
|
42
39
|
if (this._currentMessage.callBack) {
|
|
43
40
|
this._currentMessage.callBack(selectedOption);
|
|
@@ -49,7 +46,7 @@ let EzDialog = class {
|
|
|
49
46
|
forceUpdate(this);
|
|
50
47
|
}
|
|
51
48
|
/**
|
|
52
|
-
*
|
|
49
|
+
* Exibe o ez-dialog.
|
|
53
50
|
*/
|
|
54
51
|
async show(title, message, dialogType, confirm, icon, labelCancel, labelConfirm, btnConfirmDanger) {
|
|
55
52
|
this.opened = true;
|
|
@@ -9,11 +9,11 @@ let EzFilterInput = class {
|
|
|
9
9
|
registerInstance(this, hostRef);
|
|
10
10
|
this.ezChange = createEvent(this, "ezChange", 7);
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Se false o usuário não pode interagir com o campo.
|
|
13
13
|
*/
|
|
14
14
|
this.enabled = true;
|
|
15
15
|
/**
|
|
16
|
-
* Define o
|
|
16
|
+
* Define o tamanho do campo.
|
|
17
17
|
*/
|
|
18
18
|
this.mode = "regular";
|
|
19
19
|
}
|
|
@@ -34,19 +34,19 @@ let EzFilterInput = class {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Aplica o foco no campo.
|
|
38
38
|
*/
|
|
39
39
|
async setFocus() {
|
|
40
40
|
this._textInput.setFocus();
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
|
-
* Remove o foco
|
|
43
|
+
* Remove o foco do campo.
|
|
44
44
|
*/
|
|
45
45
|
async setBlur() {
|
|
46
46
|
this._textInput.setBlur();
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
|
-
* Retorna
|
|
49
|
+
* Retorna se o conteúdo é inválido.
|
|
50
50
|
*/
|
|
51
51
|
async isInvalid() {
|
|
52
52
|
return typeof this.errorMessage === "string" && this.errorMessage.trim() !== "";
|
|
@@ -63,7 +63,7 @@ let EzFilterInput = class {
|
|
|
63
63
|
}
|
|
64
64
|
render() {
|
|
65
65
|
let elementId = ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
66
|
-
return (h("ez-text-input", { "data-element-id": 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,
|
|
66
|
+
return (h("ez-text-input", { "data-element-id": 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 }, h("ez-icon", { slot: "leftIcon", iconName: "search" })));
|
|
67
67
|
}
|
|
68
68
|
get _elem() { return getElement(this); }
|
|
69
69
|
static get watchers() { return {
|
|
@@ -852,12 +852,9 @@ let EzForm = class {
|
|
|
852
852
|
}
|
|
853
853
|
};
|
|
854
854
|
}
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
cancel() {
|
|
859
|
-
return Promise.resolve();
|
|
860
|
-
}
|
|
855
|
+
/**
|
|
856
|
+
* Realiza validação no conteúdo de todos os campos.
|
|
857
|
+
*/
|
|
861
858
|
validate() {
|
|
862
859
|
return new Promise((accept, reject) => {
|
|
863
860
|
var _a;
|
|
@@ -115270,51 +115270,50 @@ let EzGrid = class {
|
|
|
115270
115270
|
this._paginationChangedByKeyboard = true;
|
|
115271
115271
|
}
|
|
115272
115272
|
/**
|
|
115273
|
-
|
|
115274
|
-
|
|
115273
|
+
* Aplica a definição de colunas.
|
|
115274
|
+
*/
|
|
115275
115275
|
async setColumnsDef(cols) {
|
|
115276
115276
|
this._gridController.setColumnsDef(cols);
|
|
115277
115277
|
}
|
|
115278
115278
|
/**
|
|
115279
|
-
|
|
115280
|
-
|
|
115279
|
+
* Adiciona item de menu nas colunas.
|
|
115280
|
+
*/
|
|
115281
115281
|
async addColumnMenuItem(label, name, action) {
|
|
115282
115282
|
this._gridController.addColumnMenuItem({ label, name, action });
|
|
115283
115283
|
}
|
|
115284
115284
|
/**
|
|
115285
|
-
|
|
115286
|
-
|
|
115285
|
+
* Aplica o estado das colunas.
|
|
115286
|
+
*/
|
|
115287
115287
|
async setColumnsState(state) {
|
|
115288
115288
|
this._gridController.setColumnsState(state);
|
|
115289
115289
|
}
|
|
115290
115290
|
/**
|
|
115291
|
-
|
|
115292
|
-
|
|
115293
|
-
*/
|
|
115291
|
+
* Insere os registros no ez-grid.
|
|
115292
|
+
*/
|
|
115294
115293
|
async setData(data) {
|
|
115295
115294
|
this._gridController.setData(data);
|
|
115296
115295
|
}
|
|
115297
115296
|
/**
|
|
115298
|
-
|
|
115299
|
-
|
|
115297
|
+
* Obtém as linhas selecionadas.
|
|
115298
|
+
*/
|
|
115300
115299
|
async getSelection() {
|
|
115301
115300
|
return Promise.resolve(this._gridController.getSelection());
|
|
115302
115301
|
}
|
|
115303
115302
|
/**
|
|
115304
|
-
|
|
115305
|
-
|
|
115303
|
+
* Obtém o estado atual das colunas.
|
|
115304
|
+
*/
|
|
115306
115305
|
async getColumnsState() {
|
|
115307
115306
|
return Promise.resolve(this._gridController.getColumnsState());
|
|
115308
115307
|
}
|
|
115309
115308
|
/**
|
|
115310
|
-
|
|
115311
|
-
|
|
115309
|
+
* Obtém a lista de definição de colunas.
|
|
115310
|
+
*/
|
|
115312
115311
|
async getColumns() {
|
|
115313
115312
|
return Promise.resolve(this._gridController.getColumnsDef());
|
|
115314
115313
|
}
|
|
115315
115314
|
/**
|
|
115316
|
-
|
|
115317
|
-
|
|
115315
|
+
* Aplica um filtro rápido.
|
|
115316
|
+
*/
|
|
115318
115317
|
async quickFilter(term) {
|
|
115319
115318
|
this._gridController.quickFilter(term);
|
|
115320
115319
|
}
|
|
@@ -7,12 +7,12 @@ let EzIcon = class {
|
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Define o tamanho do ícone.
|
|
11
11
|
*/
|
|
12
|
-
this.size =
|
|
12
|
+
this.size = "medium";
|
|
13
13
|
}
|
|
14
14
|
isSprite() {
|
|
15
|
-
return this.href && this.href.indexOf(
|
|
15
|
+
return this.href && this.href.indexOf("#") > -1;
|
|
16
16
|
}
|
|
17
17
|
getIconClassName() {
|
|
18
18
|
return `ez-icon-${this.iconName}`;
|