@sankhyalabs/ezui 1.2.0-beta.2 → 1.2.0-beta.21
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-483c0a9e.js → ApplicationUtils-edc62c5c.js} +6 -2
- package/dist/cjs/{CSSVarsUtils-09b431cc.js → CSSVarsUtils-af809e73.js} +17 -0
- package/dist/cjs/{DialogType-a1e288e6.js → DialogType-aa435c52.js} +1 -0
- package/dist/cjs/FieldBuilder-cd3e45ed.js +119 -0
- package/dist/cjs/ez-actions-button.cjs.entry.js +67 -15
- package/dist/cjs/ez-button.cjs.entry.js +12 -10
- package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
- package/dist/cjs/ez-chip.cjs.entry.js +6 -6
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +85 -6
- package/dist/cjs/ez-combo-box.cjs.entry.js +38 -13
- package/dist/cjs/ez-date-input.cjs.entry.js +9 -14
- package/dist/cjs/ez-date-time-input.cjs.entry.js +9 -14
- package/dist/cjs/ez-dialog.cjs.entry.js +42 -7
- package/dist/cjs/ez-filter-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-form.cjs.entry.js +44 -133
- package/dist/cjs/ez-grid-config.cjs.entry.js +4 -5
- package/dist/cjs/ez-grid.cjs.entry.js +97 -10
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +54 -0
- package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-popover.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +7 -3
- package/dist/cjs/ez-radio-button.cjs.entry.js +2 -2
- package/dist/cjs/ez-scroller.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +1 -1
- package/dist/cjs/ez-tabselector.cjs.entry.js +7 -5
- package/dist/cjs/ez-text-area.cjs.entry.js +6 -6
- package/dist/cjs/ez-text-edit.cjs.entry.js +103 -0
- package/dist/cjs/ez-text-input.cjs.entry.js +11 -1
- package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +2 -2
- package/dist/cjs/ez-view-stack.cjs.entry.js +9 -5
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +6 -4
- package/dist/collection/components/ez-actions-button/ez-actions-button.css +49 -20
- package/dist/collection/components/ez-actions-button/ez-actions-button.js +219 -23
- package/dist/collection/components/ez-button/ez-button.css +1 -6
- package/dist/collection/components/ez-button/ez-button.js +11 -9
- package/dist/collection/components/ez-calendar/ez-calendar.css +17 -20
- package/dist/collection/components/ez-chip/ez-chip.css +6 -3
- package/dist/collection/components/ez-chip/ez-chip.js +5 -5
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +16 -0
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +226 -7
- package/dist/collection/components/ez-combo-box/ez-combo-box.css +1 -22
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +42 -18
- package/dist/collection/components/ez-date-input/ez-date-input.js +8 -13
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +8 -13
- package/dist/collection/components/ez-dialog/DialogType.js +1 -0
- package/dist/collection/components/ez-dialog/ez-dialog.css +19 -25
- package/dist/collection/components/ez-dialog/ez-dialog.js +41 -6
- package/dist/collection/components/ez-form/DataBinder.js +1 -0
- package/dist/collection/components/ez-form/ez-form.js +22 -13
- package/dist/collection/components/ez-form/fieldbuilder/FieldBuilder.js +1 -1
- package/dist/collection/components/ez-form/structure/FormSheetMetadata.js +24 -14
- package/dist/collection/components/ez-grid/controller/DataUnitBridge.js +3 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +64 -10
- package/dist/collection/components/ez-grid/controller/ag-grid/components/cellRenderer.js +31 -0
- package/dist/collection/components/ez-grid/ez-grid.js +40 -3
- package/dist/collection/components/ez-grid/subcomponents/ez-grid-config/ez-grid-config.css +36 -25
- package/dist/collection/components/ez-grid/subcomponents/ez-grid-config/ez-grid-config.js +1 -2
- package/dist/collection/components/ez-grid/subcomponents/ez-select-box/ez-select-box.js +5 -4
- package/dist/collection/components/ez-icon/ez-icon.css +117 -98
- package/dist/collection/components/ez-list/ez-list.css +9 -1
- package/dist/collection/components/ez-modal-container/ez-modal-container.css +38 -0
- package/dist/collection/components/ez-modal-container/ez-modal-container.js +166 -0
- package/dist/collection/components/ez-modal-container/index.js +2 -0
- package/dist/collection/components/ez-modal-container/modal-action.js +8 -0
- package/dist/collection/components/ez-modal-container/modal-button-status.js +7 -0
- package/dist/collection/components/ez-popover/ez-popover.css +1 -1
- package/dist/collection/components/ez-popup/ez-popup.css +4 -0
- package/dist/collection/components/ez-popup/ez-popup.js +26 -4
- package/dist/collection/components/ez-radio-button/ez-radio-button.css +16 -5
- package/dist/collection/components/ez-radio-button/ez-radio-button.js +1 -1
- package/dist/collection/components/ez-scroller/ez-scroller.css +4 -2
- package/dist/collection/components/ez-search/ez-search.js +6 -6
- package/dist/collection/components/ez-tabselector/ez-tabselector.css +9 -0
- package/dist/collection/components/ez-tabselector/ez-tabselector.js +7 -3
- package/dist/collection/components/ez-text-area/ez-text-area.css +6 -3
- package/dist/collection/components/ez-text-area/ez-text-area.js +5 -5
- package/dist/collection/components/ez-text-edit/ez-text-edit.css +19 -0
- package/dist/collection/components/ez-text-edit/ez-text-edit.js +188 -0
- package/dist/collection/components/ez-text-input/ez-text-input.css +18 -2
- package/dist/collection/components/ez-text-input/ez-text-input.js +28 -0
- package/dist/collection/components/ez-view-stack/ez-view-stack.js +12 -6
- package/dist/collection/utils/ApplicationUtils.js +5 -1
- package/dist/collection/utils/CSSVarsUtils.js +17 -0
- package/dist/collection/utils/index.js +1 -0
- package/dist/custom-elements/index.d.ts +12 -0
- package/dist/custom-elements/index.js +728 -254
- package/dist/esm/{ApplicationUtils-5f87ae60.js → ApplicationUtils-205ac4bc.js} +6 -2
- package/dist/esm/{CSSVarsUtils-499b75c2.js → CSSVarsUtils-00f67f32.js} +17 -0
- package/dist/esm/{DialogType-72afa679.js → DialogType-4059dc4d.js} +1 -0
- package/dist/esm/FieldBuilder-9e9545fc.js +117 -0
- package/dist/esm/ez-actions-button.entry.js +67 -15
- package/dist/esm/ez-button.entry.js +12 -10
- package/dist/esm/ez-calendar.entry.js +1 -1
- package/dist/esm/ez-chip.entry.js +6 -6
- package/dist/esm/ez-collapsible-box.entry.js +86 -7
- package/dist/esm/ez-combo-box.entry.js +38 -13
- package/dist/esm/ez-date-input.entry.js +9 -14
- package/dist/esm/ez-date-time-input.entry.js +10 -15
- package/dist/esm/ez-dialog.entry.js +42 -7
- package/dist/esm/ez-filter-input.entry.js +1 -1
- package/dist/esm/ez-form.entry.js +43 -132
- package/dist/esm/ez-grid-config.entry.js +4 -5
- package/dist/esm/ez-grid.entry.js +97 -10
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-list.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +50 -0
- package/dist/esm/ez-number-input.entry.js +1 -1
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +7 -3
- package/dist/esm/ez-radio-button.entry.js +2 -2
- package/dist/esm/ez-scroller.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +1 -1
- package/dist/esm/ez-tabselector.entry.js +7 -5
- package/dist/esm/ez-text-area.entry.js +6 -6
- package/dist/esm/ez-text-edit.entry.js +99 -0
- package/dist/esm/ez-text-input.entry.js +11 -1
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +2 -2
- package/dist/esm/ez-view-stack.entry.js +9 -5
- 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-0b44cf1c.js +1 -0
- package/dist/ezui/p-0c7203d5.entry.js +1 -0
- package/dist/ezui/p-2cc6dd66.entry.js +1 -0
- package/dist/ezui/p-2ccad880.entry.js +1 -0
- package/dist/ezui/p-333d79c4.entry.js +1 -0
- package/dist/ezui/p-3987f8d8.entry.js +1 -0
- package/dist/ezui/p-3c87845d.entry.js +1 -0
- package/dist/ezui/{p-768053d0.entry.js → p-43bb6a59.entry.js} +1 -1
- package/dist/ezui/p-4a5e37a7.js +1 -0
- package/dist/ezui/p-4ad647fc.entry.js +1 -0
- package/dist/ezui/p-54ecd19a.js +1 -0
- package/dist/ezui/{p-03742d3e.entry.js → p-56688470.entry.js} +1 -1
- package/dist/ezui/{p-b901ba02.entry.js → p-5a1927a2.entry.js} +1 -1
- package/dist/ezui/{p-b2cf7db2.entry.js → p-63d567cc.entry.js} +1 -1
- package/dist/ezui/p-6befd7e4.entry.js +1 -0
- package/dist/ezui/p-712bd293.entry.js +1 -0
- package/dist/ezui/{p-d9c72ff7.entry.js → p-72c75a43.entry.js} +1 -1
- package/dist/ezui/{p-15d18ece.entry.js → p-744eb735.entry.js} +1 -1
- package/dist/ezui/{p-81eb2738.entry.js → p-802d23d9.entry.js} +1 -1
- package/dist/ezui/p-86daa81a.entry.js +1 -0
- package/dist/ezui/{p-72ab066f.entry.js → p-b706619e.entry.js} +1 -1
- package/dist/ezui/p-bca406db.entry.js +1 -0
- package/dist/ezui/p-be06251d.entry.js +1 -0
- package/dist/ezui/{p-e7d03a0d.entry.js → p-bffae598.entry.js} +1 -1
- package/dist/ezui/p-d91527dc.entry.js +1 -0
- package/dist/ezui/p-dd257f17.entry.js +1 -0
- package/dist/ezui/p-e1148f5c.js +1 -0
- package/dist/ezui/p-e1f2b5da.entry.js +1 -0
- package/dist/ezui/p-e230bfd2.entry.js +1 -0
- package/dist/ezui/{p-5c721278.entry.js → p-e3ee814c.entry.js} +1 -1
- package/dist/ezui/p-e697ffd5.entry.js +1 -0
- package/dist/ezui/p-ec9decf2.entry.js +1 -0
- package/dist/ezui/p-f36dbc21.entry.js +1 -0
- package/dist/types/components/ez-actions-button/ez-actions-button.d.ts +42 -9
- package/dist/types/components/ez-chip/ez-chip.d.ts +1 -1
- package/dist/types/components/ez-collapsible-box/ez-collapsible-box.d.ts +46 -1
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +15 -5
- package/dist/types/components/ez-date-input/ez-date-input.d.ts +0 -1
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +0 -1
- package/dist/types/components/ez-dialog/DialogType.d.ts +1 -0
- package/dist/types/components/ez-dialog/ez-dialog.d.ts +3 -0
- package/dist/types/components/ez-form/DataBinder.d.ts +2 -2
- package/dist/types/components/ez-form/ez-form.d.ts +21 -11
- package/dist/types/components/ez-form/fieldbuilder/tpl/CheckBox.tpl.d.ts +3 -3
- package/dist/types/components/ez-form/fieldbuilder/tpl/NumberInput.tpl.d.ts +2 -5
- package/dist/types/components/ez-form/structure/FormSheetMetadata.d.ts +3 -3
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +11 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +5 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/cellRenderer.d.ts +9 -0
- package/dist/types/components/ez-grid/ez-grid.d.ts +8 -3
- package/dist/types/components/ez-grid/subcomponents/ez-select-box/ez-select-box.d.ts +2 -6
- package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +43 -0
- package/dist/types/components/ez-modal-container/index.d.ts +2 -0
- package/dist/types/components/ez-modal-container/modal-action.d.ts +7 -0
- package/dist/types/components/ez-modal-container/modal-button-status.d.ts +6 -0
- package/dist/types/components/ez-popup/ez-popup.d.ts +4 -0
- package/dist/types/components/ez-search/ez-search.d.ts +3 -3
- package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +2 -0
- package/dist/types/components/ez-text-edit/ez-text-edit.d.ts +39 -0
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +5 -0
- package/dist/types/components/ez-view-stack/ez-view-stack.d.ts +5 -1
- package/dist/types/components.d.ts +266 -28
- package/dist/types/utils/ApplicationUtils.d.ts +1 -0
- 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 -0
- package/react/components.js +2 -0
- package/react/components.js.map +1 -1
- package/dist/ezui/p-3263a002.js +0 -1
- package/dist/ezui/p-3ae441ec.entry.js +0 -1
- package/dist/ezui/p-3ffdde40.entry.js +0 -1
- package/dist/ezui/p-416bedbe.entry.js +0 -1
- package/dist/ezui/p-47e06040.entry.js +0 -1
- package/dist/ezui/p-6cfe20a0.entry.js +0 -1
- package/dist/ezui/p-719e9ef9.entry.js +0 -1
- package/dist/ezui/p-787fbdfe.js +0 -1
- package/dist/ezui/p-7fe1ac9a.entry.js +0 -1
- package/dist/ezui/p-898b9906.js +0 -1
- package/dist/ezui/p-9c3c9da8.entry.js +0 -1
- package/dist/ezui/p-a27dafa4.entry.js +0 -1
- package/dist/ezui/p-a3ff4f0e.entry.js +0 -1
- package/dist/ezui/p-aba3fa6c.entry.js +0 -1
- package/dist/ezui/p-b3e978aa.entry.js +0 -1
- package/dist/ezui/p-cccd8cde.entry.js +0 -1
- package/dist/ezui/p-cf283c4a.entry.js +0 -1
- package/dist/ezui/p-d0671e14.entry.js +0 -1
- package/dist/ezui/p-e0f06d73.entry.js +0 -1
- package/dist/ezui/p-ed835b36.entry.js +0 -1
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
2
|
export declare class EzCollapsibleBox {
|
|
3
|
+
private _refLabel;
|
|
4
|
+
private _refTextEdit;
|
|
5
|
+
private _hostElement;
|
|
6
|
+
private _activeEditText;
|
|
3
7
|
/**
|
|
4
8
|
* Valor externalizado que garante a exibição ou não do componente.
|
|
5
9
|
*/
|
|
@@ -21,17 +25,58 @@ export declare class EzCollapsibleBox {
|
|
|
21
25
|
*/
|
|
22
26
|
stretchTitle: boolean;
|
|
23
27
|
/**
|
|
28
|
+
* Ativa o ícone para remoção do componente.
|
|
29
|
+
*/
|
|
30
|
+
removable: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Ativa o ícone para edição do componente.
|
|
33
|
+
*/
|
|
34
|
+
editable: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Define uma condição para salvar ou não uma alteração.
|
|
37
|
+
*/
|
|
38
|
+
conditionalSave: Function;
|
|
39
|
+
/**
|
|
24
40
|
* Evento disparado ao mudar o estado do componente (onEzChange).
|
|
25
41
|
*/
|
|
26
42
|
ezChange: EventEmitter<boolean>;
|
|
27
|
-
|
|
43
|
+
/**
|
|
44
|
+
* Evento disparado ao remover o componente (onEzRemove).
|
|
45
|
+
*/
|
|
46
|
+
ezRemove: EventEmitter<EzCollapsibleBox>;
|
|
47
|
+
/**
|
|
48
|
+
* Evento disparado ao concluir edição da label (onEzSaveEditLabel).
|
|
49
|
+
*/
|
|
50
|
+
ezSaveEditLabel: EventEmitter<CustomEvent>;
|
|
51
|
+
/**
|
|
52
|
+
* Evento disparado quando o modo de edição da label for aberto e fechado (onEzEditLabelMode).
|
|
53
|
+
*/
|
|
54
|
+
ezEditLabelMode: EventEmitter<boolean>;
|
|
28
55
|
/**
|
|
29
56
|
* Esconde ou revela o conteúdo do componente.
|
|
30
57
|
*/
|
|
31
58
|
showHide(): Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* Aplica focus no campo de edição de título.
|
|
61
|
+
*/
|
|
62
|
+
applyFocusTextEdit(): Promise<void>;
|
|
63
|
+
/**
|
|
64
|
+
* Fecha a edição de título.
|
|
65
|
+
*/
|
|
66
|
+
cancelEdition(): Promise<void>;
|
|
67
|
+
observeCollapsedValue(): void;
|
|
32
68
|
/**
|
|
33
69
|
* Retorna o tamanho configurado do texto e do ícone.
|
|
34
70
|
*/
|
|
35
71
|
getHeaderSize(): string;
|
|
72
|
+
private removeElement;
|
|
73
|
+
private editLabel;
|
|
74
|
+
private confirmRemove;
|
|
75
|
+
private saveEditionText;
|
|
76
|
+
getStyledLabel(): {
|
|
77
|
+
fontSize: string;
|
|
78
|
+
fontWeight: string;
|
|
79
|
+
fontFamily: string;
|
|
80
|
+
};
|
|
36
81
|
render(): any;
|
|
37
82
|
}
|
|
@@ -22,7 +22,7 @@ export declare class EzComboBox {
|
|
|
22
22
|
/**
|
|
23
23
|
* Valor selecionado no campo
|
|
24
24
|
*/
|
|
25
|
-
value:
|
|
25
|
+
value: IOption | string;
|
|
26
26
|
/**
|
|
27
27
|
* Título do campo
|
|
28
28
|
*/
|
|
@@ -34,7 +34,7 @@ export declare class EzComboBox {
|
|
|
34
34
|
/**
|
|
35
35
|
* Array no formato "{value: string, label: string}" que alimenta as opções do Combobox
|
|
36
36
|
*/
|
|
37
|
-
options: Array<
|
|
37
|
+
options: Array<IOption>;
|
|
38
38
|
/**
|
|
39
39
|
* Quando há um problema de validação, serve como orientação ao usuário
|
|
40
40
|
*/
|
|
@@ -74,9 +74,9 @@ export declare class EzComboBox {
|
|
|
74
74
|
/**
|
|
75
75
|
* Evento que é disparado ao alterar o valor do componente
|
|
76
76
|
*/
|
|
77
|
-
ezChange: EventEmitter<
|
|
77
|
+
ezChange: EventEmitter<IOption>;
|
|
78
78
|
observeErrorMessage(): void;
|
|
79
|
-
observeValue(newValue:
|
|
79
|
+
observeValue(newValue: IOption | string, oldValue: IOption | string): void;
|
|
80
80
|
/**
|
|
81
81
|
* Realiza o foco no componente de seleção
|
|
82
82
|
*/
|
|
@@ -122,7 +122,17 @@ export declare class EzComboBox {
|
|
|
122
122
|
private onTextInputFocusOutHandler;
|
|
123
123
|
render(): any;
|
|
124
124
|
}
|
|
125
|
-
export interface
|
|
125
|
+
export interface IOption {
|
|
126
126
|
value: string;
|
|
127
127
|
label: string;
|
|
128
128
|
}
|
|
129
|
+
export interface ISearchArgument {
|
|
130
|
+
mode: SearchMode;
|
|
131
|
+
argument: string;
|
|
132
|
+
}
|
|
133
|
+
declare enum SearchMode {
|
|
134
|
+
ADVANCED = "ADVANCED",
|
|
135
|
+
PRELOAD = "PRELOAD",
|
|
136
|
+
PREDICTIVE = "PREDICTIVE"
|
|
137
|
+
}
|
|
138
|
+
export {};
|
|
@@ -60,7 +60,10 @@ export declare class EzDialog {
|
|
|
60
60
|
show(title: string, message: string, dialogType: DialogType, confirm: boolean, icon: string, labelCancel: string, labelConfirm: string, btnConfirmDanger: boolean): Promise<boolean>;
|
|
61
61
|
isCritical(dialogType: DialogType): boolean;
|
|
62
62
|
getIconElement(message: Message): any;
|
|
63
|
+
getIconClass(dialogType: DialogType): string;
|
|
64
|
+
getIconName(message: Message): string;
|
|
63
65
|
getTypeIndicatorElement(message: Message): any;
|
|
66
|
+
getClassIconIndicator(dialogType: DialogType): string;
|
|
64
67
|
getClassContainer(message: Message): "dialog__container dialog__container--default" | "dialog__container";
|
|
65
68
|
getClassTitleLabel(message: Message): "title title__label title__label--no-icon" | "title title__label";
|
|
66
69
|
componentWillRender(): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DataUnit } from "@sankhyalabs/core";
|
|
2
|
-
import {
|
|
2
|
+
import { IInvalidField } from "./ez-form";
|
|
3
3
|
export default class DataBinder {
|
|
4
4
|
private _dataUnit;
|
|
5
5
|
private _fields;
|
|
@@ -7,7 +7,7 @@ export default class DataBinder {
|
|
|
7
7
|
constructor(dataUnit: DataUnit);
|
|
8
8
|
bind(fields: Array<HTMLElement>): void;
|
|
9
9
|
onDisconnectedCallback(): void;
|
|
10
|
-
markInvalid(field:
|
|
10
|
+
markInvalid(field: IInvalidField): void;
|
|
11
11
|
private clearInvalid;
|
|
12
12
|
updateValue(fieldName: string, field: HTMLElement): void;
|
|
13
13
|
private updateErrorMessage;
|
|
@@ -12,11 +12,11 @@ export declare class EzForm implements DUActionInterceptor {
|
|
|
12
12
|
/**
|
|
13
13
|
* Configuração dos campos.
|
|
14
14
|
*/
|
|
15
|
-
config:
|
|
15
|
+
config: IFormConfig;
|
|
16
16
|
/**
|
|
17
17
|
* Validador responsável por checar a integridade das informações do registro
|
|
18
18
|
*/
|
|
19
|
-
recordsValidator:
|
|
19
|
+
recordsValidator: IRecordValidator;
|
|
20
20
|
/**
|
|
21
21
|
* Evento disparado quando o formulário está disponível na DOM.
|
|
22
22
|
*/
|
|
@@ -30,6 +30,7 @@ export declare class EzForm implements DUActionInterceptor {
|
|
|
30
30
|
private getDynamicContent;
|
|
31
31
|
private processMetadata;
|
|
32
32
|
private isStatic;
|
|
33
|
+
private getValidatedValue;
|
|
33
34
|
interceptAction(action: DataUnitAction): DataUnitAction | Promise<DataUnitAction>;
|
|
34
35
|
componentWillLoad(): void;
|
|
35
36
|
onDataUnitAction: (action: any) => void;
|
|
@@ -37,33 +38,42 @@ export declare class EzForm implements DUActionInterceptor {
|
|
|
37
38
|
disconnectedCallback(): void;
|
|
38
39
|
render(): any;
|
|
39
40
|
}
|
|
40
|
-
export interface
|
|
41
|
+
export interface IFieldConfig {
|
|
41
42
|
name: string;
|
|
42
43
|
label?: string;
|
|
43
44
|
group?: string;
|
|
44
|
-
tab?: string |
|
|
45
|
-
defaultValue?:
|
|
45
|
+
tab?: string | ITabConfig;
|
|
46
|
+
defaultValue?: IDefaultConfig;
|
|
46
47
|
visible?: boolean;
|
|
47
48
|
readOnly?: boolean;
|
|
48
49
|
required?: boolean;
|
|
49
50
|
cleanOnCopy?: boolean;
|
|
50
51
|
}
|
|
51
|
-
export interface
|
|
52
|
+
export interface IDefaultConfig {
|
|
53
|
+
type?: string;
|
|
54
|
+
value?: string;
|
|
55
|
+
}
|
|
56
|
+
export interface ITabConfig {
|
|
52
57
|
label: string;
|
|
53
58
|
visible?: boolean;
|
|
54
59
|
order?: number;
|
|
55
60
|
}
|
|
56
|
-
export interface
|
|
57
|
-
|
|
61
|
+
export interface IFormConfig {
|
|
62
|
+
tabs?: Array<ITabConfig>;
|
|
63
|
+
fields: Array<IFieldConfig>;
|
|
64
|
+
defaultConfiguration?: boolean;
|
|
65
|
+
}
|
|
66
|
+
export interface IRecordValidator {
|
|
67
|
+
validateRecord(form: EzForm, record: Record): IValidationResult;
|
|
58
68
|
}
|
|
59
|
-
export interface
|
|
69
|
+
export interface IValidationResult {
|
|
60
70
|
isValid: boolean;
|
|
61
|
-
invalidFields?: Array<
|
|
71
|
+
invalidFields?: Array<IInvalidField>;
|
|
62
72
|
errorTitle?: string;
|
|
63
73
|
errorMessage?: string;
|
|
64
74
|
infoMessage?: string;
|
|
65
75
|
}
|
|
66
|
-
export interface
|
|
76
|
+
export interface IInvalidField {
|
|
67
77
|
name: string;
|
|
68
78
|
message: string;
|
|
69
79
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const buildSwitch: (fieldConfig:
|
|
3
|
-
export declare const buildCheckBox: (fieldConfig:
|
|
1
|
+
import { IFieldConfig } from "../../ez-form";
|
|
2
|
+
export declare const buildSwitch: (fieldConfig: IFieldConfig) => HTMLElement;
|
|
3
|
+
export declare const buildCheckBox: (fieldConfig: IFieldConfig) => HTMLElement;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
label: any;
|
|
4
|
-
readOnly: any;
|
|
5
|
-
}, properties: any) => HTMLElement;
|
|
1
|
+
import { IFieldConfig } from "../../ez-form";
|
|
2
|
+
export declare const buildDecimal: ({ name, label, readOnly }: IFieldConfig, properties: any) => HTMLElement;
|
|
6
3
|
export declare const buildInteger: ({ name, label, readOnly }: {
|
|
7
4
|
name: any;
|
|
8
5
|
label: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IFieldConfig, IFormConfig } from "../ez-form";
|
|
2
2
|
import { DataUnit, FieldDescriptor } from "@sankhyalabs/core";
|
|
3
3
|
export declare class FormMetadata {
|
|
4
4
|
private _sheets;
|
|
@@ -23,11 +23,11 @@ export interface FormSheetMetadata {
|
|
|
23
23
|
}
|
|
24
24
|
export interface FieldMetadata {
|
|
25
25
|
descriptor?: FieldDescriptor;
|
|
26
|
-
config?:
|
|
26
|
+
config?: IFieldConfig;
|
|
27
27
|
}
|
|
28
28
|
export interface FieldSetMetadata {
|
|
29
29
|
label?: string;
|
|
30
30
|
items?: Array<FieldMetadata>;
|
|
31
31
|
}
|
|
32
32
|
export declare const buildFromDataUnit: (dataUnit: DataUnit) => FormMetadata;
|
|
33
|
-
export declare const buildFromConfig: (
|
|
33
|
+
export declare const buildFromConfig: (config: IFormConfig, dataUnit: DataUnit) => FormMetadata;
|
|
@@ -114,7 +114,15 @@ export interface EzGridOptions {
|
|
|
114
114
|
* Endereço do servidor para buscar os dados.
|
|
115
115
|
*/
|
|
116
116
|
serverURL: string;
|
|
117
|
+
/**
|
|
118
|
+
* Repositório de dados, controla a manipulação dos dados.
|
|
119
|
+
*/
|
|
117
120
|
dataUnit: DataUnit;
|
|
121
|
+
/**
|
|
122
|
+
* Configuração do valor da coluna de status.
|
|
123
|
+
* Exemplo: { "RECDESP": { "-1" : "#BD0025", "1" : "#157A00" } }
|
|
124
|
+
*/
|
|
125
|
+
statusResolver: IStatusResolver;
|
|
118
126
|
}
|
|
119
127
|
/**
|
|
120
128
|
* Representa cada coluna da grade.
|
|
@@ -228,3 +236,6 @@ export interface EzGridColumnConfig {
|
|
|
228
236
|
*/
|
|
229
237
|
ascending?: boolean;
|
|
230
238
|
}
|
|
239
|
+
export interface IStatusResolver {
|
|
240
|
+
[fieldName: string]: Map<String, any>;
|
|
241
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import EzGridController, { EzGridColumn, EzGridColumnConfig, EzGridColumnMenuItemDef, EzGridOptions } from "../EzGridController";
|
|
2
1
|
import { Sort, SortingProvider } from "@sankhyalabs/core";
|
|
2
|
+
import EzGridController, { EzGridColumn, EzGridColumnConfig, EzGridColumnMenuItemDef, EzGridOptions } from "../EzGridController";
|
|
3
3
|
export default class AgGridController implements EzGridController, SortingProvider {
|
|
4
4
|
private readonly DEFAULT_ROW_HEIGHT;
|
|
5
5
|
private readonly CHECK_BOX_COL_ID;
|
|
6
|
+
private readonly STATUS_COL_ID;
|
|
6
7
|
private readonly RECORD_ARCHIVE_COL_ID;
|
|
7
8
|
private readonly BLOCK_LOAD_DEBOUNCE;
|
|
8
9
|
private _grid;
|
|
@@ -17,6 +18,7 @@ export default class AgGridController implements EzGridController, SortingProvid
|
|
|
17
18
|
private _idAttribName;
|
|
18
19
|
private _dataSource;
|
|
19
20
|
private _colDefs;
|
|
21
|
+
private _statusResolver;
|
|
20
22
|
constructor(enterprise: boolean);
|
|
21
23
|
getSort(): Array<Sort>;
|
|
22
24
|
initDatagrid(container: HTMLElement, options: EzGridOptions): void;
|
|
@@ -39,6 +41,8 @@ export default class AgGridController implements EzGridController, SortingProvid
|
|
|
39
41
|
quickFilter(term: string): void;
|
|
40
42
|
setSelectedIndex(index: number): void;
|
|
41
43
|
private buildColDef;
|
|
44
|
+
private getInitCellStyle;
|
|
45
|
+
private getStyleByColumn;
|
|
42
46
|
private getFormatterByColumn;
|
|
43
47
|
private onCallStateChange;
|
|
44
48
|
private isUIEvent;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ICellRendererComp, ICellRendererParams } from "ag-grid-community";
|
|
2
|
+
export declare class CellRenderer implements ICellRendererComp {
|
|
3
|
+
private _eGui;
|
|
4
|
+
init(params: ICellRendererParams | any): void;
|
|
5
|
+
refresh(params: ICellRendererParams | any): boolean;
|
|
6
|
+
destroy(): void;
|
|
7
|
+
getGui(): any;
|
|
8
|
+
private renderStatus;
|
|
9
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DataUnit } from "@sankhyalabs/core";
|
|
2
2
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
3
|
-
import EzGridController, { EzGridColumn, EzGridColumnConfig, EzGridColumStateEvent, IGridConfig } from "./controller/EzGridController";
|
|
3
|
+
import EzGridController, { EzGridColumn, EzGridColumnConfig, EzGridColumStateEvent, IGridConfig, IStatusResolver } from "./controller/EzGridController";
|
|
4
4
|
export declare class EzGrid {
|
|
5
5
|
_gridConfig: HTMLEzGridConfigElement;
|
|
6
6
|
_container: HTMLElement;
|
|
@@ -38,9 +38,14 @@ export declare class EzGrid {
|
|
|
38
38
|
*/
|
|
39
39
|
serverUrl: string;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Repositório de dados, controla a manipulação dos dados.
|
|
42
42
|
*/
|
|
43
43
|
dataUnit: DataUnit;
|
|
44
|
+
/**
|
|
45
|
+
* Configuração do valor da coluna de status.
|
|
46
|
+
* Exemplo: { "RECDESP": { "-1" : "#BD0025", "1" : "#157A00" } }
|
|
47
|
+
*/
|
|
48
|
+
statusResolver: IStatusResolver;
|
|
44
49
|
/**
|
|
45
50
|
* Método responsável por receber a definição das colunas
|
|
46
51
|
*/
|
|
@@ -82,7 +87,7 @@ export declare class EzGrid {
|
|
|
82
87
|
nextPage(): void;
|
|
83
88
|
getPaginationControl(): Array<HTMLElement>;
|
|
84
89
|
observeConfig(config: IGridConfig): void;
|
|
85
|
-
closeGridConfig(): void
|
|
90
|
+
closeGridConfig(): Promise<void>;
|
|
86
91
|
openGridConfig(): Promise<void>;
|
|
87
92
|
render(): any;
|
|
88
93
|
}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
2
|
+
import { IOption } from '../../../ez-combo-box/ez-combo-box';
|
|
2
3
|
export declare class SelectBox {
|
|
3
4
|
ezChange: EventEmitter<string>;
|
|
4
|
-
selectedOption:
|
|
5
|
+
selectedOption: IOption | string;
|
|
5
6
|
render(): any;
|
|
6
7
|
}
|
|
7
|
-
interface Option {
|
|
8
|
-
value: string;
|
|
9
|
-
label: string;
|
|
10
|
-
}
|
|
11
|
-
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export declare class EzModalContainer {
|
|
3
|
+
_closeButton: HTMLElement;
|
|
4
|
+
_okButton: HTMLEzButtonElement;
|
|
5
|
+
/**
|
|
6
|
+
* Título do modal
|
|
7
|
+
*/
|
|
8
|
+
modalTitle: string;
|
|
9
|
+
/**
|
|
10
|
+
* Subtítulo (opcional), geralmente usado para orientação do usuário
|
|
11
|
+
*/
|
|
12
|
+
modalSubTitle: string;
|
|
13
|
+
/**
|
|
14
|
+
* Determina o texto do botão de cancelar
|
|
15
|
+
*/
|
|
16
|
+
cancelButtonLabel: string;
|
|
17
|
+
/**
|
|
18
|
+
* Determina o texto do botão de Ok
|
|
19
|
+
*/
|
|
20
|
+
okButtonLabel: string;
|
|
21
|
+
/**
|
|
22
|
+
* Variação de estado do botão de cancelar: [HIDDEN|ENABLED|DISABLED]
|
|
23
|
+
*/
|
|
24
|
+
cancelButtonStatus: string;
|
|
25
|
+
/**
|
|
26
|
+
* Variação de estado do botão de ok: [HIDDEN|ENABLED|DISABLED]
|
|
27
|
+
*/
|
|
28
|
+
okButtonStatus: string;
|
|
29
|
+
/**
|
|
30
|
+
* Representa a interação com o usuário.
|
|
31
|
+
* OK - Quando o botão é acionado
|
|
32
|
+
* CANCEL - Quando o botão de cancelar é acionado
|
|
33
|
+
* CLOSE - Quando o botão de fechar é acionado.
|
|
34
|
+
* LOAD - Quando o modal é carregado (eventualmente pode ser usado para dar foco a um elemento específico)
|
|
35
|
+
*/
|
|
36
|
+
ezModalAction: EventEmitter<string>;
|
|
37
|
+
private cancelIsVisible;
|
|
38
|
+
private okIsVisible;
|
|
39
|
+
componentDidLoad(): void;
|
|
40
|
+
focusLast(_evt: any): void;
|
|
41
|
+
focusFirst(_evt: any): void;
|
|
42
|
+
render(): any;
|
|
43
|
+
}
|
|
@@ -15,6 +15,10 @@ export declare class EzPopup {
|
|
|
15
15
|
* Define se o componente utilizará um cabeçalho com botão de fechamento.
|
|
16
16
|
*/
|
|
17
17
|
useHeader: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Define se o componente utilizará um cabeçalho com botão de fechamento.
|
|
20
|
+
*/
|
|
21
|
+
heightMode: string;
|
|
18
22
|
/**
|
|
19
23
|
* Evento disparado ao clicar no botão de fechar (onEzClosePopup).
|
|
20
24
|
*/
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { IOption } from "../ez-combo-box/ez-combo-box";
|
|
3
3
|
export declare class EzSearch {
|
|
4
4
|
private _elem;
|
|
5
5
|
private _comboElement;
|
|
6
6
|
/**
|
|
7
7
|
* Código do registro selecionado
|
|
8
8
|
*/
|
|
9
|
-
value:
|
|
9
|
+
value: IOption | string;
|
|
10
10
|
/**
|
|
11
11
|
* Título do campo
|
|
12
12
|
*/
|
|
@@ -18,7 +18,7 @@ export declare class EzSearch {
|
|
|
18
18
|
/**
|
|
19
19
|
* Um evento disparado quando o estado do componente é alterado (onEzChange).
|
|
20
20
|
*/
|
|
21
|
-
ezChange: EventEmitter<
|
|
21
|
+
ezChange: EventEmitter<IOption>;
|
|
22
22
|
/**
|
|
23
23
|
* Evento emitido ao clicar para abrir o popup
|
|
24
24
|
*/
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export declare class EzTextEdit {
|
|
3
|
+
private _inputElement;
|
|
4
|
+
private _valueBasis;
|
|
5
|
+
private _newValue;
|
|
6
|
+
/**
|
|
7
|
+
* Valor manipulado pelo componente através do input
|
|
8
|
+
*/
|
|
9
|
+
value: string;
|
|
10
|
+
/**
|
|
11
|
+
* Define atributos do estilo
|
|
12
|
+
*/
|
|
13
|
+
styled: IStyled;
|
|
14
|
+
/**
|
|
15
|
+
* Evento emitido ao salvar uma edição
|
|
16
|
+
*/
|
|
17
|
+
saveEdition: EventEmitter<any>;
|
|
18
|
+
/**
|
|
19
|
+
* Disparado ao cancelar uma edição
|
|
20
|
+
*/
|
|
21
|
+
cancelEdition: EventEmitter<any>;
|
|
22
|
+
/**
|
|
23
|
+
* Aplica focus no campo.
|
|
24
|
+
*/
|
|
25
|
+
applyFocusSelect(): Promise<void>;
|
|
26
|
+
private calcSizeInput;
|
|
27
|
+
private getWidthValue;
|
|
28
|
+
private setStyledInput;
|
|
29
|
+
private handleSaveEdition;
|
|
30
|
+
private setNewValue;
|
|
31
|
+
componentDidLoad(): void;
|
|
32
|
+
componentDidRender(): void;
|
|
33
|
+
render(): any;
|
|
34
|
+
}
|
|
35
|
+
export interface IStyled {
|
|
36
|
+
fontSize: string;
|
|
37
|
+
fontWeight: string;
|
|
38
|
+
fontFamily: string;
|
|
39
|
+
}
|
|
@@ -48,6 +48,10 @@ export declare class EzTextInput {
|
|
|
48
48
|
* Define o modo do tamanho do campo; opções: slim e regular.
|
|
49
49
|
*/
|
|
50
50
|
mode: string;
|
|
51
|
+
/**
|
|
52
|
+
* Define se o campo contará com bordas ou não
|
|
53
|
+
*/
|
|
54
|
+
noBorder: boolean;
|
|
51
55
|
observeErrorMessage(): void;
|
|
52
56
|
observeMask(): void;
|
|
53
57
|
observeValue(newValue: string, oldValue: string): void;
|
|
@@ -55,6 +59,7 @@ export declare class EzTextInput {
|
|
|
55
59
|
private isFocused;
|
|
56
60
|
private isSlaveMode;
|
|
57
61
|
private adjustColorContentSlot;
|
|
62
|
+
private adjustBorderInput;
|
|
58
63
|
/**
|
|
59
64
|
* Faz o foco no componente de input
|
|
60
65
|
*/
|
|
@@ -3,12 +3,16 @@ export declare class EzViewStack {
|
|
|
3
3
|
private _elemList;
|
|
4
4
|
private _focusedIndex;
|
|
5
5
|
private _totalStackItems;
|
|
6
|
+
/**
|
|
7
|
+
* Indetificador único do componente
|
|
8
|
+
*/
|
|
9
|
+
private _dataKey;
|
|
6
10
|
/**
|
|
7
11
|
* Exibe a aba desejada de acordo com o index passado na tela fazendo com a ativa atual seja removida ou oculta dependendo da hidePolicy.
|
|
8
12
|
*/
|
|
9
13
|
show(index: number): Promise<void>;
|
|
10
14
|
/**
|
|
11
|
-
* Retorna o index que
|
|
15
|
+
* Retorna o index que está atualmente ativo e sendo exibido.
|
|
12
16
|
*/
|
|
13
17
|
getSelectedIndex(): Promise<number>;
|
|
14
18
|
policyHideRemove(): void;
|