@sankhyalabs/ezui 2.14.0 → 2.14.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.
Files changed (37) hide show
  1. package/dist/cjs/ez-filter-input_3.cjs.entry.js +57 -15
  2. package/dist/cjs/ez-guide-navigator.cjs.entry.js +17 -301
  3. package/dist/cjs/ez-popover.cjs.entry.js +2 -2
  4. package/dist/cjs/ezui.cjs.js +1 -1
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.css +4 -0
  7. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js +79 -138
  8. package/dist/collection/components/ez-guide-navigator/interfaces/IGuideItem.js +1 -0
  9. package/dist/collection/components/ez-guide-navigator/interfaces/index.js +1 -0
  10. package/dist/collection/components/ez-popover/ez-popover.css +1 -1
  11. package/dist/collection/components/ez-popover/ez-popover.js +1 -1
  12. package/dist/collection/components/ez-tree/ez-tree.js +33 -10
  13. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +6 -3
  14. package/dist/collection/components/ez-tree/types/Node.js +2 -1
  15. package/dist/collection/components/ez-tree/types/Tree.js +38 -3
  16. package/dist/custom-elements/index.js +78 -320
  17. package/dist/esm/ez-filter-input_3.entry.js +58 -16
  18. package/dist/esm/ez-guide-navigator.entry.js +18 -302
  19. package/dist/esm/ez-popover.entry.js +2 -2
  20. package/dist/esm/ezui.js +1 -1
  21. package/dist/esm/loader.js +1 -1
  22. package/dist/ezui/ezui.esm.js +1 -1
  23. package/dist/ezui/p-368037b9.entry.js +1 -0
  24. package/dist/ezui/p-73eb147d.entry.js +1 -0
  25. package/dist/ezui/p-ca8f7199.entry.js +1 -0
  26. package/dist/types/components/ez-guide-navigator/interfaces/IGuideItem.d.ts +3 -0
  27. package/dist/types/components/ez-guide-navigator/interfaces/index.d.ts +1 -0
  28. package/dist/types/components/ez-tree/ez-tree.d.ts +6 -2
  29. package/dist/types/components/ez-tree/types/Node.d.ts +1 -0
  30. package/dist/types/components/ez-tree/types/Tree.d.ts +5 -1
  31. package/dist/types/components.d.ts +21 -9
  32. package/package.json +1 -1
  33. package/dist/collection/components/ez-guide-navigator/Guide.js +0 -200
  34. package/dist/ezui/p-98c448c9.entry.js +0 -1
  35. package/dist/ezui/p-a47b3526.entry.js +0 -1
  36. package/dist/ezui/p-fa2f4ea5.entry.js +0 -1
  37. package/dist/types/components/ez-guide-navigator/Guide.d.ts +0 -69
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement, f as forceUpdate, H as Host } from './index-c5203f95.js';
2
- import { ElementIDUtils } from '@sankhyalabs/core';
2
+ import { ElementIDUtils, StringUtils } from '@sankhyalabs/core';
3
3
  import { C as CSSVarsUtils } from './CSSVarsUtils-00f67f32.js';
4
4
 
5
5
  const ezFilterInputCss = ":host{display:block;width:100%}";
@@ -112,6 +112,9 @@ const defaultTooltipResolver = (item, _enabled, _level) => {
112
112
 
113
113
  const TreeItem = (props) => {
114
114
  const { node, selectedId, itemClick, iconClick, iconResolver, tooltipResolver, itemsList } = props;
115
+ if (!node.visible) {
116
+ return;
117
+ }
115
118
  const treeItem = node.item;
116
119
  const level = props.level || 1;
117
120
  const disabled = node.isDisabled();
@@ -121,15 +124,15 @@ const TreeItem = (props) => {
121
124
  if (available) {
122
125
  itemsList.push(treeItem);
123
126
  }
124
- return (h("ul", { title: tooltipResolver(treeItem, !disabled, level), class: level === 1 ? "first-level" : undefined },
125
- h("li", Object.assign({ class: "tree-item", onClick: () => available && itemClick(treeItem) }, {
127
+ return (h("ul", { class: level === 1 ? "first-level" : undefined },
128
+ h("li", Object.assign({ title: tooltipResolver(treeItem, !disabled, level), class: "tree-item", onClick: () => available && itemClick(treeItem) }, {
126
129
  disabled,
127
130
  selected: treeItem.id === selectedId,
128
131
  [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: ElementIDUtils.getInternalIDInfo(`ezTreeItem_${treeItem.id}`)
129
132
  }),
130
133
  h("div", { class: "item-icon-box" }, expandable &&
131
134
  h("ez-icon", { id: treeItem.id, class: "item-icon", size: "small", iconName: iconResolver(treeItem, expanded, level), onClick: () => available && iconClick(treeItem) })),
132
- h("label", { class: "item-label", title: treeItem.disabled ? (treeItem.tooltip || treeItem.label) : treeItem.label }, treeItem.label)),
135
+ h("label", { class: "item-label" }, treeItem.label)),
133
136
  expanded
134
137
  && node.getChildren().map(child => h(TreeItem, { selectedId: selectedId, node: child, itemClick: itemClick, iconClick: iconClick, level: level + 1, iconResolver: iconResolver, tooltipResolver: tooltipResolver, itemsList: itemsList }))));
135
138
  };
@@ -137,6 +140,7 @@ const TreeItem = (props) => {
137
140
  class Node {
138
141
  constructor(tree, item, parent, isPlaceHolder = false) {
139
142
  this.children = new Map();
143
+ this.visible = true;
140
144
  this.item = item;
141
145
  this.parent = parent;
142
146
  this._tree = tree;
@@ -157,7 +161,7 @@ class Node {
157
161
  if (this.isPlaceHolder) {
158
162
  return;
159
163
  }
160
- this.item = Object.assign(Object.assign({}, newItem), { expanded: this.item.expanded });
164
+ this.item = Object.assign({}, newItem);
161
165
  this._isLazyLoad = typeof this.item.children === "function" || this.item.childrenCount > 0;
162
166
  const oldChildren = this.children;
163
167
  this.children = new Map();
@@ -254,8 +258,13 @@ class Tree extends Node {
254
258
  return this._disabledValues.get(id);
255
259
  }
256
260
  load(items) {
261
+ if (items === this._currentItems) {
262
+ return;
263
+ }
264
+ this._currentItems = items;
257
265
  const oldChildren = this.children;
258
266
  this.children = new Map();
267
+ this._disabledValues.clear();
259
268
  items.forEach(item => {
260
269
  const node = oldChildren.get(item.id);
261
270
  if (node) {
@@ -267,6 +276,11 @@ class Tree extends Node {
267
276
  }
268
277
  });
269
278
  }
279
+ setFilterPattern(pattern) {
280
+ this._filterPattern = StringUtils.replaceAccentuatedCharsKeepSymbols(pattern);
281
+ this.applyFilter(this);
282
+ this._changeCallback();
283
+ }
270
284
  updateItem(item) {
271
285
  if (item == undefined) {
272
286
  return;
@@ -280,11 +294,35 @@ class Tree extends Node {
280
294
  }
281
295
  async open(path) {
282
296
  return new Promise(async (resolve) => {
283
- await this.walk(this, path, node => node.item.expanded = true);
297
+ await this.walkPath(this, path, node => node.item.expanded = true);
284
298
  resolve();
285
299
  });
286
300
  }
287
- async walk(parent, path, callback, currentLevel = 0) {
301
+ applyFilter(node) {
302
+ node.children.forEach((value) => {
303
+ this.applyFilter(value);
304
+ });
305
+ if (node.item == undefined) {
306
+ return;
307
+ }
308
+ const normalizedLabel = StringUtils.replaceAccentuatedCharsKeepSymbols(node.item.label);
309
+ let isVisible = false;
310
+ if (normalizedLabel.includes(this._filterPattern)) {
311
+ isVisible = true;
312
+ }
313
+ else {
314
+ const childrenArray = Array.from(node.children.values());
315
+ for (let i = 0; i < childrenArray.length; i++) {
316
+ if (childrenArray[i].visible) {
317
+ isVisible = true;
318
+ node.item.expanded = true;
319
+ break;
320
+ }
321
+ }
322
+ }
323
+ node.visible = isVisible;
324
+ }
325
+ async walkPath(parent, path, callback, currentLevel = 0) {
288
326
  return new Promise(async (resolve) => {
289
327
  const levels = path.split(">>").map(item => item.trim());
290
328
  if (levels.length > currentLevel) {
@@ -294,7 +332,7 @@ class Tree extends Node {
294
332
  await this.loadLevel(node);
295
333
  }
296
334
  callback(node);
297
- await this.walk(node, path, callback, currentLevel + 1);
335
+ await this.walkPath(node, path, callback, currentLevel + 1);
298
336
  }
299
337
  }
300
338
  resolve();
@@ -327,7 +365,6 @@ let EzTree = class {
327
365
  registerInstance(this, hostRef);
328
366
  this.ezChange = createEvent(this, "ezChange", 7);
329
367
  this.ezOpenItem = createEvent(this, "ezOpenItem", 7);
330
- this._tree = new Tree(() => forceUpdate(this));
331
368
  this._onItemClick = (item) => {
332
369
  this.value = item;
333
370
  };
@@ -335,6 +372,7 @@ let EzTree = class {
335
372
  this.openClose(item);
336
373
  this.value = item;
337
374
  };
375
+ this._tree = new Tree(() => forceUpdate(this));
338
376
  /**
339
377
  * Define os itens apresentados na árvore.
340
378
  */
@@ -343,10 +381,6 @@ let EzTree = class {
343
381
  * Define uma função que vai resolver o ícone daquele item. Retorna o nome do ícone da lib de icones do DS.
344
382
  */
345
383
  this.iconResolver = defaultIconResolver;
346
- /**
347
- * Define uma função que vai resolver o `tooltip` ou `title` daquele item.
348
- */
349
- this.tooltipResolver = defaultTooltipResolver;
350
384
  }
351
385
  /**
352
386
  * Efetua a seleção de um item.
@@ -402,8 +436,16 @@ let EzTree = class {
402
436
  node.item.expanded = true;
403
437
  }
404
438
  }
405
- observeItems() {
406
- return this._tree.load(this.items || []);
439
+ /**
440
+ * Efetua a seleção de um item.
441
+ */
442
+ async applyFilter(pattern) {
443
+ this._tree.setFilterPattern(pattern);
444
+ }
445
+ observeItems(newValue, oldValue) {
446
+ if (newValue != oldValue) {
447
+ this._tree.load(this.items || []);
448
+ }
407
449
  }
408
450
  observeValue() {
409
451
  var _a;
@@ -540,7 +582,7 @@ let EzTree = class {
540
582
  :
541
583
  this._tree.getChildren().map(node => {
542
584
  var _a;
543
- return h(TreeItem, { selectedId: (_a = this.value) === null || _a === void 0 ? void 0 : _a.id, node: node, itemClick: this._onItemClick, iconClick: this._onIconClick, iconResolver: this.iconResolver, tooltipResolver: this.tooltipResolver, itemsList: this._visibleItems });
585
+ return h(TreeItem, { selectedId: (_a = this.value) === null || _a === void 0 ? void 0 : _a.id, node: node, itemClick: this._onItemClick, iconClick: this._onIconClick, iconResolver: this.iconResolver, tooltipResolver: this.tooltipResolver || defaultTooltipResolver, itemsList: this._visibleItems });
544
586
  })));
545
587
  }
546
588
  get _element() { return getElement(this); }
@@ -1,334 +1,50 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-c5203f95.js';
2
- import { ObjectUtils, ElementIDUtils } from '@sankhyalabs/core';
2
+ import { ElementIDUtils } from '@sankhyalabs/core';
3
3
 
4
- const HIERARCHY_SEPARATOR = '>>';
5
- class Guide {
6
- constructor(list) {
7
- this.originalList = [];
8
- this.guideMap = new Map();
9
- this.hierarchiesAlreadyLoaded = new Set();
10
- if (list === null || list === void 0 ? void 0 : list.length)
11
- this.setList(list);
12
- }
13
- /**
14
- * Converte uma lista de objetos IGuideItem em um objeto IGuideMap com sua hierarquia.
15
- * @param list Uma lista de objetos IGuideItem representando a lista de itens.
16
- * @param hierarquiaList Uma lista opcional de strings que representa a hierarquia dos itens pai.
17
- * @param indexReferences Uma lista opcional de números que representa as referências de índice da lista original.
18
- * @returns Uma Promise que resolve para um objeto IGuideMap com os itens e sua hierarquia.
19
- */
20
- convertArrayToMap(list, hierarchyList = [], indexReferences = []) {
21
- return new Promise(resolve => {
22
- list.forEach(async (item, index) => {
23
- const updatedHierarchyList = [...hierarchyList, item.id];
24
- const key = updatedHierarchyList.join(HIERARCHY_SEPARATOR);
25
- const currentIndexReferences = [...indexReferences, index];
26
- const children = Array.isArray(item.children) ? item.children : [];
27
- item = Object.assign(Object.assign({}, item), { parentId: hierarchyList[hierarchyList.length - 1], indexReferences: currentIndexReferences, hierarchy: updatedHierarchyList, hierarchyId: key });
28
- delete item.children;
29
- this.guideMap.set(key, item);
30
- if (children.length)
31
- await this.convertArrayToMap(children, updatedHierarchyList, currentIndexReferences);
32
- });
33
- resolve(this.guideMap);
34
- });
35
- }
36
- /**
37
- * Converte um objeto IGuideMap em uma lista de objetos IGuideItem com sua hierarquia.
38
- * @param map Um objeto IGuideMap opcional que representa o mapa de itens com sua hierarquia.
39
- * @returns Uma Promise que resolve para uma lista de objetos IGuideItem com sua hierarquia.
40
- */
41
- convertMapToArray(map = this.guideMap) {
42
- return new Promise(resolve => {
43
- const array = [];
44
- const itemsById = {};
45
- map.forEach(value => {
46
- var _a;
47
- const item = Object.assign({}, value);
48
- if (((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) === 0) {
49
- delete item.children;
50
- }
51
- itemsById[item.id] = item;
52
- });
53
- Object.values(itemsById).forEach(item => {
54
- if (item.parentId) {
55
- const parent = itemsById[item.parentId];
56
- if (Array.isArray(parent.children)) {
57
- parent.children.push(item);
58
- }
59
- else {
60
- parent.children = [item];
61
- }
62
- }
63
- else {
64
- array.push(item);
65
- }
66
- });
67
- resolve(array);
68
- });
69
- }
70
- /**
71
- * Obtém a lista selecionada de itens com base na lista original e na lista de índice selecionada.
72
- * @param originalList Uma lista de objetos IGuideItem representando a lista original de itens.
73
- * @param selectedIndexList Uma matriz representando a lista de índices selecionada.
74
- * @returns Uma lista de objetos IGuideItem representando a lista selecionada de itens.
75
- */
76
- getSelectedList(originalList, selectedIndexList) {
77
- const selectedList = [];
78
- selectedIndexList.forEach(selectedIndex => {
79
- if (!selectedIndex.length)
80
- return;
81
- const [parentIndex, childIndex] = selectedIndex;
82
- if (childIndex === undefined) {
83
- selectedList.push(originalList[parentIndex]);
84
- }
85
- else {
86
- const parent = originalList[parentIndex];
87
- const child = parent.children[childIndex];
88
- const selectedParent = selectedList.find(item => item.id === parent.id);
89
- if (selectedParent) {
90
- selectedParent.children.push(child);
91
- }
92
- else {
93
- selectedList.push(Object.assign(Object.assign({}, parent), { children: [child] }));
94
- }
95
- }
96
- });
97
- return selectedList;
98
- }
99
- /**
100
- * Define a lista de itens para o Map guideMap.
101
- * @param list Uma lista de objetos IGuideItem representando a lista de itens.
102
- * @returns Uma Promise que resolve quando a lista é convertida para o Map.
103
- */
104
- setList(list) {
105
- return new Promise(async (resolve) => {
106
- this.guideMap.clear();
107
- if (!this.originalList.length) {
108
- this.originalList = ObjectUtils.copy(list);
109
- }
110
- await this.convertArrayToMap(list);
111
- resolve();
112
- });
113
- }
114
- /**
115
- * Obtém a lista de itens com sua hierarquia.
116
- * @returns Uma Promise que resolve para uma lista de objetos IGuideItem com sua hierarquia.
117
- */
118
- getList() {
119
- return this.convertMapToArray();
120
- }
121
- /**
122
- * Adiciona filhos a um item pai no guia.
123
- * @param parent Um objeto IGuideItem que representa o item pai.
124
- * @param children Uma lista de objetos IGuideItem representando os itens filhos.
125
- * @returns Uma Promise que resolve para uma lista de objetos IGuideItem com sua hierarquia.
126
- */
127
- addChildren(parent, children) {
128
- return new Promise(async (resolve, reject) => {
129
- if (parent.disabled)
130
- return reject('Parent is disabled');
131
- if (!parent.hierarchy || !parent.hierarchyId)
132
- return reject('Hierarchy not found');
133
- if (this.hierarchiesAlreadyLoaded.has(parent.hierarchyId))
134
- return resolve([]);
135
- await this.convertArrayToMap(children, parent.hierarchy);
136
- const list = await this.getList();
137
- this.originalList = ObjectUtils.copy(list);
138
- this.hierarchiesAlreadyLoaded.add(parent.hierarchyId);
139
- resolve(list);
140
- });
141
- }
142
- /**
143
- * Obtém os itens a partir de um campo corresponde à string de consulta.
144
- * @param query Uma string que representa a consulta para corresponder ao rótulo.
145
- * @param fieldName Uma string opcional que representa o nome do campo para corresponder à consulta.
146
- * @returns Uma Promise que resolve para um objeto com o primeiro item encontrado e uma matriz de itens correspondentes com sua hierarquia.
147
- */
148
- getItemsByLabel(query, fieldName = 'label', selectedItem) {
149
- return new Promise(async (resolve) => {
150
- var _a;
151
- const mapResults = [];
152
- let firstOcorrence;
153
- const itemFromMap = this.guideMap.get(selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.hierarchyId);
154
- if (itemFromMap)
155
- itemFromMap.expanded = true;
156
- for (const item of this.guideMap.values()) {
157
- const label = ((_a = item === null || item === void 0 ? void 0 : item[fieldName]) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '';
158
- if (label.includes(query.toLowerCase())) {
159
- if (!firstOcorrence)
160
- firstOcorrence = item;
161
- mapResults.push(item.indexReferences);
162
- }
163
- }
164
- const updatedList = this.getSelectedList(this.originalList, mapResults);
165
- resolve({
166
- first: firstOcorrence,
167
- list: updatedList,
168
- });
169
- });
170
- }
171
- /**
172
- * Habilita todos os objetos IGuideItem.
173
- * @returns Uma Promise que resolve com o array atualizado de objetos IGuideItem.
174
- */
175
- enableAllItems() {
176
- return new Promise(async (resolve) => {
177
- for (const item of this.guideMap.values())
178
- item.disabled = false;
179
- const list = await this.getList();
180
- this.originalList = ObjectUtils.copy(list);
181
- resolve(list);
182
- });
183
- }
184
- /**
185
- * Ativa somente objetos IGuideItem com base em uma matriz de IDs.
186
- * @param ids Um array de IDs para habilitar.
187
- * @param customTooltip Uma string para definir o tooltip de itens desabilitados.
188
- * @returns Uma Promise que resolve com o array atualizado de objetos IGuideItem.
189
- */
190
- enableItemsById(ids = [], customTooltip = '') {
191
- return new Promise(async (resolve) => {
192
- for (const item of this.guideMap.values()) {
193
- const isEnabled = ids.includes(item.id);
194
- item.disabled = !isEnabled;
195
- item.tooltip = isEnabled ? item.tooltip : customTooltip;
196
- }
197
- const list = await this.getList();
198
- this.originalList = ObjectUtils.copy(list);
199
- resolve(list);
200
- });
201
- }
202
- }
203
-
204
- const ezGuideNavigatorCss = ":host{--ez-guide-navigator--padding:0 var(--space--large);--ez-guide-navigator--box-shadow:var(--shadow, 0px 0px 24px 0px #000);--ez-guide-navigator--background-color:var(--color--inverted);--ez-guide-navigator--border-radius:0px var(--border--radius-medium) var(--border--radius-medium) 0px;--ez-guide-navigator--actions-gap:var(--space--medium);--ez-guide-navigator--actions-margin:var(--space--medium) 0 var(--space--medium)}.inverted{transform:rotate(180deg)}.ez-guide-navigator{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:var(--ez-guide-navigator--padding);background-color:var(--ez-guide-navigator--background-color);-webkit-box-shadow:var(--ez-guide-navigator--box-shadow);box-shadow:var(--ez-guide-navigator--box-shadow);border-radius:var(--ez-guide-navigator--border-radius)}.ez-guide-navigator__actions{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:var(--ez-guide-navigator--actions-gap);margin:var(--ez-guide-navigator--actions-margin)}";
4
+ const ezGuideNavigatorCss = ":host{--ez-guide-navigator--padding:0 var(--space--large);--ez-guide-navigator--box-shadow:var(--shadow, 0px 0px 24px 0px #000);--ez-guide-navigator--background-color:var(--color--inverted);--ez-guide-navigator--border-radius:0px var(--border--radius-medium) var(--border--radius-medium) 0px;--ez-guide-navigator--actions-gap:var(--space--medium);--ez-guide-navigator--actions-margin:var(--space--medium) 0 var(--space--medium)}.inverted{transform:rotate(180deg)}.ez-guide-navigator{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:var(--ez-guide-navigator--padding);background-color:var(--ez-guide-navigator--background-color);-webkit-box-shadow:var(--ez-guide-navigator--box-shadow);box-shadow:var(--ez-guide-navigator--box-shadow);border-radius:var(--ez-guide-navigator--border-radius)}.ez-guide-navigator__actions{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:var(--ez-guide-navigator--actions-gap);margin:var(--ez-guide-navigator--actions-margin)}.hidden{display:none}";
205
5
 
206
- const ENTER_KEY = 'Enter';
6
+ const ENTER_KEY = "Enter";
207
7
  let EzGuideNavigator = class {
208
8
  constructor(hostRef) {
209
9
  registerInstance(this, hostRef);
210
- //TODO: Quando a filtragem for feita dentro da árvore, não será mais necessário
211
- this.guide = new Guide();
212
- //TODO: Destituir esse binder. Rediscutida a arquitetura desse componente
213
- //vimos que o binder só dificulta a vida de quem vai usar... assim teremos
214
- //apenas uma lista de IGuideItems e o resto fica como a própria árvore...
215
- /**
216
- * Provedor de dados para o guide navigator.
217
- */
218
- this.binder = null;
219
10
  /**
220
11
  * Define se o menu de navegação está aberto.
221
- */
12
+ */
222
13
  this.open = true;
223
- //TODO: Destituir esse binder. Rediscutida a arquitetura desse componente
224
- //vimos que o binder só dificulta a vida de quem vai usar... assim teremos
225
- //apenas uma lista de IGuideItems e o resto fica como a própria árvore...
226
14
  /**
227
15
  * Lista de itens do menu de navegação.
228
- */
16
+ */
229
17
  this.items = [];
230
18
  /**
231
19
  * Valor do campo de pesquisa usado na filtragem de guias.
232
20
  */
233
- this.filterText = '';
21
+ this.filterText = "";
234
22
  }
235
23
  /**
236
- * Habilita itens específicos a partir de uma lista de ID's.
237
- */
238
- async enableOnly(id, customTooltip) {
239
- //TODO: Levar para a árvore
240
- this._tree.items = await this.guide.enableItemsById(id, customTooltip);
24
+ * Desabilita um ou mais itens.
25
+ */
26
+ async disableItem(id) {
27
+ [].concat(id).forEach(item => this._tree.disableItem(item));
241
28
  }
242
29
  /**
243
- * Habilita todos os itens do menu de navegação.
244
- */
245
- async enableAll() {
246
- //TODO: Levar para a árvore
247
- this._tree.items = await this.guide.enableAllItems();
248
- }
249
- //TODO: Destituir esse binder. Rediscutida a arquitetura desse componente
250
- //vimos que o binder só dificulta a vida de quem vai usar... assim teremos
251
- //apenas uma lista de IGuideItems e o resto fica como a própria árvore...
252
- handleBinderChange(newBinder, oldBinder) {
253
- if (newBinder != oldBinder) {
254
- this.initTree();
255
- }
30
+ * Habilita um ou mais itens.
31
+ */
32
+ async enableItem(id) {
33
+ [].concat(id).forEach(item => this._tree.enableItem(item));
256
34
  }
257
35
  async handleToggleSidebar() {
258
36
  this.open = !this.open;
259
- if (this.open) {
260
- await this.initTree();
261
- this.filterItems();
262
- }
263
37
  }
264
- handleSelectTreeItem({ detail: parent }) {
265
- if (!parent.expanded)
266
- return;
267
- //TODO: Destituir esse binder. Rediscutida a arquitetura desse componente
268
- //vimos que o binder só dificulta a vida de quem vai usar... assim teremos
269
- //apenas uma lista de IGuideItems e o resto fica como a própria árvore...
270
- this.binder.fetchItems(parent.id).then(async (children) => {
271
- if (!(children === null || children === void 0 ? void 0 : children.length))
272
- return;
273
- await this.guide.addChildren(parent, children);
274
- const { list } = await this.guide.getItemsByLabel(this.filterText, 'label', parent);
275
- this._tree.items = list;
276
- this._tree.openItem(parent.hierarchyId || parent.id);
277
- });
278
- this.binder.onSelectItem(parent);
279
- }
280
- //TODO: Destituir esse binder. Rediscutida a arquitetura desse componente
281
- //vimos que o binder só dificulta a vida de quem vai usar... assim teremos
282
- //apenas uma lista de IGuideItems e o resto fica como a própria árvore...
283
38
  handleFilterTree(event) {
284
- if (event.key === ENTER_KEY)
285
- this.filterItems();
286
- }
287
- //TODO: Destituir esse binder. Rediscutida a arquitetura desse componente
288
- //vimos que o binder só dificulta a vida de quem vai usar... assim teremos
289
- //apenas uma lista de IGuideItems e o resto fica como a própria árvore...
290
- async setTreeIems(list, first) {
291
- var _a;
292
- this._tree.items = list;
293
- if (first && !(first === null || first === void 0 ? void 0 : first.disabled)) {
294
- const parentHierarchyId = ((_a = first.hierarchy) === null || _a === void 0 ? void 0 : _a.slice(0, -1).join(HIERARCHY_SEPARATOR)) || first.id;
295
- await this._tree.openItem(parentHierarchyId);
296
- await this._tree.selectItem(first.id);
39
+ if (event.key === ENTER_KEY) {
40
+ this._tree.applyFilter(this.filterText);
297
41
  }
298
- else {
299
- this._tree.selectItem(null);
300
- }
301
- }
302
- //TODO: Destituir esse binder. Rediscutida a arquitetura desse componente
303
- //vimos que o binder só dificulta a vida de quem vai usar... assim teremos
304
- //apenas uma lista de IGuideItems e o resto fica como a própria árvore...
305
- filterItems() {
306
- this.guide.getItemsByLabel(this.filterText).then(async ({ list, first }) => {
307
- this.setTreeIems(list, first);
308
- });
309
- }
310
- //TODO: Destituir esse binder. Rediscutida a arquitetura desse componente
311
- //vimos que o binder só dificulta a vida de quem vai usar... assim teremos
312
- //apenas uma lista de IGuideItems e o resto fica como a própria árvore...
313
- async initTree() {
314
- if (!this.binder)
315
- return;
316
- const binderItems = await this.binder.fetchItems();
317
- await this.guide.setList(binderItems);
318
- const guideItems = await this.guide.getList();
319
- this.setTreeIems(guideItems);
320
- }
321
- componentDidLoad() {
322
- ElementIDUtils.addIDInfoIfNotExists(this._element);
323
- this.initTree();
324
42
  }
325
43
  render() {
326
- return (h(Host, null, this.open ? (h("aside", { tabIndex: -1, id: "navigator", class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-guide-navigator", "data-element-id": ElementIDUtils.getInternalIDInfo("sidebar") }, h("div", { role: "search", class: "ez-guide-navigator__actions" }, h("ez-filter-input", { mode: "slim", value: this.filterText, onEzChange: (event) => (this.filterText = event.detail), label: "Buscar guia", "aria-placeholder": "Buscar guia", onKeyUp: this.handleFilterTree.bind(this), "data-element-id": ElementIDUtils.getInternalIDInfo("textinput") }), h("ez-button", { onClick: this.handleToggleSidebar.bind(this), class: "inverted", mode: "icon", size: "small", iconName: "show_menu", title: "Ocultar menu", "aria-label": "Ocultar menu", "aria-controls": "navigator", "data-element-id": ElementIDUtils.getInternalIDInfo("closeButton") })), h("ez-tree", { ref: element => (this._tree = element), onEzChange: evt => this.handleSelectTreeItem(evt), "data-element-id": ElementIDUtils.getInternalIDInfo("tree") }))) : (h("ez-sidebar-button", { onEzClick: this.handleToggleSidebar.bind(this), "aria-controls": "navigator", "aria-expanded": this.open, "data-element-id": ElementIDUtils.getInternalIDInfo("openButton") }))));
44
+ ElementIDUtils.addIDInfoIfNotExists(this._element);
45
+ return (h(Host, null, h("ez-sidebar-button", { class: this.open ? "hidden" : "", onEzClick: this.handleToggleSidebar.bind(this), "aria-controls": "navigator", "aria-expanded": this.open, "data-element-id": ElementIDUtils.getInternalIDInfo("openButton") }), h("aside", { tabIndex: -1, id: "navigator", class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-guide-navigator " + (this.open ? "" : "hidden"), "data-element-id": ElementIDUtils.getInternalIDInfo("sidebar") }, h("div", { role: "search", class: "ez-guide-navigator__actions" }, h("ez-filter-input", { mode: "slim", value: this.filterText, onEzChange: (event) => (this.filterText = event.detail), label: "Buscar guia", "aria-placeholder": "Buscar guia", onKeyUp: this.handleFilterTree.bind(this), "data-element-id": ElementIDUtils.getInternalIDInfo("textinput") }), h("ez-button", { onClick: this.handleToggleSidebar.bind(this), class: "inverted", mode: "icon", size: "small", iconName: "show_menu", title: "Ocultar menu", "aria-label": "Ocultar menu", "aria-controls": "navigator", "data-element-id": ElementIDUtils.getInternalIDInfo("closeButton") })), h("ez-tree", { ref: element => (this._tree = element), items: this.items, "data-element-id": ElementIDUtils.getInternalIDInfo("tree"), tooltipResolver: this.tooltipResolver }))));
327
46
  }
328
47
  get _element() { return getElement(this); }
329
- static get watchers() { return {
330
- "binder": ["handleBinderChange"]
331
- }; }
332
48
  };
333
49
  EzGuideNavigator.style = ezGuideNavigatorCss;
334
50
 
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-c5203f95.js';
2
2
  import { FloatingManager } from '@sankhyalabs/core';
3
3
 
4
- const ezPopoverCss = ":host{--ez-popover__box--border-radius:var(--border--radius-medium, 12px);--ez-popover__box--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-popover__box--background-color:var(--background--xlight, #fff);--ez-popover__box--z-index:var(--more-visible, 2);position:relative;display:flex;user-select:none}.popover__box{z-index:var(--ez-popover__box--z-index);display:flex;flex-direction:column;height:fit-content;background-color:var(--ez-popover__box--background-color);border-radius:var(--ez-popover__box--border-radius);box-shadow:var(--ez-popover__box--box-shadow)}.popover__box--fit-content{width:fit-content}.popover__box--full-width{width:100%}";
4
+ const ezPopoverCss = ":host{--ez-popover__box--border-radius:var(--border--radius-medium, 12px);--ez-popover__box--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-popover__box--background-color:var(--background--xlight, #fff);--ez-popover__box--z-index:var(--most-visible, 3);position:relative;display:flex;user-select:none}.popover__box{z-index:var(--ez-popover__box--z-index);display:flex;flex-direction:column;height:fit-content;background-color:var(--ez-popover__box--background-color);border-radius:var(--ez-popover__box--border-radius);box-shadow:var(--ez-popover__box--box-shadow)}.popover__box--fit-content{width:fit-content}.popover__box--full-width{width:100%}";
5
5
 
6
6
  let EzPopover = class {
7
7
  constructor(hostRef) {
@@ -103,7 +103,7 @@ let EzPopover = class {
103
103
  */
104
104
  async show(top = this.top, left = this.left, bottom = this.bottom, right = this.right) {
105
105
  const useOverlay = this.overlayType !== "none";
106
- const overlayClassName = `ez-scrim ez-scrim-${this.overlayType}`;
106
+ const overlayClassName = `ez-scrim ez-scrim--${this.overlayType}`;
107
107
  let floatingOptions = {
108
108
  autoClose: this.autoClose,
109
109
  top,
package/dist/esm/ezui.js CHANGED
@@ -13,5 +13,5 @@ const patchBrowser = () => {
13
13
  };
14
14
 
15
15
  patchBrowser().then(options => {
16
- return bootstrapLazy([["ez-guide-navigator",[[1,"ez-guide-navigator",{"binder":[16],"open":[1540],"items":[32],"filterText":[32],"enableOnly":[64],"enableAll":[64]}]]],["ez-actions-button",[[1,"ez-actions-button",{"enabled":[516],"actions":[1040],"size":[513],"showLabel":[516,"show-label"],"displayIcon":[513,"display-icon"],"checkOption":[516,"check-option"],"value":[513],"isTransparent":[516,"is-transparent"],"arrowActive":[516,"arrow-active"],"_selectedAction":[32],"hideActions":[64],"isOpened":[64]}]]],["ez-dialog",[[1,"ez-dialog",{"confirm":[1028],"dialogType":[1025,"dialog-type"],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"show":[64]}]]],["ez-grid",[[6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"config":[1040],"serverUrl":[1,"server-url"],"dataUnit":[16],"statusResolver":[16],"_paginationInfo":[32],"_paginationChangedByKeyboard":[32],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64],"quickFilter":[64]},[[0,"ezSelectionChange","onSelectionChange"]]]]],["ez-modal-container",[[6,"ez-modal-container",{"modalTitle":[1,"modal-title"],"modalSubTitle":[1,"modal-sub-title"],"showTitleBar":[4,"show-title-bar"],"cancelButtonLabel":[1,"cancel-button-label"],"okButtonLabel":[1,"ok-button-label"],"cancelButtonStatus":[1,"cancel-button-status"],"okButtonStatus":[1,"ok-button-status"]}]]],["ez-alert",[[1,"ez-alert",{"alertType":[513,"alert-type"]}]]],["ez-breadcrumb",[[1,"ez-breadcrumb",{"items":[1040]}]]],["ez-chip",[[1,"ez-chip",{"label":[513],"enabled":[516],"removePosition":[513,"remove-position"],"mode":[513],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-dropdown",[[1,"ez-dropdown",{"items":[1040],"value":[1040],"itemBuilder":[16]}]]],["ez-file-item",[[1,"ez-file-item",{"canRemove":[4,"can-remove"],"fileName":[1,"file-name"],"iconName":[1,"icon-name"],"fileSize":[2,"file-size"],"progress":[2]}]]],["ez-application",[[0,"ez-application"]]],["ez-card-item",[[1,"ez-card-item",{"item":[16]}]]],["ez-list",[[1,"ez-list",{"dataSource":[1040],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"_listItems":[32],"_listGroupItems":[32],"clearHistory":[64],"scrollToTop":[64],"setSelection":[64],"getSelection":[64],"getList":[64]}]]],["ez-loading-bar",[[1,"ez-loading-bar",{"_showLoading":[32],"hide":[64],"show":[64]}]]],["ez-modal",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]],["ez-popover",[[1,"ez-popover",{"autoClose":[516,"auto-close"],"top":[1537],"left":[1537],"bottom":[1537],"right":[1537],"boxWidth":[513,"box-width"],"opened":[1540],"innerElement":[1537,"inner-element"],"overlayType":[513,"overlay-type"],"updatePosition":[64],"show":[64],"hide":[64]}]]],["ez-popup",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[516,"use-header"],"heightMode":[513,"height-mode"],"ezTitle":[1,"ez-title"]}]]],["ez-radio-button",[[1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]]],["ez-scroller",[[1,"ez-scroller",{"direction":[1],"locked":[4],"activeShadow":[4,"active-shadow"],"isActive":[32]},[[2,"click","clickListener"],[1,"mousedown","mouseDownHandler"],[1,"mouseup","mouseUpHandler"],[1,"mousemove","mouseMoveHandler"]]]]],["ez-toast",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"canClose":[1028,"can-close"],"show":[64]}]]],["ez-view-stack",[[0,"ez-view-stack",{"show":[64],"getSelectedIndex":[64]}]]],["ez-tabselector",[[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32]}]]],["ez-text-input",[[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"errorMessage":[1537,"error-message"],"mask":[1],"canShowError":[516,"can-show-error"],"restrict":[1],"mode":[513],"noBorder":[516,"no-border"],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-collapsible-box",[[1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"headerAlign":[513,"header-align"],"removable":[516],"editable":[516],"conditionalSave":[16],"_activeEditText":[32],"showHide":[64],"applyFocusTextEdit":[64],"cancelEdition":[64]}]]],["ez-search",[[1,"ez-search",{"value":[1537],"label":[1537],"enabled":[1540],"errorMessage":[1537,"error-message"],"optionLoader":[16],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"suppressEmptyOption":[4,"suppress-empty-option"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-date-input",[[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-date-time-input",[[1,"ez-date-time-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-time-input",[[1,"ez-time-input",{"label":[513],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-number-input",[[1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"errorMessage":[1537,"error-message"],"precision":[2],"prettyPrecision":[2,"pretty-precision"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-check",[[1,"ez-check",{"label":[513],"value":[1540],"enabled":[1540],"indeterminate":[516],"mode":[513],"getMode":[64],"setFocus":[64]}]]],["ez-text-area",[[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"canShowError":[516,"can-show-error"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-upload",[[1,"ez-upload",{"label":[1],"enabled":[4],"maxFileSize":[2,"max-file-size"],"maxFiles":[2,"max-files"],"requestHeaders":[8,"request-headers"],"urlUpload":[1,"url-upload"],"urlDelete":[1,"url-delete"],"value":[1040],"addFiles":[64],"setFocus":[64],"setBlur":[64]}]]],["ez-text-edit",[[1,"ez-text-edit",{"value":[1],"styled":[16],"_newValue":[32],"applyFocusSelect":[64]}]]],["ez-combo-box",[[1,"ez-combo-box",{"value":[1537],"label":[513],"enabled":[516],"options":[1040],"errorMessage":[1537,"error-message"],"searchMode":[4,"search-mode"],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"suppressSearch":[4,"suppress-search"],"optionLoader":[16],"suppressEmptyOption":[4,"suppress-empty-option"],"canShowError":[516,"can-show-error"],"mode":[513],"_preSelection":[32],"_visibleOptions":[32],"_startLoading":[32],"_showLoading":[32],"_criteria":[32],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-filter-input_3",[[1,"ez-filter-input",{"label":[1],"value":[1537],"enabled":[4],"errorMessage":[1537,"error-message"],"restrict":[1],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}],[1,"ez-sidebar-button"],[1,"ez-tree",{"items":[1040],"value":[1040],"selectedId":[1537,"selected-id"],"iconResolver":[16],"tooltipResolver":[16],"_waintingForLoad":[32],"selectItem":[64],"openItem":[64],"disableItem":[64],"enableItem":[64],"addChild":[64]},[[2,"keydown","onKeyDownListener"]]]]],["ez-calendar",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}]]],["ez-icon",[[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]]],["ez-button",[[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-form-view",[[2,"ez-form-view",{"fields":[16]}]]],["ez-form",[[2,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16],"multiLevel":[4,"multi-level"],"levelResolver":[16],"contentBuilder":[16],"validate":[64]}]]]], options);
16
+ return bootstrapLazy([["ez-guide-navigator",[[1,"ez-guide-navigator",{"open":[1540],"items":[16],"tooltipResolver":[16],"filterText":[32],"disableItem":[64],"enableItem":[64]}]]],["ez-actions-button",[[1,"ez-actions-button",{"enabled":[516],"actions":[1040],"size":[513],"showLabel":[516,"show-label"],"displayIcon":[513,"display-icon"],"checkOption":[516,"check-option"],"value":[513],"isTransparent":[516,"is-transparent"],"arrowActive":[516,"arrow-active"],"_selectedAction":[32],"hideActions":[64],"isOpened":[64]}]]],["ez-dialog",[[1,"ez-dialog",{"confirm":[1028],"dialogType":[1025,"dialog-type"],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"show":[64]}]]],["ez-grid",[[6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"config":[1040],"serverUrl":[1,"server-url"],"dataUnit":[16],"statusResolver":[16],"_paginationInfo":[32],"_paginationChangedByKeyboard":[32],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64],"quickFilter":[64]},[[0,"ezSelectionChange","onSelectionChange"]]]]],["ez-modal-container",[[6,"ez-modal-container",{"modalTitle":[1,"modal-title"],"modalSubTitle":[1,"modal-sub-title"],"showTitleBar":[4,"show-title-bar"],"cancelButtonLabel":[1,"cancel-button-label"],"okButtonLabel":[1,"ok-button-label"],"cancelButtonStatus":[1,"cancel-button-status"],"okButtonStatus":[1,"ok-button-status"]}]]],["ez-alert",[[1,"ez-alert",{"alertType":[513,"alert-type"]}]]],["ez-breadcrumb",[[1,"ez-breadcrumb",{"items":[1040]}]]],["ez-chip",[[1,"ez-chip",{"label":[513],"enabled":[516],"removePosition":[513,"remove-position"],"mode":[513],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-dropdown",[[1,"ez-dropdown",{"items":[1040],"value":[1040],"itemBuilder":[16]}]]],["ez-file-item",[[1,"ez-file-item",{"canRemove":[4,"can-remove"],"fileName":[1,"file-name"],"iconName":[1,"icon-name"],"fileSize":[2,"file-size"],"progress":[2]}]]],["ez-application",[[0,"ez-application"]]],["ez-card-item",[[1,"ez-card-item",{"item":[16]}]]],["ez-list",[[1,"ez-list",{"dataSource":[1040],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"_listItems":[32],"_listGroupItems":[32],"clearHistory":[64],"scrollToTop":[64],"setSelection":[64],"getSelection":[64],"getList":[64]}]]],["ez-loading-bar",[[1,"ez-loading-bar",{"_showLoading":[32],"hide":[64],"show":[64]}]]],["ez-modal",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]],["ez-popover",[[1,"ez-popover",{"autoClose":[516,"auto-close"],"top":[1537],"left":[1537],"bottom":[1537],"right":[1537],"boxWidth":[513,"box-width"],"opened":[1540],"innerElement":[1537,"inner-element"],"overlayType":[513,"overlay-type"],"updatePosition":[64],"show":[64],"hide":[64]}]]],["ez-popup",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[516,"use-header"],"heightMode":[513,"height-mode"],"ezTitle":[1,"ez-title"]}]]],["ez-radio-button",[[1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]]],["ez-scroller",[[1,"ez-scroller",{"direction":[1],"locked":[4],"activeShadow":[4,"active-shadow"],"isActive":[32]},[[2,"click","clickListener"],[1,"mousedown","mouseDownHandler"],[1,"mouseup","mouseUpHandler"],[1,"mousemove","mouseMoveHandler"]]]]],["ez-toast",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"canClose":[1028,"can-close"],"show":[64]}]]],["ez-view-stack",[[0,"ez-view-stack",{"show":[64],"getSelectedIndex":[64]}]]],["ez-tabselector",[[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32]}]]],["ez-text-input",[[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"errorMessage":[1537,"error-message"],"mask":[1],"canShowError":[516,"can-show-error"],"restrict":[1],"mode":[513],"noBorder":[516,"no-border"],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-collapsible-box",[[1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"headerAlign":[513,"header-align"],"removable":[516],"editable":[516],"conditionalSave":[16],"_activeEditText":[32],"showHide":[64],"applyFocusTextEdit":[64],"cancelEdition":[64]}]]],["ez-search",[[1,"ez-search",{"value":[1537],"label":[1537],"enabled":[1540],"errorMessage":[1537,"error-message"],"optionLoader":[16],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"suppressEmptyOption":[4,"suppress-empty-option"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-date-input",[[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-date-time-input",[[1,"ez-date-time-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-time-input",[[1,"ez-time-input",{"label":[513],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-number-input",[[1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"errorMessage":[1537,"error-message"],"precision":[2],"prettyPrecision":[2,"pretty-precision"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-check",[[1,"ez-check",{"label":[513],"value":[1540],"enabled":[1540],"indeterminate":[516],"mode":[513],"getMode":[64],"setFocus":[64]}]]],["ez-text-area",[[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"canShowError":[516,"can-show-error"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-upload",[[1,"ez-upload",{"label":[1],"enabled":[4],"maxFileSize":[2,"max-file-size"],"maxFiles":[2,"max-files"],"requestHeaders":[8,"request-headers"],"urlUpload":[1,"url-upload"],"urlDelete":[1,"url-delete"],"value":[1040],"addFiles":[64],"setFocus":[64],"setBlur":[64]}]]],["ez-text-edit",[[1,"ez-text-edit",{"value":[1],"styled":[16],"_newValue":[32],"applyFocusSelect":[64]}]]],["ez-combo-box",[[1,"ez-combo-box",{"value":[1537],"label":[513],"enabled":[516],"options":[1040],"errorMessage":[1537,"error-message"],"searchMode":[4,"search-mode"],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"suppressSearch":[4,"suppress-search"],"optionLoader":[16],"suppressEmptyOption":[4,"suppress-empty-option"],"canShowError":[516,"can-show-error"],"mode":[513],"_preSelection":[32],"_visibleOptions":[32],"_startLoading":[32],"_showLoading":[32],"_criteria":[32],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-filter-input_3",[[1,"ez-filter-input",{"label":[1],"value":[1537],"enabled":[4],"errorMessage":[1537,"error-message"],"restrict":[1],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}],[1,"ez-sidebar-button"],[1,"ez-tree",{"items":[1040],"value":[1040],"selectedId":[1537,"selected-id"],"iconResolver":[16],"tooltipResolver":[16],"_tree":[32],"_waintingForLoad":[32],"selectItem":[64],"openItem":[64],"disableItem":[64],"enableItem":[64],"addChild":[64],"applyFilter":[64]},[[2,"keydown","onKeyDownListener"]]]]],["ez-calendar",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}]]],["ez-icon",[[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]]],["ez-button",[[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-form-view",[[2,"ez-form-view",{"fields":[16]}]]],["ez-form",[[2,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16],"multiLevel":[4,"multi-level"],"levelResolver":[16],"contentBuilder":[16],"validate":[64]}]]]], options);
17
17
  });