@stemy/ngx-utils 11.0.8 → 11.1.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/README.md +27 -27
- package/bundles/stemy-ngx-utils.umd.js +22 -7
- package/bundles/stemy-ngx-utils.umd.js.map +1 -1
- package/bundles/stemy-ngx-utils.umd.min.js +1 -1
- package/bundles/stemy-ngx-utils.umd.min.js.map +1 -1
- package/esm2015/ngx-utils/common-types.js +2 -1
- package/esm2015/ngx-utils/ngx-utils.module.js +6 -2
- package/esm2015/ngx-utils/services/config.service.js +8 -4
- package/esm2015/ngx-utils/services/promise.service.js +4 -1
- package/esm2015/ngx-utils/services/static-language.service.js +9 -7
- package/esm2015/ngx-utils/utils/unique.utils.js +1 -1
- package/esm2015/public_api.js +2 -2
- package/fesm2015/stemy-ngx-utils.js +22 -8
- package/fesm2015/stemy-ngx-utils.js.map +1 -1
- package/ngx-utils/common-types.d.ts +2 -0
- package/ngx-utils/services/config.service.d.ts +3 -1
- package/ngx-utils/services/promise.service.d.ts +5 -4
- package/ngx-utils/services/static-language.service.d.ts +3 -2
- package/package.json +1 -1
- package/public_api.d.ts +1 -1
- package/stemy-ngx-utils.metadata.json +1 -1
- package/esm5/ngx-utils/common-types.js +0 -553
- package/esm5/ngx-utils/components/dynamic-table/dynamic-table.component.js +0 -285
- package/esm5/ngx-utils/components/pagination-menu/pagination-menu.component.js +0 -198
- package/esm5/ngx-utils/components/unordered-list/unordered-list.component.js +0 -110
- package/esm5/ngx-utils/directives/async-method.directive.js +0 -105
- package/esm5/ngx-utils/directives/background.directive.js +0 -91
- package/esm5/ngx-utils/directives/dynamic-table-template.directive.js +0 -34
- package/esm5/ngx-utils/directives/icon.directive.js +0 -101
- package/esm5/ngx-utils/directives/ngx-template-outlet.directive.js +0 -182
- package/esm5/ngx-utils/directives/pagination-item.directive.js +0 -70
- package/esm5/ngx-utils/directives/pagination.directive.js +0 -148
- package/esm5/ngx-utils/directives/resource-if.directive.js +0 -97
- package/esm5/ngx-utils/directives/sticky.directive.js +0 -93
- package/esm5/ngx-utils/directives/unordered-list-item.directive.js +0 -143
- package/esm5/ngx-utils/directives/unordered-list-template.directive.js +0 -54
- package/esm5/ngx-utils/ngx-utils.module.js +0 -205
- package/esm5/ngx-utils/pipes/chunk.pipe.js +0 -41
- package/esm5/ngx-utils/pipes/entries.pipe.js +0 -54
- package/esm5/ngx-utils/pipes/extra-item-properties.pipe.js +0 -51
- package/esm5/ngx-utils/pipes/filter.pipe.js +0 -65
- package/esm5/ngx-utils/pipes/find.pipe.js +0 -51
- package/esm5/ngx-utils/pipes/format-number.pipe.js +0 -44
- package/esm5/ngx-utils/pipes/get-offset.pipe.js +0 -31
- package/esm5/ngx-utils/pipes/get-type.pipe.js +0 -28
- package/esm5/ngx-utils/pipes/group-by.pipe.js +0 -48
- package/esm5/ngx-utils/pipes/is-type.pipe.js +0 -30
- package/esm5/ngx-utils/pipes/join.pipe.js +0 -34
- package/esm5/ngx-utils/pipes/keys.pipe.js +0 -35
- package/esm5/ngx-utils/pipes/map.pipe.js +0 -52
- package/esm5/ngx-utils/pipes/max.pipe.js +0 -45
- package/esm5/ngx-utils/pipes/min.pipe.js +0 -45
- package/esm5/ngx-utils/pipes/reduce.pipe.js +0 -55
- package/esm5/ngx-utils/pipes/remap.pipe.js +0 -51
- package/esm5/ngx-utils/pipes/replace.pipe.js +0 -32
- package/esm5/ngx-utils/pipes/reverse.pipe.js +0 -38
- package/esm5/ngx-utils/pipes/round.pipe.js +0 -44
- package/esm5/ngx-utils/pipes/safe-html.pipe.js +0 -54
- package/esm5/ngx-utils/pipes/translate.pipe.js +0 -111
- package/esm5/ngx-utils/pipes/values.pipe.js +0 -35
- package/esm5/ngx-utils/plugins/resize-event.plugin.js +0 -122
- package/esm5/ngx-utils/plugins/scroll-event.plugin.js +0 -110
- package/esm5/ngx-utils/services/acl.service.js +0 -119
- package/esm5/ngx-utils/services/auth.service.js +0 -40
- package/esm5/ngx-utils/services/events.service.js +0 -33
- package/esm5/ngx-utils/services/formatter.service.js +0 -124
- package/esm5/ngx-utils/services/icon.service.js +0 -32
- package/esm5/ngx-utils/services/language.service.js +0 -199
- package/esm5/ngx-utils/services/promise.service.js +0 -123
- package/esm5/ngx-utils/services/state.service.js +0 -271
- package/esm5/ngx-utils/services/storage.service.js +0 -100
- package/esm5/ngx-utils/services/toaster.service.js +0 -100
- package/esm5/ngx-utils/services/universal.service.js +0 -153
- package/esm5/ngx-utils/utils/ajax-request-handler.js +0 -73
- package/esm5/ngx-utils/utils/array.utils.js +0 -182
- package/esm5/ngx-utils/utils/auth.guard.js +0 -205
- package/esm5/ngx-utils/utils/canvas.utils.js +0 -668
- package/esm5/ngx-utils/utils/date.utils.js +0 -91
- package/esm5/ngx-utils/utils/file.utils.js +0 -201
- package/esm5/ngx-utils/utils/loader.utils.js +0 -90
- package/esm5/ngx-utils/utils/math.utils.js +0 -62
- package/esm5/ngx-utils/utils/object.utils.js +0 -513
- package/esm5/ngx-utils/utils/observable.utils.js +0 -30
- package/esm5/ngx-utils/utils/reflect.utils.js +0 -95
- package/esm5/ngx-utils/utils/set.utils.js +0 -48
- package/esm5/ngx-utils/utils/string.utils.js +0 -94
- package/esm5/ngx-utils/utils/timer.utils.js +0 -100
- package/esm5/ngx-utils/utils/unique.utils.js +0 -54
- package/esm5/ngx-utils/utils/vector.js +0 -223
- package/esm5/public_api.js +0 -73
- package/esm5/stemy-ngx-utils.js +0 -11
- package/fesm5/stemy-ngx-utils.js +0 -6709
- package/fesm5/stemy-ngx-utils.js.map +0 -1
- package/typings.d.ts +0 -5
|
@@ -93,6 +93,7 @@ export interface IPromiseService {
|
|
|
93
93
|
create<T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
|
|
94
94
|
all(promises: Promise<any>[]): Promise<any>;
|
|
95
95
|
resolve<T>(value: T | PromiseLike<T>): Promise<T>;
|
|
96
|
+
reject<T>(value: T | PromiseLike<T>): Promise<T>;
|
|
96
97
|
}
|
|
97
98
|
export declare const PROMISE_SERVICE: InjectionToken<IPromiseService>;
|
|
98
99
|
export interface IAsyncMessage {
|
|
@@ -272,6 +273,7 @@ export interface IConfigService {
|
|
|
272
273
|
export declare const CONFIG_SERVICE: InjectionToken<IConfigService>;
|
|
273
274
|
export declare const BASE_CONFIG: InjectionToken<IConfiguration>;
|
|
274
275
|
export declare const SCRIPT_PARAMS: InjectionToken<any>;
|
|
276
|
+
export declare const ROOT_ELEMENT: InjectionToken<HTMLElement>;
|
|
275
277
|
export declare type ErrorHandlerCallback = (error: string) => any;
|
|
276
278
|
export declare const ERROR_HANDLER: InjectionToken<ErrorHandlerCallback>;
|
|
277
279
|
export declare type AppInitializerFunc = () => Promise<void> | void;
|
|
@@ -4,6 +4,8 @@ import { IConfigService, IConfiguration } from "../common-types";
|
|
|
4
4
|
export declare class ConfigService implements IConfigService {
|
|
5
5
|
readonly http: HttpClient;
|
|
6
6
|
readonly universal: UniversalService;
|
|
7
|
+
readonly rootElement: any;
|
|
8
|
+
protected baseConfig: IConfiguration;
|
|
7
9
|
protected loadedConfig: IConfiguration;
|
|
8
10
|
protected scriptParameters: any;
|
|
9
11
|
protected loader: Promise<IConfiguration>;
|
|
@@ -11,7 +13,7 @@ export declare class ConfigService implements IConfigService {
|
|
|
11
13
|
get load(): () => Promise<IConfiguration>;
|
|
12
14
|
get config(): IConfiguration;
|
|
13
15
|
get configUrl(): string;
|
|
14
|
-
constructor(http: HttpClient, universal: UniversalService, baseConfig?: IConfiguration, scriptParams?: any);
|
|
16
|
+
constructor(http: HttpClient, universal: UniversalService, rootElement: any, baseConfig?: IConfiguration, scriptParams?: any);
|
|
15
17
|
protected initService(): void;
|
|
16
18
|
protected loadJson(): Promise<IConfiguration>;
|
|
17
19
|
protected prepareConfig(config: IConfiguration): Promise<IConfiguration>;
|
|
@@ -4,12 +4,13 @@ export declare class PromiseService implements IPromiseService {
|
|
|
4
4
|
readonly zone: NgZone;
|
|
5
5
|
get count(): number;
|
|
6
6
|
get onChanged(): EventEmitter<number>;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
protected promiseCount: number;
|
|
8
|
+
protected readonly promiseChanged: EventEmitter<number>;
|
|
9
9
|
constructor(zone: NgZone);
|
|
10
10
|
create<T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
|
|
11
11
|
all(promises: Promise<any>[]): Promise<any>;
|
|
12
12
|
resolve<T>(value: T | PromiseLike<T>): Promise<T>;
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
reject<T>(value: T | PromiseLike<T>): Promise<T>;
|
|
14
|
+
protected promiseFinished(): void;
|
|
15
|
+
protected add<T>(promise: Promise<T>): Promise<T>;
|
|
15
16
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IConfigService, IConfiguration, ILanguageService, ITranslation, ITranslations } from "../common-types";
|
|
1
|
+
import { IConfigService, IConfiguration, ILanguageService, IPromiseService, ITranslation, ITranslations } from "../common-types";
|
|
2
2
|
import { EventsService } from "./events.service";
|
|
3
3
|
import { StorageService } from "./storage.service";
|
|
4
4
|
import { UniversalService } from "./universal.service";
|
|
@@ -8,6 +8,7 @@ export declare class StaticLanguageService implements ILanguageService {
|
|
|
8
8
|
readonly events: EventsService;
|
|
9
9
|
readonly storage: StorageService;
|
|
10
10
|
readonly configs: IConfigService;
|
|
11
|
+
protected promises: IPromiseService;
|
|
11
12
|
protected client: BaseHttpClient;
|
|
12
13
|
get defaultLanguage(): string;
|
|
13
14
|
get dictionary(): ITranslations;
|
|
@@ -28,7 +29,7 @@ export declare class StaticLanguageService implements ILanguageService {
|
|
|
28
29
|
protected disableTrans: boolean;
|
|
29
30
|
protected languageList: string[];
|
|
30
31
|
protected readonly translations: ITranslations;
|
|
31
|
-
constructor(events: EventsService, storage: StorageService, configs: IConfigService, client: BaseHttpClient);
|
|
32
|
+
constructor(events: EventsService, storage: StorageService, configs: IConfigService, promises: IPromiseService, client: BaseHttpClient);
|
|
32
33
|
protected initService(): void;
|
|
33
34
|
replaceLanguages(languages: string[]): void;
|
|
34
35
|
addLanguages(languages: string[]): void;
|
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { IResolveFactory, CanvasColor, IIconService, ICON_SERVICE, ITranslation, ITranslations, ILanguageSettings, ILanguageService, LANGUAGE_SERVICE, IAuthService, RouteValidator, IRouteData, IRoute, AUTH_SERVICE, IAclComponent, IPromiseService, PROMISE_SERVICE, IRouteStateInfo, StorageMode, IToasterService, TOASTER_SERVICE, IAsyncMessage, AsyncMethod, UnorederedListTemplate, UnorderedListTemplates, UnorderedListStyle, IAjaxRequestDetails, AjaxRequestCallback, IScriptPromises, IStylePromises, ISearchObservable, FactoryDependencies, ITimer, IExtraProperties, IGroupMap, TranslationQuery, IPageInfo, IPaginationData, PaginationDataLoader, PaginationItemContext, IHttpHeaders, IHttpParams, IRequestOptions, IIssueContext, IProgress, ProgressListener, PromiseExecutor, HttpPromise, IHttpService, EXPRESS_REQUEST, IApiService, API_SERVICE, IOpenApiSchemaProperty, IOpenApiSchema, IOpenApiSchemas, ITableColumns, ITableTemplate, ITableTemplates, TableDataLoader, ResourceIfContext, IConfiguration, IConfigService, CONFIG_SERVICE, BASE_CONFIG, SCRIPT_PARAMS, ErrorHandlerCallback, ERROR_HANDLER, AppInitializerFunc, IModuleConfig, ValuedPromise } from "./ngx-utils/common-types";
|
|
1
|
+
export { IResolveFactory, CanvasColor, IIconService, ICON_SERVICE, ITranslation, ITranslations, ILanguageSettings, ILanguageService, LANGUAGE_SERVICE, IAuthService, RouteValidator, IRouteData, IRoute, AUTH_SERVICE, IAclComponent, IPromiseService, PROMISE_SERVICE, IRouteStateInfo, StorageMode, IToasterService, TOASTER_SERVICE, IAsyncMessage, AsyncMethod, UnorederedListTemplate, UnorderedListTemplates, UnorderedListStyle, IAjaxRequestDetails, AjaxRequestCallback, IScriptPromises, IStylePromises, ISearchObservable, FactoryDependencies, ITimer, IExtraProperties, IGroupMap, TranslationQuery, IPageInfo, IPaginationData, PaginationDataLoader, PaginationItemContext, IHttpHeaders, IHttpParams, IRequestOptions, IIssueContext, IProgress, ProgressListener, PromiseExecutor, HttpPromise, IHttpService, EXPRESS_REQUEST, IApiService, API_SERVICE, IOpenApiSchemaProperty, IOpenApiSchema, IOpenApiSchemas, ITableColumns, ITableTemplate, ITableTemplates, TableDataLoader, ResourceIfContext, IConfiguration, IConfigService, CONFIG_SERVICE, BASE_CONFIG, SCRIPT_PARAMS, ROOT_ELEMENT, ErrorHandlerCallback, ERROR_HANDLER, AppInitializerFunc, IModuleConfig, ValuedPromise } from "./ngx-utils/common-types";
|
|
2
2
|
export { AjaxRequestHandler } from "./ngx-utils/utils/ajax-request-handler";
|
|
3
3
|
export { ObjectUtils } from "./ngx-utils/utils/object.utils";
|
|
4
4
|
export { DateUtils } from "./ngx-utils/utils/date.utils";
|