@nettyapps/ntybase 21.1.12 → 21.1.13

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.1.12",
3
+ "version": "21.1.13",
4
4
  "description": "This library provides foundational services and components for NettyApps Angular applications.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -8,10 +8,10 @@ import { MatSnackBar } from '@angular/material/snack-bar';
8
8
  import { MatDialog, MatDialogRef } from '@angular/material/dialog';
9
9
  import { TranslateService } from '@ngx-translate/core';
10
10
  import { ComponentType } from '@angular/cdk/portal';
11
+ import { Title } from '@angular/platform-browser';
11
12
  import { HttpClient, HttpInterceptor, HttpRequest, HttpHandler, HttpEvent, HttpInterceptorFn } from '@angular/common/http';
12
13
  import { Theme, GridApi, GridOptions, StatusPanelDef, GridReadyEvent } from 'ag-grid-enterprise';
13
14
  import { Router, ActivatedRoute, CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, CanDeactivate } from '@angular/router';
14
- import { Title } from '@angular/platform-browser';
15
15
  import { NgForm, FormGroup } from '@angular/forms';
16
16
  import * as XLSX from 'xlsx';
17
17
  import { ICellRendererAngularComp, IFilterAngularComp } from 'ag-grid-angular';
@@ -43,11 +43,23 @@ declare class AlertService {
43
43
  static ɵprov: i0.ɵɵInjectableDeclaration<AlertService>;
44
44
  }
45
45
 
46
+ declare class PageTitle {
47
+ title: i0.WritableSignal<string>;
48
+ setTitle(newTitle: string): void;
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<PageTitle, never>;
50
+ static ɵprov: i0.ɵɵInjectableDeclaration<PageTitle>;
51
+ }
52
+
46
53
  declare abstract class NettyAppsBase implements OnDestroy {
47
54
  embedded: i0.InputSignal<boolean>;
48
55
  _isEmbedded: i0.Signal<boolean>;
56
+ pageName: i0.WritableSignal<string>;
57
+ currentPageTitle: i0.Signal<string>;
49
58
  protected alertService: AlertService;
50
59
  protected translateService: TranslateService;
60
+ protected pageTitleService: PageTitle;
61
+ protected titleService: Title;
62
+ constructor();
51
63
  /**
52
64
  * Download the given base64Encoded data as file
53
65
  *
@@ -326,7 +338,6 @@ declare abstract class NettyAgGridBase<T extends NettyEntityBaseInterface<T>> ex
326
338
  protected searchValueName: i0.WritableSignal<string>;
327
339
  protected preferenceType: i0.WritableSignal<string>;
328
340
  searchValue: i0.WritableSignal<string>;
329
- pageName: i0.WritableSignal<string>;
330
341
  protected parameterGUID: any;
331
342
  protected parameterType: any;
332
343
  protected nettyAgGridService: NettyAgGridService;
@@ -423,19 +434,10 @@ interface NettyEntityInterface<T> extends NettyEntityBaseInterface<T> {
423
434
  compare(other: T): T;
424
435
  }
425
436
 
426
- declare class PageTitle {
427
- title: i0.WritableSignal<string>;
428
- setTitle(newTitle: string): void;
429
- static ɵfac: i0.ɵɵFactoryDeclaration<PageTitle, never>;
430
- static ɵprov: i0.ɵɵInjectableDeclaration<PageTitle>;
431
- }
432
-
433
437
  declare abstract class NettyAgGridListBase<T extends NettyEntityInterface<T>> extends NettyAgGridBase<T> implements OnInit {
434
438
  protected router: Router;
435
439
  protected routerActive: ActivatedRoute;
436
440
  protected dialog: MatDialog;
437
- protected titleService: Title;
438
- protected pageTitleService: PageTitle;
439
441
  protected queryParameterGUID: i0.Signal<any>;
440
442
  protected queryParameterType: i0.Signal<any>;
441
443
  protected openInPopup: i0.WritableSignal<boolean>;
@@ -467,7 +469,6 @@ declare abstract class NettyAgGridListBase<T extends NettyEntityInterface<T>> ex
467
469
  refreshData(): Promise<void>;
468
470
  deleteSelected(): Promise<void>;
469
471
  protected deleteRows(rows: T[]): void;
470
- currentPageTitle: i0.Signal<string>;
471
472
  logInputs(message: string): void;
472
473
  static ɵfac: i0.ɵɵFactoryDeclaration<NettyAgGridListBase<any>, never>;
473
474
  static ɵcmp: i0.ɵɵComponentDeclaration<NettyAgGridListBase<any>, "ntybase-ag-grid-list-base", never, {}, {}, never, never, true, never>;
@@ -989,6 +990,38 @@ declare class NettyImageService {
989
990
  static ɵprov: i0.ɵɵInjectableDeclaration<NettyImageService>;
990
991
  }
991
992
 
993
+ declare class Guid {
994
+ private value;
995
+ constructor(value?: string);
996
+ static newGuid(): Guid;
997
+ /**
998
+ * return all zeros '00000000-0000-0000-0000-000000000000'
999
+ */
1000
+ static get empty(): string;
1001
+ get empty(): string;
1002
+ static isValid(str: string): boolean;
1003
+ toString(): string;
1004
+ toJSON(): string;
1005
+ /**
1006
+ * True is guid is empty or not valid
1007
+ * @param str
1008
+ * @returns
1009
+ */
1010
+ static isNullOrEmpty(str: string): boolean;
1011
+ /**
1012
+ * True if the guid is valid and not all zeros (empty)
1013
+ * @param str
1014
+ * @returns
1015
+ */
1016
+ static isValidAndNotEmpty(str: string): boolean;
1017
+ /**
1018
+ * Return empty guid if the given guid is not valid
1019
+ * @param guid
1020
+ * @returns
1021
+ */
1022
+ static emptyWhenNull(guid: any): any;
1023
+ }
1024
+
992
1025
  declare class NettyBaseApp {
993
1026
  protected i18nService: I18nService;
994
1027
  protected loadBaseTranslations(): Promise<void>;
@@ -1092,5 +1125,5 @@ declare abstract class NettyAppsFilterBase<Trecord, Tfilter> extends NettyAppsBa
1092
1125
  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"; "filterSelectionChanged": "filterSelectionChanged"; }, never, never, true, never>;
1093
1126
  }
1094
1127
 
1095
- 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, NtyLoadingService, Ntybase, NtybaseModule, PageTitle, RangeDateTimeFilter, RangeNumberFilter, RangeStringFilter, UrlHelperService, ntyAuthenticationInterceptor };
1128
+ export { AlertService, AuthenticationGuard, AuthenticationInterceptor, AuthenticationService, ButtonRenderer, CanDeactivateGuard, CheckboxRenderer, CommonService, ConfirmDialog, CredentialsService, CurrentUserPreference, ENVIRONMENT_CONFIG, EnvironmentInfo, EnvironmentInfoService, ExcelImportBase, ForgotPassword, Guid, Login, LoginDto, MFACodeDto, MfaLogin, NettyAgGridBase, NettyAgGridListBase, NettyAgGridListFilterBase, NettyAgGridLogBase, NettyAgGridSaveBase, NettyAgGridService, NettyAppsBase, NettyAppsFilterBase, NettyBaseApp, NettyHelper, NettyImageService, NettyMenuService, NtyLoadingComponent, NtyLoadingInterceptor, NtyLoadingService, Ntybase, NtybaseModule, PageTitle, RangeDateTimeFilter, RangeNumberFilter, RangeStringFilter, UrlHelperService, ntyAuthenticationInterceptor };
1096
1129
  export type { AgGridSelectionModeType, CanComponentDeactivate, Credentials, EnvironmentConfig, LoginContext, MFACodeContext, NettyEntityInterface, NettyEntityLogInterface, UserViewMode };