@stemy/ngx-utils 12.1.1 → 13.0.0
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/bundles/stemy-ngx-utils.umd.js +27 -30
- package/bundles/stemy-ngx-utils.umd.js.map +1 -1
- package/esm2015/ngx-utils/services/config.service.js +4 -4
- package/esm2015/ngx-utils/services/error-handler.service.js +2 -2
- package/esm2015/ngx-utils/services/static-language.service.js +17 -17
- package/esm2015/ngx-utils/services/storage.service.js +4 -4
- package/esm2020/ngx-utils/common-types.mjs +116 -0
- package/esm2020/ngx-utils/components/dynamic-table/dynamic-table.component.mjs +178 -0
- package/esm2020/ngx-utils/components/pagination-menu/pagination-menu.component.mjs +101 -0
- package/esm2020/ngx-utils/components/unordered-list/unordered-list.component.mjs +65 -0
- package/esm2020/ngx-utils/directives/async-method.base.mjs +68 -0
- package/esm2020/ngx-utils/directives/async-method.directive.mjs +28 -0
- package/esm2020/ngx-utils/directives/background.directive.mjs +51 -0
- package/esm2020/ngx-utils/directives/dynamic-table-template.directive.mjs +20 -0
- package/esm2020/ngx-utils/directives/global-template.directive.mjs +30 -0
- package/esm2020/ngx-utils/directives/icon.directive.mjs +67 -0
- package/esm2020/ngx-utils/directives/ngx-template-outlet.directive.mjs +90 -0
- package/esm2020/ngx-utils/directives/pagination-item.directive.mjs +33 -0
- package/esm2020/ngx-utils/directives/pagination.directive.mjs +83 -0
- package/esm2020/ngx-utils/directives/resource-if.directive.mjs +50 -0
- package/esm2020/ngx-utils/directives/sticky-class.directive.mjs +34 -0
- package/esm2020/ngx-utils/directives/sticky.directive.mjs +55 -0
- package/esm2020/ngx-utils/directives/unordered-list-item.directive.mjs +77 -0
- package/esm2020/ngx-utils/directives/unordered-list-template.directive.mjs +26 -0
- package/esm2020/ngx-utils/ngx-utils.module.mjs +321 -0
- package/esm2020/ngx-utils/pipes/chunk.pipe.mjs +25 -0
- package/esm2020/ngx-utils/pipes/entries.pipe.mjs +28 -0
- package/esm2020/ngx-utils/pipes/extra-item-properties.pipe.mjs +31 -0
- package/esm2020/ngx-utils/pipes/filter.pipe.mjs +42 -0
- package/esm2020/ngx-utils/pipes/find.pipe.mjs +29 -0
- package/esm2020/ngx-utils/pipes/format-number.pipe.mjs +21 -0
- package/esm2020/ngx-utils/pipes/get-offset.pipe.mjs +17 -0
- package/esm2020/ngx-utils/pipes/get-type.pipe.mjs +16 -0
- package/esm2020/ngx-utils/pipes/global-template.pipe.mjs +41 -0
- package/esm2020/ngx-utils/pipes/group-by.pipe.mjs +27 -0
- package/esm2020/ngx-utils/pipes/is-type.pipe.mjs +16 -0
- package/esm2020/ngx-utils/pipes/join.pipe.mjs +19 -0
- package/esm2020/ngx-utils/pipes/keys.pipe.mjs +22 -0
- package/esm2020/ngx-utils/pipes/map.pipe.mjs +29 -0
- package/esm2020/ngx-utils/pipes/max.pipe.mjs +26 -0
- package/esm2020/ngx-utils/pipes/min.pipe.mjs +26 -0
- package/esm2020/ngx-utils/pipes/reduce.pipe.mjs +30 -0
- package/esm2020/ngx-utils/pipes/remap.pipe.mjs +32 -0
- package/esm2020/ngx-utils/pipes/replace.pipe.mjs +16 -0
- package/esm2020/ngx-utils/pipes/reverse.pipe.mjs +24 -0
- package/esm2020/ngx-utils/pipes/round.pipe.mjs +21 -0
- package/esm2020/ngx-utils/pipes/safe-html.pipe.mjs +34 -0
- package/esm2020/ngx-utils/pipes/translate.pipe.mjs +86 -0
- package/esm2020/ngx-utils/pipes/values.pipe.mjs +22 -0
- package/esm2020/ngx-utils/plugins/resize-event.plugin.mjs +59 -0
- package/esm2020/ngx-utils/plugins/scroll-event.plugin.mjs +39 -0
- package/esm2020/ngx-utils/services/acl.service.mjs +81 -0
- package/esm2020/ngx-utils/services/api.service.mjs +38 -0
- package/esm2020/ngx-utils/services/auth.service.mjs +14 -0
- package/esm2020/ngx-utils/services/base-http.client.mjs +47 -0
- package/esm2020/ngx-utils/services/base-http.service.mjs +298 -0
- package/esm2020/ngx-utils/services/config.service.mjs +130 -0
- package/esm2020/ngx-utils/services/error-handler.service.mjs +49 -0
- package/esm2020/ngx-utils/services/events.service.mjs +26 -0
- package/esm2020/ngx-utils/services/formatter.service.mjs +47 -0
- package/esm2020/ngx-utils/services/global-template.service.mjs +37 -0
- package/esm2020/ngx-utils/services/icon.service.mjs +26 -0
- package/esm2020/ngx-utils/services/language.service.mjs +113 -0
- package/esm2020/ngx-utils/services/open-api.service.mjs +40 -0
- package/esm2020/ngx-utils/services/promise.service.mjs +55 -0
- package/esm2020/ngx-utils/services/state.service.mjs +173 -0
- package/esm2020/ngx-utils/services/static-language.service.mjs +166 -0
- package/esm2020/ngx-utils/services/storage.service.mjs +49 -0
- package/esm2020/ngx-utils/services/toaster.service.mjs +32 -0
- package/esm2020/ngx-utils/services/translated-url.serializer.mjs +73 -0
- package/esm2020/ngx-utils/services/universal.service.mjs +78 -0
- package/esm2020/ngx-utils/utils/ajax-request-handler.mjs +40 -0
- package/esm2020/ngx-utils/utils/array.utils.mjs +100 -0
- package/esm2020/ngx-utils/utils/auth.guard.mjs +181 -0
- package/esm2020/ngx-utils/utils/canvas.utils.mjs +388 -0
- package/esm2020/ngx-utils/utils/date.utils.mjs +28 -0
- package/esm2020/ngx-utils/utils/file.utils.mjs +90 -0
- package/esm2020/ngx-utils/utils/generic-value.mjs +20 -0
- package/esm2020/ngx-utils/utils/geometry.mjs +132 -0
- package/esm2020/ngx-utils/utils/initializer.mjs +20 -0
- package/esm2020/ngx-utils/utils/loader.utils.mjs +55 -0
- package/esm2020/ngx-utils/utils/math.utils.mjs +15 -0
- package/esm2020/ngx-utils/utils/object.utils.mjs +261 -0
- package/esm2020/ngx-utils/utils/observable.utils.mjs +63 -0
- package/esm2020/ngx-utils/utils/reflect.utils.mjs +33 -0
- package/esm2020/ngx-utils/utils/set.utils.mjs +20 -0
- package/esm2020/ngx-utils/utils/string.utils.mjs +28 -0
- package/esm2020/ngx-utils/utils/timer.utils.mjs +52 -0
- package/esm2020/ngx-utils/utils/unique.utils.mjs +24 -0
- package/esm2020/ngx-utils/utils/vector.mjs +77 -0
- package/esm2020/public_api.mjs +85 -0
- package/esm2020/stemy-ngx-utils.mjs +5 -0
- package/fesm2015/stemy-ngx-utils.js +23 -23
- package/fesm2015/stemy-ngx-utils.js.map +1 -1
- package/fesm2015/stemy-ngx-utils.mjs +5196 -0
- package/fesm2015/stemy-ngx-utils.mjs.map +1 -0
- package/fesm2020/stemy-ngx-utils.mjs +5127 -0
- package/fesm2020/stemy-ngx-utils.mjs.map +1 -0
- package/ngx-utils/components/dynamic-table/dynamic-table.component.d.ts +3 -0
- package/ngx-utils/components/pagination-menu/pagination-menu.component.d.ts +3 -0
- package/ngx-utils/components/unordered-list/unordered-list.component.d.ts +3 -0
- package/ngx-utils/directives/async-method.base.d.ts +3 -0
- package/ngx-utils/directives/async-method.directive.d.ts +3 -0
- package/ngx-utils/directives/background.directive.d.ts +3 -0
- package/ngx-utils/directives/dynamic-table-template.directive.d.ts +3 -0
- package/ngx-utils/directives/global-template.directive.d.ts +3 -0
- package/ngx-utils/directives/icon.directive.d.ts +3 -0
- package/ngx-utils/directives/ngx-template-outlet.directive.d.ts +3 -0
- package/ngx-utils/directives/pagination-item.directive.d.ts +3 -0
- package/ngx-utils/directives/pagination.directive.d.ts +3 -0
- package/ngx-utils/directives/resource-if.directive.d.ts +3 -0
- package/ngx-utils/directives/sticky-class.directive.d.ts +3 -0
- package/ngx-utils/directives/sticky.directive.d.ts +3 -0
- package/ngx-utils/directives/unordered-list-item.directive.d.ts +3 -0
- package/ngx-utils/directives/unordered-list-template.directive.d.ts +3 -0
- package/ngx-utils/pipes/chunk.pipe.d.ts +3 -0
- package/ngx-utils/pipes/entries.pipe.d.ts +3 -0
- package/ngx-utils/pipes/extra-item-properties.pipe.d.ts +3 -0
- package/ngx-utils/pipes/filter.pipe.d.ts +3 -0
- package/ngx-utils/pipes/find.pipe.d.ts +3 -0
- package/ngx-utils/pipes/format-number.pipe.d.ts +3 -0
- package/ngx-utils/pipes/get-offset.pipe.d.ts +3 -0
- package/ngx-utils/pipes/get-type.pipe.d.ts +3 -0
- package/ngx-utils/pipes/global-template.pipe.d.ts +3 -0
- package/ngx-utils/pipes/group-by.pipe.d.ts +3 -0
- package/ngx-utils/pipes/is-type.pipe.d.ts +3 -0
- package/ngx-utils/pipes/join.pipe.d.ts +3 -0
- package/ngx-utils/pipes/keys.pipe.d.ts +3 -0
- package/ngx-utils/pipes/map.pipe.d.ts +3 -0
- package/ngx-utils/pipes/max.pipe.d.ts +3 -0
- package/ngx-utils/pipes/min.pipe.d.ts +3 -0
- package/ngx-utils/pipes/reduce.pipe.d.ts +3 -0
- package/ngx-utils/pipes/remap.pipe.d.ts +3 -0
- package/ngx-utils/pipes/replace.pipe.d.ts +3 -0
- package/ngx-utils/pipes/reverse.pipe.d.ts +3 -0
- package/ngx-utils/pipes/round.pipe.d.ts +3 -0
- package/ngx-utils/pipes/safe-html.pipe.d.ts +3 -0
- package/ngx-utils/pipes/translate.pipe.d.ts +4 -0
- package/ngx-utils/pipes/values.pipe.d.ts +3 -0
- package/ngx-utils/plugins/resize-event.plugin.d.ts +4 -1
- package/ngx-utils/plugins/scroll-event.plugin.d.ts +4 -1
- package/ngx-utils/services/acl.service.d.ts +3 -0
- package/ngx-utils/services/api.service.d.ts +3 -0
- package/ngx-utils/services/base-http.client.d.ts +3 -0
- package/ngx-utils/services/base-http.service.d.ts +3 -0
- package/ngx-utils/services/config.service.d.ts +3 -0
- package/ngx-utils/services/error-handler.service.d.ts +3 -0
- package/ngx-utils/services/events.service.d.ts +3 -0
- package/ngx-utils/services/formatter.service.d.ts +3 -0
- package/ngx-utils/services/global-template.service.d.ts +3 -0
- package/ngx-utils/services/icon.service.d.ts +3 -0
- package/ngx-utils/services/language.service.d.ts +3 -0
- package/ngx-utils/services/open-api.service.d.ts +3 -0
- package/ngx-utils/services/promise.service.d.ts +3 -0
- package/ngx-utils/services/state.service.d.ts +3 -0
- package/ngx-utils/services/static-language.service.d.ts +4 -1
- package/ngx-utils/services/storage.service.d.ts +3 -0
- package/ngx-utils/services/toaster.service.d.ts +3 -0
- package/ngx-utils/services/translated-url.serializer.d.ts +3 -0
- package/ngx-utils/services/universal.service.d.ts +3 -0
- package/ngx-utils/utils/auth.guard.d.ts +3 -0
- package/package.json +38 -19
- package/public_api.d.ts +1 -0
- package/stemy-ngx-utils.d.ts +1 -2
- package/stemy-ngx-utils.metadata.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class EventsService {
|
|
3
4
|
readonly eventForwarded: EventEmitter<Event>;
|
|
4
5
|
readonly stickyUpdated: EventEmitter<boolean>;
|
|
@@ -8,4 +9,6 @@ export declare class EventsService {
|
|
|
8
9
|
constructor();
|
|
9
10
|
event(e: Event): void;
|
|
10
11
|
updateSticky(sticky: boolean): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EventsService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EventsService>;
|
|
11
14
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ILanguageService } from "../common-types";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class FormatterService {
|
|
3
4
|
language: ILanguageService;
|
|
4
5
|
get defaultPrecision(): number;
|
|
@@ -9,4 +10,6 @@ export declare class FormatterService {
|
|
|
9
10
|
formatNumber(value: number | string, format?: string, precision?: number, divider?: number): string;
|
|
10
11
|
formatMillimeter(value: number, precision?: number, divider?: number): string;
|
|
11
12
|
protected getPrecision(precision: number): number;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormatterService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormatterService>;
|
|
12
15
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, TemplateRef } from "@angular/core";
|
|
2
2
|
import { GlobalComponentModifier, IGlobalTemplates } from "../common-types";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class GlobalTemplateService implements IGlobalTemplates {
|
|
4
5
|
readonly templatesUpdated: EventEmitter<void>;
|
|
5
6
|
protected globalTemplates: {
|
|
@@ -13,4 +14,6 @@ export declare class GlobalTemplateService implements IGlobalTemplates {
|
|
|
13
14
|
add(id: string, template: TemplateRef<any>): void;
|
|
14
15
|
remove(id: string): void;
|
|
15
16
|
addComponentModifier(id: string, modifier: GlobalComponentModifier): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GlobalTemplateService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GlobalTemplateService>;
|
|
16
19
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from "@angular/core";
|
|
2
2
|
import { IIconService } from "../common-types";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class IconService implements IIconService {
|
|
4
5
|
get isDisabled(): boolean;
|
|
5
6
|
set isDisabled(value: boolean);
|
|
@@ -7,4 +8,6 @@ export declare class IconService implements IIconService {
|
|
|
7
8
|
protected disabled: boolean;
|
|
8
9
|
constructor();
|
|
9
10
|
getIcon(icon: string, activeIcon: string, active: boolean): Promise<string>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IconService>;
|
|
10
13
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BehaviorSubject, Observable } from "rxjs";
|
|
2
2
|
import { ILanguageSettings, ITranslations } from "../common-types";
|
|
3
3
|
import { StaticLanguageService } from "./static-language.service";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class LanguageService extends StaticLanguageService {
|
|
5
6
|
protected translationRequests: ITranslations;
|
|
6
7
|
protected settingsPromise: Promise<ILanguageSettings>;
|
|
@@ -15,4 +16,6 @@ export declare class LanguageService extends StaticLanguageService {
|
|
|
15
16
|
protected useLanguage(lang: string): Promise<ITranslations>;
|
|
16
17
|
protected loadDictionary(): Promise<any>;
|
|
17
18
|
protected loadSettings(): Promise<ILanguageSettings>;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LanguageService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LanguageService>;
|
|
18
21
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { IApiService, IOpenApiSchema, IOpenApiSchemas } from "../common-types";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class OpenApiService {
|
|
3
4
|
readonly api: IApiService;
|
|
4
5
|
private schemasPromise;
|
|
5
6
|
constructor(api: IApiService);
|
|
6
7
|
getSchemas(): Promise<IOpenApiSchemas>;
|
|
7
8
|
getSchema(name: string): Promise<IOpenApiSchema>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OpenApiService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OpenApiService>;
|
|
8
11
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, NgZone } from "@angular/core";
|
|
2
2
|
import { IPromiseService } from "../common-types";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class PromiseService implements IPromiseService {
|
|
4
5
|
readonly zone: NgZone;
|
|
5
6
|
get count(): number;
|
|
@@ -13,4 +14,6 @@ export declare class PromiseService implements IPromiseService {
|
|
|
13
14
|
reject<T>(value: T | PromiseLike<T>): Promise<T>;
|
|
14
15
|
protected promiseFinished(): void;
|
|
15
16
|
protected add<T>(promise: Promise<T>): Promise<T>;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PromiseService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PromiseService>;
|
|
16
19
|
}
|
|
@@ -3,6 +3,7 @@ import { ActivatedRouteSnapshot, Data, Event, NavigationExtras, Params, Route, R
|
|
|
3
3
|
import { BehaviorSubject, Subscription } from "rxjs";
|
|
4
4
|
import { IRoute, NavigationUrlParam } from "../common-types";
|
|
5
5
|
import { UniversalService } from "./universal.service";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
export declare const emptySnapshot: ActivatedRouteSnapshot;
|
|
7
8
|
export declare const emptyData: Data;
|
|
8
9
|
export declare const emptyParams: Params;
|
|
@@ -43,4 +44,6 @@ export declare class StateService extends BehaviorSubject<any> {
|
|
|
43
44
|
protected openInNewWindow(tree: UrlTree, target: string): boolean;
|
|
44
45
|
protected createUrlTree(url: NavigationUrlParam, extras?: NavigationExtras): [UrlTree, NavigationExtras];
|
|
45
46
|
protected handleRouterEvent: (event: Event) => void;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StateService, [null, null, null, { optional: true; }]>;
|
|
48
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StateService>;
|
|
46
49
|
}
|
|
@@ -4,6 +4,7 @@ import { StorageService } from "./storage.service";
|
|
|
4
4
|
import { UniversalService } from "./universal.service";
|
|
5
5
|
import { BaseHttpClient } from "./base-http.client";
|
|
6
6
|
import { HttpClient } from "@angular/common/http";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class StaticLanguageService implements ILanguageService {
|
|
8
9
|
readonly events: EventsService;
|
|
9
10
|
readonly storage: StorageService;
|
|
@@ -22,7 +23,6 @@ export declare class StaticLanguageService implements ILanguageService {
|
|
|
22
23
|
set disableTranslations(value: boolean);
|
|
23
24
|
get httpClient(): HttpClient;
|
|
24
25
|
get config(): IConfiguration;
|
|
25
|
-
get browserLang(): string;
|
|
26
26
|
get universal(): UniversalService;
|
|
27
27
|
protected editLang: string;
|
|
28
28
|
protected currentLang: string;
|
|
@@ -40,4 +40,7 @@ export declare class StaticLanguageService implements ILanguageService {
|
|
|
40
40
|
getTranslationFromArray(translations: ITranslation[], params?: any, lang?: string): string;
|
|
41
41
|
protected interpolate(expr: string | Function, params?: any): string;
|
|
42
42
|
protected interpolateString(expr: string, params?: any): string;
|
|
43
|
+
protected getDefaultLanguage(): string;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StaticLanguageService, never>;
|
|
45
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StaticLanguageService>;
|
|
43
46
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { StorageMode } from "../common-types";
|
|
2
2
|
import { UniversalService } from "./universal.service";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
/**
|
|
4
5
|
* Use this service instead of Storage to avoid Angular Universal breaks on server environment
|
|
5
6
|
*/
|
|
@@ -9,4 +10,6 @@ export declare class StorageService {
|
|
|
9
10
|
get(key: string, defaultValue?: any, mode?: StorageMode): any;
|
|
10
11
|
set(key: string, value: any, mode?: StorageMode): void;
|
|
11
12
|
remove(key: string, mode?: StorageMode): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StorageService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StorageService>;
|
|
12
15
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ILanguageService, IToasterService } from "../common-types";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class ConsoleToasterService implements IToasterService {
|
|
3
4
|
private language;
|
|
4
5
|
constructor(language: ILanguageService);
|
|
@@ -7,4 +8,6 @@ export declare class ConsoleToasterService implements IToasterService {
|
|
|
7
8
|
success(message: string, params?: any, title?: string): void;
|
|
8
9
|
warning(message: string, params?: any, title?: string): void;
|
|
9
10
|
private translateMessage;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConsoleToasterService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConsoleToasterService>;
|
|
10
13
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DefaultUrlSerializer, UrlSegment, UrlSegmentGroup, UrlTree } from "@angular/router";
|
|
2
2
|
import { ILanguageService } from "../common-types";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export interface IUrlDictionary {
|
|
4
5
|
[key: string]: string;
|
|
5
6
|
}
|
|
@@ -13,4 +14,6 @@ export declare class TranslatedUrlSerializer extends DefaultUrlSerializer {
|
|
|
13
14
|
parse(url: string): UrlTree;
|
|
14
15
|
getDictionary(serialize: boolean): IUrlDictionary;
|
|
15
16
|
modifyTreeRecursive(segmentGroup: UrlSegmentGroup, cb: (segment: UrlSegment) => void): UrlSegmentGroup;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TranslatedUrlSerializer, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TranslatedUrlSerializer>;
|
|
16
19
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DeviceDetectorService, DeviceInfo } from "ngx-device-detector";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
/**
|
|
3
4
|
* Use this service to determine which is the current environment
|
|
4
5
|
*/
|
|
@@ -21,4 +22,6 @@ export declare class UniversalService {
|
|
|
21
22
|
get isCrawler(): boolean;
|
|
22
23
|
private readonly crawler;
|
|
23
24
|
constructor(platformId: string, dds: DeviceDetectorService);
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UniversalService, never>;
|
|
26
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UniversalService>;
|
|
24
27
|
}
|
|
@@ -2,6 +2,7 @@ import { Injector } from "@angular/core";
|
|
|
2
2
|
import { ActivatedRouteSnapshot, CanActivate, RouterStateSnapshot, UrlSegment } from "@angular/router";
|
|
3
3
|
import { IAuthService, IRoute, RouteValidator } from "../common-types";
|
|
4
4
|
import { StateService } from "../services/state.service";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class AuthGuard implements CanActivate {
|
|
6
7
|
readonly injector: Injector;
|
|
7
8
|
readonly state: StateService;
|
|
@@ -23,4 +24,6 @@ export declare class AuthGuard implements CanActivate {
|
|
|
23
24
|
getConfig(route: IRoute, config: IRoute[], path: string[]): IRoute[];
|
|
24
25
|
getReturnState(route: IRoute): Promise<string[]>;
|
|
25
26
|
private getReturnStateRecursive;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthGuard, never>;
|
|
28
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthGuard>;
|
|
26
29
|
}
|
package/package.json
CHANGED
|
@@ -1,38 +1,57 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stemy/ngx-utils",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
|
+
"angular": {
|
|
6
|
+
"version": "13.0.0",
|
|
7
|
+
"compilationMode": "partial"
|
|
8
|
+
},
|
|
5
9
|
"public": true,
|
|
6
10
|
"repository": "https://github.com/stemyke/ngx-utils.git",
|
|
7
11
|
"author": "stemy <balazs.stemler@metrix.co.hu>",
|
|
8
12
|
"peerDependencies": {
|
|
9
|
-
"@angular/animations": "^10.0.0 || ^11.0.0 || ^12.0.0",
|
|
10
|
-
"@angular/common": "^10.0.0 || ^11.0.0 || ^12.0.0",
|
|
11
|
-
"@angular/compiler": "^10.0.0 || ^11.0.0 || ^12.0.0",
|
|
12
|
-
"@angular/core": "^10.0.0 || ^11.0.0 || ^12.0.0",
|
|
13
|
-
"@angular/forms": "^10.0.0 || ^11.0.0 || ^12.0.0",
|
|
14
|
-
"@angular/router": "^10.0.0 || ^11.0.0 || ^12.0.0",
|
|
15
|
-
"@angular/platform-browser": "^10.0.0 || ^11.0.0 || ^12.0.0",
|
|
16
|
-
"@angular/platform-server": "^10.0.0 || ^11.0.0 || ^12.0.0",
|
|
13
|
+
"@angular/animations": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0",
|
|
14
|
+
"@angular/common": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0",
|
|
15
|
+
"@angular/compiler": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0",
|
|
16
|
+
"@angular/core": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0",
|
|
17
|
+
"@angular/forms": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0",
|
|
18
|
+
"@angular/router": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0",
|
|
19
|
+
"@angular/platform-browser": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0",
|
|
20
|
+
"@angular/platform-server": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0",
|
|
17
21
|
"express": "^4.0.0",
|
|
18
22
|
"resize-detector": "^0.2.2 || ^0.3.0",
|
|
19
|
-
"core-js": "^3.6.5",
|
|
20
|
-
"rxjs": "^6.6.2",
|
|
21
|
-
"zone.js": "^0.10.3 || ^0.11.4",
|
|
23
|
+
"core-js": "^3.6.5 || ^3.22.5",
|
|
24
|
+
"rxjs": "^6.6.2 || ^7.5.0",
|
|
25
|
+
"zone.js": "^0.10.3 || ^0.11.4 || ^0.11.5",
|
|
22
26
|
"moment": "^2.27.0",
|
|
23
27
|
"invokable": "^1.0.3",
|
|
24
28
|
"ngx-device-detector": "~2.1.1 || ~3.0.0",
|
|
25
29
|
"json5": "^2.2.1"
|
|
26
30
|
},
|
|
27
|
-
"main": "bundles/stemy-ngx-utils.umd.js",
|
|
28
|
-
"module": "fesm2015/stemy-ngx-utils.
|
|
29
|
-
"es2015": "
|
|
31
|
+
"main": "dist/bundles/stemy-ngx-utils.umd.js",
|
|
32
|
+
"module": "fesm2015/stemy-ngx-utils.mjs",
|
|
33
|
+
"es2015": "dist/esm2015/stemy-ngx-utils.js",
|
|
30
34
|
"typings": "stemy-ngx-utils.d.ts",
|
|
31
|
-
"metadata": "stemy-ngx-utils.metadata.json",
|
|
32
|
-
"
|
|
33
|
-
"
|
|
35
|
+
"metadata": "dist/stemy-ngx-utils.metadata.json",
|
|
36
|
+
"es2020": "fesm2020/stemy-ngx-utils.mjs",
|
|
37
|
+
"esm2020": "esm2020/stemy-ngx-utils.mjs",
|
|
38
|
+
"fesm2020": "fesm2020/stemy-ngx-utils.mjs",
|
|
39
|
+
"fesm2015": "fesm2015/stemy-ngx-utils.mjs",
|
|
40
|
+
"exports": {
|
|
41
|
+
"./package.json": {
|
|
42
|
+
"default": "./package.json"
|
|
43
|
+
},
|
|
44
|
+
".": {
|
|
45
|
+
"types": "./stemy-ngx-utils.d.ts",
|
|
46
|
+
"esm2020": "./esm2020/stemy-ngx-utils.mjs",
|
|
47
|
+
"es2020": "./fesm2020/stemy-ngx-utils.mjs",
|
|
48
|
+
"es2015": "./fesm2015/stemy-ngx-utils.mjs",
|
|
49
|
+
"node": "./fesm2015/stemy-ngx-utils.mjs",
|
|
50
|
+
"default": "./fesm2020/stemy-ngx-utils.mjs"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
34
53
|
"sideEffects": false,
|
|
35
54
|
"dependencies": {
|
|
36
|
-
"tslib": "^2.
|
|
55
|
+
"tslib": "^2.3.0"
|
|
37
56
|
}
|
|
38
57
|
}
|
package/public_api.d.ts
CHANGED
|
@@ -75,6 +75,7 @@ export { PaginationDirective } from "./ngx-utils/directives/pagination.directive
|
|
|
75
75
|
export { PaginationItemDirective } from "./ngx-utils/directives/pagination-item.directive";
|
|
76
76
|
export { ResourceIfDirective } from "./ngx-utils/directives/resource-if.directive";
|
|
77
77
|
export { StickyDirective } from "./ngx-utils/directives/sticky.directive";
|
|
78
|
+
export { StickyClassDirective } from "./ngx-utils/directives/sticky-class.directive";
|
|
78
79
|
export { UnorderedListItemDirective } from "./ngx-utils/directives/unordered-list-item.directive";
|
|
79
80
|
export { UnorderedListTemplateDirective } from "./ngx-utils/directives/unordered-list-template.directive";
|
|
80
81
|
export { UnorderedListComponent } from "./ngx-utils/components/unordered-list/unordered-list.component";
|
package/stemy-ngx-utils.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
|
+
/// <amd-module name="@stemy/ngx-utils" />
|
|
4
5
|
export * from './public_api';
|
|
5
|
-
export { StickyClassDirective as ɵf } from './ngx-utils/directives/sticky-class.directive';
|
|
6
|
-
export { components as ɵc, directives as ɵb, loadConfig as ɵe, pipes as ɵa, providers as ɵd } from './ngx-utils/ngx-utils.module';
|