@nettyapps/ntybase 21.0.35-beta.1 → 21.0.35-beta.3
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,15 +1,15 @@
|
|
|
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 } 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';
|
|
@@ -74,15 +74,6 @@ declare abstract class NettyAppsBase implements OnDestroy {
|
|
|
74
74
|
static ɵcmp: i0.ɵɵComponentDeclaration<NettyAppsBase, "ntybase-netty-apps-base", never, {}, {}, never, never, true, never>;
|
|
75
75
|
}
|
|
76
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> {
|
|
84
|
-
}
|
|
85
|
-
|
|
86
77
|
declare class CurrentUserPreference {
|
|
87
78
|
coid: any | null;
|
|
88
79
|
nettyUserPreferenceGUID: any | null;
|
|
@@ -310,7 +301,12 @@ declare class SysfunctionProxy {
|
|
|
310
301
|
|
|
311
302
|
type AgGridSelectionModeType = 'singleRow' | 'multiRow';
|
|
312
303
|
|
|
313
|
-
|
|
304
|
+
interface NettyEntityBaseInterface<T> {
|
|
305
|
+
getPK(): any;
|
|
306
|
+
setPK(pk: any): void;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
declare abstract class NettyAgGridBase<T extends NettyEntityBaseInterface<T>> extends NettyAppsBase {
|
|
314
310
|
protected FILTER_MODE_KEY: string;
|
|
315
311
|
protected myTheme: Theme<ag_grid_community.ThemeDefaultParams>;
|
|
316
312
|
readOnly: i0.WritableSignal<boolean>;
|
|
@@ -396,6 +392,10 @@ declare abstract class NettyAgGridBase<T extends NettyEntityLogInterface<T>> ext
|
|
|
396
392
|
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>;
|
|
397
393
|
}
|
|
398
394
|
|
|
395
|
+
interface NettyEntityInterface<T> extends NettyEntityBaseInterface<T> {
|
|
396
|
+
compare(other: T): T;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
399
|
declare abstract class NettyAgGridListBase<T extends NettyEntityInterface<T>> extends NettyAgGridBase<T> implements OnInit {
|
|
400
400
|
componantParameterGUID: i0.InputSignal<any>;
|
|
401
401
|
componantParameterType: i0.InputSignal<string>;
|
|
@@ -454,6 +454,14 @@ declare abstract class NettyAgGridListBase<T extends NettyEntityInterface<T>> ex
|
|
|
454
454
|
static ɵcmp: i0.ɵɵComponentDeclaration<NettyAgGridListBase<any>, "ntybase-ag-grid-list-base", never, { "componantParameterGUID": { "alias": "componantParameterGUID"; "required": false; "isSignal": true; }; "componantParameterType": { "alias": "componantParameterType"; "required": false; "isSignal": true; }; "hasFilter": { "alias": "hasFilter"; "required": false; "isSignal": true; }; }, { "onElementSelect": "onElementSelect"; "selectedElement": "selectedElement"; }, never, never, true, never>;
|
|
455
455
|
}
|
|
456
456
|
|
|
457
|
+
interface NettyEntityLogInterface<T> extends NettyEntityBaseInterface<T> {
|
|
458
|
+
logGuid: any | null;
|
|
459
|
+
changingDate: Date | null;
|
|
460
|
+
changingUser: any | null;
|
|
461
|
+
ip: string | null;
|
|
462
|
+
chagingUserName: string | null;
|
|
463
|
+
}
|
|
464
|
+
|
|
457
465
|
declare abstract class NettyAgGridLogBase<T extends NettyEntityLogInterface<T>> extends NettyAgGridBase<T> implements OnInit {
|
|
458
466
|
protected nettyAppsProxy: NettyStandardLogProxy<T>;
|
|
459
467
|
/**
|
|
@@ -466,7 +474,7 @@ declare abstract class NettyAgGridLogBase<T extends NettyEntityLogInterface<T>>
|
|
|
466
474
|
}
|
|
467
475
|
|
|
468
476
|
type UserViewMode = 'fullscreen' | 'sidenav' | 'dialog';
|
|
469
|
-
declare abstract class NettyAgGridSaveBase<T extends NettyEntityInterface<T>> extends NettyAppsBase implements DoCheck {
|
|
477
|
+
declare abstract class NettyAgGridSaveBase<T extends NettyEntityInterface<T>> extends NettyAppsBase implements OnInit, DoCheck {
|
|
470
478
|
protected router: Router;
|
|
471
479
|
protected route: ActivatedRoute;
|
|
472
480
|
protected commonService: CommonService;
|
|
@@ -485,6 +493,7 @@ declare abstract class NettyAgGridSaveBase<T extends NettyEntityInterface<T>> ex
|
|
|
485
493
|
protected dialogRef: MatDialogRef<any, any> | null;
|
|
486
494
|
protected dialogData: any;
|
|
487
495
|
constructor();
|
|
496
|
+
ngOnInit(): Promise<void>;
|
|
488
497
|
updateValid: i0.WritableSignal<boolean>;
|
|
489
498
|
setUpdateValid(value: boolean): void;
|
|
490
499
|
/**
|
|
@@ -523,7 +532,7 @@ declare abstract class NettyAgGridSaveBase<T extends NettyEntityInterface<T>> ex
|
|
|
523
532
|
*/
|
|
524
533
|
backClicked(): Promise<void>;
|
|
525
534
|
protected validateSaveRecord(recordGUID: any): boolean;
|
|
526
|
-
abstract createNewRecord(): T;
|
|
535
|
+
protected abstract createNewRecord(): T;
|
|
527
536
|
/**
|
|
528
537
|
* Save data to API
|
|
529
538
|
* Handles both create and update operations based on record existence
|
|
@@ -1016,5 +1025,5 @@ declare class NettyMenuService {
|
|
|
1016
1025
|
static ɵprov: i0.ɵɵInjectableDeclaration<NettyMenuService>;
|
|
1017
1026
|
}
|
|
1018
1027
|
|
|
1019
|
-
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 };
|
|
1028
|
+
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 };
|
|
1020
1029
|
export type { AgGridSelectionModeType, CanComponentDeactivate, Credentials, EnvironmentConfig, LoginContext, MFACodeContext, NettyEntityInterface, NettyEntityLogInterface, UserViewMode };
|