ngx-deebodata-community 0.2.2 → 0.2.4
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-deebodata-community",
|
|
3
3
|
"description": "Angular data grid that solves data analysis problems with virtual scroll, column resizing, cell editing, tab accessibility, sorting, and filtering.",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.4",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.2.0",
|
|
7
7
|
"@angular/core": "^21.2.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { EventEmitter, ElementRef, SimpleChanges } from '@angular/core';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
|
|
5
5
|
interface ColumnHeader {
|
|
@@ -53,8 +53,8 @@ declare class CommonService {
|
|
|
53
53
|
g: number;
|
|
54
54
|
b: number;
|
|
55
55
|
} | null;
|
|
56
|
-
static ɵfac:
|
|
57
|
-
static ɵprov:
|
|
56
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommonService, never>;
|
|
57
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<CommonService>;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
interface ColumnSymbol {
|
|
@@ -76,7 +76,9 @@ declare class DataTableService {
|
|
|
76
76
|
currFilData: any[];
|
|
77
77
|
currMapping: any;
|
|
78
78
|
mapperWorkerId: number;
|
|
79
|
-
dTblHeight: number
|
|
79
|
+
dTblHeight: _angular_core.WritableSignal<number>;
|
|
80
|
+
listenForScroll: _angular_core.WritableSignal<boolean>;
|
|
81
|
+
lockCellFocus: _angular_core.WritableSignal<boolean>;
|
|
80
82
|
defltRHgt: string;
|
|
81
83
|
defltRHgtNum: number;
|
|
82
84
|
isSorting: boolean;
|
|
@@ -142,8 +144,8 @@ declare class DataTableService {
|
|
|
142
144
|
easyFilter(val: any, dataI: any[], sortOrder: string[]): void;
|
|
143
145
|
allDataFilter(filterVal: any, data: any[]): any[];
|
|
144
146
|
arefilSrtTrkPropsDefault(ignoreColFM?: any): boolean;
|
|
145
|
-
static ɵfac:
|
|
146
|
-
static ɵprov:
|
|
147
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DataTableService, never>;
|
|
148
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<DataTableService>;
|
|
147
149
|
}
|
|
148
150
|
|
|
149
151
|
declare class TableDragService {
|
|
@@ -152,7 +154,8 @@ declare class TableDragService {
|
|
|
152
154
|
constructor(dataTableService: DataTableService, common: CommonService);
|
|
153
155
|
currDataRow: any;
|
|
154
156
|
currColForDataRow: any;
|
|
155
|
-
|
|
157
|
+
handleTblHtTO: any;
|
|
158
|
+
tblHgtDiff: number;
|
|
156
159
|
currColumnEdit: string;
|
|
157
160
|
listenForMouseUp: boolean;
|
|
158
161
|
listenForSelectStart: boolean;
|
|
@@ -179,8 +182,8 @@ declare class TableDragService {
|
|
|
179
182
|
handleColResMouseUp(e: any): void;
|
|
180
183
|
handleColMoveMouseUp(e: any): void;
|
|
181
184
|
stopWindowSelection(e: any): boolean;
|
|
182
|
-
static ɵfac:
|
|
183
|
-
static ɵprov:
|
|
185
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableDragService, never>;
|
|
186
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<TableDragService>;
|
|
184
187
|
}
|
|
185
188
|
|
|
186
189
|
interface DataCell {
|
|
@@ -224,23 +227,27 @@ declare class NgxDeebodataCommunity {
|
|
|
224
227
|
dataTableService: DataTableService;
|
|
225
228
|
private tblDragService;
|
|
226
229
|
common: CommonService;
|
|
227
|
-
private _cd;
|
|
228
230
|
onWindowClick(e: MouseEvent): void;
|
|
229
231
|
onWindowMouseUp(e: MouseEvent): void;
|
|
232
|
+
onWindowMouseDown(e: MouseEvent): void;
|
|
230
233
|
onWindowMouseMove(e: MouseEvent): void;
|
|
231
234
|
onWindowSelectStart(e: Event): void;
|
|
232
235
|
onWindowResize(e: Event): void;
|
|
233
236
|
onWindowScroll(e: Event): void;
|
|
234
|
-
constructor(dataTableService: DataTableService, tblDragService: TableDragService, common: CommonService
|
|
237
|
+
constructor(dataTableService: DataTableService, tblDragService: TableDragService, common: CommonService);
|
|
235
238
|
rows: DataRow[];
|
|
236
|
-
aboveHgt:
|
|
237
|
-
belowHgt:
|
|
239
|
+
aboveHgt: _angular_core.WritableSignal<number>;
|
|
240
|
+
belowHgt: _angular_core.WritableSignal<number>;
|
|
241
|
+
rnBTop: _angular_core.WritableSignal<number>;
|
|
238
242
|
dtChecks: number[];
|
|
239
243
|
rowNos: RowNumber[];
|
|
240
244
|
verticalRest: number;
|
|
241
245
|
horizRest: number;
|
|
242
246
|
isScrolling: boolean;
|
|
243
247
|
useRowWid: string;
|
|
248
|
+
dtr: string;
|
|
249
|
+
rowElsPad: number;
|
|
250
|
+
doRowsMod: number;
|
|
244
251
|
paginatorReady: boolean;
|
|
245
252
|
handlingSelRows: boolean;
|
|
246
253
|
columnOfInterest: string;
|
|
@@ -254,13 +261,18 @@ declare class NgxDeebodataCommunity {
|
|
|
254
261
|
togSelRows: string;
|
|
255
262
|
maxCols: number;
|
|
256
263
|
lastElRowIndex: number;
|
|
264
|
+
scrollDir: string;
|
|
265
|
+
transY: _angular_core.WritableSignal<number>;
|
|
266
|
+
mouseIsDown: boolean;
|
|
267
|
+
finishScrollTO: any;
|
|
268
|
+
valEditFocusTo: any;
|
|
257
269
|
columnHeaders: ColumnHeader[];
|
|
258
270
|
columnNames: string[];
|
|
259
271
|
linkCell: any;
|
|
260
272
|
linkCells: any[];
|
|
261
273
|
validatedEditType: string;
|
|
262
|
-
dataHasBeenSet:
|
|
263
|
-
data:
|
|
274
|
+
dataHasBeenSet: _angular_core.WritableSignal<boolean>;
|
|
275
|
+
data: _angular_core.InputSignal<any[]>;
|
|
264
276
|
color1: string;
|
|
265
277
|
color2: string;
|
|
266
278
|
primaryKey: string;
|
|
@@ -277,7 +289,6 @@ declare class NgxDeebodataCommunity {
|
|
|
277
289
|
belowArea: ElementRef<HTMLElement>;
|
|
278
290
|
validatedEdit: ElementRef<HTMLElement>;
|
|
279
291
|
rowNumHeader: ElementRef<HTMLElement>;
|
|
280
|
-
rowNumBody: ElementRef<HTMLElement>;
|
|
281
292
|
fCellDragger: ElementRef<HTMLElement>;
|
|
282
293
|
selFilContainer: ElementRef<HTMLElement>;
|
|
283
294
|
btnTogSelRows: ElementRef<HTMLButtonElement>;
|
|
@@ -287,16 +298,18 @@ declare class NgxDeebodataCommunity {
|
|
|
287
298
|
ngOnInit(): void;
|
|
288
299
|
handleDataInput(): void;
|
|
289
300
|
getAllColsAtRuntime(excludeHidden: any): string[];
|
|
290
|
-
setMaxCols():
|
|
301
|
+
setMaxCols(): 5 | 3 | 2;
|
|
291
302
|
getAllColWidth(colLen: any): number;
|
|
292
303
|
removeAllFreezeCols(): void;
|
|
293
|
-
setTableHeight(h: number): void;
|
|
304
|
+
setTableHeight(h: number, manual?: boolean): void;
|
|
305
|
+
handleRowsOnHeightIncrease(): void;
|
|
294
306
|
processColMove(event: any): void;
|
|
295
307
|
setColHeaderHgt(): void;
|
|
296
308
|
renameColSpecChars(data: any[]): any[];
|
|
297
309
|
scoopOutObjsInObjs(data: any[]): any[];
|
|
298
310
|
convertNeededCols(data: any): any;
|
|
299
311
|
setRowSelChecksPlacement(): void;
|
|
312
|
+
cleanRowChecks(): void;
|
|
300
313
|
setRowNumbers(): void;
|
|
301
314
|
initCheckTop(): number;
|
|
302
315
|
toggleSelectedRows(forceUnsel?: any): void;
|
|
@@ -313,19 +326,21 @@ declare class NgxDeebodataCommunity {
|
|
|
313
326
|
blurContEd(): void;
|
|
314
327
|
setColsOnVisScreen(): void;
|
|
315
328
|
handleScrlBarDrag(): void;
|
|
329
|
+
setAllRowsDefHgt(): void;
|
|
330
|
+
completeScroll(): void;
|
|
316
331
|
handleScroll(event: any): void;
|
|
317
332
|
execHorizScroll(left: number): void;
|
|
333
|
+
fixRowContainer(transY: number): void;
|
|
318
334
|
execVertScroll(top: number): void;
|
|
319
|
-
scrollDir: string;
|
|
320
335
|
handleScrollEnd(): any;
|
|
321
336
|
addCell(text: any, prop: string, visible: boolean): DataCell;
|
|
337
|
+
setCellsOnVertScroll(text: string, prop: string, row: DataRow, vis: boolean): void;
|
|
322
338
|
execHorizBodyScroll(): void;
|
|
323
339
|
cleanUpPossibles(): void;
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
valEditFocusTo: number | null;
|
|
340
|
+
applyToDomRows(rows: any[], cols: string[], colLen: number, lastVisInd: number, dir: string, defNum: number, newRows: number): void;
|
|
341
|
+
execVertScrollDown(cols: string[], colLen: number, currTop: number): void;
|
|
342
|
+
execVertScrollUp(cols: string[], colLen: number, currTop: number, force?: boolean): void;
|
|
343
|
+
finishApplyingDomRows(): void;
|
|
329
344
|
handleValidatedCellEditFocus(cellData: any): void;
|
|
330
345
|
clearFCellDragger(): void;
|
|
331
346
|
clearValidatedEdit(e?: any, clearDrag?: boolean): void;
|
|
@@ -356,8 +371,8 @@ declare class NgxDeebodataCommunity {
|
|
|
356
371
|
clearFilInputs(): void;
|
|
357
372
|
resetCurrentData(col?: string): void;
|
|
358
373
|
resetVisCols(): void;
|
|
359
|
-
static ɵfac:
|
|
360
|
-
static ɵcmp:
|
|
374
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgxDeebodataCommunity, never>;
|
|
375
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgxDeebodataCommunity, "ngx-deebodata-community", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "color1": { "alias": "color1"; "required": false; }; "color2": { "alias": "color2"; "required": false; }; "primaryKey": { "alias": "primaryKey"; "required": false; }; "defRowHgt": { "alias": "defRowHgt"; "required": false; }; "defGridHgt": { "alias": "defGridHgt"; "required": false; }; "altRowColor": { "alias": "altRowColor"; "required": false; }; "myColumnSymbols": { "alias": "myColumnSymbols"; "required": false; }; "editable": { "alias": "editable"; "required": false; }; "rowNumbers": { "alias": "rowNumbers"; "required": false; }; }, { "cellEdit": "cellEdit"; }, never, never, true, never>;
|
|
361
376
|
}
|
|
362
377
|
|
|
363
378
|
export { NgxDeebodataCommunity };
|