@nettyapps/ntybase 21.0.23 → 21.0.25

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.23",
3
+ "version": "21.0.25",
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
+ }
@@ -1,11 +1,11 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { OnDestroy, OnInit, DoCheck, SimpleChanges, InjectionToken } from '@angular/core';
3
- import { TranslateService } from '@ngx-translate/core';
4
3
  import { Observable, Subject } from 'rxjs';
5
4
  import { Theme, GridApi, GridOptions, StatusPanelDef, GridReadyEvent, IFilterParams, IDoesFilterPassParams } from 'ag-grid-community';
6
5
  import { MatDialog, MatDialogRef } from '@angular/material/dialog';
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';
@@ -263,6 +263,7 @@ declare class AlertService {
263
263
 
264
264
  declare abstract class NettyAppsBase implements OnDestroy {
265
265
  protected alertService: AlertService;
266
+ protected translateService: TranslateService;
266
267
  /**
267
268
  * Download the given base64Encoded data as file
268
269
  *
@@ -337,7 +338,6 @@ declare abstract class NettyAgGridBase<T extends {
337
338
  searchValue: i0.WritableSignal<string>;
338
339
  protected openInPopup: i0.WritableSignal<boolean>;
339
340
  protected nettyAgGridService: NettyAgGridService;
340
- protected translateService: TranslateService;
341
341
  protected commonService: CommonService;
342
342
  protected router: Router;
343
343
  protected routerActive: ActivatedRoute;
@@ -640,6 +640,15 @@ declare class AuthenticationInterceptor implements HttpInterceptor {
640
640
  static ɵprov: i0.ɵɵInjectableDeclaration<AuthenticationInterceptor>;
641
641
  }
642
642
 
643
+ /**
644
+ * Nty Authentication Interceptor. This interceptor is used to intercept HTTP requests and add authentication headers.
645
+ * It's coded as functional interceptor for better performance.
646
+ * @param req
647
+ * @param next
648
+ * @returns
649
+ */
650
+ declare const ntyAuthenticationInterceptor: HttpInterceptorFn;
651
+
643
652
  interface LoginContext {
644
653
  username: string;
645
654
  password: string;
@@ -918,6 +927,8 @@ declare class EnvironmentInfo {
918
927
  static ɵcmp: i0.ɵɵComponentDeclaration<EnvironmentInfo, "ntybase-environment-info", never, { "showNettyInfo": { "alias": "showNettyInfo"; "required": false; }; }, {}, never, never, true, never>;
919
928
  }
920
929
 
930
+ declare const NtyLoadingInterceptor: HttpInterceptorFn;
931
+
921
932
  declare class NettyMenuService {
922
933
  private http;
923
934
  private environmentProxy;
@@ -930,5 +941,5 @@ declare class NettyMenuService {
930
941
  static ɵprov: i0.ɵɵInjectableDeclaration<NettyMenuService>;
931
942
  }
932
943
 
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 };
944
+ 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, NtyLoadingInterceptor, Ntybase, NtybaseModule, RangeDateTimeFilter, RangeNumberFilter, RangeStringFilter, UrlHelperService, ntyAuthenticationInterceptor };
934
945
  export type { CanComponentDeactivate, Credentials, EnvironmentConfig, LoginContext, MFACodeContext, UserViewMode };