@elite.framework/ng.core 2.0.25 → 2.0.27
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/models/index.d.ts
CHANGED
|
@@ -289,6 +289,24 @@ interface ApplicationConfigurationDto {
|
|
|
289
289
|
timing: TimingDto;
|
|
290
290
|
clock: ClockDto;
|
|
291
291
|
extraProperties: Record<string, object>;
|
|
292
|
+
navigation: Navigation;
|
|
293
|
+
}
|
|
294
|
+
interface Navigation {
|
|
295
|
+
menus: NavigationMenuItem[];
|
|
296
|
+
}
|
|
297
|
+
interface NavigationMenuItem {
|
|
298
|
+
name: string;
|
|
299
|
+
displayName: string | null;
|
|
300
|
+
order: number;
|
|
301
|
+
icon: string | null;
|
|
302
|
+
url: string;
|
|
303
|
+
target: string | null;
|
|
304
|
+
permission: string | null;
|
|
305
|
+
feature: string | null;
|
|
306
|
+
isEnabled: boolean;
|
|
307
|
+
isVisible: boolean;
|
|
308
|
+
customData: any | null;
|
|
309
|
+
items: NavigationMenuItem[];
|
|
292
310
|
}
|
|
293
311
|
interface ApplicationAuthConfigurationDto {
|
|
294
312
|
grantedPolicies: Record<string, boolean>;
|
|
@@ -647,4 +665,4 @@ declare namespace ReplaceableComponents {
|
|
|
647
665
|
}
|
|
648
666
|
|
|
649
667
|
export { AttachmentDto, AuthErrorEvent, AuthEvent, AuthInfoEvent, AuthSuccessEvent, DEFAULT_REDIRECT_KEY, GeneralResponse, ListResultDto, NameValue, NavItem, PagedResultDto, PaymentPeriodType, ReplaceableComponents, Rest, Session, SubscriptionPaymentType, UserMenu, checkHasProp, eLayoutType, eThemeSharedComponents };
|
|
650
|
-
export type { ActionDef, ApiConfig, Apis, ApplicationAuthConfigurationDto, ApplicationConfigurationDto, ApplicationConfigurationRequestOptions, ApplicationFeatureConfigurationDto, ApplicationGlobalFeatureConfigurationDto, ApplicationInfo, ApplicationInfoDto, ApplicationLocalizationConfigurationDto, ApplicationLocalizationDto, ApplicationLocalizationRequestDto, ApplicationLocalizationResourceDto, ApplicationSettingConfigurationDto, AuthErrorFilter, Badge, BranchLoginInfoDto, ButtonConfig, ButtonSeverity, ButtonSize, ButtonVariant, CheckAuthenticationStateFn, Child, ClockDto, ColumnDef, CurrentCultureDto, CurrentTenantDto, CurrentUserDto, DateTimeFormatDto, DeepPartial, Dictionary, EditionInfoDto, Environment, EventType, ExceptFn, ExternalServices, ExtractFromOutput, FilterDef, FilterType, HasAdditional, IanaTimeZone, IconPosition, Impersonation, InferredContextOf, InferredInstanceOf, LanguageInfo, Localization, LocalizationParam, LocalizationResource, LocalizationWithDefault, LoginParams, MultiTenancyInfoDto, Nav, NavBarPropPredicate, NavigationCommandsFn, NavigationExtrasFn, NgxPermission, NgxPermissionsRouterData, NgxRedirectToNavigationParameters, OnlyFn, PaginatedResult, PipeToLoginFn, Primitive, RedirectTo, RedirectToFn, RemoteEnv, Root, Route, SetTokenResponseToStorageFn, SortableItem, Strict, Tab, TenantLoginInfoDto, TimeZone, TimingDto, UserLoginInfoDto, UserMenuTextTemplate, ValidationFn, WindowsTimeZone, customMergeFn };
|
|
668
|
+
export type { ActionDef, ApiConfig, Apis, ApplicationAuthConfigurationDto, ApplicationConfigurationDto, ApplicationConfigurationRequestOptions, ApplicationFeatureConfigurationDto, ApplicationGlobalFeatureConfigurationDto, ApplicationInfo, ApplicationInfoDto, ApplicationLocalizationConfigurationDto, ApplicationLocalizationDto, ApplicationLocalizationRequestDto, ApplicationLocalizationResourceDto, ApplicationSettingConfigurationDto, AuthErrorFilter, Badge, BranchLoginInfoDto, ButtonConfig, ButtonSeverity, ButtonSize, ButtonVariant, CheckAuthenticationStateFn, Child, ClockDto, ColumnDef, CurrentCultureDto, CurrentTenantDto, CurrentUserDto, DateTimeFormatDto, DeepPartial, Dictionary, EditionInfoDto, Environment, EventType, ExceptFn, ExternalServices, ExtractFromOutput, FilterDef, FilterType, HasAdditional, IanaTimeZone, IconPosition, Impersonation, InferredContextOf, InferredInstanceOf, LanguageInfo, Localization, LocalizationParam, LocalizationResource, LocalizationWithDefault, LoginParams, MultiTenancyInfoDto, Nav, NavBarPropPredicate, Navigation, NavigationCommandsFn, NavigationExtrasFn, NavigationMenuItem, NgxPermission, NgxPermissionsRouterData, NgxRedirectToNavigationParameters, OnlyFn, PaginatedResult, PipeToLoginFn, Primitive, RedirectTo, RedirectToFn, RemoteEnv, Root, Route, SetTokenResponseToStorageFn, SortableItem, Strict, Tab, TenantLoginInfoDto, TimeZone, TimingDto, UserLoginInfoDto, UserMenuTextTemplate, ValidationFn, WindowsTimeZone, customMergeFn };
|
package/package.json
CHANGED
package/services/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as rxjs from 'rxjs';
|
|
|
2
2
|
import { Observable, Subscription, PartialObserver, BehaviorSubject } from 'rxjs';
|
|
3
3
|
import { HttpClient, HttpRequest, HttpErrorResponse } from '@angular/common/http';
|
|
4
4
|
import * as _elite_framework_ng_core_models from '@elite.framework/ng.core/models';
|
|
5
|
-
import { Root, Rest, PaginatedResult, ApplicationLocalizationRequestDto, ApplicationLocalizationDto, ApplicationConfigurationRequestOptions, ApplicationConfigurationDto, ApplicationGlobalFeatureConfigurationDto, RedirectTo, RedirectToFn, CurrentTenantDto, Session, Localization, LocalizationWithDefault, ApplicationLocalizationResourceDto, Nav, Route as Route$1, Environment, TenantLoginInfoDto, NavItem, SortableItem, UserMenu, ReplaceableComponents } from '@elite.framework/ng.core/models';
|
|
5
|
+
import { Root, Rest, PaginatedResult, ApplicationLocalizationRequestDto, ApplicationLocalizationDto, ApplicationConfigurationRequestOptions, ApplicationConfigurationDto, Navigation, ApplicationGlobalFeatureConfigurationDto, RedirectTo, RedirectToFn, CurrentTenantDto, Session, Localization, LocalizationWithDefault, ApplicationLocalizationResourceDto, Nav, Route as Route$1, Environment, TenantLoginInfoDto, NavItem, SortableItem, UserMenu, ReplaceableComponents } from '@elite.framework/ng.core/models';
|
|
6
6
|
import * as i0 from '@angular/core';
|
|
7
7
|
import { InjectionToken, Injector, OnDestroy, Type, NgZone } from '@angular/core';
|
|
8
8
|
import * as qs from 'qs';
|
|
@@ -521,6 +521,9 @@ declare class ConfigStateService {
|
|
|
521
521
|
extraProperties?: {
|
|
522
522
|
[x: string]: object | undefined;
|
|
523
523
|
} | undefined;
|
|
524
|
+
navigation?: {
|
|
525
|
+
menus?: _elite_framework_ng_core_models.NavigationMenuItem[] | undefined;
|
|
526
|
+
} | undefined;
|
|
524
527
|
}) => Slice, filterFn?: ((x: Slice) => x is Slice & ({} | null)) | undefined) => Observable<Slice & ({} | null)>;
|
|
525
528
|
constructor(abpConfigService: ApplicationConfigurationService, applicationLocalizationService: ApplicationLocalizationService, includeLocalizationResources: boolean | null);
|
|
526
529
|
private initUpdateStream;
|
|
@@ -764,6 +767,9 @@ declare class ConfigStateService {
|
|
|
764
767
|
extraProperties?: {
|
|
765
768
|
[x: string]: object | undefined;
|
|
766
769
|
} | undefined;
|
|
770
|
+
navigation?: {
|
|
771
|
+
menus?: _elite_framework_ng_core_models.NavigationMenuItem[] | undefined;
|
|
772
|
+
} | undefined;
|
|
767
773
|
}>;
|
|
768
774
|
refreshLocalization(lang: string): Observable<null>;
|
|
769
775
|
getOne$<K extends keyof ApplicationConfigurationDto>(key: K): Observable<ApplicationConfigurationDto[K]>;
|
|
@@ -772,6 +778,8 @@ declare class ConfigStateService {
|
|
|
772
778
|
getAll(): ApplicationConfigurationDto;
|
|
773
779
|
getDeep$(keys: string[] | string): Observable<any>;
|
|
774
780
|
getDeep(keys: string[] | string): any;
|
|
781
|
+
getNavigation(): Navigation | null;
|
|
782
|
+
getNavigation$(): Observable<Navigation | null>;
|
|
775
783
|
getFeature(key: string): string;
|
|
776
784
|
getFeature$(key: string): Observable<string>;
|
|
777
785
|
getFeatures(keys: string[]): {} | null;
|
|
@@ -1238,6 +1246,8 @@ declare abstract class AbstractNavTreeService<T extends Nav> extends AbstractTre
|
|
|
1238
1246
|
readonly hide: (item: T) => boolean;
|
|
1239
1247
|
readonly sort: (a: T, b: T) => number;
|
|
1240
1248
|
constructor(injector: Injector);
|
|
1249
|
+
private convertNavigationToRoutes;
|
|
1250
|
+
private extractPathFromUrl;
|
|
1241
1251
|
protected isGranted({ requiredPolicy }: T): boolean;
|
|
1242
1252
|
hasChildren(identifier: string): boolean;
|
|
1243
1253
|
hasInvisibleChild(identifier: string): boolean;
|