@sankhyalabs/ezui 1.1.112 → 1.1.115

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 (41) hide show
  1. package/dist/cjs/ez-combo-box.cjs.entry.js +7 -2
  2. package/dist/cjs/ez-form.cjs.entry.js +4 -4
  3. package/dist/cjs/ez-grid.cjs.entry.js +74 -12
  4. package/dist/cjs/ez-search.cjs.entry.js +5 -1
  5. package/dist/cjs/ez-toast.cjs.entry.js +3 -2
  6. package/dist/cjs/ezui.cjs.js +1 -1
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/components/ez-combo-box/ez-combo-box.js +7 -2
  9. package/dist/collection/components/ez-form/fieldbuilder/tpl/ComboBox.tpl.js +2 -2
  10. package/dist/collection/components/ez-form/fieldbuilder/tpl/SearchInput.tpl.js +2 -2
  11. package/dist/collection/components/ez-grid/controller/DataUnitBridge.js +14 -1
  12. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +60 -11
  13. package/dist/collection/components/ez-search/ez-search.js +24 -2
  14. package/dist/collection/components/ez-toast/ez-toast.css +1 -1
  15. package/dist/collection/components/ez-toast/ez-toast.js +2 -1
  16. package/dist/custom-elements/index.js +94 -22
  17. package/dist/esm/ez-combo-box.entry.js +7 -2
  18. package/dist/esm/ez-form.entry.js +4 -4
  19. package/dist/esm/ez-grid.entry.js +74 -12
  20. package/dist/esm/ez-search.entry.js +5 -1
  21. package/dist/esm/ez-toast.entry.js +3 -2
  22. package/dist/esm/ezui.js +1 -1
  23. package/dist/esm/loader.js +1 -1
  24. package/dist/ezui/ezui.esm.js +1 -1
  25. package/dist/ezui/p-3602ab8c.entry.js +1 -0
  26. package/dist/ezui/{p-a038e7a5.entry.js → p-3cd17150.entry.js} +1 -1
  27. package/dist/ezui/p-7247379d.entry.js +1 -0
  28. package/dist/ezui/p-8248690a.entry.js +1 -0
  29. package/dist/ezui/p-fb73f557.entry.js +1 -0
  30. package/dist/types/components/ez-form/fieldbuilder/tpl/ComboBox.tpl.d.ts +2 -1
  31. package/dist/types/components/ez-form/fieldbuilder/tpl/SearchInput.tpl.d.ts +2 -1
  32. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +16 -0
  33. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +5 -0
  34. package/dist/types/components/ez-search/ez-search.d.ts +4 -0
  35. package/dist/types/components/ez-toast/ez-toast.d.ts +1 -0
  36. package/dist/types/components.d.ts +10 -2
  37. package/package.json +6 -5
  38. package/dist/ezui/p-3662c09e.entry.js +0 -1
  39. package/dist/ezui/p-3c954800.entry.js +0 -1
  40. package/dist/ezui/p-65893e25.entry.js +0 -1
  41. package/dist/ezui/p-9ea5b22e.entry.js +0 -1
@@ -158,8 +158,13 @@ let EzComboBox = class {
158
158
  this.updateVisibleOptions();
159
159
  }
160
160
  else {
161
- this._source = source;
162
- this.updateVisibleOptions();
161
+ if (Array.isArray(source)) {
162
+ this._source = source;
163
+ this.updateVisibleOptions();
164
+ }
165
+ else {
166
+ this.value = source;
167
+ }
163
168
  }
164
169
  }
165
170
  loadOptions(mode, argument = "") {
@@ -27,7 +27,7 @@ function buildField$1(fieldName, fieldLabel, readOnly, switchMode = false) {
27
27
  index.h("ez-check", { enabled: !readOnly, label: fieldLabel, mode: switchMode ? "switch" : "regular", "data-field-name": fieldName, key: fieldName })));
28
28
  }
29
29
 
30
- const buildComboBox = ({ name, label, readOnly }, properties) => {
30
+ const buildComboBox = ({ name, label, readOnly, required }, properties) => {
31
31
  const prop = properties === null || properties === void 0 ? void 0 : properties.options;
32
32
  let options;
33
33
  if (typeof prop === "string") {
@@ -38,12 +38,12 @@ const buildComboBox = ({ name, label, readOnly }, properties) => {
38
38
  options = prop;
39
39
  }
40
40
  return (index.h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
41
- index.h("ez-combo-box", { enabled: !readOnly, label: label, "data-field-name": name, key: name, options: options })));
41
+ index.h("ez-combo-box", { enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, key: name, options: options })));
42
42
  };
43
43
 
44
- const buildSearch = ({ name, label, readOnly }) => {
44
+ const buildSearch = ({ name, label, readOnly, required }) => {
45
45
  return (index.h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
46
- index.h("ez-search", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
46
+ index.h("ez-search", { enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, key: name })));
47
47
  };
48
48
 
49
49
  const buildFile = ({ name, label, readOnly }) => {
@@ -110061,11 +110061,14 @@ class DataSource {
110061
110061
  class AgGridController {
110062
110062
  constructor(enterprise) {
110063
110063
  this._menuItems = [];
110064
+ this._idAttribName = "__record__id__";
110064
110065
  this._enterprise = enterprise;
110065
110066
  }
110066
110067
  getSort() {
110067
110068
  const sortedColumns = [];
110068
- this._gridOptions.api.getSortModel().forEach(({ colId, sort }) => {
110069
+ this._gridOptions.columnApi.getColumnState()
110070
+ .sort((colA, colB) => colA.sortIndex - colB.sortIndex)
110071
+ .forEach(({ colId, sort }) => {
110069
110072
  if (sort) {
110070
110073
  const field = this._dataUnit.getField(colId);
110071
110074
  const mode = sort === "asc" ? UnitMetadata.SortMode.ASC : UnitMetadata.SortMode.DESC;
@@ -110090,10 +110093,9 @@ class AgGridController {
110090
110093
  this._gridOptions = {
110091
110094
  localeText: gridTerms,
110092
110095
  rowModelType: "serverSide",
110093
- serverSideStoreType: "partial",
110094
110096
  rowSelection: this._multipleSelection ? "multiple" : "single",
110095
110097
  serverSideDatasource: new DataSource(this._dataUnit, this._serverURL),
110096
- getRowNodeId: (params) => params.__record__id__,
110098
+ getRowNodeId: (params) => typeof params === "string" ? params : params[this._idAttribName],
110097
110099
  getMainMenuItems: (params) => {
110098
110100
  const column = params.column;
110099
110101
  const items = [column.isPinned() ? "clearPinned" : "pinLeft", "separator"];
@@ -110103,14 +110105,9 @@ class AgGridController {
110103
110105
  }));
110104
110106
  return items;
110105
110107
  },
110106
- onViewportChanged: (evt) => {
110107
- if (this._gridOptions && this._gridOptions.api && evt && evt.api) {
110108
- if (this._dataUnit.getSelection()) {
110109
- this._dataUnit.getSelection().forEach(id => {
110110
- let node = evt.api.getRowNode(id);
110111
- node.setSelected(true);
110112
- });
110113
- }
110108
+ onViewportChanged: () => {
110109
+ if (this._dataUnit) {
110110
+ this.selectRows(this._dataUnit.getSelection());
110114
110111
  }
110115
110112
  }
110116
110113
  };
@@ -110151,6 +110148,58 @@ class AgGridController {
110151
110148
  }
110152
110149
  this._gridOptions.api.setRowData(data);
110153
110150
  }
110151
+ addRows(rows) {
110152
+ if (this._grid === undefined) {
110153
+ throw new Error("Erro interno: Grid ainda não inicializado.");
110154
+ }
110155
+ this._gridOptions.api.applyServerSideTransaction({ add: rows });
110156
+ }
110157
+ selectRows(rowIds) {
110158
+ if (this._grid === undefined) {
110159
+ throw new Error("Erro interno: Grid ainda não inicializado.");
110160
+ }
110161
+ if (rowIds && rowIds.length > 0) {
110162
+ rowIds.forEach(rowId => {
110163
+ const row = this._gridOptions.api.getRowNode(rowId);
110164
+ if (row) {
110165
+ row.setSelected(true);
110166
+ }
110167
+ });
110168
+ }
110169
+ }
110170
+ removeRows(rowIds) {
110171
+ if (this._grid === undefined) {
110172
+ throw new Error("Erro interno: Grid ainda não inicializado.");
110173
+ }
110174
+ this._gridOptions.api.applyServerSideTransaction({ remove: rowIds });
110175
+ }
110176
+ changeValues(changes, rowIds) {
110177
+ if (this._grid === undefined) {
110178
+ throw new Error("Erro interno: Grid ainda não inicializado.");
110179
+ }
110180
+ if (changes) {
110181
+ let rowNodes;
110182
+ if (rowIds) {
110183
+ rowNodes = [];
110184
+ rowIds.forEach(id => {
110185
+ const rowNode = this._gridOptions.api.getRowNode(id);
110186
+ if (rowNode) {
110187
+ rowNodes.push(rowNode);
110188
+ }
110189
+ });
110190
+ }
110191
+ else {
110192
+ rowNodes = this._gridOptions.api.getSelectedNodes();
110193
+ }
110194
+ rowNodes.forEach(r => {
110195
+ const data = r.data;
110196
+ Object.entries(changes).forEach(([field, value]) => {
110197
+ data[field] = value;
110198
+ });
110199
+ r.setData(data);
110200
+ });
110201
+ }
110202
+ }
110154
110203
  refresh() {
110155
110204
  if (this._grid === undefined) {
110156
110205
  throw new Error("Erro interno: Grid ainda não inicializado.");
@@ -110358,12 +110407,25 @@ class DataUnitBridge {
110358
110407
  this._gridController.setColumnsDef(this.buildColumnDefs(), true);
110359
110408
  break;
110360
110409
  case core.Action.RECORDS_REMOVED:
110361
- case core.Action.EDITION_CANCELED:
110410
+ const { records } = action.payload;
110411
+ this._gridController.removeRows(records);
110412
+ break;
110362
110413
  case core.Action.RECORDS_ADDED:
110363
110414
  case core.Action.RECORDS_COPIED:
110415
+ this._gridController.addRows(action.payload);
110416
+ break;
110417
+ case core.Action.EDITION_CANCELED:
110364
110418
  case core.Action.DATA_SAVED:
110365
110419
  this._gridController.refresh();
110366
110420
  break;
110421
+ case core.Action.SELECTION_CHANGED:
110422
+ const { selection } = action.payload;
110423
+ this._gridController.selectRows(selection);
110424
+ break;
110425
+ case core.Action.DATA_CHANGED:
110426
+ const changes = Object.assign({}, action.payload);
110427
+ delete changes.records;
110428
+ this._gridController.changeValues(changes, action.payload.records);
110367
110429
  }
110368
110430
  }
110369
110431
  buildColumnDefs() {
@@ -24,6 +24,10 @@ let EzSearch = class {
24
24
  * Ajusta a opção de mostrar o "value" para cada opção.
25
25
  */
26
26
  this.showOptionValue = true;
27
+ /**
28
+ * Remove a opção vazia da lista de opções
29
+ */
30
+ this.suppressEmptyOption = false;
27
31
  }
28
32
  updateValue() {
29
33
  if (this._comboElement) {
@@ -51,7 +55,7 @@ let EzSearch = class {
51
55
  CSSVarsUtils.CSSVarsUtils.applyVarsTextInput(this._elem, this._comboElement);
52
56
  }
53
57
  render() {
54
- return (index.h("ez-combo-box", { ref: elem => this._comboElement = elem, value: this.value, label: this.label, enabled: this.enabled, errorMessage: this.errorMessage, optionLoader: this.optionLoader, searchMode: true, onEzChange: evt => this.onComboChange(evt), showSelectedValue: this.showSelectedValue, showOptionValue: this.showOptionValue }));
58
+ return (index.h("ez-combo-box", { ref: elem => this._comboElement = elem, value: this.value, label: this.label, enabled: this.enabled, errorMessage: this.errorMessage, optionLoader: this.optionLoader, searchMode: true, onEzChange: evt => this.onComboChange(evt), showSelectedValue: this.showSelectedValue, showOptionValue: this.showOptionValue, suppressEmptyOption: this.suppressEmptyOption }));
55
59
  }
56
60
  ;
57
61
  get _elem() { return index.getElement(this); }
@@ -4,11 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-88286449.js');
6
6
 
7
- const ezToastCss = ":host{--ez-toast__btn__close__image:url('data:image/svg+xml;utf8,<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" xmlns=\"http://www.w3.org/2000/svg%22%3E<path d=\"M 7.0060773,5.995511 11.461972,1.5397722 c 0.132856,-0.1328413 0.207547,-0.3130253 0.207547,-0.5009046 0,-0.18786999 -0.07469,-0.3680541 -0.207547,-0.5009048 -0.132857,-0.13284126 -0.31302,-0.20748126 -0.500927,-0.20748126 -0.187812,0 -0.36807,0.07464 -0.500926,0.20748126 L 6.0042244,4.9937015 1.5482921,0.5379628 C 1.4154357,0.40512154 1.2352533,0.33048154 1.0473657,0.33048154 c -0.18787813,0 -0.36807,0.07464 -0.50092647,0.20748126 -0.13285646,0.1328507 -0.20749026,0.31303481 -0.20749026,0.5009048 0,0.1878793 0.0746338,0.3680633 0.20749026,0.5009046 L 5.0023715,5.995511 0.54643923,10.452213 c -0.0676086,0.06534 -0.12151598,0.14352 -0.15859681,0.229916 -0.0370714,0.08639 -0.0565645,0.1794 -0.0573369,0.27335 -7.724e-4,0.09404 0.0171873,0.187331 0.0528423,0.274293 0.0356455,0.08705 0.0882688,0.166087 0.15479148,0.23256 0.0665321,0.06648 0.14562277,0.11897 0.2326735,0.154567 0.0870507,0.0356 0.18031463,0.05344 0.2743433,0.05259 0.094029,-8.5e-4 0.1869528,-0.02049 0.2733331,-0.0576 0.08639,-0.0372 0.1645078,-0.09121 0.2298029,-0.158817 L 6.0042244,6.9973204 10.460119,11.453078 c 0.132856,0.132851 0.313114,0.207444 0.500926,0.207444 0.187907,0 0.36807,-0.07459 0.500927,-0.207444 0.132856,-0.13285 0.207547,-0.313006 0.207547,-0.500904 0,-0.187898 -0.07469,-0.368054 -0.207547,-0.500905 z\"/></svg>');--ez-toast__container-z-index:var(--more-visible, 2);--ez-toast__container--background-color:var(--color--secondary, #383c45);--ez-toast__icon--padding-left:var(--space--small, 6px)}.toast__container{position:fixed;display:flex;bottom:100px;z-index:var(--ez-toast__container-z-index);left:100px;width:280px;box-sizing:border-box;background-color:var(--ez-toast__container--background-color);border-radius:6px;align-items:center;padding:12px;visibility:hidden}.message__container{font-family:\"Sora\", \"Algerian\";text-shadow:0 0 0 #353535, 0 0 1px transparent;color:#FFFFFF;font-size:14px;width:90%;overflow:hidden;word-break:break-all;height:auto;-webkit-box-orient:vertical;-webkit-line-clamp:4;display:-webkit-box;text-overflow:ellipsis}.message__conteiner--icon{padding-left:var(--ez-toast__icon--padding-left);width:80%}.btn-close{margin-top:3px;display:flex;justify-content:flex-end;align-self:flex-start;padding:0;outline:none;width:10%;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:#FFFFFF;width:12px;height:12px;-webkit-mask-image:var(--ez-toast__btn__close__image);mask-image:var(--ez-toast__btn__close__image)}.toast__container--oppened{animation:fadein 0.5s, fadeout 0.5s 3s;visibility:visible}@-webkit-keyframes fadein{from{left:-100px;opacity:0}to{left:100px;opacity:1}}@keyframes fadein{from{left:-100px;opacity:0}to{left:100px;opacity:1}}@-webkit-keyframes fadeout{from{left:100px;opacity:1}to{bottom:0;opacity:0}}@keyframes fadeout{from{left:100px;opacity:1}to{bottom:0;opacity:0}}";
7
+ const ezToastCss = ":host{--ez-toast__btn__close__image:url('data:image/svg+xml;utf8,<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" xmlns=\"http://www.w3.org/2000/svg%22%3E<path d=\"M 7.0060773,5.995511 11.461972,1.5397722 c 0.132856,-0.1328413 0.207547,-0.3130253 0.207547,-0.5009046 0,-0.18786999 -0.07469,-0.3680541 -0.207547,-0.5009048 -0.132857,-0.13284126 -0.31302,-0.20748126 -0.500927,-0.20748126 -0.187812,0 -0.36807,0.07464 -0.500926,0.20748126 L 6.0042244,4.9937015 1.5482921,0.5379628 C 1.4154357,0.40512154 1.2352533,0.33048154 1.0473657,0.33048154 c -0.18787813,0 -0.36807,0.07464 -0.50092647,0.20748126 -0.13285646,0.1328507 -0.20749026,0.31303481 -0.20749026,0.5009048 0,0.1878793 0.0746338,0.3680633 0.20749026,0.5009046 L 5.0023715,5.995511 0.54643923,10.452213 c -0.0676086,0.06534 -0.12151598,0.14352 -0.15859681,0.229916 -0.0370714,0.08639 -0.0565645,0.1794 -0.0573369,0.27335 -7.724e-4,0.09404 0.0171873,0.187331 0.0528423,0.274293 0.0356455,0.08705 0.0882688,0.166087 0.15479148,0.23256 0.0665321,0.06648 0.14562277,0.11897 0.2326735,0.154567 0.0870507,0.0356 0.18031463,0.05344 0.2743433,0.05259 0.094029,-8.5e-4 0.1869528,-0.02049 0.2733331,-0.0576 0.08639,-0.0372 0.1645078,-0.09121 0.2298029,-0.158817 L 6.0042244,6.9973204 10.460119,11.453078 c 0.132856,0.132851 0.313114,0.207444 0.500926,0.207444 0.187907,0 0.36807,-0.07459 0.500927,-0.207444 0.132856,-0.13285 0.207547,-0.313006 0.207547,-0.500904 0,-0.187898 -0.07469,-0.368054 -0.207547,-0.500905 z\"/></svg>');--ez-toast__container-z-index:var(--more-visible, 2);--ez-toast__container--background-color:var(--color--secondary, #383c45);--ez-toast__icon--padding-left:var(--space--small, 6px)}.toast__container{position:fixed;display:flex;bottom:100px;z-index:var(--ez-toast__container-z-index);left:100px;width:280px;box-sizing:border-box;background-color:var(--ez-toast__container--background-color);border-radius:6px;align-items:center;padding:12px;visibility:hidden}.message__container{font-family:\"Sora\", \"Algerian\";text-shadow:0 0 0 #353535, 0 0 1px transparent;color:#FFFFFF;font-size:14px;width:90%;overflow:hidden;hyphens:auto;height:auto;-webkit-box-orient:vertical;-webkit-line-clamp:4;display:-webkit-box;text-overflow:ellipsis}.message__conteiner--icon{padding-left:var(--ez-toast__icon--padding-left);width:80%}.btn-close{margin-top:3px;display:flex;justify-content:flex-end;align-self:flex-start;padding:0;outline:none;width:10%;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:#FFFFFF;width:12px;height:12px;-webkit-mask-image:var(--ez-toast__btn__close__image);mask-image:var(--ez-toast__btn__close__image)}.toast__container--oppened{animation:fadein 0.5s, fadeout 0.5s 3s;visibility:visible}@-webkit-keyframes fadein{from{left:-100px;opacity:0}to{left:100px;opacity:1}}@keyframes fadein{from{left:-100px;opacity:0}to{left:100px;opacity:1}}@-webkit-keyframes fadeout{from{left:100px;opacity:1}to{bottom:0;opacity:0}}@keyframes fadeout{from{left:100px;opacity:1}to{bottom:0;opacity:0}}";
8
8
 
9
9
  let EzToast = class {
10
10
  constructor(hostRef) {
11
11
  index.registerInstance(this, hostRef);
12
+ this._lang = "pt"; // Controla qual idioma será usado para definir a regras de hifenização.
12
13
  /**
13
14
  * Controla o tempo de exibição do componente em milissegundos.
14
15
  */
@@ -35,7 +36,7 @@ let EzToast = class {
35
36
  }
36
37
  render() {
37
38
  return (index.h("div", { ref: (el) => this.container = el, class: "toast__container" }, this.useIcon &&
38
- index.h("slot", { name: "icon" }), index.h("div", { class: this.useIcon ? "message__container message__conteiner--icon" : "message__container", title: this.message, innerHTML: this.message }), this.canClose &&
39
+ index.h("slot", { name: "icon" }), index.h("div", { lang: this._lang, class: this.useIcon ? "message__container message__conteiner--icon" : "message__container", title: this.message, innerHTML: this.message }), this.canClose &&
39
40
  index.h("button", { class: "btn-close", onClick: () => { this.container.classList.remove("toast__container--oppened"); this.container.style.animation = `none`; } })));
40
41
  }
41
42
  };
@@ -15,5 +15,5 @@ const patchBrowser = () => {
15
15
  };
16
16
 
17
17
  patchBrowser().then(options => {
18
- return index.bootstrapLazy([["ez-grid.cjs",[[6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"pageSize":[2,"page-size"],"serverUrl":[1,"server-url"],"dataUnit":[16],"_navigationHasPrevious":[32],"_navigationHasNext":[32],"_navigationFirstRow":[32],"_navigationLastRow":[32],"_navigationTotalRows":[32],"_popUpVisible":[32],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64]}]]],["ez-dialog.cjs",[[1,"ez-dialog",{"confirm":[1028],"critical":[1028],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"handleButtonClick":[64],"show":[64]}]]],["ez-action-chip.cjs",[[1,"ez-action-chip",{"label":[513],"enabled":[516]}]]],["ez-application.cjs",[[0,"ez-application"]]],["ez-label-chip.cjs",[[1,"ez-label-chip",{"label":[513],"enabled":[516],"removable":[516],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-popover.cjs",[[1,"ez-popover",{"autoClose":[516,"auto-close"],"top":[1537],"left":[1537],"bottom":[1537],"right":[1537],"boxWidth":[513,"box-width"],"opened":[1540],"updatePosition":[64],"show":[64],"hide":[64]}]]],["ez-popup.cjs",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"ezTitle":[1,"ez-title"]}]]],["ez-toast.cjs",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"canClose":[1028,"can-close"],"show":[64]}]]],["grid-config.cjs",[[2,"grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040]}]]],["ez-modal.cjs",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]],["ez-text-input.cjs",[[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"mask":[1],"canShowError":[516,"can-show-error"],"restrict":[1],"setFocus":[64],"setBlur":[64]}]]],["ez-date-input.cjs",[[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"setFocus":[64],"setBlur":[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"],"setFocus":[64],"setBlur":[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"],"setFocus":[64],"setBlur":[64]}]]],["ez-time-input.cjs",[[1,"ez-time-input",{"label":[513],"viewValue":[1537,"view-value"],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"setFocus":[64],"setBlur":[64]}]]],["select-box.cjs",[[1,"select-box",{"selectedOption":[1,"selected-option"]}]]],["ez-number-input.cjs",[[1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"errorMessage":[1537,"error-message"],"precision":[2],"prettyPrecision":[2,"pretty-precision"],"setFocus":[64],"setBlur":[64]}]]],["ez-collapsible-box.cjs",[[1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"showHide":[64]}]]],["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],"setSelection":[64],"getSelection":[64],"getList":[64]}]]],["ez-text-area.cjs",[[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"setFocus":[64],"setBlur":[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-button.cjs",[[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-calendar.cjs",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}]]],["ez-check.cjs",[[1,"ez-check",{"label":[513],"value":[1540],"enabled":[516],"mode":[513],"getMode":[64],"setFocus":[64]}]]],["ez-tabselector.cjs",[[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1]}]]],["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"],"optionLoader":[16],"suppressEmptyOption":[4,"suppress-empty-option"],"canShowError":[516,"can-show-error"],"_preSelection":[32],"_visibleOptions":[32],"setFocus":[64],"setBlur":[64]}]]],["ez-icon.cjs",[[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]]],["ez-form.cjs",[[0,"ez-form",{"dataUnit":[1040],"config":[16],"submit":[64],"cancel":[64],"validate":[64]}]]],["test-du.cjs",[[0,"test-du"]]]], options);
18
+ return index.bootstrapLazy([["ez-grid.cjs",[[6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"pageSize":[2,"page-size"],"serverUrl":[1,"server-url"],"dataUnit":[16],"_navigationHasPrevious":[32],"_navigationHasNext":[32],"_navigationFirstRow":[32],"_navigationLastRow":[32],"_navigationTotalRows":[32],"_popUpVisible":[32],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64]}]]],["ez-dialog.cjs",[[1,"ez-dialog",{"confirm":[1028],"critical":[1028],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"handleButtonClick":[64],"show":[64]}]]],["ez-action-chip.cjs",[[1,"ez-action-chip",{"label":[513],"enabled":[516]}]]],["ez-application.cjs",[[0,"ez-application"]]],["ez-label-chip.cjs",[[1,"ez-label-chip",{"label":[513],"enabled":[516],"removable":[516],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-popover.cjs",[[1,"ez-popover",{"autoClose":[516,"auto-close"],"top":[1537],"left":[1537],"bottom":[1537],"right":[1537],"boxWidth":[513,"box-width"],"opened":[1540],"updatePosition":[64],"show":[64],"hide":[64]}]]],["ez-popup.cjs",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"ezTitle":[1,"ez-title"]}]]],["ez-toast.cjs",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"canClose":[1028,"can-close"],"show":[64]}]]],["grid-config.cjs",[[2,"grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040]}]]],["ez-modal.cjs",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]],["ez-text-input.cjs",[[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"mask":[1],"canShowError":[516,"can-show-error"],"restrict":[1],"setFocus":[64],"setBlur":[64]}]]],["ez-date-input.cjs",[[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"setFocus":[64],"setBlur":[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"],"setFocus":[64],"setBlur":[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"],"setFocus":[64],"setBlur":[64]}]]],["ez-time-input.cjs",[[1,"ez-time-input",{"label":[513],"viewValue":[1537,"view-value"],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"setFocus":[64],"setBlur":[64]}]]],["select-box.cjs",[[1,"select-box",{"selectedOption":[1,"selected-option"]}]]],["ez-number-input.cjs",[[1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"errorMessage":[1537,"error-message"],"precision":[2],"prettyPrecision":[2,"pretty-precision"],"setFocus":[64],"setBlur":[64]}]]],["ez-collapsible-box.cjs",[[1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"showHide":[64]}]]],["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],"setSelection":[64],"getSelection":[64],"getList":[64]}]]],["ez-text-area.cjs",[[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"setFocus":[64],"setBlur":[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-button.cjs",[[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-calendar.cjs",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}]]],["ez-check.cjs",[[1,"ez-check",{"label":[513],"value":[1540],"enabled":[516],"mode":[513],"getMode":[64],"setFocus":[64]}]]],["ez-tabselector.cjs",[[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1]}]]],["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"],"optionLoader":[16],"suppressEmptyOption":[4,"suppress-empty-option"],"canShowError":[516,"can-show-error"],"_preSelection":[32],"_visibleOptions":[32],"setFocus":[64],"setBlur":[64]}]]],["ez-icon.cjs",[[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]]],["ez-form.cjs",[[0,"ez-form",{"dataUnit":[1040],"config":[16],"submit":[64],"cancel":[64],"validate":[64]}]]],["test-du.cjs",[[0,"test-du"]]]], options);
19
19
  });
@@ -14,7 +14,7 @@ const patchEsm = () => {
14
14
  const defineCustomElements = (win, options) => {
15
15
  if (typeof window === 'undefined') return Promise.resolve();
16
16
  return patchEsm().then(() => {
17
- return index.bootstrapLazy([["ez-grid.cjs",[[6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"pageSize":[2,"page-size"],"serverUrl":[1,"server-url"],"dataUnit":[16],"_navigationHasPrevious":[32],"_navigationHasNext":[32],"_navigationFirstRow":[32],"_navigationLastRow":[32],"_navigationTotalRows":[32],"_popUpVisible":[32],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64]}]]],["ez-dialog.cjs",[[1,"ez-dialog",{"confirm":[1028],"critical":[1028],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"handleButtonClick":[64],"show":[64]}]]],["ez-action-chip.cjs",[[1,"ez-action-chip",{"label":[513],"enabled":[516]}]]],["ez-application.cjs",[[0,"ez-application"]]],["ez-label-chip.cjs",[[1,"ez-label-chip",{"label":[513],"enabled":[516],"removable":[516],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-popover.cjs",[[1,"ez-popover",{"autoClose":[516,"auto-close"],"top":[1537],"left":[1537],"bottom":[1537],"right":[1537],"boxWidth":[513,"box-width"],"opened":[1540],"updatePosition":[64],"show":[64],"hide":[64]}]]],["ez-popup.cjs",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"ezTitle":[1,"ez-title"]}]]],["ez-toast.cjs",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"canClose":[1028,"can-close"],"show":[64]}]]],["grid-config.cjs",[[2,"grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040]}]]],["ez-modal.cjs",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]],["ez-text-input.cjs",[[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"mask":[1],"canShowError":[516,"can-show-error"],"restrict":[1],"setFocus":[64],"setBlur":[64]}]]],["ez-date-input.cjs",[[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"setFocus":[64],"setBlur":[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"],"setFocus":[64],"setBlur":[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"],"setFocus":[64],"setBlur":[64]}]]],["ez-time-input.cjs",[[1,"ez-time-input",{"label":[513],"viewValue":[1537,"view-value"],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"setFocus":[64],"setBlur":[64]}]]],["select-box.cjs",[[1,"select-box",{"selectedOption":[1,"selected-option"]}]]],["ez-number-input.cjs",[[1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"errorMessage":[1537,"error-message"],"precision":[2],"prettyPrecision":[2,"pretty-precision"],"setFocus":[64],"setBlur":[64]}]]],["ez-collapsible-box.cjs",[[1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"showHide":[64]}]]],["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],"setSelection":[64],"getSelection":[64],"getList":[64]}]]],["ez-text-area.cjs",[[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"setFocus":[64],"setBlur":[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-button.cjs",[[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-calendar.cjs",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}]]],["ez-check.cjs",[[1,"ez-check",{"label":[513],"value":[1540],"enabled":[516],"mode":[513],"getMode":[64],"setFocus":[64]}]]],["ez-tabselector.cjs",[[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1]}]]],["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"],"optionLoader":[16],"suppressEmptyOption":[4,"suppress-empty-option"],"canShowError":[516,"can-show-error"],"_preSelection":[32],"_visibleOptions":[32],"setFocus":[64],"setBlur":[64]}]]],["ez-icon.cjs",[[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]]],["ez-form.cjs",[[0,"ez-form",{"dataUnit":[1040],"config":[16],"submit":[64],"cancel":[64],"validate":[64]}]]],["test-du.cjs",[[0,"test-du"]]]], options);
17
+ return index.bootstrapLazy([["ez-grid.cjs",[[6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"pageSize":[2,"page-size"],"serverUrl":[1,"server-url"],"dataUnit":[16],"_navigationHasPrevious":[32],"_navigationHasNext":[32],"_navigationFirstRow":[32],"_navigationLastRow":[32],"_navigationTotalRows":[32],"_popUpVisible":[32],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64]}]]],["ez-dialog.cjs",[[1,"ez-dialog",{"confirm":[1028],"critical":[1028],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"handleButtonClick":[64],"show":[64]}]]],["ez-action-chip.cjs",[[1,"ez-action-chip",{"label":[513],"enabled":[516]}]]],["ez-application.cjs",[[0,"ez-application"]]],["ez-label-chip.cjs",[[1,"ez-label-chip",{"label":[513],"enabled":[516],"removable":[516],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-popover.cjs",[[1,"ez-popover",{"autoClose":[516,"auto-close"],"top":[1537],"left":[1537],"bottom":[1537],"right":[1537],"boxWidth":[513,"box-width"],"opened":[1540],"updatePosition":[64],"show":[64],"hide":[64]}]]],["ez-popup.cjs",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"ezTitle":[1,"ez-title"]}]]],["ez-toast.cjs",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"canClose":[1028,"can-close"],"show":[64]}]]],["grid-config.cjs",[[2,"grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040]}]]],["ez-modal.cjs",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]],["ez-text-input.cjs",[[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"mask":[1],"canShowError":[516,"can-show-error"],"restrict":[1],"setFocus":[64],"setBlur":[64]}]]],["ez-date-input.cjs",[[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"setFocus":[64],"setBlur":[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"],"setFocus":[64],"setBlur":[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"],"setFocus":[64],"setBlur":[64]}]]],["ez-time-input.cjs",[[1,"ez-time-input",{"label":[513],"viewValue":[1537,"view-value"],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"setFocus":[64],"setBlur":[64]}]]],["select-box.cjs",[[1,"select-box",{"selectedOption":[1,"selected-option"]}]]],["ez-number-input.cjs",[[1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"errorMessage":[1537,"error-message"],"precision":[2],"prettyPrecision":[2,"pretty-precision"],"setFocus":[64],"setBlur":[64]}]]],["ez-collapsible-box.cjs",[[1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"showHide":[64]}]]],["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],"setSelection":[64],"getSelection":[64],"getList":[64]}]]],["ez-text-area.cjs",[[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"setFocus":[64],"setBlur":[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-button.cjs",[[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-calendar.cjs",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}]]],["ez-check.cjs",[[1,"ez-check",{"label":[513],"value":[1540],"enabled":[516],"mode":[513],"getMode":[64],"setFocus":[64]}]]],["ez-tabselector.cjs",[[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1]}]]],["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"],"optionLoader":[16],"suppressEmptyOption":[4,"suppress-empty-option"],"canShowError":[516,"can-show-error"],"_preSelection":[32],"_visibleOptions":[32],"setFocus":[64],"setBlur":[64]}]]],["ez-icon.cjs",[[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]]],["ez-form.cjs",[[0,"ez-form",{"dataUnit":[1040],"config":[16],"submit":[64],"cancel":[64],"validate":[64]}]]],["test-du.cjs",[[0,"test-du"]]]], options);
18
18
  });
19
19
  };
20
20
 
@@ -151,8 +151,13 @@ export class EzComboBox {
151
151
  this.updateVisibleOptions();
152
152
  }
153
153
  else {
154
- this._source = source;
155
- this.updateVisibleOptions();
154
+ if (Array.isArray(source)) {
155
+ this._source = source;
156
+ this.updateVisibleOptions();
157
+ }
158
+ else {
159
+ this.value = source;
160
+ }
156
161
  }
157
162
  }
158
163
  loadOptions(mode, argument = "") {
@@ -1,5 +1,5 @@
1
1
  import { h } from "@stencil/core";
2
- export const buildComboBox = ({ name, label, readOnly }, properties) => {
2
+ export const buildComboBox = ({ name, label, readOnly, required }, properties) => {
3
3
  const prop = properties === null || properties === void 0 ? void 0 : properties.options;
4
4
  let options;
5
5
  if (typeof prop === "string") {
@@ -10,5 +10,5 @@ export const buildComboBox = ({ name, label, readOnly }, properties) => {
10
10
  options = prop;
11
11
  }
12
12
  return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
13
- h("ez-combo-box", { enabled: !readOnly, label: label, "data-field-name": name, key: name, options: options })));
13
+ h("ez-combo-box", { enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, key: name, options: options })));
14
14
  };
@@ -1,5 +1,5 @@
1
1
  import { h } from "@stencil/core";
2
- export const buildSearch = ({ name, label, readOnly }) => {
2
+ export const buildSearch = ({ name, label, readOnly, required }) => {
3
3
  return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
4
- h("ez-search", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
4
+ h("ez-search", { enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, key: name })));
5
5
  };
@@ -11,12 +11,25 @@ export default class DataUnitBridge {
11
11
  this._gridController.setColumnsDef(this.buildColumnDefs(), true);
12
12
  break;
13
13
  case Action.RECORDS_REMOVED:
14
- case Action.EDITION_CANCELED:
14
+ const { records } = action.payload;
15
+ this._gridController.removeRows(records);
16
+ break;
15
17
  case Action.RECORDS_ADDED:
16
18
  case Action.RECORDS_COPIED:
19
+ this._gridController.addRows(action.payload);
20
+ break;
21
+ case Action.EDITION_CANCELED:
17
22
  case Action.DATA_SAVED:
18
23
  this._gridController.refresh();
19
24
  break;
25
+ case Action.SELECTION_CHANGED:
26
+ const { selection } = action.payload;
27
+ this._gridController.selectRows(selection);
28
+ break;
29
+ case Action.DATA_CHANGED:
30
+ const changes = Object.assign({}, action.payload);
31
+ delete changes.records;
32
+ this._gridController.changeValues(changes, action.payload.records);
20
33
  }
21
34
  }
22
35
  buildColumnDefs() {
@@ -8,11 +8,14 @@ import { SortMode, UserInterface } from "@sankhyalabs/core/dist/dataunit/metadat
8
8
  export default class AgGridController {
9
9
  constructor(enterprise) {
10
10
  this._menuItems = [];
11
+ this._idAttribName = "__record__id__";
11
12
  this._enterprise = enterprise;
12
13
  }
13
14
  getSort() {
14
15
  const sortedColumns = [];
15
- this._gridOptions.api.getSortModel().forEach(({ colId, sort }) => {
16
+ this._gridOptions.columnApi.getColumnState()
17
+ .sort((colA, colB) => colA.sortIndex - colB.sortIndex)
18
+ .forEach(({ colId, sort }) => {
16
19
  if (sort) {
17
20
  const field = this._dataUnit.getField(colId);
18
21
  const mode = sort === "asc" ? SortMode.ASC : SortMode.DESC;
@@ -37,10 +40,9 @@ export default class AgGridController {
37
40
  this._gridOptions = {
38
41
  localeText: gridTerms,
39
42
  rowModelType: "serverSide",
40
- serverSideStoreType: "partial",
41
43
  rowSelection: this._multipleSelection ? "multiple" : "single",
42
44
  serverSideDatasource: new DataSource(this._dataUnit, this._serverURL),
43
- getRowNodeId: (params) => params.__record__id__,
45
+ getRowNodeId: (params) => typeof params === "string" ? params : params[this._idAttribName],
44
46
  getMainMenuItems: (params) => {
45
47
  const column = params.column;
46
48
  const items = [column.isPinned() ? "clearPinned" : "pinLeft", "separator"];
@@ -50,14 +52,9 @@ export default class AgGridController {
50
52
  }));
51
53
  return items;
52
54
  },
53
- onViewportChanged: (evt) => {
54
- if (this._gridOptions && this._gridOptions.api && evt && evt.api) {
55
- if (this._dataUnit.getSelection()) {
56
- this._dataUnit.getSelection().forEach(id => {
57
- let node = evt.api.getRowNode(id);
58
- node.setSelected(true);
59
- });
60
- }
55
+ onViewportChanged: () => {
56
+ if (this._dataUnit) {
57
+ this.selectRows(this._dataUnit.getSelection());
61
58
  }
62
59
  }
63
60
  };
@@ -98,6 +95,58 @@ export default class AgGridController {
98
95
  }
99
96
  this._gridOptions.api.setRowData(data);
100
97
  }
98
+ addRows(rows) {
99
+ if (this._grid === undefined) {
100
+ throw new Error("Erro interno: Grid ainda não inicializado.");
101
+ }
102
+ this._gridOptions.api.applyServerSideTransaction({ add: rows });
103
+ }
104
+ selectRows(rowIds) {
105
+ if (this._grid === undefined) {
106
+ throw new Error("Erro interno: Grid ainda não inicializado.");
107
+ }
108
+ if (rowIds && rowIds.length > 0) {
109
+ rowIds.forEach(rowId => {
110
+ const row = this._gridOptions.api.getRowNode(rowId);
111
+ if (row) {
112
+ row.setSelected(true);
113
+ }
114
+ });
115
+ }
116
+ }
117
+ removeRows(rowIds) {
118
+ if (this._grid === undefined) {
119
+ throw new Error("Erro interno: Grid ainda não inicializado.");
120
+ }
121
+ this._gridOptions.api.applyServerSideTransaction({ remove: rowIds });
122
+ }
123
+ changeValues(changes, rowIds) {
124
+ if (this._grid === undefined) {
125
+ throw new Error("Erro interno: Grid ainda não inicializado.");
126
+ }
127
+ if (changes) {
128
+ let rowNodes;
129
+ if (rowIds) {
130
+ rowNodes = [];
131
+ rowIds.forEach(id => {
132
+ const rowNode = this._gridOptions.api.getRowNode(id);
133
+ if (rowNode) {
134
+ rowNodes.push(rowNode);
135
+ }
136
+ });
137
+ }
138
+ else {
139
+ rowNodes = this._gridOptions.api.getSelectedNodes();
140
+ }
141
+ rowNodes.forEach(r => {
142
+ const data = r.data;
143
+ Object.entries(changes).forEach(([field, value]) => {
144
+ data[field] = value;
145
+ });
146
+ r.setData(data);
147
+ });
148
+ }
149
+ }
101
150
  refresh() {
102
151
  if (this._grid === undefined) {
103
152
  throw new Error("Erro interno: Grid ainda não inicializado.");
@@ -14,6 +14,10 @@ export class EzSearch {
14
14
  * Ajusta a opção de mostrar o "value" para cada opção.
15
15
  */
16
16
  this.showOptionValue = true;
17
+ /**
18
+ * Remove a opção vazia da lista de opções
19
+ */
20
+ this.suppressEmptyOption = false;
17
21
  }
18
22
  updateValue() {
19
23
  if (this._comboElement) {
@@ -41,7 +45,7 @@ export class EzSearch {
41
45
  CSSVarsUtils.applyVarsTextInput(this._elem, this._comboElement);
42
46
  }
43
47
  render() {
44
- return (h("ez-combo-box", { ref: elem => this._comboElement = elem, value: this.value, label: this.label, enabled: this.enabled, errorMessage: this.errorMessage, optionLoader: this.optionLoader, searchMode: true, onEzChange: evt => this.onComboChange(evt), showSelectedValue: this.showSelectedValue, showOptionValue: this.showOptionValue }));
48
+ return (h("ez-combo-box", { ref: elem => this._comboElement = elem, value: this.value, label: this.label, enabled: this.enabled, errorMessage: this.errorMessage, optionLoader: this.optionLoader, searchMode: true, onEzChange: evt => this.onComboChange(evt), showSelectedValue: this.showSelectedValue, showOptionValue: this.showOptionValue, suppressEmptyOption: this.suppressEmptyOption }));
45
49
  }
46
50
  ;
47
51
  static get is() { return "ez-search"; }
@@ -57,7 +61,7 @@ export class EzSearch {
57
61
  "type": "string",
58
62
  "mutable": true,
59
63
  "complexType": {
60
- "original": "Option|string",
64
+ "original": "Option | string",
61
65
  "resolved": "Option | string",
62
66
  "references": {
63
67
  "Option": {
@@ -181,6 +185,24 @@ export class EzSearch {
181
185
  "attribute": "show-option-value",
182
186
  "reflect": false,
183
187
  "defaultValue": "true"
188
+ },
189
+ "suppressEmptyOption": {
190
+ "type": "boolean",
191
+ "mutable": false,
192
+ "complexType": {
193
+ "original": "boolean",
194
+ "resolved": "boolean",
195
+ "references": {}
196
+ },
197
+ "required": false,
198
+ "optional": false,
199
+ "docs": {
200
+ "tags": [],
201
+ "text": "Remove a op\u00E7\u00E3o vazia da lista de op\u00E7\u00F5es"
202
+ },
203
+ "attribute": "suppress-empty-option",
204
+ "reflect": false,
205
+ "defaultValue": "false"
184
206
  }
185
207
  }; }
186
208
  static get events() { return [{
@@ -37,7 +37,7 @@
37
37
  font-size: 14px;
38
38
  width: 90%;
39
39
  overflow: hidden;
40
- word-break: break-all;
40
+ hyphens: auto;
41
41
  height: auto;
42
42
  -webkit-box-orient: vertical;
43
43
  -webkit-line-clamp: 4;
@@ -1,6 +1,7 @@
1
1
  import { Component, h, Prop, Method } from '@stencil/core';
2
2
  export class EzToast {
3
3
  constructor() {
4
+ this._lang = "pt"; // Controla qual idioma será usado para definir a regras de hifenização.
4
5
  /**
5
6
  * Controla o tempo de exibição do componente em milissegundos.
6
7
  */
@@ -29,7 +30,7 @@ export class EzToast {
29
30
  return (h("div", { ref: (el) => this.container = el, class: "toast__container" },
30
31
  this.useIcon &&
31
32
  h("slot", { name: "icon" }),
32
- h("div", { class: this.useIcon ? "message__container message__conteiner--icon" : "message__container", title: this.message, innerHTML: this.message }),
33
+ h("div", { lang: this._lang, class: this.useIcon ? "message__container message__conteiner--icon" : "message__container", title: this.message, innerHTML: this.message }),
33
34
  this.canClose &&
34
35
  h("button", { class: "btn-close", onClick: () => { this.container.classList.remove("toast__container--oppened"); this.container.style.animation = `none`; } })));
35
36
  }