@nettyapps/ntybase 21.0.35-beta.9 → 21.0.36

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,20 +1,19 @@
1
1
  {
2
2
  "name": "@nettyapps/ntybase",
3
- "version": "21.0.35-beta.9",
3
+ "version": "21.0.36",
4
4
  "description": "This library provides foundational services and components for NettyApps Angular applications.",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
8
  "peerDependencies": {
9
- "@angular/common": ">= 21.0.0",
10
- "@angular/core": ">= 21.0.0",
9
+ "@angular/common": ">= 21.1.2",
10
+ "@angular/core": ">= 21.1.2",
11
11
  "buffer": ">= 6.0.3",
12
12
  "xlsx": ">= 0.18.5",
13
13
  "async-mutex": ">= 0.5.0",
14
14
  "ag-grid-angular": ">= 35.0.0",
15
15
  "ag-grid-enterprise": ">= 35.0.0",
16
- "@nettyapps/ntycontract": ">= 21.0.4",
17
- "@nettyapps/ntyui": ">= 21.0.15"
16
+ "@nettyapps/ntycontract": ">= 21.0.9"
18
17
  },
19
18
  "dependencies": {
20
19
  "tslib": "^2.3.0"
@@ -25,8 +24,7 @@
25
24
  "async-mutex",
26
25
  "ag-grid-angular",
27
26
  "ag-grid-enterprise",
28
- "@nettyapps/ntycontract",
29
- "@nettyapps/ntyui"
27
+ "@nettyapps/ntycontract"
30
28
  ],
31
29
  "sideEffects": false,
32
30
  "exports": {
@@ -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,16 +358,16 @@ 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
364
367
  */
365
368
  private getStoredFilterMode;
366
369
  agGridSelectionMode: i0.InputSignal<AgGridSelectionModeType>;
370
+ protected _agGridSelectionMode: i0.Signal<"singleRow" | "multiRow">;
367
371
  theme: Theme;
368
372
  protected gridApi: GridApi;
369
373
  protected userGridApi: GridApi;
@@ -390,7 +394,7 @@ declare abstract class NettyAgGridBase<T extends NettyEntityBaseInterface<T>> ex
390
394
  /**
391
395
  * Update a single row in the grid
392
396
  * @param rowData The updated row data
393
- * @param idField The field name that serves as unique identifier (default: 'id')
397
+ * @param idField The field name that serves as unique identifier (default: pkFieldName())
394
398
  */
395
399
  protected updateRowInGrid(rowData: T, idField?: string): void;
396
400
  /**
@@ -404,8 +408,10 @@ declare abstract class NettyAgGridBase<T extends NettyEntityBaseInterface<T>> ex
404
408
  showHideColumns(): void;
405
409
  showHideEmbeddedColumnsAsync(): void;
406
410
  showHideEmbeddedColumns(): void;
411
+ logInputs(message: string): void;
412
+ logAuthentication(message: string): void;
407
413
  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; }; "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>;
414
+ 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
415
  }
410
416
 
411
417
  interface NettyEntityInterface<T> extends NettyEntityBaseInterface<T> {
@@ -413,15 +419,6 @@ interface NettyEntityInterface<T> extends NettyEntityBaseInterface<T> {
413
419
  }
414
420
 
415
421
  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
422
  protected router: Router;
426
423
  protected routerActive: ActivatedRoute;
427
424
  protected dialog: MatDialog;
@@ -446,7 +443,6 @@ declare abstract class NettyAgGridListBase<T extends NettyEntityInterface<T>> ex
446
443
  * - The update type doesn't match
447
444
  */
448
445
  constructor();
449
- protected onReverseIsFilterValid(): void;
450
446
  /**
451
447
  * Validates if the given value is equal to null,undefined or ''
452
448
  * @param value
@@ -454,10 +450,32 @@ declare abstract class NettyAgGridListBase<T extends NettyEntityInterface<T>> ex
454
450
  */
455
451
  protected hasValidValue(value: any): boolean;
456
452
  protected loadData(): void;
453
+ refreshData(): Promise<void>;
457
454
  deleteSelected(): Promise<void>;
458
455
  protected deleteRows(rows: T[]): void;
456
+ logInputs(message: string): void;
459
457
  static ɵfac: i0.ɵɵFactoryDeclaration<NettyAgGridListBase<any>, never>;
460
- static ɵcmp: i0.ɵɵComponentDeclaration<NettyAgGridListBase<any>, "ntybase-ag-grid-list-base", never, { "hasFilter": { "alias": "hasFilter"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
458
+ static ɵcmp: i0.ɵɵComponentDeclaration<NettyAgGridListBase<any>, "ntybase-ag-grid-list-base", never, {}, {}, never, never, true, never>;
459
+ }
460
+
461
+ declare abstract class NettyAgGridListFilterBase<T extends NettyEntityInterface<T>> extends NettyAgGridListBase<T> implements OnInit {
462
+ displayFilter: i0.InputSignal<boolean>;
463
+ protected _displayFilter: i0.Signal<boolean>;
464
+ protected isFilterValid: i0.WritableSignal<boolean>;
465
+ protected isFilterExpanded: i0.WritableSignal<boolean>;
466
+ protected filterRefreshTrigger: i0.WritableSignal<number>;
467
+ constructor();
468
+ ngOnInit(): Promise<void>;
469
+ protected loadData(): void;
470
+ refreshData(): Promise<void>;
471
+ /**
472
+ * Triggers the filter component to refresh its data
473
+ */
474
+ refreshFilterData(): void;
475
+ protected onReverseIsFilterValid(): void;
476
+ logInputs(message: string): void;
477
+ static ɵfac: i0.ɵɵFactoryDeclaration<NettyAgGridListFilterBase<any>, never>;
478
+ 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
479
  }
462
480
 
463
481
  interface NettyEntityLogInterface<T> extends NettyEntityBaseInterface<T> {
@@ -475,6 +493,7 @@ declare abstract class NettyAgGridLogBase<T extends NettyEntityLogInterface<T>>
475
493
  */
476
494
  ngOnInit(): Promise<void>;
477
495
  protected loadData(): void;
496
+ refreshData(): Promise<void>;
478
497
  static ɵfac: i0.ɵɵFactoryDeclaration<NettyAgGridLogBase<any>, never>;
479
498
  static ɵcmp: i0.ɵɵComponentDeclaration<NettyAgGridLogBase<any>, "ntybase-ag-grid-log-base", never, {}, {}, never, never, true, never>;
480
499
  }
@@ -488,8 +507,6 @@ declare abstract class NettyAgGridSaveBase<T extends NettyEntityInterface<T>> ex
488
507
  protected dialog: MatDialog;
489
508
  viewMode: i0.WritableSignal<UserViewMode>;
490
509
  parameters: i0.InputSignal<string>;
491
- embedded: i0.InputSignal<boolean>;
492
- isEmbedded: i0.InputSignal<boolean>;
493
510
  protected nettyAppsProxy: NettyStandardProxy<T>;
494
511
  protected recordType: i0.WritableSignal<string>;
495
512
  currentItem: i0.WritableSignal<T>;
@@ -557,11 +574,11 @@ declare abstract class NettyAgGridSaveBase<T extends NettyEntityInterface<T>> ex
557
574
  * Handles both new record creation and existing record editing
558
575
  * guid - Unique identifier of the record
559
576
  */
560
- loadDetailData(): void;
577
+ loadDetailData(): Promise<void>;
561
578
  gotoURL(routePrefix: string[], rightSidenav: string[] | undefined, parameters: string, type?: string, dialogComponent?: any, isNewTab?: boolean, isPopup?: boolean): void;
562
579
  popupGotoURL(urlSegments: string[]): void;
563
580
  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; }; "embedded": { "alias": "embedded"; "required": false; "isSignal": true; }; "isEmbedded": { "alias": "isEmbedded"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
581
+ static ɵcmp: i0.ɵɵComponentDeclaration<NettyAgGridSaveBase<any>, "ntybase-ag-grid-save-base", never, { "parameters": { "alias": "parameters"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
565
582
  }
566
583
 
567
584
  type AOA = string[][];
@@ -1025,11 +1042,31 @@ declare class NettyMenuService {
1025
1042
  private i18nService;
1026
1043
  readonly menuName: i0.WritableSignal<string>;
1027
1044
  readonly menu: i0.WritableSignal<any>;
1028
- constructor();
1029
1045
  setMenuName(name: string): void;
1046
+ getMenu(): any;
1030
1047
  static ɵfac: i0.ɵɵFactoryDeclaration<NettyMenuService, never>;
1031
1048
  static ɵprov: i0.ɵɵInjectableDeclaration<NettyMenuService>;
1032
1049
  }
1033
1050
 
1034
- 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 };
1051
+ declare abstract class NettyAppsFilterBase<Trecord, Tfilter> extends NettyAppsBase implements OnInit {
1052
+ isFilterExpanded: i0.ModelSignal<boolean>;
1053
+ filteredRecords: i0.OutputEmitterRef<Trecord[]>;
1054
+ refresh: i0.InputSignal<number>;
1055
+ fileName: i0.InputSignal<string>;
1056
+ protected filterProxy: NettyStandardFilterProxy<Tfilter>;
1057
+ protected currentItem: i0.WritableSignal<Tfilter>;
1058
+ constructor();
1059
+ ngOnInit(): Promise<void>;
1060
+ protected onApply(): void;
1061
+ protected onReset(): void;
1062
+ protected onExport(): void;
1063
+ protected abstract createNewFilter(): Tfilter;
1064
+ protected abstract componentName(): string;
1065
+ protected afterOnInit(): Promise<void>;
1066
+ logInputs(message: string): void;
1067
+ static ɵfac: i0.ɵɵFactoryDeclaration<NettyAppsFilterBase<any, any>, never>;
1068
+ 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>;
1069
+ }
1070
+
1071
+ 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
1072
  export type { AgGridSelectionModeType, CanComponentDeactivate, Credentials, EnvironmentConfig, LoginContext, MFACodeContext, NettyEntityInterface, NettyEntityLogInterface, UserViewMode };