@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
|
@@ -4,53 +4,53 @@ import AgGridController from "./controller/ag-grid/AgGridController";
|
|
|
4
4
|
export class EzGrid {
|
|
5
5
|
constructor() {
|
|
6
6
|
this._gridController = new AgGridController(false);
|
|
7
|
+
this._paginationChangedByKeyboard = true;
|
|
7
8
|
}
|
|
8
9
|
/**
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
* Aplica a definição de colunas.
|
|
11
|
+
*/
|
|
11
12
|
async setColumnsDef(cols) {
|
|
12
13
|
this._gridController.setColumnsDef(cols);
|
|
13
14
|
}
|
|
14
15
|
/**
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
* Adiciona item de menu nas colunas.
|
|
17
|
+
*/
|
|
17
18
|
async addColumnMenuItem(label, name, action) {
|
|
18
19
|
this._gridController.addColumnMenuItem({ label, name, action });
|
|
19
20
|
}
|
|
20
21
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
* Aplica o estado das colunas.
|
|
23
|
+
*/
|
|
23
24
|
async setColumnsState(state) {
|
|
24
25
|
this._gridController.setColumnsState(state);
|
|
25
26
|
}
|
|
26
27
|
/**
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
*/
|
|
28
|
+
* Insere os registros no ez-grid.
|
|
29
|
+
*/
|
|
30
30
|
async setData(data) {
|
|
31
31
|
this._gridController.setData(data);
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
* Obtém as linhas selecionadas.
|
|
35
|
+
*/
|
|
36
36
|
async getSelection() {
|
|
37
37
|
return Promise.resolve(this._gridController.getSelection());
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
* Obtém o estado atual das colunas.
|
|
41
|
+
*/
|
|
42
42
|
async getColumnsState() {
|
|
43
43
|
return Promise.resolve(this._gridController.getColumnsState());
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
* Obtém a lista de definição de colunas.
|
|
47
|
+
*/
|
|
48
48
|
async getColumns() {
|
|
49
49
|
return Promise.resolve(this._gridController.getColumnsDef());
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
* Aplica um filtro rápido.
|
|
53
|
+
*/
|
|
54
54
|
async quickFilter(term) {
|
|
55
55
|
this._gridController.quickFilter(term);
|
|
56
56
|
}
|
|
@@ -128,7 +128,17 @@ export class EzGrid {
|
|
|
128
128
|
this._gridController.initDatagrid(this._container, {
|
|
129
129
|
onColumnStateChange: (type, state, info) => this.onColumnStateChange(type, state, info),
|
|
130
130
|
onSelectionChange: (selection) => this.ezSelectionChange.emit(selection),
|
|
131
|
-
onPaginationChange: (paginationInfo) =>
|
|
131
|
+
onPaginationChange: (paginationInfo) => {
|
|
132
|
+
var _a;
|
|
133
|
+
if (((_a = this._paginationInfo) === null || _a === void 0 ? void 0 : _a.currentPage) > paginationInfo.currentPage && this._paginationChangedByKeyboard) {
|
|
134
|
+
this._gridController.setFocusLastRow();
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
this._gridController.setFocusFirstRow();
|
|
138
|
+
this._paginationChangedByKeyboard = true;
|
|
139
|
+
}
|
|
140
|
+
this._paginationInfo = paginationInfo;
|
|
141
|
+
},
|
|
132
142
|
onDoubleClick: (row) => {
|
|
133
143
|
this.ezDoubleClick.emit(row);
|
|
134
144
|
},
|
|
@@ -151,11 +161,13 @@ export class EzGrid {
|
|
|
151
161
|
previousPage() {
|
|
152
162
|
if (this.dataUnit) {
|
|
153
163
|
this.dataUnit.previousPage();
|
|
164
|
+
this._paginationChangedByKeyboard = false;
|
|
154
165
|
}
|
|
155
166
|
}
|
|
156
167
|
nextPage() {
|
|
157
168
|
if (this.dataUnit) {
|
|
158
169
|
this.dataUnit.nextPage();
|
|
170
|
+
this._paginationChangedByKeyboard = false;
|
|
159
171
|
}
|
|
160
172
|
}
|
|
161
173
|
getPaginationControl() {
|
|
@@ -205,7 +217,7 @@ export class EzGrid {
|
|
|
205
217
|
"optional": false,
|
|
206
218
|
"docs": {
|
|
207
219
|
"tags": [],
|
|
208
|
-
"text": "Habilita a sele\u00E7\u00E3o de v\u00E1rias linhas"
|
|
220
|
+
"text": "Habilita a sele\u00E7\u00E3o de v\u00E1rias linhas."
|
|
209
221
|
},
|
|
210
222
|
"attribute": "multiple-selection",
|
|
211
223
|
"reflect": false
|
|
@@ -242,7 +254,7 @@ export class EzGrid {
|
|
|
242
254
|
"optional": false,
|
|
243
255
|
"docs": {
|
|
244
256
|
"tags": [],
|
|
245
|
-
"text": "Endere\u00E7o do servidor
|
|
257
|
+
"text": "Endere\u00E7o do servidor para obten\u00E7\u00E3o dos dados."
|
|
246
258
|
},
|
|
247
259
|
"attribute": "server-url",
|
|
248
260
|
"reflect": false
|
|
@@ -264,7 +276,7 @@ export class EzGrid {
|
|
|
264
276
|
"optional": false,
|
|
265
277
|
"docs": {
|
|
266
278
|
"tags": [],
|
|
267
|
-
"text": "
|
|
279
|
+
"text": "Unidade de dados. Respons\u00E1vel pelo controle de edi\u00E7\u00E3o de registros e \ninforma\u00E7\u00F5es pertinentes aos campos."
|
|
268
280
|
}
|
|
269
281
|
},
|
|
270
282
|
"statusResolver": {
|
|
@@ -284,12 +296,13 @@ export class EzGrid {
|
|
|
284
296
|
"optional": false,
|
|
285
297
|
"docs": {
|
|
286
298
|
"tags": [],
|
|
287
|
-
"text": "
|
|
299
|
+
"text": "Define um `IStatusResolver` respons\u00E1vel pelo estado da coluna de status."
|
|
288
300
|
}
|
|
289
301
|
}
|
|
290
302
|
}; }
|
|
291
303
|
static get states() { return {
|
|
292
|
-
"_paginationInfo": {}
|
|
304
|
+
"_paginationInfo": {},
|
|
305
|
+
"_paginationChangedByKeyboard": {}
|
|
293
306
|
}; }
|
|
294
307
|
static get events() { return [{
|
|
295
308
|
"method": "ezColumnStateChange",
|
|
@@ -299,7 +312,7 @@ export class EzGrid {
|
|
|
299
312
|
"composed": true,
|
|
300
313
|
"docs": {
|
|
301
314
|
"tags": [],
|
|
302
|
-
"text": "
|
|
315
|
+
"text": "Emitido quando acontece a altera\u00E7\u00E3o de estado das colunas do grid: Ordena\u00E7\u00E3o, largura, etc."
|
|
303
316
|
},
|
|
304
317
|
"complexType": {
|
|
305
318
|
"original": "EzGridColumStateEvent",
|
|
@@ -319,7 +332,7 @@ export class EzGrid {
|
|
|
319
332
|
"composed": true,
|
|
320
333
|
"docs": {
|
|
321
334
|
"tags": [],
|
|
322
|
-
"text": "
|
|
335
|
+
"text": "Emitido quando acontece a altera\u00E7\u00E3o de sele\u00E7\u00E3o de linhas."
|
|
323
336
|
},
|
|
324
337
|
"complexType": {
|
|
325
338
|
"original": "Array<any>",
|
|
@@ -338,7 +351,7 @@ export class EzGrid {
|
|
|
338
351
|
"composed": true,
|
|
339
352
|
"docs": {
|
|
340
353
|
"tags": [],
|
|
341
|
-
"text": "
|
|
354
|
+
"text": "Emitido com o duplo clique de uma linha"
|
|
342
355
|
},
|
|
343
356
|
"complexType": {
|
|
344
357
|
"original": "any",
|
|
@@ -353,7 +366,7 @@ export class EzGrid {
|
|
|
353
366
|
"composed": true,
|
|
354
367
|
"docs": {
|
|
355
368
|
"tags": [],
|
|
356
|
-
"text": "
|
|
369
|
+
"text": "Emitido quando acontece a altera\u00E7\u00E3o de configura\u00E7\u00E3o do grade."
|
|
357
370
|
},
|
|
358
371
|
"complexType": {
|
|
359
372
|
"original": "IGridConfig",
|
|
@@ -369,7 +382,7 @@ export class EzGrid {
|
|
|
369
382
|
static get methods() { return {
|
|
370
383
|
"setColumnsDef": {
|
|
371
384
|
"complexType": {
|
|
372
|
-
"signature": "(cols: Array<EzGridColumn>) => Promise<
|
|
385
|
+
"signature": "(cols: Array<EzGridColumn>) => Promise<void>",
|
|
373
386
|
"parameters": [{
|
|
374
387
|
"tags": [],
|
|
375
388
|
"text": ""
|
|
@@ -386,16 +399,16 @@ export class EzGrid {
|
|
|
386
399
|
"path": "./controller/EzGridController"
|
|
387
400
|
}
|
|
388
401
|
},
|
|
389
|
-
"return": "Promise<
|
|
402
|
+
"return": "Promise<void>"
|
|
390
403
|
},
|
|
391
404
|
"docs": {
|
|
392
|
-
"text": "
|
|
405
|
+
"text": "Aplica a defini\u00E7\u00E3o de colunas.",
|
|
393
406
|
"tags": []
|
|
394
407
|
}
|
|
395
408
|
},
|
|
396
409
|
"addColumnMenuItem": {
|
|
397
410
|
"complexType": {
|
|
398
|
-
"signature": "(label: string, name: string, action: Function) => Promise<
|
|
411
|
+
"signature": "(label: string, name: string, action: Function) => Promise<void>",
|
|
399
412
|
"parameters": [{
|
|
400
413
|
"tags": [],
|
|
401
414
|
"text": ""
|
|
@@ -414,7 +427,7 @@ export class EzGrid {
|
|
|
414
427
|
"location": "global"
|
|
415
428
|
}
|
|
416
429
|
},
|
|
417
|
-
"return": "Promise<
|
|
430
|
+
"return": "Promise<void>"
|
|
418
431
|
},
|
|
419
432
|
"docs": {
|
|
420
433
|
"text": "Adiciona item de menu nas colunas.",
|
|
@@ -423,7 +436,7 @@ export class EzGrid {
|
|
|
423
436
|
},
|
|
424
437
|
"setColumnsState": {
|
|
425
438
|
"complexType": {
|
|
426
|
-
"signature": "(state: Array<EzGridColumnConfig>) => Promise<
|
|
439
|
+
"signature": "(state: Array<EzGridColumnConfig>) => Promise<void>",
|
|
427
440
|
"parameters": [{
|
|
428
441
|
"tags": [],
|
|
429
442
|
"text": ""
|
|
@@ -440,16 +453,16 @@ export class EzGrid {
|
|
|
440
453
|
"path": "./controller/EzGridController"
|
|
441
454
|
}
|
|
442
455
|
},
|
|
443
|
-
"return": "Promise<
|
|
456
|
+
"return": "Promise<void>"
|
|
444
457
|
},
|
|
445
458
|
"docs": {
|
|
446
|
-
"text": "
|
|
459
|
+
"text": "Aplica o estado das colunas.",
|
|
447
460
|
"tags": []
|
|
448
461
|
}
|
|
449
462
|
},
|
|
450
463
|
"setData": {
|
|
451
464
|
"complexType": {
|
|
452
|
-
"signature": "(data: Array<any>) => Promise<
|
|
465
|
+
"signature": "(data: Array<any>) => Promise<void>",
|
|
453
466
|
"parameters": [{
|
|
454
467
|
"tags": [],
|
|
455
468
|
"text": ""
|
|
@@ -462,10 +475,10 @@ export class EzGrid {
|
|
|
462
475
|
"location": "global"
|
|
463
476
|
}
|
|
464
477
|
},
|
|
465
|
-
"return": "Promise<
|
|
478
|
+
"return": "Promise<void>"
|
|
466
479
|
},
|
|
467
480
|
"docs": {
|
|
468
|
-
"text": "
|
|
481
|
+
"text": "Insere os registros no ez-grid.",
|
|
469
482
|
"tags": []
|
|
470
483
|
}
|
|
471
484
|
},
|
|
@@ -484,7 +497,7 @@ export class EzGrid {
|
|
|
484
497
|
"return": "Promise<any[]>"
|
|
485
498
|
},
|
|
486
499
|
"docs": {
|
|
487
|
-
"text": "
|
|
500
|
+
"text": "Obt\u00E9m as linhas selecionadas.",
|
|
488
501
|
"tags": []
|
|
489
502
|
}
|
|
490
503
|
},
|
|
@@ -507,7 +520,7 @@ export class EzGrid {
|
|
|
507
520
|
"return": "Promise<EzGridColumn[]>"
|
|
508
521
|
},
|
|
509
522
|
"docs": {
|
|
510
|
-
"text": "
|
|
523
|
+
"text": "Obt\u00E9m o estado atual das colunas.",
|
|
511
524
|
"tags": []
|
|
512
525
|
}
|
|
513
526
|
},
|
|
@@ -530,13 +543,13 @@ export class EzGrid {
|
|
|
530
543
|
"return": "Promise<EzGridColumn[]>"
|
|
531
544
|
},
|
|
532
545
|
"docs": {
|
|
533
|
-
"text": "
|
|
546
|
+
"text": "Obt\u00E9m a lista de defini\u00E7\u00E3o de colunas.",
|
|
534
547
|
"tags": []
|
|
535
548
|
}
|
|
536
549
|
},
|
|
537
550
|
"quickFilter": {
|
|
538
551
|
"complexType": {
|
|
539
|
-
"signature": "(term: string) => Promise<
|
|
552
|
+
"signature": "(term: string) => Promise<void>",
|
|
540
553
|
"parameters": [{
|
|
541
554
|
"tags": [],
|
|
542
555
|
"text": ""
|
|
@@ -546,10 +559,10 @@ export class EzGrid {
|
|
|
546
559
|
"location": "global"
|
|
547
560
|
}
|
|
548
561
|
},
|
|
549
|
-
"return": "Promise<
|
|
562
|
+
"return": "Promise<void>"
|
|
550
563
|
},
|
|
551
564
|
"docs": {
|
|
552
|
-
"text": "
|
|
565
|
+
"text": "Aplica um filtro r\u00E1pido.",
|
|
553
566
|
"tags": []
|
|
554
567
|
}
|
|
555
568
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { StringUtils } from
|
|
2
|
-
import { Component, h, Host, Prop } from
|
|
1
|
+
import { StringUtils } from "@sankhyalabs/core";
|
|
2
|
+
import { Component, h, Host, Prop } from "@stencil/core";
|
|
3
3
|
export class EzIcon {
|
|
4
4
|
constructor() {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Define o tamanho do ícone.
|
|
7
7
|
*/
|
|
8
|
-
this.size =
|
|
8
|
+
this.size = "medium";
|
|
9
9
|
}
|
|
10
10
|
isSprite() {
|
|
11
|
-
return this.href && this.href.indexOf(
|
|
11
|
+
return this.href && this.href.indexOf("#") > -1;
|
|
12
12
|
}
|
|
13
13
|
getIconClassName() {
|
|
14
14
|
return `ez-icon-${this.iconName}`;
|
|
@@ -41,19 +41,19 @@ export class EzIcon {
|
|
|
41
41
|
"type": "string",
|
|
42
42
|
"mutable": false,
|
|
43
43
|
"complexType": {
|
|
44
|
-
"original": "
|
|
45
|
-
"resolved": "
|
|
44
|
+
"original": "\"x-small\" | \"small\"| \"medium\" | \"large\" | \"x-large\"",
|
|
45
|
+
"resolved": "\"large\" | \"medium\" | \"small\" | \"x-large\" | \"x-small\"",
|
|
46
46
|
"references": {}
|
|
47
47
|
},
|
|
48
48
|
"required": false,
|
|
49
49
|
"optional": false,
|
|
50
50
|
"docs": {
|
|
51
51
|
"tags": [],
|
|
52
|
-
"text": "
|
|
52
|
+
"text": "Define o tamanho do \u00EDcone."
|
|
53
53
|
},
|
|
54
54
|
"attribute": "size",
|
|
55
55
|
"reflect": true,
|
|
56
|
-
"defaultValue": "
|
|
56
|
+
"defaultValue": "\"medium\""
|
|
57
57
|
},
|
|
58
58
|
"href": {
|
|
59
59
|
"type": "string",
|
|
@@ -67,7 +67,7 @@ export class EzIcon {
|
|
|
67
67
|
"optional": false,
|
|
68
68
|
"docs": {
|
|
69
69
|
"tags": [],
|
|
70
|
-
"text": "
|
|
70
|
+
"text": "Define o endere\u00E7o da imagem quando n\u00E3o contempladas na biblioteca de \u00EDcones."
|
|
71
71
|
},
|
|
72
72
|
"attribute": "href",
|
|
73
73
|
"reflect": true
|
|
@@ -84,7 +84,7 @@ export class EzIcon {
|
|
|
84
84
|
"optional": false,
|
|
85
85
|
"docs": {
|
|
86
86
|
"tags": [],
|
|
87
|
-
"text": "
|
|
87
|
+
"text": "Define o \u00EDcone a ser usado da biblioteca de \u00EDcones: [ez-icons](https://sankhyalabs-storybook.herokuapp.com/themes/default/icons/fonts/index.html)"
|
|
88
88
|
},
|
|
89
89
|
"attribute": "icon-name",
|
|
90
90
|
"reflect": true
|