@sankhyalabs/ezui 1.1.161 → 1.2.0-beta.1
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/{ApplicationUtils-4a223c7a.js → ApplicationUtils-483c0a9e.js} +26 -7
- package/dist/cjs/CSSVarsUtils-09b431cc.js +55 -0
- package/dist/cjs/DialogType-a1e288e6.js +8 -0
- package/dist/cjs/ez-actions-button.cjs.entry.js +101 -0
- package/dist/cjs/ez-combo-box.cjs.entry.js +8 -4
- package/dist/cjs/ez-date-input.cjs.entry.js +6 -6
- package/dist/cjs/ez-date-time-input.cjs.entry.js +7 -7
- package/dist/cjs/ez-dialog.cjs.entry.js +33 -14
- package/dist/cjs/ez-filter-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-form.cjs.entry.js +101 -86
- package/dist/cjs/ez-grid-config.cjs.entry.js +3 -2
- package/dist/cjs/ez-grid.cjs.entry.js +97155 -92841
- package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-popover.cjs.entry.js +6 -0
- package/dist/cjs/ez-radio-button.cjs.entry.js +49 -0
- package/dist/cjs/ez-search.cjs.entry.js +1 -1
- package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +2 -1
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/ez-actions-button/ez-actions-button.css +49 -0
- package/dist/collection/components/ez-actions-button/ez-actions-button.js +177 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.css +31 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +4 -1
- package/dist/collection/components/ez-date-input/ez-date-input.js +5 -3
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +6 -6
- package/dist/collection/components/ez-dialog/DialogType.js +6 -0
- package/dist/collection/components/ez-dialog/ez-dialog.css +9 -1
- package/dist/collection/components/ez-dialog/ez-dialog.js +53 -26
- package/dist/collection/components/ez-form/DataBinder.js +46 -18
- package/dist/collection/components/ez-form/ez-form.js +75 -68
- package/dist/collection/components/ez-form/fieldbuilder/tpl/TextInput.tpl.js +2 -2
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +24 -165
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +71 -44
- package/dist/collection/components/ez-grid/controller/ag-grid/template/HeaderColumnTemplate.js +4 -4
- package/dist/collection/components/ez-grid/ez-grid.js +36 -321
- package/dist/collection/components/ez-grid/subcomponents/ez-grid-config/ez-grid-config.js +2 -1
- package/dist/collection/components/ez-popover/ez-popover.js +6 -0
- package/dist/collection/components/ez-radio-button/ez-radio-button.css +204 -0
- package/dist/collection/components/ez-radio-button/ez-radio-button.js +160 -0
- package/dist/collection/utils/ApplicationUtils.js +25 -7
- package/dist/collection/utils/CSSVarsUtils.js +34 -0
- package/dist/collection/utils/index.js +1 -0
- package/dist/custom-elements/index.d.ts +12 -6
- package/dist/custom-elements/index.js +97132 -92676
- package/dist/esm/{ApplicationUtils-35350d20.js → ApplicationUtils-5f87ae60.js} +26 -7
- package/dist/esm/CSSVarsUtils-499b75c2.js +53 -0
- package/dist/esm/DialogType-72afa679.js +8 -0
- package/dist/esm/ez-actions-button.entry.js +97 -0
- package/dist/esm/ez-combo-box.entry.js +8 -4
- package/dist/esm/ez-date-input.entry.js +6 -6
- package/dist/esm/ez-date-time-input.entry.js +7 -7
- package/dist/esm/ez-dialog.entry.js +33 -14
- package/dist/esm/ez-filter-input.entry.js +1 -1
- package/dist/esm/ez-form.entry.js +101 -86
- package/dist/esm/ez-grid-config.entry.js +3 -2
- package/dist/esm/ez-grid.entry.js +96694 -92380
- package/dist/esm/ez-number-input.entry.js +1 -1
- package/dist/esm/ez-popover.entry.js +6 -0
- package/dist/esm/ez-radio-button.entry.js +45 -0
- package/dist/esm/ez-search.entry.js +1 -1
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +2 -1
- 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-0b099e95.entry.js +1 -0
- package/dist/ezui/{p-ff7b4b13.entry.js → p-240a76f1.entry.js} +1 -1
- package/dist/ezui/p-3263a002.js +1 -0
- package/dist/ezui/p-787fbdfe.js +1 -0
- package/dist/ezui/p-78fc16d7.entry.js +1 -0
- package/dist/ezui/{p-4c3d136c.entry.js → p-7d29e829.entry.js} +1 -1
- package/dist/ezui/p-898b9906.js +1 -0
- package/dist/ezui/p-8aaca58b.entry.js +1 -0
- package/dist/ezui/p-99440dbc.entry.js +1 -0
- package/dist/ezui/p-a7064bc1.entry.js +1 -0
- package/dist/ezui/{p-53bbba8e.entry.js → p-ad071710.entry.js} +1 -1
- package/dist/ezui/p-b0195dae.entry.js +1 -0
- package/dist/ezui/p-ba2bfa01.entry.js +1 -0
- package/dist/ezui/p-bedef638.entry.js +1 -0
- package/dist/ezui/p-d1bc45bd.entry.js +1 -0
- package/dist/ezui/{p-003d53b1.entry.js → p-d75c3aae.entry.js} +1 -1
- package/dist/ezui/p-e5c572c1.entry.js +304 -0
- package/dist/ezui/p-f4819fa3.entry.js +1 -0
- package/dist/types/components/ez-actions-button/ez-actions-button.d.ts +37 -0
- package/dist/types/components/ez-dialog/DialogType.d.ts +5 -0
- package/dist/types/components/ez-dialog/ez-dialog.d.ts +22 -3
- package/dist/types/components/ez-form/DataBinder.d.ts +6 -1
- package/dist/types/components/ez-form/ez-form.d.ts +27 -3
- package/dist/types/components/ez-form/fieldbuilder/tpl/TextInput.tpl.d.ts +2 -1
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +0 -85
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +2 -23
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +14 -11
- package/dist/types/components/ez-grid/ez-grid.d.ts +8 -66
- package/dist/types/components/ez-radio-button/ez-radio-button.d.ts +36 -0
- package/dist/types/components.d.ts +129 -76
- package/dist/types/utils/ApplicationUtils.d.ts +4 -1
- package/dist/types/utils/CSSVarsUtils.d.ts +1 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/package.json +5 -5
- package/react/components.d.ts +2 -1
- package/react/components.js +2 -1
- package/react/components.js.map +1 -1
- package/dist/cjs/CSSVarsUtils-1034b7b6.js +0 -21
- package/dist/cjs/test-du.cjs.entry.js +0 -103
- package/dist/collection/components/test-du/test-du.css +0 -3
- package/dist/collection/components/test-du/test-du.js +0 -104
- package/dist/collection/utils/interfaces/PageableComponent.js +0 -1
- package/dist/esm/CSSVarsUtils-eb4c5af6.js +0 -19
- package/dist/esm/test-du.entry.js +0 -99
- package/dist/ezui/p-0cd386db.js +0 -1
- package/dist/ezui/p-403de0a4.entry.js +0 -1
- package/dist/ezui/p-4c3cd534.entry.js +0 -1
- package/dist/ezui/p-6668c3b0.entry.js +0 -1
- package/dist/ezui/p-7fd6deec.entry.js +0 -1
- package/dist/ezui/p-8be1a4d6.entry.js +0 -1
- package/dist/ezui/p-8d73594f.entry.js +0 -369
- package/dist/ezui/p-933a7475.js +0 -1
- package/dist/ezui/p-988ff301.entry.js +0 -1
- package/dist/ezui/p-cf56d3e8.entry.js +0 -1
- package/dist/ezui/p-da156da3.entry.js +0 -1
- package/dist/ezui/p-ec7b7e26.entry.js +0 -1
- package/dist/types/components/test-du/test-du.d.ts +0 -9
- package/dist/types/utils/interfaces/PageableComponent.d.ts +0 -12
|
@@ -5,16 +5,33 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
import { Action } from "./components/ez-actions-button/ez-actions-button";
|
|
8
9
|
import { CardItem } from "./components/ez-card-item/ez-card-item";
|
|
9
10
|
import { Option } from "./components/ez-combo-box/ez-combo-box";
|
|
10
11
|
import { DataUnit, Record, WaitingChange } from "@sankhyalabs/core";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
12
|
+
import { DialogType } from "./components/ez-dialog/DialogType";
|
|
13
|
+
import { FieldConfig, RecordValidator, ValidationResult } from "./components/ez-form/ez-form";
|
|
14
|
+
import { EzGridColumn, EzGridColumnConfig, EzGridColumStateEvent, IGridConfig } from "./components/ez-grid/controller/EzGridController";
|
|
13
15
|
import { ListGroup, ListItem } from "./components/ez-list/ez-list";
|
|
16
|
+
import { Radio } from "./components/ez-radio-button/ez-radio-button";
|
|
14
17
|
import { Option as Option1 } from "./components/ez-combo-box/ez-combo-box";
|
|
15
18
|
import { Tab } from "./components/ez-tabselector/ez-tabselector";
|
|
16
19
|
import { EzFile } from "./components/ez-upload/ez-upload";
|
|
17
20
|
export namespace Components {
|
|
21
|
+
interface EzActionsButton {
|
|
22
|
+
/**
|
|
23
|
+
* Array no formato "{value: string, label: string}" que alimenta a lista de ações
|
|
24
|
+
*/
|
|
25
|
+
"actions": Array<Action>;
|
|
26
|
+
/**
|
|
27
|
+
* Deixa o campo disponível ou não para interação com usuário.
|
|
28
|
+
*/
|
|
29
|
+
"enabled": boolean;
|
|
30
|
+
/**
|
|
31
|
+
* É possível escolher entre [small,medium,large]
|
|
32
|
+
*/
|
|
33
|
+
"size": "small" | "medium" | "large" | undefined;
|
|
34
|
+
}
|
|
18
35
|
interface EzApplication {
|
|
19
36
|
}
|
|
20
37
|
interface EzButton {
|
|
@@ -310,9 +327,9 @@ export namespace Components {
|
|
|
310
327
|
*/
|
|
311
328
|
"confirm": boolean;
|
|
312
329
|
/**
|
|
313
|
-
* Define se o componente terá o visual de erro ou de aviso
|
|
330
|
+
* Define se o componente terá o visual padrão, de erro ou de aviso
|
|
314
331
|
*/
|
|
315
|
-
"
|
|
332
|
+
"dialogType": DialogType;
|
|
316
333
|
/**
|
|
317
334
|
* Define o título do componente.
|
|
318
335
|
*/
|
|
@@ -336,7 +353,7 @@ export namespace Components {
|
|
|
336
353
|
/**
|
|
337
354
|
* Faz com que o componente seja exibido.
|
|
338
355
|
*/
|
|
339
|
-
"show": (title: string, message: string,
|
|
356
|
+
"show": (title: string, message: string, dialogType: DialogType, confirm: boolean, icon: string, labelCancel: string, labelConfirm: string, btnConfirmDanger: boolean) => Promise<boolean>;
|
|
340
357
|
}
|
|
341
358
|
interface EzFilterInput {
|
|
342
359
|
/**
|
|
@@ -382,8 +399,18 @@ export namespace Components {
|
|
|
382
399
|
}
|
|
383
400
|
interface EzForm {
|
|
384
401
|
"cancel": () => Promise<void>;
|
|
402
|
+
/**
|
|
403
|
+
* Configuração dos campos.
|
|
404
|
+
*/
|
|
385
405
|
"config": Array<FieldConfig>;
|
|
406
|
+
/**
|
|
407
|
+
* Repositório de dados, controla a manipulação dos dados
|
|
408
|
+
*/
|
|
386
409
|
"dataUnit": DataUnit;
|
|
410
|
+
/**
|
|
411
|
+
* Validador responsável por checar a integridade das informações do registro
|
|
412
|
+
*/
|
|
413
|
+
"recordsValidator": RecordValidator;
|
|
387
414
|
"submit": () => Promise<void>;
|
|
388
415
|
"validate": () => Promise<void>;
|
|
389
416
|
}
|
|
@@ -409,66 +436,15 @@ export namespace Components {
|
|
|
409
436
|
* Retorna as linhas selecionadas na grade.
|
|
410
437
|
*/
|
|
411
438
|
"getSelection": () => Promise<Array<any>>;
|
|
412
|
-
/**
|
|
413
|
-
* Método para fazer um filtro rápido na grid.
|
|
414
|
-
*/
|
|
415
|
-
"hasNextPage": () => Promise<boolean>;
|
|
416
|
-
/**
|
|
417
|
-
* Método para verificar se existem proximos registros.
|
|
418
|
-
*/
|
|
419
|
-
"hasNextRecord": () => Promise<boolean>;
|
|
420
|
-
/**
|
|
421
|
-
* Método para fazer um filtro rápido na grid.
|
|
422
|
-
*/
|
|
423
|
-
"hasPreviousPage": () => Promise<boolean>;
|
|
424
|
-
/**
|
|
425
|
-
* Método para verificar se existem registros anteriores.
|
|
426
|
-
*/
|
|
427
|
-
"hasPreviousRecord": () => Promise<boolean>;
|
|
428
|
-
/**
|
|
429
|
-
* Método para verificar se o registro selecionado é o primeiro da página.
|
|
430
|
-
*/
|
|
431
|
-
"isFirstOfPage": () => Promise<boolean>;
|
|
432
|
-
/**
|
|
433
|
-
* Método para verificar se o registro selecionado é o ultimo da página.
|
|
434
|
-
*/
|
|
435
|
-
"isLastOfPage": () => Promise<boolean>;
|
|
436
439
|
/**
|
|
437
440
|
* Habilita a seleção de várias linhas
|
|
438
441
|
*/
|
|
439
442
|
"multipleSelection": boolean;
|
|
440
|
-
/**
|
|
441
|
-
* Método para fazer um filtro rápido na grid.
|
|
442
|
-
*/
|
|
443
|
-
"nextPage": () => Promise<void>;
|
|
444
|
-
/**
|
|
445
|
-
* Método para navegar para o proxímo registro da grid.
|
|
446
|
-
*/
|
|
447
|
-
"nextRecord": () => Promise<void>;
|
|
448
|
-
/**
|
|
449
|
-
* Método para abrir a configuração da grid.
|
|
450
|
-
*/
|
|
451
443
|
"openGridConfig": () => Promise<void>;
|
|
452
|
-
/**
|
|
453
|
-
* Determina o número de linhas de cada página. Caso informado o valor -1 não haverá paginação.
|
|
454
|
-
*/
|
|
455
|
-
"pageSize": number;
|
|
456
|
-
/**
|
|
457
|
-
* Método para fazer um filtro rápido na grid.
|
|
458
|
-
*/
|
|
459
|
-
"previousPage": () => Promise<void>;
|
|
460
|
-
/**
|
|
461
|
-
* Método para navegar para o registro anterior da grid.
|
|
462
|
-
*/
|
|
463
|
-
"previousRecord": () => Promise<void>;
|
|
464
444
|
/**
|
|
465
445
|
* Método para fazer um filtro rápido na grid.
|
|
466
446
|
*/
|
|
467
447
|
"quickFilter": (term: string) => Promise<any>;
|
|
468
|
-
/**
|
|
469
|
-
* Método para recarregar pagina atual da grid.
|
|
470
|
-
*/
|
|
471
|
-
"refresh": () => Promise<any>;
|
|
472
448
|
/**
|
|
473
449
|
* Endereço do servidor. Se informado, o próprio datagrid controlará a obtenção dos dados, anulando a necessidade de acionar o método "setData(data)"
|
|
474
450
|
*/
|
|
@@ -679,6 +655,28 @@ export namespace Components {
|
|
|
679
655
|
*/
|
|
680
656
|
"useHeader": boolean;
|
|
681
657
|
}
|
|
658
|
+
interface EzRadioButton {
|
|
659
|
+
/**
|
|
660
|
+
* Define a direção em que os itens são apresentadoss, podendo ser horizontal ou vertical.
|
|
661
|
+
*/
|
|
662
|
+
"direction": "vertical" | "horizontal";
|
|
663
|
+
/**
|
|
664
|
+
* Define se o componente está habilitado ou desabilitado
|
|
665
|
+
*/
|
|
666
|
+
"enabled": boolean;
|
|
667
|
+
/**
|
|
668
|
+
* Determina a descrição do grupo
|
|
669
|
+
*/
|
|
670
|
+
"label": string;
|
|
671
|
+
/**
|
|
672
|
+
* Define as opções que serão apresentadas
|
|
673
|
+
*/
|
|
674
|
+
"options": Array<Radio>;
|
|
675
|
+
/**
|
|
676
|
+
* Representa o valor atualmente selecionado entre as opções
|
|
677
|
+
*/
|
|
678
|
+
"value": any;
|
|
679
|
+
}
|
|
682
680
|
interface EzSearch {
|
|
683
681
|
/**
|
|
684
682
|
* Deixa o campo disponível ou não.
|
|
@@ -958,10 +956,14 @@ export namespace Components {
|
|
|
958
956
|
*/
|
|
959
957
|
"show": (index: number) => Promise<void>;
|
|
960
958
|
}
|
|
961
|
-
interface TestDu {
|
|
962
|
-
}
|
|
963
959
|
}
|
|
964
960
|
declare global {
|
|
961
|
+
interface HTMLEzActionsButtonElement extends Components.EzActionsButton, HTMLStencilElement {
|
|
962
|
+
}
|
|
963
|
+
var HTMLEzActionsButtonElement: {
|
|
964
|
+
prototype: HTMLEzActionsButtonElement;
|
|
965
|
+
new (): HTMLEzActionsButtonElement;
|
|
966
|
+
};
|
|
965
967
|
interface HTMLEzApplicationElement extends Components.EzApplication, HTMLStencilElement {
|
|
966
968
|
}
|
|
967
969
|
var HTMLEzApplicationElement: {
|
|
@@ -1094,6 +1096,12 @@ declare global {
|
|
|
1094
1096
|
prototype: HTMLEzPopupElement;
|
|
1095
1097
|
new (): HTMLEzPopupElement;
|
|
1096
1098
|
};
|
|
1099
|
+
interface HTMLEzRadioButtonElement extends Components.EzRadioButton, HTMLStencilElement {
|
|
1100
|
+
}
|
|
1101
|
+
var HTMLEzRadioButtonElement: {
|
|
1102
|
+
prototype: HTMLEzRadioButtonElement;
|
|
1103
|
+
new (): HTMLEzRadioButtonElement;
|
|
1104
|
+
};
|
|
1097
1105
|
interface HTMLEzSearchElement extends Components.EzSearch, HTMLStencilElement {
|
|
1098
1106
|
}
|
|
1099
1107
|
var HTMLEzSearchElement: {
|
|
@@ -1148,13 +1156,8 @@ declare global {
|
|
|
1148
1156
|
prototype: HTMLEzViewStackElement;
|
|
1149
1157
|
new (): HTMLEzViewStackElement;
|
|
1150
1158
|
};
|
|
1151
|
-
interface HTMLTestDuElement extends Components.TestDu, HTMLStencilElement {
|
|
1152
|
-
}
|
|
1153
|
-
var HTMLTestDuElement: {
|
|
1154
|
-
prototype: HTMLTestDuElement;
|
|
1155
|
-
new (): HTMLTestDuElement;
|
|
1156
|
-
};
|
|
1157
1159
|
interface HTMLElementTagNameMap {
|
|
1160
|
+
"ez-actions-button": HTMLEzActionsButtonElement;
|
|
1158
1161
|
"ez-application": HTMLEzApplicationElement;
|
|
1159
1162
|
"ez-button": HTMLEzButtonElement;
|
|
1160
1163
|
"ez-calendar": HTMLEzCalendarElement;
|
|
@@ -1177,6 +1180,7 @@ declare global {
|
|
|
1177
1180
|
"ez-number-input": HTMLEzNumberInputElement;
|
|
1178
1181
|
"ez-popover": HTMLEzPopoverElement;
|
|
1179
1182
|
"ez-popup": HTMLEzPopupElement;
|
|
1183
|
+
"ez-radio-button": HTMLEzRadioButtonElement;
|
|
1180
1184
|
"ez-search": HTMLEzSearchElement;
|
|
1181
1185
|
"ez-select-box": HTMLEzSelectBoxElement;
|
|
1182
1186
|
"ez-tabselector": HTMLEzTabselectorElement;
|
|
@@ -1186,10 +1190,27 @@ declare global {
|
|
|
1186
1190
|
"ez-toast": HTMLEzToastElement;
|
|
1187
1191
|
"ez-upload": HTMLEzUploadElement;
|
|
1188
1192
|
"ez-view-stack": HTMLEzViewStackElement;
|
|
1189
|
-
"test-du": HTMLTestDuElement;
|
|
1190
1193
|
}
|
|
1191
1194
|
}
|
|
1192
1195
|
declare namespace LocalJSX {
|
|
1196
|
+
interface EzActionsButton {
|
|
1197
|
+
/**
|
|
1198
|
+
* Array no formato "{value: string, label: string}" que alimenta a lista de ações
|
|
1199
|
+
*/
|
|
1200
|
+
"actions"?: Array<Action>;
|
|
1201
|
+
/**
|
|
1202
|
+
* Deixa o campo disponível ou não para interação com usuário.
|
|
1203
|
+
*/
|
|
1204
|
+
"enabled"?: boolean;
|
|
1205
|
+
/**
|
|
1206
|
+
* Evento que é disparado ao acionar uma ação
|
|
1207
|
+
*/
|
|
1208
|
+
"onEzAction"?: (event: CustomEvent<Action>) => void;
|
|
1209
|
+
/**
|
|
1210
|
+
* É possível escolher entre [small,medium,large]
|
|
1211
|
+
*/
|
|
1212
|
+
"size"?: "small" | "medium" | "large" | undefined;
|
|
1213
|
+
}
|
|
1193
1214
|
interface EzApplication {
|
|
1194
1215
|
/**
|
|
1195
1216
|
* Evento disparado quando a aplicação for carregada.
|
|
@@ -1466,9 +1487,9 @@ declare namespace LocalJSX {
|
|
|
1466
1487
|
*/
|
|
1467
1488
|
"confirm"?: boolean;
|
|
1468
1489
|
/**
|
|
1469
|
-
* Define se o componente terá o visual de erro ou de aviso
|
|
1490
|
+
* Define se o componente terá o visual padrão, de erro ou de aviso
|
|
1470
1491
|
*/
|
|
1471
|
-
"
|
|
1492
|
+
"dialogType"?: DialogType;
|
|
1472
1493
|
/**
|
|
1473
1494
|
* Define o título do componente.
|
|
1474
1495
|
*/
|
|
@@ -1529,12 +1550,22 @@ declare namespace LocalJSX {
|
|
|
1529
1550
|
"value"?: string;
|
|
1530
1551
|
}
|
|
1531
1552
|
interface EzForm {
|
|
1553
|
+
/**
|
|
1554
|
+
* Configuração dos campos.
|
|
1555
|
+
*/
|
|
1532
1556
|
"config"?: Array<FieldConfig>;
|
|
1557
|
+
/**
|
|
1558
|
+
* Repositório de dados, controla a manipulação dos dados
|
|
1559
|
+
*/
|
|
1533
1560
|
"dataUnit"?: DataUnit;
|
|
1534
1561
|
/**
|
|
1535
1562
|
* Evento disparado quando o formulário está disponível na DOM.
|
|
1536
1563
|
*/
|
|
1537
1564
|
"onEzReady"?: (event: CustomEvent<void>) => void;
|
|
1565
|
+
/**
|
|
1566
|
+
* Validador responsável por checar a integridade das informações do registro
|
|
1567
|
+
*/
|
|
1568
|
+
"recordsValidator"?: RecordValidator;
|
|
1538
1569
|
}
|
|
1539
1570
|
interface EzGrid {
|
|
1540
1571
|
/**
|
|
@@ -1561,11 +1592,7 @@ declare namespace LocalJSX {
|
|
|
1561
1592
|
/**
|
|
1562
1593
|
* Evento disparado ao selecionar linhas da grade.
|
|
1563
1594
|
*/
|
|
1564
|
-
"onEzSelectionChange"?: (event: CustomEvent<
|
|
1565
|
-
/**
|
|
1566
|
-
* Determina o número de linhas de cada página. Caso informado o valor -1 não haverá paginação.
|
|
1567
|
-
*/
|
|
1568
|
-
"pageSize"?: number;
|
|
1595
|
+
"onEzSelectionChange"?: (event: CustomEvent<Array<any>>) => void;
|
|
1569
1596
|
/**
|
|
1570
1597
|
* Endereço do servidor. Se informado, o próprio datagrid controlará a obtenção dos dados, anulando a necessidade de acionar o método "setData(data)"
|
|
1571
1598
|
*/
|
|
@@ -1752,6 +1779,32 @@ declare namespace LocalJSX {
|
|
|
1752
1779
|
*/
|
|
1753
1780
|
"useHeader"?: boolean;
|
|
1754
1781
|
}
|
|
1782
|
+
interface EzRadioButton {
|
|
1783
|
+
/**
|
|
1784
|
+
* Define a direção em que os itens são apresentadoss, podendo ser horizontal ou vertical.
|
|
1785
|
+
*/
|
|
1786
|
+
"direction"?: "vertical" | "horizontal";
|
|
1787
|
+
/**
|
|
1788
|
+
* Define se o componente está habilitado ou desabilitado
|
|
1789
|
+
*/
|
|
1790
|
+
"enabled"?: boolean;
|
|
1791
|
+
/**
|
|
1792
|
+
* Determina a descrição do grupo
|
|
1793
|
+
*/
|
|
1794
|
+
"label"?: string;
|
|
1795
|
+
/**
|
|
1796
|
+
* Evento disparado quando uma opção for selecionada
|
|
1797
|
+
*/
|
|
1798
|
+
"onEzChange"?: (event: CustomEvent<any>) => void;
|
|
1799
|
+
/**
|
|
1800
|
+
* Define as opções que serão apresentadas
|
|
1801
|
+
*/
|
|
1802
|
+
"options"?: Array<Radio>;
|
|
1803
|
+
/**
|
|
1804
|
+
* Representa o valor atualmente selecionado entre as opções
|
|
1805
|
+
*/
|
|
1806
|
+
"value"?: any;
|
|
1807
|
+
}
|
|
1755
1808
|
interface EzSearch {
|
|
1756
1809
|
/**
|
|
1757
1810
|
* Deixa o campo disponível ou não.
|
|
@@ -2004,9 +2057,8 @@ declare namespace LocalJSX {
|
|
|
2004
2057
|
}
|
|
2005
2058
|
interface EzViewStack {
|
|
2006
2059
|
}
|
|
2007
|
-
interface TestDu {
|
|
2008
|
-
}
|
|
2009
2060
|
interface IntrinsicElements {
|
|
2061
|
+
"ez-actions-button": EzActionsButton;
|
|
2010
2062
|
"ez-application": EzApplication;
|
|
2011
2063
|
"ez-button": EzButton;
|
|
2012
2064
|
"ez-calendar": EzCalendar;
|
|
@@ -2029,6 +2081,7 @@ declare namespace LocalJSX {
|
|
|
2029
2081
|
"ez-number-input": EzNumberInput;
|
|
2030
2082
|
"ez-popover": EzPopover;
|
|
2031
2083
|
"ez-popup": EzPopup;
|
|
2084
|
+
"ez-radio-button": EzRadioButton;
|
|
2032
2085
|
"ez-search": EzSearch;
|
|
2033
2086
|
"ez-select-box": EzSelectBox;
|
|
2034
2087
|
"ez-tabselector": EzTabselector;
|
|
@@ -2038,13 +2091,13 @@ declare namespace LocalJSX {
|
|
|
2038
2091
|
"ez-toast": EzToast;
|
|
2039
2092
|
"ez-upload": EzUpload;
|
|
2040
2093
|
"ez-view-stack": EzViewStack;
|
|
2041
|
-
"test-du": TestDu;
|
|
2042
2094
|
}
|
|
2043
2095
|
}
|
|
2044
2096
|
export { LocalJSX as JSX };
|
|
2045
2097
|
declare module "@stencil/core" {
|
|
2046
2098
|
export namespace JSX {
|
|
2047
2099
|
interface IntrinsicElements {
|
|
2100
|
+
"ez-actions-button": LocalJSX.EzActionsButton & JSXBase.HTMLAttributes<HTMLEzActionsButtonElement>;
|
|
2048
2101
|
"ez-application": LocalJSX.EzApplication & JSXBase.HTMLAttributes<HTMLEzApplicationElement>;
|
|
2049
2102
|
"ez-button": LocalJSX.EzButton & JSXBase.HTMLAttributes<HTMLEzButtonElement>;
|
|
2050
2103
|
"ez-calendar": LocalJSX.EzCalendar & JSXBase.HTMLAttributes<HTMLEzCalendarElement>;
|
|
@@ -2067,6 +2120,7 @@ declare module "@stencil/core" {
|
|
|
2067
2120
|
"ez-number-input": LocalJSX.EzNumberInput & JSXBase.HTMLAttributes<HTMLEzNumberInputElement>;
|
|
2068
2121
|
"ez-popover": LocalJSX.EzPopover & JSXBase.HTMLAttributes<HTMLEzPopoverElement>;
|
|
2069
2122
|
"ez-popup": LocalJSX.EzPopup & JSXBase.HTMLAttributes<HTMLEzPopupElement>;
|
|
2123
|
+
"ez-radio-button": LocalJSX.EzRadioButton & JSXBase.HTMLAttributes<HTMLEzRadioButtonElement>;
|
|
2070
2124
|
"ez-search": LocalJSX.EzSearch & JSXBase.HTMLAttributes<HTMLEzSearchElement>;
|
|
2071
2125
|
"ez-select-box": LocalJSX.EzSelectBox & JSXBase.HTMLAttributes<HTMLEzSelectBoxElement>;
|
|
2072
2126
|
"ez-tabselector": LocalJSX.EzTabselector & JSXBase.HTMLAttributes<HTMLEzTabselectorElement>;
|
|
@@ -2076,7 +2130,6 @@ declare module "@stencil/core" {
|
|
|
2076
2130
|
"ez-toast": LocalJSX.EzToast & JSXBase.HTMLAttributes<HTMLEzToastElement>;
|
|
2077
2131
|
"ez-upload": LocalJSX.EzUpload & JSXBase.HTMLAttributes<HTMLEzUploadElement>;
|
|
2078
2132
|
"ez-view-stack": LocalJSX.EzViewStack & JSXBase.HTMLAttributes<HTMLEzViewStackElement>;
|
|
2079
|
-
"test-du": LocalJSX.TestDu & JSXBase.HTMLAttributes<HTMLTestDuElement>;
|
|
2080
2133
|
}
|
|
2081
2134
|
}
|
|
2082
2135
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { DialogType } from "../components/ez-dialog/DialogType";
|
|
1
2
|
export default class ApplicationUtils {
|
|
2
3
|
private static showDialog;
|
|
3
4
|
private static defaultMessageOptions;
|
|
4
5
|
static alert(title: string, message: string, icon?: string, options?: MessageOptions): Promise<boolean>;
|
|
5
6
|
static error(title: string, message: string, icon?: string, options?: MessageOptions): Promise<boolean>;
|
|
6
|
-
static confirm(title: string, message: string, icon?: string,
|
|
7
|
+
static confirm(title: string, message: string, icon?: string, dialogType?: DialogType, options?: MessageOptions): Promise<boolean>;
|
|
8
|
+
static message(title: string, message: string, icon?: string, options?: MessageOptions): Promise<boolean>;
|
|
7
9
|
static info(message: string, options?: MessageOptions): Promise<void>;
|
|
8
10
|
}
|
|
9
11
|
export interface MessageOptions {
|
|
@@ -11,4 +13,5 @@ export interface MessageOptions {
|
|
|
11
13
|
labelCancel: string;
|
|
12
14
|
labelConfirm: string;
|
|
13
15
|
btnConfirmDanger: boolean;
|
|
16
|
+
iconName?: string;
|
|
14
17
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sankhyalabs/ezui",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.0-beta.1",
|
|
4
4
|
"description": "Biblioteca de componentes Sankhya.",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/custom-elements/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"dependencies": {},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@babel/preset-env": "^7.16.11",
|
|
51
|
-
"@sankhyalabs/core": "^1.0.
|
|
51
|
+
"@sankhyalabs/core": "^1.0.71-beta.3",
|
|
52
52
|
"@sankhyalabs/docscss": "^1.0.1",
|
|
53
53
|
"@sankhyalabs/ez-design": "^1.0.56",
|
|
54
54
|
"@sankhyalabs/skippeerdeps": "^1.0.2",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"@storybook/html": "^6.4.17",
|
|
63
63
|
"@types/jest": "^26.0.20",
|
|
64
64
|
"@types/puppeteer": "^5.4.2",
|
|
65
|
-
"ag-grid-community": "^
|
|
66
|
-
"ag-grid-enterprise": "^
|
|
65
|
+
"ag-grid-community": "^28.1.1",
|
|
66
|
+
"ag-grid-enterprise": "^28.1.1",
|
|
67
67
|
"gulp": "^4.0.2",
|
|
68
68
|
"gulp-run": "^1.7.1",
|
|
69
69
|
"gulp-watch": "^5.0.1",
|
|
@@ -84,6 +84,6 @@
|
|
|
84
84
|
"verbose": true
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
|
-
"@sankhyalabs/core": "^1.
|
|
87
|
+
"@sankhyalabs/core": "^1.0.71-beta.0"
|
|
88
88
|
}
|
|
89
89
|
}
|