@sankhyalabs/ezui 5.20.4 → 5.21.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -5
- package/dist/cjs/{CSSVarsUtils-b136a156.js → CSSVarsUtils-10c9d5b4.js} +13 -0
- package/dist/cjs/ez-actions-button.cjs.entry.js +2 -2
- package/dist/cjs/ez-alert-list.cjs.entry.js +121 -49
- package/dist/cjs/ez-alert.cjs.entry.js +1 -1
- package/dist/cjs/ez-application.cjs.entry.js +1 -1
- package/dist/cjs/ez-badge.cjs.entry.js +1 -1
- package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ez-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
- package/dist/cjs/ez-card-item_3.cjs.entry.js +183 -0
- package/dist/cjs/ez-check.cjs.entry.js +2 -2
- package/dist/cjs/ez-chip.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 +20 -163
- package/dist/cjs/ez-date-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-date-time-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ez-dropdown.cjs.entry.js +10 -4
- package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +35 -16
- package/dist/cjs/ez-form.cjs.entry.js +1 -1
- package/dist/cjs/ez-grid.cjs.entry.js +132 -58
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-icon.cjs.entry.js +2 -2
- package/dist/cjs/ez-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +6 -1
- package/dist/cjs/ez-modal.cjs.entry.js +1 -1
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-number-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-popover.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +9 -2
- package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-scroller_3.cjs.entry.js +19 -5
- package/dist/cjs/ez-search.cjs.entry.js +622 -33
- package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-button.cjs.entry.js +166 -0
- package/dist/cjs/ez-split-item.cjs.entry.js +21 -3
- package/dist/cjs/ez-split-panel.cjs.entry.js +68 -14
- package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-edit.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-time-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +1 -1
- package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +2 -2
- package/dist/cjs/filter-column.cjs.entry.js +17 -6
- package/dist/cjs/{index-1064511f.js → index-a7b0c73d.js} +12 -10
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/ez-alert-list/ez-alert-list.css +16 -2
- package/dist/collection/components/ez-alert-list/ez-alert-list.js +127 -48
- package/dist/collection/components/ez-card-item/ez-card-item.css +52 -3
- package/dist/collection/components/ez-card-item/ez-card-item.js +22 -3
- package/dist/collection/components/ez-check/ez-check.css +1 -0
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +1 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +19 -179
- package/dist/collection/components/ez-dropdown/ez-dropdown.js +32 -3
- package/dist/collection/components/ez-form-view/ez-form-view.css +17 -1
- package/dist/collection/components/ez-form-view/ez-form-view.js +22 -5
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +3 -3
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +4 -2
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +1 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +8 -11
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +3 -4
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +21 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +1 -3
- package/dist/collection/components/ez-grid/ez-grid.css +25 -1
- package/dist/collection/components/ez-grid/ez-grid.js +103 -33
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +16 -5
- package/dist/collection/components/ez-icon/ez-icon.css +119 -117
- package/dist/collection/components/ez-modal-container/ez-modal-container.js +5 -0
- package/dist/collection/components/ez-popup/ez-popup.css +2 -5
- package/dist/collection/components/ez-popup/ez-popup.js +23 -2
- package/dist/collection/components/ez-search/ez-search.css +331 -0
- package/dist/collection/components/ez-search/ez-search.js +698 -55
- package/dist/collection/components/ez-split-button/ez-split-button.css +229 -0
- package/dist/collection/components/ez-split-button/ez-split-button.js +455 -0
- package/dist/collection/components/ez-split-button/test/dropdownItems.js +42 -0
- package/dist/collection/components/ez-split-panel/ez-split-panel.css +6 -7
- package/dist/collection/components/ez-split-panel/ez-split-panel.js +103 -15
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +59 -12
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +82 -2
- package/dist/collection/components/ez-tree/ez-tree.css +26 -0
- package/dist/collection/components/ez-tree/interfaces/ITreeItemBadge.js +1 -0
- package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +15 -2
- package/dist/collection/utils/CSSVarsUtils.js +13 -0
- package/dist/collection/utils/form/test/DataBinder.test.js +9 -0
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +1252 -359
- package/dist/esm/{CSSVarsUtils-a97cfa29.js → CSSVarsUtils-71ce76be.js} +13 -0
- package/dist/esm/ez-actions-button.entry.js +2 -2
- package/dist/esm/ez-alert-list.entry.js +121 -49
- package/dist/esm/ez-alert.entry.js +1 -1
- package/dist/esm/ez-application.entry.js +1 -1
- package/dist/esm/ez-badge.entry.js +1 -1
- package/dist/esm/ez-breadcrumb.entry.js +1 -1
- package/dist/esm/ez-button.entry.js +1 -1
- package/dist/esm/ez-calendar.entry.js +1 -1
- package/dist/esm/ez-card-item_3.entry.js +177 -0
- package/dist/esm/ez-check.entry.js +2 -2
- package/dist/esm/ez-chip.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +1 -1
- package/dist/esm/ez-combo-box.entry.js +21 -164
- package/dist/esm/ez-date-input.entry.js +2 -2
- package/dist/esm/ez-date-time-input.entry.js +2 -2
- package/dist/esm/ez-dialog.entry.js +1 -1
- package/dist/esm/ez-dropdown.entry.js +10 -4
- package/dist/esm/ez-file-item.entry.js +1 -1
- package/dist/esm/ez-form-view.entry.js +35 -16
- package/dist/esm/ez-form.entry.js +1 -1
- package/dist/esm/ez-grid.entry.js +133 -59
- package/dist/esm/ez-guide-navigator.entry.js +1 -1
- package/dist/esm/ez-icon.entry.js +2 -2
- package/dist/esm/ez-list.entry.js +1 -1
- package/dist/esm/ez-loading-bar.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +6 -1
- package/dist/esm/ez-modal.entry.js +1 -1
- package/dist/esm/ez-multi-selection-list.entry.js +1 -1
- package/dist/esm/ez-number-input.entry.js +2 -2
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +10 -3
- package/dist/esm/ez-radio-button.entry.js +1 -1
- package/dist/esm/ez-scroller_3.entry.js +19 -5
- package/dist/esm/ez-search.entry.js +623 -34
- package/dist/esm/ez-skeleton.entry.js +1 -1
- package/dist/esm/ez-split-button.entry.js +162 -0
- package/dist/esm/ez-split-item.entry.js +21 -3
- package/dist/esm/ez-split-panel.entry.js +68 -14
- package/dist/esm/ez-tabselector.entry.js +1 -1
- package/dist/esm/ez-text-area.entry.js +1 -1
- package/dist/esm/ez-text-edit.entry.js +1 -1
- package/dist/esm/ez-text-input.entry.js +1 -1
- package/dist/esm/ez-time-input.entry.js +2 -2
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +1 -1
- package/dist/esm/ez-view-stack.entry.js +1 -1
- package/dist/esm/ezui.js +3 -3
- package/dist/esm/filter-column.entry.js +17 -6
- package/dist/esm/{index-296b8458.js → index-baa5e267.js} +12 -10
- package/dist/esm/loader.js +3 -3
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-5cef0264.entry.js → p-0306dff7.entry.js} +1 -1
- package/dist/ezui/{p-871c1a07.entry.js → p-0447d17c.entry.js} +1 -1
- package/dist/ezui/p-072e6347.entry.js +1 -0
- package/dist/ezui/{p-f4208819.entry.js → p-17be134a.entry.js} +1 -1
- package/dist/ezui/{p-cd19a6f8.entry.js → p-1e7a8633.entry.js} +1 -1
- package/dist/ezui/{p-60ba28ea.entry.js → p-1f50fa05.entry.js} +1 -1
- package/dist/ezui/{p-245a44ed.entry.js → p-20ec22c0.entry.js} +1 -1
- package/dist/ezui/{p-e318d280.js → p-23a36bb6.js} +1 -1
- package/dist/ezui/{p-8252d9b5.entry.js → p-2a1a0e04.entry.js} +1 -1
- package/dist/ezui/p-3faa2b46.entry.js +1 -0
- package/dist/ezui/{p-9b347f04.entry.js → p-44caad9a.entry.js} +1 -1
- package/dist/ezui/{p-7319c253.entry.js → p-49456b34.entry.js} +1 -1
- package/dist/ezui/{p-ccb4ccd9.entry.js → p-555c9018.entry.js} +1 -1
- package/dist/ezui/{p-52dd8b4c.entry.js → p-5bd5e68f.entry.js} +1 -1
- package/dist/ezui/{p-62304715.entry.js → p-5e1d036e.entry.js} +1 -1
- package/dist/ezui/{p-7525e604.entry.js → p-5ed81457.entry.js} +1 -1
- package/dist/ezui/p-5ef056ce.entry.js +1 -0
- package/dist/ezui/p-637f69f2.entry.js +1 -0
- package/dist/ezui/{p-c49dbf23.entry.js → p-650e4b6d.entry.js} +1 -1
- package/dist/ezui/{p-f55d75e7.entry.js → p-6e429cff.entry.js} +1 -1
- package/dist/ezui/p-701231f0.entry.js +1 -0
- package/dist/ezui/{p-0b902469.entry.js → p-77a4bd35.entry.js} +1 -1
- package/dist/ezui/{p-81cd05c8.entry.js → p-784fe207.entry.js} +1 -1
- package/dist/ezui/p-7af81663.entry.js +1 -0
- package/dist/ezui/p-7bc07c31.entry.js +1 -0
- package/dist/ezui/{p-5d6f2550.entry.js → p-85c8baae.entry.js} +1 -1
- package/dist/ezui/{p-d3b5228e.entry.js → p-8defa6d3.entry.js} +1 -1
- package/dist/ezui/{p-fbca293f.entry.js → p-8df1ca33.entry.js} +1 -1
- package/dist/ezui/{p-391de0e4.entry.js → p-9050d2cd.entry.js} +1 -1
- package/dist/ezui/p-91f626d3.entry.js +1 -0
- package/dist/ezui/{p-3e7cc8a4.entry.js → p-99ead599.entry.js} +1 -1
- package/dist/ezui/p-9aefaa52.entry.js +1 -0
- package/dist/ezui/{p-7eb3e1a5.js → p-9e11fc7b.js} +1 -1
- package/dist/ezui/{p-b11f035c.entry.js → p-9f5fa3f9.entry.js} +1 -1
- package/dist/ezui/p-a1ec32ef.entry.js +1 -0
- package/dist/ezui/{p-2da09f70.entry.js → p-a80b1287.entry.js} +1 -1
- package/dist/ezui/{p-d20ed286.entry.js → p-af2ecb1b.entry.js} +1 -1
- package/dist/ezui/{p-e8f88361.entry.js → p-af95cd16.entry.js} +1 -1
- package/dist/ezui/{p-32b4163f.entry.js → p-b041333c.entry.js} +1 -1
- package/dist/ezui/{p-545b5b2f.entry.js → p-b44741b0.entry.js} +2 -2
- package/dist/ezui/{p-12526044.entry.js → p-b567fa8c.entry.js} +1 -1
- package/dist/ezui/p-bae3d0aa.entry.js +1 -0
- package/dist/ezui/{p-fb21d72f.entry.js → p-bae4e180.entry.js} +1 -1
- package/dist/ezui/p-baf80b13.entry.js +1 -0
- package/dist/ezui/p-bc2f844e.entry.js +1 -0
- package/dist/ezui/p-bf79aaa1.entry.js +1 -0
- package/dist/ezui/{p-83885b21.entry.js → p-cc2dc4f4.entry.js} +1 -1
- package/dist/ezui/p-db77a984.entry.js +1 -0
- package/dist/ezui/{p-028f264f.entry.js → p-e85c48d7.entry.js} +1 -1
- package/dist/types/components/ez-alert-list/ez-alert-list.d.ts +38 -4
- package/dist/types/components/ez-card-item/ez-card-item.d.ts +4 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +1 -15
- package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +5 -0
- package/dist/types/components/ez-form-view/ez-form-view.d.ts +3 -0
- package/dist/types/components/ez-grid/controller/ag-grid/DataSourceInterceptor.d.ts +8 -0
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
- package/dist/types/components/ez-grid/ez-grid.d.ts +17 -2
- package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +4 -1
- package/dist/types/components/ez-guide-navigator/interfaces/IGuideItem.d.ts +0 -1
- package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +1 -0
- package/dist/types/components/ez-popup/ez-popup.d.ts +7 -1
- package/dist/types/components/ez-search/ez-search.d.ts +101 -10
- package/dist/types/components/ez-split-button/ez-split-button.d.ts +92 -0
- package/dist/types/components/ez-split-button/test/dropdownItems.d.ts +2 -0
- package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +29 -0
- package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +27 -0
- package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +3 -1
- package/dist/types/components/ez-tree/interfaces/ITreeItemBadge.d.ts +6 -0
- package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +0 -1
- package/dist/types/components.d.ts +188 -15
- package/dist/types/utils/CSSVarsUtils.d.ts +1 -0
- package/dist/types/utils/form/test/DataBinder.test.d.ts +1 -0
- package/dist/types/utils/interfaces/AbstractFieldMetadata.d.ts +2 -1
- package/dist/types/utils/interfaces/IAction.d.ts +1 -1
- package/package.json +13 -5
- package/react/components.d.ts +1 -0
- package/react/components.js +1 -0
- package/react/components.js.map +1 -1
- package/dist/cjs/ez-card-item.cjs.entry.js +0 -52
- package/dist/cjs/ez-filter-input_2.cjs.entry.js +0 -137
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridUtils.js +0 -8
- package/dist/esm/ez-card-item.entry.js +0 -48
- package/dist/esm/ez-filter-input_2.entry.js +0 -132
- package/dist/ezui/p-47afb974.entry.js +0 -1
- package/dist/ezui/p-59bcb27c.entry.js +0 -1
- package/dist/ezui/p-74049254.entry.js +0 -1
- package/dist/ezui/p-76d16a24.entry.js +0 -1
- package/dist/ezui/p-7fd54841.entry.js +0 -1
- package/dist/ezui/p-87e85160.entry.js +0 -1
- package/dist/ezui/p-95426f93.entry.js +0 -1
- package/dist/ezui/p-99692afa.entry.js +0 -1
- package/dist/ezui/p-a01068e1.entry.js +0 -1
- package/dist/ezui/p-a42fe2ce.entry.js +0 -1
- package/dist/ezui/p-af285e68.entry.js +0 -1
- package/dist/ezui/p-b6867f19.entry.js +0 -1
- package/dist/ezui/p-d51aa09b.entry.js +0 -1
- package/dist/ezui/p-d81917fd.entry.js +0 -1
- package/dist/ezui/p-f8653522.entry.js +0 -1
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridUtils.d.ts +0 -1
|
@@ -1,8 +1,30 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
-
import { IEzCheckBoxListPosition
|
|
2
|
+
import { IEzCheckBoxListPosition } from '../ez-combo-box/ez-combo-box';
|
|
3
3
|
export declare class EzSearch {
|
|
4
|
-
private
|
|
5
|
-
private
|
|
4
|
+
private _textInput;
|
|
5
|
+
private _optionsList;
|
|
6
|
+
private _listContainer;
|
|
7
|
+
private _listWrapper;
|
|
8
|
+
private _itemValueBasis;
|
|
9
|
+
private _floatingID;
|
|
10
|
+
private _source;
|
|
11
|
+
private _changeDeboucingTimeout;
|
|
12
|
+
private _limitCharsToSearch;
|
|
13
|
+
private _deboucingTime;
|
|
14
|
+
_maxWidthValue: number;
|
|
15
|
+
private _tabPressed;
|
|
16
|
+
private _textEmptyList;
|
|
17
|
+
private _textEmptySearch;
|
|
18
|
+
private _lookupMode;
|
|
19
|
+
private _resizeObserver;
|
|
20
|
+
private _startHighlightTag;
|
|
21
|
+
private _endHighlightTag;
|
|
22
|
+
private el;
|
|
23
|
+
private _preSelection;
|
|
24
|
+
private _visibleOptions;
|
|
25
|
+
private _startLoading;
|
|
26
|
+
private _showLoading;
|
|
27
|
+
private _criteria;
|
|
6
28
|
/**
|
|
7
29
|
* Define o valor do campo.
|
|
8
30
|
*/
|
|
@@ -63,15 +85,26 @@ export declare class EzSearch {
|
|
|
63
85
|
* Emitido quando acontece a alteração de valor do campo.
|
|
64
86
|
*/
|
|
65
87
|
ezChange: EventEmitter<IOption>;
|
|
88
|
+
/**
|
|
89
|
+
* Array com as opções do ez-combo-box. Os elementos devem obedecer
|
|
90
|
+
* o formato: `{value: string, label: string}`.
|
|
91
|
+
*/
|
|
92
|
+
options: Array<IOption>;
|
|
93
|
+
/**
|
|
94
|
+
* Se true desabilita a digitação dentro do componente.
|
|
95
|
+
*/
|
|
96
|
+
suppressSearch: boolean;
|
|
66
97
|
observeErrorMessage(): void;
|
|
67
|
-
observeValue(): void;
|
|
98
|
+
observeValue(newValue: IOption | string, oldValue: IOption | string): void;
|
|
99
|
+
observeOptions(newOptions: IOption[], oldOptions: IOption[]): void;
|
|
100
|
+
getValueAsync(): Promise<unknown>;
|
|
68
101
|
/**
|
|
69
|
-
|
|
70
|
-
|
|
102
|
+
* Aplica o foco no campo.
|
|
103
|
+
*/
|
|
71
104
|
setFocus(): Promise<void>;
|
|
72
105
|
/**
|
|
73
|
-
|
|
74
|
-
|
|
106
|
+
* Remove o foco do campo.
|
|
107
|
+
*/
|
|
75
108
|
setBlur(): Promise<void>;
|
|
76
109
|
/**
|
|
77
110
|
* Retorna se o conteúdo é inválido.
|
|
@@ -81,8 +114,66 @@ export declare class EzSearch {
|
|
|
81
114
|
* Limpa o valor do campo de pesquisa
|
|
82
115
|
*/
|
|
83
116
|
clearValue(): Promise<void>;
|
|
84
|
-
|
|
85
|
-
|
|
117
|
+
scrollListener(): void;
|
|
118
|
+
private updateListPosition;
|
|
119
|
+
private getListPosition;
|
|
120
|
+
private isDifferentValues;
|
|
121
|
+
private getFormattedText;
|
|
122
|
+
private getText;
|
|
123
|
+
private getSelectedOption;
|
|
124
|
+
private updateVisibleOptions;
|
|
125
|
+
private getMaxWidthValue;
|
|
126
|
+
private getWidthValue;
|
|
127
|
+
private createOption;
|
|
128
|
+
private buildItem;
|
|
129
|
+
private showOptions;
|
|
130
|
+
private hideOptions;
|
|
131
|
+
private isOptionsVisible;
|
|
132
|
+
private nextOption;
|
|
133
|
+
private previousOption;
|
|
134
|
+
private scrollToOption;
|
|
135
|
+
private selectCurrentOption;
|
|
136
|
+
private updateSource;
|
|
137
|
+
private clearSource;
|
|
138
|
+
private replaceHighlight;
|
|
139
|
+
private selectOption;
|
|
140
|
+
private loadOptions;
|
|
141
|
+
private cancelPreselection;
|
|
142
|
+
private setInputValue;
|
|
143
|
+
private clearSearch;
|
|
144
|
+
private controlListWithOnlyOne;
|
|
145
|
+
private controlEmptySearch;
|
|
146
|
+
private validateDescriptionValue;
|
|
147
|
+
private loadDescriptionValue;
|
|
148
|
+
private setDescriptionValue;
|
|
149
|
+
private loadOptionValue;
|
|
150
|
+
private showNoResultMessage;
|
|
151
|
+
private getFieldLabel;
|
|
152
|
+
private resetOptions;
|
|
153
|
+
componentWillLoad(): void;
|
|
154
|
+
componentDidRender(): void;
|
|
86
155
|
componentDidLoad(): void;
|
|
156
|
+
private handlerIconClick;
|
|
157
|
+
private buildNumberArgument;
|
|
158
|
+
private onTextInputChangeHandler;
|
|
159
|
+
private clearDeboucingTimeout;
|
|
160
|
+
private keyDownHandler;
|
|
161
|
+
private onTextInputFocusOutHandler;
|
|
162
|
+
private canShowListOptions;
|
|
87
163
|
render(): any;
|
|
88
164
|
}
|
|
165
|
+
export interface IOption {
|
|
166
|
+
value: string;
|
|
167
|
+
label: string;
|
|
168
|
+
details?: any;
|
|
169
|
+
}
|
|
170
|
+
export interface ISearchArgument {
|
|
171
|
+
mode: SearchMode;
|
|
172
|
+
argument: string;
|
|
173
|
+
}
|
|
174
|
+
declare enum SearchMode {
|
|
175
|
+
ADVANCED = "ADVANCED",
|
|
176
|
+
PRELOAD = "PRELOAD",
|
|
177
|
+
PREDICTIVE = "PREDICTIVE"
|
|
178
|
+
}
|
|
179
|
+
export {};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { IDropdownItem, IDropdownSubAction } from '../ez-dropdown/structure/DropdownItem';
|
|
3
|
+
export declare class EzSplitButton {
|
|
4
|
+
_element: HTMLElement;
|
|
5
|
+
private leftButton;
|
|
6
|
+
private rightButton;
|
|
7
|
+
private dropdownParent;
|
|
8
|
+
private rightDefaultTitle;
|
|
9
|
+
private offsetParentRect;
|
|
10
|
+
private show;
|
|
11
|
+
/**
|
|
12
|
+
* Se false o usuário não pode interagir com o botão.
|
|
13
|
+
*/
|
|
14
|
+
enabled: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Define o ícone a ser usado da biblioteca de ícones: [ez-icons](https://gilded-nasturtium-6b64dd.netlify.app/docs/components/layout-doc/icons/)
|
|
17
|
+
*/
|
|
18
|
+
iconName: string;
|
|
19
|
+
/**
|
|
20
|
+
* Define o caminho usado nos modos `icon-only` e `icon-left` para imagens não contempladas na biblioteca de ícones.
|
|
21
|
+
*/
|
|
22
|
+
image: string;
|
|
23
|
+
/**
|
|
24
|
+
* Define o conteúdo do dropdown.
|
|
25
|
+
*/
|
|
26
|
+
items: Array<IDropdownItem>;
|
|
27
|
+
/**
|
|
28
|
+
* Texto a ser apresentado como label do botão.
|
|
29
|
+
*/
|
|
30
|
+
label: string;
|
|
31
|
+
/**
|
|
32
|
+
* Texto a ser apresentado como title do botão principal
|
|
33
|
+
*/
|
|
34
|
+
leftTitle: string;
|
|
35
|
+
/**
|
|
36
|
+
* Texto a ser apresentado como title do botão dropdown
|
|
37
|
+
*/
|
|
38
|
+
rightTitle: string;
|
|
39
|
+
/**
|
|
40
|
+
* Define o modo de uso do botão.
|
|
41
|
+
*/
|
|
42
|
+
mode: 'default' | 'icon-only' | 'icon-left';
|
|
43
|
+
/**
|
|
44
|
+
* Define o tamanho do ez-split-button.
|
|
45
|
+
*/
|
|
46
|
+
size: 'medium' | 'large';
|
|
47
|
+
/**
|
|
48
|
+
* Emitido quando o botão principal é clicado
|
|
49
|
+
*/
|
|
50
|
+
buttonClick: EventEmitter<void>;
|
|
51
|
+
/**
|
|
52
|
+
* Emitido quando um item do dropdown é clicado
|
|
53
|
+
*/
|
|
54
|
+
dropdownItemClick: EventEmitter<IDropdownItem>;
|
|
55
|
+
/**
|
|
56
|
+
* Emitido quando uma subAction de um item do dropdown é clicada
|
|
57
|
+
*/
|
|
58
|
+
dropdownSubActionClick: EventEmitter<IDropdownSubAction>;
|
|
59
|
+
/**
|
|
60
|
+
* Remove o foco de ambos os botões.
|
|
61
|
+
*/
|
|
62
|
+
setBlur(): Promise<void>;
|
|
63
|
+
/**
|
|
64
|
+
* Aplica o foco no botão principal.
|
|
65
|
+
*/
|
|
66
|
+
setLeftButtonFocus(): Promise<void>;
|
|
67
|
+
/**
|
|
68
|
+
* Aplica o foco no botão do dropdown.
|
|
69
|
+
*/
|
|
70
|
+
setRightButtonFocus(): Promise<void>;
|
|
71
|
+
clickListener(evt: MouseEvent): void;
|
|
72
|
+
private getIconSize;
|
|
73
|
+
private closeDropdown;
|
|
74
|
+
private toggleDropdown;
|
|
75
|
+
private handleButtonClick;
|
|
76
|
+
private handleDropdownItemClick;
|
|
77
|
+
private handleDropdownSubActionClick;
|
|
78
|
+
private resolveOffsetParentRect;
|
|
79
|
+
/**
|
|
80
|
+
* Método responsável em posicionar o dropdown na tela.
|
|
81
|
+
* Faz com que o dropdown se ajuste automaticamente ao espaco na tela
|
|
82
|
+
*/
|
|
83
|
+
private positionDropdown;
|
|
84
|
+
private setEvents;
|
|
85
|
+
componentWillLoad(): void;
|
|
86
|
+
componentWillRender(): void;
|
|
87
|
+
componentDidLoad(): void;
|
|
88
|
+
componentDidUpdate(): void;
|
|
89
|
+
render(): any;
|
|
90
|
+
private shouldShowLabelOnLeftButton;
|
|
91
|
+
private shouldShowIconOnLeftButton;
|
|
92
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { SplitOptions } from 'split-grid';
|
|
2
|
+
export declare class SplitPanel {
|
|
3
|
+
direction: 'row' | 'column';
|
|
4
|
+
/**
|
|
5
|
+
* Responsável por definir o painel que limita o tamanho do item expandido.
|
|
6
|
+
*/
|
|
7
|
+
anchorToExpand: boolean;
|
|
8
|
+
_element: HTMLElement;
|
|
9
|
+
_items: HTMLEzSplitItemElement[];
|
|
10
|
+
_panelID: string;
|
|
11
|
+
_mutationObserver: MutationObserver;
|
|
12
|
+
_buildInProgress: boolean;
|
|
13
|
+
rebuildLayout(): void;
|
|
14
|
+
private buildItems;
|
|
15
|
+
componentDidLoad(): void;
|
|
16
|
+
disconnectedCallback(): void;
|
|
17
|
+
initSplit(): void;
|
|
18
|
+
getGutters(): SplitOptions;
|
|
19
|
+
addItemGutter(item: HTMLEzSplitItemElement): void;
|
|
20
|
+
getElementStyle(): {
|
|
21
|
+
display: string;
|
|
22
|
+
height: string;
|
|
23
|
+
width: string;
|
|
24
|
+
position: string;
|
|
25
|
+
};
|
|
26
|
+
calcFreeSpacePercentage(): number;
|
|
27
|
+
getGridTemplate(): string;
|
|
28
|
+
render(): any;
|
|
29
|
+
}
|
|
@@ -1,3 +1,30 @@
|
|
|
1
1
|
export declare class SplitItem {
|
|
2
|
+
_element: HTMLElement;
|
|
3
|
+
/**
|
|
4
|
+
* Define um título para o painel.
|
|
5
|
+
*/
|
|
6
|
+
label: string;
|
|
7
|
+
/**
|
|
8
|
+
* Define se o item pode ser expandido
|
|
9
|
+
*/
|
|
10
|
+
enableExpand: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Define se o item está expandido
|
|
13
|
+
*/
|
|
14
|
+
private _expanded;
|
|
15
|
+
/**
|
|
16
|
+
* Alterna a visibilidade do painel.
|
|
17
|
+
*/
|
|
18
|
+
toggleExpandItem(): void;
|
|
19
|
+
/**
|
|
20
|
+
* Define o tamanho inicial do painel.
|
|
21
|
+
* @values '%', 'fr'
|
|
22
|
+
*/
|
|
23
|
+
size?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Referência ao elemento que contém o slot.
|
|
26
|
+
**/
|
|
27
|
+
private _slot;
|
|
28
|
+
componentDidLoad(): void;
|
|
2
29
|
render(): any;
|
|
3
30
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { ITreeItemBadge } from "./ITreeItemBadge";
|
|
1
2
|
export interface ITreeItem {
|
|
2
3
|
id: string;
|
|
3
4
|
label: string;
|
|
5
|
+
bold?: boolean;
|
|
4
6
|
children?: Array<ITreeItem> | ((item: ITreeItem) => Promise<Array<ITreeItem>>);
|
|
5
7
|
childrenCount?: number;
|
|
6
8
|
iconExpanded?: string;
|
|
@@ -8,5 +10,5 @@ export interface ITreeItem {
|
|
|
8
10
|
tooltip?: string;
|
|
9
11
|
expanded?: boolean;
|
|
10
12
|
disabled?: boolean;
|
|
11
|
-
badge?: "error" | "warning" | "success" | null;
|
|
13
|
+
badge?: "error" | "warning" | "success" | ITreeItemBadge | null;
|
|
12
14
|
}
|
|
@@ -10,7 +10,6 @@ interface TreeItemProps {
|
|
|
10
10
|
tooltipResolver: (item: ITreeItem, enabled: boolean, level: number) => string;
|
|
11
11
|
level?: number;
|
|
12
12
|
itemsList: Array<ITreeItem>;
|
|
13
|
-
badge?: "error" | "warning" | "success" | null;
|
|
14
13
|
}
|
|
15
14
|
export declare const TreeItem: FunctionalComponent<TreeItemProps>;
|
|
16
15
|
export {};
|
|
@@ -30,7 +30,8 @@ import { TFocusOptions } from "./components/ez-text-input/ez-text-input";
|
|
|
30
30
|
import { IEzPopoverAnchorOptions } from "./components/ez-popover/ez-popover";
|
|
31
31
|
import { Radio } from "./components/ez-radio-button/ez-radio-button";
|
|
32
32
|
import { EzScrollDirection } from "./components/ez-scroller/EzScrollDirection";
|
|
33
|
-
import {
|
|
33
|
+
import { IOption as IOption1, ISearchArgument as ISearchArgument1 } from "./components/ez-search/ez-search";
|
|
34
|
+
import { IEzCheckBoxListPosition as IEzCheckBoxListPosition1 } from "./components/ez-combo-box/ez-combo-box";
|
|
34
35
|
import { Tab } from "./components/ez-tabselector/ez-tabselector";
|
|
35
36
|
import { IStyled } from "./components/ez-text-edit/ez-text-edit";
|
|
36
37
|
import { TFocusOptions as TFocusOptions1 } from "./components/ez-text-input/ez-text-input";
|
|
@@ -232,6 +233,10 @@ export namespace Components {
|
|
|
232
233
|
"value": Date;
|
|
233
234
|
}
|
|
234
235
|
interface EzCardItem {
|
|
236
|
+
/**
|
|
237
|
+
* Determina se a chave do item deve ser exibida.
|
|
238
|
+
*/
|
|
239
|
+
"enableKey": boolean;
|
|
235
240
|
/**
|
|
236
241
|
* Determina o conteúdo do card. Deve conter um objeto no formato: `{title: string, key: string, details: any}`.
|
|
237
242
|
*/
|
|
@@ -413,10 +418,6 @@ export namespace Components {
|
|
|
413
418
|
* Array com as opções do ez-combo-box. Os elementos devem obedecer o formato: `{value: string, label: string}`.
|
|
414
419
|
*/
|
|
415
420
|
"options": Array<IOption>;
|
|
416
|
-
/**
|
|
417
|
-
* Se true ativa o modo pesquisa do ez-combo-box.
|
|
418
|
-
*/
|
|
419
|
-
"searchMode": boolean;
|
|
420
421
|
/**
|
|
421
422
|
* Remove o foco do campo.
|
|
422
423
|
*/
|
|
@@ -1172,7 +1173,11 @@ export namespace Components {
|
|
|
1172
1173
|
/**
|
|
1173
1174
|
* Carrega as opções dinamicamente.
|
|
1174
1175
|
*/
|
|
1175
|
-
"optionLoader": (argument:
|
|
1176
|
+
"optionLoader": (argument: ISearchArgument) => Promise<Array<IOption>> | Array<IOption> | IOption;
|
|
1177
|
+
/**
|
|
1178
|
+
* Array com as opções do ez-combo-box. Os elementos devem obedecer o formato: `{value: string, label: string}`.
|
|
1179
|
+
*/
|
|
1180
|
+
"options": Array<IOption>;
|
|
1176
1181
|
/**
|
|
1177
1182
|
* Remove o foco do campo.
|
|
1178
1183
|
*/
|
|
@@ -1193,10 +1198,14 @@ export namespace Components {
|
|
|
1193
1198
|
* Se true remove a opção vazia da lista.
|
|
1194
1199
|
*/
|
|
1195
1200
|
"suppressEmptyOption": boolean;
|
|
1201
|
+
/**
|
|
1202
|
+
* Se true desabilita a digitação dentro do componente.
|
|
1203
|
+
*/
|
|
1204
|
+
"suppressSearch": boolean;
|
|
1196
1205
|
/**
|
|
1197
1206
|
* Define o valor do campo.
|
|
1198
1207
|
*/
|
|
1199
|
-
"value":
|
|
1208
|
+
"value": IOption | string;
|
|
1200
1209
|
}
|
|
1201
1210
|
interface EzSidebarButton {
|
|
1202
1211
|
}
|
|
@@ -1237,10 +1246,78 @@ export namespace Components {
|
|
|
1237
1246
|
*/
|
|
1238
1247
|
"width": string;
|
|
1239
1248
|
}
|
|
1249
|
+
interface EzSplitButton {
|
|
1250
|
+
/**
|
|
1251
|
+
* Se false o usuário não pode interagir com o botão.
|
|
1252
|
+
*/
|
|
1253
|
+
"enabled": boolean;
|
|
1254
|
+
/**
|
|
1255
|
+
* Define o ícone a ser usado da biblioteca de ícones: [ez-icons](https://gilded-nasturtium-6b64dd.netlify.app/docs/components/layout-doc/icons/)
|
|
1256
|
+
*/
|
|
1257
|
+
"iconName": string;
|
|
1258
|
+
/**
|
|
1259
|
+
* Define o caminho usado nos modos `icon-only` e `icon-left` para imagens não contempladas na biblioteca de ícones.
|
|
1260
|
+
*/
|
|
1261
|
+
"image": string;
|
|
1262
|
+
/**
|
|
1263
|
+
* Define o conteúdo do dropdown.
|
|
1264
|
+
*/
|
|
1265
|
+
"items": Array<IDropdownItem>;
|
|
1266
|
+
/**
|
|
1267
|
+
* Texto a ser apresentado como label do botão.
|
|
1268
|
+
*/
|
|
1269
|
+
"label": string;
|
|
1270
|
+
/**
|
|
1271
|
+
* Texto a ser apresentado como title do botão principal
|
|
1272
|
+
*/
|
|
1273
|
+
"leftTitle": string;
|
|
1274
|
+
/**
|
|
1275
|
+
* Define o modo de uso do botão.
|
|
1276
|
+
*/
|
|
1277
|
+
"mode": 'default' | 'icon-only' | 'icon-left';
|
|
1278
|
+
/**
|
|
1279
|
+
* Texto a ser apresentado como title do botão dropdown
|
|
1280
|
+
*/
|
|
1281
|
+
"rightTitle": string;
|
|
1282
|
+
/**
|
|
1283
|
+
* Remove o foco de ambos os botões.
|
|
1284
|
+
*/
|
|
1285
|
+
"setBlur": () => Promise<void>;
|
|
1286
|
+
/**
|
|
1287
|
+
* Aplica o foco no botão principal.
|
|
1288
|
+
*/
|
|
1289
|
+
"setLeftButtonFocus": () => Promise<void>;
|
|
1290
|
+
/**
|
|
1291
|
+
* Aplica o foco no botão do dropdown.
|
|
1292
|
+
*/
|
|
1293
|
+
"setRightButtonFocus": () => Promise<void>;
|
|
1294
|
+
/**
|
|
1295
|
+
* Define o tamanho do ez-split-button.
|
|
1296
|
+
*/
|
|
1297
|
+
"size": 'medium' | 'large';
|
|
1298
|
+
}
|
|
1240
1299
|
interface EzSplitItem {
|
|
1300
|
+
/**
|
|
1301
|
+
* Define se o item pode ser expandido
|
|
1302
|
+
*/
|
|
1303
|
+
"enableExpand": boolean;
|
|
1304
|
+
/**
|
|
1305
|
+
* Define um título para o painel.
|
|
1306
|
+
*/
|
|
1307
|
+
"label": string;
|
|
1308
|
+
/**
|
|
1309
|
+
* Define o tamanho inicial do painel.
|
|
1310
|
+
* @values '%', 'fr'
|
|
1311
|
+
*/
|
|
1312
|
+
"size"?: string;
|
|
1241
1313
|
}
|
|
1242
1314
|
interface EzSplitPanel {
|
|
1315
|
+
/**
|
|
1316
|
+
* Responsável por definir o painel que limita o tamanho do item expandido.
|
|
1317
|
+
*/
|
|
1318
|
+
"anchorToExpand": boolean;
|
|
1243
1319
|
"direction": 'row' | 'column';
|
|
1320
|
+
"rebuildLayout": () => Promise<void>;
|
|
1244
1321
|
}
|
|
1245
1322
|
interface EzTabselector {
|
|
1246
1323
|
/**
|
|
@@ -1698,6 +1775,10 @@ export interface EzSidebarButtonCustomEvent<T> extends CustomEvent<T> {
|
|
|
1698
1775
|
detail: T;
|
|
1699
1776
|
target: HTMLEzSidebarButtonElement;
|
|
1700
1777
|
}
|
|
1778
|
+
export interface EzSplitButtonCustomEvent<T> extends CustomEvent<T> {
|
|
1779
|
+
detail: T;
|
|
1780
|
+
target: HTMLEzSplitButtonElement;
|
|
1781
|
+
}
|
|
1701
1782
|
export interface EzTabselectorCustomEvent<T> extends CustomEvent<T> {
|
|
1702
1783
|
detail: T;
|
|
1703
1784
|
target: HTMLEzTabselectorElement;
|
|
@@ -1953,6 +2034,12 @@ declare global {
|
|
|
1953
2034
|
prototype: HTMLEzSkeletonElement;
|
|
1954
2035
|
new (): HTMLEzSkeletonElement;
|
|
1955
2036
|
};
|
|
2037
|
+
interface HTMLEzSplitButtonElement extends Components.EzSplitButton, HTMLStencilElement {
|
|
2038
|
+
}
|
|
2039
|
+
var HTMLEzSplitButtonElement: {
|
|
2040
|
+
prototype: HTMLEzSplitButtonElement;
|
|
2041
|
+
new (): HTMLEzSplitButtonElement;
|
|
2042
|
+
};
|
|
1956
2043
|
interface HTMLEzSplitItemElement extends Components.EzSplitItem, HTMLStencilElement {
|
|
1957
2044
|
}
|
|
1958
2045
|
var HTMLEzSplitItemElement: {
|
|
@@ -2069,6 +2156,7 @@ declare global {
|
|
|
2069
2156
|
"ez-search": HTMLEzSearchElement;
|
|
2070
2157
|
"ez-sidebar-button": HTMLEzSidebarButtonElement;
|
|
2071
2158
|
"ez-skeleton": HTMLEzSkeletonElement;
|
|
2159
|
+
"ez-split-button": HTMLEzSplitButtonElement;
|
|
2072
2160
|
"ez-split-item": HTMLEzSplitItemElement;
|
|
2073
2161
|
"ez-split-panel": HTMLEzSplitPanelElement;
|
|
2074
2162
|
"ez-tabselector": HTMLEzTabselectorElement;
|
|
@@ -2266,6 +2354,10 @@ declare namespace LocalJSX {
|
|
|
2266
2354
|
"value"?: Date;
|
|
2267
2355
|
}
|
|
2268
2356
|
interface EzCardItem {
|
|
2357
|
+
/**
|
|
2358
|
+
* Determina se a chave do item deve ser exibida.
|
|
2359
|
+
*/
|
|
2360
|
+
"enableKey"?: boolean;
|
|
2269
2361
|
/**
|
|
2270
2362
|
* Determina o conteúdo do card. Deve conter um objeto no formato: `{title: string, key: string, details: any}`.
|
|
2271
2363
|
*/
|
|
@@ -2450,10 +2542,6 @@ declare namespace LocalJSX {
|
|
|
2450
2542
|
* Array com as opções do ez-combo-box. Os elementos devem obedecer o formato: `{value: string, label: string}`.
|
|
2451
2543
|
*/
|
|
2452
2544
|
"options"?: Array<IOption>;
|
|
2453
|
-
/**
|
|
2454
|
-
* Se true ativa o modo pesquisa do ez-combo-box.
|
|
2455
|
-
*/
|
|
2456
|
-
"searchMode"?: boolean;
|
|
2457
2545
|
/**
|
|
2458
2546
|
* Se true cada opção na lista exibe o `value` junto com `label`.
|
|
2459
2547
|
*/
|
|
@@ -2606,6 +2694,10 @@ declare namespace LocalJSX {
|
|
|
2606
2694
|
* Emitido quando ocorrer um click em um item da lista, o IDropdownItem que recebeu o click deve ser enviado como data do evento.
|
|
2607
2695
|
*/
|
|
2608
2696
|
"onEzClick"?: (event: EzDropdownCustomEvent<IDropdownItem>) => void;
|
|
2697
|
+
/**
|
|
2698
|
+
* Emitido quando ocorrer um click fora do componente.
|
|
2699
|
+
*/
|
|
2700
|
+
"onEzOutsideClick"?: (event: EzDropdownCustomEvent<void>) => void;
|
|
2609
2701
|
/**
|
|
2610
2702
|
* Emitido quando ocorrer um click em uma ação secundaria do item, o IDropdownSubAction deve ser enviado como data do evento.
|
|
2611
2703
|
*/
|
|
@@ -3065,9 +3157,13 @@ declare namespace LocalJSX {
|
|
|
3065
3157
|
*/
|
|
3066
3158
|
"heightMode"?: "auto" | "full";
|
|
3067
3159
|
/**
|
|
3068
|
-
*
|
|
3160
|
+
* Evento emitido ao clicar no botão de fechar (onEzClosePopup).
|
|
3069
3161
|
*/
|
|
3070
3162
|
"onEzClosePopup"?: (event: EzPopupCustomEvent<any>) => void;
|
|
3163
|
+
/**
|
|
3164
|
+
* Evento emitido ao clicar no botão de fechar (ezPopupAction = OK)
|
|
3165
|
+
*/
|
|
3166
|
+
"onEzPopupAction"?: (event: EzPopupCustomEvent<string>) => void;
|
|
3071
3167
|
/**
|
|
3072
3168
|
* Define se o ez-popover está aberto.
|
|
3073
3169
|
*/
|
|
@@ -3161,11 +3257,15 @@ declare namespace LocalJSX {
|
|
|
3161
3257
|
/**
|
|
3162
3258
|
* Emitido quando acontece a alteração de valor do campo.
|
|
3163
3259
|
*/
|
|
3164
|
-
"onEzChange"?: (event: EzSearchCustomEvent<
|
|
3260
|
+
"onEzChange"?: (event: EzSearchCustomEvent<IOption>) => void;
|
|
3165
3261
|
/**
|
|
3166
3262
|
* Carrega as opções dinamicamente.
|
|
3167
3263
|
*/
|
|
3168
|
-
"optionLoader"?: (argument:
|
|
3264
|
+
"optionLoader"?: (argument: ISearchArgument) => Promise<Array<IOption>> | Array<IOption> | IOption;
|
|
3265
|
+
/**
|
|
3266
|
+
* Array com as opções do ez-combo-box. Os elementos devem obedecer o formato: `{value: string, label: string}`.
|
|
3267
|
+
*/
|
|
3268
|
+
"options"?: Array<IOption>;
|
|
3169
3269
|
/**
|
|
3170
3270
|
* Se false cada opção na lista deve exibir somente o `label`.
|
|
3171
3271
|
*/
|
|
@@ -3178,10 +3278,14 @@ declare namespace LocalJSX {
|
|
|
3178
3278
|
* Se true remove a opção vazia da lista.
|
|
3179
3279
|
*/
|
|
3180
3280
|
"suppressEmptyOption"?: boolean;
|
|
3281
|
+
/**
|
|
3282
|
+
* Se true desabilita a digitação dentro do componente.
|
|
3283
|
+
*/
|
|
3284
|
+
"suppressSearch"?: boolean;
|
|
3181
3285
|
/**
|
|
3182
3286
|
* Define o valor do campo.
|
|
3183
3287
|
*/
|
|
3184
|
-
"value"?:
|
|
3288
|
+
"value"?: IOption | string;
|
|
3185
3289
|
}
|
|
3186
3290
|
interface EzSidebarButton {
|
|
3187
3291
|
/**
|
|
@@ -3226,9 +3330,76 @@ declare namespace LocalJSX {
|
|
|
3226
3330
|
*/
|
|
3227
3331
|
"width"?: string;
|
|
3228
3332
|
}
|
|
3333
|
+
interface EzSplitButton {
|
|
3334
|
+
/**
|
|
3335
|
+
* Se false o usuário não pode interagir com o botão.
|
|
3336
|
+
*/
|
|
3337
|
+
"enabled"?: boolean;
|
|
3338
|
+
/**
|
|
3339
|
+
* Define o ícone a ser usado da biblioteca de ícones: [ez-icons](https://gilded-nasturtium-6b64dd.netlify.app/docs/components/layout-doc/icons/)
|
|
3340
|
+
*/
|
|
3341
|
+
"iconName"?: string;
|
|
3342
|
+
/**
|
|
3343
|
+
* Define o caminho usado nos modos `icon-only` e `icon-left` para imagens não contempladas na biblioteca de ícones.
|
|
3344
|
+
*/
|
|
3345
|
+
"image"?: string;
|
|
3346
|
+
/**
|
|
3347
|
+
* Define o conteúdo do dropdown.
|
|
3348
|
+
*/
|
|
3349
|
+
"items"?: Array<IDropdownItem>;
|
|
3350
|
+
/**
|
|
3351
|
+
* Texto a ser apresentado como label do botão.
|
|
3352
|
+
*/
|
|
3353
|
+
"label"?: string;
|
|
3354
|
+
/**
|
|
3355
|
+
* Texto a ser apresentado como title do botão principal
|
|
3356
|
+
*/
|
|
3357
|
+
"leftTitle"?: string;
|
|
3358
|
+
/**
|
|
3359
|
+
* Define o modo de uso do botão.
|
|
3360
|
+
*/
|
|
3361
|
+
"mode"?: 'default' | 'icon-only' | 'icon-left';
|
|
3362
|
+
/**
|
|
3363
|
+
* Emitido quando o botão principal é clicado
|
|
3364
|
+
*/
|
|
3365
|
+
"onButtonClick"?: (event: EzSplitButtonCustomEvent<void>) => void;
|
|
3366
|
+
/**
|
|
3367
|
+
* Emitido quando um item do dropdown é clicado
|
|
3368
|
+
*/
|
|
3369
|
+
"onDropdownItemClick"?: (event: EzSplitButtonCustomEvent<IDropdownItem>) => void;
|
|
3370
|
+
/**
|
|
3371
|
+
* Emitido quando uma subAction de um item do dropdown é clicada
|
|
3372
|
+
*/
|
|
3373
|
+
"onDropdownSubActionClick"?: (event: EzSplitButtonCustomEvent<IDropdownSubAction>) => void;
|
|
3374
|
+
/**
|
|
3375
|
+
* Texto a ser apresentado como title do botão dropdown
|
|
3376
|
+
*/
|
|
3377
|
+
"rightTitle"?: string;
|
|
3378
|
+
/**
|
|
3379
|
+
* Define o tamanho do ez-split-button.
|
|
3380
|
+
*/
|
|
3381
|
+
"size"?: 'medium' | 'large';
|
|
3382
|
+
}
|
|
3229
3383
|
interface EzSplitItem {
|
|
3384
|
+
/**
|
|
3385
|
+
* Define se o item pode ser expandido
|
|
3386
|
+
*/
|
|
3387
|
+
"enableExpand"?: boolean;
|
|
3388
|
+
/**
|
|
3389
|
+
* Define um título para o painel.
|
|
3390
|
+
*/
|
|
3391
|
+
"label"?: string;
|
|
3392
|
+
/**
|
|
3393
|
+
* Define o tamanho inicial do painel.
|
|
3394
|
+
* @values '%', 'fr'
|
|
3395
|
+
*/
|
|
3396
|
+
"size"?: string;
|
|
3230
3397
|
}
|
|
3231
3398
|
interface EzSplitPanel {
|
|
3399
|
+
/**
|
|
3400
|
+
* Responsável por definir o painel que limita o tamanho do item expandido.
|
|
3401
|
+
*/
|
|
3402
|
+
"anchorToExpand"?: boolean;
|
|
3232
3403
|
"direction"?: 'row' | 'column';
|
|
3233
3404
|
}
|
|
3234
3405
|
interface EzTabselector {
|
|
@@ -3545,6 +3716,7 @@ declare namespace LocalJSX {
|
|
|
3545
3716
|
"ez-search": EzSearch;
|
|
3546
3717
|
"ez-sidebar-button": EzSidebarButton;
|
|
3547
3718
|
"ez-skeleton": EzSkeleton;
|
|
3719
|
+
"ez-split-button": EzSplitButton;
|
|
3548
3720
|
"ez-split-item": EzSplitItem;
|
|
3549
3721
|
"ez-split-panel": EzSplitPanel;
|
|
3550
3722
|
"ez-tabselector": EzTabselector;
|
|
@@ -3601,6 +3773,7 @@ declare module "@stencil/core" {
|
|
|
3601
3773
|
"ez-search": LocalJSX.EzSearch & JSXBase.HTMLAttributes<HTMLEzSearchElement>;
|
|
3602
3774
|
"ez-sidebar-button": LocalJSX.EzSidebarButton & JSXBase.HTMLAttributes<HTMLEzSidebarButtonElement>;
|
|
3603
3775
|
"ez-skeleton": LocalJSX.EzSkeleton & JSXBase.HTMLAttributes<HTMLEzSkeletonElement>;
|
|
3776
|
+
"ez-split-button": LocalJSX.EzSplitButton & JSXBase.HTMLAttributes<HTMLEzSplitButtonElement>;
|
|
3604
3777
|
"ez-split-item": LocalJSX.EzSplitItem & JSXBase.HTMLAttributes<HTMLEzSplitItemElement>;
|
|
3605
3778
|
"ez-split-panel": LocalJSX.EzSplitPanel & JSXBase.HTMLAttributes<HTMLEzSplitPanelElement>;
|
|
3606
3779
|
"ez-tabselector": LocalJSX.EzTabselector & JSXBase.HTMLAttributes<HTMLEzTabselectorElement>;
|
|
@@ -2,5 +2,6 @@ export default class CSSVarsUtils {
|
|
|
2
2
|
static applyCSSVars(document: DocumentOrShadowRoot, host: HTMLElement, child: HTMLElement): void;
|
|
3
3
|
static applyVarsTextInput(host: HTMLElement, child: HTMLElement): void;
|
|
4
4
|
static applyVarsButton(host: HTMLElement, child: HTMLElement): void;
|
|
5
|
+
static applyVarsGrid(host: HTMLElement, child: HTMLElement): void;
|
|
5
6
|
private static applyIfExists;
|
|
6
7
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FieldDescriptor, UserInterface } from "@sankhyalabs/core";
|
|
2
|
-
import {
|
|
2
|
+
import { ISearchArgument } from "../../components/ez-combo-box/ez-combo-box";
|
|
3
|
+
import { IOption } from "../../components/ez-search/ez-search";
|
|
3
4
|
import { IFieldConfig } from "./IFieldConfig";
|
|
4
5
|
export default interface IAbstractFieldMetadata {
|
|
5
6
|
userInterface: UserInterface;
|