@sankhyalabs/ezui 5.22.0-dev.28 → 5.22.0-dev.29

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 (35) hide show
  1. package/dist/cjs/ez-combo-box.cjs.entry.js +8 -0
  2. package/dist/cjs/ez-grid.cjs.entry.js +123 -59
  3. package/dist/cjs/ez-search.cjs.entry.js +20 -0
  4. package/dist/cjs/ezui.cjs.js +1 -1
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/collection/components/ez-combo-box/ez-combo-box.js +26 -0
  7. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +64 -34
  8. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +24 -8
  9. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +32 -24
  10. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +8 -0
  11. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +1 -0
  12. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +1 -0
  13. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +1 -0
  14. package/dist/collection/components/ez-search/ez-search.js +38 -0
  15. package/dist/custom-elements/index.js +153 -61
  16. package/dist/esm/ez-combo-box.entry.js +8 -0
  17. package/dist/esm/ez-grid.entry.js +123 -59
  18. package/dist/esm/ez-search.entry.js +20 -0
  19. package/dist/esm/ezui.js +1 -1
  20. package/dist/esm/loader.js +1 -1
  21. package/dist/ezui/ezui.esm.js +1 -1
  22. package/dist/ezui/p-67e87fcf.entry.js +1 -0
  23. package/dist/ezui/{p-4a8dd771.entry.js → p-d61615c4.entry.js} +1 -1
  24. package/dist/ezui/p-e530d7e9.entry.js +1 -0
  25. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +5 -0
  26. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +15 -3
  27. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +9 -2
  28. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +3 -0
  29. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +11 -8
  30. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +1 -0
  31. package/dist/types/components/ez-search/ez-search.d.ts +7 -0
  32. package/dist/types/components.d.ts +16 -0
  33. package/package.json +1 -1
  34. package/dist/ezui/p-4c799a1b.entry.js +0 -1
  35. package/dist/ezui/p-7922142b.entry.js +0 -1
@@ -38,6 +38,7 @@ const EzComboBox = class {
38
38
  this.suppressSearch = false;
39
39
  this.optionLoader = undefined;
40
40
  this.suppressEmptyOption = false;
41
+ this.stopPropagateEnterKeyEvent = false;
41
42
  this.canShowError = true;
42
43
  this.mode = "regular";
43
44
  this.hideErrorOnFocusOut = true;
@@ -500,6 +501,7 @@ const EzComboBox = class {
500
501
  event.stopPropagation();
501
502
  break;
502
503
  case "Enter":
504
+ this.handleEventPropagation(event);
503
505
  this.selectCurrentOption();
504
506
  break;
505
507
  case "Escape":
@@ -515,6 +517,12 @@ const EzComboBox = class {
515
517
  //e o contexto pode reagir (fechar um popup por exemplo).
516
518
  //event.stopPropagation();
517
519
  }
520
+ //O evento deve ter sua propagação interrompida, apenas se a lista de opções estiver sendo exibida.
521
+ handleEventPropagation(event) {
522
+ if (this._listContainer.hasChildNodes() && this.stopPropagateEnterKeyEvent) {
523
+ event.stopPropagation();
524
+ }
525
+ }
518
526
  onTextInputFocusOutHandler() {
519
527
  if (this.hideErrorOnFocusOut)
520
528
  this.cancelPreselection();
@@ -118853,6 +118853,17 @@ class DataSourceInterceptor {
118853
118853
  }
118854
118854
 
118855
118855
  class DataSource {
118856
+ handleDataSaved(action) {
118857
+ this._controller.clearInvalidCells();
118858
+ this.handleRefreshOrReload(action);
118859
+ this._controller.processContinuousInsert();
118860
+ }
118861
+ handleEditionCanceled(action) {
118862
+ if (this._options.enableGridInsert) {
118863
+ this._controller.processEditionCanceled();
118864
+ }
118865
+ this.handleRefreshOrReload(action);
118866
+ }
118856
118867
  handleSavingCanceled(action) {
118857
118868
  var _a, _b, _c, _d;
118858
118869
  if (!((_a = action.payload) === null || _a === void 0 ? void 0 : _a.fields) || !((_b = action.payload) === null || _b === void 0 ? void 0 : _b.recordId))
@@ -118860,12 +118871,17 @@ class DataSource {
118860
118871
  this._controller.savingCanceled((_c = action.payload) === null || _c === void 0 ? void 0 : _c.fields, (_d = action.payload) === null || _d === void 0 ? void 0 : _d.recordId);
118861
118872
  }
118862
118873
  handleDataChanged(action) {
118863
- var _a, _b;
118864
118874
  if (!this._options.enableGridInsert) {
118865
118875
  this.handleRefresh(action);
118866
118876
  return;
118867
118877
  }
118868
- this.updateGridRowNodes((_b = (_a = action.payload) === null || _a === void 0 ? void 0 : _a.records) !== null && _b !== void 0 ? _b : []);
118878
+ this.updateGridRowNodes(this.createRecordIdList(action));
118879
+ }
118880
+ createRecordIdList(action) {
118881
+ var _a, _b;
118882
+ if ((_a = action.payload) === null || _a === void 0 ? void 0 : _a.records)
118883
+ return (_b = action.payload) === null || _b === void 0 ? void 0 : _b.records;
118884
+ return this._dataUnit.getSelectedRecord() ? [this._dataUnit.getSelectedRecord().__record__id__] : [];
118869
118885
  }
118870
118886
  /**
118871
118887
  * Nesse ponto, o registro já se encontra atualizado no DU,
@@ -118915,10 +118931,8 @@ class DataSource {
118915
118931
  * e callbacks implementados no AgGridController e GridEditionManager.
118916
118932
  */
118917
118933
  setTimeout(() => {
118918
- var _a;
118919
- const newRowIndex = ((_a = this._dataUnit.records) === null || _a === void 0 ? void 0 : _a.length) - 1;
118920
- this._controller.startEditionOnRowByIndex(newRowIndex);
118921
- }, 500);
118934
+ this._controller.startEditionOnLastRow();
118935
+ }, 1000);
118922
118936
  }
118923
118937
  updateLoadedRecords(action) {
118924
118938
  const records = action.payload;
@@ -118972,12 +118986,14 @@ class DataSource {
118972
118986
  }
118973
118987
  break;
118974
118988
  case core.Action.RECORDS_ADDED:
118989
+ case core.Action.RECORDS_COPIED:
118975
118990
  this.handleRecordsAdded();
118976
118991
  break;
118977
118992
  case core.Action.DATA_SAVED:
118993
+ this.handleDataSaved(action);
118994
+ break;
118978
118995
  case core.Action.EDITION_CANCELED:
118979
- this._controller.clearInvalidCells(action.type);
118980
- this.handleRefreshOrReload(action);
118996
+ this.handleEditionCanceled(action);
118981
118997
  break;
118982
118998
  case core.Action.DATA_CHANGED:
118983
118999
  case core.Action.DATA_RESOLVED:
@@ -119454,6 +119470,7 @@ const buildComboBox = ({ required, props, eGridCell }) => {
119454
119470
  mode="slim"
119455
119471
  />`);
119456
119472
  combo.options = options;
119473
+ combo.stopPropagateEnterKeyEvent = true;
119457
119474
  combo.listOptionsPosition = { verticalPosition: 29, bottomLimit: getViewPortHeight(eGridCell), hardPosition: true };
119458
119475
  return combo;
119459
119476
  };
@@ -119486,6 +119503,7 @@ const buildSearch = ({ name, required, readOnly, eGridCell, dataUnit }) => {
119486
119503
  ezSearch.ensureClearButtonVisible = true;
119487
119504
  ezSearch.suppressPreLoad = true;
119488
119505
  ezSearch.listOptionsPosition = { verticalPosition: 29, bottomLimit: getViewPortHeight(eGridCell), hardPosition: true };
119506
+ ezSearch.stopPropagateEnterKeyEvent = true;
119489
119507
  ezSearch.valueGetter = () => ezSearch.getValueAsync();
119490
119508
  return ezSearch;
119491
119509
  };
@@ -119529,6 +119547,14 @@ class EzCellEditor {
119529
119547
  getValue() {
119530
119548
  return this._gui.valueGetter != undefined ? this._gui.valueGetter() : this._gui.value;
119531
119549
  }
119550
+ setGuiValue(value) {
119551
+ if (this._gui.valueSetter != undefined) {
119552
+ this._gui.valueSetter(value);
119553
+ }
119554
+ else {
119555
+ this._gui.value = value;
119556
+ }
119557
+ }
119532
119558
  isPopup() {
119533
119559
  return this._gui.isPopUp;
119534
119560
  }
@@ -119683,7 +119709,7 @@ class EzGridCustomCellRender extends EzCellRender {
119683
119709
  }
119684
119710
 
119685
119711
  class GridEditionManager {
119686
- constructor(dataUnit, useEnterLikeTab, recordsValidator, editionIsDisabled, customEditors, customRenders, enableContinuousInsert) {
119712
+ constructor(dataUnit, useEnterLikeTab, recordsValidator, editionIsDisabled, customEditors, customRenders, enableContinuousInsert, enableGridInsert) {
119687
119713
  this._dataUnit = dataUnit;
119688
119714
  this._recordValidationProcessor = new RecordValidationProcessor.RecordValidationProcessor(this._dataUnit, {
119689
119715
  getRequiredFields: () => this.getRequiredFields(),
@@ -119693,6 +119719,7 @@ class GridEditionManager {
119693
119719
  this._useEnterLikeTab = useEnterLikeTab;
119694
119720
  this._editionIsDisabled = editionIsDisabled;
119695
119721
  this._enableContinuousInsert = enableContinuousInsert;
119722
+ this._enableGridInsert = enableGridInsert;
119696
119723
  this._customEditors = customEditors;
119697
119724
  this._customRenders = customRenders;
119698
119725
  }
@@ -119707,6 +119734,16 @@ class GridEditionManager {
119707
119734
  };
119708
119735
  return options;
119709
119736
  }
119737
+ updateCurrentEditorGuiValue(updatedRowValue) {
119738
+ const editorInstances = this._gridOptions.api.getCellEditorInstances();
119739
+ if (!editorInstances || !editorInstances.length)
119740
+ return;
119741
+ const currentEditor = editorInstances[0];
119742
+ const fieldMetadata = currentEditor.getFieldMetadata();
119743
+ const fieldName = fieldMetadata.name;
119744
+ const value = updatedRowValue[fieldName];
119745
+ currentEditor.setGuiValue(value);
119746
+ }
119710
119747
  canContinuousInsert() {
119711
119748
  var _a;
119712
119749
  return this._enableContinuousInsert && (this._dataUnit.records.length - 1) === ((_a = this._lastCellEdited) === null || _a === void 0 ? void 0 : _a.rowIndex);
@@ -119716,7 +119753,7 @@ class GridEditionManager {
119716
119753
  this.saveSuccess();
119717
119754
  return;
119718
119755
  }
119719
- if (!this._isGridEdition || this._dataUnit.hasNewRecord()) {
119756
+ if (!this._isGridEdition) {
119720
119757
  return;
119721
119758
  }
119722
119759
  const currentRercord = this._dataUnit.getSelectedRecord();
@@ -119728,14 +119765,7 @@ class GridEditionManager {
119728
119765
  .validate(true)
119729
119766
  .then(() => {
119730
119767
  this._dataUnit.saveData()
119731
- .then(() => {
119732
- if (this.canContinuousInsert()) {
119733
- this._dataUnit.addRecord();
119734
- }
119735
- else {
119736
- this.saveSuccess();
119737
- }
119738
- })
119768
+ .then(() => this.saveSuccess())
119739
119769
  .catch(reason => this.saveFail(reason));
119740
119770
  })
119741
119771
  .catch(reason => this.saveFail(reason));
@@ -119833,11 +119863,12 @@ class GridEditionManager {
119833
119863
  }
119834
119864
  }
119835
119865
  focusOnCell(cell) {
119866
+ var _a;
119836
119867
  if (cell == undefined) {
119837
119868
  return;
119838
119869
  }
119839
119870
  const { rowIndex, column } = cell;
119840
- this._gridOptions.api.getDisplayedRowAtIndex(rowIndex).setSelected(true, true);
119871
+ (_a = this._gridOptions.api.getDisplayedRowAtIndex(rowIndex)) === null || _a === void 0 ? void 0 : _a.setSelected(true, true);
119841
119872
  this._gridOptions.api.clearRangeSelection();
119842
119873
  this._gridOptions.api.addCellRange({ rowStartIndex: rowIndex, rowEndIndex: rowIndex, columns: [column] });
119843
119874
  this._gridOptions.api.startEditingCell({ colKey: column.getColId(), rowIndex });
@@ -119877,9 +119908,10 @@ class GridEditionManager {
119877
119908
  }
119878
119909
  }
119879
119910
  else {
119911
+ const actualRowIndex = rowIndex;
119880
119912
  rowIndex = rowIndex + 1;
119881
119913
  if (rowIndex >= this._dataUnit.records.length) {
119882
- rowIndex = 0;
119914
+ rowIndex = !this._enableGridInsert ? 0 : actualRowIndex;
119883
119915
  }
119884
119916
  }
119885
119917
  this._targetEditionCell = new TargetEdition(rowIndex, column, true);
@@ -119948,7 +119980,7 @@ class GridEditionManager {
119948
119980
  event.node.setData(Object.assign(Object.assign({}, event.data), { [fieldName]: value }));
119949
119981
  }
119950
119982
  this._isGridEdition = true;
119951
- this._dataUnit.setFieldValue(fieldName, value, [event.data.__record__id__]);
119983
+ this._dataUnit.setFieldValue(fieldName, value, [event.data.__record__id__], { suppressCreateNewRecord: true });
119952
119984
  this._lastCellEdited = { rowIndex: event.rowIndex, column: event.column, rowPinned: undefined };
119953
119985
  }
119954
119986
  }
@@ -119964,14 +119996,16 @@ class GridEditionManager {
119964
119996
  getInvalidCell() {
119965
119997
  return this._invalidCell;
119966
119998
  }
119967
- clearInvalidCells(action) {
119999
+ processContinuousInsert() {
120000
+ if (!this.canContinuousInsert())
120001
+ return;
120002
+ this._dataUnit.addRecord();
120003
+ }
120004
+ clearInvalidCells(stopEdition) {
119968
120005
  this._invalidCell = undefined;
119969
- if (action === core.Action.EDITION_CANCELED) {
120006
+ if (stopEdition) {
119970
120007
  this._isGridEdition = false;
119971
120008
  }
119972
- else if (action === core.Action.DATA_SAVED && this.canContinuousInsert()) {
119973
- this._dataUnit.addRecord();
119974
- }
119975
120009
  }
119976
120010
  setEnableContinuousInsert(enable) {
119977
120011
  this._enableContinuousInsert = enable;
@@ -120116,7 +120150,7 @@ class AgGridController {
120116
120150
  this._doubleClickCallBack = options.onDoubleClick;
120117
120151
  this._multipleSelection = options.allowMultipleSelection;
120118
120152
  this._dataUnit = options.dataUnit;
120119
- this._editionManager = new GridEditionManager(this._dataUnit, options.useEnterLikeTab, options.recordsValidator, options.editionIsDisabled, options.customEditors || this._customEditors, options.customRenders || this._customRenders, options.enableContinuousInsert);
120153
+ this._editionManager = new GridEditionManager(this._dataUnit, options.useEnterLikeTab, options.recordsValidator, options.editionIsDisabled, options.customEditors || this._customEditors, options.customRenders || this._customRenders, options.enableContinuousInsert, options.enableGridInsert);
120120
120154
  this._statusResolver = options.statusResolver;
120121
120155
  if (this._dataUnit) {
120122
120156
  this._dataUnit.sortingProvider = this;
@@ -120394,6 +120428,7 @@ class AgGridController {
120394
120428
  updateRowData(row) {
120395
120429
  const node = this._gridOptions.api.getRowNode(row[this._idAttribName]);
120396
120430
  node.setData(Object.assign({}, row));
120431
+ this._editionManager.updateCurrentEditorGuiValue(row);
120397
120432
  this._editionManager.recordValidate();
120398
120433
  }
120399
120434
  selectAll(quietly = false) {
@@ -120555,10 +120590,20 @@ class AgGridController {
120555
120590
  }
120556
120591
  }
120557
120592
  startEditionOnRowByIndex(rowIndex) {
120593
+ this._dataUnit.setSelectionByIndex([rowIndex]);
120558
120594
  const firstCol = this.getFirstEditableColl(rowIndex);
120595
+ if (!firstCol)
120596
+ return;
120559
120597
  this.focusByCollAndRow(firstCol, rowIndex);
120560
120598
  this.startEdition(rowIndex, firstCol);
120561
120599
  }
120600
+ startEditionOnLastRow() {
120601
+ var _a;
120602
+ if (this._gridShowDom) {
120603
+ const newRowIndex = ((_a = this._dataUnit.records) === null || _a === void 0 ? void 0 : _a.length) - 1;
120604
+ this.startEditionOnRowByIndex(newRowIndex);
120605
+ }
120606
+ }
120562
120607
  startEdition(rowIndex, firstCol) {
120563
120608
  this._gridOptions.api.clearRangeSelection();
120564
120609
  this._gridOptions.api.addCellRange({ rowStartIndex: rowIndex, rowEndIndex: rowIndex, columns: [firstCol] });
@@ -120570,8 +120615,13 @@ class AgGridController {
120570
120615
  }
120571
120616
  }
120572
120617
  getFirstEditableColl(rowIndex) {
120573
- const displayedColumns = this._gridOptions.columnApi.getAllDisplayedColumns();
120574
- return displayedColumns.find(column => this.isColumnEditable(rowIndex, column));
120618
+ try {
120619
+ const displayedColumns = this._gridOptions.columnApi.getAllDisplayedColumns();
120620
+ return displayedColumns.find(column => this.isColumnEditable(rowIndex, column));
120621
+ }
120622
+ catch (e) {
120623
+ console.warn(e);
120624
+ }
120575
120625
  }
120576
120626
  isColumnEditable(rowIndex, column) {
120577
120627
  if (column.getColDef().headerName === '' || rowIndex === -1)
@@ -120907,35 +120957,40 @@ class AgGridController {
120907
120957
  return false;
120908
120958
  }
120909
120959
  onSelectionChange(event) {
120910
- if (this._selectionChangeCallback) {
120911
- clearTimeout(this._selectionChangeDeboucing);
120912
- this._selectionChangeDeboucing = window.setTimeout(() => {
120913
- this._editionManager.proceedAutoSave();
120914
- if (this._dataUnit) {
120915
- if (event.context.selectionChangeQuietly) {
120916
- const selectionInfo = this._dataUnit;
120917
- this._selectionChangeCallback({
120918
- selection: selectionInfo.records,
120919
- selectionHeaderStatus: this.getSelectionHeaderStatus(),
120920
- });
120921
- }
120922
- else {
120923
- this._dataUnit.updatePageSelection(this._gridOptions.api.getSelectedRows().map((r) => r.__record__id__)).then(selectionInfo => {
120924
- this._selectionChangeCallback({
120925
- selection: selectionInfo.records,
120926
- selectionHeaderStatus: this.getSelectionHeaderStatus(),
120927
- });
120928
- });
120929
- }
120930
- }
120931
- else {
120932
- this._selectionChangeCallback({
120933
- selection: this._gridOptions.api.getSelectedRows(),
120934
- selectionHeaderStatus: this.getSelectionHeaderStatus(),
120935
- });
120936
- }
120937
- }, 0);
120960
+ if (!this._selectionChangeCallback)
120961
+ return;
120962
+ clearTimeout(this._selectionChangeDeboucing);
120963
+ this._selectionChangeDeboucing = window.setTimeout(() => {
120964
+ this.handleExecuteProceedAutosave();
120965
+ this.processBuildSelectionChangeCallback(event);
120966
+ }, 0);
120967
+ }
120968
+ handleExecuteProceedAutosave() {
120969
+ if (this._gridShowDom) {
120970
+ this._editionManager.proceedAutoSave();
120971
+ }
120972
+ }
120973
+ processBuildSelectionChangeCallback(event) {
120974
+ if (this._dataUnit) {
120975
+ this.handleBuildSelectionChangeWithDU(event.context.selectionChangeQuietly);
120976
+ return;
120938
120977
  }
120978
+ this.buildSelectionChangeCallback(this._gridOptions.api.getSelectedRows());
120979
+ }
120980
+ handleBuildSelectionChangeWithDU(quietly) {
120981
+ if (quietly) {
120982
+ this.buildSelectionChangeCallback(this._dataUnit.records);
120983
+ return;
120984
+ }
120985
+ this._dataUnit.updatePageSelection(this._gridOptions.api.getSelectedRows()
120986
+ .map((r) => r.__record__id__))
120987
+ .then(selectionInfo => this.buildSelectionChangeCallback(selectionInfo.records));
120988
+ }
120989
+ buildSelectionChangeCallback(records) {
120990
+ this._selectionChangeCallback({
120991
+ selection: records,
120992
+ selectionHeaderStatus: this.getSelectionHeaderStatus(),
120993
+ });
120939
120994
  }
120940
120995
  onRowDoubleClick(evt) {
120941
120996
  if (this._doubleClickCallBack) {
@@ -120947,6 +121002,12 @@ class AgGridController {
120947
121002
  host[attribute] = value;
120948
121003
  }
120949
121004
  }
121005
+ processEditionCanceled() {
121006
+ this.clearInvalidCells(true);
121007
+ if (this._gridShowDom) {
121008
+ this._dataUnit.clearSelection();
121009
+ }
121010
+ }
120950
121011
  setCellEditors(customEditors) {
120951
121012
  var _a;
120952
121013
  if (!this._editionManager) {
@@ -120965,12 +121026,15 @@ class AgGridController {
120965
121026
  this._editionManager.setCellRenders(customRenders);
120966
121027
  (_a = this._gridOptions) === null || _a === void 0 ? void 0 : _a.api.redrawRows();
120967
121028
  }
120968
- clearInvalidCells(action) {
121029
+ clearInvalidCells(stopEdition) {
120969
121030
  if (!this._editionManager)
120970
121031
  return;
120971
- this._editionManager.clearInvalidCells(action);
121032
+ this._editionManager.clearInvalidCells(stopEdition);
120972
121033
  this._gridOptions.api.refreshCells({ force: true });
120973
121034
  }
121035
+ processContinuousInsert() {
121036
+ this._editionManager.processContinuousInsert();
121037
+ }
120974
121038
  destroy() {
120975
121039
  this.observer.disconnect();
120976
121040
  }
@@ -39,6 +39,7 @@ const EzSearch = class {
39
39
  this.showSelectedValue = true;
40
40
  this.showOptionValue = true;
41
41
  this.suppressEmptyOption = false;
42
+ this.stopPropagateEnterKeyEvent = false;
42
43
  this.mode = "regular";
43
44
  this.canShowError = true;
44
45
  this.hideErrorOnFocusOut = true;
@@ -213,6 +214,9 @@ const EzSearch = class {
213
214
  getText() {
214
215
  const currentValue = this.getSelectedOption(this._currentValue);
215
216
  const text = this.getFormattedText(currentValue);
217
+ return this.replaceQuotes(text);
218
+ }
219
+ replaceQuotes(text) {
216
220
  if (text == undefined) {
217
221
  return;
218
222
  }
@@ -501,6 +505,15 @@ const EzSearch = class {
501
505
  }
502
506
  this._currentValue = value ? Object.assign(Object.assign({}, value), { value: this.replaceHighlight(value.value), label: this.replaceHighlight(value.label) }) : value;
503
507
  this.value = this._currentValue;
508
+ this.setTextInputValue();
509
+ }
510
+ setTextInputValue() {
511
+ if (this._textInput && (this._textInput.value === null || this._textInput.value === undefined)) {
512
+ if (this.value === undefined || this.value === null)
513
+ return;
514
+ const textValue = (typeof this.value === 'string') ? this.value : this.getFormattedText(this.value);
515
+ this._textInput.value = this.replaceQuotes(textValue);
516
+ }
504
517
  }
505
518
  loadOptionValue(argument) {
506
519
  var _a;
@@ -649,6 +662,7 @@ const EzSearch = class {
649
662
  event.stopPropagation();
650
663
  break;
651
664
  case "Enter":
665
+ this.handleEventPropagation(event);
652
666
  this.selectCurrentOption();
653
667
  break;
654
668
  case "Escape":
@@ -665,6 +679,12 @@ const EzSearch = class {
665
679
  //e o contexto pode reagir (fechar um popup por exemplo).
666
680
  //event.stopPropagation();
667
681
  }
682
+ //O evento deve ter sua propagação interrompida, apenas se a lista de opções estiver sendo exibida.
683
+ handleEventPropagation(event) {
684
+ if (this._listContainer.hasChildNodes() && this.stopPropagateEnterKeyEvent) {
685
+ event.stopPropagation();
686
+ }
687
+ }
668
688
  onTextInputFocusOutHandler() {
669
689
  if (this.hideErrorOnFocusOut)
670
690
  this.cancelPreselection();
@@ -17,7 +17,7 @@ const patchBrowser = () => {
17
17
  };
18
18
 
19
19
  patchBrowser().then(options => {
20
- return index.bootstrapLazy(JSON.parse("[[\"ez-grid.cjs\",[[6,\"ez-grid\",{\"multipleSelection\":[4,\"multiple-selection\"],\"config\":[1040],\"selectionToastConfig\":[16],\"serverUrl\":[1,\"server-url\"],\"dataUnit\":[16],\"statusResolver\":[16],\"columnfilterDataSource\":[16],\"useEnterLikeTab\":[4,\"use-enter-like-tab\"],\"recordsValidator\":[16],\"canEdit\":[4,\"can-edit\"],\"autoFocus\":[4,\"auto-focus\"],\"paginationCounterMode\":[1,\"pagination-counter-mode\"],\"enableGridInsert\":[4,\"enable-grid-insert\"],\"enableContinuousInsert\":[4,\"enable-continuous-insert\"],\"_paginationInfo\":[32],\"_paginationChangedByKeyboard\":[32],\"_showSelectionCounter\":[32],\"_isAllSelection\":[32],\"_currentPageSelected\":[32],\"_selectionCount\":[32],\"_hasLeftButtons\":[32],\"_customFormatters\":[32],\"setColumnsDef\":[64],\"addColumnMenuItem\":[64],\"setColumnsState\":[64],\"setData\":[64],\"getSelection\":[64],\"getColumnsState\":[64],\"getColumns\":[64],\"quickFilter\":[64],\"locateColumn\":[64],\"filterColumns\":[64],\"addCustomEditor\":[64],\"addGridCustomRender\":[64],\"addCustomValueFormatter\":[64],\"removeCustomValueFormatter\":[64],\"refreshSelectedRows\":[64],\"getCustomValueFormatter\":[64],\"setFocus\":[64]},[[0,\"ezSelectionChange\",\"onSelectionChange\"]]]]],[\"ez-guide-navigator.cjs\",[[1,\"ez-guide-navigator\",{\"open\":[1540],\"selectedId\":[1537,\"selected-id\"],\"items\":[16],\"tooltipResolver\":[16],\"filterText\":[32],\"disableItem\":[64],\"openGuideNavidator\":[64],\"enableItem\":[64],\"updateItem\":[64],\"getItem\":[64],\"getCurrentPath\":[64],\"selectGuide\":[64],\"getParent\":[64]}]]],[\"ez-alert-list.cjs\",[[1,\"ez-alert-list\",{\"alerts\":[1040],\"enableDragAndDrop\":[516,\"enable-drag-and-drop\"],\"enableExpand\":[516,\"enable-expand\"],\"itemRightSlotBuilder\":[16],\"opened\":[1540],\"expanded\":[1540],\"_container\":[32]}]]],[\"ez-sidebar-navigator.cjs\",[[1,\"ez-sidebar-navigator\",{\"type\":[1],\"mode\":[1025],\"size\":[1],\"isResponsive\":[4,\"is-responsive\"],\"titleMenu\":[1,\"title-menu\"],\"showCollapseMenu\":[4,\"show-collapse-menu\"],\"showFixedButton\":[4,\"show-fixed-button\"],\"open\":[32],\"changeModeMenu\":[64],\"closeSidebar\":[64],\"openSidebar\":[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],\"showActions\":[64],\"isOpened\":[64]}]]],[\"ez-breadcrumb.cjs\",[[1,\"ez-breadcrumb\",{\"items\":[1040],\"fillMode\":[1025,\"fill-mode\"],\"maxItems\":[1026,\"max-items\"],\"positionEllipsis\":[1026,\"position-ellipsis\"],\"visibleItems\":[32],\"hiddenItems\":[32],\"showDropdown\":[32],\"collapseConfigPosition\":[32]}]]],[\"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\"],\"beforeClose\":[1040],\"show\":[64]},[[8,\"keydown\",\"handleKeyDown\"]]]]],[\"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\"],\"showCloseButton\":[4,\"show-close-button\"]},[[4,\"ezCloseModal\",\"handleEzModalAction\"]]]]],[\"ez-split-button.cjs\",[[1,\"ez-split-button\",{\"enabled\":[516],\"iconName\":[513,\"icon-name\"],\"image\":[513],\"items\":[16],\"label\":[513],\"leftTitle\":[513,\"left-title\"],\"rightTitle\":[513,\"right-title\"],\"mode\":[513],\"size\":[513],\"show\":[32],\"setBlur\":[64],\"setLeftButtonFocus\":[64],\"setRightButtonFocus\":[64]},[[2,\"click\",\"clickListener\"]]]]],[\"ez-split-item.cjs\",[[4,\"ez-split-item\",{\"label\":[1],\"enableExpand\":[516,\"enable-expand\"],\"size\":[1],\"_expanded\":[32]}]]],[\"ez-alert.cjs\",[[1,\"ez-alert\",{\"alertType\":[513,\"alert-type\"]}]]],[\"ez-badge.cjs\",[[1,\"ez-badge\",{\"size\":[513],\"label\":[513],\"iconLeft\":[513,\"icon-left\"],\"iconRight\":[513,\"icon-right\"],\"position\":[1040],\"hasSlot\":[32]}]]],[\"ez-chip.cjs\",[[1,\"ez-chip\",{\"label\":[513],\"enabled\":[516],\"removePosition\":[513,\"remove-position\"],\"mode\":[513],\"value\":[1540],\"showNativeTooltip\":[4,\"show-native-tooltip\"],\"setFocus\":[64],\"setBlur\":[64]}]]],[\"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-chart.cjs\",[[1,\"ez-chart\",{\"type\":[1],\"xAxis\":[16],\"yAxis\":[16],\"chartTitle\":[1,\"chart-title\"],\"chartSubTitle\":[1,\"chart-sub-title\"],\"legendEnabled\":[4,\"legend-enabled\"],\"series\":[16],\"width\":[2],\"height\":[2]}]]],[\"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],\"heightMode\":[1,\"height-mode\"],\"opened\":[1028],\"closeEsc\":[4,\"close-esc\"],\"closeOutsideClick\":[4,\"close-outside-click\"],\"closeOutsideLeave\":[4,\"close-outside-leave\"],\"scrim\":[1]}]]],[\"ez-popup.cjs\",[[1,\"ez-popup\",{\"size\":[1],\"opened\":[1540],\"useHeader\":[516,\"use-header\"],\"heightMode\":[513,\"height-mode\"],\"ezTitle\":[1,\"ez-title\"],\"enabledScroll\":[4,\"enabled-scroll\"]}]]],[\"ez-radio-button.cjs\",[[1,\"ez-radio-button\",{\"value\":[1544],\"options\":[1040],\"enabled\":[516],\"label\":[513],\"direction\":[1537]}]]],[\"ez-skeleton.cjs\",[[0,\"ez-skeleton\",{\"count\":[2],\"variant\":[1],\"width\":[1],\"height\":[1],\"marginBottom\":[1,\"margin-bottom\"],\"animation\":[1]}]]],[\"ez-split-panel.cjs\",[[0,\"ez-split-panel\",{\"direction\":[1],\"anchorToExpand\":[4,\"anchor-to-expand\"],\"rebuildLayout\":[64]}]]],[\"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],\"goToTab\":[64]}]]],[\"ez-tree.cjs\",[[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],\"updateItem\":[64],\"getItem\":[64],\"getCurrentPath\":[64],\"getParent\":[64]},[[2,\"keydown\",\"onKeyDownListener\"]]]]],[\"ez-multi-selection-list.cjs\",[[2,\"ez-multi-selection-list\",{\"columnName\":[1,\"column-name\"],\"dataSource\":[16],\"useOptions\":[1028,\"use-options\"],\"options\":[1040],\"isTextSearch\":[4,\"is-text-search\"],\"filteredOptions\":[32],\"displayOptions\":[32],\"viewScenario\":[32],\"displayOptionToCheckAllItems\":[32],\"clearFilteredOptions\":[64]}]]],[\"ez-collapsible-box.cjs\",[[1,\"ez-collapsible-box\",{\"value\":[1540],\"boxBordered\":[4,\"box-bordered\"],\"label\":[513],\"subtitle\":[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-combo-box.cjs\",[[1,\"ez-combo-box\",{\"limitCharsToSearch\":[2,\"limit-chars-to-search\"],\"value\":[1537],\"label\":[513],\"enabled\":[516],\"options\":[1040],\"errorMessage\":[1537,\"error-message\"],\"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],\"hideErrorOnFocusOut\":[4,\"hide-error-on-focus-out\"],\"listOptionsPosition\":[16],\"isTextSearch\":[4,\"is-text-search\"],\"_preSelection\":[32],\"_visibleOptions\":[32],\"_startLoading\":[32],\"_showLoading\":[32],\"_criteria\":[32],\"getValueAsync\":[64],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"clearValue\":[64]},[[11,\"scroll\",\"scrollListener\"]]]]],[\"ez-time-input.cjs\",[[1,\"ez-time-input\",{\"label\":[513],\"value\":[1026],\"enabled\":[516],\"errorMessage\":[1537,\"error-message\"],\"showSeconds\":[516,\"show-seconds\"],\"mode\":[513],\"canShowError\":[516,\"can-show-error\"],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64]}]]],[\"ez-number-input.cjs\",[[1,\"ez-number-input\",{\"label\":[1],\"value\":[1538],\"enabled\":[4],\"canShowError\":[516,\"can-show-error\"],\"errorMessage\":[1537,\"error-message\"],\"precision\":[2],\"prettyPrecision\":[2,\"pretty-precision\"],\"mode\":[513],\"_value\":[32],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"getValueAsync\":[64]}]]],[\"ez-popover.cjs\",[[1,\"ez-popover\",{\"autoClose\":[516,\"auto-close\"],\"boxWidth\":[513,\"box-width\"],\"opened\":[1540],\"innerElement\":[1537,\"inner-element\"],\"overlayType\":[513,\"overlay-type\"],\"updatePosition\":[64],\"show\":[64],\"showUnder\":[64],\"hide\":[64]}]]],[\"ez-list.cjs\",[[1,\"ez-list\",{\"dataSource\":[1040],\"listMode\":[1,\"list-mode\"],\"useGroups\":[1540,\"use-groups\"],\"ezDraggable\":[1028,\"ez-draggable\"],\"ezSelectable\":[1028,\"ez-selectable\"],\"itemSlotBuilder\":[1040],\"itemLeftSlotBuilder\":[1040],\"hoverFeedback\":[1028,\"hover-feedback\"],\"_listItems\":[32],\"_listGroupItems\":[32],\"clearHistory\":[64],\"scrollToTop\":[64],\"setSelection\":[64],\"getSelection\":[64],\"getList\":[64],\"removeSelection\":[64]}]]],[\"ez-calendar.cjs\",[[1,\"ez-calendar\",{\"value\":[1040],\"floating\":[516],\"time\":[516],\"showSeconds\":[516,\"show-seconds\"],\"show\":[64],\"fitVertical\":[64],\"fitHorizontal\":[64],\"hide\":[64]},[[11,\"scroll\",\"scrollListener\"]]]]],[\"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\"],\"password\":[4],\"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],\"canShowError\":[516,\"can-show-error\"],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"getValueAsync\":[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],\"canShowError\":[516,\"can-show-error\"],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"getValueAsync\":[64]}]]],[\"ez-dropdown.cjs\",[[1,\"ez-dropdown\",{\"items\":[1040],\"value\":[1040],\"itemBuilder\":[16]},[[4,\"click\",\"handleClickOutside\"]]]]],[\"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],\"enableResize\":[516,\"enable-resize\"],\"appendTextToSelection\":[64],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64]}]]],[\"ez-upload.cjs\",[[1,\"ez-upload\",{\"label\":[1],\"subtitle\":[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-card-item_3.cjs\",[[0,\"multi-selection-box-message\",{\"message\":[1]}],[1,\"ez-filter-input\",{\"label\":[1],\"value\":[1537],\"enabled\":[4],\"errorMessage\":[1537,\"error-message\"],\"restrict\":[1],\"mode\":[513],\"asyncSearch\":[516,\"async-search\"],\"canShowError\":[516,\"can-show-error\"],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"setValue\":[64],\"endSearch\":[64]}],[1,\"ez-card-item\",{\"item\":[16],\"enableKey\":[4,\"enable-key\"],\"compacted\":[4]}]]],[\"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],\"canShowError\":[516,\"can-show-error\"],\"hideErrorOnFocusOut\":[4,\"hide-error-on-focus-out\"],\"listOptionsPosition\":[16],\"isTextSearch\":[4,\"is-text-search\"],\"ignoreLimitCharsToSearch\":[4,\"ignore-limit-chars-to-search\"],\"options\":[1040],\"suppressSearch\":[4,\"suppress-search\"],\"ensureClearButtonVisible\":[4,\"ensure-clear-button-visible\"],\"suppressPreLoad\":[4,\"suppress-pre-load\"],\"_preSelection\":[32],\"_visibleOptions\":[32],\"_startLoading\":[32],\"_showLoading\":[32],\"_criteria\":[32],\"getValueAsync\":[64],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"clearValue\":[64]},[[11,\"scroll\",\"scrollListener\"]]]]],[\"ez-check.cjs\",[[1,\"ez-check\",{\"label\":[513],\"value\":[1540],\"enabled\":[1540],\"indeterminate\":[1540],\"mode\":[513],\"compact\":[4],\"getMode\":[64],\"setFocus\":[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]},[[2,\"click\",\"clickListener\"]]]]],[\"ez-custom-form-input_2.cjs\",[[2,\"ez-custom-form-input\",{\"customEditor\":[16],\"formViewField\":[16],\"value\":[1032],\"detailContext\":[1,\"detail-context\"],\"builderFallback\":[16],\"selectedRecord\":[16],\"gui\":[32],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64]}],[1,\"ez-text-edit\",{\"value\":[1],\"styled\":[16],\"_newValue\":[32],\"applyFocusSelect\":[64]}]]],[\"ez-form-view.cjs\",[[2,\"ez-form-view\",{\"fields\":[16],\"selectedRecord\":[16],\"_customEditors\":[32],\"showUp\":[64],\"addCustomEditor\":[64],\"setFieldProp\":[64]}]]],[\"ez-form.cjs\",[[2,\"ez-form\",{\"dataUnit\":[1040],\"config\":[16],\"recordsValidator\":[16],\"fieldToFocus\":[1,\"field-to-focus\"],\"onlyStaticFields\":[4,\"only-static-fields\"],\"_fieldsProps\":[32],\"validate\":[64],\"addCustomEditor\":[64],\"setFieldProp\":[64]}]]],[\"filter-column.cjs\",[[0,\"filter-column\",{\"opened\":[4],\"columnName\":[1,\"column-name\"],\"columnLabel\":[1,\"column-label\"],\"gridHeaderHidden\":[4,\"grid-header-hidden\"],\"noHeaderTaskBar\":[1028,\"no-header-task-bar\"],\"dataSource\":[16],\"dataUnit\":[16],\"options\":[1040],\"selectedItems\":[32],\"fieldDescriptor\":[32],\"useOptions\":[32],\"isTextSearch\":[32],\"hide\":[64],\"show\":[64]}]]],[\"ez-scroller_2.cjs\",[[1,\"ez-sidebar-button\"],[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\"]]]]]]"), options);
20
+ return index.bootstrapLazy(JSON.parse("[[\"ez-grid.cjs\",[[6,\"ez-grid\",{\"multipleSelection\":[4,\"multiple-selection\"],\"config\":[1040],\"selectionToastConfig\":[16],\"serverUrl\":[1,\"server-url\"],\"dataUnit\":[16],\"statusResolver\":[16],\"columnfilterDataSource\":[16],\"useEnterLikeTab\":[4,\"use-enter-like-tab\"],\"recordsValidator\":[16],\"canEdit\":[4,\"can-edit\"],\"autoFocus\":[4,\"auto-focus\"],\"paginationCounterMode\":[1,\"pagination-counter-mode\"],\"enableGridInsert\":[4,\"enable-grid-insert\"],\"enableContinuousInsert\":[4,\"enable-continuous-insert\"],\"_paginationInfo\":[32],\"_paginationChangedByKeyboard\":[32],\"_showSelectionCounter\":[32],\"_isAllSelection\":[32],\"_currentPageSelected\":[32],\"_selectionCount\":[32],\"_hasLeftButtons\":[32],\"_customFormatters\":[32],\"setColumnsDef\":[64],\"addColumnMenuItem\":[64],\"setColumnsState\":[64],\"setData\":[64],\"getSelection\":[64],\"getColumnsState\":[64],\"getColumns\":[64],\"quickFilter\":[64],\"locateColumn\":[64],\"filterColumns\":[64],\"addCustomEditor\":[64],\"addGridCustomRender\":[64],\"addCustomValueFormatter\":[64],\"removeCustomValueFormatter\":[64],\"refreshSelectedRows\":[64],\"getCustomValueFormatter\":[64],\"setFocus\":[64]},[[0,\"ezSelectionChange\",\"onSelectionChange\"]]]]],[\"ez-guide-navigator.cjs\",[[1,\"ez-guide-navigator\",{\"open\":[1540],\"selectedId\":[1537,\"selected-id\"],\"items\":[16],\"tooltipResolver\":[16],\"filterText\":[32],\"disableItem\":[64],\"openGuideNavidator\":[64],\"enableItem\":[64],\"updateItem\":[64],\"getItem\":[64],\"getCurrentPath\":[64],\"selectGuide\":[64],\"getParent\":[64]}]]],[\"ez-alert-list.cjs\",[[1,\"ez-alert-list\",{\"alerts\":[1040],\"enableDragAndDrop\":[516,\"enable-drag-and-drop\"],\"enableExpand\":[516,\"enable-expand\"],\"itemRightSlotBuilder\":[16],\"opened\":[1540],\"expanded\":[1540],\"_container\":[32]}]]],[\"ez-sidebar-navigator.cjs\",[[1,\"ez-sidebar-navigator\",{\"type\":[1],\"mode\":[1025],\"size\":[1],\"isResponsive\":[4,\"is-responsive\"],\"titleMenu\":[1,\"title-menu\"],\"showCollapseMenu\":[4,\"show-collapse-menu\"],\"showFixedButton\":[4,\"show-fixed-button\"],\"open\":[32],\"changeModeMenu\":[64],\"closeSidebar\":[64],\"openSidebar\":[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],\"showActions\":[64],\"isOpened\":[64]}]]],[\"ez-breadcrumb.cjs\",[[1,\"ez-breadcrumb\",{\"items\":[1040],\"fillMode\":[1025,\"fill-mode\"],\"maxItems\":[1026,\"max-items\"],\"positionEllipsis\":[1026,\"position-ellipsis\"],\"visibleItems\":[32],\"hiddenItems\":[32],\"showDropdown\":[32],\"collapseConfigPosition\":[32]}]]],[\"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\"],\"beforeClose\":[1040],\"show\":[64]},[[8,\"keydown\",\"handleKeyDown\"]]]]],[\"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\"],\"showCloseButton\":[4,\"show-close-button\"]},[[4,\"ezCloseModal\",\"handleEzModalAction\"]]]]],[\"ez-split-button.cjs\",[[1,\"ez-split-button\",{\"enabled\":[516],\"iconName\":[513,\"icon-name\"],\"image\":[513],\"items\":[16],\"label\":[513],\"leftTitle\":[513,\"left-title\"],\"rightTitle\":[513,\"right-title\"],\"mode\":[513],\"size\":[513],\"show\":[32],\"setBlur\":[64],\"setLeftButtonFocus\":[64],\"setRightButtonFocus\":[64]},[[2,\"click\",\"clickListener\"]]]]],[\"ez-split-item.cjs\",[[4,\"ez-split-item\",{\"label\":[1],\"enableExpand\":[516,\"enable-expand\"],\"size\":[1],\"_expanded\":[32]}]]],[\"ez-alert.cjs\",[[1,\"ez-alert\",{\"alertType\":[513,\"alert-type\"]}]]],[\"ez-badge.cjs\",[[1,\"ez-badge\",{\"size\":[513],\"label\":[513],\"iconLeft\":[513,\"icon-left\"],\"iconRight\":[513,\"icon-right\"],\"position\":[1040],\"hasSlot\":[32]}]]],[\"ez-chip.cjs\",[[1,\"ez-chip\",{\"label\":[513],\"enabled\":[516],\"removePosition\":[513,\"remove-position\"],\"mode\":[513],\"value\":[1540],\"showNativeTooltip\":[4,\"show-native-tooltip\"],\"setFocus\":[64],\"setBlur\":[64]}]]],[\"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-chart.cjs\",[[1,\"ez-chart\",{\"type\":[1],\"xAxis\":[16],\"yAxis\":[16],\"chartTitle\":[1,\"chart-title\"],\"chartSubTitle\":[1,\"chart-sub-title\"],\"legendEnabled\":[4,\"legend-enabled\"],\"series\":[16],\"width\":[2],\"height\":[2]}]]],[\"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],\"heightMode\":[1,\"height-mode\"],\"opened\":[1028],\"closeEsc\":[4,\"close-esc\"],\"closeOutsideClick\":[4,\"close-outside-click\"],\"closeOutsideLeave\":[4,\"close-outside-leave\"],\"scrim\":[1]}]]],[\"ez-popup.cjs\",[[1,\"ez-popup\",{\"size\":[1],\"opened\":[1540],\"useHeader\":[516,\"use-header\"],\"heightMode\":[513,\"height-mode\"],\"ezTitle\":[1,\"ez-title\"],\"enabledScroll\":[4,\"enabled-scroll\"]}]]],[\"ez-radio-button.cjs\",[[1,\"ez-radio-button\",{\"value\":[1544],\"options\":[1040],\"enabled\":[516],\"label\":[513],\"direction\":[1537]}]]],[\"ez-skeleton.cjs\",[[0,\"ez-skeleton\",{\"count\":[2],\"variant\":[1],\"width\":[1],\"height\":[1],\"marginBottom\":[1,\"margin-bottom\"],\"animation\":[1]}]]],[\"ez-split-panel.cjs\",[[0,\"ez-split-panel\",{\"direction\":[1],\"anchorToExpand\":[4,\"anchor-to-expand\"],\"rebuildLayout\":[64]}]]],[\"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],\"goToTab\":[64]}]]],[\"ez-tree.cjs\",[[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],\"updateItem\":[64],\"getItem\":[64],\"getCurrentPath\":[64],\"getParent\":[64]},[[2,\"keydown\",\"onKeyDownListener\"]]]]],[\"ez-multi-selection-list.cjs\",[[2,\"ez-multi-selection-list\",{\"columnName\":[1,\"column-name\"],\"dataSource\":[16],\"useOptions\":[1028,\"use-options\"],\"options\":[1040],\"isTextSearch\":[4,\"is-text-search\"],\"filteredOptions\":[32],\"displayOptions\":[32],\"viewScenario\":[32],\"displayOptionToCheckAllItems\":[32],\"clearFilteredOptions\":[64]}]]],[\"ez-collapsible-box.cjs\",[[1,\"ez-collapsible-box\",{\"value\":[1540],\"boxBordered\":[4,\"box-bordered\"],\"label\":[513],\"subtitle\":[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-combo-box.cjs\",[[1,\"ez-combo-box\",{\"limitCharsToSearch\":[2,\"limit-chars-to-search\"],\"value\":[1537],\"label\":[513],\"enabled\":[516],\"options\":[1040],\"errorMessage\":[1537,\"error-message\"],\"showSelectedValue\":[4,\"show-selected-value\"],\"showOptionValue\":[4,\"show-option-value\"],\"suppressSearch\":[4,\"suppress-search\"],\"optionLoader\":[16],\"suppressEmptyOption\":[4,\"suppress-empty-option\"],\"stopPropagateEnterKeyEvent\":[4,\"stop-propagate-enter-key-event\"],\"canShowError\":[516,\"can-show-error\"],\"mode\":[513],\"hideErrorOnFocusOut\":[4,\"hide-error-on-focus-out\"],\"listOptionsPosition\":[16],\"isTextSearch\":[4,\"is-text-search\"],\"_preSelection\":[32],\"_visibleOptions\":[32],\"_startLoading\":[32],\"_showLoading\":[32],\"_criteria\":[32],\"getValueAsync\":[64],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"clearValue\":[64]},[[11,\"scroll\",\"scrollListener\"]]]]],[\"ez-time-input.cjs\",[[1,\"ez-time-input\",{\"label\":[513],\"value\":[1026],\"enabled\":[516],\"errorMessage\":[1537,\"error-message\"],\"showSeconds\":[516,\"show-seconds\"],\"mode\":[513],\"canShowError\":[516,\"can-show-error\"],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64]}]]],[\"ez-number-input.cjs\",[[1,\"ez-number-input\",{\"label\":[1],\"value\":[1538],\"enabled\":[4],\"canShowError\":[516,\"can-show-error\"],\"errorMessage\":[1537,\"error-message\"],\"precision\":[2],\"prettyPrecision\":[2,\"pretty-precision\"],\"mode\":[513],\"_value\":[32],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"getValueAsync\":[64]}]]],[\"ez-popover.cjs\",[[1,\"ez-popover\",{\"autoClose\":[516,\"auto-close\"],\"boxWidth\":[513,\"box-width\"],\"opened\":[1540],\"innerElement\":[1537,\"inner-element\"],\"overlayType\":[513,\"overlay-type\"],\"updatePosition\":[64],\"show\":[64],\"showUnder\":[64],\"hide\":[64]}]]],[\"ez-list.cjs\",[[1,\"ez-list\",{\"dataSource\":[1040],\"listMode\":[1,\"list-mode\"],\"useGroups\":[1540,\"use-groups\"],\"ezDraggable\":[1028,\"ez-draggable\"],\"ezSelectable\":[1028,\"ez-selectable\"],\"itemSlotBuilder\":[1040],\"itemLeftSlotBuilder\":[1040],\"hoverFeedback\":[1028,\"hover-feedback\"],\"_listItems\":[32],\"_listGroupItems\":[32],\"clearHistory\":[64],\"scrollToTop\":[64],\"setSelection\":[64],\"getSelection\":[64],\"getList\":[64],\"removeSelection\":[64]}]]],[\"ez-calendar.cjs\",[[1,\"ez-calendar\",{\"value\":[1040],\"floating\":[516],\"time\":[516],\"showSeconds\":[516,\"show-seconds\"],\"show\":[64],\"fitVertical\":[64],\"fitHorizontal\":[64],\"hide\":[64]},[[11,\"scroll\",\"scrollListener\"]]]]],[\"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\"],\"password\":[4],\"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],\"canShowError\":[516,\"can-show-error\"],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"getValueAsync\":[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],\"canShowError\":[516,\"can-show-error\"],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"getValueAsync\":[64]}]]],[\"ez-dropdown.cjs\",[[1,\"ez-dropdown\",{\"items\":[1040],\"value\":[1040],\"itemBuilder\":[16]},[[4,\"click\",\"handleClickOutside\"]]]]],[\"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],\"enableResize\":[516,\"enable-resize\"],\"appendTextToSelection\":[64],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64]}]]],[\"ez-upload.cjs\",[[1,\"ez-upload\",{\"label\":[1],\"subtitle\":[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-card-item_3.cjs\",[[0,\"multi-selection-box-message\",{\"message\":[1]}],[1,\"ez-filter-input\",{\"label\":[1],\"value\":[1537],\"enabled\":[4],\"errorMessage\":[1537,\"error-message\"],\"restrict\":[1],\"mode\":[513],\"asyncSearch\":[516,\"async-search\"],\"canShowError\":[516,\"can-show-error\"],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"setValue\":[64],\"endSearch\":[64]}],[1,\"ez-card-item\",{\"item\":[16],\"enableKey\":[4,\"enable-key\"],\"compacted\":[4]}]]],[\"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\"],\"stopPropagateEnterKeyEvent\":[4,\"stop-propagate-enter-key-event\"],\"mode\":[513],\"canShowError\":[516,\"can-show-error\"],\"hideErrorOnFocusOut\":[4,\"hide-error-on-focus-out\"],\"listOptionsPosition\":[16],\"isTextSearch\":[4,\"is-text-search\"],\"ignoreLimitCharsToSearch\":[4,\"ignore-limit-chars-to-search\"],\"options\":[1040],\"suppressSearch\":[4,\"suppress-search\"],\"ensureClearButtonVisible\":[4,\"ensure-clear-button-visible\"],\"suppressPreLoad\":[4,\"suppress-pre-load\"],\"_preSelection\":[32],\"_visibleOptions\":[32],\"_startLoading\":[32],\"_showLoading\":[32],\"_criteria\":[32],\"getValueAsync\":[64],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"clearValue\":[64]},[[11,\"scroll\",\"scrollListener\"]]]]],[\"ez-check.cjs\",[[1,\"ez-check\",{\"label\":[513],\"value\":[1540],\"enabled\":[1540],\"indeterminate\":[1540],\"mode\":[513],\"compact\":[4],\"getMode\":[64],\"setFocus\":[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]},[[2,\"click\",\"clickListener\"]]]]],[\"ez-custom-form-input_2.cjs\",[[2,\"ez-custom-form-input\",{\"customEditor\":[16],\"formViewField\":[16],\"value\":[1032],\"detailContext\":[1,\"detail-context\"],\"builderFallback\":[16],\"selectedRecord\":[16],\"gui\":[32],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64]}],[1,\"ez-text-edit\",{\"value\":[1],\"styled\":[16],\"_newValue\":[32],\"applyFocusSelect\":[64]}]]],[\"ez-form-view.cjs\",[[2,\"ez-form-view\",{\"fields\":[16],\"selectedRecord\":[16],\"_customEditors\":[32],\"showUp\":[64],\"addCustomEditor\":[64],\"setFieldProp\":[64]}]]],[\"ez-form.cjs\",[[2,\"ez-form\",{\"dataUnit\":[1040],\"config\":[16],\"recordsValidator\":[16],\"fieldToFocus\":[1,\"field-to-focus\"],\"onlyStaticFields\":[4,\"only-static-fields\"],\"_fieldsProps\":[32],\"validate\":[64],\"addCustomEditor\":[64],\"setFieldProp\":[64]}]]],[\"filter-column.cjs\",[[0,\"filter-column\",{\"opened\":[4],\"columnName\":[1,\"column-name\"],\"columnLabel\":[1,\"column-label\"],\"gridHeaderHidden\":[4,\"grid-header-hidden\"],\"noHeaderTaskBar\":[1028,\"no-header-task-bar\"],\"dataSource\":[16],\"dataUnit\":[16],\"options\":[1040],\"selectedItems\":[32],\"fieldDescriptor\":[32],\"useOptions\":[32],\"isTextSearch\":[32],\"hide\":[64],\"show\":[64]}]]],[\"ez-scroller_2.cjs\",[[1,\"ez-sidebar-button\"],[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\"]]]]]]"), options);
21
21
  });
22
22
 
23
23
  exports.setNonce = index.setNonce;