@nettyapps/ntybase 21.0.35-beta.2 → 21.0.35-beta.20

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@nettyapps/ntybase",
3
- "version": "21.0.35-beta.2",
3
+ "version": "21.0.35-beta.20",
4
4
  "description": "This library provides foundational services and components for NettyApps Angular applications.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -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
- declare abstract class NettyAgGridBase<T extends NettyEntityLogInterface<T>> extends NettyAppsBase {
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
- isEmbedded: i0.InputSignal<boolean>;
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;
@@ -393,35 +408,35 @@ declare abstract class NettyAgGridBase<T extends NettyEntityLogInterface<T>> ext
393
408
  showHideEmbeddedColumnsAsync(): void;
394
409
  showHideEmbeddedColumns(): void;
395
410
  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>;
411
+ 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>;
412
+ }
413
+
414
+ interface NettyEntityInterface<T> extends NettyEntityBaseInterface<T> {
415
+ compare(other: T): T;
397
416
  }
398
417
 
399
418
  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
419
  hasFilter: i0.InputSignal<boolean>;
420
+ protected _hasFilter: i0.Signal<boolean>;
405
421
  protected isFilterValid: i0.WritableSignal<boolean>;
406
- protected isFilterExpanded: i0.Signal<boolean>;
407
- menuValid: i0.WritableSignal<boolean>;
408
- refreshButtonValid: i0.WritableSignal<boolean>;
409
- protected openEditComponentInPopup: i0.WritableSignal<boolean>;
422
+ protected isFilterExpanded: i0.WritableSignal<boolean>;
423
+ protected filterRefreshTrigger: i0.WritableSignal<number>;
424
+ /**
425
+ * Triggers the filter component to refresh its data
426
+ */
427
+ refreshFilterData(): void;
410
428
  protected router: Router;
411
429
  protected routerActive: ActivatedRoute;
412
430
  protected dialog: MatDialog;
413
431
  protected queryParameterGUID: i0.Signal<any>;
414
432
  protected queryParameterType: i0.Signal<any>;
433
+ protected openInPopup: i0.WritableSignal<boolean>;
415
434
  protected nettyAppsProxy: NettyStandardProxy<T>;
416
435
  /**
417
436
  * Component initialization lifecycle hook
418
437
  */
419
438
  ngOnInit(): Promise<void>;
420
439
  private parseOrReturnValue;
421
- /**
422
- * Handle back button click
423
- */
424
- backClicked(): void;
425
440
  gotoURL(routePrefix: string[], rightSidenav: string[] | undefined, parameters: string, type?: string, dialogComponent?: any, isNewTab?: boolean, isPopup?: boolean): void;
426
441
  popupGotoURL(urlSegments: string[]): void;
427
442
  toggleOpenMode(): void;
@@ -441,17 +456,19 @@ declare abstract class NettyAgGridListBase<T extends NettyEntityInterface<T>> ex
441
456
  * @returns true if has a valid value
442
457
  */
443
458
  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
459
  protected loadData(): void;
450
460
  deleteSelected(): Promise<void>;
451
- refreshData(): Promise<void>;
452
461
  protected deleteRows(rows: T[]): void;
453
462
  static ɵfac: i0.ɵɵFactoryDeclaration<NettyAgGridListBase<any>, never>;
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>;
463
+ static ɵcmp: i0.ɵɵComponentDeclaration<NettyAgGridListBase<any>, "ntybase-ag-grid-list-base", never, { "hasFilter": { "alias": "hasFilter"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
464
+ }
465
+
466
+ interface NettyEntityLogInterface<T> extends NettyEntityBaseInterface<T> {
467
+ logGuid: any | null;
468
+ changingDate: Date | null;
469
+ changingUser: any | null;
470
+ ip: string | null;
471
+ chagingUserName: string | null;
455
472
  }
456
473
 
457
474
  declare abstract class NettyAgGridLogBase<T extends NettyEntityLogInterface<T>> extends NettyAgGridBase<T> implements OnInit {
@@ -474,8 +491,6 @@ declare abstract class NettyAgGridSaveBase<T extends NettyEntityInterface<T>> ex
474
491
  protected dialog: MatDialog;
475
492
  viewMode: i0.WritableSignal<UserViewMode>;
476
493
  parameters: i0.InputSignal<string>;
477
- embedded: i0.InputSignal<boolean>;
478
- isEmbedded: i0.InputSignal<boolean>;
479
494
  protected nettyAppsProxy: NettyStandardProxy<T>;
480
495
  protected recordType: i0.WritableSignal<string>;
481
496
  currentItem: i0.WritableSignal<T>;
@@ -547,7 +562,7 @@ declare abstract class NettyAgGridSaveBase<T extends NettyEntityInterface<T>> ex
547
562
  gotoURL(routePrefix: string[], rightSidenav: string[] | undefined, parameters: string, type?: string, dialogComponent?: any, isNewTab?: boolean, isPopup?: boolean): void;
548
563
  popupGotoURL(urlSegments: string[]): void;
549
564
  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; }; "embedded": { "alias": "embedded"; "required": false; "isSignal": true; }; "isEmbedded": { "alias": "isEmbedded"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
565
+ static ɵcmp: i0.ɵɵComponentDeclaration<NettyAgGridSaveBase<any>, "ntybase-ag-grid-save-base", never, { "parameters": { "alias": "parameters"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
551
566
  }
552
567
 
553
568
  type AOA = string[][];
@@ -1017,5 +1032,24 @@ declare class NettyMenuService {
1017
1032
  static ɵprov: i0.ɵɵInjectableDeclaration<NettyMenuService>;
1018
1033
  }
1019
1034
 
1020
- 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 };
1035
+ declare abstract class NettyAppsFilterBase<Trecord, Tfilter> extends NettyAppsBase implements OnInit {
1036
+ isFilterExpanded: i0.ModelSignal<boolean>;
1037
+ filteredRecords: i0.OutputEmitterRef<Trecord[]>;
1038
+ refresh: i0.InputSignal<number>;
1039
+ fileName: i0.InputSignal<string>;
1040
+ protected filterProxy: NettyStandardFilterProxy<Tfilter>;
1041
+ protected currentItem: i0.WritableSignal<Tfilter>;
1042
+ constructor();
1043
+ ngOnInit(): Promise<void>;
1044
+ protected onApply(): void;
1045
+ protected onReset(): void;
1046
+ protected onExport(): void;
1047
+ protected abstract createNewFilter(): Tfilter;
1048
+ protected abstract componentName(): string;
1049
+ protected afterOnInit(): Promise<void>;
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 };
1021
1055
  export type { AgGridSelectionModeType, CanComponentDeactivate, Credentials, EnvironmentConfig, LoginContext, MFACodeContext, NettyEntityInterface, NettyEntityLogInterface, UserViewMode };