@sankhyalabs/ezui 5.22.0-dev.4 → 5.22.0-dev.41
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/DataBinder-3b083480.js +445 -0
- package/dist/cjs/FocusResolver-885f2173.js +35 -0
- package/dist/cjs/ez-button.cjs.entry.js +11 -5
- package/dist/cjs/ez-card-item_3.cjs.entry.js +21 -6
- package/dist/cjs/ez-chart.cjs.entry.js +1 -1
- package/dist/cjs/ez-check.cjs.entry.js +1 -1
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
- package/dist/cjs/ez-combo-box.cjs.entry.js +64 -11
- package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +33 -4
- package/dist/cjs/ez-date-input.cjs.entry.js +12 -3
- package/dist/cjs/ez-date-time-input.cjs.entry.js +9 -3
- package/dist/cjs/ez-dialog.cjs.entry.js +9 -1
- package/dist/cjs/{ez-dropdown.cjs.entry.js → ez-dropdown_2.cjs.entry.js} +75 -8
- package/dist/cjs/ez-form-view.cjs.entry.js +5 -4
- package/dist/cjs/ez-form.cjs.entry.js +4 -324
- package/dist/cjs/ez-grid.cjs.entry.js +14742 -70307
- package/dist/cjs/ez-list.cjs.entry.js +6 -7
- package/dist/cjs/ez-modal-container.cjs.entry.js +2 -1
- package/dist/cjs/ez-modal.cjs.entry.js +19 -4
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-number-input.cjs.entry.js +13 -1
- package/dist/cjs/ez-popup.cjs.entry.js +21 -2
- package/dist/cjs/ez-scroller_2.cjs.entry.js +3 -3
- package/dist/cjs/ez-search.cjs.entry.js +66 -33
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-button.cjs.entry.js +2 -2
- package/dist/cjs/ez-split-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-area.cjs.entry.js +67 -5
- package/dist/cjs/ez-text-input.cjs.entry.js +51 -5
- package/dist/cjs/ez-time-input.cjs.entry.js +6 -0
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/index-9e5554cb.js +2 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/ez-button/ez-button.css +21 -11
- package/dist/collection/components/ez-button/ez-button.js +12 -6
- package/dist/collection/components/ez-card-item/ez-card-item.css +60 -10
- package/dist/collection/components/ez-card-item/ez-card-item.js +30 -3
- package/dist/collection/components/ez-check/ez-check.css +1 -6
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +2 -2
- package/dist/collection/components/ez-combo-box/ez-combo-box.css +1 -1
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +109 -13
- package/dist/collection/components/ez-date-input/ez-date-input.css +1 -1
- package/dist/collection/components/ez-date-input/ez-date-input.js +38 -4
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +1 -1
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +35 -4
- package/dist/collection/components/ez-dialog/ez-dialog.js +9 -1
- package/dist/collection/components/ez-dropdown/ez-dropdown.js +33 -8
- package/dist/collection/components/ez-filter-input/ez-filter-input.js +35 -4
- package/dist/collection/components/ez-form/ez-form.js +1 -0
- package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +47 -5
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +3 -2
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +2 -2
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +238 -55
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +107 -5
- package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +222 -42
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +16 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +8 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +2 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js +1 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js +1 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +4 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js +4 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +2 -0
- package/dist/collection/components/ez-grid/ez-grid.css +17 -7
- package/dist/collection/components/ez-grid/ez-grid.js +181 -7
- package/dist/collection/components/ez-list/ez-list.css +2 -1
- package/dist/collection/components/ez-list/ez-list.js +6 -7
- package/dist/collection/components/ez-modal/ez-modal.css +1 -1
- package/dist/collection/components/ez-modal/ez-modal.js +36 -3
- package/dist/collection/components/ez-modal-container/ez-modal-container.js +20 -1
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +1 -1
- package/dist/collection/components/ez-number-input/ez-number-input.js +49 -1
- package/dist/collection/components/ez-popup/ez-popup.css +5 -1
- package/dist/collection/components/ez-popup/ez-popup.js +38 -1
- package/dist/collection/components/ez-scroller/ez-scroller.css +1 -0
- package/dist/collection/components/ez-search/ez-search.css +21 -10
- package/dist/collection/components/ez-search/ez-search.js +147 -34
- package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +3 -0
- package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +1 -1
- package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css +3 -1
- package/dist/collection/components/ez-split-button/ez-split-button.css +48 -12
- package/dist/collection/components/ez-split-button/ez-split-button.js +3 -3
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +1 -0
- package/dist/collection/components/ez-text-area/ez-text-area.css +73 -28
- package/dist/collection/components/ez-text-area/ez-text-area.js +103 -3
- package/dist/collection/components/ez-text-input/ez-text-input.css +41 -71
- package/dist/collection/components/ez-text-input/ez-text-input.js +86 -4
- package/dist/collection/components/ez-time-input/ez-time-input.js +24 -0
- package/dist/collection/sw.js +46 -0
- package/dist/collection/utils/FocusResolver.js +31 -0
- package/dist/collection/utils/form/DataBinder.js +20 -5
- package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +1 -1
- package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js +1 -0
- package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +7 -1
- package/dist/custom-elements/index.js +15623 -70811
- package/dist/esm/DataBinder-02fa9bb9.js +441 -0
- package/dist/esm/FocusResolver-1ccbf850.js +33 -0
- package/dist/esm/ez-button.entry.js +11 -5
- package/dist/esm/ez-card-item_3.entry.js +21 -6
- package/dist/esm/ez-chart.entry.js +1 -1
- package/dist/esm/ez-check.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +1 -1
- package/dist/esm/ez-combo-box.entry.js +65 -12
- package/dist/esm/ez-custom-form-input_2.entry.js +34 -5
- package/dist/esm/ez-date-input.entry.js +12 -3
- package/dist/esm/ez-date-time-input.entry.js +9 -3
- package/dist/esm/ez-dialog.entry.js +9 -1
- package/dist/esm/{ez-dropdown.entry.js → ez-dropdown_2.entry.js} +75 -9
- package/dist/esm/ez-form-view.entry.js +5 -4
- package/dist/esm/ez-form.entry.js +3 -323
- package/dist/esm/ez-grid.entry.js +14685 -70250
- package/dist/esm/ez-list.entry.js +6 -7
- package/dist/esm/ez-modal-container.entry.js +2 -1
- package/dist/esm/ez-modal.entry.js +19 -4
- package/dist/esm/ez-multi-selection-list.entry.js +1 -1
- package/dist/esm/ez-number-input.entry.js +13 -1
- package/dist/esm/ez-popup.entry.js +21 -2
- package/dist/esm/ez-scroller_2.entry.js +3 -3
- package/dist/esm/ez-search.entry.js +66 -33
- package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
- package/dist/esm/ez-split-button.entry.js +2 -2
- package/dist/esm/ez-split-item.entry.js +1 -1
- package/dist/esm/ez-text-area.entry.js +67 -5
- package/dist/esm/ez-text-input.entry.js +51 -5
- package/dist/esm/ez-time-input.entry.js +6 -0
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/index-5a720e56.js +2 -6
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-076e868b.entry.js +1 -0
- package/dist/ezui/p-0e1cc2d1.entry.js +1 -0
- package/dist/ezui/p-16e21a40.entry.js +1 -0
- package/dist/ezui/p-2de9f0aa.entry.js +1 -0
- package/dist/ezui/p-3b546374.entry.js +1 -0
- package/dist/ezui/p-3cc9b84a.entry.js +1 -0
- package/dist/ezui/p-3d38bfea.entry.js +1 -0
- package/dist/ezui/p-455e737c.js +1 -0
- package/dist/ezui/p-554522db.entry.js +1 -0
- package/dist/ezui/p-57528846.entry.js +1 -0
- package/dist/ezui/p-6bc25bc8.entry.js +1 -0
- package/dist/ezui/p-70f1c812.entry.js +1 -0
- package/dist/ezui/p-7f5afb1f.entry.js +1 -0
- package/dist/ezui/p-802dc63e.entry.js +1 -0
- package/dist/ezui/p-880f73ea.entry.js +309 -0
- package/dist/ezui/p-8f026744.entry.js +1 -0
- package/dist/ezui/p-940760bf.entry.js +1 -0
- package/dist/ezui/p-a4ee2991.entry.js +1 -0
- package/dist/ezui/{p-82ac8b06.entry.js → p-a563df31.entry.js} +1 -1
- package/dist/ezui/p-a921e3e7.entry.js +1 -0
- package/dist/ezui/p-b858fc6e.entry.js +1 -0
- package/dist/ezui/p-be34c77f.entry.js +1 -0
- package/dist/ezui/{p-9aa27e69.entry.js → p-bef7daac.entry.js} +1 -1
- package/dist/ezui/p-bfc30e61.entry.js +1 -0
- package/dist/ezui/p-bfc59380.entry.js +1 -0
- package/dist/ezui/p-d960a031.entry.js +1 -0
- package/dist/ezui/p-dc628ed3.js +1 -0
- package/dist/ezui/{p-33792b2b.entry.js → p-e18d9e6a.entry.js} +1 -1
- package/dist/ezui/p-e3ec7422.entry.js +1 -0
- package/dist/ezui/{p-31674f8e.entry.js → p-e7395eae.entry.js} +1 -1
- package/dist/types/components/ez-button/ez-button.d.ts +2 -1
- package/dist/types/components/ez-card-item/ez-card-item.d.ts +5 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +12 -1
- package/dist/types/components/ez-date-input/ez-date-input.d.ts +6 -1
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +6 -1
- package/dist/types/components/ez-dialog/ez-dialog.d.ts +2 -0
- package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +4 -0
- package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +1 -1
- package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +6 -1
- package/dist/types/components/ez-form-view/custom-input/ez-custom-form-input.d.ts +7 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +1 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +56 -4
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +32 -4
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +23 -1
- package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +33 -7
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts +4 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/cellRendererStatus.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/selectionHeader.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +2 -1
- package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellRender.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellEditor.d.ts +1 -0
- package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +1 -1
- package/dist/types/components/ez-grid/ez-grid.d.ts +27 -1
- package/dist/types/components/ez-modal/ez-modal.d.ts +6 -0
- package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +4 -0
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +8 -0
- package/dist/types/components/ez-popup/ez-popup.d.ts +7 -0
- package/dist/types/components/ez-search/ez-search.d.ts +23 -2
- package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -1
- package/dist/types/components/ez-text-area/ez-text-area.d.ts +17 -0
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +9 -0
- package/dist/types/components/ez-time-input/ez-time-input.d.ts +4 -0
- package/dist/types/components.d.ts +211 -10
- package/dist/types/utils/FocusResolver.d.ts +5 -0
- package/dist/types/utils/customEditor/interfaces/ICustomEditor.d.ts +2 -0
- package/dist/types/utils/form/DataBinder.d.ts +3 -0
- package/dist/types/utils/validators/recordvalidator/IInvalidCells.d.ts +5 -0
- package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -1
- package/package.json +12 -4
- package/dist/cjs/RecordValidationProcessor-4c893e04.js +0 -102
- package/dist/cjs/ez-skeleton.cjs.entry.js +0 -67
- package/dist/esm/RecordValidationProcessor-b00b8b77.js +0 -99
- package/dist/esm/ez-skeleton.entry.js +0 -63
- package/dist/ezui/p-034e21ca.entry.js +0 -1
- package/dist/ezui/p-044d46d5.entry.js +0 -1
- package/dist/ezui/p-04f24913.js +0 -1
- package/dist/ezui/p-24ca32a3.entry.js +0 -1
- package/dist/ezui/p-2af4e2de.entry.js +0 -1
- package/dist/ezui/p-36180f4d.entry.js +0 -1
- package/dist/ezui/p-5fefcdc9.entry.js +0 -1
- package/dist/ezui/p-752c4069.entry.js +0 -1
- package/dist/ezui/p-81cffa53.entry.js +0 -1
- package/dist/ezui/p-81f99ace.entry.js +0 -1
- package/dist/ezui/p-8eef0f70.entry.js +0 -1
- package/dist/ezui/p-9634631d.entry.js +0 -1
- package/dist/ezui/p-9a11e223.entry.js +0 -1
- package/dist/ezui/p-9a23d513.entry.js +0 -1
- package/dist/ezui/p-9c2e2d68.entry.js +0 -1
- package/dist/ezui/p-a35b41e6.entry.js +0 -1
- package/dist/ezui/p-b0e71d23.entry.js +0 -1
- package/dist/ezui/p-b150ccd3.entry.js +0 -304
- package/dist/ezui/p-c3b7a23e.entry.js +0 -1
- package/dist/ezui/p-cd1a2e6b.entry.js +0 -1
- package/dist/ezui/p-dbeee5aa.entry.js +0 -1
- package/dist/ezui/p-de870657.entry.js +0 -1
- package/dist/ezui/p-e151e795.entry.js +0 -1
- package/dist/ezui/p-ee9315ff.entry.js +0 -1
- package/dist/ezui/p-f1c3f85d.entry.js +0 -1
- package/dist/ezui/p-f291db18.entry.js +0 -1
|
@@ -39,10 +39,16 @@ export declare class EzCustomFormInput {
|
|
|
39
39
|
* Retorna se o conteúdo é inválido.
|
|
40
40
|
*/
|
|
41
41
|
isInvalid(): Promise<boolean>;
|
|
42
|
+
watchValue(): void;
|
|
43
|
+
watchCustomEditor(): void;
|
|
44
|
+
watchFormViewField(newValue: IFormViewField | string, oldValue: IFormViewField): void;
|
|
45
|
+
watchDetailContext(): void;
|
|
46
|
+
watchBuilderFallback(): void;
|
|
47
|
+
watchSelectedRecord(newValue: Record | string, oldValue: Record): void;
|
|
42
48
|
private getContent;
|
|
43
49
|
private setValue;
|
|
44
50
|
private getValue;
|
|
45
51
|
private handleValue;
|
|
46
|
-
|
|
52
|
+
componentWillLoad(): void;
|
|
47
53
|
render(): any;
|
|
48
54
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { IFormViewField } from "../../interfaces/IFormViewField";
|
|
2
|
-
export declare const buildSearch: ({ name, label, readOnly, required, contextName, canShowError, optionLoader }: IFormViewField) => HTMLElement;
|
|
2
|
+
export declare const buildSearch: ({ name, label, readOnly, required, contextName, canShowError, optionLoader, props }: IFormViewField) => HTMLElement;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { IFormViewField } from "../../interfaces/IFormViewField";
|
|
2
|
-
export declare const buildTextInput: ({ name, label, readOnly, contextName, canShowError }: IFormViewField) => HTMLElement;
|
|
2
|
+
export declare const buildTextInput: ({ name, label, readOnly, contextName, canShowError, props }: IFormViewField) => HTMLElement;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { DataUnit, Filter } from '@sankhyalabs/core';
|
|
2
2
|
import { Components } from '../../../components';
|
|
3
|
-
import
|
|
4
|
-
import { IRecordValidator } from '../../../utils/form/interfaces';
|
|
3
|
+
import { IInvalidField, IRecordValidator } from '../../../utils/form/interfaces';
|
|
5
4
|
import { ICustomEditorInfo } from '../../../utils/customEditor/interfaces/ICustomEditorInfo';
|
|
6
5
|
import { ICustomRenderInfo } from '../../../utils/customRender/interfaces/ICustomRenderInfo';
|
|
7
6
|
import { ICustomFormatter } from '../interfaces';
|
|
7
|
+
import FilterCollumn = Components.FilterColumn;
|
|
8
8
|
/**
|
|
9
9
|
* O intuito desta abstração, é isolar o componente EzGrid de uma implementação
|
|
10
10
|
* específica, permitindo que usemos componentes de terceiros sem um acoplamento
|
|
@@ -89,7 +89,19 @@ export default interface EzGridController {
|
|
|
89
89
|
/**
|
|
90
90
|
* Método responsável por atualizar as linhas da grade
|
|
91
91
|
*/
|
|
92
|
-
refresh(): void;
|
|
92
|
+
refresh(scrollToSelectedRow?: boolean): void;
|
|
93
|
+
/**
|
|
94
|
+
* Método responsável limpar celulas invalidas
|
|
95
|
+
*/
|
|
96
|
+
clearInvalidCells(stopEdition?: boolean): void;
|
|
97
|
+
/**
|
|
98
|
+
* Metodo responsável por lidar com o cancelamento da edição na grade
|
|
99
|
+
*/
|
|
100
|
+
processEditionCanceled(): void;
|
|
101
|
+
/**
|
|
102
|
+
* Método responsável por lidar com edição contínua
|
|
103
|
+
*/
|
|
104
|
+
processContinuousInsert(): void;
|
|
93
105
|
/**
|
|
94
106
|
* Método responsável por atualizar as linhas selecionadas da grade
|
|
95
107
|
*/
|
|
@@ -107,9 +119,26 @@ export default interface EzGridController {
|
|
|
107
119
|
*/
|
|
108
120
|
setFocusFirstRow(): void;
|
|
109
121
|
/**
|
|
110
|
-
*
|
|
122
|
+
* Foca em uma linha específica, garante que ela está visível e inicia edição.
|
|
123
|
+
*/
|
|
124
|
+
startEditionOnRowByIndex(index: number): void;
|
|
125
|
+
/**
|
|
126
|
+
* Foca na última linha, garante que ela está visível e inicia edição.
|
|
127
|
+
*/
|
|
128
|
+
startEditionOnLastRow(): void;
|
|
129
|
+
/**
|
|
130
|
+
* Define se a grade será focada automaticamente.
|
|
111
131
|
*/
|
|
112
132
|
setAutoFocus(autoFocus: boolean): void;
|
|
133
|
+
/**
|
|
134
|
+
* Ativa inserção de registros no modo grade.
|
|
135
|
+
*/
|
|
136
|
+
setEnableGridInsert(enable: boolean): void;
|
|
137
|
+
/**
|
|
138
|
+
* Ativa/desativa a inserção continua na grade
|
|
139
|
+
* Só funciona quando a prop enableGridInsert está ativa
|
|
140
|
+
*/
|
|
141
|
+
setEnableContinuousInsert(enable: boolean): void;
|
|
113
142
|
/**
|
|
114
143
|
* Método responsável por retornar a configuração da grade.
|
|
115
144
|
*/
|
|
@@ -132,6 +161,19 @@ export default interface EzGridController {
|
|
|
132
161
|
clearFilter(): void;
|
|
133
162
|
setCustomFormatters(customFormatters: Map<string, ICustomFormatter>): void;
|
|
134
163
|
setFocus(): void;
|
|
164
|
+
savingCanceled(fields: Array<IInvalidField>, recordId: string): void;
|
|
165
|
+
destroy(): void;
|
|
166
|
+
registryListeners(): void;
|
|
167
|
+
resetPaginationState(): void;
|
|
168
|
+
stopEdit(): void;
|
|
169
|
+
/**
|
|
170
|
+
Remove coluna de seleção por checkbox
|
|
171
|
+
*/
|
|
172
|
+
hideSelectionColumn(): void;
|
|
173
|
+
/**
|
|
174
|
+
Mostra coluna de seleção por checkbox
|
|
175
|
+
*/
|
|
176
|
+
showSelectionColumn(): void;
|
|
135
177
|
}
|
|
136
178
|
/**
|
|
137
179
|
* Carrega as informações necessárias para contextualizar corretamente a instância.
|
|
@@ -206,6 +248,16 @@ export interface EzGridOptions {
|
|
|
206
248
|
* Define se a grid será focada ao ser carregada.
|
|
207
249
|
*/
|
|
208
250
|
autoFocus: boolean;
|
|
251
|
+
/**
|
|
252
|
+
* Ativa inserção de registros no modo grade.
|
|
253
|
+
*/
|
|
254
|
+
enableGridInsert?: boolean;
|
|
255
|
+
/**
|
|
256
|
+
* Ativa/desativa a inserção continua na grade
|
|
257
|
+
* Só funciona quando a prop enableGridInsert está ativa
|
|
258
|
+
*/
|
|
259
|
+
enableContinuousInsert?: boolean;
|
|
260
|
+
enableLockManger?: boolean;
|
|
209
261
|
}
|
|
210
262
|
/**
|
|
211
263
|
* Representa cada coluna da grade.
|
|
@@ -4,6 +4,7 @@ import EzGridController, { EzGridColumn, EzGridColumnConfig, EzGridColumnMenuIte
|
|
|
4
4
|
import { ICustomEditorInfo } from '../../../../utils/customEditor/interfaces/ICustomEditorInfo';
|
|
5
5
|
import { ICustomRenderInfo } from '../../../../utils/customRender/interfaces/ICustomRenderInfo';
|
|
6
6
|
import { ICustomFormatter } from '../../interfaces';
|
|
7
|
+
import { IInvalidField } from '../../../../utils/form/interfaces';
|
|
7
8
|
export default class AgGridController implements EzGridController, SortingProvider, FilterProvider {
|
|
8
9
|
private readonly DEFAULT_ROW_HEIGHT;
|
|
9
10
|
private readonly DEFAULT_HEADER_ROW_HEIGHT;
|
|
@@ -17,7 +18,6 @@ export default class AgGridController implements EzGridController, SortingProvid
|
|
|
17
18
|
private _columnStateChangeCallback;
|
|
18
19
|
private _selectionChangeCallback;
|
|
19
20
|
private _doubleClickCallBack;
|
|
20
|
-
private _enterprise;
|
|
21
21
|
private _menuItems;
|
|
22
22
|
private _multipleSelection;
|
|
23
23
|
private _dataUnit;
|
|
@@ -36,11 +36,14 @@ export default class AgGridController implements EzGridController, SortingProvid
|
|
|
36
36
|
private _customFormatters;
|
|
37
37
|
private _container;
|
|
38
38
|
private _options;
|
|
39
|
+
private observer;
|
|
40
|
+
private _gridShowDom;
|
|
41
|
+
private peddingExecutionsOnGridShow;
|
|
39
42
|
configFilterColumn(filterColumn: HTMLFilterColumnElement): void;
|
|
40
43
|
private handleFilteredColumnsChanged;
|
|
41
44
|
clearFilter(): void;
|
|
42
45
|
private showFilterColumn;
|
|
43
|
-
constructor(
|
|
46
|
+
constructor(_enterprise: boolean);
|
|
44
47
|
getGridConfig(): Array<EzGridColumnConfig>;
|
|
45
48
|
locateColumn(columnName: string): void;
|
|
46
49
|
getSort(_dataUnitName: string, defaultSorting: Array<Sort>): Array<Sort>;
|
|
@@ -64,19 +67,33 @@ export default class AgGridController implements EzGridController, SortingProvid
|
|
|
64
67
|
private updateSelectionForAll;
|
|
65
68
|
setData(data: Array<any>): void;
|
|
66
69
|
addRows(): void;
|
|
67
|
-
updateRows(): void;
|
|
70
|
+
updateRows(rows?: Array<any>): void;
|
|
71
|
+
private updateRowData;
|
|
68
72
|
selectAll(quietly?: boolean): void;
|
|
69
73
|
selectRows(rowIds: Array<string>, quietly?: boolean): void;
|
|
70
74
|
removeRows(): void;
|
|
71
75
|
changeValues(changes: any, rowIds?: Array<string>): void;
|
|
72
|
-
|
|
76
|
+
savingCanceled(fields: Array<IInvalidField>, recordId: string): void;
|
|
77
|
+
refresh(scrollToSelectedRow?: boolean): void;
|
|
78
|
+
private scrollToSelectedRow;
|
|
73
79
|
private focusOnGridContainer;
|
|
74
80
|
setFocus(): void;
|
|
75
81
|
setAutoFocus(autoFocus: boolean): void;
|
|
82
|
+
setEnableGridInsert(enable: boolean): void;
|
|
83
|
+
setEnableContinuousInsert(enable: boolean): void;
|
|
76
84
|
setFocusFirstRow(): void;
|
|
77
85
|
setFocusLastRow(): void;
|
|
86
|
+
startEditionOnRowByIndex(rowIndex: number): void;
|
|
87
|
+
startEditionOnLastRow(): void;
|
|
88
|
+
private syncSelectWithDataUnit;
|
|
89
|
+
private startEdition;
|
|
90
|
+
private getFirstEditableColl;
|
|
91
|
+
private isColumnEditable;
|
|
78
92
|
private setFocusOnRow;
|
|
93
|
+
private focusByCollAndRow;
|
|
79
94
|
setColumnsDef(cols: Array<EzGridColumn>): void;
|
|
95
|
+
hideSelectionColumn(): void;
|
|
96
|
+
showSelectionColumn(): void;
|
|
80
97
|
getColumnsDef(): Array<EzGridColumn>;
|
|
81
98
|
setColumnsState(state: Array<EzGridColumnConfig>): void;
|
|
82
99
|
private getAdaptiveWidth;
|
|
@@ -97,8 +114,19 @@ export default class AgGridController implements EzGridController, SortingProvid
|
|
|
97
114
|
private isElementResize;
|
|
98
115
|
private isUIEvent;
|
|
99
116
|
private onSelectionChange;
|
|
117
|
+
private handleExecuteProceedAutosave;
|
|
118
|
+
private processBuildSelectionChangeCallback;
|
|
119
|
+
private handleBuildSelectionChangeWithDU;
|
|
120
|
+
private buildSelectionChangeCallback;
|
|
100
121
|
private onRowDoubleClick;
|
|
101
122
|
private conditionalSet;
|
|
123
|
+
processEditionCanceled(): void;
|
|
102
124
|
setCellEditors(customEditors: Map<string, ICustomEditorInfo>): void;
|
|
103
125
|
setCellRenders(customRenders: Map<string, ICustomRenderInfo>): void;
|
|
126
|
+
clearInvalidCells(stopEdition?: boolean): void;
|
|
127
|
+
processContinuousInsert(): void;
|
|
128
|
+
destroy(): void;
|
|
129
|
+
registryListeners(): void;
|
|
130
|
+
resetPaginationState(): void;
|
|
131
|
+
stopEdit(): void;
|
|
104
132
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IServerSideDatasource, IServerSideGetRowsParams } from "ag-grid-community";
|
|
1
|
+
import { IServerSideDatasource, IServerSideGetRowsParams } from "@ag-grid-community/core";
|
|
2
2
|
import { DataUnit, QuickFilter } from '@sankhyalabs/core';
|
|
3
3
|
import EzGridController, { EzGridColumn, EzGridOptions } from "../EzGridController";
|
|
4
4
|
export default class DataSource implements IServerSideDatasource {
|
|
@@ -10,15 +10,37 @@ export default class DataSource implements IServerSideDatasource {
|
|
|
10
10
|
quickFilter: QuickFilter;
|
|
11
11
|
readonly RECORD_ARCHIVE = "__RECORD_ARCHIVE__";
|
|
12
12
|
private duObserver;
|
|
13
|
+
private handleDataSaved;
|
|
14
|
+
private handleEditionCanceled;
|
|
15
|
+
private handleSavingCanceled;
|
|
16
|
+
private handleDataChanged;
|
|
17
|
+
private createRecordIdList;
|
|
18
|
+
/**
|
|
19
|
+
* Nesse ponto, o registro já se encontra atualizado no DU,
|
|
20
|
+
* basta então passar seu valor para que a garde possa atualizar sua linha.
|
|
21
|
+
*/
|
|
22
|
+
private updateGridRowNodes;
|
|
23
|
+
private getRecordById;
|
|
24
|
+
/**
|
|
25
|
+
* Em caso de necessidade de reload (isWaitingToReload), eh preciso chamar o dataUnit.gotoPage, pois ele aplica tambem a ordenacao dos registros,
|
|
26
|
+
* enquanto que o _controller.refresh apenas recarrega os dados na ordem que atua.
|
|
27
|
+
*/
|
|
28
|
+
private handleRefreshOrReload;
|
|
29
|
+
private handleReload;
|
|
30
|
+
private handleRefresh;
|
|
31
|
+
private handleRecordsAdded;
|
|
32
|
+
private focusOnNewRecord;
|
|
13
33
|
private updateLoadedRecords;
|
|
14
34
|
private handleFocusFirstRow;
|
|
15
35
|
private isSilentChange;
|
|
16
36
|
constructor(dataUnit: DataUnit, controller: EzGridController, options: EzGridOptions);
|
|
17
37
|
private updateSelection;
|
|
18
38
|
setAutoFocus(autoFocus: boolean): void;
|
|
39
|
+
setEnableGridInsert(enable: boolean): void;
|
|
19
40
|
getRows(params: IServerSideGetRowsParams): void;
|
|
20
41
|
needReload(currentLoading: IServerSideGetRowsParams): boolean;
|
|
21
42
|
private callbackGetRows;
|
|
22
43
|
destroy(): void;
|
|
44
|
+
registryListeners(): void;
|
|
23
45
|
buildColumnDefs(): Array<EzGridColumn>;
|
|
24
46
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { DataUnit } from
|
|
2
|
-
import { CellPosition, ColDef, GridApi, GridOptions } from "ag-grid-community";
|
|
3
|
-
import { IRecordValidator } from
|
|
4
|
-
import { ICustomEditorInfo } from
|
|
5
|
-
import { ICustomRenderInfo } from
|
|
1
|
+
import { DataUnit, Record } from '@sankhyalabs/core';
|
|
2
|
+
import { CellPosition, ColDef, GridApi, GridOptions } from "@ag-grid-community/core";
|
|
3
|
+
import { IRecordValidator } from '../../../../utils/form/interfaces';
|
|
4
|
+
import { ICustomEditorInfo } from '../../../../utils/customEditor/interfaces/ICustomEditorInfo';
|
|
5
|
+
import { ICustomRenderInfo } from '../../../../utils/customRender/interfaces/ICustomRenderInfo';
|
|
6
|
+
import { IInvalidCell } from '../../../../utils/validators/recordvalidator/IInvalidCells';
|
|
6
7
|
export default class GridEditionManager {
|
|
7
8
|
private _dataUnit;
|
|
8
9
|
private _lastCellClicked;
|
|
9
10
|
private _lastCellEdited;
|
|
11
|
+
private _lastCellOpened;
|
|
10
12
|
private _targetEditionCell;
|
|
11
13
|
private _recordValidationProcessor;
|
|
12
14
|
private _gridOptions;
|
|
@@ -15,9 +17,22 @@ export default class GridEditionManager {
|
|
|
15
17
|
private _isGridEdition;
|
|
16
18
|
private _customEditors;
|
|
17
19
|
private _customRenders;
|
|
18
|
-
|
|
20
|
+
private _enableContinuousInsert;
|
|
21
|
+
private _enableGridInsert;
|
|
22
|
+
private _invalidCells;
|
|
23
|
+
private _nextInvalidCell;
|
|
24
|
+
private _currentEditLock;
|
|
25
|
+
private _lockerId;
|
|
26
|
+
constructor(dataUnit: DataUnit, useEnterLikeTab: boolean, recordsValidator: IRecordValidator, editionIsDisabled: () => boolean, customEditors?: Map<string, ICustomEditorInfo>, customRenders?: Map<string, ICustomRenderInfo>, enableContinuousInsert?: boolean, enableGridInsert?: boolean, lockerId?: string);
|
|
19
27
|
configureGrid(options: GridOptions): GridOptions;
|
|
20
|
-
|
|
28
|
+
updateCurrentEditorGuiValue(updatedRowValue: Record): void;
|
|
29
|
+
private lockFocusWhenAddRow;
|
|
30
|
+
private handleCellEditingStartedRowAdd;
|
|
31
|
+
private isSelectableRow;
|
|
32
|
+
private canContinuousInsert;
|
|
33
|
+
proceedAutoSave(): Promise<boolean>;
|
|
34
|
+
private saveDataUnit;
|
|
35
|
+
recordValidate(): Promise<void>;
|
|
21
36
|
navigateByEnterKey(keyboardEvent: KeyboardEvent): void;
|
|
22
37
|
getComponents(): {
|
|
23
38
|
[p: string]: any;
|
|
@@ -25,6 +40,7 @@ export default class GridEditionManager {
|
|
|
25
40
|
verifyClickToEdition(api: GridApi, cellClicked: CellPosition): void;
|
|
26
41
|
configureColumn(col: ColDef): ColDef;
|
|
27
42
|
private getRequiredFields;
|
|
43
|
+
private getFormRequiredFields;
|
|
28
44
|
private saveSuccess;
|
|
29
45
|
private saveFail;
|
|
30
46
|
private focusOnCell;
|
|
@@ -39,6 +55,16 @@ export default class GridEditionManager {
|
|
|
39
55
|
private isColEditable;
|
|
40
56
|
private isSecondClick;
|
|
41
57
|
private onCellEditRequest;
|
|
58
|
+
private handlePromiseValue;
|
|
59
|
+
private updateCellValue;
|
|
42
60
|
setCellEditors(customEditors: Map<string, ICustomEditorInfo>): void;
|
|
43
61
|
setCellRenders(customRenders: Map<string, ICustomRenderInfo>): void;
|
|
62
|
+
private pushInvalidCell;
|
|
63
|
+
getInvalidCells(): Array<IInvalidCell>;
|
|
64
|
+
getNextInvalidCell(): IInvalidCell;
|
|
65
|
+
processContinuousInsert(): Promise<void>;
|
|
66
|
+
clearInvalidCells(stopEdition?: boolean): void;
|
|
67
|
+
setEnableContinuousInsert(enable: boolean): void;
|
|
68
|
+
hasInvalidField(fieldName: string, recordId: string): boolean;
|
|
69
|
+
hasInvalidCell(): boolean;
|
|
44
70
|
}
|
package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICellEditorParams } from "ag-grid-community";
|
|
1
|
+
import { ICellEditorParams } from "@ag-grid-community/core";
|
|
2
2
|
import { ICustomEditorInfo } from "../../../../../utils/customEditor/interfaces/ICustomEditorInfo";
|
|
3
3
|
import EzCellEditor from "../editor/EzCellEditor";
|
|
4
4
|
interface CustomParamsEditor {
|
|
@@ -10,10 +10,13 @@ export default class EzGridCustomCellEditor extends EzCellEditor {
|
|
|
10
10
|
private _params;
|
|
11
11
|
private _defaultGui;
|
|
12
12
|
private _value;
|
|
13
|
+
private _customGui;
|
|
13
14
|
init(params: ICellEditorParams & CustomParamsEditor): void;
|
|
14
15
|
private getDefaultGui;
|
|
15
16
|
getGui(): HTMLElement;
|
|
16
17
|
private setValue;
|
|
17
18
|
getValue(): any;
|
|
19
|
+
afterGuiAttached(): void;
|
|
20
|
+
focusIn(): void;
|
|
18
21
|
}
|
|
19
22
|
export {};
|
package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICellRendererParams } from "ag-grid-community";
|
|
1
|
+
import { ICellRendererParams } from "@ag-grid-community/core";
|
|
2
2
|
import EzCellRender from "../editor/EzCellRender";
|
|
3
3
|
import { ICustomRenderInfo } from "../../../../../utils/customRender/interfaces/ICustomRenderInfo";
|
|
4
4
|
interface CustomParamsRender {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICellRendererComp, ICellRendererParams } from "ag-grid-community";
|
|
1
|
+
import { ICellRendererComp, ICellRendererParams } from "@ag-grid-community/core";
|
|
2
2
|
export declare class CellRendererStatus implements ICellRendererComp {
|
|
3
3
|
private readonly DEFAULT_COLOR;
|
|
4
4
|
private _eGui;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICellEditorComp, ICellEditorParams } from "ag-grid-community";
|
|
1
|
+
import { ICellEditorComp, ICellEditorParams } from "@ag-grid-community/core";
|
|
2
2
|
import { Record } from "@sankhyalabs/core";
|
|
3
3
|
import { IEditorMetadata } from "./IEditorMetadata";
|
|
4
4
|
export default class EzCellEditor implements ICellEditorComp {
|
|
@@ -10,6 +10,7 @@ export default class EzCellEditor implements ICellEditorComp {
|
|
|
10
10
|
afterGuiAttached(): void;
|
|
11
11
|
focusIn(): void;
|
|
12
12
|
getValue(): any;
|
|
13
|
+
setGuiValue(value: any): void;
|
|
13
14
|
isPopup(): boolean;
|
|
14
15
|
getFieldMetadata(): IEditorMetadata;
|
|
15
16
|
getRecord(): Record;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICellRendererComp, ICellRendererParams } from "ag-grid-community";
|
|
1
|
+
import { ICellRendererComp, ICellRendererParams } from "@ag-grid-community/core";
|
|
2
2
|
import { IEditorMetadata } from "./IEditorMetadata";
|
|
3
3
|
export default class EzCellRender implements ICellRendererComp {
|
|
4
4
|
private _gui;
|
|
@@ -13,7 +13,6 @@ export declare class EzGrid {
|
|
|
13
13
|
private _gridSelectionCounter;
|
|
14
14
|
private _resizeObserver;
|
|
15
15
|
private _messageFilterAppliedSuccess;
|
|
16
|
-
private _gridApi;
|
|
17
16
|
private _filterColumn;
|
|
18
17
|
private _refPaginationLabel;
|
|
19
18
|
private _refPaginationLabelTooltip;
|
|
@@ -94,6 +93,23 @@ export declare class EzGrid {
|
|
|
94
93
|
* Define se a grid será focada ao ser carregada.
|
|
95
94
|
*/
|
|
96
95
|
autoFocus?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Define se a grid será focada ao ser carregada.
|
|
98
|
+
*/
|
|
99
|
+
paginationCounterMode?: 'show' | 'hidden' | 'auto';
|
|
100
|
+
/**
|
|
101
|
+
* Ativa inserção de registros no modo grade.
|
|
102
|
+
*/
|
|
103
|
+
enableGridInsert?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Ativa/desativa a inserção continua na grade
|
|
106
|
+
* Só funciona quando a prop enableGridInsert está ativa
|
|
107
|
+
*/
|
|
108
|
+
enableContinuousInsert?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Ativa inserção de registros no modo grade.
|
|
111
|
+
*/
|
|
112
|
+
enableLockManger?: boolean;
|
|
97
113
|
/**
|
|
98
114
|
* Aplica a definição de colunas.
|
|
99
115
|
*/
|
|
@@ -162,9 +178,16 @@ export declare class EzGrid {
|
|
|
162
178
|
* Atribui o foco para a grade.
|
|
163
179
|
*/
|
|
164
180
|
setFocus(): Promise<void>;
|
|
181
|
+
/**
|
|
182
|
+
* Para a edição da grade.
|
|
183
|
+
*/
|
|
184
|
+
stopEdit(): Promise<void>;
|
|
185
|
+
checkStopEditOutsideClick(event: MouseEvent): Promise<void>;
|
|
165
186
|
observeConfig(config: IGridConfig): void;
|
|
166
187
|
updatePaginationTooltip(): void;
|
|
188
|
+
observePaginationCounterMode(newValue: any): void;
|
|
167
189
|
onSelectionChange(evt: CustomEvent): void;
|
|
190
|
+
handleClick(event: MouseEvent): Promise<void>;
|
|
168
191
|
private setSelection;
|
|
169
192
|
private onSelectAllRecords;
|
|
170
193
|
private onSelectPageRecords;
|
|
@@ -180,6 +203,7 @@ export declare class EzGrid {
|
|
|
180
203
|
private previousPage;
|
|
181
204
|
private nextPage;
|
|
182
205
|
private resetPaginationState;
|
|
206
|
+
private resolvePaginationClassMode;
|
|
183
207
|
private getPaginationControl;
|
|
184
208
|
componentDidLoad(): void;
|
|
185
209
|
private handlePaginationChange;
|
|
@@ -192,11 +216,13 @@ export declare class EzGrid {
|
|
|
192
216
|
private _hidePaginationDescription;
|
|
193
217
|
private _showPaginationDescription;
|
|
194
218
|
disconnectedCallback(): void;
|
|
219
|
+
connectedCallback(): void;
|
|
195
220
|
componentWillRender(): void;
|
|
196
221
|
componentDidRender(): void;
|
|
197
222
|
componentWillLoad(): void;
|
|
198
223
|
componentDidUpdate(): void;
|
|
199
224
|
private getDataSource;
|
|
200
225
|
private hideHeader;
|
|
226
|
+
private resolveLeftHeaderClass;
|
|
201
227
|
render(): any;
|
|
202
228
|
}
|
|
@@ -31,6 +31,10 @@ export declare class EzModal {
|
|
|
31
31
|
* Define se o modal será fechado ao clicar fora do conteúdo.
|
|
32
32
|
*/
|
|
33
33
|
closeOutsideClick: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Define se o modal será fechado se o mouse sair para fora do conteúdo.
|
|
36
|
+
*/
|
|
37
|
+
closeOutsideLeave?: boolean;
|
|
34
38
|
/**
|
|
35
39
|
* Define o tipo de scrim a ser aplicado no overlay do modal
|
|
36
40
|
*/
|
|
@@ -56,6 +60,8 @@ export declare class EzModal {
|
|
|
56
60
|
closeModal(): void;
|
|
57
61
|
componentDidLoad(): void;
|
|
58
62
|
componentDidRender(): void;
|
|
63
|
+
private modalFocus;
|
|
59
64
|
onMouseDownHandler(event: any): void;
|
|
65
|
+
onMouseLeaveHandler(): void;
|
|
60
66
|
render(): any;
|
|
61
67
|
}
|
|
@@ -32,6 +32,10 @@ export declare class EzModalContainer {
|
|
|
32
32
|
* Define o estado do botão de confirmação.
|
|
33
33
|
*/
|
|
34
34
|
okButtonStatus: "HIDDEN" | "ENABLED" | "DISABLED";
|
|
35
|
+
/**
|
|
36
|
+
* Define a visibilidade do botão de fechar.
|
|
37
|
+
*/
|
|
38
|
+
showCloseButton?: boolean;
|
|
35
39
|
/**
|
|
36
40
|
* Representa a interação com o usuário.
|
|
37
41
|
* OK - Quando o botão é acionado
|
|
@@ -40,6 +40,10 @@ export declare class EzNumberInput {
|
|
|
40
40
|
* Define uma mensagem de orientação ao usuário, colocando o campo em modo inválido.
|
|
41
41
|
*/
|
|
42
42
|
errorMessage: string;
|
|
43
|
+
/**
|
|
44
|
+
* Se false, o input não aceitará números negativos.
|
|
45
|
+
*/
|
|
46
|
+
allowNegative: boolean;
|
|
43
47
|
/**
|
|
44
48
|
* Define quantas casas decimais serão exibidas. Caso haja mais casas haverá arredondamento.
|
|
45
49
|
*/
|
|
@@ -53,6 +57,10 @@ export declare class EzNumberInput {
|
|
|
53
57
|
* Define o tamanho do campo.
|
|
54
58
|
*/
|
|
55
59
|
mode: "slim" | "regular";
|
|
60
|
+
/**
|
|
61
|
+
* Se true o campo de texto receberá o foco ao ser renderizado.
|
|
62
|
+
*/
|
|
63
|
+
autoFocus: boolean;
|
|
56
64
|
/**
|
|
57
65
|
* Aplica o foco no campo.
|
|
58
66
|
*/
|
|
@@ -24,6 +24,10 @@ export declare class EzPopup {
|
|
|
24
24
|
* Texto a ser apresentado como título do componente.
|
|
25
25
|
*/
|
|
26
26
|
ezTitle: string;
|
|
27
|
+
/**
|
|
28
|
+
* Possibilita scroll vertical no conteúdo interno do componente
|
|
29
|
+
*/
|
|
30
|
+
enabledScroll: boolean;
|
|
27
31
|
/**
|
|
28
32
|
* Evento emitido ao clicar no botão de fechar (onEzClosePopup).
|
|
29
33
|
*/
|
|
@@ -37,7 +41,10 @@ export declare class EzPopup {
|
|
|
37
41
|
private closePopup;
|
|
38
42
|
private manageOverflow;
|
|
39
43
|
private manageOverlay;
|
|
44
|
+
private popUpFocus;
|
|
40
45
|
getGridSize(): string;
|
|
46
|
+
private handlePopupHeight;
|
|
47
|
+
private handlePopupOverflowY;
|
|
41
48
|
componentDidRender(): void;
|
|
42
49
|
render(): any;
|
|
43
50
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
2
|
import { IEzCheckBoxListPosition } from '../ez-combo-box/ez-combo-box';
|
|
3
|
+
import { TFocusOptions } from "../ez-text-input/ez-text-input";
|
|
3
4
|
export declare class EzSearch {
|
|
4
5
|
private _textInput;
|
|
5
6
|
private _optionsList;
|
|
@@ -24,6 +25,7 @@ export declare class EzSearch {
|
|
|
24
25
|
private _visibleOptions;
|
|
25
26
|
private _startLoading;
|
|
26
27
|
private _showLoading;
|
|
28
|
+
private _showLoadingDescription;
|
|
27
29
|
private _criteria;
|
|
28
30
|
/**
|
|
29
31
|
* Define o valor do campo.
|
|
@@ -57,6 +59,10 @@ export declare class EzSearch {
|
|
|
57
59
|
* Se true remove a opção vazia da lista.
|
|
58
60
|
*/
|
|
59
61
|
suppressEmptyOption: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Se true, ineterrompe a propagação do evento de KeyDown da tecla enter
|
|
64
|
+
*/
|
|
65
|
+
stopPropagateEnterKeyEvent: boolean;
|
|
60
66
|
/**
|
|
61
67
|
* Define o tamanho do campo.
|
|
62
68
|
*/
|
|
@@ -94,6 +100,18 @@ export declare class EzSearch {
|
|
|
94
100
|
* Se true desabilita a digitação dentro do componente.
|
|
95
101
|
*/
|
|
96
102
|
suppressSearch: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Garante que o botão de limpar pesquisa está sempre visível
|
|
105
|
+
*/
|
|
106
|
+
ensureClearButtonVisible: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Se true, desabilita pré-load das opções ao carregar componente
|
|
109
|
+
*/
|
|
110
|
+
suppressPreLoad: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Se true o campo de texto receberá o foco ao ser renderizado.
|
|
113
|
+
*/
|
|
114
|
+
autoFocus: boolean;
|
|
97
115
|
observeErrorMessage(): void;
|
|
98
116
|
private validateNewValue;
|
|
99
117
|
observeValue(newValue: IOption | string, oldValue: IOption | string): Promise<void>;
|
|
@@ -102,7 +120,7 @@ export declare class EzSearch {
|
|
|
102
120
|
/**
|
|
103
121
|
* Aplica o foco no campo.
|
|
104
122
|
*/
|
|
105
|
-
setFocus(): Promise<void>;
|
|
123
|
+
setFocus(options?: TFocusOptions): Promise<void>;
|
|
106
124
|
/**
|
|
107
125
|
* Remove o foco do campo.
|
|
108
126
|
*/
|
|
@@ -122,6 +140,7 @@ export declare class EzSearch {
|
|
|
122
140
|
private isDifferentValues;
|
|
123
141
|
private getFormattedText;
|
|
124
142
|
private getText;
|
|
143
|
+
private replaceQuotes;
|
|
125
144
|
private getSelectedOption;
|
|
126
145
|
private updateVisibleOptions;
|
|
127
146
|
private getMaxWidthValue;
|
|
@@ -145,9 +164,9 @@ export declare class EzSearch {
|
|
|
145
164
|
private clearSearch;
|
|
146
165
|
private controlListWithOnlyOne;
|
|
147
166
|
private controlEmptySearch;
|
|
148
|
-
private validateDescriptionValue;
|
|
149
167
|
private loadDescriptionValue;
|
|
150
168
|
private setDescriptionValue;
|
|
169
|
+
private setTextInputValue;
|
|
151
170
|
private loadOptionValue;
|
|
152
171
|
private showNoResultMessage;
|
|
153
172
|
private getFieldLabel;
|
|
@@ -160,8 +179,10 @@ export declare class EzSearch {
|
|
|
160
179
|
private onTextInputChangeHandler;
|
|
161
180
|
private clearDeboucingTimeout;
|
|
162
181
|
private keyDownHandler;
|
|
182
|
+
private handleEventPropagation;
|
|
163
183
|
private onTextInputFocusOutHandler;
|
|
164
184
|
private canShowListOptions;
|
|
185
|
+
private canShowLoadSpinDescription;
|
|
165
186
|
render(): any;
|
|
166
187
|
}
|
|
167
188
|
export interface IOption {
|