@nettyapps/ntybase 21.0.35-beta.1 → 21.0.35-beta.11
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,19 +1,20 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { OnDestroy, OnInit, DoCheck, InjectionToken, Signal } from '@angular/core';
|
|
3
|
-
import { Router, ActivatedRoute, CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, CanDeactivate } from '@angular/router';
|
|
4
|
-
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
5
|
-
import { EnvironmentProxy, NettyStandardProxy, NettyStandardLogProxy } from '@nettyapps/ntycontract';
|
|
6
3
|
import * as ag_grid_community from 'ag-grid-community';
|
|
7
4
|
import { IFilterParams, IDoesFilterPassParams } from 'ag-grid-community';
|
|
5
|
+
import { EnvironmentProxy, NettyStandardProxy, NettyStandardLogProxy, NettyStandardFilterProxy } from '@nettyapps/ntycontract';
|
|
8
6
|
import { Subject, Observable } from 'rxjs';
|
|
9
7
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
8
|
+
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
10
9
|
import { TranslateService } from '@ngx-translate/core';
|
|
11
10
|
import { HttpClient, HttpInterceptor, HttpRequest, HttpHandler, HttpEvent, HttpInterceptorFn } from '@angular/common/http';
|
|
12
11
|
import { Theme, GridApi, GridOptions, StatusPanelDef, GridReadyEvent } from 'ag-grid-enterprise';
|
|
12
|
+
import { Router, ActivatedRoute, CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, CanDeactivate } from '@angular/router';
|
|
13
13
|
import { NgForm, FormGroup } from '@angular/forms';
|
|
14
14
|
import * as XLSX from 'xlsx';
|
|
15
15
|
import { ICellRendererAngularComp, IFilterAngularComp } from 'ag-grid-angular';
|
|
16
16
|
import { I18nService } from '@nettyapps/ntyi18n';
|
|
17
|
+
import { NettyEnumStorageProxy, NettyEnum } from '@nettyapps/ntyui';
|
|
17
18
|
|
|
18
19
|
declare class Ntybase {
|
|
19
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<Ntybase, never>;
|
|
@@ -74,15 +75,6 @@ declare abstract class NettyAppsBase implements OnDestroy {
|
|
|
74
75
|
static ɵcmp: i0.ɵɵComponentDeclaration<NettyAppsBase, "ntybase-netty-apps-base", never, {}, {}, never, never, true, never>;
|
|
75
76
|
}
|
|
76
77
|
|
|
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> {
|
|
84
|
-
}
|
|
85
|
-
|
|
86
78
|
declare class CurrentUserPreference {
|
|
87
79
|
coid: any | null;
|
|
88
80
|
nettyUserPreferenceGUID: any | null;
|
|
@@ -310,13 +302,22 @@ declare class SysfunctionProxy {
|
|
|
310
302
|
|
|
311
303
|
type AgGridSelectionModeType = 'singleRow' | 'multiRow';
|
|
312
304
|
|
|
313
|
-
|
|
305
|
+
interface NettyEntityBaseInterface<T> {
|
|
306
|
+
getPK(): any;
|
|
307
|
+
setPK(pk: any): void;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
declare abstract class NettyAgGridBase<T extends NettyEntityBaseInterface<T>> extends NettyAppsBase {
|
|
314
311
|
protected FILTER_MODE_KEY: string;
|
|
315
312
|
protected myTheme: Theme<ag_grid_community.ThemeDefaultParams>;
|
|
316
313
|
readOnly: i0.WritableSignal<boolean>;
|
|
317
314
|
popupFilterValid: i0.InputSignal<boolean>;
|
|
318
315
|
popupValid: i0.InputSignal<boolean>;
|
|
319
316
|
isEmbedded: i0.InputSignal<boolean>;
|
|
317
|
+
componantParameterGUID: i0.InputSignal<any>;
|
|
318
|
+
componantParameterType: i0.InputSignal<string>;
|
|
319
|
+
onElementSelect: i0.OutputEmitterRef<T[]>;
|
|
320
|
+
selectedElement: i0.OutputEmitterRef<any>;
|
|
320
321
|
protected componentName: i0.WritableSignal<string>;
|
|
321
322
|
protected searchValueName: i0.WritableSignal<string>;
|
|
322
323
|
protected preferenceType: i0.WritableSignal<string>;
|
|
@@ -327,6 +328,8 @@ declare abstract class NettyAgGridBase<T extends NettyEntityLogInterface<T>> ext
|
|
|
327
328
|
protected commonService: CommonService;
|
|
328
329
|
protected sysFunctionProxy: SysfunctionProxy;
|
|
329
330
|
protected environment: EnvironmentProxy;
|
|
331
|
+
menuValid: i0.WritableSignal<boolean>;
|
|
332
|
+
refreshButtonValid: i0.WritableSignal<boolean>;
|
|
330
333
|
protected authenticationList: Array<NettySecurity>;
|
|
331
334
|
protected accessRightsProcessed: i0.WritableSignal<boolean>;
|
|
332
335
|
allowAdd: i0.WritableSignal<boolean>;
|
|
@@ -339,8 +342,20 @@ declare abstract class NettyAgGridBase<T extends NettyEntityLogInterface<T>> ext
|
|
|
339
342
|
/**
|
|
340
343
|
* Component initialization lifecycle hook Overide for custom initialization
|
|
341
344
|
*/
|
|
342
|
-
AfterOnInit(): Promise<void>;
|
|
343
345
|
protected abstract loadData(): void;
|
|
346
|
+
protected abstract initAgGrid(): void;
|
|
347
|
+
AfterOnInit(): Promise<void>;
|
|
348
|
+
protected onBtnClick?(e: T): void;
|
|
349
|
+
protected getEntityType?(): string;
|
|
350
|
+
protected selectedData?(): void;
|
|
351
|
+
protected setFilter(): void;
|
|
352
|
+
protected popupClose(): void;
|
|
353
|
+
protected onFilterTextBoxVisibilityChange(isOpen: boolean): void;
|
|
354
|
+
/**
|
|
355
|
+
* Handle back button click
|
|
356
|
+
*/
|
|
357
|
+
backClicked(): void;
|
|
358
|
+
refreshData(): Promise<void>;
|
|
344
359
|
/** Set data into the grid */
|
|
345
360
|
setData(data: T[]): void;
|
|
346
361
|
setAccessRights(): Promise<boolean>;
|
|
@@ -349,8 +364,6 @@ declare abstract class NettyAgGridBase<T extends NettyEntityLogInterface<T>> ext
|
|
|
349
364
|
* @returns boolean
|
|
350
365
|
*/
|
|
351
366
|
private getStoredFilterMode;
|
|
352
|
-
protected onBtnClick?(e: T): void;
|
|
353
|
-
protected abstract initAgGrid(): void;
|
|
354
367
|
agGridSelectionMode: i0.InputSignal<AgGridSelectionModeType>;
|
|
355
368
|
theme: Theme;
|
|
356
369
|
protected gridApi: GridApi;
|
|
@@ -393,35 +406,35 @@ declare abstract class NettyAgGridBase<T extends NettyEntityLogInterface<T>> ext
|
|
|
393
406
|
showHideEmbeddedColumnsAsync(): void;
|
|
394
407
|
showHideEmbeddedColumns(): void;
|
|
395
408
|
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; }; "isEmbedded": { "alias": "isEmbedded"; "required": false; "isSignal": true; }; "agGridSelectionMode": { "alias": "agGridSelectionMode"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
409
|
+
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; }; "isEmbedded": { "alias": "isEmbedded"; "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>;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
interface NettyEntityInterface<T> extends NettyEntityBaseInterface<T> {
|
|
413
|
+
compare(other: T): T;
|
|
397
414
|
}
|
|
398
415
|
|
|
399
416
|
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
417
|
hasFilter: i0.InputSignal<boolean>;
|
|
405
418
|
protected isFilterValid: i0.WritableSignal<boolean>;
|
|
406
|
-
protected isFilterExpanded: i0.
|
|
407
|
-
|
|
408
|
-
|
|
419
|
+
protected isFilterExpanded: i0.WritableSignal<boolean>;
|
|
420
|
+
protected filterRefreshTrigger: i0.WritableSignal<number>;
|
|
421
|
+
/**
|
|
422
|
+
* Triggers the filter component to refresh its data
|
|
423
|
+
*/
|
|
424
|
+
refreshFilterData(): void;
|
|
409
425
|
protected openEditComponentInPopup: i0.WritableSignal<boolean>;
|
|
410
426
|
protected router: Router;
|
|
411
427
|
protected routerActive: ActivatedRoute;
|
|
412
428
|
protected dialog: MatDialog;
|
|
413
429
|
protected queryParameterGUID: i0.Signal<any>;
|
|
414
430
|
protected queryParameterType: i0.Signal<any>;
|
|
431
|
+
protected openInPopup: i0.WritableSignal<boolean>;
|
|
415
432
|
protected nettyAppsProxy: NettyStandardProxy<T>;
|
|
416
433
|
/**
|
|
417
434
|
* Component initialization lifecycle hook
|
|
418
435
|
*/
|
|
419
436
|
ngOnInit(): Promise<void>;
|
|
420
437
|
private parseOrReturnValue;
|
|
421
|
-
/**
|
|
422
|
-
* Handle back button click
|
|
423
|
-
*/
|
|
424
|
-
backClicked(): void;
|
|
425
438
|
gotoURL(routePrefix: string[], rightSidenav: string[] | undefined, parameters: string, type?: string, dialogComponent?: any, isNewTab?: boolean, isPopup?: boolean): void;
|
|
426
439
|
popupGotoURL(urlSegments: string[]): void;
|
|
427
440
|
toggleOpenMode(): void;
|
|
@@ -441,17 +454,19 @@ declare abstract class NettyAgGridListBase<T extends NettyEntityInterface<T>> ex
|
|
|
441
454
|
* @returns true if has a valid value
|
|
442
455
|
*/
|
|
443
456
|
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
457
|
protected loadData(): void;
|
|
450
458
|
deleteSelected(): Promise<void>;
|
|
451
|
-
refreshData(): Promise<void>;
|
|
452
459
|
protected deleteRows(rows: T[]): void;
|
|
453
460
|
static ɵfac: i0.ɵɵFactoryDeclaration<NettyAgGridListBase<any>, never>;
|
|
454
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NettyAgGridListBase<any>, "ntybase-ag-grid-list-base", never, { "
|
|
461
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NettyAgGridListBase<any>, "ntybase-ag-grid-list-base", never, { "hasFilter": { "alias": "hasFilter"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
interface NettyEntityLogInterface<T> extends NettyEntityBaseInterface<T> {
|
|
465
|
+
logGuid: any | null;
|
|
466
|
+
changingDate: Date | null;
|
|
467
|
+
changingUser: any | null;
|
|
468
|
+
ip: string | null;
|
|
469
|
+
chagingUserName: string | null;
|
|
455
470
|
}
|
|
456
471
|
|
|
457
472
|
declare abstract class NettyAgGridLogBase<T extends NettyEntityLogInterface<T>> extends NettyAgGridBase<T> implements OnInit {
|
|
@@ -466,7 +481,7 @@ declare abstract class NettyAgGridLogBase<T extends NettyEntityLogInterface<T>>
|
|
|
466
481
|
}
|
|
467
482
|
|
|
468
483
|
type UserViewMode = 'fullscreen' | 'sidenav' | 'dialog';
|
|
469
|
-
declare abstract class NettyAgGridSaveBase<T extends NettyEntityInterface<T>> extends NettyAppsBase implements DoCheck {
|
|
484
|
+
declare abstract class NettyAgGridSaveBase<T extends NettyEntityInterface<T>> extends NettyAppsBase implements OnInit, DoCheck {
|
|
470
485
|
protected router: Router;
|
|
471
486
|
protected route: ActivatedRoute;
|
|
472
487
|
protected commonService: CommonService;
|
|
@@ -485,6 +500,7 @@ declare abstract class NettyAgGridSaveBase<T extends NettyEntityInterface<T>> ex
|
|
|
485
500
|
protected dialogRef: MatDialogRef<any, any> | null;
|
|
486
501
|
protected dialogData: any;
|
|
487
502
|
constructor();
|
|
503
|
+
ngOnInit(): Promise<void>;
|
|
488
504
|
updateValid: i0.WritableSignal<boolean>;
|
|
489
505
|
setUpdateValid(value: boolean): void;
|
|
490
506
|
/**
|
|
@@ -523,7 +539,7 @@ declare abstract class NettyAgGridSaveBase<T extends NettyEntityInterface<T>> ex
|
|
|
523
539
|
*/
|
|
524
540
|
backClicked(): Promise<void>;
|
|
525
541
|
protected validateSaveRecord(recordGUID: any): boolean;
|
|
526
|
-
abstract createNewRecord(): T;
|
|
542
|
+
protected abstract createNewRecord(): T;
|
|
527
543
|
/**
|
|
528
544
|
* Save data to API
|
|
529
545
|
* Handles both create and update operations based on record existence
|
|
@@ -1016,5 +1032,24 @@ declare class NettyMenuService {
|
|
|
1016
1032
|
static ɵprov: i0.ɵɵInjectableDeclaration<NettyMenuService>;
|
|
1017
1033
|
}
|
|
1018
1034
|
|
|
1019
|
-
|
|
1035
|
+
declare abstract class NettyAppsFilterBase<Trecord, Tfilter> extends NettyAppsBase {
|
|
1036
|
+
isFilterExpanded: i0.ModelSignal<boolean>;
|
|
1037
|
+
filteredRecords: i0.OutputEmitterRef<Trecord[]>;
|
|
1038
|
+
refresh: i0.InputSignal<number>;
|
|
1039
|
+
fileName: i0.InputSignal<string>;
|
|
1040
|
+
protected filterProxy: NettyStandardFilterProxy<any>;
|
|
1041
|
+
protected enumStorage: NettyEnumStorageProxy;
|
|
1042
|
+
protected currentItem: i0.WritableSignal<Tfilter>;
|
|
1043
|
+
allYesNoEnumList: i0.WritableSignal<NettyEnum[]>;
|
|
1044
|
+
constructor();
|
|
1045
|
+
ngOnInit(): Promise<void>;
|
|
1046
|
+
protected onApply(): void;
|
|
1047
|
+
protected onReset(): void;
|
|
1048
|
+
protected onExport(): void;
|
|
1049
|
+
protected abstract createNewFilter(): Tfilter;
|
|
1050
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NettyAppsFilterBase<any, any>, never>;
|
|
1051
|
+
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>;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
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 };
|
|
1020
1055
|
export type { AgGridSelectionModeType, CanComponentDeactivate, Credentials, EnvironmentConfig, LoginContext, MFACodeContext, NettyEntityInterface, NettyEntityLogInterface, UserViewMode };
|