@nettyapps/ntybase 21.0.35-beta.8 → 21.0.35
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
|
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { OnDestroy, OnInit, DoCheck, InjectionToken, Signal } from '@angular/core';
|
|
3
3
|
import * as ag_grid_community from 'ag-grid-community';
|
|
4
4
|
import { IFilterParams, IDoesFilterPassParams } from 'ag-grid-community';
|
|
5
|
-
import { EnvironmentProxy, NettyStandardProxy, NettyStandardLogProxy } from '@nettyapps/ntycontract';
|
|
5
|
+
import { EnvironmentProxy, NettyStandardProxy, NettyStandardLogProxy, NettyStandardFilterProxy } from '@nettyapps/ntycontract';
|
|
6
6
|
import { Subject, Observable } from 'rxjs';
|
|
7
7
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
8
8
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
@@ -41,6 +41,8 @@ declare class AlertService {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
declare abstract class NettyAppsBase implements OnDestroy {
|
|
44
|
+
embedded: i0.InputSignal<boolean>;
|
|
45
|
+
_isEmbedded: i0.Signal<boolean>;
|
|
44
46
|
protected alertService: AlertService;
|
|
45
47
|
protected translateService: TranslateService;
|
|
46
48
|
/**
|
|
@@ -71,7 +73,7 @@ declare abstract class NettyAppsBase implements OnDestroy {
|
|
|
71
73
|
protected onDestroy$: Subject<void>;
|
|
72
74
|
ngOnDestroy(): void;
|
|
73
75
|
static ɵfac: i0.ɵɵFactoryDeclaration<NettyAppsBase, never>;
|
|
74
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NettyAppsBase, "ntybase-netty-apps-base", never, {}, {}, never, never, true, never>;
|
|
76
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NettyAppsBase, "ntybase-netty-apps-base", never, { "embedded": { "alias": "embedded"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
declare class CurrentUserPreference {
|
|
@@ -309,12 +311,12 @@ interface NettyEntityBaseInterface<T> {
|
|
|
309
311
|
declare abstract class NettyAgGridBase<T extends NettyEntityBaseInterface<T>> extends NettyAppsBase {
|
|
310
312
|
protected FILTER_MODE_KEY: string;
|
|
311
313
|
protected myTheme: Theme<ag_grid_community.ThemeDefaultParams>;
|
|
312
|
-
readOnly: i0.WritableSignal<boolean>;
|
|
313
314
|
popupFilterValid: i0.InputSignal<boolean>;
|
|
314
315
|
popupValid: i0.InputSignal<boolean>;
|
|
315
|
-
isEmbedded: i0.InputSignal<boolean>;
|
|
316
316
|
componantParameterGUID: i0.InputSignal<any>;
|
|
317
317
|
componantParameterType: i0.InputSignal<string>;
|
|
318
|
+
_isPopupFilterValid: i0.Signal<boolean>;
|
|
319
|
+
_isPopupValid: i0.Signal<boolean>;
|
|
318
320
|
onElementSelect: i0.OutputEmitterRef<T[]>;
|
|
319
321
|
selectedElement: i0.OutputEmitterRef<any>;
|
|
320
322
|
protected componentName: i0.WritableSignal<string>;
|
|
@@ -331,6 +333,7 @@ declare abstract class NettyAgGridBase<T extends NettyEntityBaseInterface<T>> ex
|
|
|
331
333
|
refreshButtonValid: i0.WritableSignal<boolean>;
|
|
332
334
|
protected authenticationList: Array<NettySecurity>;
|
|
333
335
|
protected accessRightsProcessed: i0.WritableSignal<boolean>;
|
|
336
|
+
readOnly: i0.WritableSignal<boolean>;
|
|
334
337
|
allowAdd: i0.WritableSignal<boolean>;
|
|
335
338
|
allowEdit: i0.WritableSignal<boolean>;
|
|
336
339
|
allowDelete: i0.WritableSignal<boolean>;
|
|
@@ -343,6 +346,7 @@ declare abstract class NettyAgGridBase<T extends NettyEntityBaseInterface<T>> ex
|
|
|
343
346
|
*/
|
|
344
347
|
protected abstract loadData(): void;
|
|
345
348
|
protected abstract initAgGrid(): void;
|
|
349
|
+
protected abstract pkFieldName(): string;
|
|
346
350
|
AfterOnInit(): Promise<void>;
|
|
347
351
|
protected onBtnClick?(e: T): void;
|
|
348
352
|
protected getEntityType?(): string;
|
|
@@ -354,10 +358,9 @@ declare abstract class NettyAgGridBase<T extends NettyEntityBaseInterface<T>> ex
|
|
|
354
358
|
* Handle back button click
|
|
355
359
|
*/
|
|
356
360
|
backClicked(): void;
|
|
357
|
-
refreshData(): Promise<void>;
|
|
358
361
|
/** Set data into the grid */
|
|
359
|
-
setData(data: T[]): void;
|
|
360
|
-
setAccessRights(): Promise<boolean>;
|
|
362
|
+
setData(data: T[], initialize?: boolean): void;
|
|
363
|
+
setAccessRights(forLog?: boolean): Promise<boolean>;
|
|
361
364
|
/**
|
|
362
365
|
* Get stored filter mode from local storage
|
|
363
366
|
* @returns boolean
|
|
@@ -390,7 +393,7 @@ declare abstract class NettyAgGridBase<T extends NettyEntityBaseInterface<T>> ex
|
|
|
390
393
|
/**
|
|
391
394
|
* Update a single row in the grid
|
|
392
395
|
* @param rowData The updated row data
|
|
393
|
-
* @param idField The field name that serves as unique identifier (default:
|
|
396
|
+
* @param idField The field name that serves as unique identifier (default: pkFieldName())
|
|
394
397
|
*/
|
|
395
398
|
protected updateRowInGrid(rowData: T, idField?: string): void;
|
|
396
399
|
/**
|
|
@@ -404,8 +407,10 @@ declare abstract class NettyAgGridBase<T extends NettyEntityBaseInterface<T>> ex
|
|
|
404
407
|
showHideColumns(): void;
|
|
405
408
|
showHideEmbeddedColumnsAsync(): void;
|
|
406
409
|
showHideEmbeddedColumns(): void;
|
|
410
|
+
logInputs(message: string): void;
|
|
411
|
+
logAuthentication(message: string): void;
|
|
407
412
|
static ɵfac: i0.ɵɵFactoryDeclaration<NettyAgGridBase<any>, never>;
|
|
408
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NettyAgGridBase<any>, "ntybase-ag-grid-base", never, { "popupFilterValid": { "alias": "popupFilterValid"; "required": false; "isSignal": true; }; "popupValid": { "alias": "popupValid"; "required": false; "isSignal": true; }; "
|
|
413
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NettyAgGridBase<any>, "ntybase-ag-grid-base", never, { "popupFilterValid": { "alias": "popupFilterValid"; "required": false; "isSignal": true; }; "popupValid": { "alias": "popupValid"; "required": false; "isSignal": true; }; "componantParameterGUID": { "alias": "componantParameterGUID"; "required": false; "isSignal": true; }; "componantParameterType": { "alias": "componantParameterType"; "required": false; "isSignal": true; }; "agGridSelectionMode": { "alias": "agGridSelectionMode"; "required": false; "isSignal": true; }; }, { "onElementSelect": "onElementSelect"; "selectedElement": "selectedElement"; }, never, never, true, never>;
|
|
409
414
|
}
|
|
410
415
|
|
|
411
416
|
interface NettyEntityInterface<T> extends NettyEntityBaseInterface<T> {
|
|
@@ -413,10 +418,6 @@ interface NettyEntityInterface<T> extends NettyEntityBaseInterface<T> {
|
|
|
413
418
|
}
|
|
414
419
|
|
|
415
420
|
declare abstract class NettyAgGridListBase<T extends NettyEntityInterface<T>> extends NettyAgGridBase<T> implements OnInit {
|
|
416
|
-
hasFilter: i0.InputSignal<boolean>;
|
|
417
|
-
protected isFilterValid: i0.WritableSignal<boolean>;
|
|
418
|
-
protected isFilterExpanded: i0.WritableSignal<boolean>;
|
|
419
|
-
protected openEditComponentInPopup: i0.WritableSignal<boolean>;
|
|
420
421
|
protected router: Router;
|
|
421
422
|
protected routerActive: ActivatedRoute;
|
|
422
423
|
protected dialog: MatDialog;
|
|
@@ -441,7 +442,6 @@ declare abstract class NettyAgGridListBase<T extends NettyEntityInterface<T>> ex
|
|
|
441
442
|
* - The update type doesn't match
|
|
442
443
|
*/
|
|
443
444
|
constructor();
|
|
444
|
-
protected onReverseIsFilterValid(): void;
|
|
445
445
|
/**
|
|
446
446
|
* Validates if the given value is equal to null,undefined or ''
|
|
447
447
|
* @param value
|
|
@@ -449,10 +449,31 @@ declare abstract class NettyAgGridListBase<T extends NettyEntityInterface<T>> ex
|
|
|
449
449
|
*/
|
|
450
450
|
protected hasValidValue(value: any): boolean;
|
|
451
451
|
protected loadData(): void;
|
|
452
|
+
refreshData(): Promise<void>;
|
|
452
453
|
deleteSelected(): Promise<void>;
|
|
453
454
|
protected deleteRows(rows: T[]): void;
|
|
455
|
+
logInputs(message: string): void;
|
|
454
456
|
static ɵfac: i0.ɵɵFactoryDeclaration<NettyAgGridListBase<any>, never>;
|
|
455
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NettyAgGridListBase<any>, "ntybase-ag-grid-list-base", never, {
|
|
457
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NettyAgGridListBase<any>, "ntybase-ag-grid-list-base", never, {}, {}, never, never, true, never>;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
declare abstract class NettyAgGridListFilterBase<T extends NettyEntityInterface<T>> extends NettyAgGridListBase<T> implements OnInit {
|
|
461
|
+
displayFilter: i0.InputSignal<boolean>;
|
|
462
|
+
protected _displayFilter: i0.Signal<boolean>;
|
|
463
|
+
protected isFilterValid: i0.WritableSignal<boolean>;
|
|
464
|
+
protected isFilterExpanded: i0.WritableSignal<boolean>;
|
|
465
|
+
protected filterRefreshTrigger: i0.WritableSignal<number>;
|
|
466
|
+
constructor();
|
|
467
|
+
protected loadData(): void;
|
|
468
|
+
refreshData(): Promise<void>;
|
|
469
|
+
/**
|
|
470
|
+
* Triggers the filter component to refresh its data
|
|
471
|
+
*/
|
|
472
|
+
refreshFilterData(): void;
|
|
473
|
+
protected onReverseIsFilterValid(): void;
|
|
474
|
+
logInputs(message: string): void;
|
|
475
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NettyAgGridListFilterBase<any>, never>;
|
|
476
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NettyAgGridListFilterBase<any>, "ntybase-ag-grid-list-filter-base", never, { "displayFilter": { "alias": "displayFilter"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
456
477
|
}
|
|
457
478
|
|
|
458
479
|
interface NettyEntityLogInterface<T> extends NettyEntityBaseInterface<T> {
|
|
@@ -470,6 +491,7 @@ declare abstract class NettyAgGridLogBase<T extends NettyEntityLogInterface<T>>
|
|
|
470
491
|
*/
|
|
471
492
|
ngOnInit(): Promise<void>;
|
|
472
493
|
protected loadData(): void;
|
|
494
|
+
refreshData(): Promise<void>;
|
|
473
495
|
static ɵfac: i0.ɵɵFactoryDeclaration<NettyAgGridLogBase<any>, never>;
|
|
474
496
|
static ɵcmp: i0.ɵɵComponentDeclaration<NettyAgGridLogBase<any>, "ntybase-ag-grid-log-base", never, {}, {}, never, never, true, never>;
|
|
475
497
|
}
|
|
@@ -483,8 +505,6 @@ declare abstract class NettyAgGridSaveBase<T extends NettyEntityInterface<T>> ex
|
|
|
483
505
|
protected dialog: MatDialog;
|
|
484
506
|
viewMode: i0.WritableSignal<UserViewMode>;
|
|
485
507
|
parameters: i0.InputSignal<string>;
|
|
486
|
-
embedded: i0.InputSignal<boolean>;
|
|
487
|
-
isEmbedded: i0.InputSignal<boolean>;
|
|
488
508
|
protected nettyAppsProxy: NettyStandardProxy<T>;
|
|
489
509
|
protected recordType: i0.WritableSignal<string>;
|
|
490
510
|
currentItem: i0.WritableSignal<T>;
|
|
@@ -552,11 +572,11 @@ declare abstract class NettyAgGridSaveBase<T extends NettyEntityInterface<T>> ex
|
|
|
552
572
|
* Handles both new record creation and existing record editing
|
|
553
573
|
* guid - Unique identifier of the record
|
|
554
574
|
*/
|
|
555
|
-
loadDetailData(): void
|
|
575
|
+
loadDetailData(): Promise<void>;
|
|
556
576
|
gotoURL(routePrefix: string[], rightSidenav: string[] | undefined, parameters: string, type?: string, dialogComponent?: any, isNewTab?: boolean, isPopup?: boolean): void;
|
|
557
577
|
popupGotoURL(urlSegments: string[]): void;
|
|
558
578
|
static ɵfac: i0.ɵɵFactoryDeclaration<NettyAgGridSaveBase<any>, never>;
|
|
559
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NettyAgGridSaveBase<any>, "ntybase-ag-grid-save-base", never, { "parameters": { "alias": "parameters"; "required": false; "isSignal": true; };
|
|
579
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NettyAgGridSaveBase<any>, "ntybase-ag-grid-save-base", never, { "parameters": { "alias": "parameters"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
560
580
|
}
|
|
561
581
|
|
|
562
582
|
type AOA = string[][];
|
|
@@ -1020,11 +1040,31 @@ declare class NettyMenuService {
|
|
|
1020
1040
|
private i18nService;
|
|
1021
1041
|
readonly menuName: i0.WritableSignal<string>;
|
|
1022
1042
|
readonly menu: i0.WritableSignal<any>;
|
|
1023
|
-
constructor();
|
|
1024
1043
|
setMenuName(name: string): void;
|
|
1044
|
+
getMenu(): any;
|
|
1025
1045
|
static ɵfac: i0.ɵɵFactoryDeclaration<NettyMenuService, never>;
|
|
1026
1046
|
static ɵprov: i0.ɵɵInjectableDeclaration<NettyMenuService>;
|
|
1027
1047
|
}
|
|
1028
1048
|
|
|
1029
|
-
|
|
1049
|
+
declare abstract class NettyAppsFilterBase<Trecord, Tfilter> extends NettyAppsBase implements OnInit {
|
|
1050
|
+
isFilterExpanded: i0.ModelSignal<boolean>;
|
|
1051
|
+
filteredRecords: i0.OutputEmitterRef<Trecord[]>;
|
|
1052
|
+
refresh: i0.InputSignal<number>;
|
|
1053
|
+
fileName: i0.InputSignal<string>;
|
|
1054
|
+
protected filterProxy: NettyStandardFilterProxy<Tfilter>;
|
|
1055
|
+
protected currentItem: i0.WritableSignal<Tfilter>;
|
|
1056
|
+
constructor();
|
|
1057
|
+
ngOnInit(): Promise<void>;
|
|
1058
|
+
protected onApply(): void;
|
|
1059
|
+
protected onReset(): void;
|
|
1060
|
+
protected onExport(): void;
|
|
1061
|
+
protected abstract createNewFilter(): Tfilter;
|
|
1062
|
+
protected abstract componentName(): string;
|
|
1063
|
+
protected afterOnInit(): Promise<void>;
|
|
1064
|
+
logInputs(message: string): void;
|
|
1065
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NettyAppsFilterBase<any, any>, never>;
|
|
1066
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NettyAppsFilterBase<any, any>, "ntybase-netty-apps-base", never, { "isFilterExpanded": { "alias": "isFilterExpanded"; "required": false; "isSignal": true; }; "refresh": { "alias": "refresh"; "required": false; "isSignal": true; }; "fileName": { "alias": "fileName"; "required": false; "isSignal": true; }; }, { "isFilterExpanded": "isFilterExpandedChange"; "filteredRecords": "filteredRecords"; }, never, never, true, never>;
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
export { AlertService, AuthenticationGuard, AuthenticationInterceptor, AuthenticationService, ButtonRenderer, CanDeactivateGuard, CheckboxRenderer, CommonService, ConfirmDialog, CredentialsService, CurrentUserPreference, ENVIRONMENT_CONFIG, EnvironmentInfo, EnvironmentInfoService, ExcelImportBase, ForgotPassword, Login, LoginDto, MFACodeDto, MfaLogin, NettyAgGridBase, NettyAgGridListBase, NettyAgGridListFilterBase, NettyAgGridLogBase, NettyAgGridSaveBase, NettyAgGridService, NettyAppsBase, NettyAppsFilterBase, NettyBaseApp, NettyHelper, NettyImageService, NettyMenuService, NtyLoadingComponent, NtyLoadingInterceptor, Ntybase, NtybaseModule, RangeDateTimeFilter, RangeNumberFilter, RangeStringFilter, UrlHelperService, ntyAuthenticationInterceptor };
|
|
1030
1070
|
export type { AgGridSelectionModeType, CanComponentDeactivate, Credentials, EnvironmentConfig, LoginContext, MFACodeContext, NettyEntityInterface, NettyEntityLogInterface, UserViewMode };
|