@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.
- package/dist/cjs/{RecordValidationProcessor-10846595.js → RecordValidationProcessor-4c893e04.js} +1 -7
- package/dist/cjs/ez-actions-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-alert.cjs.entry.js +1 -1
- package/dist/cjs/ez-application.cjs.entry.js +1 -1
- package/dist/cjs/ez-badge.cjs.entry.js +1 -1
- package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ez-button.cjs.entry.js +6 -12
- package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
- package/dist/cjs/ez-card-item_3.cjs.entry.js +5 -14
- package/dist/cjs/ez-chart.cjs.entry.js +1 -1
- package/dist/cjs/ez-check.cjs.entry.js +2 -2
- package/dist/cjs/ez-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +2 -2
- package/dist/cjs/ez-combo-box.cjs.entry.js +1 -1
- package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +2 -2
- package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +1 -1
- package/dist/cjs/ez-form.cjs.entry.js +3 -3
- package/dist/cjs/ez-grid.cjs.entry.js +24 -282
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-list.cjs.entry.js +2 -2
- package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +2 -2
- package/dist/cjs/ez-modal.cjs.entry.js +2 -2
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +2 -2
- package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-popover.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +1 -1
- package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-scroller_2.cjs.entry.js +4 -4
- package/dist/cjs/ez-search.cjs.entry.js +6 -7
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +2 -2
- package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-button.cjs.entry.js +3 -3
- package/dist/cjs/ez-split-item.cjs.entry.js +2 -2
- package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
- package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/ez-tree.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +1 -1
- package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +2 -2
- package/dist/cjs/filter-column.cjs.entry.js +1 -1
- package/dist/cjs/{index-9e5554cb.js → index-a7b0c73d.js} +0 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/ez-button/ez-button.css +2 -13
- package/dist/collection/components/ez-button/ez-button.js +6 -12
- package/dist/collection/components/ez-card-item/ez-card-item.css +10 -60
- package/dist/collection/components/ez-card-item/ez-card-item.js +3 -30
- package/dist/collection/components/ez-check/ez-check.css +6 -1
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +2 -2
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +4 -106
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +5 -83
- package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +6 -57
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +1 -2
- package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +0 -1
- package/dist/collection/components/ez-grid/ez-grid.css +7 -17
- package/dist/collection/components/ez-grid/ez-grid.js +5 -87
- package/dist/collection/components/ez-list/ez-list.css +1 -2
- package/dist/collection/components/ez-modal/ez-modal.css +1 -1
- package/dist/collection/components/ez-modal-container/ez-modal-container.js +1 -1
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +1 -1
- package/dist/collection/components/ez-scroller/ez-scroller.css +0 -1
- package/dist/collection/components/ez-search/ez-search.css +8 -19
- package/dist/collection/components/ez-search/ez-search.js +7 -26
- package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +0 -3
- package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +1 -1
- package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css +1 -3
- package/dist/collection/components/ez-split-button/ez-split-button.css +1 -1
- package/dist/collection/components/ez-split-button/ez-split-button.js +3 -3
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +0 -1
- package/dist/collection/utils/form/DataBinder.js +1 -1
- package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +1 -7
- package/dist/custom-elements/index.js +54 -334
- package/dist/esm/{RecordValidationProcessor-9c6cc267.js → RecordValidationProcessor-b00b8b77.js} +1 -7
- package/dist/esm/ez-actions-button.entry.js +1 -1
- package/dist/esm/ez-alert-list.entry.js +1 -1
- package/dist/esm/ez-alert.entry.js +1 -1
- package/dist/esm/ez-application.entry.js +1 -1
- package/dist/esm/ez-badge.entry.js +1 -1
- package/dist/esm/ez-breadcrumb.entry.js +1 -1
- package/dist/esm/ez-button.entry.js +6 -12
- package/dist/esm/ez-calendar.entry.js +1 -1
- package/dist/esm/ez-card-item_3.entry.js +5 -14
- package/dist/esm/ez-chart.entry.js +1 -1
- package/dist/esm/ez-check.entry.js +2 -2
- package/dist/esm/ez-chip.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +2 -2
- package/dist/esm/ez-combo-box.entry.js +1 -1
- package/dist/esm/ez-custom-form-input_2.entry.js +2 -2
- package/dist/esm/ez-date-input.entry.js +1 -1
- package/dist/esm/ez-date-time-input.entry.js +1 -1
- package/dist/esm/ez-dialog.entry.js +1 -1
- package/dist/esm/ez-dropdown.entry.js +1 -1
- package/dist/esm/ez-file-item.entry.js +1 -1
- package/dist/esm/ez-form-view.entry.js +1 -1
- package/dist/esm/ez-form.entry.js +3 -3
- package/dist/esm/ez-grid.entry.js +24 -282
- package/dist/esm/ez-guide-navigator.entry.js +1 -1
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-list.entry.js +2 -2
- package/dist/esm/ez-loading-bar.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +2 -2
- package/dist/esm/ez-modal.entry.js +2 -2
- package/dist/esm/ez-multi-selection-list.entry.js +2 -2
- package/dist/esm/ez-number-input.entry.js +1 -1
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +1 -1
- package/dist/esm/ez-radio-button.entry.js +1 -1
- package/dist/esm/ez-scroller_2.entry.js +4 -4
- package/dist/esm/ez-search.entry.js +6 -7
- package/dist/esm/ez-sidebar-navigator.entry.js +2 -2
- package/dist/esm/ez-skeleton.entry.js +1 -1
- package/dist/esm/ez-split-button.entry.js +3 -3
- package/dist/esm/ez-split-item.entry.js +2 -2
- package/dist/esm/ez-split-panel.entry.js +1 -1
- package/dist/esm/ez-tabselector.entry.js +1 -1
- package/dist/esm/ez-text-area.entry.js +1 -1
- package/dist/esm/ez-text-input.entry.js +1 -1
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/ez-tree.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +1 -1
- package/dist/esm/ez-view-stack.entry.js +1 -1
- package/dist/esm/ezui.js +3 -3
- package/dist/esm/filter-column.entry.js +1 -1
- package/dist/esm/{index-5a720e56.js → index-baa5e267.js} +1 -3
- package/dist/esm/loader.js +3 -3
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-e6b38ade.entry.js → p-0306dff7.entry.js} +1 -1
- package/dist/ezui/p-04f24913.js +1 -0
- package/dist/ezui/{p-82ac8b06.entry.js → p-072e6347.entry.js} +1 -1
- package/dist/ezui/p-08061683.entry.js +1 -0
- package/dist/ezui/{p-91ccae0c.entry.js → p-09de35a2.entry.js} +1 -1
- package/dist/ezui/{p-11b09aa1.entry.js → p-1285c902.entry.js} +1 -1
- package/dist/ezui/p-13d2fe2d.entry.js +1 -0
- package/dist/ezui/{p-b2f6bc0a.entry.js → p-17be134a.entry.js} +1 -1
- package/dist/ezui/{p-81461d2f.entry.js → p-1e7a8633.entry.js} +1 -1
- package/dist/ezui/{p-6b51c9cc.entry.js → p-1f50fa05.entry.js} +1 -1
- package/dist/ezui/{p-de870657.entry.js → p-2097d0cf.entry.js} +1 -1
- package/dist/ezui/{p-e4c7eb39.js → p-23a36bb6.js} +2 -2
- package/dist/ezui/p-34b6916c.entry.js +1 -0
- package/dist/ezui/{p-4b5f83a4.entry.js → p-3b4eeeb6.entry.js} +1 -1
- package/dist/ezui/p-3faa2b46.entry.js +1 -0
- package/dist/ezui/{p-e03c2774.entry.js → p-42533ea4.entry.js} +1 -1
- package/dist/ezui/{p-0378416a.entry.js → p-44caad9a.entry.js} +1 -1
- package/dist/ezui/{p-f291db18.entry.js → p-49456b34.entry.js} +1 -1
- package/dist/ezui/{p-7567ccdd.entry.js → p-555c9018.entry.js} +1 -1
- package/dist/ezui/{p-044d46d5.entry.js → p-5b205c80.entry.js} +1 -1
- package/dist/ezui/{p-c3b7a23e.entry.js → p-5bd5e68f.entry.js} +1 -1
- package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
- package/dist/ezui/{p-f1c2c19e.entry.js → p-650e4b6d.entry.js} +1 -1
- package/dist/ezui/{p-2d9b10ce.entry.js → p-669f875f.entry.js} +2 -2
- package/dist/ezui/{p-fc194825.entry.js → p-6e429cff.entry.js} +1 -1
- package/dist/ezui/{p-11bfeca3.entry.js → p-77a4bd35.entry.js} +1 -1
- package/dist/ezui/p-784fe207.entry.js +1 -0
- package/dist/ezui/{p-2af4e2de.entry.js → p-7922142b.entry.js} +1 -1
- package/dist/ezui/p-7af81663.entry.js +1 -0
- package/dist/ezui/{p-3f8c33e0.entry.js → p-7bc07c31.entry.js} +1 -1
- package/dist/ezui/{p-bef7daac.entry.js → p-84e439b9.entry.js} +1 -1
- package/dist/ezui/{p-8eef0f70.entry.js → p-85c8baae.entry.js} +1 -1
- package/dist/ezui/{p-1b08bf3c.entry.js → p-8888d9ed.entry.js} +1 -1
- package/dist/ezui/{p-82fa4b09.entry.js → p-8df1ca33.entry.js} +1 -1
- package/dist/ezui/{p-b0e71d23.entry.js → p-9050d2cd.entry.js} +1 -1
- package/dist/ezui/{p-e7395eae.entry.js → p-922ac38b.entry.js} +1 -1
- package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
- package/dist/ezui/p-a31b9c90.entry.js +1 -0
- package/dist/ezui/{p-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
- package/dist/ezui/{p-24ca32a3.entry.js → p-af95cd16.entry.js} +1 -1
- package/dist/ezui/{p-dbeee5aa.entry.js → p-bae4e180.entry.js} +1 -1
- package/dist/ezui/{p-30951bd7.entry.js → p-baf80b13.entry.js} +1 -1
- package/dist/ezui/p-bc2f844e.entry.js +1 -0
- package/dist/ezui/{p-868b56f7.entry.js → p-bcb53f27.entry.js} +1 -1
- package/dist/ezui/p-bf79aaa1.entry.js +1 -0
- package/dist/ezui/{p-92748142.entry.js → p-c0d9c4f8.entry.js} +1 -1
- package/dist/ezui/{p-7946f2d4.entry.js → p-c36b7c56.entry.js} +1 -1
- package/dist/ezui/{p-52100a6e.entry.js → p-cdc472cc.entry.js} +1 -1
- package/dist/ezui/p-e26f12dd.entry.js +1 -0
- package/dist/ezui/{p-36180f4d.entry.js → p-e85c48d7.entry.js} +1 -1
- package/dist/ezui/p-ecc2c1ec.entry.js +1 -0
- package/dist/ezui/{p-a7490128.entry.js → p-fcf0acce.entry.js} +1 -1
- package/dist/types/components/ez-button/ez-button.d.ts +1 -2
- package/dist/types/components/ez-card-item/ez-card-item.d.ts +0 -5
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +4 -32
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +3 -19
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +0 -18
- package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +2 -13
- package/dist/types/components/ez-grid/ez-grid.d.ts +0 -16
- package/dist/types/components/ez-search/ez-search.d.ts +2 -6
- package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -1
- package/dist/types/components.d.ts +12 -52
- package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -1
- package/package.json +1 -1
- package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js +0 -1
- package/dist/ezui/p-2480e948.entry.js +0 -1
- package/dist/ezui/p-554522db.entry.js +0 -1
- package/dist/ezui/p-6ec40dec.entry.js +0 -1
- package/dist/ezui/p-70f1c812.entry.js +0 -1
- package/dist/ezui/p-a921e3e7.entry.js +0 -1
- package/dist/ezui/p-b858fc6e.entry.js +0 -1
- package/dist/ezui/p-b9fa2526.entry.js +0 -1
- package/dist/ezui/p-c17540c0.entry.js +0 -1
- package/dist/ezui/p-d6b29f38.entry.js +0 -1
- package/dist/ezui/p-e18d9e6a.entry.js +0 -1
- package/dist/ezui/p-f42855b9.js +0 -1
- package/dist/ezui/p-ff233029.entry.js +0 -1
- package/dist/types/utils/validators/recordvalidator/IInvalidCells.d.ts +0 -5
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-a7b0c73d.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
8
8
|
const ApplicationUtils = require('./ApplicationUtils-c9d1205c.js');
|
|
@@ -10,7 +10,7 @@ require('./DialogType-2114c337.js');
|
|
|
10
10
|
require('./CheckMode-ecb90b87.js');
|
|
11
11
|
const ICustomRender = require('./ICustomRender-6fafffce.js');
|
|
12
12
|
const constants = require('./constants-2714478b.js');
|
|
13
|
-
const RecordValidationProcessor = require('./RecordValidationProcessor-
|
|
13
|
+
const RecordValidationProcessor = require('./RecordValidationProcessor-4c893e04.js');
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @ag-grid-community/all-modules - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1
|
|
@@ -118853,73 +118853,6 @@ class DataSourceInterceptor {
|
|
|
118853
118853
|
}
|
|
118854
118854
|
|
|
118855
118855
|
class DataSource {
|
|
118856
|
-
handleSavingCanceled(action) {
|
|
118857
|
-
var _a, _b, _c, _d;
|
|
118858
|
-
if (!((_a = action.payload) === null || _a === void 0 ? void 0 : _a.fields) || !((_b = action.payload) === null || _b === void 0 ? void 0 : _b.recordId))
|
|
118859
|
-
return;
|
|
118860
|
-
this._controller.savingCanceled((_c = action.payload) === null || _c === void 0 ? void 0 : _c.fields, (_d = action.payload) === null || _d === void 0 ? void 0 : _d.recordId);
|
|
118861
|
-
}
|
|
118862
|
-
handleDataChanged(action) {
|
|
118863
|
-
var _a, _b;
|
|
118864
|
-
if (!this._options.enableGridInsert) {
|
|
118865
|
-
this.handleRefresh(action);
|
|
118866
|
-
return;
|
|
118867
|
-
}
|
|
118868
|
-
this.updateGridRowNodes((_b = (_a = action.payload) === null || _a === void 0 ? void 0 : _a.records) !== null && _b !== void 0 ? _b : []);
|
|
118869
|
-
}
|
|
118870
|
-
/**
|
|
118871
|
-
* Nesse ponto, o registro já se encontra atualizado no DU,
|
|
118872
|
-
* basta então passar seu valor para que a garde possa atualizar sua linha.
|
|
118873
|
-
*/
|
|
118874
|
-
updateGridRowNodes(recordIDList) {
|
|
118875
|
-
const recordsToUpdate = recordIDList === null || recordIDList === void 0 ? void 0 : recordIDList.map(id => this.getRecordById(id));
|
|
118876
|
-
this._controller.updateRows(recordsToUpdate);
|
|
118877
|
-
}
|
|
118878
|
-
getRecordById(recordId) {
|
|
118879
|
-
return this._dataUnit.records.find(record => record['__record__id__'] === recordId);
|
|
118880
|
-
}
|
|
118881
|
-
/**
|
|
118882
|
-
* Em caso de necessidade de reload (isWaitingToReload), eh preciso chamar o dataUnit.gotoPage, pois ele aplica tambem a ordenacao dos registros,
|
|
118883
|
-
* enquanto que o _controller.refresh apenas recarrega os dados na ordem que atua.
|
|
118884
|
-
*/
|
|
118885
|
-
handleRefreshOrReload(action) {
|
|
118886
|
-
if (this._dataUnit.isWaitingToReload()) {
|
|
118887
|
-
this.handleReload();
|
|
118888
|
-
return;
|
|
118889
|
-
}
|
|
118890
|
-
this.handleRefresh(action);
|
|
118891
|
-
}
|
|
118892
|
-
handleReload() {
|
|
118893
|
-
this._dataUnit.setWaitingToReload(false);
|
|
118894
|
-
this._dataUnit.gotoPage(0);
|
|
118895
|
-
}
|
|
118896
|
-
handleRefresh(action) {
|
|
118897
|
-
if (this.isSilentChange(action)) {
|
|
118898
|
-
return;
|
|
118899
|
-
}
|
|
118900
|
-
this._controller.refresh(action.type === core.Action.DATA_SAVED);
|
|
118901
|
-
}
|
|
118902
|
-
handleRecordsAdded() {
|
|
118903
|
-
if (this._options.enableGridInsert) {
|
|
118904
|
-
this._controller.refresh();
|
|
118905
|
-
this.focusOnNewRecord();
|
|
118906
|
-
}
|
|
118907
|
-
}
|
|
118908
|
-
focusOnNewRecord() {
|
|
118909
|
-
/**
|
|
118910
|
-
* O SetTimeout eh utilizado pois é preciso aguardar que o novo registro seja renderizado na grade.
|
|
118911
|
-
* Tentamos utilizar a api da grade para adicionar um event listener, porém na versão que utilizamos, não existe
|
|
118912
|
-
* algo que resolva nosso cenário.
|
|
118913
|
-
*
|
|
118914
|
-
* Sugiro no futuro utilizar algo como o applyServerSideTransaction, porém será preciso lidar com os handlers
|
|
118915
|
-
* e callbacks implementados no AgGridController e GridEditionManager.
|
|
118916
|
-
*/
|
|
118917
|
-
setTimeout(() => {
|
|
118918
|
-
var _a;
|
|
118919
|
-
const newRowIndex = ((_a = this._dataUnit.records) === null || _a === void 0 ? void 0 : _a.length) - 1;
|
|
118920
|
-
this._controller.startEditionOnRowByIndex(newRowIndex);
|
|
118921
|
-
}, 500);
|
|
118922
|
-
}
|
|
118923
118856
|
updateLoadedRecords(action) {
|
|
118924
118857
|
const records = action.payload;
|
|
118925
118858
|
if ((records === null || records === void 0 ? void 0 : records.length) > 0) {
|
|
@@ -118971,20 +118904,15 @@ class DataSource {
|
|
|
118971
118904
|
this._options.onPaginationUpdate(this._dataUnit.getPaginationInfo());
|
|
118972
118905
|
}
|
|
118973
118906
|
break;
|
|
118974
|
-
case core.Action.
|
|
118975
|
-
this.handleRecordsAdded();
|
|
118976
|
-
break;
|
|
118907
|
+
case core.Action.RECORDS_REMOVED:
|
|
118977
118908
|
case core.Action.DATA_SAVED:
|
|
118978
118909
|
case core.Action.EDITION_CANCELED:
|
|
118979
|
-
this._controller.clearInvalidCells(action.type);
|
|
118980
|
-
this.handleRefreshOrReload(action);
|
|
118981
|
-
break;
|
|
118982
118910
|
case core.Action.DATA_CHANGED:
|
|
118983
118911
|
case core.Action.DATA_RESOLVED:
|
|
118984
|
-
this.
|
|
118985
|
-
|
|
118986
|
-
|
|
118987
|
-
this.
|
|
118912
|
+
if (this.isSilentChange(action)) {
|
|
118913
|
+
return;
|
|
118914
|
+
}
|
|
118915
|
+
this._controller.refresh();
|
|
118988
118916
|
break;
|
|
118989
118917
|
case core.Action.SELECTION_CHANGED:
|
|
118990
118918
|
case core.Action.NEXT_SELECTED:
|
|
@@ -118994,9 +118922,6 @@ class DataSource {
|
|
|
118994
118922
|
case core.Action.RECORD_LOADED:
|
|
118995
118923
|
this.updateLoadedRecords(action);
|
|
118996
118924
|
break;
|
|
118997
|
-
case core.Action.SAVING_CANCELED:
|
|
118998
|
-
this.handleSavingCanceled(action);
|
|
118999
|
-
break;
|
|
119000
118925
|
}
|
|
119001
118926
|
};
|
|
119002
118927
|
this._dataUnit = dataUnit;
|
|
@@ -119018,9 +118943,6 @@ class DataSource {
|
|
|
119018
118943
|
setAutoFocus(autoFocus) {
|
|
119019
118944
|
this._options.autoFocus = autoFocus;
|
|
119020
118945
|
}
|
|
119021
|
-
setEnableGridInsert(enable) {
|
|
119022
|
-
this._options.enableGridInsert = enable;
|
|
119023
|
-
}
|
|
119024
118946
|
getRows(params) {
|
|
119025
118947
|
if (this.needReload(params)) {
|
|
119026
118948
|
this._lastLoadingParams = params;
|
|
@@ -119483,8 +119405,7 @@ const buildSearch = ({ name, required, readOnly, eGridCell, dataUnit }) => {
|
|
|
119483
119405
|
/>`);
|
|
119484
119406
|
const loader = core.ApplicationContext.getContextValue("__EZUI__SEARCH__OPTION__LOADER__");
|
|
119485
119407
|
ezSearch.optionLoader = (argument) => loader(argument, name, dataUnit);
|
|
119486
|
-
ezSearch.
|
|
119487
|
-
ezSearch.suppressPreLoad = true;
|
|
119408
|
+
ezSearch.fromGrid = true;
|
|
119488
119409
|
ezSearch.listOptionsPosition = { verticalPosition: 29, bottomLimit: getViewPortHeight(eGridCell), hardPosition: true };
|
|
119489
119410
|
ezSearch.valueGetter = () => ezSearch.getValueAsync();
|
|
119490
119411
|
return ezSearch;
|
|
@@ -119683,16 +119604,15 @@ class EzGridCustomCellRender extends EzCellRender {
|
|
|
119683
119604
|
}
|
|
119684
119605
|
|
|
119685
119606
|
class GridEditionManager {
|
|
119686
|
-
constructor(dataUnit, useEnterLikeTab, recordsValidator, editionIsDisabled, customEditors, customRenders
|
|
119607
|
+
constructor(dataUnit, useEnterLikeTab, recordsValidator, editionIsDisabled, customEditors, customRenders) {
|
|
119687
119608
|
this._dataUnit = dataUnit;
|
|
119688
119609
|
this._recordValidationProcessor = new RecordValidationProcessor.RecordValidationProcessor(this._dataUnit, {
|
|
119689
119610
|
getRequiredFields: () => this.getRequiredFields(),
|
|
119690
|
-
markAsInvalid: (
|
|
119691
|
-
getMessageForField: () => null
|
|
119611
|
+
markAsInvalid: () => { },
|
|
119612
|
+
getMessageForField: () => null
|
|
119692
119613
|
}, recordsValidator);
|
|
119693
119614
|
this._useEnterLikeTab = useEnterLikeTab;
|
|
119694
119615
|
this._editionIsDisabled = editionIsDisabled;
|
|
119695
|
-
this._enableContinuousInsert = enableContinuousInsert;
|
|
119696
119616
|
this._customEditors = customEditors;
|
|
119697
119617
|
this._customRenders = customRenders;
|
|
119698
119618
|
}
|
|
@@ -119707,10 +119627,6 @@ class GridEditionManager {
|
|
|
119707
119627
|
};
|
|
119708
119628
|
return options;
|
|
119709
119629
|
}
|
|
119710
|
-
canContinuousInsert() {
|
|
119711
|
-
var _a;
|
|
119712
|
-
return this._enableContinuousInsert && (this._dataUnit.records.length - 1) === ((_a = this._lastCellEdited) === null || _a === void 0 ? void 0 : _a.rowIndex);
|
|
119713
|
-
}
|
|
119714
119630
|
proceedAutoSave() {
|
|
119715
119631
|
if (!this._dataUnit.isDirty()) {
|
|
119716
119632
|
this.saveSuccess();
|
|
@@ -119723,33 +119639,15 @@ class GridEditionManager {
|
|
|
119723
119639
|
if (currentRercord == undefined) {
|
|
119724
119640
|
return;
|
|
119725
119641
|
}
|
|
119726
|
-
this._invalidCell = undefined;
|
|
119727
119642
|
this._recordValidationProcessor
|
|
119728
|
-
.validate(
|
|
119643
|
+
.validate()
|
|
119729
119644
|
.then(() => {
|
|
119730
119645
|
this._dataUnit.saveData()
|
|
119731
|
-
.then(() =>
|
|
119732
|
-
if (this.canContinuousInsert()) {
|
|
119733
|
-
this._dataUnit.addRecord();
|
|
119734
|
-
}
|
|
119735
|
-
else {
|
|
119736
|
-
this.saveSuccess();
|
|
119737
|
-
}
|
|
119738
|
-
})
|
|
119646
|
+
.then(() => this.saveSuccess())
|
|
119739
119647
|
.catch(reason => this.saveFail(reason));
|
|
119740
119648
|
})
|
|
119741
119649
|
.catch(reason => this.saveFail(reason));
|
|
119742
119650
|
}
|
|
119743
|
-
async recordValidate() {
|
|
119744
|
-
if (!this._dataUnit.isDirty())
|
|
119745
|
-
return;
|
|
119746
|
-
try {
|
|
119747
|
-
this._invalidCell = undefined;
|
|
119748
|
-
await this._recordValidationProcessor.validate(false);
|
|
119749
|
-
}
|
|
119750
|
-
catch (error) { }
|
|
119751
|
-
this._gridOptions.api.refreshCells({ force: true });
|
|
119752
|
-
}
|
|
119753
119651
|
navigateByEnterKey(keyboardEvent) {
|
|
119754
119652
|
const backwards = keyboardEvent.shiftKey;
|
|
119755
119653
|
if (this._useEnterLikeTab) {
|
|
@@ -119958,34 +119856,6 @@ class GridEditionManager {
|
|
|
119958
119856
|
setCellRenders(customRenders) {
|
|
119959
119857
|
this._customRenders = customRenders;
|
|
119960
119858
|
}
|
|
119961
|
-
setInvalidCell(invalidCell, recordId) {
|
|
119962
|
-
this._invalidCell = { field: invalidCell, recordId };
|
|
119963
|
-
}
|
|
119964
|
-
getInvalidCell() {
|
|
119965
|
-
return this._invalidCell;
|
|
119966
|
-
}
|
|
119967
|
-
clearInvalidCells(action) {
|
|
119968
|
-
this._invalidCell = undefined;
|
|
119969
|
-
if (action === core.Action.EDITION_CANCELED) {
|
|
119970
|
-
this._isGridEdition = false;
|
|
119971
|
-
}
|
|
119972
|
-
else if (action === core.Action.DATA_SAVED && this.canContinuousInsert()) {
|
|
119973
|
-
this._dataUnit.addRecord();
|
|
119974
|
-
}
|
|
119975
|
-
}
|
|
119976
|
-
setEnableContinuousInsert(enable) {
|
|
119977
|
-
this._enableContinuousInsert = enable;
|
|
119978
|
-
}
|
|
119979
|
-
hasInvalidField(fieldName, recordId) {
|
|
119980
|
-
if (!this.hasInvalidCell())
|
|
119981
|
-
return false;
|
|
119982
|
-
return this._invalidCell.field.name === fieldName && this._invalidCell.recordId === recordId;
|
|
119983
|
-
}
|
|
119984
|
-
hasInvalidCell() {
|
|
119985
|
-
if (!this._invalidCell || !this._invalidCell.field || !this._invalidCell.recordId)
|
|
119986
|
-
return false;
|
|
119987
|
-
return true;
|
|
119988
|
-
}
|
|
119989
119859
|
}
|
|
119990
119860
|
class TargetEdition {
|
|
119991
119861
|
constructor(rowIndex, column, backwards) {
|
|
@@ -120029,8 +119899,6 @@ class AgGridController {
|
|
|
120029
119899
|
this._filteredColumns = new Map();
|
|
120030
119900
|
this._filterColumnleftPosition = 0;
|
|
120031
119901
|
this._customFormatters = new Map();
|
|
120032
|
-
this._gridShowDom = false;
|
|
120033
|
-
this.peddingExecutionsOnGridShow = [];
|
|
120034
119902
|
this._enterprise = enterprise;
|
|
120035
119903
|
}
|
|
120036
119904
|
getGridConfig() {
|
|
@@ -120116,7 +119984,7 @@ class AgGridController {
|
|
|
120116
119984
|
this._doubleClickCallBack = options.onDoubleClick;
|
|
120117
119985
|
this._multipleSelection = options.allowMultipleSelection;
|
|
120118
119986
|
this._dataUnit = options.dataUnit;
|
|
120119
|
-
this._editionManager = new GridEditionManager(this._dataUnit, options.useEnterLikeTab, options.recordsValidator, options.editionIsDisabled, options.customEditors || this._customEditors, options.customRenders || this._customRenders
|
|
119987
|
+
this._editionManager = new GridEditionManager(this._dataUnit, options.useEnterLikeTab, options.recordsValidator, options.editionIsDisabled, options.customEditors || this._customEditors, options.customRenders || this._customRenders);
|
|
120120
119988
|
this._statusResolver = options.statusResolver;
|
|
120121
119989
|
if (this._dataUnit) {
|
|
120122
119990
|
this._dataUnit.sortingProvider = this;
|
|
@@ -120136,9 +120004,6 @@ class AgGridController {
|
|
|
120136
120004
|
defaultColDef: {
|
|
120137
120005
|
headerClass: 'ez-grid__cell-header',
|
|
120138
120006
|
cellClass: 'ez-grid__cell-body',
|
|
120139
|
-
cellClassRules: {
|
|
120140
|
-
'invalidValue': (params) => this._editionManager.hasInvalidField(params.colDef.field, params.data["__record__id__"]),
|
|
120141
|
-
},
|
|
120142
120007
|
cellStyle: {
|
|
120143
120008
|
height: '100%'
|
|
120144
120009
|
}
|
|
@@ -120178,23 +120043,6 @@ class AgGridController {
|
|
|
120178
120043
|
}
|
|
120179
120044
|
this._gridOptions.api.setHeaderHeight(this.getHeaderRowHeight());
|
|
120180
120045
|
this._customFormatters = options.customFormatters;
|
|
120181
|
-
const observerCallback = (entries) => {
|
|
120182
|
-
entries.forEach(entry => {
|
|
120183
|
-
if (entry.isIntersecting) {
|
|
120184
|
-
this._gridShowDom = true;
|
|
120185
|
-
this.peddingExecutionsOnGridShow.forEach(func => func());
|
|
120186
|
-
this.peddingExecutionsOnGridShow = [];
|
|
120187
|
-
}
|
|
120188
|
-
else {
|
|
120189
|
-
this._gridShowDom = false;
|
|
120190
|
-
}
|
|
120191
|
-
});
|
|
120192
|
-
};
|
|
120193
|
-
this.observer = new IntersectionObserver(observerCallback, {
|
|
120194
|
-
root: null,
|
|
120195
|
-
threshold: 0.1
|
|
120196
|
-
});
|
|
120197
|
-
this.observer.observe(container);
|
|
120198
120046
|
}
|
|
120199
120047
|
}
|
|
120200
120048
|
processFormatterCellCallback(params) {
|
|
@@ -120385,16 +120233,10 @@ class AgGridController {
|
|
|
120385
120233
|
throw new Error('Erro interno: Grid ainda não inicializado.');
|
|
120386
120234
|
}
|
|
120387
120235
|
}
|
|
120388
|
-
updateRows(
|
|
120236
|
+
updateRows() {
|
|
120389
120237
|
if (this._grid === undefined) {
|
|
120390
120238
|
throw new Error('Erro interno: Grid ainda não inicializado.');
|
|
120391
120239
|
}
|
|
120392
|
-
rows === null || rows === void 0 ? void 0 : rows.forEach(row => this.updateRowData(row));
|
|
120393
|
-
}
|
|
120394
|
-
updateRowData(row) {
|
|
120395
|
-
const node = this._gridOptions.api.getRowNode(row[this._idAttribName]);
|
|
120396
|
-
node.setData(Object.assign({}, row));
|
|
120397
|
-
this._editionManager.recordValidate();
|
|
120398
120240
|
}
|
|
120399
120241
|
selectAll(quietly = false) {
|
|
120400
120242
|
try {
|
|
@@ -120477,42 +120319,14 @@ class AgGridController {
|
|
|
120477
120319
|
});
|
|
120478
120320
|
r.setData(data);
|
|
120479
120321
|
});
|
|
120480
|
-
this._gridOptions.api.refreshCells({ force: true });
|
|
120481
|
-
const invalidCell = this._editionManager.getInvalidCell();
|
|
120482
|
-
if (invalidCell) {
|
|
120483
|
-
const rowNode = this._gridOptions.api.getRowNode(invalidCell.recordId);
|
|
120484
|
-
if (rowNode && invalidCell.field) {
|
|
120485
|
-
this.startEdition(rowNode.rowIndex, this._gridOptions.columnApi.getColumn(invalidCell.field.name));
|
|
120486
|
-
}
|
|
120487
|
-
}
|
|
120488
120322
|
}
|
|
120489
120323
|
}
|
|
120490
|
-
|
|
120491
|
-
const displayedColumns = this._gridOptions.columnApi.getAllDisplayedColumns();
|
|
120492
|
-
const rowIndex = this._gridOptions.api.getRowNode(recordId).rowIndex;
|
|
120493
|
-
const columnFocus = displayedColumns.find(column => this.isColumnEditable(rowIndex, column) && fields.find(field => field.name === column.getColId()));
|
|
120494
|
-
this.focusByCollAndRow(columnFocus, rowIndex);
|
|
120495
|
-
this.startEdition(rowIndex, columnFocus);
|
|
120496
|
-
}
|
|
120497
|
-
refresh(scrollToSelectedRow = false) {
|
|
120324
|
+
refresh() {
|
|
120498
120325
|
if (this._grid === undefined) {
|
|
120499
120326
|
throw new Error('Erro interno: Grid ainda não inicializado.');
|
|
120500
120327
|
}
|
|
120501
120328
|
this._gridOptions.api.refreshServerSide({ purge: true });
|
|
120502
120329
|
this._options.onRefresh();
|
|
120503
|
-
if (scrollToSelectedRow)
|
|
120504
|
-
this.scrollToSelectedRow();
|
|
120505
|
-
}
|
|
120506
|
-
scrollToSelectedRow() {
|
|
120507
|
-
const rowNode = this._gridOptions.api.getSelectedNodes();
|
|
120508
|
-
if (!rowNode || rowNode.length === 0)
|
|
120509
|
-
return;
|
|
120510
|
-
if (this._gridShowDom) {
|
|
120511
|
-
this._gridOptions.api.ensureNodeVisible(rowNode[0]);
|
|
120512
|
-
}
|
|
120513
|
-
else {
|
|
120514
|
-
this.peddingExecutionsOnGridShow.push(() => this._gridOptions.api.ensureNodeVisible(rowNode[0]));
|
|
120515
|
-
}
|
|
120516
120330
|
}
|
|
120517
120331
|
focusOnGridContainer() {
|
|
120518
120332
|
this._container.setAttribute('tabindex', '-1');
|
|
@@ -120531,14 +120345,6 @@ class AgGridController {
|
|
|
120531
120345
|
var _a;
|
|
120532
120346
|
(_a = this._dataSource) === null || _a === void 0 ? void 0 : _a.setAutoFocus(autoFocus);
|
|
120533
120347
|
}
|
|
120534
|
-
setEnableGridInsert(enable) {
|
|
120535
|
-
var _a;
|
|
120536
|
-
(_a = this._dataSource) === null || _a === void 0 ? void 0 : _a.setEnableGridInsert(enable);
|
|
120537
|
-
}
|
|
120538
|
-
setEnableContinuousInsert(enable) {
|
|
120539
|
-
var _a;
|
|
120540
|
-
(_a = this._editionManager) === null || _a === void 0 ? void 0 : _a.setEnableContinuousInsert(enable);
|
|
120541
|
-
}
|
|
120542
120348
|
setFocusFirstRow() {
|
|
120543
120349
|
const firstRow = this._gridOptions.api.getDisplayedRowAtIndex(0);
|
|
120544
120350
|
if (firstRow) {
|
|
@@ -120554,38 +120360,9 @@ class AgGridController {
|
|
|
120554
120360
|
this.setFocusOnRow(lastRow.rowIndex);
|
|
120555
120361
|
}
|
|
120556
120362
|
}
|
|
120557
|
-
startEditionOnRowByIndex(rowIndex) {
|
|
120558
|
-
const firstCol = this.getFirstEditableColl(rowIndex);
|
|
120559
|
-
this.focusByCollAndRow(firstCol, rowIndex);
|
|
120560
|
-
this.startEdition(rowIndex, firstCol);
|
|
120561
|
-
}
|
|
120562
|
-
startEdition(rowIndex, firstCol) {
|
|
120563
|
-
this._gridOptions.api.clearRangeSelection();
|
|
120564
|
-
this._gridOptions.api.addCellRange({ rowStartIndex: rowIndex, rowEndIndex: rowIndex, columns: [firstCol] });
|
|
120565
|
-
this._gridOptions.api.setFocusedCell(rowIndex, firstCol);
|
|
120566
|
-
this._gridOptions.api.startEditingCell({ rowIndex, colKey: firstCol });
|
|
120567
|
-
const cellEditor = this._gridOptions.api.getCellEditorInstances()[0];
|
|
120568
|
-
if (cellEditor) {
|
|
120569
|
-
cellEditor.focusIn();
|
|
120570
|
-
}
|
|
120571
|
-
}
|
|
120572
|
-
getFirstEditableColl(rowIndex) {
|
|
120573
|
-
const displayedColumns = this._gridOptions.columnApi.getAllDisplayedColumns();
|
|
120574
|
-
return displayedColumns.find(column => this.isColumnEditable(rowIndex, column));
|
|
120575
|
-
}
|
|
120576
|
-
isColumnEditable(rowIndex, column) {
|
|
120577
|
-
if (column.getColDef().headerName === '' || rowIndex === -1)
|
|
120578
|
-
return false;
|
|
120579
|
-
const rowId = this._dataUnit.records[rowIndex][this._idAttribName];
|
|
120580
|
-
const rowNode = this._gridOptions.api.getRowNode(rowId);
|
|
120581
|
-
return column.isCellEditable(rowNode);
|
|
120582
|
-
}
|
|
120583
120363
|
setFocusOnRow(rowIndex) {
|
|
120584
120364
|
let displayedColumns = this._gridOptions.columnApi.getAllDisplayedColumns();
|
|
120585
|
-
let
|
|
120586
|
-
this.focusByCollAndRow(firstColl, rowIndex);
|
|
120587
|
-
}
|
|
120588
|
-
focusByCollAndRow(firstCell, rowIndex) {
|
|
120365
|
+
let firstCell = displayedColumns.find(column => column.getColDef().headerName !== '');
|
|
120589
120366
|
this._gridOptions.api.ensureColumnVisible(firstCell);
|
|
120590
120367
|
this._gridOptions.api.ensureIndexVisible(rowIndex);
|
|
120591
120368
|
this._gridOptions.api.setFocusedCell(rowIndex, firstCell);
|
|
@@ -120965,15 +120742,6 @@ class AgGridController {
|
|
|
120965
120742
|
this._editionManager.setCellRenders(customRenders);
|
|
120966
120743
|
(_a = this._gridOptions) === null || _a === void 0 ? void 0 : _a.api.redrawRows();
|
|
120967
120744
|
}
|
|
120968
|
-
clearInvalidCells(action) {
|
|
120969
|
-
if (!this._editionManager)
|
|
120970
|
-
return;
|
|
120971
|
-
this._editionManager.clearInvalidCells(action);
|
|
120972
|
-
this._gridOptions.api.refreshCells({ force: true });
|
|
120973
|
-
}
|
|
120974
|
-
destroy() {
|
|
120975
|
-
this.observer.disconnect();
|
|
120976
|
-
}
|
|
120977
120745
|
}
|
|
120978
120746
|
|
|
120979
120747
|
function enableSelectAll(total) {
|
|
@@ -121181,7 +120949,7 @@ class InMemoryFilterColumnDataSource {
|
|
|
121181
120949
|
}
|
|
121182
120950
|
}
|
|
121183
120951
|
|
|
121184
|
-
const ezGridCss = ".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;height:100%;width:100%;--ez-grid__header--background-color:var(--background--xlight, #FFF);--ez-grid__selection-counter--z-index:var(--visible, 1);--ez-grid__container--shadow:0 0 16px 0 rgb(0 38 111 / 12%);--ez-grid--min-height:300px;min-height:var(--ez-grid--min-height)}.grid-header.sc-ez-grid{display:grid;justify-content:space-between;align-items:center;grid-row-start:1;grid-template-columns:1fr;background-color:var(--ez-grid__header--background-color, #FFF)}.grid__container.sc-ez-grid{padding-top:15px;margin-top:-12px;outline:none;box-shadow:var(--ez-grid__container--shadow);background-color:var(--ez-grid__header--background-color)}.grid-header__popover.sc-ez-grid{position:relative;top:var(--space--sm, 16px)}.grid-header__container.sc-ez-grid{display:flex;align-items:center}.grid-header__position.sc-ez-grid{display:flex;align-items:center;justify-content:space-between}.grid__selection-counter.sc-ez-grid{position:fixed;white-space:nowrap;transform:translate(-50%, 0px);left:50%;opacity:0;bottom:-100%;transition:opacity 0.1s, bottom 0.5s}.grid__selection-counter--opened.sc-ez-grid{opacity:1;bottom:0px}.grid__btn-close.sc-ez-grid{display:flex;align-items:center;justify-content:center;padding:0;outline:none;width:20px;height:20px;border:none;background-color:unset;cursor:pointer}.grid__btn-clear.sc-ez-grid{--ez-button--link-color:var(--color--alert-warning-900, #8C6B00);--ez-button--link--hover-color:var(--color--alert-warning-900, #8C6B00)}[no-header].sc-ez-grid-h .grid-header.sc-ez-grid{height:0;padding:0}.grid-header__pagination.sc-ez-grid{justify-content:flex-end;flex-wrap:
|
|
120952
|
+
const ezGridCss = ".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;height:100%;width:100%;--ez-grid__header--background-color:var(--background--xlight, #FFF);--ez-grid__selection-counter--z-index:var(--visible, 1);--ez-grid__container--shadow:0 0 16px 0 rgb(0 38 111 / 12%);--ez-grid--min-height:300px;min-height:var(--ez-grid--min-height)}.grid-header.sc-ez-grid{display:grid;justify-content:space-between;align-items:center;grid-row-start:1;grid-template-columns:1fr;background-color:var(--ez-grid__header--background-color, #FFF)}.grid__container.sc-ez-grid{padding-top:15px;margin-top:-12px;outline:none;box-shadow:var(--ez-grid__container--shadow);background-color:var(--ez-grid__header--background-color)}.grid-header__popover.sc-ez-grid{position:relative;top:var(--space--sm, 16px)}.grid-header__container.sc-ez-grid{display:flex;align-items:center}.grid-header__position.sc-ez-grid{display:flex;align-items:center;justify-content:space-between}.grid__selection-counter.sc-ez-grid{position:fixed;white-space:nowrap;transform:translate(-50%, 0px);left:50%;opacity:0;bottom:-100%;transition:opacity 0.1s, bottom 0.5s}.grid__selection-counter--opened.sc-ez-grid{opacity:1;bottom:0px}.grid__btn-close.sc-ez-grid{display:flex;align-items:center;justify-content:center;padding:0;outline:none;width:20px;height:20px;border:none;background-color:unset;cursor:pointer}.grid__btn-clear.sc-ez-grid{--ez-button--link-color:var(--color--alert-warning-900, #8C6B00);--ez-button--link--hover-color:var(--color--alert-warning-900, #8C6B00)}[no-header].sc-ez-grid-h .grid-header.sc-ez-grid{height:0;padding:0}.grid-header__pagination.sc-ez-grid{width:30%;min-width:100px;justify-content:flex-end;flex-wrap:wrap}.grid-header__left-container.sc-ez-grid{width:70%}.grid-header__pagination-label.sc-ez-grid{width:100%;white-space:nowrap}.overflowed.sc-ez-grid{display:none}";
|
|
121185
120953
|
|
|
121186
120954
|
const windowInstace = window;
|
|
121187
120955
|
const matches = (text, filter) => {
|
|
@@ -121220,9 +120988,6 @@ const EzGrid = class {
|
|
|
121220
120988
|
this.recordsValidator = undefined;
|
|
121221
120989
|
this.canEdit = true;
|
|
121222
120990
|
this.autoFocus = true;
|
|
121223
|
-
this.paginationCounterMode = 'show';
|
|
121224
|
-
this.enableGridInsert = false;
|
|
121225
|
-
this.enableContinuousInsert = true;
|
|
121226
120991
|
}
|
|
121227
120992
|
/**
|
|
121228
120993
|
* Aplica a definição de colunas.
|
|
@@ -121358,14 +121123,6 @@ const EzGrid = class {
|
|
|
121358
121123
|
this._refPaginationLabelTooltip.setAttribute('data-tooltip', this._getPaginationTooltip());
|
|
121359
121124
|
}
|
|
121360
121125
|
}
|
|
121361
|
-
observePaginationCounterMode(newValue) {
|
|
121362
|
-
if (newValue === 'hidden') {
|
|
121363
|
-
this._hidePaginationDescription();
|
|
121364
|
-
}
|
|
121365
|
-
if (newValue === 'show') {
|
|
121366
|
-
this._showPaginationDescription();
|
|
121367
|
-
}
|
|
121368
|
-
}
|
|
121369
121126
|
onSelectionChange(evt) {
|
|
121370
121127
|
this._currentPageSelected = evt.detail.selectionHeaderStatus === true;
|
|
121371
121128
|
if (this.dataUnit) {
|
|
@@ -121529,16 +121286,11 @@ const EzGrid = class {
|
|
|
121529
121286
|
this._paginationChangedByKeyboard = false;
|
|
121530
121287
|
(_a = this._gridApi) === null || _a === void 0 ? void 0 : _a.clearRangeSelection();
|
|
121531
121288
|
}
|
|
121532
|
-
resolvePaginationClassMode() {
|
|
121533
|
-
if (this.paginationCounterMode == 'show')
|
|
121534
|
-
return "pagination-expanded";
|
|
121535
|
-
return "pagination-contracted";
|
|
121536
|
-
}
|
|
121537
121289
|
getPaginationControl() {
|
|
121538
121290
|
if (!this._paginationInfo)
|
|
121539
121291
|
return null;
|
|
121540
121292
|
const { currentPage, hasMore } = this._paginationInfo;
|
|
121541
|
-
return (index.h("div", { class:
|
|
121293
|
+
return (index.h("div", { class: "grid-header__container grid-header__pagination", ref: ref => (this._refPaginationControl = ref) }, index.h("div", { class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium", ref: (element) => (this._refPaginationLabel = element) }, index.h("span", { class: "grid-header__pagination-label" }, index.h("strong", { class: "ez-text ez-text--primary ez-text--medium" }, this._getActualPageLabel()), this._getRemainingPageLabel())), index.h("div", { id: "grid-pagination-tooltip", ref: (element) => (this._refPaginationLabelTooltip = element), class: "ez-flex ez-margin-right--medium" }, index.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" }), index.h("ez-button", { size: "small", iconName: "chevron-right", mode: "icon", enabled: hasMore, onClick: () => this.nextPage(), label: "Pr\u00F3xima P\u00E1gina" }))));
|
|
121542
121294
|
}
|
|
121543
121295
|
componentDidLoad() {
|
|
121544
121296
|
this._gridController.initDatagrid(this._container, {
|
|
@@ -121562,8 +121314,6 @@ const EzGrid = class {
|
|
|
121562
121314
|
editionIsDisabled: () => !this.canEdit,
|
|
121563
121315
|
customFormatters: this._customFormatters,
|
|
121564
121316
|
autoFocus: this.autoFocus,
|
|
121565
|
-
enableGridInsert: this.enableGridInsert,
|
|
121566
|
-
enableContinuousInsert: this.enableContinuousInsert,
|
|
121567
121317
|
onRefresh: () => {
|
|
121568
121318
|
if (this.dataUnit) {
|
|
121569
121319
|
this.setSelection(this.dataUnit.getSelectionInfo());
|
|
@@ -121580,8 +121330,7 @@ const EzGrid = class {
|
|
|
121580
121330
|
this.setEvents();
|
|
121581
121331
|
this.componentReady.emit();
|
|
121582
121332
|
this._gridController.configFilterColumn(this._filterColumn);
|
|
121583
|
-
|
|
121584
|
-
this._initHeaderOverflowWatcher();
|
|
121333
|
+
this._initHeaderOverflowWatcher();
|
|
121585
121334
|
}
|
|
121586
121335
|
handlePaginationChange(selectFirstRecord, paginationInfo) {
|
|
121587
121336
|
var _a;
|
|
@@ -121608,7 +121357,8 @@ const EzGrid = class {
|
|
|
121608
121357
|
return this._getActualPageLabel() + this._getRemainingPageLabel();
|
|
121609
121358
|
}
|
|
121610
121359
|
_initHeaderOverflowWatcher() {
|
|
121611
|
-
|
|
121360
|
+
if (this._refPaginationControl)
|
|
121361
|
+
this._headerOverflowWatcher = new core.OverflowWatcher(this.buildOverFlowWatcherParams());
|
|
121612
121362
|
}
|
|
121613
121363
|
buildOverFlowWatcherParams() {
|
|
121614
121364
|
return {
|
|
@@ -121657,8 +121407,6 @@ const EzGrid = class {
|
|
|
121657
121407
|
}
|
|
121658
121408
|
componentDidUpdate() {
|
|
121659
121409
|
this._gridController.setAutoFocus(this.autoFocus);
|
|
121660
|
-
this._gridController.setEnableGridInsert(this.enableGridInsert);
|
|
121661
|
-
this._gridController.setEnableContinuousInsert(this.enableContinuousInsert);
|
|
121662
121410
|
if (this.dataUnit) {
|
|
121663
121411
|
this.setSelection(this.dataUnit.getSelectionInfo());
|
|
121664
121412
|
}
|
|
@@ -121670,14 +121418,9 @@ const EzGrid = class {
|
|
|
121670
121418
|
hideHeader() {
|
|
121671
121419
|
return (!!this._element.getAttribute("no-header") && !this._paginationInfo);
|
|
121672
121420
|
}
|
|
121673
|
-
resolveLeftHeaderClass() {
|
|
121674
|
-
if (this.paginationCounterMode == 'show')
|
|
121675
|
-
return "left__header-expanded";
|
|
121676
|
-
return "left__header-contracted";
|
|
121677
|
-
}
|
|
121678
121421
|
render() {
|
|
121679
121422
|
var _a;
|
|
121680
|
-
return (index.h(index.Host, { "no-header": this.hideHeader() }, index.h("div", { class: "grid__container ez-grid", ref: elem => (this._container = elem) }), index.h("div", { class: "ez-box ez-box--shadow ez-padding--
|
|
121423
|
+
return (index.h(index.Host, { "no-header": this.hideHeader() }, index.h("div", { class: "grid__container ez-grid", ref: elem => (this._container = elem) }), index.h("div", { class: "ez-box ez-box--shadow ez-padding--medium grid-header" }, index.h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), index.h("div", { class: "grid-header__position" }, index.h("div", { class: "grid-header__container grid-header__left-container" }, index.h("slot", { name: "leftButtons" })), this.getPaginationControl())), index.h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
|
|
121681
121424
|
${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
|
|
121682
121425
|
` }, index.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) })), index.h("div", { class: "grid__footer" }, index.h("slot", { name: "footer" }))));
|
|
121683
121426
|
}
|
|
@@ -121685,8 +121428,7 @@ const EzGrid = class {
|
|
|
121685
121428
|
get _element() { return index.getElement(this); }
|
|
121686
121429
|
static get watchers() { return {
|
|
121687
121430
|
"config": ["observeConfig"],
|
|
121688
|
-
"_paginationInfo": ["updatePaginationTooltip"]
|
|
121689
|
-
"paginationCounterMode": ["observePaginationCounterMode"]
|
|
121431
|
+
"_paginationInfo": ["updatePaginationTooltip"]
|
|
121690
121432
|
}; }
|
|
121691
121433
|
};
|
|
121692
121434
|
EzGrid.style = ezGridCss;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-a7b0c73d.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const EzScrollDirection = require('./EzScrollDirection-b2c99895.js');
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-a7b0c73d.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
|
|
8
8
|
const ezIconCss = ":host{display:flex;overflow:hidden;position:relative;--ez-icon--color:var(--icon--color, #ffffff)}svg{display:flex;justify-content:center;align-items:center;fill:var(--ez-icon--color)}.x-small{width:12px;height:12px}.small{width:16px;height:16px}.medium{width:20px;height:20px}.large{width:24px;height:24px}.x-large{width:30px;height:30px}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{color:var(--ez-icon--color)}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{font-family:'ez-icons' !important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ez-icon-2chevron-down:before{content:\"\\ea01\"}.ez-icon-2chevron-up:before{content:\"\\ea02\"}.ez-icon-acao:before{content:\"\\ea03\"}.ez-icon-account-outline:before{content:\"\\ea04\"}.ez-icon-account:before{content:\"\\ea05\"}.ez-icon-alert-circle-inverted:before{content:\"\\ea06\"}.ez-icon-alert-circle:before{content:\"\\ea07\"}.ez-icon-alert-mail:before{content:\"\\ea08\"}.ez-icon-alert-popup:before{content:\"\\ea09\"}.ez-icon-anexo:before{content:\"\\ea0a\"}.ez-icon-antecipacao:before{content:\"\\ea0b\"}.ez-icon-apps:before{content:\"\\ea0c\"}.ez-icon-arrow-forward:before{content:\"\\ea0d\"}.ez-icon-arrow-upward:before{content:\"\\ea0e\"}.ez-icon-arrow_back:before{content:\"\\ea0f\"}.ez-icon-arrow_downward:before{content:\"\\ea10\"}.ez-icon-baixa:before{content:\"\\ea11\"}.ez-icon-balance:before{content:\"\\ea12\"}.ez-icon-bell-inverted:before{content:\"\\ea13\"}.ez-icon-bell:before{content:\"\\ea14\"}.ez-icon-boleto:before{content:\"\\ea15\"}.ez-icon-boolean:before{content:\"\\ea16\"}.ez-icon-business-center:before{content:\"\\ea17\"}.ez-icon-calendar-clock:before{content:\"\\ea18\"}.ez-icon-calendar:before{content:\"\\ea19\"}.ez-icon-cash-remove:before{content:\"\\ea1a\"}.ez-icon-check-circle-inverted:before{content:\"\\ea1b\"}.ez-icon-check-circle:before{content:\"\\ea1c\"}.ez-icon-check:before{content:\"\\ea1d\"}.ez-icon-chevron-down:before{content:\"\\ea1e\"}.ez-icon-chevron-left:before{content:\"\\ea1f\"}.ez-icon-chevron-right:before{content:\"\\ea20\"}.ez-icon-chevron-up:before{content:\"\\ea21\"}.ez-icon-circle--medium:before{content:\"\\ea22\"}.ez-icon-circle:before{content:\"\\ea23\"}.ez-icon-cleaning:before{content:\"\\ea24\"}.ez-icon-clipboard:before{content:\"\\ea25\"}.ez-icon-clock-rotate-left:before{content:\"\\ea26\"}.ez-icon-close:before{content:\"\\ea27\"}.ez-icon-cobrar:before{content:\"\\ea28\"}.ez-icon-code:before{content:\"\\ea29\"}.ez-icon-configuration:before{content:\"\\ea2a\"}.ez-icon-content-cut:before{content:\"\\ea2b\"}.ez-icon-copy:before{content:\"\\ea2c\"}.ez-icon-credit_card:before{content:\"\\ea2d\"}.ez-icon-crop:before{content:\"\\ea2e\"}.ez-icon-custom:before{content:\"\\ea2f\"}.ez-icon-delete-file:before{content:\"\\ea30\"}.ez-icon-delete:before{content:\"\\ea31\"}.ez-icon-description:before{content:\"\\ea32\"}.ez-icon-dividir:before{content:\"\\ea33\"}.ez-icon-docx:before{content:\"\\ea34\"}.ez-icon-dot-notification:before{content:\"\\ea35\"}.ez-icon-dots-horizontal:before{content:\"\\ea36\"}.ez-icon-dots-vertical:before{content:\"\\ea37\"}.ez-icon-drag-indicator:before{content:\"\\ea38\"}.ez-icon-dual-chevron-down:before{content:\"\\ea39\"}.ez-icon-dual-chevron-left:before{content:\"\\ea3a\"}.ez-icon-dual-chevron-right:before{content:\"\\ea3b\"}.ez-icon-dual-chevron-up:before{content:\"\\ea3c\"}.ez-icon-edit-file:before{content:\"\\ea3d\"}.ez-icon-edit-table:before{content:\"\\ea3e\"}.ez-icon-edit-time:before{content:\"\\ea3f\"}.ez-icon-edit-value:before{content:\"\\ea40\"}.ez-icon-edit:before{content:\"\\ea41\"}.ez-icon-email:before{content:\"\\ea42\"}.ez-icon-estorno:before{content:\"\\ea43\"}.ez-icon-exe:before{content:\"\\ea44\"}.ez-icon-expand:before{content:\"\\ea45\"}.ez-icon-expandir_card:before{content:\"\\ea46\"}.ez-icon-extrato:before{content:\"\\ea47\"}.ez-icon-eye-off:before{content:\"\\ea48\"}.ez-icon-eye:before{content:\"\\ea49\"}.ez-icon-favorite:before{content:\"\\ea4a\"}.ez-icon-figma:before{content:\"\\ea4b\"}.ez-icon-file-download:before{content:\"\\ea4c\"}.ez-icon-file-upload:before{content:\"\\ea4d\"}.ez-icon-filter:before{content:\"\\ea4e\"}.ez-icon-find-file:before{content:\"\\ea4f\"}.ez-icon-find-page:before{content:\"\\ea50\"}.ez-icon-format-color-fill:before{content:\"\\ea51\"}.ez-icon-generic:before{content:\"\\ea52\"}.ez-icon-gif:before{content:\"\\ea53\"}.ez-icon-graph_bar:before{content:\"\\ea54\"}.ez-icon-handshake:before{content:\"\\ea55\"}.ez-icon-help-inverted:before{content:\"\\ea56\"}.ez-icon-help:before{content:\"\\ea57\"}.ez-icon-hide_menu:before{content:\"\\ea58\"}.ez-icon-home:before{content:\"\\ea59\"}.ez-icon-icons104:before{content:\"\\ea5a\"}.ez-icon-language:before{content:\"\\ea5b\"}.ez-icon-launch:before{content:\"\\ea5c\"}.ez-icon-lightbulb:before{content:\"\\ea5d\"}.ez-icon-list:before{content:\"\\ea5e\"}.ez-icon-location:before{content:\"\\ea5f\"}.ez-icon-lock-outline:before{content:\"\\ea60\"}.ez-icon-lock:before{content:\"\\ea61\"}.ez-icon-menu:before{content:\"\\ea62\"}.ez-icon-mid:before{content:\"\\ea63\"}.ez-icon-minus:before{content:\"\\ea64\"}.ez-icon-money-off:before{content:\"\\ea65\"}.ez-icon-money:before{content:\"\\ea66\"}.ez-icon-more:before{content:\"\\ea67\"}.ez-icon-mp3:before{content:\"\\ea68\"}.ez-icon-mp4:before{content:\"\\ea69\"}.ez-icon-multiple-files:before{content:\"\\ea6a\"}.ez-icon-north-west:before{content:\"\\ea6b\"}.ez-icon-number:before{content:\"\\ea6c\"}.ez-icon-ordem-ascendente:before{content:\"\\ea6d\"}.ez-icon-ordem-descendente:before{content:\"\\ea6e\"}.ez-icon-parcelar:before{content:\"\\ea6f\"}.ez-icon-pause:before{content:\"\\ea70\"}.ez-icon-payments:before{content:\"\\ea71\"}.ez-icon-pdf:before{content:\"\\ea72\"}.ez-icon-play:before{content:\"\\ea73\"}.ez-icon-plus:before{content:\"\\ea74\"}.ez-icon-png:before{content:\"\\ea75\"}.ez-icon-power:before{content:\"\\ea76\"}.ez-icon-pptx:before{content:\"\\ea77\"}.ez-icon-preview:before{content:\"\\ea78\"}.ez-icon-print:before{content:\"\\ea79\"}.ez-icon-push-pin:before{content:\"\\ea7a\"}.ez-icon-rateio:before{content:\"\\ea7b\"}.ez-icon-receipt:before{content:\"\\ea7c\"}.ez-icon-recolher_card:before{content:\"\\ea7d\"}.ez-icon-restore:before{content:\"\\ea7e\"}.ez-icon-return:before{content:\"\\ea7f\"}.ez-icon-sankhya-place:before{content:\"\\ea80\"}.ez-icon-save:before{content:\"\\ea81\"}.ez-icon-search:before{content:\"\\ea82\"}.ez-icon-settings-inverted:before{content:\"\\ea83\"}.ez-icon-settings:before{content:\"\\ea84\"}.ez-icon-share:before{content:\"\\ea85\"}.ez-icon-shield:before{content:\"\\ea86\"}.ez-icon-show_menu:before{content:\"\\ea87\"}.ez-icon-south-east:before{content:\"\\ea88\"}.ez-icon-sync:before{content:\"\\ea89\"}.ez-icon-table:before{content:\"\\ea8a\"}.ez-icon-tag_code:before{content:\"\\ea8b\"}.ez-icon-text:before{content:\"\\ea8c\"}.ez-icon-timeline:before{content:\"\\ea8d\"}.ez-icon-timer-outline:before{content:\"\\ea8e\"}.ez-icon-trending-up:before{content:\"\\ea8f\"}.ez-icon-tune:before{content:\"\\ea90\"}.ez-icon-txt:before{content:\"\\ea91\"}.ez-icon-un-pin:before{content:\"\\ea92\"}.ez-icon-unfold_less:before{content:\"\\ea93\"}.ez-icon-unfold_more:before{content:\"\\ea94\"}.ez-icon-user-circle:before{content:\"\\ea95\"}.ez-icon-warning-outline:before{content:\"\\ea96\"}.ez-icon-warning_triangle:before{content:\"\\ea97\"}.ez-icon-whatshot:before{content:\"\\ea98\"}.ez-icon-xlsx:before{content:\"\\ea99\"}.ez-icon-zip:before{content:\"\\ea9a\"}.x-small--font{font-size:12px}.small--font{font-size:16px}.medium--font{font-size:20px}.large--font{font-size:24px}.x-large--font{font-size:30px}";
|