@nettyapps/ntybase 21.0.24 → 21.0.26

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.24",
3
+ "version": "21.0.26",
4
4
  "description": "This library provides foundational services and components for NettyApps Angular applications.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -260,4 +260,4 @@
260
260
  "@invalidFormat": "Geçersiz Format",
261
261
  "@openInPopup": "Kayıtlar artık açılır pencerede görüntülenecek",
262
262
  "@openInSidenav": "Kayıtlar artık yan panelde görüntülenecek"
263
- }
263
+ }
@@ -5,7 +5,7 @@ import { Theme, GridApi, GridOptions, StatusPanelDef, GridReadyEvent, IFilterPar
5
5
  import { MatDialog, MatDialogRef } from '@angular/material/dialog';
6
6
  import { TranslateService } from '@ngx-translate/core';
7
7
  import { Router, ActivatedRoute, CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, CanDeactivate } from '@angular/router';
8
- import { HttpClient, HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
8
+ import { HttpClient, HttpInterceptor, HttpRequest, HttpHandler, HttpEvent, HttpInterceptorFn } from '@angular/common/http';
9
9
  import { EnvironmentProxy } from '@nettyapps/ntycontract';
10
10
  import { MatSnackBar } from '@angular/material/snack-bar';
11
11
  import { NgForm, FormGroup } from '@angular/forms';
@@ -327,6 +327,7 @@ declare abstract class NettyAgGridBase<T extends {
327
327
  columnDefs: i0.WritableSignal<any>;
328
328
  userColumnDefs: i0.WritableSignal<any>;
329
329
  groupMembersColumnDefs: i0.WritableSignal<any>;
330
+ protected gridColumnsVisible: i0.WritableSignal<boolean>;
330
331
  frameworkComponents: any;
331
332
  selectedRows: i0.WritableSignal<T[]>;
332
333
  isSingleRowSelected: i0.Signal<boolean>;
@@ -413,6 +414,11 @@ declare abstract class NettyAgGridBase<T extends {
413
414
  protected selectedData?(): void;
414
415
  protected setFilter(): void;
415
416
  protected popupClose(): void;
417
+ onShowHideColumns(): void;
418
+ showHideColumnsAsync(): void;
419
+ showHideColumns(): void;
420
+ showHideEmbeddedColumnsAsync(): void;
421
+ showHideEmbeddedColumns(): void;
416
422
  static ɵfac: i0.ɵɵFactoryDeclaration<NettyAgGridBase<any>, never>;
417
423
  static ɵcmp: i0.ɵɵComponentDeclaration<NettyAgGridBase<any>, "ntybase-ag-grid-base", never, { "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "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; }; }, { "onElementSelect": "onElementSelect"; "selectedElement": "selectedElement"; }, never, never, true, never>;
418
424
  }
@@ -640,6 +646,15 @@ declare class AuthenticationInterceptor implements HttpInterceptor {
640
646
  static ɵprov: i0.ɵɵInjectableDeclaration<AuthenticationInterceptor>;
641
647
  }
642
648
 
649
+ /**
650
+ * Nty Authentication Interceptor. This interceptor is used to intercept HTTP requests and add authentication headers.
651
+ * It's coded as functional interceptor for better performance.
652
+ * @param req
653
+ * @param next
654
+ * @returns
655
+ */
656
+ declare const ntyAuthenticationInterceptor: HttpInterceptorFn;
657
+
643
658
  interface LoginContext {
644
659
  username: string;
645
660
  password: string;
@@ -884,6 +899,7 @@ interface EnvironmentConfig {
884
899
  application: string;
885
900
  };
886
901
  }
902
+
887
903
  declare const ENVIRONMENT_CONFIG: InjectionToken<EnvironmentConfig>;
888
904
  declare class EnvironmentInfoService {
889
905
  private config;
@@ -918,6 +934,26 @@ declare class EnvironmentInfo {
918
934
  static ɵcmp: i0.ɵɵComponentDeclaration<EnvironmentInfo, "ntybase-environment-info", never, { "showNettyInfo": { "alias": "showNettyInfo"; "required": false; }; }, {}, never, never, true, never>;
919
935
  }
920
936
 
937
+ declare const NETTY_APP_ENVIRONMENT: InjectionToken<any>;
938
+ declare class NtyEnvironmentService {
939
+ private defaultEnv;
940
+ constructor(defaultEnv: any);
941
+ loadEnvironment(): Promise<any>;
942
+ private loadEnvScript;
943
+ getEnvironment(): any;
944
+ static ɵfac: i0.ɵɵFactoryDeclaration<NtyEnvironmentService, never>;
945
+ static ɵprov: i0.ɵɵInjectableDeclaration<NtyEnvironmentService>;
946
+ }
947
+
948
+ declare function ntyEnvironmentConfigFactory(envService: NtyEnvironmentService): EnvironmentConfig;
949
+
950
+ interface IEnvironmentLoader {
951
+ loadEnvironment(): Promise<EnvironmentConfig>;
952
+ }
953
+ declare function ntyInitializeEnvironment(envLoader: IEnvironmentLoader): () => Promise<EnvironmentConfig>;
954
+
955
+ declare const NtyLoadingInterceptor: HttpInterceptorFn;
956
+
921
957
  declare class NettyMenuService {
922
958
  private http;
923
959
  private environmentProxy;
@@ -930,5 +966,5 @@ declare class NettyMenuService {
930
966
  static ɵprov: i0.ɵɵInjectableDeclaration<NettyMenuService>;
931
967
  }
932
968
 
933
- export { AlertService, AuthenticationGuard, AuthenticationInterceptor, AuthenticationService, ButtonRenderer, CanDeactivateGuard, CheckboxRenderer, CommonService, ConfirmDialog, CredentialsService, CurrentUserPreference, ENVIRONMENT_CONFIG, EnvironmentInfo, EnvironmentInfoService, ExcelImportBase, ForgotPassword, Login, LoginDto, MFACodeDto, MfaLogin, NettyAgGridBase, NettyAgGridSaveBase, NettyAgGridService, NettyAppsBase, NettyBaseApp, NettyHelper, NettyImageService, NettyMenuService, Ntybase, NtybaseModule, RangeDateTimeFilter, RangeNumberFilter, RangeStringFilter, UrlHelperService };
934
- export type { CanComponentDeactivate, Credentials, EnvironmentConfig, LoginContext, MFACodeContext, UserViewMode };
969
+ export { AlertService, AuthenticationGuard, AuthenticationInterceptor, AuthenticationService, ButtonRenderer, CanDeactivateGuard, CheckboxRenderer, CommonService, ConfirmDialog, CredentialsService, CurrentUserPreference, ENVIRONMENT_CONFIG, EnvironmentInfo, EnvironmentInfoService, ExcelImportBase, ForgotPassword, Login, LoginDto, MFACodeDto, MfaLogin, NETTY_APP_ENVIRONMENT, NettyAgGridBase, NettyAgGridSaveBase, NettyAgGridService, NettyAppsBase, NettyBaseApp, NettyHelper, NettyImageService, NettyMenuService, NtyEnvironmentService, NtyLoadingInterceptor, Ntybase, NtybaseModule, RangeDateTimeFilter, RangeNumberFilter, RangeStringFilter, UrlHelperService, ntyAuthenticationInterceptor, ntyEnvironmentConfigFactory, ntyInitializeEnvironment };
970
+ export type { CanComponentDeactivate, Credentials, IEnvironmentLoader, LoginContext, MFACodeContext, UserViewMode };