@nettyapps/ntybase 21.0.35-beta.9 → 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,15 +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 filterRefreshTrigger: i0.WritableSignal<number>;
|
|
420
|
-
/**
|
|
421
|
-
* Triggers the filter component to refresh its data
|
|
422
|
-
*/
|
|
423
|
-
refreshFilterData(): void;
|
|
424
|
-
protected openEditComponentInPopup: i0.WritableSignal<boolean>;
|
|
425
421
|
protected router: Router;
|
|
426
422
|
protected routerActive: ActivatedRoute;
|
|
427
423
|
protected dialog: MatDialog;
|
|
@@ -446,7 +442,6 @@ declare abstract class NettyAgGridListBase<T extends NettyEntityInterface<T>> ex
|
|
|
446
442
|
* - The update type doesn't match
|
|
447
443
|
*/
|
|
448
444
|
constructor();
|
|
449
|
-
protected onReverseIsFilterValid(): void;
|
|
450
445
|
/**
|
|
451
446
|
* Validates if the given value is equal to null,undefined or ''
|
|
452
447
|
* @param value
|
|
@@ -454,10 +449,31 @@ declare abstract class NettyAgGridListBase<T extends NettyEntityInterface<T>> ex
|
|
|
454
449
|
*/
|
|
455
450
|
protected hasValidValue(value: any): boolean;
|
|
456
451
|
protected loadData(): void;
|
|
452
|
+
refreshData(): Promise<void>;
|
|
457
453
|
deleteSelected(): Promise<void>;
|
|
458
454
|
protected deleteRows(rows: T[]): void;
|
|
455
|
+
logInputs(message: string): void;
|
|
459
456
|
static ɵfac: i0.ɵɵFactoryDeclaration<NettyAgGridListBase<any>, never>;
|
|
460
|
-
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>;
|
|
461
477
|
}
|
|
462
478
|
|
|
463
479
|
interface NettyEntityLogInterface<T> extends NettyEntityBaseInterface<T> {
|
|
@@ -475,6 +491,7 @@ declare abstract class NettyAgGridLogBase<T extends NettyEntityLogInterface<T>>
|
|
|
475
491
|
*/
|
|
476
492
|
ngOnInit(): Promise<void>;
|
|
477
493
|
protected loadData(): void;
|
|
494
|
+
refreshData(): Promise<void>;
|
|
478
495
|
static ɵfac: i0.ɵɵFactoryDeclaration<NettyAgGridLogBase<any>, never>;
|
|
479
496
|
static ɵcmp: i0.ɵɵComponentDeclaration<NettyAgGridLogBase<any>, "ntybase-ag-grid-log-base", never, {}, {}, never, never, true, never>;
|
|
480
497
|
}
|
|
@@ -488,8 +505,6 @@ declare abstract class NettyAgGridSaveBase<T extends NettyEntityInterface<T>> ex
|
|
|
488
505
|
protected dialog: MatDialog;
|
|
489
506
|
viewMode: i0.WritableSignal<UserViewMode>;
|
|
490
507
|
parameters: i0.InputSignal<string>;
|
|
491
|
-
embedded: i0.InputSignal<boolean>;
|
|
492
|
-
isEmbedded: i0.InputSignal<boolean>;
|
|
493
508
|
protected nettyAppsProxy: NettyStandardProxy<T>;
|
|
494
509
|
protected recordType: i0.WritableSignal<string>;
|
|
495
510
|
currentItem: i0.WritableSignal<T>;
|
|
@@ -557,11 +572,11 @@ declare abstract class NettyAgGridSaveBase<T extends NettyEntityInterface<T>> ex
|
|
|
557
572
|
* Handles both new record creation and existing record editing
|
|
558
573
|
* guid - Unique identifier of the record
|
|
559
574
|
*/
|
|
560
|
-
loadDetailData(): void
|
|
575
|
+
loadDetailData(): Promise<void>;
|
|
561
576
|
gotoURL(routePrefix: string[], rightSidenav: string[] | undefined, parameters: string, type?: string, dialogComponent?: any, isNewTab?: boolean, isPopup?: boolean): void;
|
|
562
577
|
popupGotoURL(urlSegments: string[]): void;
|
|
563
578
|
static ɵfac: i0.ɵɵFactoryDeclaration<NettyAgGridSaveBase<any>, never>;
|
|
564
|
-
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>;
|
|
565
580
|
}
|
|
566
581
|
|
|
567
582
|
type AOA = string[][];
|
|
@@ -1025,11 +1040,31 @@ declare class NettyMenuService {
|
|
|
1025
1040
|
private i18nService;
|
|
1026
1041
|
readonly menuName: i0.WritableSignal<string>;
|
|
1027
1042
|
readonly menu: i0.WritableSignal<any>;
|
|
1028
|
-
constructor();
|
|
1029
1043
|
setMenuName(name: string): void;
|
|
1044
|
+
getMenu(): any;
|
|
1030
1045
|
static ɵfac: i0.ɵɵFactoryDeclaration<NettyMenuService, never>;
|
|
1031
1046
|
static ɵprov: i0.ɵɵInjectableDeclaration<NettyMenuService>;
|
|
1032
1047
|
}
|
|
1033
1048
|
|
|
1034
|
-
|
|
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 };
|
|
1035
1070
|
export type { AgGridSelectionModeType, CanComponentDeactivate, Credentials, EnvironmentConfig, LoginContext, MFACodeContext, NettyEntityInterface, NettyEntityLogInterface, UserViewMode };
|