@nettyapps/ntybase 21.0.35-beta.2 → 21.0.35-beta.21
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,16 +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>;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
interface NettyEntityInterface<T> {
|
|
78
|
-
getPK(): any;
|
|
79
|
-
setPK(pk: any): void;
|
|
80
|
-
compare(other: T): T;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
interface NettyEntityLogInterface<T> extends NettyEntityInterface<T> {
|
|
76
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NettyAppsBase, "ntybase-netty-apps-base", never, { "embedded": { "alias": "embedded"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
84
77
|
}
|
|
85
78
|
|
|
86
79
|
declare class CurrentUserPreference {
|
|
@@ -310,13 +303,22 @@ declare class SysfunctionProxy {
|
|
|
310
303
|
|
|
311
304
|
type AgGridSelectionModeType = 'singleRow' | 'multiRow';
|
|
312
305
|
|
|
313
|
-
|
|
306
|
+
interface NettyEntityBaseInterface<T> {
|
|
307
|
+
getPK(): any;
|
|
308
|
+
setPK(pk: any): void;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
declare abstract class NettyAgGridBase<T extends NettyEntityBaseInterface<T>> extends NettyAppsBase {
|
|
314
312
|
protected FILTER_MODE_KEY: string;
|
|
315
313
|
protected myTheme: Theme<ag_grid_community.ThemeDefaultParams>;
|
|
316
|
-
readOnly: i0.WritableSignal<boolean>;
|
|
317
314
|
popupFilterValid: i0.InputSignal<boolean>;
|
|
318
315
|
popupValid: i0.InputSignal<boolean>;
|
|
319
|
-
|
|
316
|
+
componantParameterGUID: i0.InputSignal<any>;
|
|
317
|
+
componantParameterType: i0.InputSignal<string>;
|
|
318
|
+
_isPopupFilterValid: i0.Signal<boolean>;
|
|
319
|
+
_isPopupValid: i0.Signal<boolean>;
|
|
320
|
+
onElementSelect: i0.OutputEmitterRef<T[]>;
|
|
321
|
+
selectedElement: i0.OutputEmitterRef<any>;
|
|
320
322
|
protected componentName: i0.WritableSignal<string>;
|
|
321
323
|
protected searchValueName: i0.WritableSignal<string>;
|
|
322
324
|
protected preferenceType: i0.WritableSignal<string>;
|
|
@@ -327,7 +329,10 @@ declare abstract class NettyAgGridBase<T extends NettyEntityLogInterface<T>> ext
|
|
|
327
329
|
protected commonService: CommonService;
|
|
328
330
|
protected sysFunctionProxy: SysfunctionProxy;
|
|
329
331
|
protected environment: EnvironmentProxy;
|
|
332
|
+
menuValid: i0.WritableSignal<boolean>;
|
|
333
|
+
refreshButtonValid: i0.WritableSignal<boolean>;
|
|
330
334
|
protected authenticationList: Array<NettySecurity>;
|
|
335
|
+
readOnly: i0.WritableSignal<boolean>;
|
|
331
336
|
protected accessRightsProcessed: i0.WritableSignal<boolean>;
|
|
332
337
|
allowAdd: i0.WritableSignal<boolean>;
|
|
333
338
|
allowEdit: i0.WritableSignal<boolean>;
|
|
@@ -339,8 +344,20 @@ declare abstract class NettyAgGridBase<T extends NettyEntityLogInterface<T>> ext
|
|
|
339
344
|
/**
|
|
340
345
|
* Component initialization lifecycle hook Overide for custom initialization
|
|
341
346
|
*/
|
|
342
|
-
AfterOnInit(): Promise<void>;
|
|
343
347
|
protected abstract loadData(): void;
|
|
348
|
+
protected abstract initAgGrid(): void;
|
|
349
|
+
AfterOnInit(): Promise<void>;
|
|
350
|
+
protected onBtnClick?(e: T): void;
|
|
351
|
+
protected getEntityType?(): string;
|
|
352
|
+
protected selectedData?(): void;
|
|
353
|
+
protected setFilter(): void;
|
|
354
|
+
protected popupClose(): void;
|
|
355
|
+
protected onFilterTextBoxVisibilityChange(isOpen: boolean): void;
|
|
356
|
+
/**
|
|
357
|
+
* Handle back button click
|
|
358
|
+
*/
|
|
359
|
+
backClicked(): void;
|
|
360
|
+
refreshData(): Promise<void>;
|
|
344
361
|
/** Set data into the grid */
|
|
345
362
|
setData(data: T[]): void;
|
|
346
363
|
setAccessRights(): Promise<boolean>;
|
|
@@ -349,8 +366,6 @@ declare abstract class NettyAgGridBase<T extends NettyEntityLogInterface<T>> ext
|
|
|
349
366
|
* @returns boolean
|
|
350
367
|
*/
|
|
351
368
|
private getStoredFilterMode;
|
|
352
|
-
protected onBtnClick?(e: T): void;
|
|
353
|
-
protected abstract initAgGrid(): void;
|
|
354
369
|
agGridSelectionMode: i0.InputSignal<AgGridSelectionModeType>;
|
|
355
370
|
theme: Theme;
|
|
356
371
|
protected gridApi: GridApi;
|
|
@@ -392,36 +407,37 @@ declare abstract class NettyAgGridBase<T extends NettyEntityLogInterface<T>> ext
|
|
|
392
407
|
showHideColumns(): void;
|
|
393
408
|
showHideEmbeddedColumnsAsync(): void;
|
|
394
409
|
showHideEmbeddedColumns(): void;
|
|
410
|
+
logInputs(message: string): void;
|
|
395
411
|
static ɵfac: i0.ɵɵFactoryDeclaration<NettyAgGridBase<any>, never>;
|
|
396
|
-
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; }; "
|
|
412
|
+
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>;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
interface NettyEntityInterface<T> extends NettyEntityBaseInterface<T> {
|
|
416
|
+
compare(other: T): T;
|
|
397
417
|
}
|
|
398
418
|
|
|
399
419
|
declare abstract class NettyAgGridListBase<T extends NettyEntityInterface<T>> extends NettyAgGridBase<T> implements OnInit {
|
|
400
|
-
componantParameterGUID: i0.InputSignal<any>;
|
|
401
|
-
componantParameterType: i0.InputSignal<string>;
|
|
402
|
-
onElementSelect: i0.OutputEmitterRef<T[]>;
|
|
403
|
-
selectedElement: i0.OutputEmitterRef<any>;
|
|
404
420
|
hasFilter: i0.InputSignal<boolean>;
|
|
421
|
+
protected _hasFilter: i0.Signal<boolean>;
|
|
405
422
|
protected isFilterValid: i0.WritableSignal<boolean>;
|
|
406
|
-
protected isFilterExpanded: i0.
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
423
|
+
protected isFilterExpanded: i0.WritableSignal<boolean>;
|
|
424
|
+
protected filterRefreshTrigger: i0.WritableSignal<number>;
|
|
425
|
+
/**
|
|
426
|
+
* Triggers the filter component to refresh its data
|
|
427
|
+
*/
|
|
428
|
+
refreshFilterData(): void;
|
|
410
429
|
protected router: Router;
|
|
411
430
|
protected routerActive: ActivatedRoute;
|
|
412
431
|
protected dialog: MatDialog;
|
|
413
432
|
protected queryParameterGUID: i0.Signal<any>;
|
|
414
433
|
protected queryParameterType: i0.Signal<any>;
|
|
434
|
+
protected openInPopup: i0.WritableSignal<boolean>;
|
|
415
435
|
protected nettyAppsProxy: NettyStandardProxy<T>;
|
|
416
436
|
/**
|
|
417
437
|
* Component initialization lifecycle hook
|
|
418
438
|
*/
|
|
419
439
|
ngOnInit(): Promise<void>;
|
|
420
440
|
private parseOrReturnValue;
|
|
421
|
-
/**
|
|
422
|
-
* Handle back button click
|
|
423
|
-
*/
|
|
424
|
-
backClicked(): void;
|
|
425
441
|
gotoURL(routePrefix: string[], rightSidenav: string[] | undefined, parameters: string, type?: string, dialogComponent?: any, isNewTab?: boolean, isPopup?: boolean): void;
|
|
426
442
|
popupGotoURL(urlSegments: string[]): void;
|
|
427
443
|
toggleOpenMode(): void;
|
|
@@ -441,17 +457,20 @@ declare abstract class NettyAgGridListBase<T extends NettyEntityInterface<T>> ex
|
|
|
441
457
|
* @returns true if has a valid value
|
|
442
458
|
*/
|
|
443
459
|
protected hasValidValue(value: any): boolean;
|
|
444
|
-
protected onFilterTextBoxVisibilityChange(isOpen: boolean): void;
|
|
445
|
-
protected getEntityType?(): string;
|
|
446
|
-
protected selectedData?(): void;
|
|
447
|
-
protected setFilter(): void;
|
|
448
|
-
protected popupClose(): void;
|
|
449
460
|
protected loadData(): void;
|
|
450
461
|
deleteSelected(): Promise<void>;
|
|
451
|
-
refreshData(): Promise<void>;
|
|
452
462
|
protected deleteRows(rows: T[]): void;
|
|
463
|
+
logInputs(message: string): void;
|
|
453
464
|
static ɵfac: i0.ɵɵFactoryDeclaration<NettyAgGridListBase<any>, never>;
|
|
454
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NettyAgGridListBase<any>, "ntybase-ag-grid-list-base", never, { "
|
|
465
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NettyAgGridListBase<any>, "ntybase-ag-grid-list-base", never, { "hasFilter": { "alias": "hasFilter"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
interface NettyEntityLogInterface<T> extends NettyEntityBaseInterface<T> {
|
|
469
|
+
logGuid: any | null;
|
|
470
|
+
changingDate: Date | null;
|
|
471
|
+
changingUser: any | null;
|
|
472
|
+
ip: string | null;
|
|
473
|
+
chagingUserName: string | null;
|
|
455
474
|
}
|
|
456
475
|
|
|
457
476
|
declare abstract class NettyAgGridLogBase<T extends NettyEntityLogInterface<T>> extends NettyAgGridBase<T> implements OnInit {
|
|
@@ -474,8 +493,6 @@ declare abstract class NettyAgGridSaveBase<T extends NettyEntityInterface<T>> ex
|
|
|
474
493
|
protected dialog: MatDialog;
|
|
475
494
|
viewMode: i0.WritableSignal<UserViewMode>;
|
|
476
495
|
parameters: i0.InputSignal<string>;
|
|
477
|
-
embedded: i0.InputSignal<boolean>;
|
|
478
|
-
isEmbedded: i0.InputSignal<boolean>;
|
|
479
496
|
protected nettyAppsProxy: NettyStandardProxy<T>;
|
|
480
497
|
protected recordType: i0.WritableSignal<string>;
|
|
481
498
|
currentItem: i0.WritableSignal<T>;
|
|
@@ -547,7 +564,7 @@ declare abstract class NettyAgGridSaveBase<T extends NettyEntityInterface<T>> ex
|
|
|
547
564
|
gotoURL(routePrefix: string[], rightSidenav: string[] | undefined, parameters: string, type?: string, dialogComponent?: any, isNewTab?: boolean, isPopup?: boolean): void;
|
|
548
565
|
popupGotoURL(urlSegments: string[]): void;
|
|
549
566
|
static ɵfac: i0.ɵɵFactoryDeclaration<NettyAgGridSaveBase<any>, never>;
|
|
550
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NettyAgGridSaveBase<any>, "ntybase-ag-grid-save-base", never, { "parameters": { "alias": "parameters"; "required": false; "isSignal": true; };
|
|
567
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NettyAgGridSaveBase<any>, "ntybase-ag-grid-save-base", never, { "parameters": { "alias": "parameters"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
551
568
|
}
|
|
552
569
|
|
|
553
570
|
type AOA = string[][];
|
|
@@ -1017,5 +1034,25 @@ declare class NettyMenuService {
|
|
|
1017
1034
|
static ɵprov: i0.ɵɵInjectableDeclaration<NettyMenuService>;
|
|
1018
1035
|
}
|
|
1019
1036
|
|
|
1020
|
-
|
|
1037
|
+
declare abstract class NettyAppsFilterBase<Trecord, Tfilter> extends NettyAppsBase implements OnInit {
|
|
1038
|
+
isFilterExpanded: i0.ModelSignal<boolean>;
|
|
1039
|
+
filteredRecords: i0.OutputEmitterRef<Trecord[]>;
|
|
1040
|
+
refresh: i0.InputSignal<number>;
|
|
1041
|
+
fileName: i0.InputSignal<string>;
|
|
1042
|
+
protected filterProxy: NettyStandardFilterProxy<Tfilter>;
|
|
1043
|
+
protected currentItem: i0.WritableSignal<Tfilter>;
|
|
1044
|
+
constructor();
|
|
1045
|
+
ngOnInit(): Promise<void>;
|
|
1046
|
+
protected onApply(): void;
|
|
1047
|
+
protected onReset(): void;
|
|
1048
|
+
protected onExport(): void;
|
|
1049
|
+
protected abstract createNewFilter(): Tfilter;
|
|
1050
|
+
protected abstract componentName(): string;
|
|
1051
|
+
protected afterOnInit(): Promise<void>;
|
|
1052
|
+
logInputs(message: string): void;
|
|
1053
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NettyAppsFilterBase<any, any>, never>;
|
|
1054
|
+
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>;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
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, NettyAppsFilterBase, NettyBaseApp, NettyHelper, NettyImageService, NettyMenuService, NtyLoadingComponent, NtyLoadingInterceptor, Ntybase, NtybaseModule, RangeDateTimeFilter, RangeNumberFilter, RangeStringFilter, UrlHelperService, ntyAuthenticationInterceptor };
|
|
1021
1058
|
export type { AgGridSelectionModeType, CanComponentDeactivate, Credentials, EnvironmentConfig, LoginContext, MFACodeContext, NettyEntityInterface, NettyEntityLogInterface, UserViewMode };
|