@abp/ng.core 9.3.6 → 10.0.0-rc.2

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/index.d.ts CHANGED
@@ -3,16 +3,16 @@ import { ActivatedRouteSnapshot, RouterStateSnapshot, UrlTree, CanActivateFn, Pa
3
3
  import * as rxjs from 'rxjs';
4
4
  import { Observable, UnaryFunction, Subject, Subscription, PartialObserver, ReplaySubject, BehaviorSubject } from 'rxjs';
5
5
  import * as i0 from '@angular/core';
6
- import { ChangeDetectorRef, Injector, Type, EventEmitter, TemplateRef, ComponentRef, ViewContainerRef, EmbeddedViewRef, OnDestroy, NgZone, TrackByFunction, OnInit, AfterViewInit, ElementRef, OnChanges, IterableDiffers, SimpleChanges, PipeTransform, InjectionToken, ModuleWithProviders, Provider, NgModuleFactory, NgModuleRef } from '@angular/core';
6
+ import { ChangeDetectorRef, Injector, Type, EventEmitter, TemplateRef, OnDestroy, ComponentRef, ViewContainerRef, EmbeddedViewRef, TrackByFunction, OnInit, AfterViewInit, OnChanges, ElementRef, SimpleChanges, PipeTransform, InjectionToken, ModuleWithProviders, Provider, NgModuleFactory, NgModuleRef, NgZone } from '@angular/core';
7
7
  import * as i2 from '@angular/forms';
8
- import { ControlValueAccessor, FormGroupDirective, ValidatorFn, Validators } from '@angular/forms';
9
- import { HttpHeaders, HttpParameterCodec, HttpParams, HttpErrorResponse, HttpRequest, HttpClient, HttpContextToken, HttpInterceptor, HttpHandler, HttpEvent } from '@angular/common/http';
8
+ import { ControlValueAccessor, ValidatorFn, Validators } from '@angular/forms';
9
+ import { HttpHeaders, HttpParameterCodec, HttpParams, HttpErrorResponse, HttpRequest, HttpClient, HttpContextToken, HttpInterceptor, HttpHandler, HttpEvent, HttpInterceptorFn } from '@angular/common/http';
10
10
  import { AuthConfig } from 'angular-oauth2-oidc';
11
- import * as _abp_ng_core from '@abp/ng.core';
12
11
  import * as i1 from '@angular/common';
13
12
  import { DatePipe } from '@angular/common';
14
13
  import * as i4 from '@ngx-validate/core';
15
14
  export { NgxValidateCoreModule, Validation } from '@ngx-validate/core';
15
+ import * as _abp_ng_core from '@abp/ng.core';
16
16
  import { DateTime } from 'luxon';
17
17
  import { O as O$1 } from 'ts-toolbelt';
18
18
  import { Title } from '@angular/platform-browser';
@@ -51,6 +51,7 @@ declare class AuthGuard implements IAbpGuard {
51
51
  static ɵprov: i0.ɵɵInjectableDeclaration<AuthGuard>;
52
52
  }
53
53
  declare const authGuard: CanActivateFn;
54
+ declare const asyncAuthGuard: CanActivateFn;
54
55
 
55
56
  type EventType = 'discovery_document_loaded' | 'jwks_load_error' | 'invalid_nonce_in_state' | 'discovery_document_load_error' | 'discovery_document_validation_error' | 'user_profile_loaded' | 'user_profile_load_error' | 'token_received' | 'token_error' | 'code_error' | 'token_refreshed' | 'token_refresh_error' | 'silent_refresh_error' | 'silently_refreshed' | 'silent_refresh_timeout' | 'token_validation_error' | 'token_expires' | 'session_changed' | 'session_error' | 'session_terminated' | 'session_unchanged' | 'logout' | 'popup_closed' | 'popup_blocked' | 'token_revoke_error';
56
57
  declare abstract class AuthEvent {
@@ -136,7 +137,7 @@ interface IAuthService {
136
137
  getAccessTokenExpiration(): number;
137
138
  getRefreshToken(): string;
138
139
  getAccessToken(): string;
139
- refreshToken(): Promise<AbpAuthResponse>;
140
+ refreshToken(): Promise<AbpAuthResponse | void>;
140
141
  }
141
142
 
142
143
  declare const enum eLayoutType {
@@ -160,6 +161,7 @@ interface Environment {
160
161
  };
161
162
  oAuthConfig?: AuthConfig & {
162
163
  impersonation?: Impersonation;
164
+ ssrAuthorizationUrl?: string;
163
165
  };
164
166
  production: boolean;
165
167
  remoteEnv?: RemoteEnv;
@@ -437,6 +439,7 @@ declare namespace Rest {
437
439
  skipAddingHeader: boolean;
438
440
  observe: Observe;
439
441
  httpParamEncoder?: HttpParameterCodec;
442
+ responseType: ResponseType;
440
443
  }>;
441
444
  const enum Observe {
442
445
  Body = "body",
@@ -713,976 +716,298 @@ interface WindowsTimeZone {
713
716
  timeZoneId?: string;
714
717
  }
715
718
 
716
- declare abstract class ContextStrategy<T = any> {
717
- context: Partial<ContextType<T>>;
718
- constructor(context: Partial<ContextType<T>>);
719
- setContext(componentRef?: ComponentRef<InferredInstanceOf<T>>): Partial<ContextType<T>>;
720
- }
721
- declare class NoContextStrategy<T extends Type<any> | TemplateRef<any> = any> extends ContextStrategy<T> {
719
+ declare class LocalizationService {
720
+ private sessionState;
721
+ private injector;
722
+ private configState;
723
+ private latestLang;
724
+ private _languageChange$;
725
+ private uiLocalizations$;
726
+ private localizations$;
727
+ /**
728
+ * Returns currently selected language
729
+ * Even though this looks like it's redundant to return the same value as `getLanguage()`,
730
+ * it's actually not. This could be invoked any time, and the latestLang could be different from the
731
+ * sessionState.getLanguage() value.
732
+ */
733
+ get currentLang(): string;
734
+ get currentLang$(): Observable<string>;
735
+ get languageChange$(): Observable<string>;
722
736
  constructor();
737
+ private initLocalizationValues;
738
+ addLocalization(localizations?: ABP.Localization[]): void;
739
+ private listenToSetLanguage;
740
+ registerLocale(locale: string): Promise<void>;
741
+ /**
742
+ * Returns an observable localized text with the given interpolation parameters in current language.
743
+ * @param key Localizaton key to replace with localized text
744
+ * @param interpolateParams Values to interpolate
745
+ */
746
+ get(key: string | LocalizationWithDefault, ...interpolateParams: string[]): Observable<string>;
747
+ getResource(resourceName: string): Record<string, string>;
748
+ getResource$(resourceName: string): Observable<Record<string, string>>;
749
+ /**
750
+ * Returns localized text with the given interpolation parameters in current language.
751
+ * @param key Localization key to replace with localized text
752
+ * @param interpolateParams Values to intepolate.
753
+ */
754
+ instant(key: string | LocalizationWithDefault, ...interpolateParams: string[]): string;
755
+ localize(resourceName: string, key: string, defaultValue: string): Observable<string | null>;
756
+ localizeSync(resourceName: string, key: string, defaultValue: string): string | null;
757
+ localizeWithFallback(resourceNames: string[], keys: string[], defaultValue: string): Observable<string>;
758
+ localizeWithFallbackSync(resourceNames: string[], keys: string[], defaultValue: string): string;
759
+ private getLocalization;
760
+ static ɵfac: i0.ɵɵFactoryDeclaration<LocalizationService, never>;
761
+ static ɵprov: i0.ɵɵInjectableDeclaration<LocalizationService>;
723
762
  }
724
- declare class ComponentContextStrategy<T extends Type<any> = any> extends ContextStrategy<T> {
725
- setContext(componentRef: ComponentRef<InferredInstanceOf<T>>): Partial<InferredInstanceOf<T>>;
726
- }
727
- declare class TemplateContextStrategy<T extends TemplateRef<any> = any> extends ContextStrategy<T> {
728
- setContext(): Partial<InferredContextOf<T>>;
729
- }
730
- declare const CONTEXT_STRATEGY: {
731
- None<T extends Type<any> | TemplateRef<any> = any>(): NoContextStrategy<T>;
732
- Component<T extends Type<any> = any>(context: Partial<InferredInstanceOf<T>>): ComponentContextStrategy<T>;
733
- Template<T extends TemplateRef<any> = any>(context: Partial<InferredContextOf<T>>): TemplateContextStrategy<T>;
734
- };
735
- type ContextType<T> = T extends Type<infer U> | TemplateRef<infer U> ? U : never;
763
+ type LegacyLanguageDto = Record<string, Record<string, string>>;
764
+ type ResourceDto = Record<string, ApplicationLocalizationResourceDto>;
736
765
 
737
- declare abstract class ContainerStrategy {
738
- containerRef: ViewContainerRef;
739
- constructor(containerRef: ViewContainerRef);
740
- abstract getIndex(): number;
741
- prepare(): void;
742
- }
743
- declare class ClearContainerStrategy extends ContainerStrategy {
744
- getIndex(): number;
745
- prepare(): void;
746
- }
747
- declare class InsertIntoContainerStrategy extends ContainerStrategy {
748
- private index;
749
- constructor(containerRef: ViewContainerRef, index: number);
750
- getIndex(): number;
766
+ declare class ReplaceableComponentsService {
767
+ private ngZone;
768
+ private router;
769
+ private readonly store;
770
+ get replaceableComponents$(): Observable<ReplaceableComponents.ReplaceableComponent[]>;
771
+ get replaceableComponents(): ReplaceableComponents.ReplaceableComponent[];
772
+ get onUpdate$(): Observable<ReplaceableComponents.ReplaceableComponent[]>;
773
+ constructor();
774
+ add(replaceableComponent: ReplaceableComponents.ReplaceableComponent, reload?: boolean): void;
775
+ get(replaceableComponentKey: string): ReplaceableComponents.ReplaceableComponent | undefined;
776
+ get$(replaceableComponentKey: string): Observable<ReplaceableComponents.ReplaceableComponent | undefined>;
777
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReplaceableComponentsService, never>;
778
+ static ɵprov: i0.ɵɵInjectableDeclaration<ReplaceableComponentsService>;
751
779
  }
752
- declare const CONTAINER_STRATEGY: {
753
- Clear(containerRef: ViewContainerRef): ClearContainerStrategy;
754
- Append(containerRef: ViewContainerRef): InsertIntoContainerStrategy;
755
- Prepend(containerRef: ViewContainerRef): InsertIntoContainerStrategy;
756
- Insert(containerRef: ViewContainerRef, index: number): InsertIntoContainerStrategy;
780
+
781
+ declare const NavigationEvent: {
782
+ Cancel: typeof NavigationCancel;
783
+ End: typeof NavigationEnd;
784
+ Error: typeof NavigationError;
785
+ Start: typeof NavigationStart;
757
786
  };
787
+ declare class RouterEvents {
788
+ #private;
789
+ protected readonly router: Router;
790
+ previousNavigation: i0.Signal<string>;
791
+ currentNavigation: i0.Signal<string>;
792
+ constructor();
793
+ protected listenToNavigation(): void;
794
+ getEvents<T extends RouterEventConstructors>(...eventTypes: T): Observable<Event$1>;
795
+ getNavigationEvents<T extends NavigationEventKeys>(...navigationEventKeys: T): Observable<T extends (infer Key)[] ? Key extends "Cancel" | "End" | "Error" | "Start" ? InstanceType<{
796
+ Cancel: typeof NavigationCancel;
797
+ End: typeof NavigationEnd;
798
+ Error: typeof NavigationError;
799
+ Start: typeof NavigationStart;
800
+ }[Key]> : never : never>;
801
+ getAllEvents(): Observable<Event$1>;
802
+ getAllNavigationEvents(): Observable<NavigationStart | NavigationEnd | NavigationCancel | NavigationError>;
803
+ static ɵfac: i0.ɵɵFactoryDeclaration<RouterEvents, never>;
804
+ static ɵprov: i0.ɵɵInjectableDeclaration<RouterEvents>;
805
+ }
806
+ type RouterEventConstructors = [Type<RouterEvent>, ...Type<RouterEvent>[]];
807
+ type NavigationEventKeys = [NavigationEventKey, ...NavigationEventKey[]];
808
+ type NavigationEventType = typeof NavigationEvent;
809
+ type NavigationEventKey = keyof NavigationEventType;
758
810
 
759
- declare class DomStrategy {
760
- target: HTMLElement;
761
- position: InsertPosition;
762
- constructor(target?: HTMLElement, position?: InsertPosition);
763
- insertElement<T extends HTMLElement>(element: T): void;
811
+ declare class BaseTreeNode<T extends object> {
812
+ children: TreeNode<T>[];
813
+ isLeaf: boolean;
814
+ parent?: TreeNode<T>;
815
+ constructor(props: T);
816
+ static create<T extends object>(props: T): TreeNode<T>;
764
817
  }
765
- declare const DOM_STRATEGY: {
766
- AfterElement(element: HTMLElement): DomStrategy;
767
- AppendToBody(): DomStrategy;
768
- AppendToHead(): DomStrategy;
769
- BeforeElement(element: HTMLElement): DomStrategy;
770
- PrependToHead(): DomStrategy;
818
+ declare function createTreeFromList<T extends object, R>(list: T[], keySelector: (item: T) => NodeKey, parentKeySelector: typeof keySelector, valueMapper: (item: T) => R): R[];
819
+ declare function createMapFromList<T extends object, R>(list: T[], keySelector: (item: T) => NodeKey, valueMapper: (item: T) => R): Map<NodeKey, R>;
820
+ declare function createTreeNodeFilterCreator<T extends object>(key: keyof T, mapperFn: (value: any) => string): (search: string) => (nodes: TreeNode<T>[], matches?: TreeNode<T>[]) => TreeNode<T>[];
821
+ declare function createGroupMap<T extends {
822
+ group?: string;
823
+ }>(list: TreeNode<T>[], othersGroupKey: string): Map<string, TreeNode<T>[]>;
824
+ type TreeNode<T extends object> = {
825
+ [K in keyof T]: T[K];
826
+ } & {
827
+ children: TreeNode<T>[];
828
+ isLeaf: boolean;
829
+ parent?: TreeNode<T>;
830
+ };
831
+ type RouteGroup<T extends object> = {
832
+ readonly group: string;
833
+ readonly items: TreeNode<T>[];
771
834
  };
835
+ type NodeKey = number | string | symbol | undefined | null;
836
+ type NodeValue<T extends object, F extends (...args: any) => any> = F extends undefined ? TreeNode<T> : ReturnType<F>;
772
837
 
773
- declare abstract class ProjectionStrategy<T = any> {
774
- content: T;
775
- constructor(content: T);
776
- abstract injectContent(injector: Injector): ComponentRefOrEmbeddedViewRef<T>;
838
+ declare abstract class AbstractTreeService<T extends {
839
+ [key: string | number | symbol]: any;
840
+ }> {
841
+ abstract id: string;
842
+ abstract parentId: string;
843
+ abstract hide: (item: T) => boolean;
844
+ abstract sort: (a: T, b: T) => number;
845
+ private _flat$;
846
+ private _tree$;
847
+ private _visible$;
848
+ protected othersGroup: string;
849
+ protected shouldSingularizeRoutes: boolean;
850
+ get flat(): T[];
851
+ get flat$(): Observable<T[]>;
852
+ get tree(): TreeNode<T>[];
853
+ get tree$(): Observable<TreeNode<T>[]>;
854
+ get visible(): TreeNode<T>[];
855
+ get visible$(): Observable<TreeNode<T>[]>;
856
+ private filterWith;
857
+ private findItemsToRemove;
858
+ private publish;
859
+ protected createTree(items: T[]): TreeNode<T>[];
860
+ protected createGroupedTree(list: TreeNode<T>[]): RouteGroup<T>[] | undefined;
861
+ add(items: T[]): T[];
862
+ find(predicate: (item: TreeNode<T>) => boolean, tree?: TreeNode<T>[]): TreeNode<T> | null;
863
+ patch(identifier: string, props: Partial<T>): T[] | false;
864
+ refresh(): T[];
865
+ remove(identifiers: string[]): T[];
866
+ removeByParam(params: Partial<T>): T[] | null;
867
+ search(params: Partial<T>, tree?: TreeNode<T>[]): TreeNode<T> | null;
868
+ setSingularizeStatus(singularize?: boolean): void;
777
869
  }
778
- declare class ComponentProjectionStrategy<T extends Type<any>> extends ProjectionStrategy<T> {
779
- private containerStrategy;
780
- private contextStrategy;
781
- constructor(component: T, containerStrategy: ContainerStrategy, contextStrategy?: ContextStrategy);
782
- injectContent(injector: Injector): ComponentRefOrEmbeddedViewRef<T>;
870
+ declare abstract class AbstractNavTreeService<T extends ABP.Nav> extends AbstractTreeService<T> implements OnDestroy {
871
+ protected injector: Injector;
872
+ private subscription;
873
+ private permissionService;
874
+ private compareFunc;
875
+ readonly id = "name";
876
+ readonly parentId = "parentName";
877
+ readonly hide: (item: T) => boolean;
878
+ readonly sort: (a: T, b: T) => any;
879
+ constructor();
880
+ protected isGranted({ requiredPolicy }: T): boolean;
881
+ hasChildren(identifier: string): boolean;
882
+ hasInvisibleChild(identifier: string): boolean;
883
+ ngOnDestroy(): void;
884
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractNavTreeService<any>, never>;
885
+ static ɵprov: i0.ɵɵInjectableDeclaration<AbstractNavTreeService<any>>;
783
886
  }
784
- declare class RootComponentProjectionStrategy<T extends Type<any>> extends ProjectionStrategy<T> {
785
- private contextStrategy;
786
- private domStrategy;
787
- constructor(component: T, contextStrategy?: ContextStrategy, domStrategy?: DomStrategy);
788
- injectContent(injector: Injector): ComponentRefOrEmbeddedViewRef<T>;
887
+ declare class RoutesService extends AbstractNavTreeService<ABP.Route> {
888
+ private hasPathOrChild;
889
+ get groupedVisible(): RouteGroup<ABP.Route>[] | undefined;
890
+ get groupedVisible$(): Observable<RouteGroup<ABP.Route>[] | undefined>;
891
+ static ɵfac: i0.ɵɵFactoryDeclaration<RoutesService, never>;
892
+ static ɵprov: i0.ɵɵInjectableDeclaration<RoutesService>;
789
893
  }
790
- declare class TemplateProjectionStrategy<T extends TemplateRef<any>> extends ProjectionStrategy<T> {
791
- private containerStrategy;
792
- private contextStrategy;
793
- constructor(templateRef: T, containerStrategy: ContainerStrategy, contextStrategy?: NoContextStrategy<any>);
794
- injectContent(): ComponentRefOrEmbeddedViewRef<T>;
894
+
895
+ declare class SubscriptionService implements OnDestroy {
896
+ private subscription;
897
+ get isClosed(): boolean;
898
+ addOne<T>(source$: Observable<T>, next?: (value: T) => void, error?: (error: any) => void): Subscription;
899
+ addOne<T>(source$: Observable<T>, observer?: PartialObserver<T>): Subscription;
900
+ closeAll(): void;
901
+ closeOne(subscription: Subscription | undefined | null): void;
902
+ ngOnDestroy(): void;
903
+ removeOne(subscription: Subscription | undefined | null): void;
904
+ reset(): void;
905
+ static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionService, never>;
906
+ static ɵprov: i0.ɵɵInjectableDeclaration<SubscriptionService>;
795
907
  }
796
- declare const PROJECTION_STRATEGY: {
797
- AppendComponentToBody<T extends Type<unknown>>(component: T, context?: Partial<InferredInstanceOf<T>>): RootComponentProjectionStrategy<T>;
798
- AppendComponentToContainer<T extends Type<unknown>>(component: T, containerRef: ViewContainerRef, context?: Partial<InferredInstanceOf<T>>): ComponentProjectionStrategy<T>;
799
- AppendTemplateToContainer<T extends TemplateRef<unknown>>(templateRef: T, containerRef: ViewContainerRef, context?: Partial<InferredContextOf<T>>): TemplateProjectionStrategy<T>;
800
- PrependComponentToContainer<T extends Type<unknown>>(component: T, containerRef: ViewContainerRef, context?: Partial<InferredInstanceOf<T>>): ComponentProjectionStrategy<T>;
801
- PrependTemplateToContainer<T extends TemplateRef<unknown>>(templateRef: T, containerRef: ViewContainerRef, context?: Partial<InferredContextOf<T>>): TemplateProjectionStrategy<T>;
802
- ProjectComponentToContainer<T extends Type<unknown>>(component: T, containerRef: ViewContainerRef, context?: Partial<InferredInstanceOf<T>>): ComponentProjectionStrategy<T>;
803
- ProjectTemplateToContainer<T extends TemplateRef<unknown>>(templateRef: T, containerRef: ViewContainerRef, context?: Partial<InferredContextOf<T>>): TemplateProjectionStrategy<T>;
804
- };
805
- type ComponentRefOrEmbeddedViewRef<T> = T extends Type<infer U> ? ComponentRef<U> : T extends TemplateRef<infer C> ? EmbeddedViewRef<C> : never;
806
908
 
807
- declare class ContentProjectionService {
808
- private injector;
809
- constructor(injector: Injector);
810
- projectContent<T extends Type<any> | TemplateRef<any>>(projectionStrategy: ProjectionStrategy<T>, injector?: Injector): T extends Type<infer U> ? i0.ComponentRef<U> : T extends TemplateRef<infer C> ? i0.EmbeddedViewRef<C> : never;
811
- static ɵfac: i0.ɵɵFactoryDeclaration<ContentProjectionService, never>;
812
- static ɵprov: i0.ɵɵInjectableDeclaration<ContentProjectionService>;
813
- }
814
-
815
- declare abstract class ContentSecurityStrategy {
816
- nonce?: string;
817
- constructor(nonce?: string);
818
- abstract applyCSP(element: HTMLScriptElement | HTMLStyleElement): void;
819
- }
820
- declare class LooseContentSecurityStrategy extends ContentSecurityStrategy {
821
- constructor(nonce: string);
822
- applyCSP(element: HTMLScriptElement | HTMLStyleElement): void;
823
- }
824
- declare class NoContentSecurityStrategy extends ContentSecurityStrategy {
825
- constructor();
826
- applyCSP(_: HTMLScriptElement | HTMLStyleElement): void;
827
- }
828
- declare const CONTENT_SECURITY_STRATEGY: {
829
- Loose(nonce: string): LooseContentSecurityStrategy;
830
- None(): NoContentSecurityStrategy;
831
- };
832
-
833
- type ElementOptions<T extends HTMLScriptElement | HTMLStyleElement = any> = Partial<{
834
- [key in keyof T]: T[key];
835
- }>;
836
- declare abstract class ContentStrategy<T extends HTMLScriptElement | HTMLStyleElement = any> {
837
- content: string;
838
- protected domStrategy: DomStrategy;
839
- protected contentSecurityStrategy: ContentSecurityStrategy;
840
- protected options: ElementOptions<T>;
841
- constructor(content: string, domStrategy?: DomStrategy, contentSecurityStrategy?: ContentSecurityStrategy, options?: ElementOptions<T>);
842
- abstract createElement(): T;
843
- insertElement(): T;
844
- }
845
- declare class StyleContentStrategy extends ContentStrategy<HTMLStyleElement> {
846
- createElement(): HTMLStyleElement;
847
- }
848
- declare class ScriptContentStrategy extends ContentStrategy<HTMLScriptElement> {
849
- createElement(): HTMLScriptElement;
850
- }
851
- declare const CONTENT_STRATEGY: {
852
- AppendScriptToBody(content: string, options?: ElementOptions<HTMLScriptElement>): ScriptContentStrategy;
853
- AppendScriptToHead(content: string, options?: ElementOptions<HTMLScriptElement>): ScriptContentStrategy;
854
- AppendStyleToHead(content: string, options?: ElementOptions<HTMLStyleElement>): StyleContentStrategy;
855
- PrependStyleToHead(content: string, options?: ElementOptions<HTMLStyleElement>): StyleContentStrategy;
856
- };
857
-
858
- declare class DomInsertionService {
859
- private readonly inserted;
860
- insertContent<T extends HTMLScriptElement | HTMLStyleElement>(contentStrategy: ContentStrategy<T>): T | undefined;
861
- removeContent(element: HTMLScriptElement | HTMLStyleElement): void;
862
- has(content: string): boolean;
863
- static ɵfac: i0.ɵɵFactoryDeclaration<DomInsertionService, never>;
864
- static ɵprov: i0.ɵɵInjectableDeclaration<DomInsertionService>;
865
- }
866
-
867
- declare class EnvironmentService {
909
+ declare class ConfigStateService {
910
+ private abpConfigService;
911
+ private abpApplicationLocalizationService;
912
+ private readonly includeLocalizationResources;
913
+ private updateSubject;
868
914
  private readonly store;
915
+ uiCultureFromAuthCodeFlow: string;
916
+ setState(config: ApplicationConfigurationDto): void;
869
917
  get createOnUpdateStream(): <Slice>(selector: (state: {
870
- [x: string]: any;
871
- apis?: {
872
- [x: string]: {
873
- [x: string]: string;
874
- url?: string;
875
- rootNamespace?: string;
918
+ localization?: {
919
+ values?: {
920
+ [x: string]: {
921
+ [x: string]: string;
922
+ };
876
923
  };
877
- default?: {
924
+ resources?: {
925
+ [x: string]: {
926
+ texts?: {
927
+ [x: string]: string;
928
+ };
929
+ baseResources?: string[];
930
+ };
931
+ };
932
+ languages?: _abp_ng_core.LanguageInfo[];
933
+ currentCulture?: {
934
+ displayName?: string;
935
+ englishName?: string;
936
+ threeLetterIsoLanguageName?: string;
937
+ twoLetterIsoLanguageName?: string;
938
+ isRightToLeft?: boolean;
939
+ cultureName?: string;
940
+ name?: string;
941
+ nativeName?: string;
942
+ dateTimeFormat?: {
943
+ calendarAlgorithmType?: string;
944
+ dateTimeFormatLong?: string;
945
+ shortDatePattern?: string;
946
+ fullDateTimePattern?: string;
947
+ dateSeparator?: string;
948
+ shortTimePattern?: string;
949
+ longTimePattern?: string;
950
+ };
951
+ };
952
+ defaultResourceName?: string;
953
+ languagesMap?: {
954
+ [x: string]: _abp_ng_core.NameValue<string>[];
955
+ };
956
+ languageFilesMap?: {
957
+ [x: string]: _abp_ng_core.NameValue<string>[];
958
+ };
959
+ };
960
+ auth?: {
961
+ grantedPolicies?: {
962
+ [x: string]: boolean;
963
+ };
964
+ };
965
+ setting?: {
966
+ values?: {
878
967
  [x: string]: string;
879
- url?: string;
880
- rootNamespace?: string;
881
968
  };
882
969
  };
883
- application?: {
970
+ currentUser?: {
971
+ isAuthenticated?: boolean;
972
+ id?: string;
973
+ tenantId?: string;
974
+ impersonatorUserId?: string;
975
+ impersonatorTenantId?: string;
976
+ impersonatorUserName?: string;
977
+ impersonatorTenantName?: string;
978
+ userName?: string;
884
979
  name?: string;
885
- baseUrl?: string;
886
- logoUrl?: string;
887
- };
888
- hmr?: boolean;
889
- test?: boolean;
890
- localization?: {
891
- defaultResourceName?: string;
980
+ surName?: string;
981
+ email?: string;
982
+ emailVerified?: boolean;
983
+ phoneNumber?: string;
984
+ phoneNumberVerified?: boolean;
985
+ roles?: string[];
892
986
  };
893
- oAuthConfig?: {
894
- clientId?: string;
895
- redirectUri?: string;
896
- postLogoutRedirectUri?: string;
897
- redirectUriAsPostLogoutRedirectUriFallback?: boolean;
898
- loginUrl?: string;
899
- scope?: string;
900
- resource?: string;
901
- rngUrl?: string;
902
- oidc?: boolean;
903
- requestAccessToken?: boolean;
904
- options?: any;
905
- issuer?: string;
906
- logoutUrl?: string;
907
- clearHashAfterLogin?: boolean;
908
- tokenEndpoint?: string;
909
- revocationEndpoint?: string;
910
- customTokenParameters?: string[];
911
- userinfoEndpoint?: string;
912
- responseType?: string;
913
- showDebugInformation?: boolean;
914
- silentRefreshRedirectUri?: string;
915
- silentRefreshMessagePrefix?: string;
916
- silentRefreshShowIFrame?: boolean;
917
- siletRefreshTimeout?: number;
918
- silentRefreshTimeout?: number;
919
- dummyClientSecret?: string;
920
- requireHttps?: boolean | "remoteOnly";
921
- strictDiscoveryDocumentValidation?: boolean;
922
- jwks?: object;
923
- customQueryParams?: object;
924
- silentRefreshIFrameName?: string;
925
- timeoutFactor?: number;
926
- sessionChecksEnabled?: boolean;
927
- sessionCheckIntervall?: number;
928
- sessionCheckIFrameUrl?: string;
929
- sessionCheckIFrameName?: string;
930
- disableAtHashCheck?: boolean;
931
- skipSubjectCheck?: boolean;
932
- useIdTokenHintForSilentRefresh?: boolean;
933
- skipIssuerCheck?: boolean;
934
- fallbackAccessTokenExpirationTimeInSec?: number;
935
- nonceStateSeparator?: string;
936
- useHttpBasicAuth?: boolean;
937
- clockSkewInSec?: number;
938
- decreaseExpirationBySec?: number;
939
- waitForTokenInMsec?: number;
940
- useSilentRefresh?: any;
941
- disablePKCE?: boolean;
942
- preserveRequestedRoute?: boolean;
943
- disableIdTokenTimer?: boolean;
944
- checkOrigin?: boolean;
945
- openUri?: (uri: string) => void;
946
- impersonation?: {
947
- tenantImpersonation?: boolean;
948
- userImpersonation?: boolean;
987
+ features?: {
988
+ values?: {
989
+ [x: string]: string;
949
990
  };
950
991
  };
951
- production?: boolean;
952
- remoteEnv?: {
953
- url?: string;
954
- mergeStrategy?: "deepmerge" | "overwrite" | customMergeFn;
955
- method?: string;
956
- headers?: {
957
- [x: string]: string;
958
- };
959
- };
960
- }) => Slice, filterFn?: (x: Slice) => boolean) => Observable<Slice>;
961
- getEnvironment$(): Observable<Environment>;
962
- getEnvironment(): Environment;
963
- getApiUrl(key: string | undefined): string;
964
- getApiUrl$(key: string): Observable<string>;
965
- setState(environment: Environment): void;
966
- getIssuer(): string;
967
- getIssuer$(): Observable<string>;
968
- getImpersonation(): Impersonation;
969
- getImpersonation$(): Observable<Impersonation>;
970
- static ɵfac: i0.ɵɵFactoryDeclaration<EnvironmentService, never>;
971
- static ɵprov: i0.ɵɵInjectableDeclaration<EnvironmentService>;
972
- }
973
-
974
- declare class HtmlEncodingService {
975
- encode(value: string): string;
976
- decode(value: string): string;
977
- static ɵfac: i0.ɵɵFactoryDeclaration<HtmlEncodingService, never>;
978
- static ɵprov: i0.ɵɵInjectableDeclaration<HtmlEncodingService>;
979
- }
980
-
981
- declare class HttpErrorReporterService {
982
- private _reporter$;
983
- private _errors$;
984
- get reporter$(): rxjs.Observable<HttpErrorResponse>;
985
- get errors$(): rxjs.Observable<HttpErrorResponse[]>;
986
- get errors(): HttpErrorResponse[];
987
- reportError(error: HttpErrorResponse): void;
988
- static ɵfac: i0.ɵɵFactoryDeclaration<HttpErrorReporterService, never>;
989
- static ɵprov: i0.ɵɵInjectableDeclaration<HttpErrorReporterService>;
990
- }
991
-
992
- declare class InternalStore<State> {
993
- private initialState;
994
- private state$;
995
- private update$;
996
- get state(): State;
997
- sliceState: <Slice>(selector: (state: State) => Slice, compareFn?: (s1: Slice, s2: Slice) => boolean) => rxjs.Observable<Slice>;
998
- sliceUpdate: <Slice>(selector: (state: DeepPartial<State>) => Slice, filterFn?: (x: Slice) => boolean) => rxjs.Observable<Slice>;
999
- constructor(initialState: State);
1000
- patch(state: Partial<State>): void;
1001
- deepPatch(state: DeepPartial<State>): void;
1002
- set(state: State): void;
1003
- reset(): void;
1004
- }
1005
-
1006
- interface HttpWaitState {
1007
- requests: HttpRequest<any>[];
1008
- filteredRequests: Array<HttpRequestInfo>;
1009
- }
1010
- interface HttpRequestInfo {
1011
- method: string;
1012
- endpoint: string;
1013
- }
1014
- declare class HttpWaitService {
1015
- protected store: InternalStore<HttpWaitState>;
1016
- private delay;
1017
- private destroy$;
1018
- constructor(injector: Injector);
1019
- getLoading(): boolean;
1020
- getLoading$(): rxjs.Observable<boolean>;
1021
- updateLoading$(): rxjs.Observable<boolean>;
1022
- clearLoading(): void;
1023
- addRequest(request: HttpRequest<any>): void;
1024
- deleteRequest(request: HttpRequest<any>): void;
1025
- addFilter(request: HttpRequestInfo | HttpRequestInfo[]): void;
1026
- removeFilter(request: HttpRequestInfo | HttpRequestInfo[]): void;
1027
- private applyFilter;
1028
- private isSameRequest;
1029
- static ɵfac: i0.ɵɵFactoryDeclaration<HttpWaitService, never>;
1030
- static ɵprov: i0.ɵɵInjectableDeclaration<HttpWaitService>;
1031
- }
1032
-
1033
- declare class CrossOriginStrategy {
1034
- crossorigin: 'anonymous' | 'use-credentials' | null;
1035
- integrity?: string;
1036
- constructor(crossorigin: 'anonymous' | 'use-credentials' | null, integrity?: string);
1037
- setCrossOrigin<T extends HTMLElement>(element: T): void;
1038
- }
1039
- declare class NoCrossOriginStrategy extends CrossOriginStrategy {
1040
- setCrossOrigin(): void;
1041
- }
1042
- declare const CROSS_ORIGIN_STRATEGY: {
1043
- Anonymous(integrity?: string): CrossOriginStrategy;
1044
- UseCredentials(integrity?: string): CrossOriginStrategy;
1045
- None(): NoCrossOriginStrategy;
1046
- };
1047
-
1048
- declare abstract class LoadingStrategy<T extends HTMLScriptElement | HTMLLinkElement = any> {
1049
- path: string;
1050
- protected domStrategy: DomStrategy;
1051
- protected crossOriginStrategy: CrossOriginStrategy;
1052
- element: T;
1053
- constructor(path: string, domStrategy?: DomStrategy, crossOriginStrategy?: CrossOriginStrategy);
1054
- abstract createElement(): T;
1055
- createStream<E extends Event>(): Observable<E>;
1056
- }
1057
- declare class ScriptLoadingStrategy extends LoadingStrategy<HTMLScriptElement> {
1058
- constructor(src: string, domStrategy?: DomStrategy, crossOriginStrategy?: CrossOriginStrategy);
1059
- createElement(): HTMLScriptElement;
1060
- }
1061
- declare class StyleLoadingStrategy extends LoadingStrategy<HTMLLinkElement> {
1062
- constructor(href: string, domStrategy?: DomStrategy, crossOriginStrategy?: CrossOriginStrategy);
1063
- createElement(): HTMLLinkElement;
1064
- }
1065
- declare const LOADING_STRATEGY: {
1066
- AppendScriptToBody(src: string): ScriptLoadingStrategy;
1067
- AppendAnonymousScriptToBody(src: string, integrity?: string): ScriptLoadingStrategy;
1068
- AppendAnonymousScriptToHead(src: string, integrity?: string): ScriptLoadingStrategy;
1069
- AppendAnonymousStyleToHead(src: string, integrity?: string): StyleLoadingStrategy;
1070
- PrependAnonymousScriptToHead(src: string, integrity?: string): ScriptLoadingStrategy;
1071
- PrependAnonymousStyleToHead(src: string, integrity?: string): StyleLoadingStrategy;
1072
- };
1073
-
1074
- interface ResourceWaitState {
1075
- resources: Set<string>;
1076
- }
1077
- declare class ResourceWaitService {
1078
- private store;
1079
- getLoading(): boolean;
1080
- getLoading$(): rxjs.Observable<boolean>;
1081
- updateLoading$(): rxjs.Observable<boolean>;
1082
- clearLoading(): void;
1083
- addResource(resource: string): void;
1084
- deleteResource(resource: string): void;
1085
- static ɵfac: i0.ɵɵFactoryDeclaration<ResourceWaitService, never>;
1086
- static ɵprov: i0.ɵɵInjectableDeclaration<ResourceWaitService>;
1087
- }
1088
-
1089
- declare class LazyLoadService {
1090
- private resourceWaitService;
1091
- readonly loaded: Map<string, HTMLScriptElement | HTMLLinkElement>;
1092
- constructor(resourceWaitService: ResourceWaitService);
1093
- load(strategy: LoadingStrategy, retryTimes?: number, retryDelay?: number): Observable<Event>;
1094
- remove(path: string): boolean;
1095
- static ɵfac: i0.ɵɵFactoryDeclaration<LazyLoadService, never>;
1096
- static ɵprov: i0.ɵɵInjectableDeclaration<LazyLoadService>;
1097
- }
1098
-
1099
- type RequestStatus = 'idle' | 'loading' | 'success' | 'error';
1100
- declare class ListService<QueryParamsType = ABP.PageQueryParams | any> implements OnDestroy {
1101
- private _filter;
1102
- set filter(value: string);
1103
- get filter(): string;
1104
- private _maxResultCount;
1105
- set maxResultCount(value: number);
1106
- get maxResultCount(): number;
1107
- private _page;
1108
- set page(value: number);
1109
- get page(): number;
1110
- private _totalCount;
1111
- set totalCount(value: number);
1112
- get totalCount(): number;
1113
- private _sortKey;
1114
- set sortKey(value: string | number);
1115
- get sortKey(): string | number;
1116
- private _sortOrder;
1117
- set sortOrder(value: string);
1118
- get sortOrder(): string;
1119
- private _query$;
1120
- get query$(): Observable<QueryParamsType>;
1121
- private _isLoading$;
1122
- private _requestStatus;
1123
- private destroy$;
1124
- private delay;
1125
- /**
1126
- * @deprecated Use `requestStatus$` instead.
1127
- */
1128
- get isLoading$(): Observable<boolean>;
1129
- get requestStatus$(): Observable<RequestStatus>;
1130
- get: () => void;
1131
- getWithoutPageReset: () => void;
1132
- constructor(injector: Injector);
1133
- hookToQuery<T>(streamCreatorCallback: QueryStreamCreatorCallback<T, QueryParamsType>): Observable<PagedResultDto<T>>;
1134
- ngOnDestroy(): void;
1135
- private resetPageWhenUnchanged;
1136
- private next;
1137
- static ɵfac: i0.ɵɵFactoryDeclaration<ListService<any>, never>;
1138
- static ɵprov: i0.ɵɵInjectableDeclaration<ListService<any>>;
1139
- }
1140
- type QueryStreamCreatorCallback<T, QueryParamsType = ABP.PageQueryParams> = (query: QueryParamsType) => Observable<PagedResultDto<T>>;
1141
-
1142
- declare class AbpTenantService {
1143
- private restService;
1144
- apiName: string;
1145
- findTenantById: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<FindTenantResultDto>;
1146
- findTenantByName: (name: string, config?: Partial<Rest.Config>) => rxjs.Observable<FindTenantResultDto>;
1147
- constructor(restService: RestService);
1148
- static ɵfac: i0.ɵɵFactoryDeclaration<AbpTenantService, never>;
1149
- static ɵprov: i0.ɵɵInjectableDeclaration<AbpTenantService>;
1150
- }
1151
-
1152
- declare class ExternalHttpClient extends HttpClient {
1153
- #private;
1154
- request(first: string | HttpRequest<any>, url?: string, options?: RequestOptions): Observable<any>;
1155
- static ɵfac: i0.ɵɵFactoryDeclaration<ExternalHttpClient, never>;
1156
- static ɵprov: i0.ɵɵInjectableDeclaration<ExternalHttpClient>;
1157
- }
1158
- type RequestOptions = Parameters<HttpClient['request']>[2];
1159
-
1160
- declare class RestService {
1161
- protected options: ABP.Root;
1162
- protected http: HttpClient;
1163
- protected externalHttp: ExternalHttpClient;
1164
- protected environment: EnvironmentService;
1165
- protected httpErrorReporter: HttpErrorReporterService;
1166
- constructor(options: ABP.Root, http: HttpClient, externalHttp: ExternalHttpClient, environment: EnvironmentService, httpErrorReporter: HttpErrorReporterService);
1167
- protected getApiFromStore(apiName: string | undefined): string;
1168
- handleError(err: any): Observable<any>;
1169
- request<T, R>(request: HttpRequest<T> | Rest.Request<T>, config?: Rest.Config, api?: string): Observable<R>;
1170
- private getHttpClient;
1171
- private getParams;
1172
- private removeDuplicateSlashes;
1173
- static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
1174
- static ɵprov: i0.ɵɵInjectableDeclaration<RestService>;
1175
- }
1176
-
1177
- declare class AbpLocalStorageService implements Storage {
1178
- constructor();
1179
- [name: string]: any;
1180
- get length(): number;
1181
- clear(): void;
1182
- getItem(key: string): string;
1183
- key(index: number): string;
1184
- removeItem(key: string): void;
1185
- setItem(key: string, value: string): void;
1186
- static ɵfac: i0.ɵɵFactoryDeclaration<AbpLocalStorageService, never>;
1187
- static ɵprov: i0.ɵɵInjectableDeclaration<AbpLocalStorageService>;
1188
- }
1189
-
1190
- declare class SessionStateService {
1191
- private configState;
1192
- private localStorageService;
1193
- private readonly store;
1194
- protected readonly document: Document;
1195
- private updateLocalStorage;
1196
- constructor(configState: ConfigStateService, localStorageService: AbpLocalStorageService);
1197
- private init;
1198
- private setInitialLanguage;
1199
- onLanguageChange$(): rxjs.Observable<string>;
1200
- onTenantChange$(): rxjs.Observable<{
1201
- id?: string;
1202
- name?: string;
1203
- isAvailable?: boolean;
1204
- }>;
1205
- getLanguage(): string;
1206
- getLanguage$(): rxjs.Observable<string>;
1207
- getTenant(): CurrentTenantDto;
1208
- getTenant$(): rxjs.Observable<CurrentTenantDto>;
1209
- setTenant(tenant: CurrentTenantDto | null): void;
1210
- setLanguage(language: string): void;
1211
- static ɵfac: i0.ɵɵFactoryDeclaration<SessionStateService, never>;
1212
- static ɵprov: i0.ɵɵInjectableDeclaration<SessionStateService>;
1213
- }
1214
-
1215
- declare class MultiTenancyService {
1216
- private restService;
1217
- private sessionState;
1218
- private tenantService;
1219
- private configStateService;
1220
- tenantKey: string;
1221
- domainTenant: CurrentTenantDto | null;
1222
- isTenantBoxVisible: boolean;
1223
- apiName: string;
1224
- private setTenantToState;
1225
- constructor(restService: RestService, sessionState: SessionStateService, tenantService: AbpTenantService, configStateService: ConfigStateService, tenantKey: string);
1226
- setTenantByName(tenantName: string): rxjs.Observable<FindTenantResultDto>;
1227
- setTenantById(tenantId: string): rxjs.Observable<FindTenantResultDto>;
1228
- static ɵfac: i0.ɵɵFactoryDeclaration<MultiTenancyService, never>;
1229
- static ɵprov: i0.ɵɵInjectableDeclaration<MultiTenancyService>;
1230
- }
1231
-
1232
- declare class PermissionService {
1233
- protected configState: ConfigStateService;
1234
- constructor(configState: ConfigStateService);
1235
- getGrantedPolicy$(key: string): rxjs.Observable<boolean>;
1236
- getGrantedPolicy(key: string | undefined): boolean;
1237
- filterItemsByPolicy<T extends ABP.HasPolicy>(items: Array<T>): T[];
1238
- filterItemsByPolicy$<T extends ABP.HasPolicy>(items: Array<T>): rxjs.Observable<T[]>;
1239
- protected isPolicyGranted(key: string | undefined, grantedPolicies: Record<string, boolean>): boolean;
1240
- protected getStream(): rxjs.Observable<Record<string, boolean>>;
1241
- protected getSnapshot(): Record<string, boolean>;
1242
- protected mapToPolicies(applicationConfiguration: ApplicationConfigurationDto): Record<string, boolean>;
1243
- protected getPolicy(key: string, grantedPolicies: Record<string, boolean>): boolean;
1244
- static ɵfac: i0.ɵɵFactoryDeclaration<PermissionService, never>;
1245
- static ɵprov: i0.ɵɵInjectableDeclaration<PermissionService>;
1246
- }
1247
-
1248
- declare class ReplaceableComponentsService {
1249
- private ngZone;
1250
- private router;
1251
- private readonly store;
1252
- get replaceableComponents$(): Observable<ReplaceableComponents.ReplaceableComponent[]>;
1253
- get replaceableComponents(): ReplaceableComponents.ReplaceableComponent[];
1254
- get onUpdate$(): Observable<ReplaceableComponents.ReplaceableComponent[]>;
1255
- constructor(ngZone: NgZone, router: Router);
1256
- add(replaceableComponent: ReplaceableComponents.ReplaceableComponent, reload?: boolean): void;
1257
- get(replaceableComponentKey: string): ReplaceableComponents.ReplaceableComponent | undefined;
1258
- get$(replaceableComponentKey: string): Observable<ReplaceableComponents.ReplaceableComponent | undefined>;
1259
- static ɵfac: i0.ɵɵFactoryDeclaration<ReplaceableComponentsService, never>;
1260
- static ɵprov: i0.ɵɵInjectableDeclaration<ReplaceableComponentsService>;
1261
- }
1262
-
1263
- declare const NavigationEvent: {
1264
- Cancel: typeof NavigationCancel;
1265
- End: typeof NavigationEnd;
1266
- Error: typeof NavigationError;
1267
- Start: typeof NavigationStart;
1268
- };
1269
- declare class RouterEvents {
1270
- #private;
1271
- protected readonly router: Router;
1272
- previousNavigation: i0.Signal<string>;
1273
- currentNavigation: i0.Signal<string>;
1274
- constructor();
1275
- protected listenToNavigation(): void;
1276
- getEvents<T extends RouterEventConstructors>(...eventTypes: T): Observable<Event$1>;
1277
- getNavigationEvents<T extends NavigationEventKeys>(...navigationEventKeys: T): Observable<T extends (infer Key)[] ? Key extends "Cancel" | "End" | "Error" | "Start" ? InstanceType<{
1278
- Cancel: typeof NavigationCancel;
1279
- End: typeof NavigationEnd;
1280
- Error: typeof NavigationError;
1281
- Start: typeof NavigationStart;
1282
- }[Key]> : never : never>;
1283
- getAllEvents(): Observable<Event$1>;
1284
- getAllNavigationEvents(): Observable<NavigationCancel | NavigationEnd | NavigationError | NavigationStart>;
1285
- static ɵfac: i0.ɵɵFactoryDeclaration<RouterEvents, never>;
1286
- static ɵprov: i0.ɵɵInjectableDeclaration<RouterEvents>;
1287
- }
1288
- type RouterEventConstructors = [Type<RouterEvent>, ...Type<RouterEvent>[]];
1289
- type NavigationEventKeys = [NavigationEventKey, ...NavigationEventKey[]];
1290
- type NavigationEventType = typeof NavigationEvent;
1291
- type NavigationEventKey = keyof NavigationEventType;
1292
-
1293
- interface RouterWaitState {
1294
- loading: boolean;
1295
- }
1296
- declare class RouterWaitService {
1297
- private routerEvents;
1298
- private store;
1299
- private destroy$;
1300
- private delay;
1301
- constructor(routerEvents: RouterEvents, injector: Injector);
1302
- private updateLoadingStatusOnNavigationEvents;
1303
- getLoading(): boolean;
1304
- getLoading$(): rxjs.Observable<boolean>;
1305
- updateLoading$(): rxjs.Observable<boolean>;
1306
- setLoading(loading: boolean): void;
1307
- static ɵfac: i0.ɵɵFactoryDeclaration<RouterWaitService, never>;
1308
- static ɵprov: i0.ɵɵInjectableDeclaration<RouterWaitService>;
1309
- }
1310
-
1311
- declare class BaseTreeNode<T extends object> {
1312
- children: TreeNode<T>[];
1313
- isLeaf: boolean;
1314
- parent?: TreeNode<T>;
1315
- constructor(props: T);
1316
- static create<T extends object>(props: T): TreeNode<T>;
1317
- }
1318
- declare function createTreeFromList<T extends object, R>(list: T[], keySelector: (item: T) => NodeKey, parentKeySelector: typeof keySelector, valueMapper: (item: T) => R): R[];
1319
- declare function createMapFromList<T extends object, R>(list: T[], keySelector: (item: T) => NodeKey, valueMapper: (item: T) => R): Map<NodeKey, R>;
1320
- declare function createTreeNodeFilterCreator<T extends object>(key: keyof T, mapperFn: (value: any) => string): (search: string) => (nodes: TreeNode<T>[], matches?: TreeNode<T>[]) => TreeNode<T>[];
1321
- declare function createGroupMap<T extends {
1322
- group?: string;
1323
- }>(list: TreeNode<T>[], othersGroupKey: string): Map<string, TreeNode<T>[]>;
1324
- type TreeNode<T extends object> = {
1325
- [K in keyof T]: T[K];
1326
- } & {
1327
- children: TreeNode<T>[];
1328
- isLeaf: boolean;
1329
- parent?: TreeNode<T>;
1330
- };
1331
- type RouteGroup<T extends object> = {
1332
- readonly group: string;
1333
- readonly items: TreeNode<T>[];
1334
- };
1335
- type NodeKey = number | string | symbol | undefined | null;
1336
- type NodeValue<T extends object, F extends (...args: any) => any> = F extends undefined ? TreeNode<T> : ReturnType<F>;
1337
-
1338
- declare abstract class AbstractTreeService<T extends {
1339
- [key: string | number | symbol]: any;
1340
- }> {
1341
- abstract id: string;
1342
- abstract parentId: string;
1343
- abstract hide: (item: T) => boolean;
1344
- abstract sort: (a: T, b: T) => number;
1345
- private _flat$;
1346
- private _tree$;
1347
- private _visible$;
1348
- protected othersGroup: string;
1349
- protected shouldSingularizeRoutes: boolean;
1350
- get flat(): T[];
1351
- get flat$(): Observable<T[]>;
1352
- get tree(): TreeNode<T>[];
1353
- get tree$(): Observable<TreeNode<T>[]>;
1354
- get visible(): TreeNode<T>[];
1355
- get visible$(): Observable<TreeNode<T>[]>;
1356
- private filterWith;
1357
- private findItemsToRemove;
1358
- private publish;
1359
- protected createTree(items: T[]): TreeNode<T>[];
1360
- protected createGroupedTree(list: TreeNode<T>[]): RouteGroup<T>[] | undefined;
1361
- add(items: T[]): T[];
1362
- find(predicate: (item: TreeNode<T>) => boolean, tree?: TreeNode<T>[]): TreeNode<T> | null;
1363
- patch(identifier: string, props: Partial<T>): T[] | false;
1364
- refresh(): T[];
1365
- remove(identifiers: string[]): T[];
1366
- removeByParam(params: Partial<T>): T[] | null;
1367
- search(params: Partial<T>, tree?: TreeNode<T>[]): TreeNode<T> | null;
1368
- setSingularizeStatus(singularize?: boolean): void;
1369
- }
1370
- declare abstract class AbstractNavTreeService<T extends ABP.Nav> extends AbstractTreeService<T> implements OnDestroy {
1371
- protected injector: Injector;
1372
- private subscription;
1373
- private permissionService;
1374
- private compareFunc;
1375
- readonly id = "name";
1376
- readonly parentId = "parentName";
1377
- readonly hide: (item: T) => boolean;
1378
- readonly sort: (a: T, b: T) => any;
1379
- constructor(injector: Injector);
1380
- protected isGranted({ requiredPolicy }: T): boolean;
1381
- hasChildren(identifier: string): boolean;
1382
- hasInvisibleChild(identifier: string): boolean;
1383
- ngOnDestroy(): void;
1384
- static ɵfac: i0.ɵɵFactoryDeclaration<AbstractNavTreeService<any>, never>;
1385
- static ɵprov: i0.ɵɵInjectableDeclaration<AbstractNavTreeService<any>>;
1386
- }
1387
- declare class RoutesService extends AbstractNavTreeService<ABP.Route> {
1388
- private hasPathOrChild;
1389
- get groupedVisible(): RouteGroup<ABP.Route>[] | undefined;
1390
- get groupedVisible$(): Observable<RouteGroup<ABP.Route>[] | undefined>;
1391
- static ɵfac: i0.ɵɵFactoryDeclaration<RoutesService, never>;
1392
- static ɵprov: i0.ɵɵInjectableDeclaration<RoutesService>;
1393
- }
1394
-
1395
- declare class SubscriptionService implements OnDestroy {
1396
- private subscription;
1397
- get isClosed(): boolean;
1398
- addOne<T>(source$: Observable<T>, next?: (value: T) => void, error?: (error: any) => void): Subscription;
1399
- addOne<T>(source$: Observable<T>, observer?: PartialObserver<T>): Subscription;
1400
- closeAll(): void;
1401
- closeOne(subscription: Subscription | undefined | null): void;
1402
- ngOnDestroy(): void;
1403
- removeOne(subscription: Subscription | undefined | null): void;
1404
- reset(): void;
1405
- static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionService, never>;
1406
- static ɵprov: i0.ɵɵInjectableDeclaration<SubscriptionService>;
1407
- }
1408
-
1409
- declare const trackBy: <T = any>(key: keyof T) => TrackByFunction<T>;
1410
- declare const trackByDeep: <T = any>(...keys: T extends object ? O$1.Paths<T> : never) => TrackByFunction<T>;
1411
- declare class TrackByService<ItemType = any> {
1412
- by: <T = any>(key: keyof T) => TrackByFunction<T>;
1413
- byDeep: <T = any>(...keys: T extends object ? O$1.Paths<T> : never) => TrackByFunction<T>;
1414
- static ɵfac: i0.ɵɵFactoryDeclaration<TrackByService<any>, never>;
1415
- static ɵprov: i0.ɵɵInjectableDeclaration<TrackByService<any>>;
1416
- }
1417
-
1418
- declare class AbpWindowService {
1419
- readonly document: Document;
1420
- readonly window: Window & typeof globalThis;
1421
- readonly navigator: Navigator;
1422
- copyToClipboard(text: string): Promise<void>;
1423
- open(url?: string | URL, target?: string, features?: string): Window;
1424
- reloadPage(): void;
1425
- downloadBlob(blob: Blob, fileName: string): void;
1426
- static ɵfac: i0.ɵɵFactoryDeclaration<AbpWindowService, never>;
1427
- static ɵprov: i0.ɵɵInjectableDeclaration<AbpWindowService>;
1428
- }
1429
-
1430
- declare class InternetConnectionService {
1431
- readonly document: Document;
1432
- readonly window: Window & typeof globalThis;
1433
- readonly navigator: Navigator;
1434
- private status$;
1435
- private status;
1436
- networkStatus: i0.Signal<boolean>;
1437
- constructor();
1438
- setStatus(val: boolean): void;
1439
- get networkStatus$(): rxjs.Observable<boolean>;
1440
- static ɵfac: i0.ɵɵFactoryDeclaration<InternetConnectionService, never>;
1441
- static ɵprov: i0.ɵɵInjectableDeclaration<InternetConnectionService>;
1442
- }
1443
-
1444
- declare class LocalStorageListenerService {
1445
- protected readonly window: Window & typeof globalThis;
1446
- constructor();
1447
- static ɵfac: i0.ɵɵFactoryDeclaration<LocalStorageListenerService, never>;
1448
- static ɵprov: i0.ɵɵInjectableDeclaration<LocalStorageListenerService>;
1449
- }
1450
-
1451
- declare class AbpTitleStrategy extends TitleStrategy {
1452
- protected readonly title: Title;
1453
- protected readonly localizationService: LocalizationService;
1454
- protected readonly disableProjectName: boolean;
1455
- protected routerState: RouterStateSnapshot;
1456
- langugageChange: i0.Signal<string>;
1457
- constructor();
1458
- updateTitle(routerState: RouterStateSnapshot): void;
1459
- static ɵfac: i0.ɵɵFactoryDeclaration<AbpTitleStrategy, never>;
1460
- static ɵprov: i0.ɵɵInjectableDeclaration<AbpTitleStrategy>;
1461
- }
1462
-
1463
- declare class TimezoneService {
1464
- protected readonly configState: ConfigStateService;
1465
- protected readonly document: Document;
1466
- private readonly cookieKey;
1467
- private timeZoneNameFromSettings;
1468
- isUtcClockEnabled: boolean | undefined;
1469
- constructor();
1470
- /**
1471
- * Returns the effective timezone to be used across the application.
1472
- *
1473
- * This value is determined based on the clock kind setting in the configuration:
1474
- * - If clock kind is not equal to Utc, the browser's local timezone is returned.
1475
- * - If clock kind is equal to Utc, the configured timezone (`timeZoneNameFromSettings`) is returned if available;
1476
- * otherwise, the browser's timezone is used as a fallback.
1477
- *
1478
- * @returns The IANA timezone name (e.g., 'Europe/Istanbul', 'America/New_York').
1479
- */
1480
- get timezone(): string;
1481
- /**
1482
- * Retrieves the browser's local timezone based on the user's system settings.
1483
- *
1484
- * @returns The IANA timezone name (e.g., 'Europe/Istanbul', 'America/New_York').
1485
- */
1486
- getBrowserTimezone(): string;
1487
- /**
1488
- * Sets the application's timezone in a cookie to persist the user's selected timezone.
1489
- *
1490
- * This method sets the cookie only if the clock kind setting is set to UTC.
1491
- * The cookie is stored using the key defined by `this.cookieKey` and applied to the root path (`/`).
1492
- *
1493
- * @param timezone - The IANA timezone name to be stored (e.g., 'Europe/Istanbul').
1494
- */
1495
- setTimezone(timezone: string): void;
1496
- static ɵfac: i0.ɵɵFactoryDeclaration<TimezoneService, never>;
1497
- static ɵprov: i0.ɵɵInjectableDeclaration<TimezoneService>;
1498
- }
1499
-
1500
- declare class TimeService {
1501
- private locale;
1502
- /**
1503
- * Returns the current date and time in the specified timezone.
1504
- *
1505
- * @param zone - An IANA timezone name (e.g., 'Europe/Istanbul', 'UTC'); defaults to the system's local timezone.
1506
- * @returns A Luxon DateTime instance representing the current time in the given timezone.
1507
- */
1508
- now(zone?: string): DateTime;
1509
- /**
1510
- * Converts the input date to the specified timezone, applying any timezone and daylight saving time (DST) adjustments.
1511
- *
1512
- * This method:
1513
- * 1. Parses the input value into a Luxon DateTime object.
1514
- * 2. Applies the specified IANA timezone, including any DST shifts based on the given date.
1515
- *
1516
- * @param value - The ISO string or Date object to convert.
1517
- * @param zone - An IANA timezone name (e.g., 'America/New_York').
1518
- * @returns A Luxon DateTime instance adjusted to the specified timezone and DST rules.
1519
- */
1520
- toZone(value: string | Date, zone: string): DateTime;
1521
- /**
1522
- * Formats the input date by applying timezone and daylight saving time (DST) adjustments.
1523
- *
1524
- * This method:
1525
- * 1. Converts the input date to the specified timezone.
1526
- * 2. Formats the result using the given format and locale, reflecting any timezone or DST shifts.
1527
- *
1528
- * @param value - The ISO string or Date object to format.
1529
- * @param format - The format string (default: 'ff').
1530
- * @param zone - Optional IANA timezone name (e.g., 'America/New_York'); defaults to the system's local timezone.
1531
- * @returns A formatted date string adjusted for the given timezone and DST rules.
1532
- */
1533
- format(value: string | Date, format?: string, zone?: string): string;
1534
- /**
1535
- * Formats a date using the standard time offset (ignoring daylight saving time) for the specified timezone.
1536
- *
1537
- * This method:
1538
- * 1. Converts the input date to UTC.
1539
- * 2. Calculates the standard UTC offset for the given timezone (based on January 1st to avoid DST).
1540
- * 3. Applies the standard offset manually to the UTC time.
1541
- * 4. Formats the result using the specified format and locale, without applying additional timezone shifts.
1542
- *
1543
- * @param value - The ISO string or Date object to format.
1544
- * @param format - The Luxon format string (default: 'ff').
1545
- * @param zone - Optional IANA timezone name (e.g., 'America/New_York'); if omitted, system local timezone is used.
1546
- * @returns A formatted date string adjusted by standard time (non-DST).
1547
- */
1548
- formatDateWithStandardOffset(value: string | Date, format?: string, zone?: string): string;
1549
- /**
1550
- * Formats the input date using its original clock time, without converting based on timezone or DST
1551
- *
1552
- * This method:
1553
- * 1. Converts the input date to ISO string.
1554
- * 2. Calculates the date time in UTC, keeping the local time.
1555
- * 3. Formats the result using the specified format and locale, without shifting timezones.
1556
- *
1557
- * @param value - The ISO string or Date object to format.
1558
- * @param format - The format string (default: 'ff').
1559
- * @returns A formatted date string without applying timezone.
1560
- */
1561
- formatWithoutTimeZone(value: string | Date, format?: string): string;
1562
- static ɵfac: i0.ɵɵFactoryDeclaration<TimeService, never>;
1563
- static ɵprov: i0.ɵɵInjectableDeclaration<TimeService>;
1564
- }
1565
-
1566
- declare class AbpApplicationConfigurationService {
1567
- private restService;
1568
- apiName: string;
1569
- get: (options: ApplicationConfigurationRequestOptions, config?: Partial<Rest.Config>) => rxjs.Observable<ApplicationConfigurationDto>;
1570
- constructor(restService: RestService);
1571
- static ɵfac: i0.ɵɵFactoryDeclaration<AbpApplicationConfigurationService, never>;
1572
- static ɵprov: i0.ɵɵInjectableDeclaration<AbpApplicationConfigurationService>;
1573
- }
1574
-
1575
- declare class AbpApplicationLocalizationService {
1576
- private restService;
1577
- apiName: string;
1578
- get: (input: ApplicationLocalizationRequestDto, config?: Partial<Rest.Config>) => rxjs.Observable<ApplicationLocalizationDto>;
1579
- constructor(restService: RestService);
1580
- static ɵfac: i0.ɵɵFactoryDeclaration<AbpApplicationLocalizationService, never>;
1581
- static ɵprov: i0.ɵɵInjectableDeclaration<AbpApplicationLocalizationService>;
1582
- }
1583
-
1584
- declare class ConfigStateService {
1585
- private abpConfigService;
1586
- private abpApplicationLocalizationService;
1587
- private readonly includeLocalizationResources;
1588
- private updateSubject;
1589
- private readonly store;
1590
- uiCultureFromAuthCodeFlow: string;
1591
- setState(config: ApplicationConfigurationDto): void;
1592
- get createOnUpdateStream(): <Slice>(selector: (state: {
1593
- localization?: {
1594
- values?: {
1595
- [x: string]: {
1596
- [x: string]: string;
1597
- };
1598
- };
1599
- resources?: {
1600
- [x: string]: {
1601
- texts?: {
1602
- [x: string]: string;
1603
- };
1604
- baseResources?: string[];
1605
- };
1606
- };
1607
- languages?: _abp_ng_core.LanguageInfo[];
1608
- currentCulture?: {
1609
- displayName?: string;
1610
- englishName?: string;
1611
- threeLetterIsoLanguageName?: string;
1612
- twoLetterIsoLanguageName?: string;
1613
- isRightToLeft?: boolean;
1614
- cultureName?: string;
1615
- name?: string;
1616
- nativeName?: string;
1617
- dateTimeFormat?: {
1618
- calendarAlgorithmType?: string;
1619
- dateTimeFormatLong?: string;
1620
- shortDatePattern?: string;
1621
- fullDateTimePattern?: string;
1622
- dateSeparator?: string;
1623
- shortTimePattern?: string;
1624
- longTimePattern?: string;
1625
- };
1626
- };
1627
- defaultResourceName?: string;
1628
- languagesMap?: {
1629
- [x: string]: _abp_ng_core.NameValue<string>[];
1630
- };
1631
- languageFilesMap?: {
1632
- [x: string]: _abp_ng_core.NameValue<string>[];
1633
- };
1634
- };
1635
- auth?: {
1636
- grantedPolicies?: {
1637
- [x: string]: boolean;
1638
- };
1639
- };
1640
- setting?: {
1641
- values?: {
1642
- [x: string]: string;
1643
- };
1644
- };
1645
- currentUser?: {
1646
- isAuthenticated?: boolean;
1647
- id?: string;
1648
- tenantId?: string;
1649
- impersonatorUserId?: string;
1650
- impersonatorTenantId?: string;
1651
- impersonatorUserName?: string;
1652
- impersonatorTenantName?: string;
1653
- userName?: string;
1654
- name?: string;
1655
- surName?: string;
1656
- email?: string;
1657
- emailVerified?: boolean;
1658
- phoneNumber?: string;
1659
- phoneNumberVerified?: boolean;
1660
- roles?: string[];
1661
- };
1662
- features?: {
1663
- values?: {
1664
- [x: string]: string;
1665
- };
1666
- };
1667
- globalFeatures?: {
1668
- enabledFeatures?: string[];
1669
- };
1670
- multiTenancy?: {
1671
- isEnabled?: boolean;
1672
- };
1673
- currentTenant?: {
1674
- id?: string;
1675
- name?: string;
1676
- isAvailable?: boolean;
1677
- };
1678
- timing?: {
1679
- timeZone?: {
1680
- iana?: {
1681
- timeZoneName?: string;
1682
- };
1683
- windows?: {
1684
- timeZoneId?: string;
1685
- };
992
+ globalFeatures?: {
993
+ enabledFeatures?: string[];
994
+ };
995
+ multiTenancy?: {
996
+ isEnabled?: boolean;
997
+ };
998
+ currentTenant?: {
999
+ id?: string;
1000
+ name?: string;
1001
+ isAvailable?: boolean;
1002
+ };
1003
+ timing?: {
1004
+ timeZone?: {
1005
+ iana?: {
1006
+ timeZoneName?: string;
1007
+ };
1008
+ windows?: {
1009
+ timeZoneId?: string;
1010
+ };
1686
1011
  };
1687
1012
  };
1688
1013
  clock?: {
@@ -1758,7 +1083,7 @@ declare class ConfigStateService {
1758
1083
  [x: string]: object;
1759
1084
  };
1760
1085
  }) => Slice, filterFn?: (x: Slice) => boolean) => Observable<Slice>;
1761
- constructor(abpConfigService: AbpApplicationConfigurationService, abpApplicationLocalizationService: AbpApplicationLocalizationService, includeLocalizationResources: boolean | null);
1086
+ constructor();
1762
1087
  private initUpdateStream;
1763
1088
  private getLocalizationAndCombineWithAppState;
1764
1089
  private getlocalizationResource;
@@ -1956,58 +1281,735 @@ declare class ConfigStateService {
1956
1281
  private isGlobalFeatureEnabled;
1957
1282
  getGlobalFeatureIsEnabled(key: string): boolean;
1958
1283
  getGlobalFeatureIsEnabled$(key: string): Observable<boolean>;
1959
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfigStateService, [null, null, { optional: true; }]>;
1284
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfigStateService, never>;
1960
1285
  static ɵprov: i0.ɵɵInjectableDeclaration<ConfigStateService>;
1961
1286
  }
1962
1287
 
1963
- declare class LocalizationService {
1964
- private sessionState;
1965
- private injector;
1966
- private configState;
1967
- private latestLang;
1968
- private _languageChange$;
1969
- private uiLocalizations$;
1970
- private localizations$;
1288
+ declare abstract class ContextStrategy<T = any> {
1289
+ context: Partial<ContextType<T>>;
1290
+ constructor(context: Partial<ContextType<T>>);
1291
+ setContext(componentRef?: ComponentRef<InferredInstanceOf<T>>): Partial<ContextType<T>>;
1292
+ }
1293
+ declare class NoContextStrategy<T extends Type<any> | TemplateRef<any> = any> extends ContextStrategy<T> {
1294
+ constructor();
1295
+ }
1296
+ declare class ComponentContextStrategy<T extends Type<any> = any> extends ContextStrategy<T> {
1297
+ setContext(componentRef: ComponentRef<InferredInstanceOf<T>>): Partial<InferredInstanceOf<T>>;
1298
+ }
1299
+ declare class TemplateContextStrategy<T extends TemplateRef<any> = any> extends ContextStrategy<T> {
1300
+ setContext(): Partial<InferredContextOf<T>>;
1301
+ }
1302
+ declare const CONTEXT_STRATEGY: {
1303
+ None<T extends Type<any> | TemplateRef<any> = any>(): NoContextStrategy<T>;
1304
+ Component<T extends Type<any> = any>(context: Partial<InferredInstanceOf<T>>): ComponentContextStrategy<T>;
1305
+ Template<T extends TemplateRef<any> = any>(context: Partial<InferredContextOf<T>>): TemplateContextStrategy<T>;
1306
+ };
1307
+ type ContextType<T> = T extends Type<infer U> | TemplateRef<infer U> ? U : never;
1308
+
1309
+ declare abstract class ContainerStrategy {
1310
+ containerRef: ViewContainerRef;
1311
+ constructor(containerRef: ViewContainerRef);
1312
+ abstract getIndex(): number;
1313
+ prepare(): void;
1314
+ }
1315
+ declare class ClearContainerStrategy extends ContainerStrategy {
1316
+ getIndex(): number;
1317
+ prepare(): void;
1318
+ }
1319
+ declare class InsertIntoContainerStrategy extends ContainerStrategy {
1320
+ private index;
1321
+ constructor(containerRef: ViewContainerRef, index: number);
1322
+ getIndex(): number;
1323
+ }
1324
+ declare const CONTAINER_STRATEGY: {
1325
+ Clear(containerRef: ViewContainerRef): ClearContainerStrategy;
1326
+ Append(containerRef: ViewContainerRef): InsertIntoContainerStrategy;
1327
+ Prepend(containerRef: ViewContainerRef): InsertIntoContainerStrategy;
1328
+ Insert(containerRef: ViewContainerRef, index: number): InsertIntoContainerStrategy;
1329
+ };
1330
+
1331
+ declare class DomStrategy {
1332
+ private getTarget;
1333
+ position: InsertPosition;
1334
+ constructor(getTarget: () => HTMLElement, position?: InsertPosition);
1335
+ insertElement<T extends HTMLElement>(element: T): void;
1336
+ }
1337
+ declare const DOM_STRATEGY: {
1338
+ AfterElement(element: HTMLElement): DomStrategy;
1339
+ AppendToBody(): DomStrategy;
1340
+ AppendToHead(): DomStrategy;
1341
+ BeforeElement(element: HTMLElement): DomStrategy;
1342
+ PrependToHead(): DomStrategy;
1343
+ };
1344
+
1345
+ declare abstract class ProjectionStrategy<T = any> {
1346
+ content: T;
1347
+ constructor(content: T);
1348
+ abstract injectContent(injector: Injector): ComponentRefOrEmbeddedViewRef<T>;
1349
+ }
1350
+ declare class ComponentProjectionStrategy<T extends Type<any>> extends ProjectionStrategy<T> {
1351
+ private containerStrategy;
1352
+ private contextStrategy;
1353
+ constructor(component: T, containerStrategy: ContainerStrategy, contextStrategy?: ContextStrategy);
1354
+ injectContent(injector: Injector): ComponentRefOrEmbeddedViewRef<T>;
1355
+ }
1356
+ declare class RootComponentProjectionStrategy<T extends Type<any>> extends ProjectionStrategy<T> {
1357
+ private contextStrategy;
1358
+ private domStrategy;
1359
+ constructor(component: T, contextStrategy?: ContextStrategy, domStrategy?: DomStrategy);
1360
+ injectContent(injector: Injector): ComponentRefOrEmbeddedViewRef<T>;
1361
+ }
1362
+ declare class TemplateProjectionStrategy<T extends TemplateRef<any>> extends ProjectionStrategy<T> {
1363
+ private containerStrategy;
1364
+ private contextStrategy;
1365
+ constructor(templateRef: T, containerStrategy: ContainerStrategy, contextStrategy?: NoContextStrategy<any>);
1366
+ injectContent(): ComponentRefOrEmbeddedViewRef<T>;
1367
+ }
1368
+ declare const PROJECTION_STRATEGY: {
1369
+ AppendComponentToBody<T extends Type<unknown>>(component: T, context?: Partial<InferredInstanceOf<T>>): RootComponentProjectionStrategy<T>;
1370
+ AppendComponentToContainer<T extends Type<unknown>>(component: T, containerRef: ViewContainerRef, context?: Partial<InferredInstanceOf<T>>): ComponentProjectionStrategy<T>;
1371
+ AppendTemplateToContainer<T extends TemplateRef<unknown>>(templateRef: T, containerRef: ViewContainerRef, context?: Partial<InferredContextOf<T>>): TemplateProjectionStrategy<T>;
1372
+ PrependComponentToContainer<T extends Type<unknown>>(component: T, containerRef: ViewContainerRef, context?: Partial<InferredInstanceOf<T>>): ComponentProjectionStrategy<T>;
1373
+ PrependTemplateToContainer<T extends TemplateRef<unknown>>(templateRef: T, containerRef: ViewContainerRef, context?: Partial<InferredContextOf<T>>): TemplateProjectionStrategy<T>;
1374
+ ProjectComponentToContainer<T extends Type<unknown>>(component: T, containerRef: ViewContainerRef, context?: Partial<InferredInstanceOf<T>>): ComponentProjectionStrategy<T>;
1375
+ ProjectTemplateToContainer<T extends TemplateRef<unknown>>(templateRef: T, containerRef: ViewContainerRef, context?: Partial<InferredContextOf<T>>): TemplateProjectionStrategy<T>;
1376
+ };
1377
+ type ComponentRefOrEmbeddedViewRef<T> = T extends Type<infer U> ? ComponentRef<U> : T extends TemplateRef<infer C> ? EmbeddedViewRef<C> : never;
1378
+
1379
+ declare class ContentProjectionService {
1380
+ private injector;
1381
+ projectContent<T extends Type<any> | TemplateRef<any>>(projectionStrategy: ProjectionStrategy<T>, injector?: Injector): T extends Type<infer U> ? i0.ComponentRef<U> : T extends TemplateRef<infer C> ? i0.EmbeddedViewRef<C> : never;
1382
+ static ɵfac: i0.ɵɵFactoryDeclaration<ContentProjectionService, never>;
1383
+ static ɵprov: i0.ɵɵInjectableDeclaration<ContentProjectionService>;
1384
+ }
1385
+
1386
+ declare abstract class ContentSecurityStrategy {
1387
+ nonce?: string;
1388
+ constructor(nonce?: string);
1389
+ abstract applyCSP(element: HTMLScriptElement | HTMLStyleElement): void;
1390
+ }
1391
+ declare class LooseContentSecurityStrategy extends ContentSecurityStrategy {
1392
+ constructor(nonce: string);
1393
+ applyCSP(element: HTMLScriptElement | HTMLStyleElement): void;
1394
+ }
1395
+ declare class NoContentSecurityStrategy extends ContentSecurityStrategy {
1396
+ constructor();
1397
+ applyCSP(_: HTMLScriptElement | HTMLStyleElement): void;
1398
+ }
1399
+ declare const CONTENT_SECURITY_STRATEGY: {
1400
+ Loose(nonce: string): LooseContentSecurityStrategy;
1401
+ None(): NoContentSecurityStrategy;
1402
+ };
1403
+
1404
+ type ElementOptions<T extends HTMLScriptElement | HTMLStyleElement = any> = Partial<{
1405
+ [key in keyof T]: T[key];
1406
+ }>;
1407
+ declare abstract class ContentStrategy<T extends HTMLScriptElement | HTMLStyleElement = any> {
1408
+ content: string;
1409
+ protected domStrategy: DomStrategy;
1410
+ protected contentSecurityStrategy: ContentSecurityStrategy;
1411
+ protected options: ElementOptions<T>;
1412
+ constructor(content: string, domStrategy?: DomStrategy, contentSecurityStrategy?: ContentSecurityStrategy, options?: ElementOptions<T>);
1413
+ abstract createElement(): T;
1414
+ insertElement(): T;
1415
+ }
1416
+ declare class StyleContentStrategy extends ContentStrategy<HTMLStyleElement> {
1417
+ createElement(): HTMLStyleElement;
1418
+ }
1419
+ declare class ScriptContentStrategy extends ContentStrategy<HTMLScriptElement> {
1420
+ createElement(): HTMLScriptElement;
1421
+ }
1422
+ declare const CONTENT_STRATEGY: {
1423
+ AppendScriptToBody(content: string, options?: ElementOptions<HTMLScriptElement>): ScriptContentStrategy;
1424
+ AppendScriptToHead(content: string, options?: ElementOptions<HTMLScriptElement>): ScriptContentStrategy;
1425
+ AppendStyleToHead(content: string, options?: ElementOptions<HTMLStyleElement>): StyleContentStrategy;
1426
+ PrependStyleToHead(content: string, options?: ElementOptions<HTMLStyleElement>): StyleContentStrategy;
1427
+ };
1428
+
1429
+ declare class DomInsertionService {
1430
+ private readonly inserted;
1431
+ insertContent<T extends HTMLScriptElement | HTMLStyleElement>(contentStrategy: ContentStrategy<T>): T | undefined;
1432
+ removeContent(element: HTMLScriptElement | HTMLStyleElement): void;
1433
+ has(content: string): boolean;
1434
+ static ɵfac: i0.ɵɵFactoryDeclaration<DomInsertionService, never>;
1435
+ static ɵprov: i0.ɵɵInjectableDeclaration<DomInsertionService>;
1436
+ }
1437
+
1438
+ declare class EnvironmentService {
1439
+ private readonly store;
1440
+ get createOnUpdateStream(): <Slice>(selector: (state: {
1441
+ [x: string]: any;
1442
+ apis?: {
1443
+ [x: string]: {
1444
+ [x: string]: string;
1445
+ url?: string;
1446
+ rootNamespace?: string;
1447
+ };
1448
+ default?: {
1449
+ [x: string]: string;
1450
+ url?: string;
1451
+ rootNamespace?: string;
1452
+ };
1453
+ };
1454
+ application?: {
1455
+ name?: string;
1456
+ baseUrl?: string;
1457
+ logoUrl?: string;
1458
+ };
1459
+ hmr?: boolean;
1460
+ test?: boolean;
1461
+ localization?: {
1462
+ defaultResourceName?: string;
1463
+ };
1464
+ oAuthConfig?: {
1465
+ clientId?: string;
1466
+ redirectUri?: string;
1467
+ postLogoutRedirectUri?: string;
1468
+ redirectUriAsPostLogoutRedirectUriFallback?: boolean;
1469
+ loginUrl?: string;
1470
+ scope?: string;
1471
+ resource?: string;
1472
+ rngUrl?: string;
1473
+ oidc?: boolean;
1474
+ requestAccessToken?: boolean;
1475
+ options?: any;
1476
+ issuer?: string;
1477
+ logoutUrl?: string;
1478
+ clearHashAfterLogin?: boolean;
1479
+ tokenEndpoint?: string;
1480
+ revocationEndpoint?: string;
1481
+ customTokenParameters?: string[];
1482
+ userinfoEndpoint?: string;
1483
+ responseType?: string;
1484
+ showDebugInformation?: boolean;
1485
+ silentRefreshRedirectUri?: string;
1486
+ silentRefreshMessagePrefix?: string;
1487
+ silentRefreshShowIFrame?: boolean;
1488
+ siletRefreshTimeout?: number;
1489
+ silentRefreshTimeout?: number;
1490
+ dummyClientSecret?: string;
1491
+ requireHttps?: boolean | "remoteOnly";
1492
+ strictDiscoveryDocumentValidation?: boolean;
1493
+ jwks?: object;
1494
+ customQueryParams?: object;
1495
+ silentRefreshIFrameName?: string;
1496
+ timeoutFactor?: number;
1497
+ sessionChecksEnabled?: boolean;
1498
+ sessionCheckIntervall?: number;
1499
+ sessionCheckIFrameUrl?: string;
1500
+ sessionCheckIFrameName?: string;
1501
+ disableAtHashCheck?: boolean;
1502
+ skipSubjectCheck?: boolean;
1503
+ useIdTokenHintForSilentRefresh?: boolean;
1504
+ skipIssuerCheck?: boolean;
1505
+ fallbackAccessTokenExpirationTimeInSec?: number;
1506
+ nonceStateSeparator?: string;
1507
+ useHttpBasicAuth?: boolean;
1508
+ clockSkewInSec?: number;
1509
+ decreaseExpirationBySec?: number;
1510
+ waitForTokenInMsec?: number;
1511
+ useSilentRefresh?: any;
1512
+ disablePKCE?: boolean;
1513
+ preserveRequestedRoute?: boolean;
1514
+ disableIdTokenTimer?: boolean;
1515
+ checkOrigin?: boolean;
1516
+ openUri?: (uri: string) => void;
1517
+ impersonation?: {
1518
+ tenantImpersonation?: boolean;
1519
+ userImpersonation?: boolean;
1520
+ };
1521
+ ssrAuthorizationUrl?: string;
1522
+ };
1523
+ production?: boolean;
1524
+ remoteEnv?: {
1525
+ url?: string;
1526
+ mergeStrategy?: "deepmerge" | "overwrite" | customMergeFn;
1527
+ method?: string;
1528
+ headers?: {
1529
+ [x: string]: string;
1530
+ };
1531
+ };
1532
+ }) => Slice, filterFn?: (x: Slice) => boolean) => Observable<Slice>;
1533
+ getEnvironment$(): Observable<Environment>;
1534
+ getEnvironment(): Environment;
1535
+ getApiUrl(key: string | undefined): string;
1536
+ getApiUrl$(key: string): Observable<string>;
1537
+ setState(environment: Environment): void;
1538
+ getIssuer(): string;
1539
+ getIssuer$(): Observable<string>;
1540
+ getImpersonation(): Impersonation;
1541
+ getImpersonation$(): Observable<Impersonation>;
1542
+ static ɵfac: i0.ɵɵFactoryDeclaration<EnvironmentService, never>;
1543
+ static ɵprov: i0.ɵɵInjectableDeclaration<EnvironmentService>;
1544
+ }
1545
+
1546
+ declare class HtmlEncodingService {
1547
+ encode(value: string): string;
1548
+ decode(value: string): string;
1549
+ static ɵfac: i0.ɵɵFactoryDeclaration<HtmlEncodingService, never>;
1550
+ static ɵprov: i0.ɵɵInjectableDeclaration<HtmlEncodingService>;
1551
+ }
1552
+
1553
+ declare class HttpErrorReporterService {
1554
+ private _reporter$;
1555
+ private _errors$;
1556
+ get reporter$(): rxjs.Observable<HttpErrorResponse>;
1557
+ get errors$(): rxjs.Observable<HttpErrorResponse[]>;
1558
+ get errors(): HttpErrorResponse[];
1559
+ reportError(error: HttpErrorResponse): void;
1560
+ static ɵfac: i0.ɵɵFactoryDeclaration<HttpErrorReporterService, never>;
1561
+ static ɵprov: i0.ɵɵInjectableDeclaration<HttpErrorReporterService>;
1562
+ }
1563
+
1564
+ declare class InternalStore<State> {
1565
+ private initialState;
1566
+ private state$;
1567
+ private update$;
1568
+ get state(): State;
1569
+ sliceState: <Slice>(selector: (state: State) => Slice, compareFn?: (s1: Slice, s2: Slice) => boolean) => rxjs.Observable<Slice>;
1570
+ sliceUpdate: <Slice>(selector: (state: DeepPartial<State>) => Slice, filterFn?: (x: Slice) => boolean) => rxjs.Observable<Slice>;
1571
+ constructor(initialState: State);
1572
+ patch(state: Partial<State>): void;
1573
+ deepPatch(state: DeepPartial<State>): void;
1574
+ set(state: State): void;
1575
+ reset(): void;
1576
+ }
1577
+
1578
+ interface HttpWaitState {
1579
+ requests: HttpRequest<any>[];
1580
+ filteredRequests: Array<HttpRequestInfo>;
1581
+ }
1582
+ interface HttpRequestInfo {
1583
+ method: string;
1584
+ endpoint: string;
1585
+ }
1586
+ declare class HttpWaitService {
1587
+ protected store: InternalStore<HttpWaitState>;
1588
+ private delay;
1589
+ private destroy$;
1590
+ constructor();
1591
+ getLoading(): boolean;
1592
+ getLoading$(): rxjs.Observable<boolean>;
1593
+ updateLoading$(): rxjs.Observable<boolean>;
1594
+ clearLoading(): void;
1595
+ addRequest(request: HttpRequest<any>): void;
1596
+ deleteRequest(request: HttpRequest<any>): void;
1597
+ addFilter(request: HttpRequestInfo | HttpRequestInfo[]): void;
1598
+ removeFilter(request: HttpRequestInfo | HttpRequestInfo[]): void;
1599
+ private applyFilter;
1600
+ private isSameRequest;
1601
+ static ɵfac: i0.ɵɵFactoryDeclaration<HttpWaitService, never>;
1602
+ static ɵprov: i0.ɵɵInjectableDeclaration<HttpWaitService>;
1603
+ }
1604
+
1605
+ declare class CrossOriginStrategy {
1606
+ crossorigin: 'anonymous' | 'use-credentials' | null;
1607
+ integrity?: string;
1608
+ constructor(crossorigin: 'anonymous' | 'use-credentials' | null, integrity?: string);
1609
+ setCrossOrigin<T extends HTMLElement>(element: T): void;
1610
+ }
1611
+ declare class NoCrossOriginStrategy extends CrossOriginStrategy {
1612
+ setCrossOrigin(): void;
1613
+ }
1614
+ declare const CROSS_ORIGIN_STRATEGY: {
1615
+ Anonymous(integrity?: string): CrossOriginStrategy;
1616
+ UseCredentials(integrity?: string): CrossOriginStrategy;
1617
+ None(): NoCrossOriginStrategy;
1618
+ };
1619
+
1620
+ declare abstract class LoadingStrategy<T extends HTMLScriptElement | HTMLLinkElement = any> {
1621
+ path: string;
1622
+ protected domStrategy: DomStrategy;
1623
+ protected crossOriginStrategy: CrossOriginStrategy;
1624
+ element: T;
1625
+ constructor(path: string, domStrategy?: DomStrategy, crossOriginStrategy?: CrossOriginStrategy);
1626
+ abstract createElement(): T;
1627
+ createStream<E extends Event>(): Observable<E>;
1628
+ }
1629
+ declare class ScriptLoadingStrategy extends LoadingStrategy<HTMLScriptElement> {
1630
+ constructor(src: string, domStrategy?: DomStrategy, crossOriginStrategy?: CrossOriginStrategy);
1631
+ createElement(): HTMLScriptElement;
1632
+ }
1633
+ declare class StyleLoadingStrategy extends LoadingStrategy<HTMLLinkElement> {
1634
+ constructor(href: string, domStrategy?: DomStrategy, crossOriginStrategy?: CrossOriginStrategy);
1635
+ createElement(): HTMLLinkElement;
1636
+ }
1637
+ declare const LOADING_STRATEGY: {
1638
+ AppendScriptToBody(src: string): ScriptLoadingStrategy;
1639
+ AppendAnonymousScriptToBody(src: string, integrity?: string): ScriptLoadingStrategy;
1640
+ AppendAnonymousScriptToHead(src: string, integrity?: string): ScriptLoadingStrategy;
1641
+ AppendAnonymousStyleToHead(src: string, integrity?: string): StyleLoadingStrategy;
1642
+ PrependAnonymousScriptToHead(src: string, integrity?: string): ScriptLoadingStrategy;
1643
+ PrependAnonymousStyleToHead(src: string, integrity?: string): StyleLoadingStrategy;
1644
+ };
1645
+
1646
+ declare class LazyLoadService {
1647
+ private resourceWaitService;
1648
+ readonly loaded: Map<string, HTMLScriptElement | HTMLLinkElement>;
1649
+ load(strategy: LoadingStrategy, retryTimes?: number, retryDelay?: number): Observable<Event>;
1650
+ remove(path: string): boolean;
1651
+ static ɵfac: i0.ɵɵFactoryDeclaration<LazyLoadService, never>;
1652
+ static ɵprov: i0.ɵɵInjectableDeclaration<LazyLoadService>;
1653
+ }
1654
+
1655
+ type RequestStatus = 'idle' | 'loading' | 'success' | 'error';
1656
+ declare class ListService<QueryParamsType = ABP.PageQueryParams | any> implements OnDestroy {
1657
+ private _filter;
1658
+ set filter(value: string);
1659
+ get filter(): string;
1660
+ private _maxResultCount;
1661
+ set maxResultCount(value: number);
1662
+ get maxResultCount(): number;
1663
+ private _page;
1664
+ set page(value: number);
1665
+ get page(): number;
1666
+ private _totalCount;
1667
+ set totalCount(value: number);
1668
+ get totalCount(): number;
1669
+ private _sortKey;
1670
+ set sortKey(value: string | number);
1671
+ get sortKey(): string | number;
1672
+ private _sortOrder;
1673
+ set sortOrder(value: string);
1674
+ get sortOrder(): string;
1675
+ private _query$;
1676
+ get query$(): Observable<QueryParamsType>;
1677
+ private _isLoading$;
1678
+ private _requestStatus;
1679
+ private destroy$;
1680
+ private delay;
1681
+ /**
1682
+ * @deprecated Use `requestStatus$` instead.
1683
+ */
1684
+ get isLoading$(): Observable<boolean>;
1685
+ get requestStatus$(): Observable<RequestStatus>;
1686
+ get: () => void;
1687
+ getWithoutPageReset: () => void;
1688
+ constructor();
1689
+ hookToQuery<T>(streamCreatorCallback: QueryStreamCreatorCallback<T, QueryParamsType>): Observable<PagedResultDto<T>>;
1690
+ ngOnDestroy(): void;
1691
+ private resetPageWhenUnchanged;
1692
+ private next;
1693
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListService<any>, never>;
1694
+ static ɵprov: i0.ɵɵInjectableDeclaration<ListService<any>>;
1695
+ }
1696
+ type QueryStreamCreatorCallback<T, QueryParamsType = ABP.PageQueryParams> = (query: QueryParamsType) => Observable<PagedResultDto<T>>;
1697
+
1698
+ declare class MultiTenancyService {
1699
+ private sessionState;
1700
+ private tenantService;
1701
+ private configStateService;
1702
+ tenantKey: string;
1703
+ domainTenant: CurrentTenantDto | null;
1704
+ isTenantBoxVisible: boolean;
1705
+ apiName: string;
1706
+ private setTenantToState;
1707
+ setTenantByName(tenantName: string): rxjs.Observable<FindTenantResultDto>;
1708
+ setTenantById(tenantId: string): rxjs.Observable<FindTenantResultDto>;
1709
+ static ɵfac: i0.ɵɵFactoryDeclaration<MultiTenancyService, never>;
1710
+ static ɵprov: i0.ɵɵInjectableDeclaration<MultiTenancyService>;
1711
+ }
1712
+
1713
+ declare class PermissionService {
1714
+ protected configState: ConfigStateService;
1715
+ getGrantedPolicy$(key: string): rxjs.Observable<boolean>;
1716
+ getGrantedPolicy(key: string | undefined): boolean;
1717
+ filterItemsByPolicy<T extends ABP.HasPolicy>(items: Array<T>): T[];
1718
+ filterItemsByPolicy$<T extends ABP.HasPolicy>(items: Array<T>): rxjs.Observable<T[]>;
1719
+ protected isPolicyGranted(key: string | undefined, grantedPolicies: Record<string, boolean>): boolean;
1720
+ protected getStream(): rxjs.Observable<Record<string, boolean>>;
1721
+ protected getSnapshot(): Record<string, boolean>;
1722
+ protected mapToPolicies(applicationConfiguration: ApplicationConfigurationDto): Record<string, boolean>;
1723
+ protected getPolicy(key: string, grantedPolicies: Record<string, boolean>): boolean;
1724
+ static ɵfac: i0.ɵɵFactoryDeclaration<PermissionService, never>;
1725
+ static ɵprov: i0.ɵɵInjectableDeclaration<PermissionService>;
1726
+ }
1727
+
1728
+ interface ResourceWaitState {
1729
+ resources: Set<string>;
1730
+ }
1731
+ declare class ResourceWaitService {
1732
+ private store;
1733
+ getLoading(): boolean;
1734
+ getLoading$(): rxjs.Observable<boolean>;
1735
+ updateLoading$(): rxjs.Observable<boolean>;
1736
+ clearLoading(): void;
1737
+ addResource(resource: string): void;
1738
+ deleteResource(resource: string): void;
1739
+ static ɵfac: i0.ɵɵFactoryDeclaration<ResourceWaitService, never>;
1740
+ static ɵprov: i0.ɵɵInjectableDeclaration<ResourceWaitService>;
1741
+ }
1742
+
1743
+ declare class ExternalHttpClient extends HttpClient {
1744
+ #private;
1745
+ request(first: string | HttpRequest<any>, url?: string, options?: RequestOptions): Observable<any>;
1746
+ static ɵfac: i0.ɵɵFactoryDeclaration<ExternalHttpClient, never>;
1747
+ static ɵprov: i0.ɵɵInjectableDeclaration<ExternalHttpClient>;
1748
+ }
1749
+ type RequestOptions = Parameters<HttpClient['request']>[2];
1750
+
1751
+ declare class RestService {
1752
+ protected options: ABP.Root;
1753
+ protected http: HttpClient;
1754
+ protected externalHttp: ExternalHttpClient;
1755
+ protected environment: EnvironmentService;
1756
+ protected httpErrorReporter: HttpErrorReporterService;
1757
+ protected getApiFromStore(apiName: string | undefined): string;
1758
+ handleError(err: any): Observable<any>;
1759
+ request<T, R>(request: HttpRequest<T> | Rest.Request<T>, config?: Rest.Config, api?: string): Observable<R>;
1760
+ private getHttpClient;
1761
+ private getParams;
1762
+ private removeDuplicateSlashes;
1763
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
1764
+ static ɵprov: i0.ɵɵInjectableDeclaration<RestService>;
1765
+ }
1766
+
1767
+ interface RouterWaitState {
1768
+ loading: boolean;
1769
+ }
1770
+ declare class RouterWaitService {
1771
+ private routerEvents;
1772
+ private store;
1773
+ private destroy$;
1774
+ private delay;
1775
+ constructor();
1776
+ private updateLoadingStatusOnNavigationEvents;
1777
+ getLoading(): boolean;
1778
+ getLoading$(): rxjs.Observable<boolean>;
1779
+ updateLoading$(): rxjs.Observable<boolean>;
1780
+ setLoading(loading: boolean): void;
1781
+ static ɵfac: i0.ɵɵFactoryDeclaration<RouterWaitService, never>;
1782
+ static ɵprov: i0.ɵɵInjectableDeclaration<RouterWaitService>;
1783
+ }
1784
+
1785
+ declare class SessionStateService {
1786
+ private configState;
1787
+ private localStorageService;
1788
+ private appStartedWithSSR;
1789
+ private cookieStorageService;
1790
+ private readonly store;
1791
+ protected readonly document: Document;
1792
+ private updateLocalStorage;
1793
+ constructor();
1794
+ private init;
1795
+ private setInitialLanguage;
1796
+ onLanguageChange$(): rxjs.Observable<string>;
1797
+ onTenantChange$(): rxjs.Observable<{
1798
+ id?: string;
1799
+ name?: string;
1800
+ isAvailable?: boolean;
1801
+ }>;
1802
+ getLanguage(): string;
1803
+ getLanguage$(): rxjs.Observable<string>;
1804
+ getTenant(): CurrentTenantDto;
1805
+ getTenant$(): rxjs.Observable<CurrentTenantDto>;
1806
+ setTenant(tenant: CurrentTenantDto | null): void;
1807
+ setLanguage(language: string): void;
1808
+ static ɵfac: i0.ɵɵFactoryDeclaration<SessionStateService, never>;
1809
+ static ɵprov: i0.ɵɵInjectableDeclaration<SessionStateService>;
1810
+ }
1811
+
1812
+ declare const trackBy: <T = any>(key: keyof T) => TrackByFunction<T>;
1813
+ declare const trackByDeep: <T = any>(...keys: T extends object ? O$1.Paths<T> : never) => TrackByFunction<T>;
1814
+ declare class TrackByService<ItemType = any> {
1815
+ by: <T = any>(key: keyof T) => TrackByFunction<T>;
1816
+ byDeep: <T = any>(...keys: T extends object ? O$1.Paths<T> : never) => TrackByFunction<T>;
1817
+ static ɵfac: i0.ɵɵFactoryDeclaration<TrackByService<any>, never>;
1818
+ static ɵprov: i0.ɵɵInjectableDeclaration<TrackByService<any>>;
1819
+ }
1820
+
1821
+ declare class AbpLocalStorageService implements Storage {
1822
+ private platformId;
1823
+ constructor();
1824
+ [name: string]: any;
1825
+ get length(): number;
1826
+ clear(): void;
1827
+ getItem(key: string): string | null;
1828
+ key(index: number): string | null;
1829
+ removeItem(key: string): void;
1830
+ setItem(key: string, value: string): void;
1831
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbpLocalStorageService, never>;
1832
+ static ɵprov: i0.ɵɵInjectableDeclaration<AbpLocalStorageService>;
1833
+ }
1834
+
1835
+ declare class AbpWindowService {
1836
+ readonly document: Document;
1837
+ readonly window: Window & typeof globalThis;
1838
+ readonly navigator: Navigator;
1839
+ copyToClipboard(text: string): Promise<void>;
1840
+ open(url?: string | URL, target?: string, features?: string): Window;
1841
+ reloadPage(): void;
1842
+ downloadBlob(blob: Blob, fileName: string): void;
1843
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbpWindowService, never>;
1844
+ static ɵprov: i0.ɵɵInjectableDeclaration<AbpWindowService>;
1845
+ }
1846
+
1847
+ declare class InternetConnectionService {
1848
+ readonly document: Document;
1849
+ readonly window: Window & typeof globalThis;
1850
+ readonly navigator: Navigator;
1851
+ private status$;
1852
+ private status;
1853
+ networkStatus: i0.Signal<boolean>;
1854
+ constructor();
1855
+ setStatus(val: boolean): void;
1856
+ get networkStatus$(): rxjs.Observable<boolean>;
1857
+ static ɵfac: i0.ɵɵFactoryDeclaration<InternetConnectionService, never>;
1858
+ static ɵprov: i0.ɵɵInjectableDeclaration<InternetConnectionService>;
1859
+ }
1860
+
1861
+ declare class LocalStorageListenerService {
1862
+ protected readonly window: Window & typeof globalThis;
1863
+ constructor();
1864
+ static ɵfac: i0.ɵɵFactoryDeclaration<LocalStorageListenerService, never>;
1865
+ static ɵprov: i0.ɵɵInjectableDeclaration<LocalStorageListenerService>;
1866
+ }
1867
+
1868
+ declare class AbpTitleStrategy extends TitleStrategy {
1869
+ protected readonly title: Title;
1870
+ protected readonly localizationService: LocalizationService;
1871
+ protected readonly disableProjectName: boolean;
1872
+ protected routerState: RouterStateSnapshot;
1873
+ langugageChange: i0.Signal<string>;
1874
+ constructor();
1875
+ updateTitle(routerState: RouterStateSnapshot): void;
1876
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbpTitleStrategy, never>;
1877
+ static ɵprov: i0.ɵɵInjectableDeclaration<AbpTitleStrategy>;
1878
+ }
1879
+
1880
+ declare class TimezoneService {
1881
+ protected readonly configState: ConfigStateService;
1882
+ protected readonly document: Document;
1883
+ private readonly cookieKey;
1884
+ private timeZoneNameFromSettings;
1885
+ isUtcClockEnabled: boolean | undefined;
1886
+ constructor();
1971
1887
  /**
1972
- * Returns currently selected language
1973
- * Even though this looks like it's redundant to return the same value as `getLanguage()`,
1974
- * it's actually not. This could be invoked any time, and the latestLang could be different from the
1975
- * sessionState.getLanguage() value.
1888
+ * Returns the effective timezone to be used across the application.
1889
+ *
1890
+ * This value is determined based on the clock kind setting in the configuration:
1891
+ * - If clock kind is not equal to Utc, the browser's local timezone is returned.
1892
+ * - If clock kind is equal to Utc, the configured timezone (`timeZoneNameFromSettings`) is returned if available;
1893
+ * otherwise, the browser's timezone is used as a fallback.
1894
+ *
1895
+ * @returns The IANA timezone name (e.g., 'Europe/Istanbul', 'America/New_York').
1976
1896
  */
1977
- get currentLang(): string;
1978
- get currentLang$(): Observable<string>;
1979
- get languageChange$(): Observable<string>;
1980
- constructor(sessionState: SessionStateService, injector: Injector, otherInstance: LocalizationService, configState: ConfigStateService);
1981
- private initLocalizationValues;
1982
- addLocalization(localizations?: ABP.Localization[]): void;
1983
- private listenToSetLanguage;
1984
- registerLocale(locale: string): Promise<void>;
1897
+ get timezone(): string;
1985
1898
  /**
1986
- * Returns an observable localized text with the given interpolation parameters in current language.
1987
- * @param key Localizaton key to replace with localized text
1988
- * @param interpolateParams Values to interpolate
1899
+ * Retrieves the browser's local timezone based on the user's system settings.
1900
+ *
1901
+ * @returns The IANA timezone name (e.g., 'Europe/Istanbul', 'America/New_York').
1989
1902
  */
1990
- get(key: string | LocalizationWithDefault, ...interpolateParams: string[]): Observable<string>;
1991
- getResource(resourceName: string): Record<string, string>;
1992
- getResource$(resourceName: string): Observable<Record<string, string>>;
1903
+ getBrowserTimezone(): string;
1993
1904
  /**
1994
- * Returns localized text with the given interpolation parameters in current language.
1995
- * @param key Localization key to replace with localized text
1996
- * @param interpolateParams Values to intepolate.
1905
+ * Sets the application's timezone in a cookie to persist the user's selected timezone.
1906
+ *
1907
+ * This method sets the cookie only if the clock kind setting is set to UTC.
1908
+ * The cookie is stored using the key defined by `this.cookieKey` and applied to the root path (`/`).
1909
+ *
1910
+ * @param timezone - The IANA timezone name to be stored (e.g., 'Europe/Istanbul').
1997
1911
  */
1998
- instant(key: string | LocalizationWithDefault, ...interpolateParams: string[]): string;
1999
- localize(resourceName: string, key: string, defaultValue: string): Observable<string | null>;
2000
- localizeSync(resourceName: string, key: string, defaultValue: string): string | null;
2001
- localizeWithFallback(resourceNames: string[], keys: string[], defaultValue: string): Observable<string>;
2002
- localizeWithFallbackSync(resourceNames: string[], keys: string[], defaultValue: string): string;
2003
- private getLocalization;
2004
- static ɵfac: i0.ɵɵFactoryDeclaration<LocalizationService, [null, null, { optional: true; skipSelf: true; }, null]>;
2005
- static ɵprov: i0.ɵɵInjectableDeclaration<LocalizationService>;
1912
+ setTimezone(timezone: string): void;
1913
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimezoneService, never>;
1914
+ static ɵprov: i0.ɵɵInjectableDeclaration<TimezoneService>;
1915
+ }
1916
+
1917
+ declare class TimeService {
1918
+ private locale;
1919
+ /**
1920
+ * Returns the current date and time in the specified timezone.
1921
+ *
1922
+ * @param zone - An IANA timezone name (e.g., 'Europe/Istanbul', 'UTC'); defaults to the system's local timezone.
1923
+ * @returns A Luxon DateTime instance representing the current time in the given timezone.
1924
+ */
1925
+ now(zone?: string): DateTime;
1926
+ /**
1927
+ * Converts the input date to the specified timezone, applying any timezone and daylight saving time (DST) adjustments.
1928
+ *
1929
+ * This method:
1930
+ * 1. Parses the input value into a Luxon DateTime object.
1931
+ * 2. Applies the specified IANA timezone, including any DST shifts based on the given date.
1932
+ *
1933
+ * @param value - The ISO string or Date object to convert.
1934
+ * @param zone - An IANA timezone name (e.g., 'America/New_York').
1935
+ * @returns A Luxon DateTime instance adjusted to the specified timezone and DST rules.
1936
+ */
1937
+ toZone(value: string | Date, zone: string): DateTime;
1938
+ /**
1939
+ * Formats the input date by applying timezone and daylight saving time (DST) adjustments.
1940
+ *
1941
+ * This method:
1942
+ * 1. Converts the input date to the specified timezone.
1943
+ * 2. Formats the result using the given format and locale, reflecting any timezone or DST shifts.
1944
+ *
1945
+ * @param value - The ISO string or Date object to format.
1946
+ * @param format - The format string (default: 'ff').
1947
+ * @param zone - Optional IANA timezone name (e.g., 'America/New_York'); defaults to the system's local timezone.
1948
+ * @returns A formatted date string adjusted for the given timezone and DST rules.
1949
+ */
1950
+ format(value: string | Date, format?: string, zone?: string): string;
1951
+ /**
1952
+ * Formats a date using the standard time offset (ignoring daylight saving time) for the specified timezone.
1953
+ *
1954
+ * This method:
1955
+ * 1. Converts the input date to UTC.
1956
+ * 2. Calculates the standard UTC offset for the given timezone (based on January 1st to avoid DST).
1957
+ * 3. Applies the standard offset manually to the UTC time.
1958
+ * 4. Formats the result using the specified format and locale, without applying additional timezone shifts.
1959
+ *
1960
+ * @param value - The ISO string or Date object to format.
1961
+ * @param format - The Luxon format string (default: 'ff').
1962
+ * @param zone - Optional IANA timezone name (e.g., 'America/New_York'); if omitted, system local timezone is used.
1963
+ * @returns A formatted date string adjusted by standard time (non-DST).
1964
+ */
1965
+ formatDateWithStandardOffset(value: string | Date, format?: string, zone?: string): string;
1966
+ /**
1967
+ * Formats the input date using its original clock time, without converting based on timezone or DST
1968
+ *
1969
+ * This method:
1970
+ * 1. Converts the input date to ISO string.
1971
+ * 2. Calculates the date time in UTC, keeping the local time.
1972
+ * 3. Formats the result using the specified format and locale, without shifting timezones.
1973
+ *
1974
+ * @param value - The ISO string or Date object to format.
1975
+ * @param format - The format string (default: 'ff').
1976
+ * @returns A formatted date string without applying timezone.
1977
+ */
1978
+ formatWithoutTimeZone(value: string | Date, format?: string): string;
1979
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimeService, never>;
1980
+ static ɵprov: i0.ɵɵInjectableDeclaration<TimeService>;
2006
1981
  }
2007
- type LegacyLanguageDto = Record<string, Record<string, string>>;
2008
- type ResourceDto = Record<string, ApplicationLocalizationResourceDto>;
2009
1982
 
2010
- declare class DynamicLayoutComponent implements OnInit {
1983
+ declare class AbpCookieStorageService implements Storage {
1984
+ private platformId;
1985
+ private document;
1986
+ private request;
1987
+ get length(): number;
1988
+ clear(): void;
1989
+ getItem(key: string): string | null;
1990
+ key(index: number): string | null;
1991
+ removeItem(key: string): void;
1992
+ setItem(key: string, value: string): void;
1993
+ setItemWithExpiry(key: string, value: string, seconds: number): void;
1994
+ private keys;
1995
+ private setCookie;
1996
+ private getCookiesFromRequest;
1997
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbpCookieStorageService, never>;
1998
+ static ɵprov: i0.ɵɵInjectableDeclaration<AbpCookieStorageService>;
1999
+ }
2000
+
2001
+ declare class DomStrategyService {
2002
+ private document;
2003
+ afterElement(el: HTMLElement): DomStrategy;
2004
+ beforeElement(el: HTMLElement): DomStrategy;
2005
+ appendToBody(): DomStrategy;
2006
+ appendToHead(): DomStrategy;
2007
+ prependToHead(): DomStrategy;
2008
+ static ɵfac: i0.ɵɵFactoryDeclaration<DomStrategyService, never>;
2009
+ static ɵprov: i0.ɵɵInjectableDeclaration<DomStrategyService>;
2010
+ }
2011
+
2012
+ declare class DynamicLayoutComponent {
2011
2013
  layout?: Type<any>;
2012
2014
  layoutKey?: eLayoutType;
2013
2015
  readonly layouts: Map<string, string>;
@@ -2021,15 +2023,15 @@ declare class DynamicLayoutComponent implements OnInit {
2021
2023
  protected readonly subscription: SubscriptionService;
2022
2024
  protected readonly routerEvents: RouterEvents;
2023
2025
  protected readonly environment: EnvironmentService;
2024
- constructor(dynamicLayoutComponent: DynamicLayoutComponent);
2025
- ngOnInit(): void;
2026
+ constructor();
2026
2027
  private checkLayoutOnNavigationEnd;
2027
2028
  private getLayout;
2028
2029
  private getExtractedLayout;
2029
2030
  showLayoutNotFoundError(layoutName: string): void;
2030
2031
  private listenToLanguageChange;
2031
2032
  private getComponent;
2032
- static ɵfac: i0.ɵɵFactoryDeclaration<DynamicLayoutComponent, [{ optional: true; skipSelf: true; }]>;
2033
+ private listenToEnvironmentChange;
2034
+ static ɵfac: i0.ɵɵFactoryDeclaration<DynamicLayoutComponent, never>;
2033
2035
  static ɵcmp: i0.ɵɵComponentDeclaration<DynamicLayoutComponent, "abp-dynamic-layout", never, { "defaultLayout": { "alias": "defaultLayout"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
2034
2036
  }
2035
2037
 
@@ -2040,7 +2042,6 @@ declare class ReplaceableRouteContainerComponent implements OnInit {
2040
2042
  defaultComponent: Type<any>;
2041
2043
  componentKey: string;
2042
2044
  externalComponent?: Type<any>;
2043
- constructor(route: ActivatedRoute, replaceableComponents: ReplaceableComponentsService, subscription: SubscriptionService);
2044
2045
  ngOnInit(): void;
2045
2046
  static ɵfac: i0.ɵɵFactoryDeclaration<ReplaceableRouteContainerComponent, never>;
2046
2047
  static ɵcmp: i0.ɵɵComponentDeclaration<ReplaceableRouteContainerComponent, "abp-replaceable-route-container", never, {}, {}, never, never, true, never>;
@@ -2399,7 +2400,6 @@ declare class AutofocusDirective implements AfterViewInit {
2399
2400
  private _delay;
2400
2401
  set delay(val: number | string | undefined);
2401
2402
  get delay(): number | string | undefined;
2402
- constructor(elRef: ElementRef);
2403
2403
  ngAfterViewInit(): void;
2404
2404
  static ɵfac: i0.ɵɵFactoryDeclaration<AutofocusDirective, never>;
2405
2405
  static ɵdir: i0.ɵɵDirectiveDeclaration<AutofocusDirective, "[autofocus]", never, { "delay": { "alias": "autofocus"; "required": false; }; }, {}, never, never, true, never>;
@@ -2410,20 +2410,12 @@ declare class InputEventDebounceDirective implements OnInit {
2410
2410
  private subscription;
2411
2411
  debounce: number;
2412
2412
  readonly debounceEvent: EventEmitter<Event>;
2413
- constructor(el: ElementRef, subscription: SubscriptionService);
2414
2413
  ngOnInit(): void;
2415
2414
  static ɵfac: i0.ɵɵFactoryDeclaration<InputEventDebounceDirective, never>;
2416
2415
  static ɵdir: i0.ɵɵDirectiveDeclaration<InputEventDebounceDirective, "[input.debounce]", never, { "debounce": { "alias": "debounce"; "required": false; }; }, { "debounceEvent": "input.debounce"; }, never, never, true, never>;
2417
2416
  }
2418
2417
 
2419
2418
  type CompareFn<T = any> = (value: T, comparison: T) => boolean;
2420
- declare class AbpForContext {
2421
- $implicit: any;
2422
- index: number;
2423
- count: number;
2424
- list: any[];
2425
- constructor($implicit: any, index: number, count: number, list: any[]);
2426
- }
2427
2419
  declare class ForDirective implements OnChanges {
2428
2420
  private tempRef;
2429
2421
  private vcRef;
@@ -2440,7 +2432,6 @@ declare class ForDirective implements OnChanges {
2440
2432
  private isShowEmptyRef;
2441
2433
  get compareFn(): CompareFn;
2442
2434
  get trackByFn(): TrackByFunction<any>;
2443
- constructor(tempRef: TemplateRef<AbpForContext>, vcRef: ViewContainerRef, differs: IterableDiffers);
2444
2435
  private iterateOverAppliedOperations;
2445
2436
  private iterateOverAttachedViews;
2446
2437
  private projectItems;
@@ -2463,17 +2454,15 @@ declare class FormSubmitDirective implements OnInit {
2463
2454
  markAsDirtyWhenSubmit: boolean;
2464
2455
  readonly ngSubmit: EventEmitter<any>;
2465
2456
  executedNgSubmit: boolean;
2466
- constructor(formGroupDirective: FormGroupDirective, host: ElementRef<HTMLFormElement>, cdRef: ChangeDetectorRef, subscription: SubscriptionService);
2467
2457
  ngOnInit(): void;
2468
2458
  markAsDirty(): void;
2469
- static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmitDirective, [{ self: true; }, null, null, null]>;
2459
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmitDirective, never>;
2470
2460
  static ɵdir: i0.ɵɵDirectiveDeclaration<FormSubmitDirective, "form[ngSubmit][formGroup]", never, { "debounce": { "alias": "debounce"; "required": false; }; "notValidateOnSubmit": { "alias": "notValidateOnSubmit"; "required": false; }; "markAsDirtyWhenSubmit": { "alias": "markAsDirtyWhenSubmit"; "required": false; }; }, { "ngSubmit": "ngSubmit"; }, never, never, true, never>;
2471
2461
  }
2472
2462
 
2473
2463
  declare class InitDirective implements AfterViewInit {
2474
2464
  private elRef;
2475
2465
  readonly init: EventEmitter<ElementRef<any>>;
2476
- constructor(elRef: ElementRef);
2477
2466
  ngAfterViewInit(): void;
2478
2467
  static ɵfac: i0.ɵɵFactoryDeclaration<InitDirective, never>;
2479
2468
  static ɵdir: i0.ɵɵDirectiveDeclaration<InitDirective, "[abpInit]", never, {}, { "init": "abpInit"; }, never, never, true, never>;
@@ -2505,12 +2494,11 @@ declare class PermissionDirective implements OnDestroy, OnChanges, AfterViewInit
2505
2494
  subscription: Subscription;
2506
2495
  cdrSubject: ReplaySubject<void>;
2507
2496
  rendered: boolean;
2508
- constructor(templateRef: TemplateRef<any>, vcRef: ViewContainerRef, permissionService: PermissionService, cdRef: ChangeDetectorRef, queue: QueueManager);
2509
2497
  private check;
2510
2498
  ngOnDestroy(): void;
2511
2499
  ngOnChanges(): void;
2512
2500
  ngAfterViewInit(): void;
2513
- static ɵfac: i0.ɵɵFactoryDeclaration<PermissionDirective, [{ optional: true; }, null, null, null, null]>;
2501
+ static ɵfac: i0.ɵɵFactoryDeclaration<PermissionDirective, never>;
2514
2502
  static ɵdir: i0.ɵɵDirectiveDeclaration<PermissionDirective, "[abpPermission]", never, { "condition": { "alias": "abpPermission"; "required": false; }; "runChangeDetection": { "alias": "abpPermissionRunChangeDetection"; "required": false; }; }, {}, never, never, true, never>;
2515
2503
  }
2516
2504
 
@@ -2527,7 +2515,7 @@ declare class ReplaceableTemplateDirective implements OnInit, OnChanges {
2527
2515
  defaultComponentRef: any;
2528
2516
  defaultComponentSubscriptions: ABP.Dictionary<Subscription>;
2529
2517
  initialized: boolean;
2530
- constructor(injector: Injector, templateRef: TemplateRef<any>, vcRef: ViewContainerRef, replaceableComponents: ReplaceableComponentsService, subscription: SubscriptionService);
2518
+ constructor();
2531
2519
  ngOnInit(): void;
2532
2520
  ngOnChanges(changes: SimpleChanges): void;
2533
2521
  setDefaultComponentInputs(): void;
@@ -2541,7 +2529,6 @@ declare class StopPropagationDirective implements OnInit {
2541
2529
  private el;
2542
2530
  private subscription;
2543
2531
  readonly stopPropEvent: EventEmitter<MouseEvent>;
2544
- constructor(el: ElementRef, subscription: SubscriptionService);
2545
2532
  ngOnInit(): void;
2546
2533
  static ɵfac: i0.ɵɵFactoryDeclaration<StopPropagationDirective, never>;
2547
2534
  static ɵdir: i0.ɵɵDirectiveDeclaration<StopPropagationDirective, "[click.stop]", never, {}, { "stopPropEvent": "click.stop"; }, never, never, true, never>;
@@ -2549,7 +2536,6 @@ declare class StopPropagationDirective implements OnInit {
2549
2536
 
2550
2537
  declare class LocalizationPipe implements PipeTransform {
2551
2538
  private localization;
2552
- constructor(localization: LocalizationService);
2553
2539
  transform(value?: string | LocalizationWithDefault, ...interpolateParams: (string | string[] | undefined)[]): string;
2554
2540
  static ɵfac: i0.ɵɵFactoryDeclaration<LocalizationPipe, never>;
2555
2541
  static ɵpipe: i0.ɵɵPipeDeclaration<LocalizationPipe, "abpLocalization", true>;
@@ -2574,35 +2560,34 @@ declare class SafeHtmlPipe implements PipeTransform {
2574
2560
 
2575
2561
  declare class ShortDateTimePipe extends DatePipe implements PipeTransform {
2576
2562
  private configStateService;
2577
- constructor(configStateService: ConfigStateService, locale: string, defaultTimezone?: string | null);
2563
+ constructor();
2578
2564
  transform(value: Date | string | number, format?: string, timezone?: string, locale?: string): string | null;
2579
2565
  transform(value: null | undefined, format?: string, timezone?: string, locale?: string): null;
2580
- static ɵfac: i0.ɵɵFactoryDeclaration<ShortDateTimePipe, [null, null, { optional: true; }]>;
2566
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShortDateTimePipe, never>;
2581
2567
  static ɵpipe: i0.ɵɵPipeDeclaration<ShortDateTimePipe, "shortDateTime", true>;
2582
2568
  }
2583
2569
 
2584
2570
  declare class ShortTimePipe extends DatePipe implements PipeTransform {
2585
2571
  private configStateService;
2586
- constructor(configStateService: ConfigStateService, locale: string, defaultTimezone?: string | null);
2572
+ constructor();
2587
2573
  transform(value: Date | string | number, format?: string, timezone?: string, locale?: string): string | null;
2588
2574
  transform(value: null | undefined, format?: string, timezone?: string, locale?: string): null;
2589
- static ɵfac: i0.ɵɵFactoryDeclaration<ShortTimePipe, [null, null, { optional: true; }]>;
2575
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShortTimePipe, never>;
2590
2576
  static ɵpipe: i0.ɵɵPipeDeclaration<ShortTimePipe, "shortTime", true>;
2591
2577
  }
2592
2578
 
2593
2579
  declare class ShortDatePipe extends DatePipe implements PipeTransform {
2594
2580
  private configStateService;
2595
- constructor(configStateService: ConfigStateService, locale: string, defaultTimezone?: string | null);
2581
+ constructor();
2596
2582
  transform(value: Date | string | number, format?: string, timezone?: string, locale?: string): string | null;
2597
2583
  transform(value: null | undefined, format?: string, timezone?: string, locale?: string): null;
2598
- static ɵfac: i0.ɵɵFactoryDeclaration<ShortDatePipe, [null, null, { optional: true; }]>;
2584
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShortDatePipe, never>;
2599
2585
  static ɵpipe: i0.ɵɵPipeDeclaration<ShortDatePipe, "shortDate", true>;
2600
2586
  }
2601
2587
 
2602
2588
  declare const INJECTOR_PIPE_DATA_TOKEN: InjectionToken<PipeTransform>;
2603
2589
  declare class ToInjectorPipe implements PipeTransform {
2604
2590
  private injector;
2605
- constructor(injector: Injector);
2606
2591
  transform(value: any, token?: InjectionToken<any>, name?: string): Injector;
2607
2592
  static ɵfac: i0.ɵɵFactoryDeclaration<ToInjectorPipe, never>;
2608
2593
  static ɵpipe: i0.ɵɵPipeDeclaration<ToInjectorPipe, "toInjector", true>;
@@ -2719,7 +2704,7 @@ declare const CookieLanguageProvider: i0.EnvironmentProviders;
2719
2704
 
2720
2705
  declare class LocaleId extends String {
2721
2706
  private localizationService;
2722
- constructor(localizationService: LocalizationService);
2707
+ constructor();
2723
2708
  toString(): string;
2724
2709
  valueOf(): string;
2725
2710
  }
@@ -2742,6 +2727,15 @@ declare function withCompareFuncFactory(factory: (a: SortableItem, b: SortableIt
2742
2727
  declare function provideAbpCore(...features: CoreFeature<CoreFeatureKind>[]): i0.EnvironmentProviders;
2743
2728
  declare function provideAbpCoreChild(options?: ABP.Child): i0.EnvironmentProviders;
2744
2729
 
2730
+ declare class AbpTenantService {
2731
+ private restService;
2732
+ apiName: string;
2733
+ findTenantById: (id: string, config?: Partial<Rest.Config>) => rxjs.Observable<FindTenantResultDto>;
2734
+ findTenantByName: (name: string, config?: Partial<Rest.Config>) => rxjs.Observable<FindTenantResultDto>;
2735
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbpTenantService, never>;
2736
+ static ɵprov: i0.ɵɵInjectableDeclaration<AbpTenantService>;
2737
+ }
2738
+
2745
2739
  interface ActionApiDescriptionModel {
2746
2740
  uniqueName?: string;
2747
2741
  name?: string;
@@ -2835,7 +2829,6 @@ declare class AbpApiDefinitionService {
2835
2829
  private restService;
2836
2830
  apiName: string;
2837
2831
  getByModel: (model: ApplicationApiDescriptionModelRequestDto, config?: Partial<Rest.Config>) => rxjs.Observable<ApplicationApiDescriptionModel>;
2838
- constructor(restService: RestService);
2839
2832
  static ɵfac: i0.ɵɵFactoryDeclaration<AbpApiDefinitionService, never>;
2840
2833
  static ɵprov: i0.ɵɵInjectableDeclaration<AbpApiDefinitionService>;
2841
2834
  }
@@ -2860,6 +2853,22 @@ declare namespace index_d {
2860
2853
  export type { index_d_EntityExtensionDto as EntityExtensionDto, index_d_ExtensionEnumDto as ExtensionEnumDto, index_d_ExtensionEnumFieldDto as ExtensionEnumFieldDto, index_d_ExtensionPropertyApiCreateDto as ExtensionPropertyApiCreateDto, index_d_ExtensionPropertyApiDto as ExtensionPropertyApiDto, index_d_ExtensionPropertyApiGetDto as ExtensionPropertyApiGetDto, index_d_ExtensionPropertyApiUpdateDto as ExtensionPropertyApiUpdateDto, index_d_ExtensionPropertyAttributeDto as ExtensionPropertyAttributeDto, index_d_ExtensionPropertyDto as ExtensionPropertyDto, index_d_ExtensionPropertyUiDto as ExtensionPropertyUiDto, index_d_ExtensionPropertyUiFormDto as ExtensionPropertyUiFormDto, index_d_ExtensionPropertyUiLookupDto as ExtensionPropertyUiLookupDto, index_d_ExtensionPropertyUiTableDto as ExtensionPropertyUiTableDto, index_d_LocalizableStringDto as LocalizableStringDto, index_d_ModuleExtensionDto as ModuleExtensionDto, index_d_ObjectExtensionsDto as ObjectExtensionsDto };
2861
2854
  }
2862
2855
 
2856
+ declare class AbpApplicationConfigurationService {
2857
+ private restService;
2858
+ apiName: string;
2859
+ get: (options: ApplicationConfigurationRequestOptions, config?: Partial<Rest.Config>) => rxjs.Observable<ApplicationConfigurationDto>;
2860
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbpApplicationConfigurationService, never>;
2861
+ static ɵprov: i0.ɵɵInjectableDeclaration<AbpApplicationConfigurationService>;
2862
+ }
2863
+
2864
+ declare class AbpApplicationLocalizationService {
2865
+ private restService;
2866
+ apiName: string;
2867
+ get: (input: ApplicationLocalizationRequestDto, config?: Partial<Rest.Config>) => rxjs.Observable<ApplicationLocalizationDto>;
2868
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbpApplicationLocalizationService, never>;
2869
+ static ɵprov: i0.ɵɵInjectableDeclaration<AbpApplicationLocalizationService>;
2870
+ }
2871
+
2863
2872
  type AppInitErrorFn = (error: any) => void;
2864
2873
  declare const APP_INIT_ERROR_HANDLERS: InjectionToken<AppInitErrorFn[]>;
2865
2874
 
@@ -2906,6 +2915,9 @@ declare const DYNAMIC_LAYOUTS_TOKEN: InjectionToken<Map<string, string>>;
2906
2915
 
2907
2916
  declare const DISABLE_PROJECT_NAME: InjectionToken<boolean>;
2908
2917
 
2918
+ declare const SSR_FLAG: i0.StateKey<boolean>;
2919
+ declare const APP_STARTED_WITH_SSR: InjectionToken<boolean>;
2920
+
2909
2921
  declare function pushValueTo<T>(array: T[]): (element: T) => T[];
2910
2922
 
2911
2923
  declare function noop(): () => void;
@@ -2963,6 +2975,7 @@ declare function createLocalizer(localization: ApplicationLocalizationConfigurat
2963
2975
  declare function createLocalizerWithFallback(localization: ApplicationLocalizationConfigurationDto): (resourceNames: string[], keys: string[], defaultValue: string) => string;
2964
2976
  declare function createLocalizationPipeKeyGenerator(localization: ApplicationLocalizationConfigurationDto): (resourceNames: string[], keys: string[], defaultKey: string | undefined) => string;
2965
2977
 
2978
+ declare function getCurrentTenancyNameFromUrl(tenantKey: string, injector: any): string | null;
2966
2979
  declare function parseTenantFromUrl(injector: Injector): Promise<void | FindTenantResultDto>;
2967
2980
 
2968
2981
  declare function isNumber(value: string | number): boolean;
@@ -2977,6 +2990,14 @@ declare function createTokenParser(format: string): (str: string) => Record<stri
2977
2990
  declare function interpolate(text: string, params: string[]): string;
2978
2991
  declare function escapeHtmlChars(value: any): any;
2979
2992
 
2993
+ declare class ServerCookieParser {
2994
+ static parse(cookieHeader: string): {
2995
+ [key: string]: string;
2996
+ };
2997
+ static middleware(): (req: any, res: any, next: any) => void;
2998
+ static getCookie(req: any, name: string): string | undefined;
2999
+ }
3000
+
2980
3001
  interface MinAgeError {
2981
3002
  minAge: {
2982
3003
  age: number;
@@ -3055,7 +3076,6 @@ declare const AbpValidators: {
3055
3076
 
3056
3077
  declare class ApiInterceptor implements IApiInterceptor {
3057
3078
  private httpWaitService;
3058
- constructor(httpWaitService: HttpWaitService);
3059
3079
  getAdditionalHeaders(existingHeaders?: HttpHeaders): HttpHeaders;
3060
3080
  intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
3061
3081
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiInterceptor, never>;
@@ -3065,12 +3085,9 @@ interface IApiInterceptor extends HttpInterceptor {
3065
3085
  getAdditionalHeaders(existingHeaders?: HttpHeaders): HttpHeaders;
3066
3086
  }
3067
3087
 
3068
- declare class TimezoneInterceptor implements HttpInterceptor {
3069
- protected readonly timezoneService: TimezoneService;
3070
- intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
3071
- static ɵfac: i0.ɵɵFactoryDeclaration<TimezoneInterceptor, never>;
3072
- static ɵprov: i0.ɵɵInjectableDeclaration<TimezoneInterceptor>;
3073
- }
3088
+ declare const timezoneInterceptor: HttpInterceptorFn;
3089
+
3090
+ declare const transferStateInterceptor: HttpInterceptorFn;
3074
3091
 
3075
- export { ABP, APP_INIT_ERROR_HANDLERS, AbpApiDefinitionService, AbpApplicationConfigurationService, AbpApplicationLocalizationService, AbpLocalStorageService, AbpTenantService, AbpTitleStrategy, AbpValidators, AbpWindowService, AbstractAuthErrorFilter, AbstractNavTreeService, AbstractNgModelComponent, AbstractTreeService, ApiInterceptor, AuditedEntityDto, AuditedEntityWithUserDto, AuthErrorEvent, AuthErrorFilterService, AuthEvent, AuthGuard, AuthInfoEvent, AuthService, AuthSuccessEvent, AutofocusDirective, BaseCoreModule, BaseTreeNode, CHECK_AUTHENTICATION_STATE_FN_KEY, CONTAINER_STRATEGY, CONTENT_SECURITY_STRATEGY, CONTENT_STRATEGY, CONTEXT_STRATEGY, COOKIE_LANGUAGE_KEY, CORE_OPTIONS, CROSS_ORIGIN_STRATEGY, ClearContainerStrategy, ComponentContextStrategy, ComponentProjectionStrategy, ConfigStateService, ContainerStrategy, ContentProjectionService, ContentSecurityStrategy, ContentStrategy, ContextStrategy, CookieLanguageProvider, CoreFeatureKind, CoreModule, CreationAuditedEntityDto, CreationAuditedEntityWithUserDto, CrossOriginStrategy, DEFAULT_DYNAMIC_LAYOUTS, DISABLE_PROJECT_NAME, DOM_STRATEGY, DYNAMIC_LAYOUTS_TOKEN, DefaultQueueManager, DomInsertionService, DomStrategy, DynamicLayoutComponent, EntityDto, EnvironmentService, ExtensibleAuditedEntityDto, ExtensibleAuditedEntityWithUserDto, ExtensibleCreationAuditedEntityDto, ExtensibleCreationAuditedEntityWithUserDto, ExtensibleEntityDto, ExtensibleFullAuditedEntityDto, ExtensibleFullAuditedEntityWithUserDto, ExtensibleLimitedResultRequestDto, ExtensibleObject, ExtensiblePagedAndSortedResultRequestDto, ExtensiblePagedResultRequestDto, ExternalHttpClient, ForDirective, FormSubmitDirective, FullAuditedEntityDto, FullAuditedEntityWithUserDto, HtmlEncodePipe, HtmlEncodingService, HttpErrorReporterService, HttpWaitService, INCUDE_LOCALIZATION_RESOURCES_TOKEN, INJECTOR_PIPE_DATA_TOKEN, IS_EXTERNAL_REQUEST, IncludeLocalizationResourcesProvider, InitDirective, InputEventDebounceDirective, InsertIntoContainerStrategy, InternalStore, InternetConnectionService, LIST_QUERY_DEBOUNCE_TIME, LOADER_DELAY, LOADING_STRATEGY, LOCALIZATIONS, LazyLoadService, LazyLocalizationPipe, LazyModuleFactory, LimitedResultRequestDto, ListResultDto, ListService, LoadingStrategy, LocalStorageListenerService, LocaleId, LocaleProvider, LocalizationModule, LocalizationPipe, LocalizationService, LooseContentSecurityStrategy, MultiTenancyService, NAVIGATE_TO_MANAGE_PROFILE, NavigationEvent, NoContentSecurityStrategy, NoContextStrategy, NoCrossOriginStrategy, OTHERS_GROUP, index_d as ObjectExtending, PIPE_TO_LOGIN_FN_KEY, PROJECTION_STRATEGY, PagedAndSortedResultRequestDto, PagedResultDto, PagedResultRequestDto, PermissionDirective, PermissionGuard, PermissionService, ProjectionStrategy, QUEUE_MANAGER, ReplaceableComponents, ReplaceableComponentsService, ReplaceableRouteContainerComponent, ReplaceableTemplateDirective, ResourceWaitService, Rest, RestService, RootComponentProjectionStrategy, RootCoreModule, RouterEvents, RouterOutletComponent, RouterWaitService, RoutesService, SET_TOKEN_RESPONSE_TO_STORAGE_FN_KEY, SORT_COMPARE_FUNC, SafeHtmlPipe, ScriptContentStrategy, ScriptLoadingStrategy, Session, SessionStateService, ShortDatePipe, ShortDateTimePipe, ShortTimePipe, ShowPasswordDirective, SortPipe, StopPropagationDirective, StyleContentStrategy, StyleLoadingStrategy, SubscriptionService, TENANT_KEY, TENANT_NOT_FOUND_BY_NAME, TemplateContextStrategy, TemplateProjectionStrategy, TimeService, TimezoneInterceptor, TimezoneService, ToInjectorPipe, TrackByService, TrackCapsLockDirective, UtcToLocalPipe, WebHttpUrlEncodingCodec, authGuard, checkHasProp, compareFuncFactory, coreOptionsFactory, createGroupMap, createLocalizationPipeKeyGenerator, createLocalizer, createLocalizerWithFallback, createMapFromList, createTokenParser, createTreeFromList, createTreeNodeFilterCreator, deepMerge, differentLocales, downloadBlob, eLayoutType, eThemeSharedComponents, escapeHtmlChars, exists, featuresFactory, findRoute, fromLazyLoad, generateHash, generatePassword, getInitialData, getLocaleDirection, getPathName, getRemoteEnv, getRoutePath, getShortDateFormat, getShortDateShortTimeFormat, getShortTimeFormat, interpolate, isArray, isNode, isNullOrEmpty, isNullOrUndefined, isNumber, isObject, isObjectAndNotArray, isObjectAndNotArrayNotNode, isUndefinedOrEmptyString, localeInitializer, localizationContributor, localizations$, mapEnumToOptions, noop, parseTenantFromUrl, permissionGuard, provideAbpCore, provideAbpCoreChild, pushValueTo, reloadRoute, setLanguageToCookie, trackBy, trackByDeep, uuid, validateCreditCard, validateMinAge, validateRange, validateRequired, validateStringLength, validateUniqueCharacter, validateUrl, withCompareFuncFactory, withOptions, withTitleStrategy };
3092
+ export { ABP, APP_INIT_ERROR_HANDLERS, APP_STARTED_WITH_SSR, AbpApiDefinitionService, AbpApplicationConfigurationService, AbpApplicationLocalizationService, AbpCookieStorageService, AbpLocalStorageService, AbpTenantService, AbpTitleStrategy, AbpValidators, AbpWindowService, AbstractAuthErrorFilter, AbstractNavTreeService, AbstractNgModelComponent, AbstractTreeService, ApiInterceptor, AuditedEntityDto, AuditedEntityWithUserDto, AuthErrorEvent, AuthErrorFilterService, AuthEvent, AuthGuard, AuthInfoEvent, AuthService, AuthSuccessEvent, AutofocusDirective, BaseCoreModule, BaseTreeNode, CHECK_AUTHENTICATION_STATE_FN_KEY, CONTAINER_STRATEGY, CONTENT_SECURITY_STRATEGY, CONTENT_STRATEGY, CONTEXT_STRATEGY, COOKIE_LANGUAGE_KEY, CORE_OPTIONS, CROSS_ORIGIN_STRATEGY, ClearContainerStrategy, ComponentContextStrategy, ComponentProjectionStrategy, ConfigStateService, ContainerStrategy, ContentProjectionService, ContentSecurityStrategy, ContentStrategy, ContextStrategy, CookieLanguageProvider, CoreFeatureKind, CoreModule, CreationAuditedEntityDto, CreationAuditedEntityWithUserDto, CrossOriginStrategy, DEFAULT_DYNAMIC_LAYOUTS, DISABLE_PROJECT_NAME, DOM_STRATEGY, DYNAMIC_LAYOUTS_TOKEN, DefaultQueueManager, DomInsertionService, DomStrategy, DomStrategyService, DynamicLayoutComponent, EntityDto, EnvironmentService, ExtensibleAuditedEntityDto, ExtensibleAuditedEntityWithUserDto, ExtensibleCreationAuditedEntityDto, ExtensibleCreationAuditedEntityWithUserDto, ExtensibleEntityDto, ExtensibleFullAuditedEntityDto, ExtensibleFullAuditedEntityWithUserDto, ExtensibleLimitedResultRequestDto, ExtensibleObject, ExtensiblePagedAndSortedResultRequestDto, ExtensiblePagedResultRequestDto, ExternalHttpClient, ForDirective, FormSubmitDirective, FullAuditedEntityDto, FullAuditedEntityWithUserDto, HtmlEncodePipe, HtmlEncodingService, HttpErrorReporterService, HttpWaitService, INCUDE_LOCALIZATION_RESOURCES_TOKEN, INJECTOR_PIPE_DATA_TOKEN, IS_EXTERNAL_REQUEST, IncludeLocalizationResourcesProvider, InitDirective, InputEventDebounceDirective, InsertIntoContainerStrategy, InternalStore, InternetConnectionService, LIST_QUERY_DEBOUNCE_TIME, LOADER_DELAY, LOADING_STRATEGY, LOCALIZATIONS, LazyLoadService, LazyLocalizationPipe, LazyModuleFactory, LimitedResultRequestDto, ListResultDto, ListService, LoadingStrategy, LocalStorageListenerService, LocaleId, LocaleProvider, LocalizationModule, LocalizationPipe, LocalizationService, LooseContentSecurityStrategy, MultiTenancyService, NAVIGATE_TO_MANAGE_PROFILE, NavigationEvent, NoContentSecurityStrategy, NoContextStrategy, NoCrossOriginStrategy, OTHERS_GROUP, index_d as ObjectExtending, PIPE_TO_LOGIN_FN_KEY, PROJECTION_STRATEGY, PagedAndSortedResultRequestDto, PagedResultDto, PagedResultRequestDto, PermissionDirective, PermissionGuard, PermissionService, ProjectionStrategy, QUEUE_MANAGER, ReplaceableComponents, ReplaceableComponentsService, ReplaceableRouteContainerComponent, ReplaceableTemplateDirective, ResourceWaitService, Rest, RestService, RootComponentProjectionStrategy, RootCoreModule, RouterEvents, RouterOutletComponent, RouterWaitService, RoutesService, SET_TOKEN_RESPONSE_TO_STORAGE_FN_KEY, SORT_COMPARE_FUNC, SSR_FLAG, SafeHtmlPipe, ScriptContentStrategy, ScriptLoadingStrategy, ServerCookieParser, Session, SessionStateService, ShortDatePipe, ShortDateTimePipe, ShortTimePipe, ShowPasswordDirective, SortPipe, StopPropagationDirective, StyleContentStrategy, StyleLoadingStrategy, SubscriptionService, TENANT_KEY, TENANT_NOT_FOUND_BY_NAME, TemplateContextStrategy, TemplateProjectionStrategy, TimeService, TimezoneService, ToInjectorPipe, TrackByService, TrackCapsLockDirective, UtcToLocalPipe, WebHttpUrlEncodingCodec, asyncAuthGuard, authGuard, checkHasProp, compareFuncFactory, coreOptionsFactory, createGroupMap, createLocalizationPipeKeyGenerator, createLocalizer, createLocalizerWithFallback, createMapFromList, createTokenParser, createTreeFromList, createTreeNodeFilterCreator, deepMerge, differentLocales, downloadBlob, eLayoutType, eThemeSharedComponents, escapeHtmlChars, exists, featuresFactory, findRoute, fromLazyLoad, generateHash, generatePassword, getCurrentTenancyNameFromUrl, getInitialData, getLocaleDirection, getPathName, getRemoteEnv, getRoutePath, getShortDateFormat, getShortDateShortTimeFormat, getShortTimeFormat, interpolate, isArray, isNode, isNullOrEmpty, isNullOrUndefined, isNumber, isObject, isObjectAndNotArray, isObjectAndNotArrayNotNode, isUndefinedOrEmptyString, localeInitializer, localizationContributor, localizations$, mapEnumToOptions, noop, parseTenantFromUrl, permissionGuard, provideAbpCore, provideAbpCoreChild, pushValueTo, reloadRoute, setLanguageToCookie, timezoneInterceptor, trackBy, trackByDeep, transferStateInterceptor, uuid, validateCreditCard, validateMinAge, validateRange, validateRequired, validateStringLength, validateUniqueCharacter, validateUrl, withCompareFuncFactory, withOptions, withTitleStrategy };
3076
3093
  export type { AbpAuthResponse, ActionApiDescriptionModel, ApiConfig, Apis, AppInitErrorFn, ApplicationApiDescriptionModel, ApplicationApiDescriptionModelRequestDto, ApplicationAuthConfigurationDto, ApplicationConfigurationDto, ApplicationConfigurationRequestOptions, ApplicationFeatureConfigurationDto, ApplicationGlobalFeatureConfigurationDto, ApplicationInfo, ApplicationLocalizationConfigurationDto, ApplicationLocalizationDto, ApplicationLocalizationRequestDto, ApplicationLocalizationResourceDto, ApplicationSettingConfigurationDto, AuthErrorFilter, CheckAuthenticationStateFn, ClockDto, CompareFn, ControllerApiDescriptionModel, ControllerInterfaceApiDescriptionModel, CoreFeature, CreditCardError, CurrentCultureDto, CurrentTenantDto, CurrentUserDto, DateTimeFormatDto, DeepPartial, ElementOptions, EntityExtensionDto, Environment, EventType, ExtensionEnumDto, ExtensionEnumFieldDto, ExtensionPropertyApiCreateDto, ExtensionPropertyApiDto, ExtensionPropertyApiGetDto, ExtensionPropertyApiUpdateDto, ExtensionPropertyAttributeDto, ExtensionPropertyDto, ExtensionPropertyUiDto, ExtensionPropertyUiFormDto, ExtensionPropertyUiLookupDto, ExtensionPropertyUiTableDto, FindTenantResultDto, HasAdditional, HttpRequestInfo, HttpWaitState, IAbpGuard, IApiInterceptor, IAuthService, IanaTimeZone, Impersonation, InferredContextOf, InferredInstanceOf, InterfaceMethodApiDescriptionModel, LanguageInfo, LegacyLanguageDto, LocalizableStringDto, LocalizationParam, LocalizationWithDefault, LoginParams, MethodParameterApiDescriptionModel, MinAgeError, MinAgeOptions, ModuleApiDescriptionModel, ModuleExtensionDto, MultiTenancyInfoDto, NameValue, NavigationEventKey, NodeKey, NodeValue, ObjectExtensionsDto, ParameterApiDescriptionModel, PipeToLoginFn, Primitive, PropertyApiDescriptionModel, QueryStreamCreatorCallback, QueueManager, RangeError, RangeOptions, RemoteEnv, RequestStatus, RequiredError, RequiredOptions, ResourceDto, ResourceWaitState, ReturnValueApiDescriptionModel, RouteGroup, RouterWaitState, SetTokenResponseToStorageFn, SortOrder, SortableItem, Strict, StringLengthError, StringLengthOptions, TimeZone, TimingDto, TreeNode, TypeApiDescriptionModel, UniqueCharacterError, UrlError, WindowsTimeZone, customMergeFn };