@nettyapps/ntybase 21.0.35-beta.1 → 21.0.35-beta.2
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.
|
@@ -5,28 +5,28 @@ import { HttpErrorResponse, HttpResponse, HTTP_INTERCEPTORS, HttpClient, HttpHea
|
|
|
5
5
|
import { of, throwError, Subject, lastValueFrom, map, catchError as catchError$1, finalize, take as take$1, takeUntil } from 'rxjs';
|
|
6
6
|
import { catchError, map as map$1, take, finalize as finalize$1 } from 'rxjs/operators';
|
|
7
7
|
import { Router, ActivatedRoute } from '@angular/router';
|
|
8
|
-
import * as i2$
|
|
8
|
+
import * as i2$1 from '@nettyapps/ntycontract';
|
|
9
9
|
import { EnvironmentProxy, injectNettyStandardProxy, injectNettyStandardLogProxy } from '@nettyapps/ntycontract';
|
|
10
10
|
import { DatePipe, CommonModule, Location, DecimalPipe } from '@angular/common';
|
|
11
|
-
import {
|
|
11
|
+
import { Buffer } from 'buffer';
|
|
12
12
|
import * as i1 from '@angular/material/dialog';
|
|
13
13
|
import { MatDialogRef, MAT_DIALOG_DATA, MatDialogModule, MatDialog } from '@angular/material/dialog';
|
|
14
|
-
import { ModuleRegistry, AllCommunityModule, ClientSideRowModelModule, HighlightChangesModule } from 'ag-grid-community';
|
|
15
|
-
import { themeQuartz, StatusBarModule, ClipboardModule, ExcelExportModule, ColumnMenuModule, ContextMenuModule, CellSelectionModule, RowSelectionModule } from 'ag-grid-enterprise';
|
|
16
|
-
import * as i2 from '@angular/material/icon';
|
|
17
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
18
|
-
import * as i2$1 from '@angular/material/tooltip';
|
|
19
|
-
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
20
|
-
import * as i2$3 from '@angular/material/menu';
|
|
21
|
-
import { MatMenuModule } from '@angular/material/menu';
|
|
22
|
-
import { Buffer } from 'buffer';
|
|
23
14
|
import * as i3 from '@angular/material/divider';
|
|
24
15
|
import { MatDividerModule } from '@angular/material/divider';
|
|
16
|
+
import * as i2 from '@angular/material/icon';
|
|
17
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
25
18
|
import * as i1$2 from '@angular/material/snack-bar';
|
|
26
19
|
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
|
27
20
|
import * as i1$1 from '@ngx-translate/core';
|
|
28
21
|
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
|
29
22
|
import { Mutex } from 'async-mutex';
|
|
23
|
+
import { themeQuartz, StatusBarModule, ClipboardModule, ExcelExportModule, ColumnMenuModule, ContextMenuModule, CellSelectionModule, RowSelectionModule } from 'ag-grid-enterprise';
|
|
24
|
+
import { toSignal } from '@angular/core/rxjs-interop';
|
|
25
|
+
import { ModuleRegistry, AllCommunityModule, ClientSideRowModelModule, HighlightChangesModule } from 'ag-grid-community';
|
|
26
|
+
import * as i2$2 from '@angular/material/tooltip';
|
|
27
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
28
|
+
import * as i2$3 from '@angular/material/menu';
|
|
29
|
+
import { MatMenuModule } from '@angular/material/menu';
|
|
30
30
|
import * as XLSX from 'xlsx';
|
|
31
31
|
import { I18nService } from '@nettyapps/ntyi18n';
|
|
32
32
|
import * as i1$4 from '@angular/forms';
|
|
@@ -310,152 +310,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImpor
|
|
|
310
310
|
}]
|
|
311
311
|
}] });
|
|
312
312
|
|
|
313
|
-
class ButtonRenderer {
|
|
314
|
-
params = null;
|
|
315
|
-
label = '';
|
|
316
|
-
type = '';
|
|
317
|
-
toggleValue = null;
|
|
318
|
-
editValid = false;
|
|
319
|
-
historyValid = false;
|
|
320
|
-
lineValid = false;
|
|
321
|
-
popupSelectValid = false;
|
|
322
|
-
popupEditValid = false;
|
|
323
|
-
toggleValid = false;
|
|
324
|
-
toggle_icon = '';
|
|
325
|
-
none = false;
|
|
326
|
-
addValid = false;
|
|
327
|
-
deleteValid = false;
|
|
328
|
-
agInit(params) {
|
|
329
|
-
this.params = params;
|
|
330
|
-
this.type = this.params.type || null;
|
|
331
|
-
this.label = this.params.label || null;
|
|
332
|
-
this.toggleValue = this.params.value || null;
|
|
333
|
-
switch (this.toggleValue) {
|
|
334
|
-
case true:
|
|
335
|
-
this.toggle_icon = 'select_check_box';
|
|
336
|
-
break;
|
|
337
|
-
case false:
|
|
338
|
-
this.toggle_icon = 'check_box_outline_blank';
|
|
339
|
-
break;
|
|
340
|
-
default:
|
|
341
|
-
this.toggle_icon = '';
|
|
342
|
-
break;
|
|
343
|
-
}
|
|
344
|
-
this.resetValids();
|
|
345
|
-
switch (this.type.toLowerCase().trim()) {
|
|
346
|
-
case 'edit':
|
|
347
|
-
this.editValid = true;
|
|
348
|
-
break;
|
|
349
|
-
case 'log':
|
|
350
|
-
this.historyValid = true;
|
|
351
|
-
break;
|
|
352
|
-
case 'line':
|
|
353
|
-
this.lineValid = true;
|
|
354
|
-
break;
|
|
355
|
-
case 'popupselect':
|
|
356
|
-
this.popupSelectValid = true;
|
|
357
|
-
break;
|
|
358
|
-
case 'toggle':
|
|
359
|
-
this.toggleValid = true;
|
|
360
|
-
break;
|
|
361
|
-
case 'none':
|
|
362
|
-
this.none = true;
|
|
363
|
-
break;
|
|
364
|
-
case 'add':
|
|
365
|
-
this.addValid = true;
|
|
366
|
-
break;
|
|
367
|
-
case 'delete':
|
|
368
|
-
this.deleteValid = true;
|
|
369
|
-
break;
|
|
370
|
-
default:
|
|
371
|
-
this.popupEditValid = true;
|
|
372
|
-
break;
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
/** Refresh the display
|
|
376
|
-
*
|
|
377
|
-
* @param params
|
|
378
|
-
* @returns
|
|
379
|
-
*/
|
|
380
|
-
refresh(params) {
|
|
381
|
-
return false;
|
|
382
|
-
}
|
|
383
|
-
resetValids() {
|
|
384
|
-
this.editValid = false;
|
|
385
|
-
this.historyValid = false;
|
|
386
|
-
this.lineValid = false;
|
|
387
|
-
this.popupSelectValid = false;
|
|
388
|
-
this.popupEditValid = false;
|
|
389
|
-
this.toggleValid = false;
|
|
390
|
-
}
|
|
391
|
-
onClick(event) {
|
|
392
|
-
if (this.params.onClick instanceof Function) {
|
|
393
|
-
// put anything into params u want pass into parents component
|
|
394
|
-
const params = {
|
|
395
|
-
event: event,
|
|
396
|
-
rowData: this.params.node.data,
|
|
397
|
-
type: this.type,
|
|
398
|
-
// ...something
|
|
399
|
-
};
|
|
400
|
-
this.params.onClick(params);
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ButtonRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
404
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: ButtonRenderer, isStandalone: true, selector: "ntybase-button-renderer", host: { attributes: { "ntybase-id": "ButtonRenderer" } }, ngImport: i0, template: "@if (editValid || popupEditValid) {\n<mat-icon\n class=\"cursor center edit\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"4000\"\n >edit</mat-icon\n>\n} @if (historyValid) {\n<mat-icon\n class=\"cursor center-log\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"3000\"\n >log</mat-icon\n>\n} @if (historyValid) {\n<mat-icon\n class=\"cursor center\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"3000\"\n >history</mat-icon\n>\n} @if (lineValid) {\n<mat-icon\n class=\"cursor center\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"3000\"\n >menu_open</mat-icon\n>\n} @if (popupSelectValid) {\n<mat-icon\n class=\"cursor center\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"3000\"\n >content_copy</mat-icon\n>\n} @if (toggleValid) {\n<mat-icon\n class=\"cursor center\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"3000\"\n >{{toggleValue ? 'check_box' : 'check_box_outline_blank'}}</mat-icon\n>\n} @if (none) {\n<mat-icon\n class=\"cursor center\"\n matTooltip=\"{{label}}\"\n [matTooltipShowDelay]=\"3000\"\n >menu_open</mat-icon\n>\n} @if (addValid) {\n<mat-icon\n class=\"cursor center\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"3000\"\n >playlist_add</mat-icon\n>\n} @if (deleteValid) {\n<mat-icon\n class=\"cursor center\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"3000\"\n >delete_outline</mat-icon\n>\n}\n", styles: [".cursor{cursor:pointer}.center{display:flex;justify-content:center;align-items:center;width:100%}.center-log{display:flex;justify-content:center;align-items:center;margin-bottom:-12px}.edit{margin-top:8px}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i2$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatMenuModule }] });
|
|
405
|
-
}
|
|
406
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ButtonRenderer, decorators: [{
|
|
407
|
-
type: Component,
|
|
408
|
-
args: [{ selector: 'ntybase-button-renderer', imports: [MatIconModule, MatTooltipModule, MatMenuModule], host: { 'ntybase-id': 'ButtonRenderer' }, template: "@if (editValid || popupEditValid) {\n<mat-icon\n class=\"cursor center edit\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"4000\"\n >edit</mat-icon\n>\n} @if (historyValid) {\n<mat-icon\n class=\"cursor center-log\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"3000\"\n >log</mat-icon\n>\n} @if (historyValid) {\n<mat-icon\n class=\"cursor center\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"3000\"\n >history</mat-icon\n>\n} @if (lineValid) {\n<mat-icon\n class=\"cursor center\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"3000\"\n >menu_open</mat-icon\n>\n} @if (popupSelectValid) {\n<mat-icon\n class=\"cursor center\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"3000\"\n >content_copy</mat-icon\n>\n} @if (toggleValid) {\n<mat-icon\n class=\"cursor center\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"3000\"\n >{{toggleValue ? 'check_box' : 'check_box_outline_blank'}}</mat-icon\n>\n} @if (none) {\n<mat-icon\n class=\"cursor center\"\n matTooltip=\"{{label}}\"\n [matTooltipShowDelay]=\"3000\"\n >menu_open</mat-icon\n>\n} @if (addValid) {\n<mat-icon\n class=\"cursor center\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"3000\"\n >playlist_add</mat-icon\n>\n} @if (deleteValid) {\n<mat-icon\n class=\"cursor center\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"3000\"\n >delete_outline</mat-icon\n>\n}\n", styles: [".cursor{cursor:pointer}.center{display:flex;justify-content:center;align-items:center;width:100%}.center-log{display:flex;justify-content:center;align-items:center;margin-bottom:-12px}.edit{margin-top:8px}\n"] }]
|
|
409
|
-
}] });
|
|
410
|
-
|
|
411
|
-
class CheckboxRenderer {
|
|
412
|
-
params = null;
|
|
413
|
-
label = '';
|
|
414
|
-
type = '';
|
|
415
|
-
supportClick = false;
|
|
416
|
-
checked = null;
|
|
417
|
-
agInit(params) {
|
|
418
|
-
this.onProcess(params);
|
|
419
|
-
}
|
|
420
|
-
refresh(params) {
|
|
421
|
-
if (params != null) {
|
|
422
|
-
this.onProcess(params);
|
|
423
|
-
}
|
|
424
|
-
return true;
|
|
425
|
-
}
|
|
426
|
-
onProcess(params) {
|
|
427
|
-
this.params = params;
|
|
428
|
-
this.checked = this.params.value ?? false;
|
|
429
|
-
this.type = this.params.type || null;
|
|
430
|
-
this.label = this.params.label || null;
|
|
431
|
-
if (this.type != null) {
|
|
432
|
-
if (this.type.toLowerCase().trim() == 'click') {
|
|
433
|
-
this.supportClick = true;
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
onClick(event) {
|
|
438
|
-
this.checked = !this.checked;
|
|
439
|
-
if (this.params.onClick instanceof Function) {
|
|
440
|
-
// put anything into params u want pass into parents component
|
|
441
|
-
const params = {
|
|
442
|
-
event: event,
|
|
443
|
-
rowData: this.params.node.data,
|
|
444
|
-
type: this.type,
|
|
445
|
-
checked: this.checked,
|
|
446
|
-
// ...something
|
|
447
|
-
};
|
|
448
|
-
this.params.onClick(params);
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: CheckboxRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
452
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: CheckboxRenderer, isStandalone: true, selector: "ntybase-checkbox-renderer", host: { attributes: { "ntybase-id": "CheckboxRenderer" } }, ngImport: i0, template: "@if (supportClick) {\n<input\n id=\"checkbox\"\n type=\"checkbox\"\n [checked]=\"checked\"\n (click)=\"onClick($event)\"\n/>\n} @if (!supportClick) {\n<input id=\"checkbox\" type=\"checkbox\" [checked]=\"params.value\" disabled />\n}\n\n<label for=\"checkbox\">{{label}}</label>\n", styles: [""] });
|
|
453
|
-
}
|
|
454
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: CheckboxRenderer, decorators: [{
|
|
455
|
-
type: Component,
|
|
456
|
-
args: [{ selector: 'ntybase-checkbox-renderer', imports: [], host: { 'ntybase-id': 'CheckboxRenderer' }, template: "@if (supportClick) {\n<input\n id=\"checkbox\"\n type=\"checkbox\"\n [checked]=\"checked\"\n (click)=\"onClick($event)\"\n/>\n} @if (!supportClick) {\n<input id=\"checkbox\" type=\"checkbox\" [checked]=\"params.value\" disabled />\n}\n\n<label for=\"checkbox\">{{label}}</label>\n" }]
|
|
457
|
-
}] });
|
|
458
|
-
|
|
459
313
|
class ConfirmDialog {
|
|
460
314
|
dialogRef = inject((MatDialogRef));
|
|
461
315
|
data = inject(MAT_DIALOG_DATA);
|
|
@@ -1379,7 +1233,7 @@ class SysfunctionProxy {
|
|
|
1379
1233
|
return throwError(() => new Error(errorMessage ?? ''));
|
|
1380
1234
|
}));
|
|
1381
1235
|
}
|
|
1382
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: SysfunctionProxy, deps: [{ token: i1$3.HttpClient }, { token: i2$
|
|
1236
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: SysfunctionProxy, deps: [{ token: i1$3.HttpClient }, { token: i2$1.EnvironmentProxy }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1383
1237
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: SysfunctionProxy, providedIn: 'root' });
|
|
1384
1238
|
}
|
|
1385
1239
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: SysfunctionProxy, decorators: [{
|
|
@@ -1387,7 +1241,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImpor
|
|
|
1387
1241
|
args: [{
|
|
1388
1242
|
providedIn: 'root',
|
|
1389
1243
|
}]
|
|
1390
|
-
}], ctorParameters: () => [{ type: i1$3.HttpClient }, { type: i2$
|
|
1244
|
+
}], ctorParameters: () => [{ type: i1$3.HttpClient }, { type: i2$1.EnvironmentProxy }] });
|
|
1391
1245
|
|
|
1392
1246
|
class NettyAgGridBase extends NettyAppsBase {
|
|
1393
1247
|
FILTER_MODE_KEY = 'nettyapps_filter_mode';
|
|
@@ -1714,6 +1568,152 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImpor
|
|
|
1714
1568
|
args: [{ selector: 'ntybase-ag-grid-base', imports: [], template: ``, host: { 'ntybase-id': 'NettyAgGridBase' } }]
|
|
1715
1569
|
}], propDecorators: { popupFilterValid: [{ type: i0.Input, args: [{ isSignal: true, alias: "popupFilterValid", required: false }] }], popupValid: [{ type: i0.Input, args: [{ isSignal: true, alias: "popupValid", required: false }] }], isEmbedded: [{ type: i0.Input, args: [{ isSignal: true, alias: "isEmbedded", required: false }] }], agGridSelectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "agGridSelectionMode", required: false }] }] } });
|
|
1716
1570
|
|
|
1571
|
+
class ButtonRenderer {
|
|
1572
|
+
params = null;
|
|
1573
|
+
label = '';
|
|
1574
|
+
type = '';
|
|
1575
|
+
toggleValue = null;
|
|
1576
|
+
editValid = false;
|
|
1577
|
+
historyValid = false;
|
|
1578
|
+
lineValid = false;
|
|
1579
|
+
popupSelectValid = false;
|
|
1580
|
+
popupEditValid = false;
|
|
1581
|
+
toggleValid = false;
|
|
1582
|
+
toggle_icon = '';
|
|
1583
|
+
none = false;
|
|
1584
|
+
addValid = false;
|
|
1585
|
+
deleteValid = false;
|
|
1586
|
+
agInit(params) {
|
|
1587
|
+
this.params = params;
|
|
1588
|
+
this.type = this.params.type || null;
|
|
1589
|
+
this.label = this.params.label || null;
|
|
1590
|
+
this.toggleValue = this.params.value || null;
|
|
1591
|
+
switch (this.toggleValue) {
|
|
1592
|
+
case true:
|
|
1593
|
+
this.toggle_icon = 'select_check_box';
|
|
1594
|
+
break;
|
|
1595
|
+
case false:
|
|
1596
|
+
this.toggle_icon = 'check_box_outline_blank';
|
|
1597
|
+
break;
|
|
1598
|
+
default:
|
|
1599
|
+
this.toggle_icon = '';
|
|
1600
|
+
break;
|
|
1601
|
+
}
|
|
1602
|
+
this.resetValids();
|
|
1603
|
+
switch (this.type.toLowerCase().trim()) {
|
|
1604
|
+
case 'edit':
|
|
1605
|
+
this.editValid = true;
|
|
1606
|
+
break;
|
|
1607
|
+
case 'log':
|
|
1608
|
+
this.historyValid = true;
|
|
1609
|
+
break;
|
|
1610
|
+
case 'line':
|
|
1611
|
+
this.lineValid = true;
|
|
1612
|
+
break;
|
|
1613
|
+
case 'popupselect':
|
|
1614
|
+
this.popupSelectValid = true;
|
|
1615
|
+
break;
|
|
1616
|
+
case 'toggle':
|
|
1617
|
+
this.toggleValid = true;
|
|
1618
|
+
break;
|
|
1619
|
+
case 'none':
|
|
1620
|
+
this.none = true;
|
|
1621
|
+
break;
|
|
1622
|
+
case 'add':
|
|
1623
|
+
this.addValid = true;
|
|
1624
|
+
break;
|
|
1625
|
+
case 'delete':
|
|
1626
|
+
this.deleteValid = true;
|
|
1627
|
+
break;
|
|
1628
|
+
default:
|
|
1629
|
+
this.popupEditValid = true;
|
|
1630
|
+
break;
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
/** Refresh the display
|
|
1634
|
+
*
|
|
1635
|
+
* @param params
|
|
1636
|
+
* @returns
|
|
1637
|
+
*/
|
|
1638
|
+
refresh(params) {
|
|
1639
|
+
return false;
|
|
1640
|
+
}
|
|
1641
|
+
resetValids() {
|
|
1642
|
+
this.editValid = false;
|
|
1643
|
+
this.historyValid = false;
|
|
1644
|
+
this.lineValid = false;
|
|
1645
|
+
this.popupSelectValid = false;
|
|
1646
|
+
this.popupEditValid = false;
|
|
1647
|
+
this.toggleValid = false;
|
|
1648
|
+
}
|
|
1649
|
+
onClick(event) {
|
|
1650
|
+
if (this.params.onClick instanceof Function) {
|
|
1651
|
+
// put anything into params u want pass into parents component
|
|
1652
|
+
const params = {
|
|
1653
|
+
event: event,
|
|
1654
|
+
rowData: this.params.node.data,
|
|
1655
|
+
type: this.type,
|
|
1656
|
+
// ...something
|
|
1657
|
+
};
|
|
1658
|
+
this.params.onClick(params);
|
|
1659
|
+
}
|
|
1660
|
+
}
|
|
1661
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ButtonRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1662
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: ButtonRenderer, isStandalone: true, selector: "ntybase-button-renderer", host: { attributes: { "ntybase-id": "ButtonRenderer" } }, ngImport: i0, template: "@if (editValid || popupEditValid) {\n<mat-icon\n class=\"cursor center edit\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"4000\"\n >edit</mat-icon\n>\n} @if (historyValid) {\n<mat-icon\n class=\"cursor center-log\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"3000\"\n >log</mat-icon\n>\n} @if (historyValid) {\n<mat-icon\n class=\"cursor center\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"3000\"\n >history</mat-icon\n>\n} @if (lineValid) {\n<mat-icon\n class=\"cursor center\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"3000\"\n >menu_open</mat-icon\n>\n} @if (popupSelectValid) {\n<mat-icon\n class=\"cursor center\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"3000\"\n >content_copy</mat-icon\n>\n} @if (toggleValid) {\n<mat-icon\n class=\"cursor center\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"3000\"\n >{{toggleValue ? 'check_box' : 'check_box_outline_blank'}}</mat-icon\n>\n} @if (none) {\n<mat-icon\n class=\"cursor center\"\n matTooltip=\"{{label}}\"\n [matTooltipShowDelay]=\"3000\"\n >menu_open</mat-icon\n>\n} @if (addValid) {\n<mat-icon\n class=\"cursor center\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"3000\"\n >playlist_add</mat-icon\n>\n} @if (deleteValid) {\n<mat-icon\n class=\"cursor center\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"3000\"\n >delete_outline</mat-icon\n>\n}\n", styles: [".cursor{cursor:pointer}.center{display:flex;justify-content:center;align-items:center;width:100%}.center-log{display:flex;justify-content:center;align-items:center;margin-bottom:-12px}.edit{margin-top:8px}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i2$2.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatMenuModule }] });
|
|
1663
|
+
}
|
|
1664
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ButtonRenderer, decorators: [{
|
|
1665
|
+
type: Component,
|
|
1666
|
+
args: [{ selector: 'ntybase-button-renderer', imports: [MatIconModule, MatTooltipModule, MatMenuModule], host: { 'ntybase-id': 'ButtonRenderer' }, template: "@if (editValid || popupEditValid) {\n<mat-icon\n class=\"cursor center edit\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"4000\"\n >edit</mat-icon\n>\n} @if (historyValid) {\n<mat-icon\n class=\"cursor center-log\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"3000\"\n >log</mat-icon\n>\n} @if (historyValid) {\n<mat-icon\n class=\"cursor center\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"3000\"\n >history</mat-icon\n>\n} @if (lineValid) {\n<mat-icon\n class=\"cursor center\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"3000\"\n >menu_open</mat-icon\n>\n} @if (popupSelectValid) {\n<mat-icon\n class=\"cursor center\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"3000\"\n >content_copy</mat-icon\n>\n} @if (toggleValid) {\n<mat-icon\n class=\"cursor center\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"3000\"\n >{{toggleValue ? 'check_box' : 'check_box_outline_blank'}}</mat-icon\n>\n} @if (none) {\n<mat-icon\n class=\"cursor center\"\n matTooltip=\"{{label}}\"\n [matTooltipShowDelay]=\"3000\"\n >menu_open</mat-icon\n>\n} @if (addValid) {\n<mat-icon\n class=\"cursor center\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"3000\"\n >playlist_add</mat-icon\n>\n} @if (deleteValid) {\n<mat-icon\n class=\"cursor center\"\n matTooltip=\"{{label}}\"\n (click)=\"onClick($event)\"\n [matTooltipShowDelay]=\"3000\"\n >delete_outline</mat-icon\n>\n}\n", styles: [".cursor{cursor:pointer}.center{display:flex;justify-content:center;align-items:center;width:100%}.center-log{display:flex;justify-content:center;align-items:center;margin-bottom:-12px}.edit{margin-top:8px}\n"] }]
|
|
1667
|
+
}] });
|
|
1668
|
+
|
|
1669
|
+
class CheckboxRenderer {
|
|
1670
|
+
params = null;
|
|
1671
|
+
label = '';
|
|
1672
|
+
type = '';
|
|
1673
|
+
supportClick = false;
|
|
1674
|
+
checked = null;
|
|
1675
|
+
agInit(params) {
|
|
1676
|
+
this.onProcess(params);
|
|
1677
|
+
}
|
|
1678
|
+
refresh(params) {
|
|
1679
|
+
if (params != null) {
|
|
1680
|
+
this.onProcess(params);
|
|
1681
|
+
}
|
|
1682
|
+
return true;
|
|
1683
|
+
}
|
|
1684
|
+
onProcess(params) {
|
|
1685
|
+
this.params = params;
|
|
1686
|
+
this.checked = this.params.value ?? false;
|
|
1687
|
+
this.type = this.params.type || null;
|
|
1688
|
+
this.label = this.params.label || null;
|
|
1689
|
+
if (this.type != null) {
|
|
1690
|
+
if (this.type.toLowerCase().trim() == 'click') {
|
|
1691
|
+
this.supportClick = true;
|
|
1692
|
+
}
|
|
1693
|
+
}
|
|
1694
|
+
}
|
|
1695
|
+
onClick(event) {
|
|
1696
|
+
this.checked = !this.checked;
|
|
1697
|
+
if (this.params.onClick instanceof Function) {
|
|
1698
|
+
// put anything into params u want pass into parents component
|
|
1699
|
+
const params = {
|
|
1700
|
+
event: event,
|
|
1701
|
+
rowData: this.params.node.data,
|
|
1702
|
+
type: this.type,
|
|
1703
|
+
checked: this.checked,
|
|
1704
|
+
// ...something
|
|
1705
|
+
};
|
|
1706
|
+
this.params.onClick(params);
|
|
1707
|
+
}
|
|
1708
|
+
}
|
|
1709
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: CheckboxRenderer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1710
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: CheckboxRenderer, isStandalone: true, selector: "ntybase-checkbox-renderer", host: { attributes: { "ntybase-id": "CheckboxRenderer" } }, ngImport: i0, template: "@if (supportClick) {\n<input\n id=\"checkbox\"\n type=\"checkbox\"\n [checked]=\"checked\"\n (click)=\"onClick($event)\"\n/>\n} @if (!supportClick) {\n<input id=\"checkbox\" type=\"checkbox\" [checked]=\"params.value\" disabled />\n}\n\n<label for=\"checkbox\">{{label}}</label>\n", styles: [""] });
|
|
1711
|
+
}
|
|
1712
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: CheckboxRenderer, decorators: [{
|
|
1713
|
+
type: Component,
|
|
1714
|
+
args: [{ selector: 'ntybase-checkbox-renderer', imports: [], host: { 'ntybase-id': 'CheckboxRenderer' }, template: "@if (supportClick) {\n<input\n id=\"checkbox\"\n type=\"checkbox\"\n [checked]=\"checked\"\n (click)=\"onClick($event)\"\n/>\n} @if (!supportClick) {\n<input id=\"checkbox\" type=\"checkbox\" [checked]=\"params.value\" disabled />\n}\n\n<label for=\"checkbox\">{{label}}</label>\n" }]
|
|
1715
|
+
}] });
|
|
1716
|
+
|
|
1717
1717
|
ModuleRegistry.registerModules([AllCommunityModule, StatusBarModule, ClientSideRowModelModule, ClipboardModule, ExcelExportModule, ColumnMenuModule,
|
|
1718
1718
|
ContextMenuModule, CellSelectionModule, HighlightChangesModule, RowSelectionModule,]);
|
|
1719
1719
|
// AgGrid Dark Mode Row Style
|
|
@@ -2091,6 +2091,9 @@ class NettyAgGridSaveBase extends NettyAppsBase {
|
|
|
2091
2091
|
this.loadDetailData();
|
|
2092
2092
|
});
|
|
2093
2093
|
}
|
|
2094
|
+
async ngOnInit() {
|
|
2095
|
+
this.loadDetailData();
|
|
2096
|
+
}
|
|
2094
2097
|
// Controls the visibility of additional editable fields (e.g., password, extra settings)
|
|
2095
2098
|
// When true, certain input fields become visible for editing
|
|
2096
2099
|
updateValid = signal(false, ...(ngDevMode ? [{ debugName: "updateValid" }] : []));
|
|
@@ -4264,5 +4267,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImpor
|
|
|
4264
4267
|
* Generated bundle index. Do not edit.
|
|
4265
4268
|
*/
|
|
4266
4269
|
|
|
4267
|
-
export { AlertService, AuthenticationGuard, AuthenticationInterceptor, AuthenticationService, ButtonRenderer, CanDeactivateGuard, CheckboxRenderer, CommonService, ConfirmDialog, CredentialsService, CurrentUserPreference, ENVIRONMENT_CONFIG, EnvironmentInfo, EnvironmentInfoService, ExcelImportBase, ForgotPassword, Login, LoginDto, MFACodeDto, MfaLogin, NettyAgGridListBase, NettyAgGridLogBase, NettyAgGridSaveBase, NettyAgGridService, NettyAppsBase, NettyBaseApp, NettyHelper, NettyImageService, NettyMenuService, NtyLoadingComponent, NtyLoadingInterceptor, Ntybase, NtybaseModule, RangeDateTimeFilter, RangeNumberFilter, RangeStringFilter, UrlHelperService, ntyAuthenticationInterceptor };
|
|
4270
|
+
export { AlertService, AuthenticationGuard, AuthenticationInterceptor, AuthenticationService, ButtonRenderer, CanDeactivateGuard, CheckboxRenderer, CommonService, ConfirmDialog, CredentialsService, CurrentUserPreference, ENVIRONMENT_CONFIG, EnvironmentInfo, EnvironmentInfoService, ExcelImportBase, ForgotPassword, Login, LoginDto, MFACodeDto, MfaLogin, NettyAgGridBase, NettyAgGridListBase, NettyAgGridLogBase, NettyAgGridSaveBase, NettyAgGridService, NettyAppsBase, NettyBaseApp, NettyHelper, NettyImageService, NettyMenuService, NtyLoadingComponent, NtyLoadingInterceptor, Ntybase, NtybaseModule, RangeDateTimeFilter, RangeNumberFilter, RangeStringFilter, UrlHelperService, ntyAuthenticationInterceptor };
|
|
4268
4271
|
//# sourceMappingURL=nettyapps-ntybase.mjs.map
|