@sankhyalabs/ezui 5.22.0-dev.39 → 5.22.0-dev.40
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/ez-chart.cjs.entry.js +1 -1
- package/dist/cjs/ez-form.cjs.entry.js +1 -0
- package/dist/cjs/ez-grid.cjs.entry.js +14424 -70513
- package/dist/collection/components/ez-form/ez-form.js +1 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +28 -11
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +5 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +1 -1
- package/dist/collection/components/ez-grid/ez-grid.js +7 -2
- package/dist/custom-elements/index.js +14640 -70728
- package/dist/esm/ez-chart.entry.js +1 -1
- package/dist/esm/ez-form.entry.js +1 -0
- package/dist/esm/ez-grid.entry.js +14424 -70513
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-0ff1a92d.entry.js +309 -0
- package/dist/ezui/{p-2c3ac210.entry.js → p-550cd812.entry.js} +1 -1
- package/dist/ezui/p-8f026744.entry.js +1 -0
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +2 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +3 -2
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +2 -1
- package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/cellRendererStatus.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/selectionHeader.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellRender.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +1 -1
- package/dist/types/components/ez-grid/ez-grid.d.ts +1 -1
- package/package.json +11 -4
- package/dist/ezui/p-044d46d5.entry.js +0 -1
- package/dist/ezui/p-fc8b1807.entry.js +0 -304
|
@@ -94,6 +94,7 @@ export class EzForm {
|
|
|
94
94
|
if (this.dataUnit === undefined) {
|
|
95
95
|
this.dataUnit = new DataUnit("ez-form");
|
|
96
96
|
}
|
|
97
|
+
this.dataUnit.unsubscribe(this.onDataUnitAction);
|
|
97
98
|
this.dataUnit.subscribe(this.onDataUnitAction);
|
|
98
99
|
this._dataBinder = new DataBinder(this.dataUnit);
|
|
99
100
|
this._store = createStore(formReducer);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApplicationContext, DataType, LockManager, MaskFormatter, NumberUtils, SortMode, StringUtils, UserInterface, } from '@sankhyalabs/core';
|
|
2
|
-
import { Grid
|
|
3
|
-
import {
|
|
2
|
+
import { Grid } from "@ag-grid-community/core";
|
|
3
|
+
import { LicenseManager } from '@ag-grid-enterprise/core';
|
|
4
4
|
import DataSource from './DataSource';
|
|
5
5
|
import { EzGridCustomHeader } from './components/EzGridCustomHeader';
|
|
6
6
|
import { CellRendererStatus } from './components/cellRendererStatus';
|
|
@@ -8,6 +8,12 @@ import SelectionHeader from './components/selectionHeader';
|
|
|
8
8
|
import gridTerms from './i18n/pt-BR';
|
|
9
9
|
import { DISTINCT_FILTER_NAME_PREFIX, EZ_GRID_LOADING_SOURCE } from '../../../../utils/constants';
|
|
10
10
|
import GridEditionManager from './GridEditionManager';
|
|
11
|
+
import { ModuleRegistry } from '@ag-grid-community/core';
|
|
12
|
+
import { EnterpriseCoreModule } from '@ag-grid-enterprise/core';
|
|
13
|
+
import { RangeSelectionModule } from '@ag-grid-enterprise/range-selection';
|
|
14
|
+
import { ServerSideRowModelModule } from '@ag-grid-enterprise/server-side-row-model';
|
|
15
|
+
import { ClipboardModule } from '@ag-grid-enterprise/clipboard';
|
|
16
|
+
import { MenuModule } from '@ag-grid-enterprise/menu';
|
|
11
17
|
export default class AgGridController {
|
|
12
18
|
configFilterColumn(filterColumn) {
|
|
13
19
|
this._filterColumn = filterColumn;
|
|
@@ -27,7 +33,7 @@ export default class AgGridController {
|
|
|
27
33
|
var _a;
|
|
28
34
|
(_a = this._filterColumn) === null || _a === void 0 ? void 0 : _a.show(configs);
|
|
29
35
|
}
|
|
30
|
-
constructor(
|
|
36
|
+
constructor(_enterprise) {
|
|
31
37
|
this.DEFAULT_ROW_HEIGHT = 30;
|
|
32
38
|
this.DEFAULT_HEADER_ROW_HEIGHT = 32;
|
|
33
39
|
this.CHECK_BOX_COL_ID = 'checkBoxColumn';
|
|
@@ -43,7 +49,13 @@ export default class AgGridController {
|
|
|
43
49
|
this._customFormatters = new Map();
|
|
44
50
|
this._gridShowDom = false;
|
|
45
51
|
this.peddingExecutionsOnGridShow = [];
|
|
46
|
-
|
|
52
|
+
ModuleRegistry.registerModules([
|
|
53
|
+
EnterpriseCoreModule,
|
|
54
|
+
RangeSelectionModule,
|
|
55
|
+
ServerSideRowModelModule,
|
|
56
|
+
ClipboardModule,
|
|
57
|
+
MenuModule
|
|
58
|
+
]);
|
|
47
59
|
}
|
|
48
60
|
getGridConfig() {
|
|
49
61
|
return this._gridConfig;
|
|
@@ -176,12 +188,7 @@ export default class AgGridController {
|
|
|
176
188
|
this.setOptionsEvents(this._gridOptions);
|
|
177
189
|
this.setOptionsSupress(this._gridOptions);
|
|
178
190
|
this._gridOptions = this._editionManager.configureGrid(this._gridOptions);
|
|
179
|
-
|
|
180
|
-
this._grid = new EnterpriseGrid(container, this._gridOptions);
|
|
181
|
-
}
|
|
182
|
-
else {
|
|
183
|
-
this._grid = new Grid(container, this._gridOptions);
|
|
184
|
-
}
|
|
191
|
+
this._grid = new Grid(container, this._gridOptions);
|
|
185
192
|
const selection = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getSelectionInfo();
|
|
186
193
|
if (selection === null || selection === void 0 ? void 0 : selection.isAllRecords()) {
|
|
187
194
|
this.selectAll(true);
|
|
@@ -341,7 +348,7 @@ export default class AgGridController {
|
|
|
341
348
|
defineRowModelType(opt, sourceOptions) {
|
|
342
349
|
if (this._dataUnit != undefined) {
|
|
343
350
|
opt.rowModelType = 'serverSide';
|
|
344
|
-
opt.serverSideDatasource = new DataSource(this._dataUnit, this, sourceOptions);
|
|
351
|
+
opt.serverSideDatasource = this._dataSource = new DataSource(this._dataUnit, this, sourceOptions);
|
|
345
352
|
opt.serverSideSortOnServer = true;
|
|
346
353
|
opt.columnDefs = this._colDefs;
|
|
347
354
|
}
|
|
@@ -1049,7 +1056,17 @@ export default class AgGridController {
|
|
|
1049
1056
|
this._editionManager.processContinuousInsert();
|
|
1050
1057
|
}
|
|
1051
1058
|
destroy() {
|
|
1059
|
+
var _a;
|
|
1052
1060
|
this.observer.disconnect();
|
|
1061
|
+
(_a = this._dataSource) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
1062
|
+
}
|
|
1063
|
+
registryListeners() {
|
|
1064
|
+
var _a;
|
|
1065
|
+
(_a = this._dataSource) === null || _a === void 0 ? void 0 : _a.registryListeners();
|
|
1066
|
+
}
|
|
1067
|
+
resetPaginationState() {
|
|
1068
|
+
var _a, _b;
|
|
1069
|
+
(_b = (_a = this._gridOptions) === null || _a === void 0 ? void 0 : _a.api) === null || _b === void 0 ? void 0 : _b.clearRangeSelection();
|
|
1053
1070
|
}
|
|
1054
1071
|
stopEdit() {
|
|
1055
1072
|
this._gridOptions.api.stopEditing();
|
|
@@ -216,6 +216,11 @@ export default class DataSource {
|
|
|
216
216
|
destroy() {
|
|
217
217
|
this._dataUnit.unsubscribe(this.duObserver);
|
|
218
218
|
}
|
|
219
|
+
registryListeners() {
|
|
220
|
+
var _a, _b;
|
|
221
|
+
(_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.unsubscribe(this.duObserver);
|
|
222
|
+
(_b = this._dataUnit) === null || _b === void 0 ? void 0 : _b.subscribe(this.duObserver);
|
|
223
|
+
}
|
|
219
224
|
buildColumnDefs() {
|
|
220
225
|
const gridConfig = this._controller.getGridConfig() || [];
|
|
221
226
|
const columnDefs = [];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LockManager, LockManagerOperation, UserInterface } from '@sankhyalabs/core';
|
|
2
|
-
import { KeyCode, } from
|
|
2
|
+
import { KeyCode, } from "@ag-grid-community/core";
|
|
3
3
|
import { RecordValidationProcessor } from '../../../../utils/validators/recordvalidator/RecordValidationProcessor';
|
|
4
4
|
import EzCellEditor from './editor/EzCellEditor';
|
|
5
5
|
import EzGridCustomCellEditor from './components/EzGridCustomCellEditor';
|
|
@@ -359,7 +359,7 @@ export class EzGrid {
|
|
|
359
359
|
resetPaginationState() {
|
|
360
360
|
var _a;
|
|
361
361
|
this._paginationChangedByKeyboard = false;
|
|
362
|
-
(_a = this.
|
|
362
|
+
(_a = this._gridController) === null || _a === void 0 ? void 0 : _a.resetPaginationState();
|
|
363
363
|
}
|
|
364
364
|
resolvePaginationClassMode() {
|
|
365
365
|
if (this.paginationCounterMode == 'show')
|
|
@@ -473,8 +473,13 @@ export class EzGrid {
|
|
|
473
473
|
this._refPaginationLabelTooltip.removeAttribute('data-tooltip');
|
|
474
474
|
}
|
|
475
475
|
disconnectedCallback() {
|
|
476
|
-
var _a;
|
|
476
|
+
var _a, _b;
|
|
477
477
|
(_a = this._headerOverflowWatcher) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
478
|
+
(_b = this._gridController) === null || _b === void 0 ? void 0 : _b.destroy();
|
|
479
|
+
}
|
|
480
|
+
connectedCallback() {
|
|
481
|
+
var _a;
|
|
482
|
+
(_a = this._gridController) === null || _a === void 0 ? void 0 : _a.registryListeners();
|
|
478
483
|
}
|
|
479
484
|
componentWillRender() {
|
|
480
485
|
this.configSelectionCounter();
|