@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-68079.0 → 0.0.0-bugfix-dev-KB-68936.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.
@@ -36,6 +36,7 @@ export class EzGrid {
36
36
  this.recordsValidator = undefined;
37
37
  this.canEdit = true;
38
38
  this.autoFocus = true;
39
+ this.enableGridInsert = false;
39
40
  }
40
41
  /**
41
42
  * Aplica a definição de colunas.
@@ -362,6 +363,7 @@ export class EzGrid {
362
363
  editionIsDisabled: () => !this.canEdit,
363
364
  customFormatters: this._customFormatters,
364
365
  autoFocus: this.autoFocus,
366
+ enableGridInsert: this.enableGridInsert,
365
367
  onRefresh: () => {
366
368
  if (this.dataUnit) {
367
369
  this.setSelection(this.dataUnit.getSelectionInfo());
@@ -454,6 +456,7 @@ export class EzGrid {
454
456
  }
455
457
  componentDidUpdate() {
456
458
  this._gridController.setAutoFocus(this.autoFocus);
459
+ this._gridController.setEnableGridInsert(this.enableGridInsert);
457
460
  }
458
461
  getDataSource() {
459
462
  var _a;
@@ -694,6 +697,24 @@ export class EzGrid {
694
697
  "attribute": "auto-focus",
695
698
  "reflect": false,
696
699
  "defaultValue": "true"
700
+ },
701
+ "enableGridInsert": {
702
+ "type": "boolean",
703
+ "mutable": false,
704
+ "complexType": {
705
+ "original": "boolean",
706
+ "resolved": "boolean",
707
+ "references": {}
708
+ },
709
+ "required": false,
710
+ "optional": true,
711
+ "docs": {
712
+ "tags": [],
713
+ "text": "Ativa inser\u00E7\u00E3o de registros no modo grade."
714
+ },
715
+ "attribute": "enable-grid-insert",
716
+ "reflect": false,
717
+ "defaultValue": "false"
697
718
  }
698
719
  };
699
720
  }
@@ -2491,8 +2491,6 @@ const EzChart$1 = class extends HTMLElement$1 {
2491
2491
  subTitle: this.chartSubTitle,
2492
2492
  legendEnabled: this.legendEnabled,
2493
2493
  onClickSerie: this.ezSerieClick,
2494
- width: this.width,
2495
- height: this.height,
2496
2494
  });
2497
2495
  }
2498
2496
  componentWillLoad() {
@@ -124424,6 +124422,67 @@ class DataSourceInterceptor {
124424
124422
  }
124425
124423
 
124426
124424
  class DataSource {
124425
+ handleDataChanged(action) {
124426
+ var _a, _b;
124427
+ if (!this._options.enableGridInsert) {
124428
+ this.handleRefresh(action);
124429
+ return;
124430
+ }
124431
+ this.updateGridRowNodes((_b = (_a = action.payload) === null || _a === void 0 ? void 0 : _a.records) !== null && _b !== void 0 ? _b : []);
124432
+ }
124433
+ /**
124434
+ * Nesse ponto, o registro já se encontra atualizado no DU,
124435
+ * basta então passar seu valor para que a garde possa atualizar sua linha.
124436
+ */
124437
+ updateGridRowNodes(recordIDList) {
124438
+ const recordsToUpdate = recordIDList === null || recordIDList === void 0 ? void 0 : recordIDList.map(id => this.getRecordById(id));
124439
+ this._controller.updateRows(recordsToUpdate);
124440
+ }
124441
+ getRecordById(recordId) {
124442
+ return this._dataUnit.records.find(record => record['__record__id__'] === recordId);
124443
+ }
124444
+ /**
124445
+ * Em caso de necessidade de reload (isWaitingToReload), eh preciso chamar o dataUnit.gotoPage, pois ele aplica tambem a ordenacao dos registros,
124446
+ * enquanto que o _controller.refresh apenas recarrega os dados na ordem que atua.
124447
+ */
124448
+ handleRefreshOrReload(action) {
124449
+ if (this._dataUnit.isWaitingToReload()) {
124450
+ this.handleReload();
124451
+ return;
124452
+ }
124453
+ this.handleRefresh(action);
124454
+ }
124455
+ handleReload() {
124456
+ this._dataUnit.setWaitingToReload(false);
124457
+ this._dataUnit.gotoPage(0);
124458
+ }
124459
+ handleRefresh(action) {
124460
+ if (this.isSilentChange(action)) {
124461
+ return;
124462
+ }
124463
+ this._controller.refresh();
124464
+ }
124465
+ handleRecordsAdded() {
124466
+ if (this._options.enableGridInsert) {
124467
+ this._controller.refresh();
124468
+ this.focusOnNewRecord();
124469
+ }
124470
+ }
124471
+ focusOnNewRecord() {
124472
+ /**
124473
+ * O SetTimeout eh utilizado pois é preciso aguardar que o novo registro seja renderizado na grade.
124474
+ * Tentamos utilizar a api da grade para adicionar um event listener, porém na versão que utilizamos, não existe
124475
+ * algo que resolva nosso cenário.
124476
+ *
124477
+ * Sugiro no futuro utilizar algo como o applyServerSideTransaction, porém será preciso lidar com os handlers
124478
+ * e callbacks implementados no AgGridController e GridEditionManager.
124479
+ */
124480
+ setTimeout(() => {
124481
+ var _a;
124482
+ const newRowIndex = ((_a = this._dataUnit.records) === null || _a === void 0 ? void 0 : _a.length) - 1;
124483
+ this._controller.startEditionOnRowByIndex(newRowIndex);
124484
+ }, 500);
124485
+ }
124427
124486
  updateLoadedRecords(action) {
124428
124487
  const records = action.payload;
124429
124488
  if ((records === null || records === void 0 ? void 0 : records.length) > 0) {
@@ -124475,15 +124534,19 @@ class DataSource {
124475
124534
  this._options.onPaginationUpdate(this._dataUnit.getPaginationInfo());
124476
124535
  }
124477
124536
  break;
124478
- case Action.RECORDS_REMOVED:
124537
+ case Action.RECORDS_ADDED:
124538
+ this.handleRecordsAdded();
124539
+ break;
124479
124540
  case Action.DATA_SAVED:
124480
124541
  case Action.EDITION_CANCELED:
124542
+ this.handleRefreshOrReload(action);
124543
+ break;
124481
124544
  case Action.DATA_CHANGED:
124482
124545
  case Action.DATA_RESOLVED:
124483
- if (this.isSilentChange(action)) {
124484
- return;
124485
- }
124486
- this._controller.refresh();
124546
+ this.handleDataChanged(action);
124547
+ break;
124548
+ case Action.RECORDS_REMOVED:
124549
+ this.handleRefresh(action);
124487
124550
  break;
124488
124551
  case Action.SELECTION_CHANGED:
124489
124552
  case Action.NEXT_SELECTED:
@@ -124514,6 +124577,9 @@ class DataSource {
124514
124577
  setAutoFocus(autoFocus) {
124515
124578
  this._options.autoFocus = autoFocus;
124516
124579
  }
124580
+ setEnableGridInsert(enable) {
124581
+ this._options.enableGridInsert = enable;
124582
+ }
124517
124583
  getRows(params) {
124518
124584
  if (this.needReload(params)) {
124519
124585
  this._lastLoadingParams = params;
@@ -125277,11 +125343,7 @@ class GridEditionManager {
125277
125343
  }).map(c => c.getColId());
125278
125344
  }
125279
125345
  saveSuccess() {
125280
- var _a;
125281
125346
  this.focusOnCell(this._targetEditionCell);
125282
- if (((_a = this._targetEditionCell) === null || _a === void 0 ? void 0 : _a.rowIndex) !== undefined) {
125283
- this._dataUnit.setSelectionByIndex([this._targetEditionCell.rowIndex]);
125284
- }
125285
125347
  this._lastCellEdited = undefined;
125286
125348
  this._targetEditionCell = undefined;
125287
125349
  this._isGridEdition = false;
@@ -125800,10 +125862,15 @@ class AgGridController {
125800
125862
  throw new Error('Erro interno: Grid ainda não inicializado.');
125801
125863
  }
125802
125864
  }
125803
- updateRows() {
125865
+ updateRows(rows) {
125804
125866
  if (this._grid === undefined) {
125805
125867
  throw new Error('Erro interno: Grid ainda não inicializado.');
125806
125868
  }
125869
+ rows === null || rows === void 0 ? void 0 : rows.forEach(row => this.updateRowData(row));
125870
+ }
125871
+ updateRowData(row) {
125872
+ const node = this._gridOptions.api.getRowNode(row[this._idAttribName]);
125873
+ node.setData(Object.assign({}, row));
125807
125874
  }
125808
125875
  selectAll(quietly = false) {
125809
125876
  try {
@@ -125912,6 +125979,10 @@ class AgGridController {
125912
125979
  var _a;
125913
125980
  (_a = this._dataSource) === null || _a === void 0 ? void 0 : _a.setAutoFocus(autoFocus);
125914
125981
  }
125982
+ setEnableGridInsert(enable) {
125983
+ var _a;
125984
+ (_a = this._dataSource) === null || _a === void 0 ? void 0 : _a.setEnableGridInsert(enable);
125985
+ }
125915
125986
  setFocusFirstRow() {
125916
125987
  const firstRow = this._gridOptions.api.getDisplayedRowAtIndex(0);
125917
125988
  if (firstRow) {
@@ -125927,9 +125998,38 @@ class AgGridController {
125927
125998
  this.setFocusOnRow(lastRow.rowIndex);
125928
125999
  }
125929
126000
  }
126001
+ startEditionOnRowByIndex(rowIndex) {
126002
+ const firstCol = this.getFirstEditableColl(rowIndex);
126003
+ this.focusByCollAndRow(firstCol, rowIndex);
126004
+ this.startEdition(rowIndex, firstCol);
126005
+ }
126006
+ startEdition(rowIndex, firstCol) {
126007
+ this._gridOptions.api.clearRangeSelection();
126008
+ this._gridOptions.api.addCellRange({ rowStartIndex: rowIndex, rowEndIndex: rowIndex, columns: [firstCol] });
126009
+ this._gridOptions.api.setFocusedCell(rowIndex, firstCol);
126010
+ this._gridOptions.api.startEditingCell({ rowIndex, colKey: firstCol });
126011
+ const cellEditor = this._gridOptions.api.getCellEditorInstances()[0];
126012
+ if (cellEditor) {
126013
+ cellEditor.focusIn();
126014
+ }
126015
+ }
126016
+ getFirstEditableColl(rowIndex) {
126017
+ const displayedColumns = this._gridOptions.columnApi.getAllDisplayedColumns();
126018
+ return displayedColumns.find(column => this.isColumnEditable(rowIndex, column));
126019
+ }
126020
+ isColumnEditable(rowIndex, column) {
126021
+ if (column.getColDef().headerName === '')
126022
+ return false;
126023
+ const rowId = this._dataUnit.records[rowIndex][this._idAttribName];
126024
+ const rowNode = this._gridOptions.api.getRowNode(rowId);
126025
+ return column.isCellEditable(rowNode);
126026
+ }
125930
126027
  setFocusOnRow(rowIndex) {
125931
126028
  let displayedColumns = this._gridOptions.columnApi.getAllDisplayedColumns();
125932
- let firstCell = displayedColumns.find(column => column.getColDef().headerName !== '');
126029
+ let firstColl = displayedColumns.find(column => column.getColDef().headerName !== '');
126030
+ this.focusByCollAndRow(firstColl, rowIndex);
126031
+ }
126032
+ focusByCollAndRow(firstCell, rowIndex) {
125933
126033
  this._gridOptions.api.ensureColumnVisible(firstCell);
125934
126034
  this._gridOptions.api.ensureIndexVisible(rowIndex);
125935
126035
  this._gridOptions.api.setFocusedCell(rowIndex, firstCell);
@@ -126556,6 +126656,7 @@ const EzGrid$1 = class extends HTMLElement$1 {
126556
126656
  this.recordsValidator = undefined;
126557
126657
  this.canEdit = true;
126558
126658
  this.autoFocus = true;
126659
+ this.enableGridInsert = false;
126559
126660
  }
126560
126661
  /**
126561
126662
  * Aplica a definição de colunas.
@@ -126882,6 +126983,7 @@ const EzGrid$1 = class extends HTMLElement$1 {
126882
126983
  editionIsDisabled: () => !this.canEdit,
126883
126984
  customFormatters: this._customFormatters,
126884
126985
  autoFocus: this.autoFocus,
126986
+ enableGridInsert: this.enableGridInsert,
126885
126987
  onRefresh: () => {
126886
126988
  if (this.dataUnit) {
126887
126989
  this.setSelection(this.dataUnit.getSelectionInfo());
@@ -126974,6 +127076,7 @@ const EzGrid$1 = class extends HTMLElement$1 {
126974
127076
  }
126975
127077
  componentDidUpdate() {
126976
127078
  this._gridController.setAutoFocus(this.autoFocus);
127079
+ this._gridController.setEnableGridInsert(this.enableGridInsert);
126977
127080
  }
126978
127081
  getDataSource() {
126979
127082
  var _a;
@@ -132799,7 +132902,7 @@ const EzFileItem = /*@__PURE__*/proxyCustomElement(EzFileItem$1, [1,"ez-file-ite
132799
132902
  const EzFilterInput = /*@__PURE__*/proxyCustomElement(EzFilterInput$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"]}]);
132800
132903
  const EzForm = /*@__PURE__*/proxyCustomElement(EzForm$1, [2,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16],"fieldToFocus":[1,"field-to-focus"],"onlyStaticFields":[4,"only-static-fields"],"_fieldsProps":[32]}]);
132801
132904
  const EzFormView = /*@__PURE__*/proxyCustomElement(EzFormView$1, [2,"ez-form-view",{"fields":[16],"selectedRecord":[16],"_customEditors":[32]}]);
132802
- const EzGrid = /*@__PURE__*/proxyCustomElement(EzGrid$1, [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"],"_paginationInfo":[32],"_paginationChangedByKeyboard":[32],"_showSelectionCounter":[32],"_isAllSelection":[32],"_currentPageSelected":[32],"_selectionCount":[32],"_hasLeftButtons":[32],"_customFormatters":[32]},[[0,"ezSelectionChange","onSelectionChange"]]]);
132905
+ const EzGrid = /*@__PURE__*/proxyCustomElement(EzGrid$1, [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"],"enableGridInsert":[4,"enable-grid-insert"],"_paginationInfo":[32],"_paginationChangedByKeyboard":[32],"_showSelectionCounter":[32],"_isAllSelection":[32],"_currentPageSelected":[32],"_selectionCount":[32],"_hasLeftButtons":[32],"_customFormatters":[32]},[[0,"ezSelectionChange","onSelectionChange"]]]);
132803
132906
  const EzGuideNavigator = /*@__PURE__*/proxyCustomElement(EzGuideNavigator$1, [1,"ez-guide-navigator",{"open":[1540],"selectedId":[1537,"selected-id"],"items":[16],"tooltipResolver":[16],"filterText":[32]}]);
132804
132907
  const EzIcon = /*@__PURE__*/proxyCustomElement(EzIcon$1, [1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]);
132805
132908
  const EzList = /*@__PURE__*/proxyCustomElement(EzList$1, [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]}]);
@@ -392,8 +392,6 @@ const EzChart = class {
392
392
  subTitle: this.chartSubTitle,
393
393
  legendEnabled: this.legendEnabled,
394
394
  onClickSerie: this.ezSerieClick,
395
- width: this.width,
396
- height: this.height,
397
395
  });
398
396
  }
399
397
  componentWillLoad() {
@@ -118849,6 +118849,67 @@ class DataSourceInterceptor {
118849
118849
  }
118850
118850
 
118851
118851
  class DataSource {
118852
+ handleDataChanged(action) {
118853
+ var _a, _b;
118854
+ if (!this._options.enableGridInsert) {
118855
+ this.handleRefresh(action);
118856
+ return;
118857
+ }
118858
+ this.updateGridRowNodes((_b = (_a = action.payload) === null || _a === void 0 ? void 0 : _a.records) !== null && _b !== void 0 ? _b : []);
118859
+ }
118860
+ /**
118861
+ * Nesse ponto, o registro já se encontra atualizado no DU,
118862
+ * basta então passar seu valor para que a garde possa atualizar sua linha.
118863
+ */
118864
+ updateGridRowNodes(recordIDList) {
118865
+ const recordsToUpdate = recordIDList === null || recordIDList === void 0 ? void 0 : recordIDList.map(id => this.getRecordById(id));
118866
+ this._controller.updateRows(recordsToUpdate);
118867
+ }
118868
+ getRecordById(recordId) {
118869
+ return this._dataUnit.records.find(record => record['__record__id__'] === recordId);
118870
+ }
118871
+ /**
118872
+ * Em caso de necessidade de reload (isWaitingToReload), eh preciso chamar o dataUnit.gotoPage, pois ele aplica tambem a ordenacao dos registros,
118873
+ * enquanto que o _controller.refresh apenas recarrega os dados na ordem que atua.
118874
+ */
118875
+ handleRefreshOrReload(action) {
118876
+ if (this._dataUnit.isWaitingToReload()) {
118877
+ this.handleReload();
118878
+ return;
118879
+ }
118880
+ this.handleRefresh(action);
118881
+ }
118882
+ handleReload() {
118883
+ this._dataUnit.setWaitingToReload(false);
118884
+ this._dataUnit.gotoPage(0);
118885
+ }
118886
+ handleRefresh(action) {
118887
+ if (this.isSilentChange(action)) {
118888
+ return;
118889
+ }
118890
+ this._controller.refresh();
118891
+ }
118892
+ handleRecordsAdded() {
118893
+ if (this._options.enableGridInsert) {
118894
+ this._controller.refresh();
118895
+ this.focusOnNewRecord();
118896
+ }
118897
+ }
118898
+ focusOnNewRecord() {
118899
+ /**
118900
+ * O SetTimeout eh utilizado pois é preciso aguardar que o novo registro seja renderizado na grade.
118901
+ * Tentamos utilizar a api da grade para adicionar um event listener, porém na versão que utilizamos, não existe
118902
+ * algo que resolva nosso cenário.
118903
+ *
118904
+ * Sugiro no futuro utilizar algo como o applyServerSideTransaction, porém será preciso lidar com os handlers
118905
+ * e callbacks implementados no AgGridController e GridEditionManager.
118906
+ */
118907
+ setTimeout(() => {
118908
+ var _a;
118909
+ const newRowIndex = ((_a = this._dataUnit.records) === null || _a === void 0 ? void 0 : _a.length) - 1;
118910
+ this._controller.startEditionOnRowByIndex(newRowIndex);
118911
+ }, 500);
118912
+ }
118852
118913
  updateLoadedRecords(action) {
118853
118914
  const records = action.payload;
118854
118915
  if ((records === null || records === void 0 ? void 0 : records.length) > 0) {
@@ -118900,15 +118961,19 @@ class DataSource {
118900
118961
  this._options.onPaginationUpdate(this._dataUnit.getPaginationInfo());
118901
118962
  }
118902
118963
  break;
118903
- case Action.RECORDS_REMOVED:
118964
+ case Action.RECORDS_ADDED:
118965
+ this.handleRecordsAdded();
118966
+ break;
118904
118967
  case Action.DATA_SAVED:
118905
118968
  case Action.EDITION_CANCELED:
118969
+ this.handleRefreshOrReload(action);
118970
+ break;
118906
118971
  case Action.DATA_CHANGED:
118907
118972
  case Action.DATA_RESOLVED:
118908
- if (this.isSilentChange(action)) {
118909
- return;
118910
- }
118911
- this._controller.refresh();
118973
+ this.handleDataChanged(action);
118974
+ break;
118975
+ case Action.RECORDS_REMOVED:
118976
+ this.handleRefresh(action);
118912
118977
  break;
118913
118978
  case Action.SELECTION_CHANGED:
118914
118979
  case Action.NEXT_SELECTED:
@@ -118939,6 +119004,9 @@ class DataSource {
118939
119004
  setAutoFocus(autoFocus) {
118940
119005
  this._options.autoFocus = autoFocus;
118941
119006
  }
119007
+ setEnableGridInsert(enable) {
119008
+ this._options.enableGridInsert = enable;
119009
+ }
118942
119010
  getRows(params) {
118943
119011
  if (this.needReload(params)) {
118944
119012
  this._lastLoadingParams = params;
@@ -119702,11 +119770,7 @@ class GridEditionManager {
119702
119770
  }).map(c => c.getColId());
119703
119771
  }
119704
119772
  saveSuccess() {
119705
- var _a;
119706
119773
  this.focusOnCell(this._targetEditionCell);
119707
- if (((_a = this._targetEditionCell) === null || _a === void 0 ? void 0 : _a.rowIndex) !== undefined) {
119708
- this._dataUnit.setSelectionByIndex([this._targetEditionCell.rowIndex]);
119709
- }
119710
119774
  this._lastCellEdited = undefined;
119711
119775
  this._targetEditionCell = undefined;
119712
119776
  this._isGridEdition = false;
@@ -120225,10 +120289,15 @@ class AgGridController {
120225
120289
  throw new Error('Erro interno: Grid ainda não inicializado.');
120226
120290
  }
120227
120291
  }
120228
- updateRows() {
120292
+ updateRows(rows) {
120229
120293
  if (this._grid === undefined) {
120230
120294
  throw new Error('Erro interno: Grid ainda não inicializado.');
120231
120295
  }
120296
+ rows === null || rows === void 0 ? void 0 : rows.forEach(row => this.updateRowData(row));
120297
+ }
120298
+ updateRowData(row) {
120299
+ const node = this._gridOptions.api.getRowNode(row[this._idAttribName]);
120300
+ node.setData(Object.assign({}, row));
120232
120301
  }
120233
120302
  selectAll(quietly = false) {
120234
120303
  try {
@@ -120337,6 +120406,10 @@ class AgGridController {
120337
120406
  var _a;
120338
120407
  (_a = this._dataSource) === null || _a === void 0 ? void 0 : _a.setAutoFocus(autoFocus);
120339
120408
  }
120409
+ setEnableGridInsert(enable) {
120410
+ var _a;
120411
+ (_a = this._dataSource) === null || _a === void 0 ? void 0 : _a.setEnableGridInsert(enable);
120412
+ }
120340
120413
  setFocusFirstRow() {
120341
120414
  const firstRow = this._gridOptions.api.getDisplayedRowAtIndex(0);
120342
120415
  if (firstRow) {
@@ -120352,9 +120425,38 @@ class AgGridController {
120352
120425
  this.setFocusOnRow(lastRow.rowIndex);
120353
120426
  }
120354
120427
  }
120428
+ startEditionOnRowByIndex(rowIndex) {
120429
+ const firstCol = this.getFirstEditableColl(rowIndex);
120430
+ this.focusByCollAndRow(firstCol, rowIndex);
120431
+ this.startEdition(rowIndex, firstCol);
120432
+ }
120433
+ startEdition(rowIndex, firstCol) {
120434
+ this._gridOptions.api.clearRangeSelection();
120435
+ this._gridOptions.api.addCellRange({ rowStartIndex: rowIndex, rowEndIndex: rowIndex, columns: [firstCol] });
120436
+ this._gridOptions.api.setFocusedCell(rowIndex, firstCol);
120437
+ this._gridOptions.api.startEditingCell({ rowIndex, colKey: firstCol });
120438
+ const cellEditor = this._gridOptions.api.getCellEditorInstances()[0];
120439
+ if (cellEditor) {
120440
+ cellEditor.focusIn();
120441
+ }
120442
+ }
120443
+ getFirstEditableColl(rowIndex) {
120444
+ const displayedColumns = this._gridOptions.columnApi.getAllDisplayedColumns();
120445
+ return displayedColumns.find(column => this.isColumnEditable(rowIndex, column));
120446
+ }
120447
+ isColumnEditable(rowIndex, column) {
120448
+ if (column.getColDef().headerName === '')
120449
+ return false;
120450
+ const rowId = this._dataUnit.records[rowIndex][this._idAttribName];
120451
+ const rowNode = this._gridOptions.api.getRowNode(rowId);
120452
+ return column.isCellEditable(rowNode);
120453
+ }
120355
120454
  setFocusOnRow(rowIndex) {
120356
120455
  let displayedColumns = this._gridOptions.columnApi.getAllDisplayedColumns();
120357
- let firstCell = displayedColumns.find(column => column.getColDef().headerName !== '');
120456
+ let firstColl = displayedColumns.find(column => column.getColDef().headerName !== '');
120457
+ this.focusByCollAndRow(firstColl, rowIndex);
120458
+ }
120459
+ focusByCollAndRow(firstCell, rowIndex) {
120358
120460
  this._gridOptions.api.ensureColumnVisible(firstCell);
120359
120461
  this._gridOptions.api.ensureIndexVisible(rowIndex);
120360
120462
  this._gridOptions.api.setFocusedCell(rowIndex, firstCell);
@@ -120980,6 +121082,7 @@ const EzGrid = class {
120980
121082
  this.recordsValidator = undefined;
120981
121083
  this.canEdit = true;
120982
121084
  this.autoFocus = true;
121085
+ this.enableGridInsert = false;
120983
121086
  }
120984
121087
  /**
120985
121088
  * Aplica a definição de colunas.
@@ -121306,6 +121409,7 @@ const EzGrid = class {
121306
121409
  editionIsDisabled: () => !this.canEdit,
121307
121410
  customFormatters: this._customFormatters,
121308
121411
  autoFocus: this.autoFocus,
121412
+ enableGridInsert: this.enableGridInsert,
121309
121413
  onRefresh: () => {
121310
121414
  if (this.dataUnit) {
121311
121415
  this.setSelection(this.dataUnit.getSelectionInfo());
@@ -121398,6 +121502,7 @@ const EzGrid = class {
121398
121502
  }
121399
121503
  componentDidUpdate() {
121400
121504
  this._gridController.setAutoFocus(this.autoFocus);
121505
+ this._gridController.setEnableGridInsert(this.enableGridInsert);
121401
121506
  }
121402
121507
  getDataSource() {
121403
121508
  var _a;
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\"],\"_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\"]},[[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\"],\"scrim\":[1]}]]],[\"ez-popup\",[[1,\"ez-popup\",{\"size\":[1],\"opened\":[1540],\"useHeader\":[516,\"use-header\"],\"heightMode\":[513,\"height-mode\"],\"ezTitle\":[1,\"ez-title\"]}]]],[\"ez-radio-button\",[[1,\"ez-radio-button\",{\"value\":[1544],\"options\":[1040],\"enabled\":[516],\"label\":[513],\"direction\":[1537]}]]],[\"ez-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]}]]],[\"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\"]}]]],[\"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\"],\"_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\"],\"enableGridInsert\":[4,\"enable-grid-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\"]},[[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\"],\"scrim\":[1]}]]],[\"ez-popup\",[[1,\"ez-popup\",{\"size\":[1],\"opened\":[1540],\"useHeader\":[516,\"use-header\"],\"heightMode\":[513,\"height-mode\"],\"ezTitle\":[1,\"ez-title\"]}]]],[\"ez-radio-button\",[[1,\"ez-radio-button\",{\"value\":[1544],\"options\":[1040],\"enabled\":[516],\"label\":[513],\"direction\":[1537]}]]],[\"ez-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]}]]],[\"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\"]}]]],[\"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\"],\"_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
  });