@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-72892.1 → 0.0.0-bugfix-dev-KB-72911.0

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 (44) hide show
  1. package/dist/cjs/ez-combo-box.cjs.entry.js +19 -2
  2. package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +3 -1
  3. package/dist/cjs/ez-date-input.cjs.entry.js +3 -0
  4. package/dist/cjs/ez-grid.cjs.entry.js +125 -60
  5. package/dist/cjs/ez-search.cjs.entry.js +20 -0
  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 +37 -2
  9. package/dist/collection/components/ez-date-input/ez-date-input.js +3 -0
  10. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +3 -1
  11. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +64 -34
  12. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +24 -8
  13. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +32 -24
  14. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +8 -0
  15. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +1 -0
  16. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +1 -0
  17. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +1 -0
  18. package/dist/collection/components/ez-grid/ez-grid.js +2 -1
  19. package/dist/collection/components/ez-search/ez-search.js +38 -0
  20. package/dist/custom-elements/index.js +172 -65
  21. package/dist/esm/ez-combo-box.entry.js +19 -2
  22. package/dist/esm/ez-custom-form-input_2.entry.js +3 -1
  23. package/dist/esm/ez-date-input.entry.js +3 -0
  24. package/dist/esm/ez-grid.entry.js +125 -60
  25. package/dist/esm/ez-search.entry.js +20 -0
  26. package/dist/esm/ezui.js +1 -1
  27. package/dist/esm/loader.js +1 -1
  28. package/dist/ezui/ezui.esm.js +1 -1
  29. package/dist/ezui/p-4b819b58.entry.js +1 -0
  30. package/dist/ezui/p-583e6dab.entry.js +1 -0
  31. package/dist/ezui/p-67e87fcf.entry.js +1 -0
  32. package/dist/ezui/{p-75669111.entry.js → p-c3c3d640.entry.js} +1 -1
  33. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +5 -0
  34. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +15 -3
  35. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +9 -2
  36. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +3 -0
  37. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +11 -8
  38. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +1 -0
  39. package/dist/types/components/ez-search/ez-search.d.ts +7 -0
  40. package/dist/types/components.d.ts +16 -0
  41. package/package.json +1 -1
  42. package/dist/ezui/p-4c799a1b.entry.js +0 -1
  43. package/dist/ezui/p-7922142b.entry.js +0 -1
  44. package/dist/ezui/p-bae4e180.entry.js +0 -1
@@ -34,6 +34,7 @@ const EzComboBox = class {
34
34
  this.suppressSearch = false;
35
35
  this.optionLoader = undefined;
36
36
  this.suppressEmptyOption = false;
37
+ this.stopPropagateEnterKeyEvent = false;
37
38
  this.canShowError = true;
38
39
  this.mode = "regular";
39
40
  this.hideErrorOnFocusOut = true;
@@ -371,7 +372,6 @@ const EzComboBox = class {
371
372
  this.setInputValue(false);
372
373
  }, this._deboucingTime);
373
374
  }
374
- this.resetOptions();
375
375
  }
376
376
  setInputValue(clearError = true) {
377
377
  const textValue = this.getText();
@@ -460,7 +460,7 @@ const EzComboBox = class {
460
460
  this.showOptions();
461
461
  }
462
462
  else {
463
- this.hideOptions();
463
+ this._preSelection = undefined;
464
464
  this.updateVisibleOptions();
465
465
  }
466
466
  }
@@ -488,21 +488,32 @@ const EzComboBox = class {
488
488
  }
489
489
  switch (event.key) {
490
490
  case "ArrowDown":
491
+ this.showOptions();
491
492
  this.nextOption();
492
493
  event.stopPropagation();
493
494
  break;
494
495
  case "ArrowUp":
496
+ this.showOptions();
495
497
  this.previousOption();
496
498
  event.stopPropagation();
497
499
  break;
498
500
  case "Enter":
501
+ this.handleEventPropagation(event);
499
502
  this.selectCurrentOption();
500
503
  break;
501
504
  case "Escape":
505
+ if (this.isOptionsVisible()) {
506
+ event.stopPropagation();
507
+ }
502
508
  this.cancelPreselection();
509
+ this.resetOptions();
503
510
  break;
504
511
  case "Tab":
505
512
  this._tabPressed = true;
513
+ if (this.isOptionsVisible()) {
514
+ this.selectCurrentOption();
515
+ }
516
+ this.resetOptions();
506
517
  break;
507
518
  }
508
519
  //ATENÇÃO: Existe a necessidade de propagar o evento de teclado.
@@ -511,6 +522,12 @@ const EzComboBox = class {
511
522
  //e o contexto pode reagir (fechar um popup por exemplo).
512
523
  //event.stopPropagation();
513
524
  }
525
+ //O evento deve ter sua propagação interrompida, apenas se a lista de opções estiver sendo exibida.
526
+ handleEventPropagation(event) {
527
+ if (this._listContainer.hasChildNodes() && this.stopPropagateEnterKeyEvent) {
528
+ event.stopPropagation();
529
+ }
530
+ }
514
531
  onTextInputFocusOutHandler() {
515
532
  if (this.hideErrorOnFocusOut)
516
533
  this.cancelPreselection();
@@ -54,7 +54,9 @@ const EzCustomFormInput = class {
54
54
  this.getContent();
55
55
  }
56
56
  watchSelectedRecord(newValue, oldValue) {
57
- if ((newValue === null || newValue === void 0 ? void 0 : newValue['__record__id__']) !== (oldValue === null || oldValue === void 0 ? void 0 : oldValue['__record__id__'])) {
57
+ const newRecordId = newValue === null || newValue === void 0 ? void 0 : newValue['__record__id__'];
58
+ const oldRecordId = oldValue === null || oldValue === void 0 ? void 0 : oldValue['__record__id__'];
59
+ if (newRecordId !== oldRecordId) {
58
60
  this.getContent();
59
61
  }
60
62
  }
@@ -88,6 +88,9 @@ const EzDateInput = class {
88
88
  if ((currentValue === null || currentValue === void 0 ? void 0 : currentValue.getTime()) !== (newValueValidated === null || newValueValidated === void 0 ? void 0 : newValueValidated.getTime())) {
89
89
  this.value = newValueValidated;
90
90
  }
91
+ else {
92
+ this._changePending = false;
93
+ }
91
94
  }
92
95
  showCalendar() {
93
96
  this.handleBlur();
@@ -118849,6 +118849,17 @@ class DataSourceInterceptor {
118849
118849
  }
118850
118850
 
118851
118851
  class DataSource {
118852
+ handleDataSaved(action) {
118853
+ this._controller.clearInvalidCells();
118854
+ this.handleRefreshOrReload(action);
118855
+ this._controller.processContinuousInsert();
118856
+ }
118857
+ handleEditionCanceled(action) {
118858
+ if (this._options.enableGridInsert) {
118859
+ this._controller.processEditionCanceled();
118860
+ }
118861
+ this.handleRefreshOrReload(action);
118862
+ }
118852
118863
  handleSavingCanceled(action) {
118853
118864
  var _a, _b, _c, _d;
118854
118865
  if (!((_a = action.payload) === null || _a === void 0 ? void 0 : _a.fields) || !((_b = action.payload) === null || _b === void 0 ? void 0 : _b.recordId))
@@ -118856,12 +118867,17 @@ class DataSource {
118856
118867
  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);
118857
118868
  }
118858
118869
  handleDataChanged(action) {
118859
- var _a, _b;
118860
118870
  if (!this._options.enableGridInsert) {
118861
118871
  this.handleRefresh(action);
118862
118872
  return;
118863
118873
  }
118864
- this.updateGridRowNodes((_b = (_a = action.payload) === null || _a === void 0 ? void 0 : _a.records) !== null && _b !== void 0 ? _b : []);
118874
+ this.updateGridRowNodes(this.createRecordIdList(action));
118875
+ }
118876
+ createRecordIdList(action) {
118877
+ var _a, _b;
118878
+ if ((_a = action.payload) === null || _a === void 0 ? void 0 : _a.records)
118879
+ return (_b = action.payload) === null || _b === void 0 ? void 0 : _b.records;
118880
+ return this._dataUnit.getSelectedRecord() ? [this._dataUnit.getSelectedRecord().__record__id__] : [];
118865
118881
  }
118866
118882
  /**
118867
118883
  * Nesse ponto, o registro já se encontra atualizado no DU,
@@ -118911,10 +118927,8 @@ class DataSource {
118911
118927
  * e callbacks implementados no AgGridController e GridEditionManager.
118912
118928
  */
118913
118929
  setTimeout(() => {
118914
- var _a;
118915
- const newRowIndex = ((_a = this._dataUnit.records) === null || _a === void 0 ? void 0 : _a.length) - 1;
118916
- this._controller.startEditionOnRowByIndex(newRowIndex);
118917
- }, 500);
118930
+ this._controller.startEditionOnLastRow();
118931
+ }, 1000);
118918
118932
  }
118919
118933
  updateLoadedRecords(action) {
118920
118934
  const records = action.payload;
@@ -118968,12 +118982,14 @@ class DataSource {
118968
118982
  }
118969
118983
  break;
118970
118984
  case Action.RECORDS_ADDED:
118985
+ case Action.RECORDS_COPIED:
118971
118986
  this.handleRecordsAdded();
118972
118987
  break;
118973
118988
  case Action.DATA_SAVED:
118989
+ this.handleDataSaved(action);
118990
+ break;
118974
118991
  case Action.EDITION_CANCELED:
118975
- this._controller.clearInvalidCells(action.type);
118976
- this.handleRefreshOrReload(action);
118992
+ this.handleEditionCanceled(action);
118977
118993
  break;
118978
118994
  case Action.DATA_CHANGED:
118979
118995
  case Action.DATA_RESOLVED:
@@ -119450,6 +119466,7 @@ const buildComboBox = ({ required, props, eGridCell }) => {
119450
119466
  mode="slim"
119451
119467
  />`);
119452
119468
  combo.options = options;
119469
+ combo.stopPropagateEnterKeyEvent = true;
119453
119470
  combo.listOptionsPosition = { verticalPosition: 29, bottomLimit: getViewPortHeight(eGridCell), hardPosition: true };
119454
119471
  return combo;
119455
119472
  };
@@ -119482,6 +119499,7 @@ const buildSearch = ({ name, required, readOnly, eGridCell, dataUnit }) => {
119482
119499
  ezSearch.ensureClearButtonVisible = true;
119483
119500
  ezSearch.suppressPreLoad = true;
119484
119501
  ezSearch.listOptionsPosition = { verticalPosition: 29, bottomLimit: getViewPortHeight(eGridCell), hardPosition: true };
119502
+ ezSearch.stopPropagateEnterKeyEvent = true;
119485
119503
  ezSearch.valueGetter = () => ezSearch.getValueAsync();
119486
119504
  return ezSearch;
119487
119505
  };
@@ -119525,6 +119543,14 @@ class EzCellEditor {
119525
119543
  getValue() {
119526
119544
  return this._gui.valueGetter != undefined ? this._gui.valueGetter() : this._gui.value;
119527
119545
  }
119546
+ setGuiValue(value) {
119547
+ if (this._gui.valueSetter != undefined) {
119548
+ this._gui.valueSetter(value);
119549
+ }
119550
+ else {
119551
+ this._gui.value = value;
119552
+ }
119553
+ }
119528
119554
  isPopup() {
119529
119555
  return this._gui.isPopUp;
119530
119556
  }
@@ -119680,7 +119706,7 @@ class EzGridCustomCellRender extends EzCellRender {
119680
119706
  }
119681
119707
 
119682
119708
  class GridEditionManager {
119683
- constructor(dataUnit, useEnterLikeTab, recordsValidator, editionIsDisabled, customEditors, customRenders, enableContinuousInsert) {
119709
+ constructor(dataUnit, useEnterLikeTab, recordsValidator, editionIsDisabled, customEditors, customRenders, enableContinuousInsert, enableGridInsert) {
119684
119710
  this._dataUnit = dataUnit;
119685
119711
  this._recordValidationProcessor = new RecordValidationProcessor(this._dataUnit, {
119686
119712
  getRequiredFields: () => this.getRequiredFields(),
@@ -119690,6 +119716,7 @@ class GridEditionManager {
119690
119716
  this._useEnterLikeTab = useEnterLikeTab;
119691
119717
  this._editionIsDisabled = editionIsDisabled;
119692
119718
  this._enableContinuousInsert = enableContinuousInsert;
119719
+ this._enableGridInsert = enableGridInsert;
119693
119720
  this._customEditors = customEditors;
119694
119721
  this._customRenders = customRenders;
119695
119722
  }
@@ -119704,6 +119731,16 @@ class GridEditionManager {
119704
119731
  };
119705
119732
  return options;
119706
119733
  }
119734
+ updateCurrentEditorGuiValue(updatedRowValue) {
119735
+ const editorInstances = this._gridOptions.api.getCellEditorInstances();
119736
+ if (!editorInstances || !editorInstances.length)
119737
+ return;
119738
+ const currentEditor = editorInstances[0];
119739
+ const fieldMetadata = currentEditor.getFieldMetadata();
119740
+ const fieldName = fieldMetadata.name;
119741
+ const value = updatedRowValue[fieldName];
119742
+ currentEditor.setGuiValue(value);
119743
+ }
119707
119744
  canContinuousInsert() {
119708
119745
  var _a;
119709
119746
  return this._enableContinuousInsert && (this._dataUnit.records.length - 1) === ((_a = this._lastCellEdited) === null || _a === void 0 ? void 0 : _a.rowIndex);
@@ -119713,7 +119750,7 @@ class GridEditionManager {
119713
119750
  this.saveSuccess();
119714
119751
  return;
119715
119752
  }
119716
- if (!this._isGridEdition || this._dataUnit.hasNewRecord()) {
119753
+ if (!this._isGridEdition) {
119717
119754
  return;
119718
119755
  }
119719
119756
  const currentRercord = this._dataUnit.getSelectedRecord();
@@ -119725,14 +119762,7 @@ class GridEditionManager {
119725
119762
  .validate(true)
119726
119763
  .then(() => {
119727
119764
  this._dataUnit.saveData()
119728
- .then(() => {
119729
- if (this.canContinuousInsert()) {
119730
- this._dataUnit.addRecord();
119731
- }
119732
- else {
119733
- this.saveSuccess();
119734
- }
119735
- })
119765
+ .then(() => this.saveSuccess())
119736
119766
  .catch(reason => this.saveFail(reason));
119737
119767
  })
119738
119768
  .catch(reason => this.saveFail(reason));
@@ -119830,11 +119860,12 @@ class GridEditionManager {
119830
119860
  }
119831
119861
  }
119832
119862
  focusOnCell(cell) {
119863
+ var _a;
119833
119864
  if (cell == undefined) {
119834
119865
  return;
119835
119866
  }
119836
119867
  const { rowIndex, column } = cell;
119837
- this._gridOptions.api.getDisplayedRowAtIndex(rowIndex).setSelected(true, true);
119868
+ (_a = this._gridOptions.api.getDisplayedRowAtIndex(rowIndex)) === null || _a === void 0 ? void 0 : _a.setSelected(true, true);
119838
119869
  this._gridOptions.api.clearRangeSelection();
119839
119870
  this._gridOptions.api.addCellRange({ rowStartIndex: rowIndex, rowEndIndex: rowIndex, columns: [column] });
119840
119871
  this._gridOptions.api.startEditingCell({ colKey: column.getColId(), rowIndex });
@@ -119874,9 +119905,10 @@ class GridEditionManager {
119874
119905
  }
119875
119906
  }
119876
119907
  else {
119908
+ const actualRowIndex = rowIndex;
119877
119909
  rowIndex = rowIndex + 1;
119878
119910
  if (rowIndex >= this._dataUnit.records.length) {
119879
- rowIndex = 0;
119911
+ rowIndex = !this._enableGridInsert ? 0 : actualRowIndex;
119880
119912
  }
119881
119913
  }
119882
119914
  this._targetEditionCell = new TargetEdition(rowIndex, column, true);
@@ -119945,7 +119977,7 @@ class GridEditionManager {
119945
119977
  event.node.setData(Object.assign(Object.assign({}, event.data), { [fieldName]: value }));
119946
119978
  }
119947
119979
  this._isGridEdition = true;
119948
- this._dataUnit.setFieldValue(fieldName, value, [event.data.__record__id__]);
119980
+ this._dataUnit.setFieldValue(fieldName, value, [event.data.__record__id__], { suppressCreateNewRecord: true });
119949
119981
  this._lastCellEdited = { rowIndex: event.rowIndex, column: event.column, rowPinned: undefined };
119950
119982
  }
119951
119983
  }
@@ -119961,14 +119993,16 @@ class GridEditionManager {
119961
119993
  getInvalidCell() {
119962
119994
  return this._invalidCell;
119963
119995
  }
119964
- clearInvalidCells(action) {
119996
+ processContinuousInsert() {
119997
+ if (!this.canContinuousInsert())
119998
+ return;
119999
+ this._dataUnit.addRecord();
120000
+ }
120001
+ clearInvalidCells(stopEdition) {
119965
120002
  this._invalidCell = undefined;
119966
- if (action === Action.EDITION_CANCELED) {
120003
+ if (stopEdition) {
119967
120004
  this._isGridEdition = false;
119968
120005
  }
119969
- else if (action === Action.DATA_SAVED && this.canContinuousInsert()) {
119970
- this._dataUnit.addRecord();
119971
- }
119972
120006
  }
119973
120007
  setEnableContinuousInsert(enable) {
119974
120008
  this._enableContinuousInsert = enable;
@@ -120113,7 +120147,7 @@ class AgGridController {
120113
120147
  this._doubleClickCallBack = options.onDoubleClick;
120114
120148
  this._multipleSelection = options.allowMultipleSelection;
120115
120149
  this._dataUnit = options.dataUnit;
120116
- this._editionManager = new GridEditionManager(this._dataUnit, options.useEnterLikeTab, options.recordsValidator, options.editionIsDisabled, options.customEditors || this._customEditors, options.customRenders || this._customRenders, options.enableContinuousInsert);
120150
+ this._editionManager = new GridEditionManager(this._dataUnit, options.useEnterLikeTab, options.recordsValidator, options.editionIsDisabled, options.customEditors || this._customEditors, options.customRenders || this._customRenders, options.enableContinuousInsert, options.enableGridInsert);
120117
120151
  this._statusResolver = options.statusResolver;
120118
120152
  if (this._dataUnit) {
120119
120153
  this._dataUnit.sortingProvider = this;
@@ -120391,6 +120425,7 @@ class AgGridController {
120391
120425
  updateRowData(row) {
120392
120426
  const node = this._gridOptions.api.getRowNode(row[this._idAttribName]);
120393
120427
  node.setData(Object.assign({}, row));
120428
+ this._editionManager.updateCurrentEditorGuiValue(row);
120394
120429
  this._editionManager.recordValidate();
120395
120430
  }
120396
120431
  selectAll(quietly = false) {
@@ -120552,10 +120587,20 @@ class AgGridController {
120552
120587
  }
120553
120588
  }
120554
120589
  startEditionOnRowByIndex(rowIndex) {
120590
+ this._dataUnit.setSelectionByIndex([rowIndex]);
120555
120591
  const firstCol = this.getFirstEditableColl(rowIndex);
120592
+ if (!firstCol)
120593
+ return;
120556
120594
  this.focusByCollAndRow(firstCol, rowIndex);
120557
120595
  this.startEdition(rowIndex, firstCol);
120558
120596
  }
120597
+ startEditionOnLastRow() {
120598
+ var _a;
120599
+ if (this._gridShowDom) {
120600
+ const newRowIndex = ((_a = this._dataUnit.records) === null || _a === void 0 ? void 0 : _a.length) - 1;
120601
+ this.startEditionOnRowByIndex(newRowIndex);
120602
+ }
120603
+ }
120559
120604
  startEdition(rowIndex, firstCol) {
120560
120605
  this._gridOptions.api.clearRangeSelection();
120561
120606
  this._gridOptions.api.addCellRange({ rowStartIndex: rowIndex, rowEndIndex: rowIndex, columns: [firstCol] });
@@ -120567,8 +120612,13 @@ class AgGridController {
120567
120612
  }
120568
120613
  }
120569
120614
  getFirstEditableColl(rowIndex) {
120570
- const displayedColumns = this._gridOptions.columnApi.getAllDisplayedColumns();
120571
- return displayedColumns.find(column => this.isColumnEditable(rowIndex, column));
120615
+ try {
120616
+ const displayedColumns = this._gridOptions.columnApi.getAllDisplayedColumns();
120617
+ return displayedColumns.find(column => this.isColumnEditable(rowIndex, column));
120618
+ }
120619
+ catch (e) {
120620
+ console.warn(e);
120621
+ }
120572
120622
  }
120573
120623
  isColumnEditable(rowIndex, column) {
120574
120624
  if (column.getColDef().headerName === '' || rowIndex === -1)
@@ -120904,35 +120954,40 @@ class AgGridController {
120904
120954
  return false;
120905
120955
  }
120906
120956
  onSelectionChange(event) {
120907
- if (this._selectionChangeCallback) {
120908
- clearTimeout(this._selectionChangeDeboucing);
120909
- this._selectionChangeDeboucing = window.setTimeout(() => {
120910
- this._editionManager.proceedAutoSave();
120911
- if (this._dataUnit) {
120912
- if (event.context.selectionChangeQuietly) {
120913
- const selectionInfo = this._dataUnit;
120914
- this._selectionChangeCallback({
120915
- selection: selectionInfo.records,
120916
- selectionHeaderStatus: this.getSelectionHeaderStatus(),
120917
- });
120918
- }
120919
- else {
120920
- this._dataUnit.updatePageSelection(this._gridOptions.api.getSelectedRows().map((r) => r.__record__id__)).then(selectionInfo => {
120921
- this._selectionChangeCallback({
120922
- selection: selectionInfo.records,
120923
- selectionHeaderStatus: this.getSelectionHeaderStatus(),
120924
- });
120925
- });
120926
- }
120927
- }
120928
- else {
120929
- this._selectionChangeCallback({
120930
- selection: this._gridOptions.api.getSelectedRows(),
120931
- selectionHeaderStatus: this.getSelectionHeaderStatus(),
120932
- });
120933
- }
120934
- }, 0);
120957
+ if (!this._selectionChangeCallback)
120958
+ return;
120959
+ clearTimeout(this._selectionChangeDeboucing);
120960
+ this._selectionChangeDeboucing = window.setTimeout(() => {
120961
+ this.handleExecuteProceedAutosave();
120962
+ this.processBuildSelectionChangeCallback(event);
120963
+ }, 0);
120964
+ }
120965
+ handleExecuteProceedAutosave() {
120966
+ if (this._gridShowDom) {
120967
+ this._editionManager.proceedAutoSave();
120968
+ }
120969
+ }
120970
+ processBuildSelectionChangeCallback(event) {
120971
+ if (this._dataUnit) {
120972
+ this.handleBuildSelectionChangeWithDU(event.context.selectionChangeQuietly);
120973
+ return;
120935
120974
  }
120975
+ this.buildSelectionChangeCallback(this._gridOptions.api.getSelectedRows());
120976
+ }
120977
+ handleBuildSelectionChangeWithDU(quietly) {
120978
+ if (quietly) {
120979
+ this.buildSelectionChangeCallback(this._dataUnit.records);
120980
+ return;
120981
+ }
120982
+ this._dataUnit.updatePageSelection(this._gridOptions.api.getSelectedRows()
120983
+ .map((r) => r.__record__id__))
120984
+ .then(selectionInfo => this.buildSelectionChangeCallback(selectionInfo.records));
120985
+ }
120986
+ buildSelectionChangeCallback(records) {
120987
+ this._selectionChangeCallback({
120988
+ selection: records,
120989
+ selectionHeaderStatus: this.getSelectionHeaderStatus(),
120990
+ });
120936
120991
  }
120937
120992
  onRowDoubleClick(evt) {
120938
120993
  if (this._doubleClickCallBack) {
@@ -120944,6 +120999,12 @@ class AgGridController {
120944
120999
  host[attribute] = value;
120945
121000
  }
120946
121001
  }
121002
+ processEditionCanceled() {
121003
+ this.clearInvalidCells(true);
121004
+ if (this._gridShowDom) {
121005
+ this._dataUnit.clearSelection();
121006
+ }
121007
+ }
120947
121008
  setCellEditors(customEditors) {
120948
121009
  var _a;
120949
121010
  if (!this._editionManager) {
@@ -120962,12 +121023,15 @@ class AgGridController {
120962
121023
  this._editionManager.setCellRenders(customRenders);
120963
121024
  (_a = this._gridOptions) === null || _a === void 0 ? void 0 : _a.api.redrawRows();
120964
121025
  }
120965
- clearInvalidCells(action) {
121026
+ clearInvalidCells(stopEdition) {
120966
121027
  if (!this._editionManager)
120967
121028
  return;
120968
- this._editionManager.clearInvalidCells(action);
121029
+ this._editionManager.clearInvalidCells(stopEdition);
120969
121030
  this._gridOptions.api.refreshCells({ force: true });
120970
121031
  }
121032
+ processContinuousInsert() {
121033
+ this._editionManager.processContinuousInsert();
121034
+ }
120971
121035
  destroy() {
120972
121036
  this.observer.disconnect();
120973
121037
  }
@@ -121605,7 +121669,8 @@ const EzGrid = class {
121605
121669
  return this._getActualPageLabel() + this._getRemainingPageLabel();
121606
121670
  }
121607
121671
  _initHeaderOverflowWatcher() {
121608
- this._headerOverflowWatcher = new OverflowWatcher(this.buildOverFlowWatcherParams());
121672
+ if (this._refPaginationControl)
121673
+ this._headerOverflowWatcher = new OverflowWatcher(this.buildOverFlowWatcherParams());
121609
121674
  }
121610
121675
  buildOverFlowWatcherParams() {
121611
121676
  return {
@@ -35,6 +35,7 @@ const EzSearch = class {
35
35
  this.showSelectedValue = true;
36
36
  this.showOptionValue = true;
37
37
  this.suppressEmptyOption = false;
38
+ this.stopPropagateEnterKeyEvent = false;
38
39
  this.mode = "regular";
39
40
  this.canShowError = true;
40
41
  this.hideErrorOnFocusOut = true;
@@ -209,6 +210,9 @@ const EzSearch = class {
209
210
  getText() {
210
211
  const currentValue = this.getSelectedOption(this._currentValue);
211
212
  const text = this.getFormattedText(currentValue);
213
+ return this.replaceQuotes(text);
214
+ }
215
+ replaceQuotes(text) {
212
216
  if (text == undefined) {
213
217
  return;
214
218
  }
@@ -497,6 +501,15 @@ const EzSearch = class {
497
501
  }
498
502
  this._currentValue = value ? Object.assign(Object.assign({}, value), { value: this.replaceHighlight(value.value), label: this.replaceHighlight(value.label) }) : value;
499
503
  this.value = this._currentValue;
504
+ this.setTextInputValue();
505
+ }
506
+ setTextInputValue() {
507
+ if (this._textInput && (this._textInput.value === null || this._textInput.value === undefined)) {
508
+ if (this.value === undefined || this.value === null)
509
+ return;
510
+ const textValue = (typeof this.value === 'string') ? this.value : this.getFormattedText(this.value);
511
+ this._textInput.value = this.replaceQuotes(textValue);
512
+ }
500
513
  }
501
514
  loadOptionValue(argument) {
502
515
  var _a;
@@ -645,6 +658,7 @@ const EzSearch = class {
645
658
  event.stopPropagation();
646
659
  break;
647
660
  case "Enter":
661
+ this.handleEventPropagation(event);
648
662
  this.selectCurrentOption();
649
663
  break;
650
664
  case "Escape":
@@ -661,6 +675,12 @@ const EzSearch = class {
661
675
  //e o contexto pode reagir (fechar um popup por exemplo).
662
676
  //event.stopPropagation();
663
677
  }
678
+ //O evento deve ter sua propagação interrompida, apenas se a lista de opções estiver sendo exibida.
679
+ handleEventPropagation(event) {
680
+ if (this._listContainer.hasChildNodes() && this.stopPropagateEnterKeyEvent) {
681
+ event.stopPropagation();
682
+ }
683
+ }
664
684
  onTextInputFocusOutHandler() {
665
685
  if (this.hideErrorOnFocusOut)
666
686
  this.cancelPreselection();
package/dist/esm/ezui.js CHANGED
@@ -14,5 +14,5 @@ const patchBrowser = () => {
14
14
  };
15
15
 
16
16
  patchBrowser().then(options => {
17
- return bootstrapLazy(JSON.parse("[[\"ez-grid\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[4,\"ez-split-item\",{\"label\":[1],\"enableExpand\":[516,\"enable-expand\"],\"size\":[1],\"_expanded\":[32]}]]],[\"ez-alert\",[[1,\"ez-alert\",{\"alertType\":[513,\"alert-type\"]}]]],[\"ez-badge\",[[1,\"ez-badge\",{\"size\":[513],\"label\":[513],\"iconLeft\":[513,\"icon-left\"],\"iconRight\":[513,\"icon-right\"],\"position\":[1040],\"hasSlot\":[32]}]]],[\"ez-chip\",[[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\",[[1,\"ez-file-item\",{\"canRemove\":[4,\"can-remove\"],\"fileName\":[1,\"file-name\"],\"iconName\":[1,\"icon-name\"],\"fileSize\":[2,\"file-size\"],\"progress\":[2]}]]],[\"ez-application\",[[0,\"ez-application\"]]],[\"ez-chart\",[[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\",[[1,\"ez-loading-bar\",{\"_showLoading\":[32],\"hide\":[64],\"show\":[64]}]]],[\"ez-modal\",[[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\",[[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\",[[1,\"ez-radio-button\",{\"value\":[1544],\"options\":[1040],\"enabled\":[516],\"label\":[513],\"direction\":[1537]}]]],[\"ez-skeleton\",[[0,\"ez-skeleton\",{\"count\":[2],\"variant\":[1],\"width\":[1],\"height\":[1],\"marginBottom\":[1,\"margin-bottom\"],\"animation\":[1]}]]],[\"ez-split-panel\",[[0,\"ez-split-panel\",{\"direction\":[1],\"anchorToExpand\":[4,\"anchor-to-expand\"],\"rebuildLayout\":[64]}]]],[\"ez-toast\",[[1,\"ez-toast\",{\"message\":[1025],\"fadeTime\":[1026,\"fade-time\"],\"useIcon\":[1028,\"use-icon\"],\"canClose\":[1028,\"can-close\"],\"show\":[64]}]]],[\"ez-view-stack\",[[0,\"ez-view-stack\",{\"show\":[64],\"getSelectedIndex\":[64]}]]],[\"ez-tabselector\",[[1,\"ez-tabselector\",{\"selectedIndex\":[1538,\"selected-index\"],\"selectedTab\":[1537,\"selected-tab\"],\"tabs\":[1],\"_processedTabs\":[32],\"goToTab\":[64]}]]],[\"ez-tree\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[1,\"ez-dropdown\",{\"items\":[1040],\"value\":[1040],\"itemBuilder\":[16]},[[4,\"click\",\"handleClickOutside\"]]]]],[\"ez-text-area\",[[1,\"ez-text-area\",{\"label\":[513],\"value\":[1537],\"enabled\":[516],\"errorMessage\":[1537,\"error-message\"],\"rows\":[1538],\"canShowError\":[516,\"can-show-error\"],\"mode\":[513],\"enableResize\":[516,\"enable-resize\"],\"appendTextToSelection\":[64],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64]}]]],[\"ez-upload\",[[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\",[[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\",[[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\",[[1,\"ez-check\",{\"label\":[513],\"value\":[1540],\"enabled\":[1540],\"indeterminate\":[1540],\"mode\":[513],\"compact\":[4],\"getMode\":[64],\"setFocus\":[64]}]]],[\"ez-icon\",[[1,\"ez-icon\",{\"size\":[513],\"href\":[513],\"iconName\":[513,\"icon-name\"]}]]],[\"ez-button\",[[1,\"ez-button\",{\"label\":[513],\"enabled\":[516],\"mode\":[513],\"image\":[513],\"iconName\":[513,\"icon-name\"],\"size\":[513],\"setFocus\":[64],\"setBlur\":[64]},[[2,\"click\",\"clickListener\"]]]]],[\"ez-custom-form-input_2\",[[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\",[[2,\"ez-form-view\",{\"fields\":[16],\"selectedRecord\":[16],\"_customEditors\":[32],\"showUp\":[64],\"addCustomEditor\":[64],\"setFieldProp\":[64]}]]],[\"ez-form\",[[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\",[[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\",[[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);
17
+ return bootstrapLazy(JSON.parse("[[\"ez-grid\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[4,\"ez-split-item\",{\"label\":[1],\"enableExpand\":[516,\"enable-expand\"],\"size\":[1],\"_expanded\":[32]}]]],[\"ez-alert\",[[1,\"ez-alert\",{\"alertType\":[513,\"alert-type\"]}]]],[\"ez-badge\",[[1,\"ez-badge\",{\"size\":[513],\"label\":[513],\"iconLeft\":[513,\"icon-left\"],\"iconRight\":[513,\"icon-right\"],\"position\":[1040],\"hasSlot\":[32]}]]],[\"ez-chip\",[[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\",[[1,\"ez-file-item\",{\"canRemove\":[4,\"can-remove\"],\"fileName\":[1,\"file-name\"],\"iconName\":[1,\"icon-name\"],\"fileSize\":[2,\"file-size\"],\"progress\":[2]}]]],[\"ez-application\",[[0,\"ez-application\"]]],[\"ez-chart\",[[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\",[[1,\"ez-loading-bar\",{\"_showLoading\":[32],\"hide\":[64],\"show\":[64]}]]],[\"ez-modal\",[[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\",[[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\",[[1,\"ez-radio-button\",{\"value\":[1544],\"options\":[1040],\"enabled\":[516],\"label\":[513],\"direction\":[1537]}]]],[\"ez-skeleton\",[[0,\"ez-skeleton\",{\"count\":[2],\"variant\":[1],\"width\":[1],\"height\":[1],\"marginBottom\":[1,\"margin-bottom\"],\"animation\":[1]}]]],[\"ez-split-panel\",[[0,\"ez-split-panel\",{\"direction\":[1],\"anchorToExpand\":[4,\"anchor-to-expand\"],\"rebuildLayout\":[64]}]]],[\"ez-toast\",[[1,\"ez-toast\",{\"message\":[1025],\"fadeTime\":[1026,\"fade-time\"],\"useIcon\":[1028,\"use-icon\"],\"canClose\":[1028,\"can-close\"],\"show\":[64]}]]],[\"ez-view-stack\",[[0,\"ez-view-stack\",{\"show\":[64],\"getSelectedIndex\":[64]}]]],[\"ez-tabselector\",[[1,\"ez-tabselector\",{\"selectedIndex\":[1538,\"selected-index\"],\"selectedTab\":[1537,\"selected-tab\"],\"tabs\":[1],\"_processedTabs\":[32],\"goToTab\":[64]}]]],[\"ez-tree\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[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\",[[1,\"ez-dropdown\",{\"items\":[1040],\"value\":[1040],\"itemBuilder\":[16]},[[4,\"click\",\"handleClickOutside\"]]]]],[\"ez-text-area\",[[1,\"ez-text-area\",{\"label\":[513],\"value\":[1537],\"enabled\":[516],\"errorMessage\":[1537,\"error-message\"],\"rows\":[1538],\"canShowError\":[516,\"can-show-error\"],\"mode\":[513],\"enableResize\":[516,\"enable-resize\"],\"appendTextToSelection\":[64],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64]}]]],[\"ez-upload\",[[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\",[[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\",[[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\",[[1,\"ez-check\",{\"label\":[513],\"value\":[1540],\"enabled\":[1540],\"indeterminate\":[1540],\"mode\":[513],\"compact\":[4],\"getMode\":[64],\"setFocus\":[64]}]]],[\"ez-icon\",[[1,\"ez-icon\",{\"size\":[513],\"href\":[513],\"iconName\":[513,\"icon-name\"]}]]],[\"ez-button\",[[1,\"ez-button\",{\"label\":[513],\"enabled\":[516],\"mode\":[513],\"image\":[513],\"iconName\":[513,\"icon-name\"],\"size\":[513],\"setFocus\":[64],\"setBlur\":[64]},[[2,\"click\",\"clickListener\"]]]]],[\"ez-custom-form-input_2\",[[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\",[[2,\"ez-form-view\",{\"fields\":[16],\"selectedRecord\":[16],\"_customEditors\":[32],\"showUp\":[64],\"addCustomEditor\":[64],\"setFieldProp\":[64]}]]],[\"ez-form\",[[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\",[[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\",[[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);
18
18
  });