@sankhyalabs/ezui 2.14.1 → 2.14.3

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 (42) 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-modal-container.cjs.entry.js +1 -1
  4. package/dist/cjs/ez-popover.cjs.entry.js +2 -2
  5. package/dist/cjs/ezui.cjs.js +1 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.css +4 -0
  8. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js +79 -138
  9. package/dist/collection/components/ez-guide-navigator/interfaces/IGuideItem.js +1 -0
  10. package/dist/collection/components/ez-guide-navigator/interfaces/index.js +1 -0
  11. package/dist/collection/components/ez-modal-container/ez-modal-container.js +1 -1
  12. package/dist/collection/components/ez-popover/ez-popover.css +1 -1
  13. package/dist/collection/components/ez-popover/ez-popover.js +1 -1
  14. package/dist/collection/components/ez-tree/ez-tree.js +33 -10
  15. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +6 -3
  16. package/dist/collection/components/ez-tree/types/Node.js +2 -1
  17. package/dist/collection/components/ez-tree/types/Tree.js +38 -3
  18. package/dist/custom-elements/index.js +79 -321
  19. package/dist/esm/ez-filter-input_3.entry.js +58 -16
  20. package/dist/esm/ez-guide-navigator.entry.js +18 -302
  21. package/dist/esm/ez-modal-container.entry.js +1 -1
  22. package/dist/esm/ez-popover.entry.js +2 -2
  23. package/dist/esm/ezui.js +1 -1
  24. package/dist/esm/loader.js +1 -1
  25. package/dist/ezui/ezui.esm.js +1 -1
  26. package/dist/ezui/p-368037b9.entry.js +1 -0
  27. package/dist/ezui/p-73eb147d.entry.js +1 -0
  28. package/dist/ezui/p-ae168e45.entry.js +1 -0
  29. package/dist/ezui/p-ca8f7199.entry.js +1 -0
  30. package/dist/types/components/ez-guide-navigator/interfaces/IGuideItem.d.ts +3 -0
  31. package/dist/types/components/ez-guide-navigator/interfaces/index.d.ts +1 -0
  32. package/dist/types/components/ez-tree/ez-tree.d.ts +6 -2
  33. package/dist/types/components/ez-tree/types/Node.d.ts +1 -0
  34. package/dist/types/components/ez-tree/types/Tree.d.ts +5 -1
  35. package/dist/types/components.d.ts +21 -9
  36. package/package.json +1 -1
  37. package/dist/collection/components/ez-guide-navigator/Guide.js +0 -200
  38. package/dist/ezui/p-0c3f7bf2.entry.js +0 -1
  39. package/dist/ezui/p-98c448c9.entry.js +0 -1
  40. package/dist/ezui/p-a47b3526.entry.js +0 -1
  41. package/dist/ezui/p-fa2f4ea5.entry.js +0 -1
  42. package/dist/types/components/ez-guide-navigator/Guide.d.ts +0 -69
@@ -116,6 +116,9 @@ const defaultTooltipResolver = (item, _enabled, _level) => {
116
116
 
117
117
  const TreeItem = (props) => {
118
118
  const { node, selectedId, itemClick, iconClick, iconResolver, tooltipResolver, itemsList } = props;
119
+ if (!node.visible) {
120
+ return;
121
+ }
119
122
  const treeItem = node.item;
120
123
  const level = props.level || 1;
121
124
  const disabled = node.isDisabled();
@@ -125,15 +128,15 @@ const TreeItem = (props) => {
125
128
  if (available) {
126
129
  itemsList.push(treeItem);
127
130
  }
128
- return (index.h("ul", { title: tooltipResolver(treeItem, !disabled, level), class: level === 1 ? "first-level" : undefined },
129
- index.h("li", Object.assign({ class: "tree-item", onClick: () => available && itemClick(treeItem) }, {
131
+ return (index.h("ul", { class: level === 1 ? "first-level" : undefined },
132
+ index.h("li", Object.assign({ title: tooltipResolver(treeItem, !disabled, level), class: "tree-item", onClick: () => available && itemClick(treeItem) }, {
130
133
  disabled,
131
134
  selected: treeItem.id === selectedId,
132
135
  [core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: core.ElementIDUtils.getInternalIDInfo(`ezTreeItem_${treeItem.id}`)
133
136
  }),
134
137
  index.h("div", { class: "item-icon-box" }, expandable &&
135
138
  index.h("ez-icon", { id: treeItem.id, class: "item-icon", size: "small", iconName: iconResolver(treeItem, expanded, level), onClick: () => available && iconClick(treeItem) })),
136
- index.h("label", { class: "item-label", title: treeItem.disabled ? (treeItem.tooltip || treeItem.label) : treeItem.label }, treeItem.label)),
139
+ index.h("label", { class: "item-label" }, treeItem.label)),
137
140
  expanded
138
141
  && node.getChildren().map(child => index.h(TreeItem, { selectedId: selectedId, node: child, itemClick: itemClick, iconClick: iconClick, level: level + 1, iconResolver: iconResolver, tooltipResolver: tooltipResolver, itemsList: itemsList }))));
139
142
  };
@@ -141,6 +144,7 @@ const TreeItem = (props) => {
141
144
  class Node {
142
145
  constructor(tree, item, parent, isPlaceHolder = false) {
143
146
  this.children = new Map();
147
+ this.visible = true;
144
148
  this.item = item;
145
149
  this.parent = parent;
146
150
  this._tree = tree;
@@ -161,7 +165,7 @@ class Node {
161
165
  if (this.isPlaceHolder) {
162
166
  return;
163
167
  }
164
- this.item = Object.assign(Object.assign({}, newItem), { expanded: this.item.expanded });
168
+ this.item = Object.assign({}, newItem);
165
169
  this._isLazyLoad = typeof this.item.children === "function" || this.item.childrenCount > 0;
166
170
  const oldChildren = this.children;
167
171
  this.children = new Map();
@@ -258,8 +262,13 @@ class Tree extends Node {
258
262
  return this._disabledValues.get(id);
259
263
  }
260
264
  load(items) {
265
+ if (items === this._currentItems) {
266
+ return;
267
+ }
268
+ this._currentItems = items;
261
269
  const oldChildren = this.children;
262
270
  this.children = new Map();
271
+ this._disabledValues.clear();
263
272
  items.forEach(item => {
264
273
  const node = oldChildren.get(item.id);
265
274
  if (node) {
@@ -271,6 +280,11 @@ class Tree extends Node {
271
280
  }
272
281
  });
273
282
  }
283
+ setFilterPattern(pattern) {
284
+ this._filterPattern = core.StringUtils.replaceAccentuatedCharsKeepSymbols(pattern);
285
+ this.applyFilter(this);
286
+ this._changeCallback();
287
+ }
274
288
  updateItem(item) {
275
289
  if (item == undefined) {
276
290
  return;
@@ -284,11 +298,35 @@ class Tree extends Node {
284
298
  }
285
299
  async open(path) {
286
300
  return new Promise(async (resolve) => {
287
- await this.walk(this, path, node => node.item.expanded = true);
301
+ await this.walkPath(this, path, node => node.item.expanded = true);
288
302
  resolve();
289
303
  });
290
304
  }
291
- async walk(parent, path, callback, currentLevel = 0) {
305
+ applyFilter(node) {
306
+ node.children.forEach((value) => {
307
+ this.applyFilter(value);
308
+ });
309
+ if (node.item == undefined) {
310
+ return;
311
+ }
312
+ const normalizedLabel = core.StringUtils.replaceAccentuatedCharsKeepSymbols(node.item.label);
313
+ let isVisible = false;
314
+ if (normalizedLabel.includes(this._filterPattern)) {
315
+ isVisible = true;
316
+ }
317
+ else {
318
+ const childrenArray = Array.from(node.children.values());
319
+ for (let i = 0; i < childrenArray.length; i++) {
320
+ if (childrenArray[i].visible) {
321
+ isVisible = true;
322
+ node.item.expanded = true;
323
+ break;
324
+ }
325
+ }
326
+ }
327
+ node.visible = isVisible;
328
+ }
329
+ async walkPath(parent, path, callback, currentLevel = 0) {
292
330
  return new Promise(async (resolve) => {
293
331
  const levels = path.split(">>").map(item => item.trim());
294
332
  if (levels.length > currentLevel) {
@@ -298,7 +336,7 @@ class Tree extends Node {
298
336
  await this.loadLevel(node);
299
337
  }
300
338
  callback(node);
301
- await this.walk(node, path, callback, currentLevel + 1);
339
+ await this.walkPath(node, path, callback, currentLevel + 1);
302
340
  }
303
341
  }
304
342
  resolve();
@@ -331,7 +369,6 @@ let EzTree = class {
331
369
  index.registerInstance(this, hostRef);
332
370
  this.ezChange = index.createEvent(this, "ezChange", 7);
333
371
  this.ezOpenItem = index.createEvent(this, "ezOpenItem", 7);
334
- this._tree = new Tree(() => index.forceUpdate(this));
335
372
  this._onItemClick = (item) => {
336
373
  this.value = item;
337
374
  };
@@ -339,6 +376,7 @@ let EzTree = class {
339
376
  this.openClose(item);
340
377
  this.value = item;
341
378
  };
379
+ this._tree = new Tree(() => index.forceUpdate(this));
342
380
  /**
343
381
  * Define os itens apresentados na árvore.
344
382
  */
@@ -347,10 +385,6 @@ let EzTree = class {
347
385
  * Define uma função que vai resolver o ícone daquele item. Retorna o nome do ícone da lib de icones do DS.
348
386
  */
349
387
  this.iconResolver = defaultIconResolver;
350
- /**
351
- * Define uma função que vai resolver o `tooltip` ou `title` daquele item.
352
- */
353
- this.tooltipResolver = defaultTooltipResolver;
354
388
  }
355
389
  /**
356
390
  * Efetua a seleção de um item.
@@ -406,8 +440,16 @@ let EzTree = class {
406
440
  node.item.expanded = true;
407
441
  }
408
442
  }
409
- observeItems() {
410
- return this._tree.load(this.items || []);
443
+ /**
444
+ * Efetua a seleção de um item.
445
+ */
446
+ async applyFilter(pattern) {
447
+ this._tree.setFilterPattern(pattern);
448
+ }
449
+ observeItems(newValue, oldValue) {
450
+ if (newValue != oldValue) {
451
+ this._tree.load(this.items || []);
452
+ }
411
453
  }
412
454
  observeValue() {
413
455
  var _a;
@@ -544,7 +586,7 @@ let EzTree = class {
544
586
  :
545
587
  this._tree.getChildren().map(node => {
546
588
  var _a;
547
- return index.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 });
589
+ return index.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 });
548
590
  })));
549
591
  }
550
592
  get _element() { return index.getElement(this); }
@@ -5,334 +5,50 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-5e208fa5.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
 
8
- const HIERARCHY_SEPARATOR = '>>';
9
- class Guide {
10
- constructor(list) {
11
- this.originalList = [];
12
- this.guideMap = new Map();
13
- this.hierarchiesAlreadyLoaded = new Set();
14
- if (list === null || list === void 0 ? void 0 : list.length)
15
- this.setList(list);
16
- }
17
- /**
18
- * Converte uma lista de objetos IGuideItem em um objeto IGuideMap com sua hierarquia.
19
- * @param list Uma lista de objetos IGuideItem representando a lista de itens.
20
- * @param hierarquiaList Uma lista opcional de strings que representa a hierarquia dos itens pai.
21
- * @param indexReferences Uma lista opcional de números que representa as referências de índice da lista original.
22
- * @returns Uma Promise que resolve para um objeto IGuideMap com os itens e sua hierarquia.
23
- */
24
- convertArrayToMap(list, hierarchyList = [], indexReferences = []) {
25
- return new Promise(resolve => {
26
- list.forEach(async (item, index) => {
27
- const updatedHierarchyList = [...hierarchyList, item.id];
28
- const key = updatedHierarchyList.join(HIERARCHY_SEPARATOR);
29
- const currentIndexReferences = [...indexReferences, index];
30
- const children = Array.isArray(item.children) ? item.children : [];
31
- item = Object.assign(Object.assign({}, item), { parentId: hierarchyList[hierarchyList.length - 1], indexReferences: currentIndexReferences, hierarchy: updatedHierarchyList, hierarchyId: key });
32
- delete item.children;
33
- this.guideMap.set(key, item);
34
- if (children.length)
35
- await this.convertArrayToMap(children, updatedHierarchyList, currentIndexReferences);
36
- });
37
- resolve(this.guideMap);
38
- });
39
- }
40
- /**
41
- * Converte um objeto IGuideMap em uma lista de objetos IGuideItem com sua hierarquia.
42
- * @param map Um objeto IGuideMap opcional que representa o mapa de itens com sua hierarquia.
43
- * @returns Uma Promise que resolve para uma lista de objetos IGuideItem com sua hierarquia.
44
- */
45
- convertMapToArray(map = this.guideMap) {
46
- return new Promise(resolve => {
47
- const array = [];
48
- const itemsById = {};
49
- map.forEach(value => {
50
- var _a;
51
- const item = Object.assign({}, value);
52
- if (((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) === 0) {
53
- delete item.children;
54
- }
55
- itemsById[item.id] = item;
56
- });
57
- Object.values(itemsById).forEach(item => {
58
- if (item.parentId) {
59
- const parent = itemsById[item.parentId];
60
- if (Array.isArray(parent.children)) {
61
- parent.children.push(item);
62
- }
63
- else {
64
- parent.children = [item];
65
- }
66
- }
67
- else {
68
- array.push(item);
69
- }
70
- });
71
- resolve(array);
72
- });
73
- }
74
- /**
75
- * Obtém a lista selecionada de itens com base na lista original e na lista de índice selecionada.
76
- * @param originalList Uma lista de objetos IGuideItem representando a lista original de itens.
77
- * @param selectedIndexList Uma matriz representando a lista de índices selecionada.
78
- * @returns Uma lista de objetos IGuideItem representando a lista selecionada de itens.
79
- */
80
- getSelectedList(originalList, selectedIndexList) {
81
- const selectedList = [];
82
- selectedIndexList.forEach(selectedIndex => {
83
- if (!selectedIndex.length)
84
- return;
85
- const [parentIndex, childIndex] = selectedIndex;
86
- if (childIndex === undefined) {
87
- selectedList.push(originalList[parentIndex]);
88
- }
89
- else {
90
- const parent = originalList[parentIndex];
91
- const child = parent.children[childIndex];
92
- const selectedParent = selectedList.find(item => item.id === parent.id);
93
- if (selectedParent) {
94
- selectedParent.children.push(child);
95
- }
96
- else {
97
- selectedList.push(Object.assign(Object.assign({}, parent), { children: [child] }));
98
- }
99
- }
100
- });
101
- return selectedList;
102
- }
103
- /**
104
- * Define a lista de itens para o Map guideMap.
105
- * @param list Uma lista de objetos IGuideItem representando a lista de itens.
106
- * @returns Uma Promise que resolve quando a lista é convertida para o Map.
107
- */
108
- setList(list) {
109
- return new Promise(async (resolve) => {
110
- this.guideMap.clear();
111
- if (!this.originalList.length) {
112
- this.originalList = core.ObjectUtils.copy(list);
113
- }
114
- await this.convertArrayToMap(list);
115
- resolve();
116
- });
117
- }
118
- /**
119
- * Obtém a lista de itens com sua hierarquia.
120
- * @returns Uma Promise que resolve para uma lista de objetos IGuideItem com sua hierarquia.
121
- */
122
- getList() {
123
- return this.convertMapToArray();
124
- }
125
- /**
126
- * Adiciona filhos a um item pai no guia.
127
- * @param parent Um objeto IGuideItem que representa o item pai.
128
- * @param children Uma lista de objetos IGuideItem representando os itens filhos.
129
- * @returns Uma Promise que resolve para uma lista de objetos IGuideItem com sua hierarquia.
130
- */
131
- addChildren(parent, children) {
132
- return new Promise(async (resolve, reject) => {
133
- if (parent.disabled)
134
- return reject('Parent is disabled');
135
- if (!parent.hierarchy || !parent.hierarchyId)
136
- return reject('Hierarchy not found');
137
- if (this.hierarchiesAlreadyLoaded.has(parent.hierarchyId))
138
- return resolve([]);
139
- await this.convertArrayToMap(children, parent.hierarchy);
140
- const list = await this.getList();
141
- this.originalList = core.ObjectUtils.copy(list);
142
- this.hierarchiesAlreadyLoaded.add(parent.hierarchyId);
143
- resolve(list);
144
- });
145
- }
146
- /**
147
- * Obtém os itens a partir de um campo corresponde à string de consulta.
148
- * @param query Uma string que representa a consulta para corresponder ao rótulo.
149
- * @param fieldName Uma string opcional que representa o nome do campo para corresponder à consulta.
150
- * @returns Uma Promise que resolve para um objeto com o primeiro item encontrado e uma matriz de itens correspondentes com sua hierarquia.
151
- */
152
- getItemsByLabel(query, fieldName = 'label', selectedItem) {
153
- return new Promise(async (resolve) => {
154
- var _a;
155
- const mapResults = [];
156
- let firstOcorrence;
157
- const itemFromMap = this.guideMap.get(selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.hierarchyId);
158
- if (itemFromMap)
159
- itemFromMap.expanded = true;
160
- for (const item of this.guideMap.values()) {
161
- const label = ((_a = item === null || item === void 0 ? void 0 : item[fieldName]) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '';
162
- if (label.includes(query.toLowerCase())) {
163
- if (!firstOcorrence)
164
- firstOcorrence = item;
165
- mapResults.push(item.indexReferences);
166
- }
167
- }
168
- const updatedList = this.getSelectedList(this.originalList, mapResults);
169
- resolve({
170
- first: firstOcorrence,
171
- list: updatedList,
172
- });
173
- });
174
- }
175
- /**
176
- * Habilita todos os objetos IGuideItem.
177
- * @returns Uma Promise que resolve com o array atualizado de objetos IGuideItem.
178
- */
179
- enableAllItems() {
180
- return new Promise(async (resolve) => {
181
- for (const item of this.guideMap.values())
182
- item.disabled = false;
183
- const list = await this.getList();
184
- this.originalList = core.ObjectUtils.copy(list);
185
- resolve(list);
186
- });
187
- }
188
- /**
189
- * Ativa somente objetos IGuideItem com base em uma matriz de IDs.
190
- * @param ids Um array de IDs para habilitar.
191
- * @param customTooltip Uma string para definir o tooltip de itens desabilitados.
192
- * @returns Uma Promise que resolve com o array atualizado de objetos IGuideItem.
193
- */
194
- enableItemsById(ids = [], customTooltip = '') {
195
- return new Promise(async (resolve) => {
196
- for (const item of this.guideMap.values()) {
197
- const isEnabled = ids.includes(item.id);
198
- item.disabled = !isEnabled;
199
- item.tooltip = isEnabled ? item.tooltip : customTooltip;
200
- }
201
- const list = await this.getList();
202
- this.originalList = core.ObjectUtils.copy(list);
203
- resolve(list);
204
- });
205
- }
206
- }
207
-
208
- 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)}";
8
+ 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}";
209
9
 
210
- const ENTER_KEY = 'Enter';
10
+ const ENTER_KEY = "Enter";
211
11
  let EzGuideNavigator = class {
212
12
  constructor(hostRef) {
213
13
  index.registerInstance(this, hostRef);
214
- //TODO: Quando a filtragem for feita dentro da árvore, não será mais necessário
215
- this.guide = new Guide();
216
- //TODO: Destituir esse binder. Rediscutida a arquitetura desse componente
217
- //vimos que o binder só dificulta a vida de quem vai usar... assim teremos
218
- //apenas uma lista de IGuideItems e o resto fica como a própria árvore...
219
- /**
220
- * Provedor de dados para o guide navigator.
221
- */
222
- this.binder = null;
223
14
  /**
224
15
  * Define se o menu de navegação está aberto.
225
- */
16
+ */
226
17
  this.open = true;
227
- //TODO: Destituir esse binder. Rediscutida a arquitetura desse componente
228
- //vimos que o binder só dificulta a vida de quem vai usar... assim teremos
229
- //apenas uma lista de IGuideItems e o resto fica como a própria árvore...
230
18
  /**
231
19
  * Lista de itens do menu de navegação.
232
- */
20
+ */
233
21
  this.items = [];
234
22
  /**
235
23
  * Valor do campo de pesquisa usado na filtragem de guias.
236
24
  */
237
- this.filterText = '';
25
+ this.filterText = "";
238
26
  }
239
27
  /**
240
- * Habilita itens específicos a partir de uma lista de ID's.
241
- */
242
- async enableOnly(id, customTooltip) {
243
- //TODO: Levar para a árvore
244
- this._tree.items = await this.guide.enableItemsById(id, customTooltip);
28
+ * Desabilita um ou mais itens.
29
+ */
30
+ async disableItem(id) {
31
+ [].concat(id).forEach(item => this._tree.disableItem(item));
245
32
  }
246
33
  /**
247
- * Habilita todos os itens do menu de navegação.
248
- */
249
- async enableAll() {
250
- //TODO: Levar para a árvore
251
- this._tree.items = await this.guide.enableAllItems();
252
- }
253
- //TODO: Destituir esse binder. Rediscutida a arquitetura desse componente
254
- //vimos que o binder só dificulta a vida de quem vai usar... assim teremos
255
- //apenas uma lista de IGuideItems e o resto fica como a própria árvore...
256
- handleBinderChange(newBinder, oldBinder) {
257
- if (newBinder != oldBinder) {
258
- this.initTree();
259
- }
34
+ * Habilita um ou mais itens.
35
+ */
36
+ async enableItem(id) {
37
+ [].concat(id).forEach(item => this._tree.enableItem(item));
260
38
  }
261
39
  async handleToggleSidebar() {
262
40
  this.open = !this.open;
263
- if (this.open) {
264
- await this.initTree();
265
- this.filterItems();
266
- }
267
41
  }
268
- handleSelectTreeItem({ detail: parent }) {
269
- if (!parent.expanded)
270
- return;
271
- //TODO: Destituir esse binder. Rediscutida a arquitetura desse componente
272
- //vimos que o binder só dificulta a vida de quem vai usar... assim teremos
273
- //apenas uma lista de IGuideItems e o resto fica como a própria árvore...
274
- this.binder.fetchItems(parent.id).then(async (children) => {
275
- if (!(children === null || children === void 0 ? void 0 : children.length))
276
- return;
277
- await this.guide.addChildren(parent, children);
278
- const { list } = await this.guide.getItemsByLabel(this.filterText, 'label', parent);
279
- this._tree.items = list;
280
- this._tree.openItem(parent.hierarchyId || parent.id);
281
- });
282
- this.binder.onSelectItem(parent);
283
- }
284
- //TODO: Destituir esse binder. Rediscutida a arquitetura desse componente
285
- //vimos que o binder só dificulta a vida de quem vai usar... assim teremos
286
- //apenas uma lista de IGuideItems e o resto fica como a própria árvore...
287
42
  handleFilterTree(event) {
288
- if (event.key === ENTER_KEY)
289
- this.filterItems();
290
- }
291
- //TODO: Destituir esse binder. Rediscutida a arquitetura desse componente
292
- //vimos que o binder só dificulta a vida de quem vai usar... assim teremos
293
- //apenas uma lista de IGuideItems e o resto fica como a própria árvore...
294
- async setTreeIems(list, first) {
295
- var _a;
296
- this._tree.items = list;
297
- if (first && !(first === null || first === void 0 ? void 0 : first.disabled)) {
298
- const parentHierarchyId = ((_a = first.hierarchy) === null || _a === void 0 ? void 0 : _a.slice(0, -1).join(HIERARCHY_SEPARATOR)) || first.id;
299
- await this._tree.openItem(parentHierarchyId);
300
- await this._tree.selectItem(first.id);
43
+ if (event.key === ENTER_KEY) {
44
+ this._tree.applyFilter(this.filterText);
301
45
  }
302
- else {
303
- this._tree.selectItem(null);
304
- }
305
- }
306
- //TODO: Destituir esse binder. Rediscutida a arquitetura desse componente
307
- //vimos que o binder só dificulta a vida de quem vai usar... assim teremos
308
- //apenas uma lista de IGuideItems e o resto fica como a própria árvore...
309
- filterItems() {
310
- this.guide.getItemsByLabel(this.filterText).then(async ({ list, first }) => {
311
- this.setTreeIems(list, first);
312
- });
313
- }
314
- //TODO: Destituir esse binder. Rediscutida a arquitetura desse componente
315
- //vimos que o binder só dificulta a vida de quem vai usar... assim teremos
316
- //apenas uma lista de IGuideItems e o resto fica como a própria árvore...
317
- async initTree() {
318
- if (!this.binder)
319
- return;
320
- const binderItems = await this.binder.fetchItems();
321
- await this.guide.setList(binderItems);
322
- const guideItems = await this.guide.getList();
323
- this.setTreeIems(guideItems);
324
- }
325
- componentDidLoad() {
326
- core.ElementIDUtils.addIDInfoIfNotExists(this._element);
327
- this.initTree();
328
46
  }
329
47
  render() {
330
- return (index.h(index.Host, null, this.open ? (index.h("aside", { tabIndex: -1, id: "navigator", class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-guide-navigator", "data-element-id": core.ElementIDUtils.getInternalIDInfo("sidebar") }, index.h("div", { role: "search", class: "ez-guide-navigator__actions" }, index.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": core.ElementIDUtils.getInternalIDInfo("textinput") }), index.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": core.ElementIDUtils.getInternalIDInfo("closeButton") })), index.h("ez-tree", { ref: element => (this._tree = element), onEzChange: evt => this.handleSelectTreeItem(evt), "data-element-id": core.ElementIDUtils.getInternalIDInfo("tree") }))) : (index.h("ez-sidebar-button", { onEzClick: this.handleToggleSidebar.bind(this), "aria-controls": "navigator", "aria-expanded": this.open, "data-element-id": core.ElementIDUtils.getInternalIDInfo("openButton") }))));
48
+ core.ElementIDUtils.addIDInfoIfNotExists(this._element);
49
+ return (index.h(index.Host, null, index.h("ez-sidebar-button", { class: this.open ? "hidden" : "", onEzClick: this.handleToggleSidebar.bind(this), "aria-controls": "navigator", "aria-expanded": this.open, "data-element-id": core.ElementIDUtils.getInternalIDInfo("openButton") }), index.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": core.ElementIDUtils.getInternalIDInfo("sidebar") }, index.h("div", { role: "search", class: "ez-guide-navigator__actions" }, index.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": core.ElementIDUtils.getInternalIDInfo("textinput") }), index.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": core.ElementIDUtils.getInternalIDInfo("closeButton") })), index.h("ez-tree", { ref: element => (this._tree = element), items: this.items, "data-element-id": core.ElementIDUtils.getInternalIDInfo("tree"), tooltipResolver: this.tooltipResolver }))));
331
50
  }
332
51
  get _element() { return index.getElement(this); }
333
- static get watchers() { return {
334
- "binder": ["handleBinderChange"]
335
- }; }
336
52
  };
337
53
  EzGuideNavigator.style = ezGuideNavigatorCss;
338
54
 
@@ -50,7 +50,7 @@ let EzModalContainer = class {
50
50
  this._closeButton.focus();
51
51
  }
52
52
  render() {
53
- return (index.h(index.Host, null, index.h("button", { class: "ez-modal-container__focus-ctrl", onFocusin: evt => this.focusLast(evt) }), this.showTitleBar && index.h("div", { class: "ez-modal-container__header ez-margin-bottom--large ez-align--middle" }, index.h("div", { class: "ez-col ez-align--middle ez-modal-container__title" }, index.h("h2", { class: "ez-text ez-title--large ez-title--primary ez-text--bold ez-margin-vertical--extra-small" }, this.modalTitle), this.modalSubTitle ? index.h("div", { class: "ez-text ez-text--medium ez-text--primary ez-margin-vertical--extra-small" }, this.modalSubTitle) : undefined), index.h("button", { ref: ref => this._closeButton = ref, class: "ez-modal-container__close-button", onClick: () => this.ezModalAction.emit(ModalAction$1.CLOSE) }, index.h("ez-icon", { class: "ez-modal-container__close-icon", size: "medium", iconName: "close" }))), index.h("div", { class: "ez-modal-container__content" }, index.h("slot", null)), index.h("div", { class: "ez-col ez-margin-left--auto" }, this.cancelIsVisible() ? index.h("ez-button", { label: this.cancelButtonLabel, enabled: this.cancelButtonStatus !== ModalButtonStatus$1.DISABLED, onClick: () => this.ezModalAction.emit(ModalAction$1.CANCEL) }) : undefined, this.okIsVisible() ? index.h("ez-button", { ref: ref => this._okButton = ref, label: this.okButtonLabel, enabled: this.okButtonStatus !== ModalButtonStatus$1.DISABLED, class: "ez-button--primary ez-margin-left--medium", onClick: () => this.ezModalAction.emit(ModalAction$1.OK) }) : undefined), index.h("button", { class: "ez-modal-container__focus-ctrl", onFocusin: evt => this.focusFirst(evt) })));
53
+ return (index.h(index.Host, null, index.h("button", { class: "ez-modal-container__focus-ctrl", onFocusin: evt => this.focusLast(evt) }), this.showTitleBar && index.h("div", { class: "ez-modal-container__header ez-margin-bottom--large ez-align--middle" }, index.h("div", { class: "ez-col ez-align--middle ez-modal-container__title" }, index.h("h2", { class: "ez-text ez-title--large ez-title--primary ez-text--bold ez-margin-vertical--extra-small" }, this.modalTitle), this.modalSubTitle ? index.h("div", { class: "ez-text ez-text--medium ez-text--primary ez-margin-vertical--extra-small" }, this.modalSubTitle) : undefined), index.h("button", { ref: ref => this._closeButton = ref, class: "ez-modal-container__close-button", onClick: () => this.ezModalAction.emit(ModalAction$1.CLOSE) }, index.h("ez-icon", { class: "ez-modal-container__close-icon", size: "medium", iconName: "close" }))), index.h("div", { class: "ez-modal-container__content" }, index.h("slot", null)), index.h("div", { class: "ez-flex ez-flex--justify-end" }, this.cancelIsVisible() ? index.h("ez-button", { label: this.cancelButtonLabel, enabled: this.cancelButtonStatus !== ModalButtonStatus$1.DISABLED, onClick: () => this.ezModalAction.emit(ModalAction$1.CANCEL) }) : undefined, this.okIsVisible() ? index.h("ez-button", { ref: ref => this._okButton = ref, label: this.okButtonLabel, enabled: this.okButtonStatus !== ModalButtonStatus$1.DISABLED, class: "ez-button--primary ez-margin-left--medium", onClick: () => this.ezModalAction.emit(ModalAction$1.OK) }) : undefined), index.h("button", { class: "ez-modal-container__focus-ctrl", onFocusin: evt => this.focusFirst(evt) })));
54
54
  }
55
55
  };
56
56
  EzModalContainer.style = ezModalContainerCss;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-5e208fa5.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
 
8
- 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%}";
8
+ 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%}";
9
9
 
10
10
  let EzPopover = class {
11
11
  constructor(hostRef) {
@@ -107,7 +107,7 @@ let EzPopover = class {
107
107
  */
108
108
  async show(top = this.top, left = this.left, bottom = this.bottom, right = this.right) {
109
109
  const useOverlay = this.overlayType !== "none";
110
- const overlayClassName = `ez-scrim ez-scrim-${this.overlayType}`;
110
+ const overlayClassName = `ez-scrim ez-scrim--${this.overlayType}`;
111
111
  let floatingOptions = {
112
112
  autoClose: this.autoClose,
113
113
  top,
@@ -15,5 +15,5 @@ const patchBrowser = () => {
15
15
  };
16
16
 
17
17
  patchBrowser().then(options => {
18
- return index.bootstrapLazy([["ez-guide-navigator.cjs",[[1,"ez-guide-navigator",{"binder":[16],"open":[1540],"items":[32],"filterText":[32],"enableOnly":[64],"enableAll":[64]}]]],["ez-actions-button.cjs",[[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.cjs",[[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.cjs",[[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.cjs",[[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.cjs",[[1,"ez-alert",{"alertType":[513,"alert-type"]}]]],["ez-breadcrumb.cjs",[[1,"ez-breadcrumb",{"items":[1040]}]]],["ez-chip.cjs",[[1,"ez-chip",{"label":[513],"enabled":[516],"removePosition":[513,"remove-position"],"mode":[513],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-dropdown.cjs",[[1,"ez-dropdown",{"items":[1040],"value":[1040],"itemBuilder":[16]}]]],["ez-file-item.cjs",[[1,"ez-file-item",{"canRemove":[4,"can-remove"],"fileName":[1,"file-name"],"iconName":[1,"icon-name"],"fileSize":[2,"file-size"],"progress":[2]}]]],["ez-application.cjs",[[0,"ez-application"]]],["ez-card-item.cjs",[[1,"ez-card-item",{"item":[16]}]]],["ez-list.cjs",[[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.cjs",[[1,"ez-loading-bar",{"_showLoading":[32],"hide":[64],"show":[64]}]]],["ez-modal.cjs",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]],["ez-popover.cjs",[[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.cjs",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[516,"use-header"],"heightMode":[513,"height-mode"],"ezTitle":[1,"ez-title"]}]]],["ez-radio-button.cjs",[[1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]]],["ez-scroller.cjs",[[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.cjs",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"canClose":[1028,"can-close"],"show":[64]}]]],["ez-view-stack.cjs",[[0,"ez-view-stack",{"show":[64],"getSelectedIndex":[64]}]]],["ez-tabselector.cjs",[[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32]}]]],["ez-text-input.cjs",[[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.cjs",[[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.cjs",[[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.cjs",[[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.cjs",[[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.cjs",[[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.cjs",[[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.cjs",[[1,"ez-check",{"label":[513],"value":[1540],"enabled":[1540],"indeterminate":[516],"mode":[513],"getMode":[64],"setFocus":[64]}]]],["ez-text-area.cjs",[[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.cjs",[[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.cjs",[[1,"ez-text-edit",{"value":[1],"styled":[16],"_newValue":[32],"applyFocusSelect":[64]}]]],["ez-combo-box.cjs",[[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.cjs",[[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.cjs",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}]]],["ez-icon.cjs",[[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]]],["ez-button.cjs",[[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-form-view.cjs",[[2,"ez-form-view",{"fields":[16]}]]],["ez-form.cjs",[[2,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16],"multiLevel":[4,"multi-level"],"levelResolver":[16],"contentBuilder":[16],"validate":[64]}]]]], options);
18
+ return index.bootstrapLazy([["ez-guide-navigator.cjs",[[1,"ez-guide-navigator",{"open":[1540],"items":[16],"tooltipResolver":[16],"filterText":[32],"disableItem":[64],"enableItem":[64]}]]],["ez-actions-button.cjs",[[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.cjs",[[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.cjs",[[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.cjs",[[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.cjs",[[1,"ez-alert",{"alertType":[513,"alert-type"]}]]],["ez-breadcrumb.cjs",[[1,"ez-breadcrumb",{"items":[1040]}]]],["ez-chip.cjs",[[1,"ez-chip",{"label":[513],"enabled":[516],"removePosition":[513,"remove-position"],"mode":[513],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-dropdown.cjs",[[1,"ez-dropdown",{"items":[1040],"value":[1040],"itemBuilder":[16]}]]],["ez-file-item.cjs",[[1,"ez-file-item",{"canRemove":[4,"can-remove"],"fileName":[1,"file-name"],"iconName":[1,"icon-name"],"fileSize":[2,"file-size"],"progress":[2]}]]],["ez-application.cjs",[[0,"ez-application"]]],["ez-card-item.cjs",[[1,"ez-card-item",{"item":[16]}]]],["ez-list.cjs",[[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.cjs",[[1,"ez-loading-bar",{"_showLoading":[32],"hide":[64],"show":[64]}]]],["ez-modal.cjs",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]],["ez-popover.cjs",[[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.cjs",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[516,"use-header"],"heightMode":[513,"height-mode"],"ezTitle":[1,"ez-title"]}]]],["ez-radio-button.cjs",[[1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]]],["ez-scroller.cjs",[[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.cjs",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"canClose":[1028,"can-close"],"show":[64]}]]],["ez-view-stack.cjs",[[0,"ez-view-stack",{"show":[64],"getSelectedIndex":[64]}]]],["ez-tabselector.cjs",[[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32]}]]],["ez-text-input.cjs",[[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.cjs",[[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.cjs",[[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.cjs",[[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.cjs",[[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.cjs",[[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.cjs",[[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.cjs",[[1,"ez-check",{"label":[513],"value":[1540],"enabled":[1540],"indeterminate":[516],"mode":[513],"getMode":[64],"setFocus":[64]}]]],["ez-text-area.cjs",[[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.cjs",[[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.cjs",[[1,"ez-text-edit",{"value":[1],"styled":[16],"_newValue":[32],"applyFocusSelect":[64]}]]],["ez-combo-box.cjs",[[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.cjs",[[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.cjs",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}]]],["ez-icon.cjs",[[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]]],["ez-button.cjs",[[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-form-view.cjs",[[2,"ez-form-view",{"fields":[16]}]]],["ez-form.cjs",[[2,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16],"multiLevel":[4,"multi-level"],"levelResolver":[16],"contentBuilder":[16],"validate":[64]}]]]], options);
19
19
  });