@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-55889.0 → 0.0.0-bugfix-dev-kb-0224.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 (216) hide show
  1. package/dist/cjs/{RecordValidationProcessor-10846595.js → RecordValidationProcessor-4c893e04.js} +1 -7
  2. package/dist/cjs/ez-actions-button.cjs.entry.js +1 -1
  3. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  4. package/dist/cjs/ez-alert.cjs.entry.js +1 -1
  5. package/dist/cjs/ez-application.cjs.entry.js +1 -1
  6. package/dist/cjs/ez-badge.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-button.cjs.entry.js +6 -12
  9. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  10. package/dist/cjs/ez-card-item_3.cjs.entry.js +5 -14
  11. package/dist/cjs/ez-chart.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-check.cjs.entry.js +2 -2
  13. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  14. package/dist/cjs/ez-collapsible-box.cjs.entry.js +2 -2
  15. package/dist/cjs/ez-combo-box.cjs.entry.js +1 -1
  16. package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +2 -2
  17. package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
  18. package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
  19. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  20. package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
  21. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  22. package/dist/cjs/ez-form-view.cjs.entry.js +1 -1
  23. package/dist/cjs/ez-form.cjs.entry.js +3 -3
  24. package/dist/cjs/ez-grid.cjs.entry.js +24 -282
  25. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  26. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  27. package/dist/cjs/ez-list.cjs.entry.js +2 -2
  28. package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
  29. package/dist/cjs/ez-modal-container.cjs.entry.js +2 -2
  30. package/dist/cjs/ez-modal.cjs.entry.js +2 -2
  31. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +2 -2
  32. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  33. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  34. package/dist/cjs/ez-popup.cjs.entry.js +1 -1
  35. package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
  36. package/dist/cjs/ez-scroller_2.cjs.entry.js +4 -4
  37. package/dist/cjs/ez-search.cjs.entry.js +6 -7
  38. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +2 -2
  39. package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
  40. package/dist/cjs/ez-split-button.cjs.entry.js +3 -3
  41. package/dist/cjs/ez-split-item.cjs.entry.js +2 -2
  42. package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
  43. package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
  44. package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
  45. package/dist/cjs/ez-text-input.cjs.entry.js +1 -1
  46. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  47. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  48. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  49. package/dist/cjs/ez-upload.cjs.entry.js +1 -1
  50. package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
  51. package/dist/cjs/ezui.cjs.js +2 -2
  52. package/dist/cjs/filter-column.cjs.entry.js +1 -1
  53. package/dist/cjs/{index-9e5554cb.js → index-a7b0c73d.js} +0 -3
  54. package/dist/cjs/loader.cjs.js +2 -2
  55. package/dist/collection/components/ez-button/ez-button.css +2 -13
  56. package/dist/collection/components/ez-button/ez-button.js +6 -12
  57. package/dist/collection/components/ez-card-item/ez-card-item.css +10 -60
  58. package/dist/collection/components/ez-card-item/ez-card-item.js +3 -30
  59. package/dist/collection/components/ez-check/ez-check.css +6 -1
  60. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +2 -2
  61. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +4 -106
  62. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +5 -83
  63. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +6 -57
  64. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +1 -2
  65. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +0 -1
  66. package/dist/collection/components/ez-grid/ez-grid.css +7 -17
  67. package/dist/collection/components/ez-grid/ez-grid.js +5 -87
  68. package/dist/collection/components/ez-list/ez-list.css +1 -2
  69. package/dist/collection/components/ez-modal/ez-modal.css +1 -1
  70. package/dist/collection/components/ez-modal-container/ez-modal-container.js +1 -1
  71. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +1 -1
  72. package/dist/collection/components/ez-scroller/ez-scroller.css +0 -1
  73. package/dist/collection/components/ez-search/ez-search.css +8 -19
  74. package/dist/collection/components/ez-search/ez-search.js +7 -26
  75. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +0 -3
  76. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +1 -1
  77. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css +1 -3
  78. package/dist/collection/components/ez-split-button/ez-split-button.css +1 -1
  79. package/dist/collection/components/ez-split-button/ez-split-button.js +3 -3
  80. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +0 -1
  81. package/dist/collection/utils/form/DataBinder.js +1 -1
  82. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +1 -7
  83. package/dist/custom-elements/index.js +54 -334
  84. package/dist/esm/{RecordValidationProcessor-9c6cc267.js → RecordValidationProcessor-b00b8b77.js} +1 -7
  85. package/dist/esm/ez-actions-button.entry.js +1 -1
  86. package/dist/esm/ez-alert-list.entry.js +1 -1
  87. package/dist/esm/ez-alert.entry.js +1 -1
  88. package/dist/esm/ez-application.entry.js +1 -1
  89. package/dist/esm/ez-badge.entry.js +1 -1
  90. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  91. package/dist/esm/ez-button.entry.js +6 -12
  92. package/dist/esm/ez-calendar.entry.js +1 -1
  93. package/dist/esm/ez-card-item_3.entry.js +5 -14
  94. package/dist/esm/ez-chart.entry.js +1 -1
  95. package/dist/esm/ez-check.entry.js +2 -2
  96. package/dist/esm/ez-chip.entry.js +1 -1
  97. package/dist/esm/ez-collapsible-box.entry.js +2 -2
  98. package/dist/esm/ez-combo-box.entry.js +1 -1
  99. package/dist/esm/ez-custom-form-input_2.entry.js +2 -2
  100. package/dist/esm/ez-date-input.entry.js +1 -1
  101. package/dist/esm/ez-date-time-input.entry.js +1 -1
  102. package/dist/esm/ez-dialog.entry.js +1 -1
  103. package/dist/esm/ez-dropdown.entry.js +1 -1
  104. package/dist/esm/ez-file-item.entry.js +1 -1
  105. package/dist/esm/ez-form-view.entry.js +1 -1
  106. package/dist/esm/ez-form.entry.js +3 -3
  107. package/dist/esm/ez-grid.entry.js +24 -282
  108. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  109. package/dist/esm/ez-icon.entry.js +1 -1
  110. package/dist/esm/ez-list.entry.js +2 -2
  111. package/dist/esm/ez-loading-bar.entry.js +1 -1
  112. package/dist/esm/ez-modal-container.entry.js +2 -2
  113. package/dist/esm/ez-modal.entry.js +2 -2
  114. package/dist/esm/ez-multi-selection-list.entry.js +2 -2
  115. package/dist/esm/ez-number-input.entry.js +1 -1
  116. package/dist/esm/ez-popover.entry.js +1 -1
  117. package/dist/esm/ez-popup.entry.js +1 -1
  118. package/dist/esm/ez-radio-button.entry.js +1 -1
  119. package/dist/esm/ez-scroller_2.entry.js +4 -4
  120. package/dist/esm/ez-search.entry.js +6 -7
  121. package/dist/esm/ez-sidebar-navigator.entry.js +2 -2
  122. package/dist/esm/ez-skeleton.entry.js +1 -1
  123. package/dist/esm/ez-split-button.entry.js +3 -3
  124. package/dist/esm/ez-split-item.entry.js +2 -2
  125. package/dist/esm/ez-split-panel.entry.js +1 -1
  126. package/dist/esm/ez-tabselector.entry.js +1 -1
  127. package/dist/esm/ez-text-area.entry.js +1 -1
  128. package/dist/esm/ez-text-input.entry.js +1 -1
  129. package/dist/esm/ez-time-input.entry.js +1 -1
  130. package/dist/esm/ez-toast.entry.js +1 -1
  131. package/dist/esm/ez-tree.entry.js +1 -1
  132. package/dist/esm/ez-upload.entry.js +1 -1
  133. package/dist/esm/ez-view-stack.entry.js +1 -1
  134. package/dist/esm/ezui.js +3 -3
  135. package/dist/esm/filter-column.entry.js +1 -1
  136. package/dist/esm/{index-5a720e56.js → index-baa5e267.js} +1 -3
  137. package/dist/esm/loader.js +3 -3
  138. package/dist/ezui/ezui.esm.js +1 -1
  139. package/dist/ezui/{p-e6b38ade.entry.js → p-0306dff7.entry.js} +1 -1
  140. package/dist/ezui/p-04f24913.js +1 -0
  141. package/dist/ezui/{p-82ac8b06.entry.js → p-072e6347.entry.js} +1 -1
  142. package/dist/ezui/p-08061683.entry.js +1 -0
  143. package/dist/ezui/{p-91ccae0c.entry.js → p-09de35a2.entry.js} +1 -1
  144. package/dist/ezui/{p-11b09aa1.entry.js → p-1285c902.entry.js} +1 -1
  145. package/dist/ezui/p-13d2fe2d.entry.js +1 -0
  146. package/dist/ezui/{p-b2f6bc0a.entry.js → p-17be134a.entry.js} +1 -1
  147. package/dist/ezui/{p-81461d2f.entry.js → p-1e7a8633.entry.js} +1 -1
  148. package/dist/ezui/{p-6b51c9cc.entry.js → p-1f50fa05.entry.js} +1 -1
  149. package/dist/ezui/{p-de870657.entry.js → p-2097d0cf.entry.js} +1 -1
  150. package/dist/ezui/{p-e4c7eb39.js → p-23a36bb6.js} +2 -2
  151. package/dist/ezui/p-34b6916c.entry.js +1 -0
  152. package/dist/ezui/{p-4b5f83a4.entry.js → p-3b4eeeb6.entry.js} +1 -1
  153. package/dist/ezui/p-3faa2b46.entry.js +1 -0
  154. package/dist/ezui/{p-e03c2774.entry.js → p-42533ea4.entry.js} +1 -1
  155. package/dist/ezui/{p-0378416a.entry.js → p-44caad9a.entry.js} +1 -1
  156. package/dist/ezui/{p-f291db18.entry.js → p-49456b34.entry.js} +1 -1
  157. package/dist/ezui/{p-7567ccdd.entry.js → p-555c9018.entry.js} +1 -1
  158. package/dist/ezui/{p-044d46d5.entry.js → p-5b205c80.entry.js} +1 -1
  159. package/dist/ezui/{p-c3b7a23e.entry.js → p-5bd5e68f.entry.js} +1 -1
  160. package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
  161. package/dist/ezui/{p-f1c2c19e.entry.js → p-650e4b6d.entry.js} +1 -1
  162. package/dist/ezui/{p-2d9b10ce.entry.js → p-669f875f.entry.js} +2 -2
  163. package/dist/ezui/{p-fc194825.entry.js → p-6e429cff.entry.js} +1 -1
  164. package/dist/ezui/{p-11bfeca3.entry.js → p-77a4bd35.entry.js} +1 -1
  165. package/dist/ezui/p-784fe207.entry.js +1 -0
  166. package/dist/ezui/{p-2af4e2de.entry.js → p-7922142b.entry.js} +1 -1
  167. package/dist/ezui/p-7af81663.entry.js +1 -0
  168. package/dist/ezui/{p-3f8c33e0.entry.js → p-7bc07c31.entry.js} +1 -1
  169. package/dist/ezui/{p-bef7daac.entry.js → p-84e439b9.entry.js} +1 -1
  170. package/dist/ezui/{p-8eef0f70.entry.js → p-85c8baae.entry.js} +1 -1
  171. package/dist/ezui/{p-1b08bf3c.entry.js → p-8888d9ed.entry.js} +1 -1
  172. package/dist/ezui/{p-82fa4b09.entry.js → p-8df1ca33.entry.js} +1 -1
  173. package/dist/ezui/{p-b0e71d23.entry.js → p-9050d2cd.entry.js} +1 -1
  174. package/dist/ezui/{p-e7395eae.entry.js → p-922ac38b.entry.js} +1 -1
  175. package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
  176. package/dist/ezui/p-a31b9c90.entry.js +1 -0
  177. package/dist/ezui/{p-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
  178. package/dist/ezui/{p-24ca32a3.entry.js → p-af95cd16.entry.js} +1 -1
  179. package/dist/ezui/{p-dbeee5aa.entry.js → p-bae4e180.entry.js} +1 -1
  180. package/dist/ezui/{p-30951bd7.entry.js → p-baf80b13.entry.js} +1 -1
  181. package/dist/ezui/p-bc2f844e.entry.js +1 -0
  182. package/dist/ezui/{p-868b56f7.entry.js → p-bcb53f27.entry.js} +1 -1
  183. package/dist/ezui/p-bf79aaa1.entry.js +1 -0
  184. package/dist/ezui/{p-92748142.entry.js → p-c0d9c4f8.entry.js} +1 -1
  185. package/dist/ezui/{p-7946f2d4.entry.js → p-c36b7c56.entry.js} +1 -1
  186. package/dist/ezui/{p-52100a6e.entry.js → p-cdc472cc.entry.js} +1 -1
  187. package/dist/ezui/p-e26f12dd.entry.js +1 -0
  188. package/dist/ezui/{p-36180f4d.entry.js → p-e85c48d7.entry.js} +1 -1
  189. package/dist/ezui/p-ecc2c1ec.entry.js +1 -0
  190. package/dist/ezui/{p-a7490128.entry.js → p-fcf0acce.entry.js} +1 -1
  191. package/dist/types/components/ez-button/ez-button.d.ts +1 -2
  192. package/dist/types/components/ez-card-item/ez-card-item.d.ts +0 -5
  193. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +4 -32
  194. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +3 -19
  195. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +0 -18
  196. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +2 -13
  197. package/dist/types/components/ez-grid/ez-grid.d.ts +0 -16
  198. package/dist/types/components/ez-search/ez-search.d.ts +2 -6
  199. package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -1
  200. package/dist/types/components.d.ts +12 -52
  201. package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -1
  202. package/package.json +1 -1
  203. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js +0 -1
  204. package/dist/ezui/p-2480e948.entry.js +0 -1
  205. package/dist/ezui/p-554522db.entry.js +0 -1
  206. package/dist/ezui/p-6ec40dec.entry.js +0 -1
  207. package/dist/ezui/p-70f1c812.entry.js +0 -1
  208. package/dist/ezui/p-a921e3e7.entry.js +0 -1
  209. package/dist/ezui/p-b858fc6e.entry.js +0 -1
  210. package/dist/ezui/p-b9fa2526.entry.js +0 -1
  211. package/dist/ezui/p-c17540c0.entry.js +0 -1
  212. package/dist/ezui/p-d6b29f38.entry.js +0 -1
  213. package/dist/ezui/p-e18d9e6a.entry.js +0 -1
  214. package/dist/ezui/p-f42855b9.js +0 -1
  215. package/dist/ezui/p-ff233029.entry.js +0 -1
  216. package/dist/types/utils/validators/recordvalidator/IInvalidCells.d.ts +0 -5
@@ -41,8 +41,6 @@ export default class AgGridController {
41
41
  this._filteredColumns = new Map();
42
42
  this._filterColumnleftPosition = 0;
43
43
  this._customFormatters = new Map();
44
- this._gridShowDom = false;
45
- this.peddingExecutionsOnGridShow = [];
46
44
  this._enterprise = enterprise;
47
45
  }
48
46
  getGridConfig() {
@@ -128,7 +126,7 @@ export default class AgGridController {
128
126
  this._doubleClickCallBack = options.onDoubleClick;
129
127
  this._multipleSelection = options.allowMultipleSelection;
130
128
  this._dataUnit = options.dataUnit;
131
- this._editionManager = new GridEditionManager(this._dataUnit, options.useEnterLikeTab, options.recordsValidator, options.editionIsDisabled, options.customEditors || this._customEditors, options.customRenders || this._customRenders, options.enableContinuousInsert);
129
+ this._editionManager = new GridEditionManager(this._dataUnit, options.useEnterLikeTab, options.recordsValidator, options.editionIsDisabled, options.customEditors || this._customEditors, options.customRenders || this._customRenders);
132
130
  this._statusResolver = options.statusResolver;
133
131
  if (this._dataUnit) {
134
132
  this._dataUnit.sortingProvider = this;
@@ -148,9 +146,6 @@ export default class AgGridController {
148
146
  defaultColDef: {
149
147
  headerClass: 'ez-grid__cell-header',
150
148
  cellClass: 'ez-grid__cell-body',
151
- cellClassRules: {
152
- 'invalidValue': (params) => this._editionManager.hasInvalidField(params.colDef.field, params.data["__record__id__"]),
153
- },
154
149
  cellStyle: {
155
150
  height: '100%'
156
151
  }
@@ -190,23 +185,6 @@ export default class AgGridController {
190
185
  }
191
186
  this._gridOptions.api.setHeaderHeight(this.getHeaderRowHeight());
192
187
  this._customFormatters = options.customFormatters;
193
- const observerCallback = (entries) => {
194
- entries.forEach(entry => {
195
- if (entry.isIntersecting) {
196
- this._gridShowDom = true;
197
- this.peddingExecutionsOnGridShow.forEach(func => func());
198
- this.peddingExecutionsOnGridShow = [];
199
- }
200
- else {
201
- this._gridShowDom = false;
202
- }
203
- });
204
- };
205
- this.observer = new IntersectionObserver(observerCallback, {
206
- root: null,
207
- threshold: 0.1
208
- });
209
- this.observer.observe(container);
210
188
  }
211
189
  }
212
190
  processFormatterCellCallback(params) {
@@ -397,16 +375,10 @@ export default class AgGridController {
397
375
  throw new Error('Erro interno: Grid ainda não inicializado.');
398
376
  }
399
377
  }
400
- updateRows(rows) {
378
+ updateRows() {
401
379
  if (this._grid === undefined) {
402
380
  throw new Error('Erro interno: Grid ainda não inicializado.');
403
381
  }
404
- rows === null || rows === void 0 ? void 0 : rows.forEach(row => this.updateRowData(row));
405
- }
406
- updateRowData(row) {
407
- const node = this._gridOptions.api.getRowNode(row[this._idAttribName]);
408
- node.setData(Object.assign({}, row));
409
- this._editionManager.recordValidate();
410
382
  }
411
383
  selectAll(quietly = false) {
412
384
  try {
@@ -489,42 +461,14 @@ export default class AgGridController {
489
461
  });
490
462
  r.setData(data);
491
463
  });
492
- this._gridOptions.api.refreshCells({ force: true });
493
- const invalidCell = this._editionManager.getInvalidCell();
494
- if (invalidCell) {
495
- const rowNode = this._gridOptions.api.getRowNode(invalidCell.recordId);
496
- if (rowNode && invalidCell.field) {
497
- this.startEdition(rowNode.rowIndex, this._gridOptions.columnApi.getColumn(invalidCell.field.name));
498
- }
499
- }
500
464
  }
501
465
  }
502
- savingCanceled(fields, recordId) {
503
- const displayedColumns = this._gridOptions.columnApi.getAllDisplayedColumns();
504
- const rowIndex = this._gridOptions.api.getRowNode(recordId).rowIndex;
505
- const columnFocus = displayedColumns.find(column => this.isColumnEditable(rowIndex, column) && fields.find(field => field.name === column.getColId()));
506
- this.focusByCollAndRow(columnFocus, rowIndex);
507
- this.startEdition(rowIndex, columnFocus);
508
- }
509
- refresh(scrollToSelectedRow = false) {
466
+ refresh() {
510
467
  if (this._grid === undefined) {
511
468
  throw new Error('Erro interno: Grid ainda não inicializado.');
512
469
  }
513
470
  this._gridOptions.api.refreshServerSide({ purge: true });
514
471
  this._options.onRefresh();
515
- if (scrollToSelectedRow)
516
- this.scrollToSelectedRow();
517
- }
518
- scrollToSelectedRow() {
519
- const rowNode = this._gridOptions.api.getSelectedNodes();
520
- if (!rowNode || rowNode.length === 0)
521
- return;
522
- if (this._gridShowDom) {
523
- this._gridOptions.api.ensureNodeVisible(rowNode[0]);
524
- }
525
- else {
526
- this.peddingExecutionsOnGridShow.push(() => this._gridOptions.api.ensureNodeVisible(rowNode[0]));
527
- }
528
472
  }
529
473
  focusOnGridContainer() {
530
474
  this._container.setAttribute('tabindex', '-1');
@@ -543,14 +487,6 @@ export default class AgGridController {
543
487
  var _a;
544
488
  (_a = this._dataSource) === null || _a === void 0 ? void 0 : _a.setAutoFocus(autoFocus);
545
489
  }
546
- setEnableGridInsert(enable) {
547
- var _a;
548
- (_a = this._dataSource) === null || _a === void 0 ? void 0 : _a.setEnableGridInsert(enable);
549
- }
550
- setEnableContinuousInsert(enable) {
551
- var _a;
552
- (_a = this._editionManager) === null || _a === void 0 ? void 0 : _a.setEnableContinuousInsert(enable);
553
- }
554
490
  setFocusFirstRow() {
555
491
  const firstRow = this._gridOptions.api.getDisplayedRowAtIndex(0);
556
492
  if (firstRow) {
@@ -566,38 +502,9 @@ export default class AgGridController {
566
502
  this.setFocusOnRow(lastRow.rowIndex);
567
503
  }
568
504
  }
569
- startEditionOnRowByIndex(rowIndex) {
570
- const firstCol = this.getFirstEditableColl(rowIndex);
571
- this.focusByCollAndRow(firstCol, rowIndex);
572
- this.startEdition(rowIndex, firstCol);
573
- }
574
- startEdition(rowIndex, firstCol) {
575
- this._gridOptions.api.clearRangeSelection();
576
- this._gridOptions.api.addCellRange({ rowStartIndex: rowIndex, rowEndIndex: rowIndex, columns: [firstCol] });
577
- this._gridOptions.api.setFocusedCell(rowIndex, firstCol);
578
- this._gridOptions.api.startEditingCell({ rowIndex, colKey: firstCol });
579
- const cellEditor = this._gridOptions.api.getCellEditorInstances()[0];
580
- if (cellEditor) {
581
- cellEditor.focusIn();
582
- }
583
- }
584
- getFirstEditableColl(rowIndex) {
585
- const displayedColumns = this._gridOptions.columnApi.getAllDisplayedColumns();
586
- return displayedColumns.find(column => this.isColumnEditable(rowIndex, column));
587
- }
588
- isColumnEditable(rowIndex, column) {
589
- if (column.getColDef().headerName === '' || rowIndex === -1)
590
- return false;
591
- const rowId = this._dataUnit.records[rowIndex][this._idAttribName];
592
- const rowNode = this._gridOptions.api.getRowNode(rowId);
593
- return column.isCellEditable(rowNode);
594
- }
595
505
  setFocusOnRow(rowIndex) {
596
506
  let displayedColumns = this._gridOptions.columnApi.getAllDisplayedColumns();
597
- let firstColl = displayedColumns.find(column => column.getColDef().headerName !== '');
598
- this.focusByCollAndRow(firstColl, rowIndex);
599
- }
600
- focusByCollAndRow(firstCell, rowIndex) {
507
+ let firstCell = displayedColumns.find(column => column.getColDef().headerName !== '');
601
508
  this._gridOptions.api.ensureColumnVisible(firstCell);
602
509
  this._gridOptions.api.ensureIndexVisible(rowIndex);
603
510
  this._gridOptions.api.setFocusedCell(rowIndex, firstCell);
@@ -977,13 +884,4 @@ export default class AgGridController {
977
884
  this._editionManager.setCellRenders(customRenders);
978
885
  (_a = this._gridOptions) === null || _a === void 0 ? void 0 : _a.api.redrawRows();
979
886
  }
980
- clearInvalidCells(action) {
981
- if (!this._editionManager)
982
- return;
983
- this._editionManager.clearInvalidCells(action);
984
- this._gridOptions.api.refreshCells({ force: true });
985
- }
986
- destroy() {
987
- this.observer.disconnect();
988
- }
989
887
  }
@@ -2,73 +2,6 @@ import { Action, ObjectUtils } from '@sankhyalabs/core';
2
2
  import { EZ_GRID_LOADING_SOURCE } from "../../../../utils/constants";
3
3
  import { DataSourceInterceptor } from "./DataSourceInterceptor";
4
4
  export default class DataSource {
5
- handleSavingCanceled(action) {
6
- var _a, _b, _c, _d;
7
- if (!((_a = action.payload) === null || _a === void 0 ? void 0 : _a.fields) || !((_b = action.payload) === null || _b === void 0 ? void 0 : _b.recordId))
8
- return;
9
- 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);
10
- }
11
- handleDataChanged(action) {
12
- var _a, _b;
13
- if (!this._options.enableGridInsert) {
14
- this.handleRefresh(action);
15
- return;
16
- }
17
- this.updateGridRowNodes((_b = (_a = action.payload) === null || _a === void 0 ? void 0 : _a.records) !== null && _b !== void 0 ? _b : []);
18
- }
19
- /**
20
- * Nesse ponto, o registro já se encontra atualizado no DU,
21
- * basta então passar seu valor para que a garde possa atualizar sua linha.
22
- */
23
- updateGridRowNodes(recordIDList) {
24
- const recordsToUpdate = recordIDList === null || recordIDList === void 0 ? void 0 : recordIDList.map(id => this.getRecordById(id));
25
- this._controller.updateRows(recordsToUpdate);
26
- }
27
- getRecordById(recordId) {
28
- return this._dataUnit.records.find(record => record['__record__id__'] === recordId);
29
- }
30
- /**
31
- * Em caso de necessidade de reload (isWaitingToReload), eh preciso chamar o dataUnit.gotoPage, pois ele aplica tambem a ordenacao dos registros,
32
- * enquanto que o _controller.refresh apenas recarrega os dados na ordem que atua.
33
- */
34
- handleRefreshOrReload(action) {
35
- if (this._dataUnit.isWaitingToReload()) {
36
- this.handleReload();
37
- return;
38
- }
39
- this.handleRefresh(action);
40
- }
41
- handleReload() {
42
- this._dataUnit.setWaitingToReload(false);
43
- this._dataUnit.gotoPage(0);
44
- }
45
- handleRefresh(action) {
46
- if (this.isSilentChange(action)) {
47
- return;
48
- }
49
- this._controller.refresh(action.type === Action.DATA_SAVED);
50
- }
51
- handleRecordsAdded() {
52
- if (this._options.enableGridInsert) {
53
- this._controller.refresh();
54
- this.focusOnNewRecord();
55
- }
56
- }
57
- focusOnNewRecord() {
58
- /**
59
- * O SetTimeout eh utilizado pois é preciso aguardar que o novo registro seja renderizado na grade.
60
- * Tentamos utilizar a api da grade para adicionar um event listener, porém na versão que utilizamos, não existe
61
- * algo que resolva nosso cenário.
62
- *
63
- * Sugiro no futuro utilizar algo como o applyServerSideTransaction, porém será preciso lidar com os handlers
64
- * e callbacks implementados no AgGridController e GridEditionManager.
65
- */
66
- setTimeout(() => {
67
- var _a;
68
- const newRowIndex = ((_a = this._dataUnit.records) === null || _a === void 0 ? void 0 : _a.length) - 1;
69
- this._controller.startEditionOnRowByIndex(newRowIndex);
70
- }, 500);
71
- }
72
5
  updateLoadedRecords(action) {
73
6
  const records = action.payload;
74
7
  if ((records === null || records === void 0 ? void 0 : records.length) > 0) {
@@ -120,20 +53,15 @@ export default class DataSource {
120
53
  this._options.onPaginationUpdate(this._dataUnit.getPaginationInfo());
121
54
  }
122
55
  break;
123
- case Action.RECORDS_ADDED:
124
- this.handleRecordsAdded();
125
- break;
56
+ case Action.RECORDS_REMOVED:
126
57
  case Action.DATA_SAVED:
127
58
  case Action.EDITION_CANCELED:
128
- this._controller.clearInvalidCells(action.type);
129
- this.handleRefreshOrReload(action);
130
- break;
131
59
  case Action.DATA_CHANGED:
132
60
  case Action.DATA_RESOLVED:
133
- this.handleDataChanged(action);
134
- break;
135
- case Action.RECORDS_REMOVED:
136
- this.handleRefresh(action);
61
+ if (this.isSilentChange(action)) {
62
+ return;
63
+ }
64
+ this._controller.refresh();
137
65
  break;
138
66
  case Action.SELECTION_CHANGED:
139
67
  case Action.NEXT_SELECTED:
@@ -143,9 +71,6 @@ export default class DataSource {
143
71
  case Action.RECORD_LOADED:
144
72
  this.updateLoadedRecords(action);
145
73
  break;
146
- case Action.SAVING_CANCELED:
147
- this.handleSavingCanceled(action);
148
- break;
149
74
  }
150
75
  };
151
76
  this._dataUnit = dataUnit;
@@ -167,9 +92,6 @@ export default class DataSource {
167
92
  setAutoFocus(autoFocus) {
168
93
  this._options.autoFocus = autoFocus;
169
94
  }
170
- setEnableGridInsert(enable) {
171
- this._options.enableGridInsert = enable;
172
- }
173
95
  getRows(params) {
174
96
  if (this.needReload(params)) {
175
97
  this._lastLoadingParams = params;
@@ -1,20 +1,19 @@
1
- import { Action, UserInterface } from "@sankhyalabs/core";
1
+ import { UserInterface } from "@sankhyalabs/core";
2
2
  import { KeyCode } from "ag-grid-community";
3
3
  import { RecordValidationProcessor } from "../../../../utils/validators/recordvalidator/RecordValidationProcessor";
4
4
  import EzCellEditor from "./editor/EzCellEditor";
5
5
  import EzGridCustomCellEditor from "./components/EzGridCustomCellEditor";
6
6
  import EzGridCustomCellRender from "./components/EzGridCustomCellRender";
7
7
  export default class GridEditionManager {
8
- constructor(dataUnit, useEnterLikeTab, recordsValidator, editionIsDisabled, customEditors, customRenders, enableContinuousInsert) {
8
+ constructor(dataUnit, useEnterLikeTab, recordsValidator, editionIsDisabled, customEditors, customRenders) {
9
9
  this._dataUnit = dataUnit;
10
10
  this._recordValidationProcessor = new RecordValidationProcessor(this._dataUnit, {
11
11
  getRequiredFields: () => this.getRequiredFields(),
12
- markAsInvalid: (invalidField, recordId) => { this.setInvalidCell(invalidField, recordId); },
13
- getMessageForField: () => null,
12
+ markAsInvalid: () => { },
13
+ getMessageForField: () => null
14
14
  }, recordsValidator);
15
15
  this._useEnterLikeTab = useEnterLikeTab;
16
16
  this._editionIsDisabled = editionIsDisabled;
17
- this._enableContinuousInsert = enableContinuousInsert;
18
17
  this._customEditors = customEditors;
19
18
  this._customRenders = customRenders;
20
19
  }
@@ -29,10 +28,6 @@ export default class GridEditionManager {
29
28
  };
30
29
  return options;
31
30
  }
32
- canContinuousInsert() {
33
- var _a;
34
- return this._enableContinuousInsert && (this._dataUnit.records.length - 1) === ((_a = this._lastCellEdited) === null || _a === void 0 ? void 0 : _a.rowIndex);
35
- }
36
31
  proceedAutoSave() {
37
32
  if (!this._dataUnit.isDirty()) {
38
33
  this.saveSuccess();
@@ -45,33 +40,15 @@ export default class GridEditionManager {
45
40
  if (currentRercord == undefined) {
46
41
  return;
47
42
  }
48
- this._invalidCell = undefined;
49
43
  this._recordValidationProcessor
50
- .validate(true)
44
+ .validate()
51
45
  .then(() => {
52
46
  this._dataUnit.saveData()
53
- .then(() => {
54
- if (this.canContinuousInsert()) {
55
- this._dataUnit.addRecord();
56
- }
57
- else {
58
- this.saveSuccess();
59
- }
60
- })
47
+ .then(() => this.saveSuccess())
61
48
  .catch(reason => this.saveFail(reason));
62
49
  })
63
50
  .catch(reason => this.saveFail(reason));
64
51
  }
65
- async recordValidate() {
66
- if (!this._dataUnit.isDirty())
67
- return;
68
- try {
69
- this._invalidCell = undefined;
70
- await this._recordValidationProcessor.validate(false);
71
- }
72
- catch (error) { }
73
- this._gridOptions.api.refreshCells({ force: true });
74
- }
75
52
  navigateByEnterKey(keyboardEvent) {
76
53
  const backwards = keyboardEvent.shiftKey;
77
54
  if (this._useEnterLikeTab) {
@@ -280,34 +257,6 @@ export default class GridEditionManager {
280
257
  setCellRenders(customRenders) {
281
258
  this._customRenders = customRenders;
282
259
  }
283
- setInvalidCell(invalidCell, recordId) {
284
- this._invalidCell = { field: invalidCell, recordId };
285
- }
286
- getInvalidCell() {
287
- return this._invalidCell;
288
- }
289
- clearInvalidCells(action) {
290
- this._invalidCell = undefined;
291
- if (action === Action.EDITION_CANCELED) {
292
- this._isGridEdition = false;
293
- }
294
- else if (action === Action.DATA_SAVED && this.canContinuousInsert()) {
295
- this._dataUnit.addRecord();
296
- }
297
- }
298
- setEnableContinuousInsert(enable) {
299
- this._enableContinuousInsert = enable;
300
- }
301
- hasInvalidField(fieldName, recordId) {
302
- if (!this.hasInvalidCell())
303
- return false;
304
- return this._invalidCell.field.name === fieldName && this._invalidCell.recordId === recordId;
305
- }
306
- hasInvalidCell() {
307
- if (!this._invalidCell || !this._invalidCell.field || !this._invalidCell.recordId)
308
- return false;
309
- return true;
310
- }
311
260
  }
312
261
  class TargetEdition {
313
262
  constructor(rowIndex, column, backwards) {
@@ -9,8 +9,7 @@ export const buildSearch = ({ name, required, readOnly, eGridCell, dataUnit }) =
9
9
  />`);
10
10
  const loader = ApplicationContext.getContextValue("__EZUI__SEARCH__OPTION__LOADER__");
11
11
  ezSearch.optionLoader = (argument) => loader(argument, name, dataUnit);
12
- ezSearch.ensureClearButtonVisible = true;
13
- ezSearch.suppressPreLoad = true;
12
+ ezSearch.fromGrid = true;
14
13
  ezSearch.listOptionsPosition = { verticalPosition: 29, bottomLimit: getViewPortHeight(eGridCell), hardPosition: true };
15
14
  ezSearch.valueGetter = () => ezSearch.getValueAsync();
16
15
  return ezSearch;
@@ -36,6 +36,5 @@ export function buildOptions(dataUnit) {
36
36
  serverURL: '',
37
37
  statusResolver: {},
38
38
  useEnterLikeTab: true,
39
- enableContinuousInsert: false,
40
39
  });
41
40
  }
@@ -99,8 +99,14 @@
99
99
  }
100
100
 
101
101
  .grid-header__pagination{
102
+ width: 30%;
103
+ min-width: 100px;
102
104
  justify-content: flex-end;
103
- flex-wrap: nowrap;
105
+ flex-wrap: wrap;
106
+ }
107
+
108
+ .grid-header__left-container{
109
+ width: 70%
104
110
  }
105
111
 
106
112
  .grid-header__pagination-label {
@@ -111,19 +117,3 @@
111
117
  .overflowed {
112
118
  display: none;
113
119
  }
114
-
115
- .pagination-contracted {
116
- width: 100px;
117
- }
118
-
119
- .pagination-expanded{
120
- min-width: 150px;
121
- }
122
-
123
- .left__header-contracted {
124
- width: calc(100% - 100px);
125
- }
126
-
127
- .left__header-expanded{
128
- flex-grow: 1;
129
- }
@@ -36,9 +36,6 @@ export class EzGrid {
36
36
  this.recordsValidator = undefined;
37
37
  this.canEdit = true;
38
38
  this.autoFocus = true;
39
- this.paginationCounterMode = 'show';
40
- this.enableGridInsert = false;
41
- this.enableContinuousInsert = true;
42
39
  }
43
40
  /**
44
41
  * Aplica a definição de colunas.
@@ -174,14 +171,6 @@ export class EzGrid {
174
171
  this._refPaginationLabelTooltip.setAttribute('data-tooltip', this._getPaginationTooltip());
175
172
  }
176
173
  }
177
- observePaginationCounterMode(newValue) {
178
- if (newValue === 'hidden') {
179
- this._hidePaginationDescription();
180
- }
181
- if (newValue === 'show') {
182
- this._showPaginationDescription();
183
- }
184
- }
185
174
  onSelectionChange(evt) {
186
175
  this._currentPageSelected = evt.detail.selectionHeaderStatus === true;
187
176
  if (this.dataUnit) {
@@ -345,16 +334,11 @@ export class EzGrid {
345
334
  this._paginationChangedByKeyboard = false;
346
335
  (_a = this._gridApi) === null || _a === void 0 ? void 0 : _a.clearRangeSelection();
347
336
  }
348
- resolvePaginationClassMode() {
349
- if (this.paginationCounterMode == 'show')
350
- return "pagination-expanded";
351
- return "pagination-contracted";
352
- }
353
337
  getPaginationControl() {
354
338
  if (!this._paginationInfo)
355
339
  return null;
356
340
  const { currentPage, hasMore } = this._paginationInfo;
357
- return (h("div", { class: `grid-header__container grid-header__pagination ${this.resolvePaginationClassMode()}`, ref: ref => (this._refPaginationControl = ref) }, h("div", { class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium", ref: (element) => (this._refPaginationLabel = element) }, h("span", { class: "grid-header__pagination-label" }, this.paginationCounterMode == 'show' && h("strong", { class: "ez-text ez-text--primary ez-text--medium" }, this._getActualPageLabel()), this.paginationCounterMode == 'show' && this._getRemainingPageLabel())), h("div", { id: "grid-pagination-tooltip", ref: (element) => (this._refPaginationLabelTooltip = element), class: "ez-flex ez-margin-right--medium", title: `${this._getActualPageLabel()} ${this._getRemainingPageLabel()}` }, h("ez-button", { size: "small", class: "ez-margin-right--medium", iconName: "chevron-left", mode: "icon", enabled: currentPage > 0, onClick: () => this.previousPage(), label: "P\u00E1gina anterior" }), h("ez-button", { size: "small", iconName: "chevron-right", mode: "icon", enabled: hasMore, onClick: () => this.nextPage(), label: "Pr\u00F3xima P\u00E1gina" }))));
341
+ return (h("div", { class: "grid-header__container grid-header__pagination", ref: ref => (this._refPaginationControl = ref) }, h("div", { class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium", ref: (element) => (this._refPaginationLabel = element) }, h("span", { class: "grid-header__pagination-label" }, h("strong", { class: "ez-text ez-text--primary ez-text--medium" }, this._getActualPageLabel()), this._getRemainingPageLabel())), h("div", { id: "grid-pagination-tooltip", ref: (element) => (this._refPaginationLabelTooltip = element), class: "ez-flex ez-margin-right--medium" }, h("ez-button", { size: "small", class: "ez-margin-right--medium", iconName: "chevron-left", mode: "icon", enabled: currentPage > 0, onClick: () => this.previousPage(), label: "P\u00E1gina anterior" }), h("ez-button", { size: "small", iconName: "chevron-right", mode: "icon", enabled: hasMore, onClick: () => this.nextPage(), label: "Pr\u00F3xima P\u00E1gina" }))));
358
342
  }
359
343
  componentDidLoad() {
360
344
  this._gridController.initDatagrid(this._container, {
@@ -378,8 +362,6 @@ export class EzGrid {
378
362
  editionIsDisabled: () => !this.canEdit,
379
363
  customFormatters: this._customFormatters,
380
364
  autoFocus: this.autoFocus,
381
- enableGridInsert: this.enableGridInsert,
382
- enableContinuousInsert: this.enableContinuousInsert,
383
365
  onRefresh: () => {
384
366
  if (this.dataUnit) {
385
367
  this.setSelection(this.dataUnit.getSelectionInfo());
@@ -396,8 +378,7 @@ export class EzGrid {
396
378
  this.setEvents();
397
379
  this.componentReady.emit();
398
380
  this._gridController.configFilterColumn(this._filterColumn);
399
- if (this.paginationCounterMode === 'auto')
400
- this._initHeaderOverflowWatcher();
381
+ this._initHeaderOverflowWatcher();
401
382
  }
402
383
  handlePaginationChange(selectFirstRecord, paginationInfo) {
403
384
  var _a;
@@ -424,7 +405,8 @@ export class EzGrid {
424
405
  return this._getActualPageLabel() + this._getRemainingPageLabel();
425
406
  }
426
407
  _initHeaderOverflowWatcher() {
427
- this._headerOverflowWatcher = new OverflowWatcher(this.buildOverFlowWatcherParams());
408
+ if (this._refPaginationControl)
409
+ this._headerOverflowWatcher = new OverflowWatcher(this.buildOverFlowWatcherParams());
428
410
  }
429
411
  buildOverFlowWatcherParams() {
430
412
  return {
@@ -473,8 +455,6 @@ export class EzGrid {
473
455
  }
474
456
  componentDidUpdate() {
475
457
  this._gridController.setAutoFocus(this.autoFocus);
476
- this._gridController.setEnableGridInsert(this.enableGridInsert);
477
- this._gridController.setEnableContinuousInsert(this.enableContinuousInsert);
478
458
  if (this.dataUnit) {
479
459
  this.setSelection(this.dataUnit.getSelectionInfo());
480
460
  }
@@ -486,14 +466,9 @@ export class EzGrid {
486
466
  hideHeader() {
487
467
  return (!!this._element.getAttribute("no-header") && !this._paginationInfo);
488
468
  }
489
- resolveLeftHeaderClass() {
490
- if (this.paginationCounterMode == 'show')
491
- return "left__header-expanded";
492
- return "left__header-contracted";
493
- }
494
469
  render() {
495
470
  var _a;
496
- return (h(Host, { "no-header": this.hideHeader() }, h("div", { class: "grid__container ez-grid", ref: elem => (this._container = elem) }), h("div", { class: "ez-box ez-box--shadow ez-padding--small grid-header" }, h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), h("div", { class: "grid-header__position" }, h("div", { class: `grid-header__container grid-header__left-container ${this.resolveLeftHeaderClass()}` }, h("slot", { name: "leftButtons" })), this.getPaginationControl())), h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
471
+ return (h(Host, { "no-header": this.hideHeader() }, h("div", { class: "grid__container ez-grid", ref: elem => (this._container = elem) }), h("div", { class: "ez-box ez-box--shadow ez-padding--medium grid-header" }, h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), h("div", { class: "grid-header__position" }, h("div", { class: "grid-header__container grid-header__left-container" }, h("slot", { name: "leftButtons" })), this.getPaginationControl())), h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
497
472
  ${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
498
473
  ` }, h(SelectionCounter, { selectionCount: this._selectionCount, currentPageSelected: this._currentPageSelected, paginationInfo: this._paginationInfo, canSelectAll: (_a = this.selectionToastConfig) === null || _a === void 0 ? void 0 : _a.canSelectAll, allRecordSelected: this._isAllSelection, onSelectAll: () => this.onSelectAllRecords(), onSelectPage: () => this.onSelectPageRecords(), onClearAll: () => this.onClearSelectedRecords(), onClose: () => (this._showSelectionCounter = false) })), h("div", { class: "grid__footer" }, h("slot", { name: "footer" }))));
499
474
  }
@@ -723,60 +698,6 @@ export class EzGrid {
723
698
  "attribute": "auto-focus",
724
699
  "reflect": false,
725
700
  "defaultValue": "true"
726
- },
727
- "paginationCounterMode": {
728
- "type": "string",
729
- "mutable": false,
730
- "complexType": {
731
- "original": "'show' | 'hidden' | 'auto'",
732
- "resolved": "\"auto\" | \"hidden\" | \"show\"",
733
- "references": {}
734
- },
735
- "required": false,
736
- "optional": true,
737
- "docs": {
738
- "tags": [],
739
- "text": "Define se a grid ser\u00E1 focada ao ser carregada."
740
- },
741
- "attribute": "pagination-counter-mode",
742
- "reflect": false,
743
- "defaultValue": "'show'"
744
- },
745
- "enableGridInsert": {
746
- "type": "boolean",
747
- "mutable": false,
748
- "complexType": {
749
- "original": "boolean",
750
- "resolved": "boolean",
751
- "references": {}
752
- },
753
- "required": false,
754
- "optional": true,
755
- "docs": {
756
- "tags": [],
757
- "text": "Ativa inser\u00E7\u00E3o de registros no modo grade."
758
- },
759
- "attribute": "enable-grid-insert",
760
- "reflect": false,
761
- "defaultValue": "false"
762
- },
763
- "enableContinuousInsert": {
764
- "type": "boolean",
765
- "mutable": false,
766
- "complexType": {
767
- "original": "boolean",
768
- "resolved": "boolean",
769
- "references": {}
770
- },
771
- "required": false,
772
- "optional": true,
773
- "docs": {
774
- "tags": [],
775
- "text": "Ativa/desativa a inser\u00E7\u00E3o continua na grade\nS\u00F3 funciona quando a prop enableGridInsert est\u00E1 ativa"
776
- },
777
- "attribute": "enable-continuous-insert",
778
- "reflect": false,
779
- "defaultValue": "true"
780
701
  }
781
702
  };
782
703
  }
@@ -1292,9 +1213,6 @@ export class EzGrid {
1292
1213
  }, {
1293
1214
  "propName": "_paginationInfo",
1294
1215
  "methodName": "updatePaginationTooltip"
1295
- }, {
1296
- "propName": "paginationCounterMode",
1297
- "methodName": "observePaginationCounterMode"
1298
1216
  }];
1299
1217
  }
1300
1218
  static get listeners() {
@@ -147,7 +147,6 @@ p {
147
147
 
148
148
  .item-content {
149
149
  display: flex;
150
- align-items: center;
151
150
  overflow: hidden;
152
151
  justify-content: flex-start;
153
152
  width: 100%;
@@ -177,7 +176,7 @@ p {
177
176
 
178
177
  .draggable-list li > div {
179
178
  /*public*/
180
- padding: var(--space--3xs, 4px) var(--space--3xs, 4px);
179
+ padding: var(--space--2xs, 8px) var(--space--3xs, 4px);
181
180
  margin: var(--ez-list__item--margin);
182
181
  }
183
182
 
@@ -1,6 +1,6 @@
1
1
  :host {
2
2
  /*@doc Define a camada em que o componente será exibido.*/
3
- --ez-modal-z-index: var(--elevation--22, 22);
3
+ --ez-modal-z-index: var(--elevation--12, 12);;
4
4
  /*@doc Define o espaçamento vertical do conteúdo do modal.*/
5
5
  --ez-modal-vertical-padding: var(--space--large, 24px);
6
6
  /*@doc Define o padding entre o conteúdo e o modal */
@@ -48,7 +48,7 @@ export class EzModalContainer {
48
48
  this._closeButton.focus();
49
49
  }
50
50
  render() {
51
- return (h(Host, null, h("button", { class: "ez-modal-container__focus-ctrl", onFocusin: () => this.focusLast() }), h("div", { ref: ref => this._modalRef = ref, tabIndex: -1, class: "ez-modal-container__header-container" }, this.showTitleBar && (h("div", { class: "ez-modal-container__header ez-margin-bottom--medium" }, h("div", { class: "ez-col ez-align--middle ez-modal-container__title" }, h("h2", { class: "ez-text ez-title--large ez-title--primary ez-text--bold ez-margin-vertical--extra-small" }, this.modalTitle), this.modalSubTitle && (h("div", { class: "ez-text ez-text--medium ez-text--primary ez-margin-vertical--extra-small" }, this.modalSubTitle))), (this.showCloseButton && h("button", { ref: ref => this._closeButton = ref, class: "ez-modal-container__close-button", onClick: () => this.ezModalAction.emit(ModalAction.CLOSE) }, h("ez-icon", { class: "ez-modal-container__close-icon", size: "medium", iconName: "close" })))))), h("div", { class: "ez-modal-container__content" }, h("slot", null)), h("div", { class: "ez-modal-container__footer" }, this.cancelIsVisible() && (h("ez-button", { label: this.cancelButtonLabel, enabled: this.cancelButtonStatus !== ModalButtonStatus.DISABLED, onClick: () => this.ezModalAction.emit(ModalAction.CANCEL) })), this.okIsVisible() && (h("ez-button", { ref: ref => this._okButton = ref, class: "ez-button--primary", label: this.okButtonLabel, enabled: this.okButtonStatus !== ModalButtonStatus.DISABLED, onClick: () => this.ezModalAction.emit(ModalAction.OK) }))), h("button", { class: "ez-modal-container__focus-ctrl", onFocusin: () => this.focusFirst() })));
51
+ return (h(Host, null, h("button", { class: "ez-modal-container__focus-ctrl", onFocusin: () => this.focusLast() }), h("div", { ref: ref => this._modalRef = ref, tabIndex: -1, class: "ez-modal-container__header-container" }, this.showTitleBar && (h("div", { class: "ez-modal-container__header ez-margin-bottom--large" }, h("div", { class: "ez-col ez-align--middle ez-modal-container__title" }, h("h2", { class: "ez-text ez-title--large ez-title--primary ez-text--bold ez-margin-vertical--extra-small" }, this.modalTitle), this.modalSubTitle && (h("div", { class: "ez-text ez-text--medium ez-text--primary ez-margin-vertical--extra-small" }, this.modalSubTitle))), (this.showCloseButton && h("button", { ref: ref => this._closeButton = ref, class: "ez-modal-container__close-button", onClick: () => this.ezModalAction.emit(ModalAction.CLOSE) }, h("ez-icon", { class: "ez-modal-container__close-icon", size: "medium", iconName: "close" })))))), h("div", { class: "ez-modal-container__content" }, h("slot", null)), h("div", { class: "ez-modal-container__footer" }, this.cancelIsVisible() && (h("ez-button", { label: this.cancelButtonLabel, enabled: this.cancelButtonStatus !== ModalButtonStatus.DISABLED, onClick: () => this.ezModalAction.emit(ModalAction.CANCEL) })), this.okIsVisible() && (h("ez-button", { ref: ref => this._okButton = ref, class: "ez-button--primary", label: this.okButtonLabel, enabled: this.okButtonStatus !== ModalButtonStatus.DISABLED, onClick: () => this.ezModalAction.emit(ModalAction.OK) }))), h("button", { class: "ez-modal-container__focus-ctrl", onFocusin: () => this.focusFirst() })));
52
52
  }
53
53
  static get is() { return "ez-modal-container"; }
54
54
  static get encapsulation() { return "scoped"; }