@sankhyalabs/ezui 5.20.0-dev.4 → 5.20.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.
Files changed (173) hide show
  1. package/dist/cjs/{CSSVarsUtils-b136a156.js → CSSVarsUtils-10c9d5b4.js} +13 -0
  2. package/dist/cjs/ez-actions-button.cjs.entry.js +1 -1
  3. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  4. package/dist/cjs/ez-card-item_3.cjs.entry.js +183 -0
  5. package/dist/cjs/ez-check.cjs.entry.js +1 -1
  6. package/dist/cjs/ez-combo-box.cjs.entry.js +20 -163
  7. package/dist/cjs/ez-date-input.cjs.entry.js +4 -1
  8. package/dist/cjs/ez-date-time-input.cjs.entry.js +4 -1
  9. package/dist/cjs/ez-form-view.cjs.entry.js +30 -13
  10. package/dist/cjs/ez-grid.cjs.entry.js +169 -62
  11. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-modal-container.cjs.entry.js +6 -0
  13. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +2 -10
  14. package/dist/cjs/ez-number-input.cjs.entry.js +4 -1
  15. package/dist/cjs/ez-popup.cjs.entry.js +8 -1
  16. package/dist/cjs/ez-scroller_3.cjs.entry.js +18 -4
  17. package/dist/cjs/ez-search.cjs.entry.js +611 -32
  18. package/dist/cjs/ez-split-button.cjs.entry.js +166 -0
  19. package/dist/cjs/ez-split-item.cjs.entry.js +20 -2
  20. package/dist/cjs/ez-split-panel.cjs.entry.js +52 -15
  21. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  22. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  23. package/dist/cjs/ezui.cjs.js +1 -1
  24. package/dist/cjs/filter-column.cjs.entry.js +16 -5
  25. package/dist/cjs/index-a7b0c73d.js +10 -10
  26. package/dist/cjs/loader.cjs.js +1 -1
  27. package/dist/collection/collection-manifest.json +4 -3
  28. package/dist/collection/components/ez-alert-list/ez-alert-list.css +1 -1
  29. package/dist/collection/components/ez-card-item/ez-card-item.css +52 -3
  30. package/dist/collection/components/ez-card-item/ez-card-item.js +22 -3
  31. package/dist/collection/components/ez-check/ez-check.css +1 -0
  32. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +1 -0
  33. package/dist/collection/components/ez-combo-box/ez-combo-box.js +20 -180
  34. package/dist/collection/components/ez-date-input/ez-date-input.js +3 -0
  35. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +3 -0
  36. package/dist/collection/components/ez-form-view/ez-form-view.css +17 -1
  37. package/dist/collection/components/ez-form-view/ez-form-view.js +22 -5
  38. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
  39. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
  40. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +3 -3
  41. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
  42. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -1
  43. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +1 -1
  44. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +34 -18
  45. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +15 -2
  46. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +21 -0
  47. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +5 -7
  48. package/dist/collection/components/ez-grid/ez-grid.css +25 -2
  49. package/dist/collection/components/ez-grid/ez-grid.js +100 -30
  50. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +16 -5
  51. package/dist/collection/components/ez-icon/ez-icon.css +118 -116
  52. package/dist/collection/components/ez-modal-container/ez-modal-container.js +15 -0
  53. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +2 -10
  54. package/dist/collection/components/ez-number-input/ez-number-input.js +3 -0
  55. package/dist/collection/components/ez-popup/ez-popup.css +2 -5
  56. package/dist/collection/components/ez-popup/ez-popup.js +31 -1
  57. package/dist/collection/components/ez-search/ez-search.css +331 -0
  58. package/dist/collection/components/ez-search/ez-search.js +688 -55
  59. package/dist/collection/components/ez-split-button/ez-split-button.css +229 -0
  60. package/dist/collection/components/ez-split-button/ez-split-button.js +455 -0
  61. package/dist/collection/components/ez-split-button/test/dropdownItems.js +42 -0
  62. package/dist/collection/components/ez-split-panel/ez-split-panel.css +6 -14
  63. package/dist/collection/components/ez-split-panel/ez-split-panel.js +77 -23
  64. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +66 -12
  65. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +82 -2
  66. package/dist/collection/components/ez-toast/ez-toast.css +1 -1
  67. package/dist/collection/components/ez-tree/ez-tree.css +26 -0
  68. package/dist/collection/components/ez-tree/interfaces/ITreeItemBadge.js +1 -0
  69. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +15 -2
  70. package/dist/collection/utils/CSSVarsUtils.js +13 -0
  71. package/dist/collection/utils/form/test/DataBinder.test.js +9 -0
  72. package/dist/custom-elements/index.d.ts +6 -0
  73. package/dist/custom-elements/index.js +1148 -326
  74. package/dist/esm/{CSSVarsUtils-a97cfa29.js → CSSVarsUtils-71ce76be.js} +13 -0
  75. package/dist/esm/ez-actions-button.entry.js +1 -1
  76. package/dist/esm/ez-alert-list.entry.js +1 -1
  77. package/dist/esm/ez-card-item_3.entry.js +177 -0
  78. package/dist/esm/ez-check.entry.js +1 -1
  79. package/dist/esm/ez-combo-box.entry.js +21 -164
  80. package/dist/esm/ez-date-input.entry.js +4 -1
  81. package/dist/esm/ez-date-time-input.entry.js +4 -1
  82. package/dist/esm/ez-form-view.entry.js +31 -14
  83. package/dist/esm/ez-grid.entry.js +170 -63
  84. package/dist/esm/ez-icon.entry.js +1 -1
  85. package/dist/esm/ez-modal-container.entry.js +6 -0
  86. package/dist/esm/ez-multi-selection-list.entry.js +2 -10
  87. package/dist/esm/ez-number-input.entry.js +4 -1
  88. package/dist/esm/ez-popup.entry.js +8 -1
  89. package/dist/esm/ez-scroller_3.entry.js +18 -4
  90. package/dist/esm/ez-search.entry.js +613 -34
  91. package/dist/esm/ez-split-button.entry.js +162 -0
  92. package/dist/esm/ez-split-item.entry.js +20 -2
  93. package/dist/esm/ez-split-panel.entry.js +52 -15
  94. package/dist/esm/ez-time-input.entry.js +1 -1
  95. package/dist/esm/ez-toast.entry.js +1 -1
  96. package/dist/esm/ezui.js +1 -1
  97. package/dist/esm/filter-column.entry.js +16 -5
  98. package/dist/esm/index-baa5e267.js +10 -10
  99. package/dist/esm/loader.js +1 -1
  100. package/dist/ezui/ezui.esm.js +1 -1
  101. package/dist/ezui/p-2eb8f73b.entry.js +1 -0
  102. package/dist/ezui/p-3faa2b46.entry.js +1 -0
  103. package/dist/ezui/p-58fae29b.entry.js +1 -0
  104. package/dist/ezui/{p-40f72de4.entry.js → p-784fe207.entry.js} +1 -1
  105. package/dist/ezui/p-7a636dfc.entry.js +1 -0
  106. package/dist/ezui/p-7af81663.entry.js +1 -0
  107. package/dist/ezui/p-7bc07c31.entry.js +1 -0
  108. package/dist/ezui/p-8c82374d.entry.js +1 -0
  109. package/dist/ezui/{p-8becebf8.entry.js → p-8df1ca33.entry.js} +1 -1
  110. package/dist/ezui/{p-940ed30b.entry.js → p-8e7031a0.entry.js} +1 -1
  111. package/dist/ezui/p-91f626d3.entry.js +1 -0
  112. package/dist/ezui/{p-eb36f072.entry.js → p-99ead599.entry.js} +1 -1
  113. package/dist/ezui/{p-7eb3e1a5.js → p-9e11fc7b.js} +1 -1
  114. package/dist/ezui/p-9f1e89c9.entry.js +1 -0
  115. package/dist/ezui/p-af95cd16.entry.js +1 -0
  116. package/dist/ezui/{p-c0f1715f.entry.js → p-b567fa8c.entry.js} +1 -1
  117. package/dist/ezui/p-bae3d0aa.entry.js +1 -0
  118. package/dist/ezui/p-baf80b13.entry.js +1 -0
  119. package/dist/ezui/p-bf79aaa1.entry.js +1 -0
  120. package/dist/ezui/{p-93c3df4f.entry.js → p-d7d7423a.entry.js} +1 -1
  121. package/dist/ezui/p-db77a984.entry.js +1 -0
  122. package/dist/ezui/{p-9cad9b6e.entry.js → p-e85c48d7.entry.js} +1 -1
  123. package/dist/ezui/{p-844ee673.entry.js → p-fb5adf9e.entry.js} +2 -2
  124. package/dist/types/components/ez-card-item/ez-card-item.d.ts +4 -0
  125. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +1 -15
  126. package/dist/types/components/ez-form-view/ez-form-view.d.ts +3 -0
  127. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +1 -0
  128. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +2 -0
  129. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +2 -1
  130. package/dist/types/components/ez-grid/controller/ag-grid/DataSourceInterceptor.d.ts +8 -0
  131. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
  132. package/dist/types/components/ez-grid/ez-grid.d.ts +17 -2
  133. package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +4 -1
  134. package/dist/types/components/ez-guide-navigator/interfaces/IGuideItem.d.ts +0 -1
  135. package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +1 -0
  136. package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +0 -1
  137. package/dist/types/components/ez-popup/ez-popup.d.ts +6 -1
  138. package/dist/types/components/ez-search/ez-search.d.ts +100 -10
  139. package/dist/types/components/ez-split-button/ez-split-button.d.ts +92 -0
  140. package/dist/types/components/ez-split-button/test/dropdownItems.d.ts +2 -0
  141. package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +28 -0
  142. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +27 -0
  143. package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +3 -1
  144. package/dist/types/components/ez-tree/interfaces/ITreeItemBadge.d.ts +6 -0
  145. package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +0 -1
  146. package/dist/types/components.d.ts +182 -21
  147. package/dist/types/utils/CSSVarsUtils.d.ts +1 -0
  148. package/dist/types/utils/form/test/DataBinder.test.d.ts +1 -0
  149. package/dist/types/utils/interfaces/AbstractFieldMetadata.d.ts +2 -1
  150. package/package.json +5 -5
  151. package/react/components.d.ts +1 -0
  152. package/react/components.js +1 -0
  153. package/react/components.js.map +1 -1
  154. package/dist/cjs/ez-card-item.cjs.entry.js +0 -52
  155. package/dist/cjs/ez-filter-input_2.cjs.entry.js +0 -137
  156. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridUtils.js +0 -8
  157. package/dist/esm/ez-card-item.entry.js +0 -48
  158. package/dist/esm/ez-filter-input_2.entry.js +0 -132
  159. package/dist/ezui/p-05f5a778.entry.js +0 -1
  160. package/dist/ezui/p-13dbad96.entry.js +0 -1
  161. package/dist/ezui/p-24d3fede.entry.js +0 -1
  162. package/dist/ezui/p-51c5e071.entry.js +0 -1
  163. package/dist/ezui/p-5613fe63.entry.js +0 -1
  164. package/dist/ezui/p-596634e9.entry.js +0 -1
  165. package/dist/ezui/p-5d692ed1.entry.js +0 -1
  166. package/dist/ezui/p-5d86cca9.entry.js +0 -1
  167. package/dist/ezui/p-60848ef6.entry.js +0 -1
  168. package/dist/ezui/p-a08b309b.entry.js +0 -1
  169. package/dist/ezui/p-a32aaac6.entry.js +0 -1
  170. package/dist/ezui/p-a5ac7151.entry.js +0 -1
  171. package/dist/ezui/p-af15c277.entry.js +0 -1
  172. package/dist/ezui/p-d6ffe679.entry.js +0 -1
  173. package/dist/types/components/ez-grid/controller/ag-grid/AgGridUtils.d.ts +0 -1
@@ -20,6 +20,10 @@ export declare class EzCardItem {
20
20
  * `{title: string, key: string, details: any}`.
21
21
  */
22
22
  item: CardItem;
23
+ /**
24
+ * Determina se a chave do item deve ser exibida.
25
+ */
26
+ enableKey: boolean;
23
27
  /**
24
28
  * Emitido sempre que o ez-card é clicado.
25
29
  */
@@ -12,7 +12,6 @@ export declare class EzComboBox {
12
12
  private _maxWidthValue;
13
13
  private _tabPressed;
14
14
  private _textEmptyList;
15
- private _textEmptySearch;
16
15
  private _lookupMode;
17
16
  private _resizeObserver;
18
17
  private el;
@@ -46,10 +45,6 @@ export declare class EzComboBox {
46
45
  * Define uma mensagem de orientação ao usuário, colocando o campo em modo inválido.
47
46
  */
48
47
  errorMessage: string;
49
- /**
50
- * Se true ativa o modo pesquisa do ez-combo-box.
51
- */
52
- searchMode: boolean;
53
48
  /**
54
49
  * Se true a opção selecionada exibe o `value` junto com `label`.
55
50
  */
@@ -122,6 +117,7 @@ export declare class EzComboBox {
122
117
  private getText;
123
118
  private getSelectedOption;
124
119
  private updateVisibleOptions;
120
+ private hasToAddEmptyoption;
125
121
  private getMaxWidthValue;
126
122
  private getWidthValue;
127
123
  private buildItem;
@@ -133,26 +129,16 @@ export declare class EzComboBox {
133
129
  private scrollToOption;
134
130
  private selectCurrentOption;
135
131
  private updateSource;
136
- private clearSource;
137
132
  private selectOption;
138
133
  private loadOptions;
139
134
  private cancelPreselection;
140
135
  private setInputValue;
141
136
  private clearSearch;
142
- private controlListWithOnlyOne;
143
- private controlEmptySearch;
144
- private validateDescriptionValue;
145
- private loadDescriptionValue;
146
- private setDescriptionValue;
147
- private loadOptionValue;
148
- private showNoResultMessage;
149
- private getFieldLabel;
150
137
  private resetOptions;
151
138
  componentWillLoad(): void;
152
139
  componentDidRender(): void;
153
140
  componentDidLoad(): void;
154
141
  private handlerIconClick;
155
- private buildNumberArgument;
156
142
  private onTextInputChangeHandler;
157
143
  private clearDeboucingTimeout;
158
144
  private onTextInputClickHandler;
@@ -1,5 +1,6 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
2
  import { IFormViewField } from './interfaces/IFormViewField';
3
+ import { UserInterface } from '@sankhyalabs/core';
3
4
  import { FormItems } from './structure';
4
5
  export declare class EzFormView {
5
6
  _element: HTMLEzFormViewElement;
@@ -18,5 +19,7 @@ export declare class EzFormView {
18
19
  showUp(): Promise<void>;
19
20
  private groupFields;
20
21
  componentDidRender(): void;
22
+ isItemFullWidth(userInterface: UserInterface): boolean;
23
+ buildFormItemElement(item: IFormViewField, classItem?: string): any;
21
24
  render(): any;
22
25
  }
@@ -109,6 +109,7 @@ export default interface EzGridController {
109
109
  locateColumn(columnName: string): void;
110
110
  configFilterColumn(filterColumn: FilterCollumn): any;
111
111
  getFilter(): Array<Filter> | undefined;
112
+ clearFilter(): void;
112
113
  }
113
114
  /**
114
115
  * Carrega as informações necessárias para contextualizar corretamente a instância.
@@ -32,12 +32,14 @@ export default class AgGridController implements EzGridController, SortingProvid
32
32
  private _editionManager;
33
33
  configFilterColumn(filterColumn: HTMLFilterColumnElement): void;
34
34
  private handleFilteredColumnsChanged;
35
+ clearFilter(): void;
35
36
  private showFilterColumn;
36
37
  constructor(enterprise: boolean);
37
38
  getGridConfig(): Array<EzGridColumnConfig>;
38
39
  locateColumn(columnName: string): void;
39
40
  getSort(_dataUnitName: string, defaultSorting: Array<Sort>): Array<Sort>;
40
41
  getFilter(): Array<Filter> | undefined;
42
+ private getExpression;
41
43
  initDatagrid(container: HTMLElement, options: EzGridOptions): void;
42
44
  private setFilterColumnLeftPosition;
43
45
  private buildMenuItemOptions;
@@ -1,5 +1,5 @@
1
1
  import { IServerSideDatasource, IServerSideGetRowsParams } from "ag-grid-community";
2
- import { DataUnit, QuickFilter } from "@sankhyalabs/core";
2
+ import { DataUnit, QuickFilter } from '@sankhyalabs/core';
3
3
  import EzGridController, { EzGridColumn, EzGridOptions } from "../EzGridController";
4
4
  export default class DataSource implements IServerSideDatasource {
5
5
  private _controller;
@@ -10,6 +10,7 @@ export default class DataSource implements IServerSideDatasource {
10
10
  quickFilter: QuickFilter;
11
11
  readonly RECORD_ARCHIVE = "__RECORD_ARCHIVE__";
12
12
  private duObserver;
13
+ private updateLoadedRecords;
13
14
  private isSilentChange;
14
15
  constructor(dataUnit: DataUnit, controller: EzGridController, options: EzGridOptions);
15
16
  private updateSelection;
@@ -0,0 +1,8 @@
1
+ import { DUActionInterceptor, DataUnitAction } from "@sankhyalabs/core";
2
+ import EzGridController from "../EzGridController";
3
+ export declare class DataSourceInterceptor implements DUActionInterceptor {
4
+ private _controller;
5
+ constructor(controller: EzGridController);
6
+ private clearColumnFilter;
7
+ interceptAction(action: DataUnitAction): DataUnitAction | Promise<DataUnitAction>;
8
+ }
@@ -2,7 +2,7 @@ import { IHeaderParams } from 'ag-grid-community';
2
2
  export interface IEzGridCustomHeaderParams {
3
3
  tooltip?: string;
4
4
  hasFilter?: () => boolean;
5
- showColumnFilter?: (leftPosition: string, fromIcon: boolean) => void;
5
+ showColumnFilter?: (leftPosition: number) => void;
6
6
  }
7
7
  export declare class EzGridCustomHeader {
8
8
  private params;
@@ -1,9 +1,9 @@
1
1
  import { DataUnit } from '@sankhyalabs/core';
2
2
  import { EventEmitter } from '../../stencil-public-runtime';
3
+ import { IRecordValidator } from '../../utils/form/interfaces';
3
4
  import { IMultiSelectionListDataSource } from '../ez-multi-selection-list/interfaces/IMultiSelectionListDataSource';
4
- import { EzGridColumn, EzGridColumnConfig, EzGridColumStateEvent, IGridConfig, IStatusResolver, StatusResolverFunction } from './controller/EzGridController';
5
+ import { EzGridColumStateEvent, EzGridColumn, EzGridColumnConfig, IGridConfig, IStatusResolver, StatusResolverFunction } from './controller/EzGridController';
5
6
  import { ISelection, ISelectionToastConfig } from './interfaces';
6
- import { IRecordValidator } from '../../utils/form/interfaces';
7
7
  export declare class EzGrid {
8
8
  private _container;
9
9
  private _refPaginationControl;
@@ -13,6 +13,9 @@ export declare class EzGrid {
13
13
  private _messageFilterAppliedSuccess;
14
14
  private _gridApi;
15
15
  private _filterColumn;
16
+ private _refPaginationLabel;
17
+ private _refPaginationLabelTooltip;
18
+ private _headerOverflowWatcher;
16
19
  _element: HTMLElement;
17
20
  private _paginationInfo;
18
21
  private _paginationChangedByKeyboard;
@@ -123,6 +126,7 @@ export declare class EzGrid {
123
126
  */
124
127
  filterColumns(search: string): Promise<Array<EzGridColumn>>;
125
128
  observeConfig(config: IGridConfig): void;
129
+ updatePaginationTooltip(): void;
126
130
  onSelectionChange(evt: CustomEvent): void;
127
131
  private setSelection;
128
132
  private onSelectAllRecords;
@@ -130,6 +134,7 @@ export declare class EzGrid {
130
134
  private onClearSelectedRecords;
131
135
  private createConfigFromState;
132
136
  private positionSelectionCounter;
137
+ private calculatePositionLeft;
133
138
  private setEvents;
134
139
  private resizeSelectionCounter;
135
140
  private configSelectionCounter;
@@ -140,6 +145,16 @@ export declare class EzGrid {
140
145
  private resetPaginationState;
141
146
  private getPaginationControl;
142
147
  componentDidLoad(): void;
148
+ private handlePaginationChange;
149
+ private _getActualPageLabel;
150
+ private _getRemainingPageLabel;
151
+ private _getPaginationTooltip;
152
+ private _initHeaderOverflowWatcher;
153
+ private buildOverFlowWatcherParams;
154
+ private handleOverFlow;
155
+ private _hidePaginationDescription;
156
+ private _showPaginationDescription;
157
+ disconnectedCallback(): void;
143
158
  componentWillRender(): void;
144
159
  componentDidRender(): void;
145
160
  componentWillLoad(): void;
@@ -8,6 +8,8 @@ export declare class FilterColumn {
8
8
  private readonly TOP_POSITION_NO_TASKBAR;
9
9
  private readonly TOP_POSITION_NO_TASKBAR_HEADER_HIDDEN;
10
10
  private readonly DEFAULT_HEIGHT;
11
+ private readonly FIX_MARGIN;
12
+ private readonly FILTER_COLUMN_WIDTH;
11
13
  private ezPopoverElement;
12
14
  private ezMultiSelectionList;
13
15
  applyFilterColumnOptions: EventEmitter<IAppliedFilterColumnOptions>;
@@ -30,6 +32,7 @@ export declare class FilterColumn {
30
32
  */
31
33
  show(configs: IFilterColumnConfigs): Promise<void>;
32
34
  private calculateLeftPosition;
35
+ private calcFilterColumnLeftPosition;
33
36
  private buildIsTextSearch;
34
37
  private calcTopPosition;
35
38
  private buildReferenceTopPosition;
@@ -47,7 +50,7 @@ export declare class FilterColumn {
47
50
  export interface IFilterColumnConfigs {
48
51
  columnName: string;
49
52
  columnLabel: string;
50
- leftPosition: string;
53
+ leftPosition: number;
51
54
  filteredOptions?: IMultiSelectionOption[];
52
55
  fromIcon?: boolean;
53
56
  }
@@ -1,5 +1,4 @@
1
1
  import { ITreeItem } from "../../ez-tree/interfaces/ITreeItem";
2
2
  export interface IGuideItem extends ITreeItem {
3
3
  children?: Array<IGuideItem> | ((item: IGuideItem) => Promise<Array<IGuideItem>>);
4
- badge?: "error" | "warning" | "success" | null;
5
4
  }
@@ -38,6 +38,7 @@ export declare class EzModalContainer {
38
38
  * LOAD - Quando o modal é carregado (eventualmente pode ser usado para dar foco a um elemento específico)
39
39
  */
40
40
  ezModalAction: EventEmitter<string>;
41
+ handleKeyDown(event: KeyboardEvent): void;
41
42
  private cancelIsVisible;
42
43
  private okIsVisible;
43
44
  componentDidLoad(): void;
@@ -58,7 +58,6 @@ export declare class EzMuiltiSelectionList {
58
58
  private handleSearchOnOption;
59
59
  private handleChangeSelectAllItems;
60
60
  private handleChangeSelectedItem;
61
- private clearInputs;
62
61
  private buildViewList;
63
62
  private buildDeleteIconSlot;
64
63
  private buildInitViewWithDataSource;
@@ -25,10 +25,15 @@ export declare class EzPopup {
25
25
  */
26
26
  ezTitle: string;
27
27
  /**
28
- * Emitido ao clicar no botão de fechar (onEzClosePopup).
28
+ * Evento emitido ao clicar no botão de fechar (onEzClosePopup).
29
29
  */
30
30
  ezClosePopup: EventEmitter;
31
+ /**
32
+ * Evento emitido ao clicar no botão de fechar (ezPopupAction = OK)
33
+ */
34
+ ezPopupAction: EventEmitter<string>;
31
35
  observeConfig(): void;
36
+ handleKeyDown(event: KeyboardEvent): void;
32
37
  private manageOverflow;
33
38
  private manageOverlay;
34
39
  getGridSize(): string;
@@ -1,8 +1,30 @@
1
1
  import { EventEmitter } from "../../stencil-public-runtime";
2
- import { IEzCheckBoxListPosition, IOption, ISearchArgument } from '../ez-combo-box/ez-combo-box';
2
+ import { IEzCheckBoxListPosition } from '../ez-combo-box/ez-combo-box';
3
3
  export declare class EzSearch {
4
- private _elem;
5
- private _comboElement;
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
- * Aplica o foco no campo.
70
- */
102
+ * Aplica o foco no campo.
103
+ */
71
104
  setFocus(): Promise<void>;
72
105
  /**
73
- * Remove o foco do campo.
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,65 @@ export declare class EzSearch {
81
114
  * Limpa o valor do campo de pesquisa
82
115
  */
83
116
  clearValue(): Promise<void>;
84
- getValueAsync(): Promise<unknown>;
85
- onComboChange(event: any): void;
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 selectOption;
139
+ private loadOptions;
140
+ private cancelPreselection;
141
+ private setInputValue;
142
+ private clearSearch;
143
+ private controlListWithOnlyOne;
144
+ private controlEmptySearch;
145
+ private validateDescriptionValue;
146
+ private loadDescriptionValue;
147
+ private setDescriptionValue;
148
+ private loadOptionValue;
149
+ private showNoResultMessage;
150
+ private getFieldLabel;
151
+ private resetOptions;
152
+ componentWillLoad(): void;
153
+ componentDidRender(): void;
86
154
  componentDidLoad(): void;
155
+ private handlerIconClick;
156
+ private buildNumberArgument;
157
+ private onTextInputChangeHandler;
158
+ private clearDeboucingTimeout;
159
+ private keyDownHandler;
160
+ private onTextInputFocusOutHandler;
161
+ private canShowListOptions;
87
162
  render(): any;
88
163
  }
164
+ export interface IOption {
165
+ value: string;
166
+ label: string;
167
+ details?: any;
168
+ }
169
+ export interface ISearchArgument {
170
+ mode: SearchMode;
171
+ argument: string;
172
+ }
173
+ declare enum SearchMode {
174
+ ADVANCED = "ADVANCED",
175
+ PRELOAD = "PRELOAD",
176
+ PREDICTIVE = "PREDICTIVE"
177
+ }
178
+ 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,2 @@
1
+ import { IDropdownItem } from "../../ez-dropdown/structure/DropdownItem";
2
+ export declare const dropdownItems: Array<IDropdownItem>;
@@ -0,0 +1,28 @@
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
+ getGridTemplate(): string;
27
+ render(): any;
28
+ }
@@ -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
  }
@@ -0,0 +1,6 @@
1
+ export interface ITreeItemBadge {
2
+ type: "icon" | "text";
3
+ iconName?: string;
4
+ text?: string;
5
+ iconColor?: "error" | "success" | "warning" | "disabled";
6
+ }
@@ -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 {};