@stemy/ngx-utils 10.3.2 → 11.0.1
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 +31 -10
- 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 +4 -1
- package/esm2015/ngx-utils/components/dynamic-table/dynamic-table.component.js +1 -1
- package/esm2015/ngx-utils/components/pagination-menu/pagination-menu.component.js +1 -1
- package/esm2015/ngx-utils/components/unordered-list/unordered-list.component.js +1 -1
- package/esm2015/ngx-utils/directives/async-method.directive.js +1 -1
- package/esm2015/ngx-utils/directives/background.directive.js +1 -1
- package/esm2015/ngx-utils/directives/dynamic-table-template.directive.js +1 -1
- package/esm2015/ngx-utils/directives/global-template.directive.js +1 -1
- package/esm2015/ngx-utils/directives/icon.directive.js +1 -1
- package/esm2015/ngx-utils/directives/ngx-template-outlet.directive.js +1 -1
- package/esm2015/ngx-utils/directives/pagination-item.directive.js +1 -1
- package/esm2015/ngx-utils/directives/pagination.directive.js +1 -1
- package/esm2015/ngx-utils/directives/resource-if.directive.js +1 -1
- package/esm2015/ngx-utils/directives/sticky-class.directive.js +1 -1
- package/esm2015/ngx-utils/directives/sticky.directive.js +1 -1
- package/esm2015/ngx-utils/directives/unordered-list-item.directive.js +1 -1
- package/esm2015/ngx-utils/directives/unordered-list-template.directive.js +1 -1
- package/esm2015/ngx-utils/ngx-utils.module.js +8 -10
- package/esm2015/ngx-utils/pipes/chunk.pipe.js +1 -1
- package/esm2015/ngx-utils/pipes/entries.pipe.js +1 -1
- package/esm2015/ngx-utils/pipes/extra-item-properties.pipe.js +1 -1
- package/esm2015/ngx-utils/pipes/filter.pipe.js +1 -1
- package/esm2015/ngx-utils/pipes/find.pipe.js +1 -1
- package/esm2015/ngx-utils/pipes/format-number.pipe.js +1 -1
- package/esm2015/ngx-utils/pipes/get-offset.pipe.js +1 -1
- package/esm2015/ngx-utils/pipes/get-type.pipe.js +1 -1
- package/esm2015/ngx-utils/pipes/global-template.pipe.js +1 -1
- package/esm2015/ngx-utils/pipes/group-by.pipe.js +1 -1
- package/esm2015/ngx-utils/pipes/is-type.pipe.js +1 -1
- package/esm2015/ngx-utils/pipes/join.pipe.js +1 -1
- package/esm2015/ngx-utils/pipes/keys.pipe.js +1 -1
- package/esm2015/ngx-utils/pipes/map.pipe.js +1 -1
- package/esm2015/ngx-utils/pipes/max.pipe.js +1 -1
- package/esm2015/ngx-utils/pipes/min.pipe.js +1 -1
- package/esm2015/ngx-utils/pipes/reduce.pipe.js +1 -1
- package/esm2015/ngx-utils/pipes/remap.pipe.js +1 -1
- package/esm2015/ngx-utils/pipes/replace.pipe.js +1 -1
- package/esm2015/ngx-utils/pipes/reverse.pipe.js +1 -1
- package/esm2015/ngx-utils/pipes/round.pipe.js +1 -1
- package/esm2015/ngx-utils/pipes/safe-html.pipe.js +1 -1
- package/esm2015/ngx-utils/pipes/translate.pipe.js +1 -1
- package/esm2015/ngx-utils/pipes/values.pipe.js +1 -1
- package/esm2015/ngx-utils/plugins/resize-event.plugin.js +1 -1
- package/esm2015/ngx-utils/plugins/scroll-event.plugin.js +1 -1
- package/esm2015/ngx-utils/services/acl.service.js +1 -1
- package/esm2015/ngx-utils/services/api.service.js +1 -1
- package/esm2015/ngx-utils/services/auth.service.js +1 -1
- package/esm2015/ngx-utils/services/base-http.client.js +1 -1
- package/esm2015/ngx-utils/services/base-http.service.js +1 -1
- package/esm2015/ngx-utils/services/config.service.js +3 -2
- package/esm2015/ngx-utils/services/error-handler.service.js +1 -1
- package/esm2015/ngx-utils/services/events.service.js +1 -1
- package/esm2015/ngx-utils/services/formatter.service.js +1 -1
- package/esm2015/ngx-utils/services/global-template.service.js +1 -1
- package/esm2015/ngx-utils/services/icon.service.js +1 -1
- package/esm2015/ngx-utils/services/language.service.js +1 -1
- package/esm2015/ngx-utils/services/open-api.service.js +1 -1
- package/esm2015/ngx-utils/services/promise.service.js +1 -1
- package/esm2015/ngx-utils/services/state.service.js +1 -1
- package/esm2015/ngx-utils/services/static-language.service.js +1 -1
- package/esm2015/ngx-utils/services/storage.service.js +1 -1
- package/esm2015/ngx-utils/services/toaster.service.js +1 -1
- package/esm2015/ngx-utils/services/translated-url.serializer.js +1 -1
- package/esm2015/ngx-utils/services/universal.service.js +4 -2
- package/esm2015/ngx-utils/utils/ajax-request-handler.js +1 -1
- package/esm2015/ngx-utils/utils/array.utils.js +13 -3
- package/esm2015/ngx-utils/utils/auth.guard.js +1 -1
- package/esm2015/ngx-utils/utils/canvas.utils.js +1 -1
- package/esm2015/ngx-utils/utils/date.utils.js +1 -1
- package/esm2015/ngx-utils/utils/file.utils.js +1 -1
- package/esm2015/ngx-utils/utils/generic-value.js +1 -1
- package/esm2015/ngx-utils/utils/geometry.js +1 -1
- package/esm2015/ngx-utils/utils/initializer.js +1 -1
- package/esm2015/ngx-utils/utils/loader.utils.js +1 -1
- package/esm2015/ngx-utils/utils/math.utils.js +1 -1
- package/esm2015/ngx-utils/utils/object.utils.js +1 -1
- package/esm2015/ngx-utils/utils/observable.utils.js +1 -1
- package/esm2015/ngx-utils/utils/reflect.utils.js +1 -1
- package/esm2015/ngx-utils/utils/set.utils.js +1 -1
- package/esm2015/ngx-utils/utils/string.utils.js +1 -1
- package/esm2015/ngx-utils/utils/timer.utils.js +1 -1
- package/esm2015/ngx-utils/utils/unique.utils.js +1 -1
- package/esm2015/ngx-utils/utils/vector.js +1 -1
- package/esm2015/public_api.js +2 -2
- package/esm2015/stemy-ngx-utils.js +1 -1
- package/fesm2015/stemy-ngx-utils.js +28 -14
- package/fesm2015/stemy-ngx-utils.js.map +1 -1
- package/ngx-utils/common-types.d.ts +6 -1
- package/ngx-utils/utils/array.utils.d.ts +5 -4
- package/package.json +13 -13
- package/public_api.d.ts +1 -1
- package/stemy-ngx-utils.metadata.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, InjectionToken, NgZone, Provider, TemplateRef, Type } from "@angular/core";
|
|
1
|
+
import { EventEmitter, InjectionToken, Injector, NgZone, Provider, TemplateRef, Type } from "@angular/core";
|
|
2
2
|
import { HttpClient, HttpErrorResponse, HttpHeaders } from "@angular/common/http";
|
|
3
3
|
import { ActivatedRouteSnapshot, Data, Route } from "@angular/router";
|
|
4
4
|
import { Request } from "express";
|
|
@@ -273,6 +273,7 @@ export declare const BASE_CONFIG: InjectionToken<IConfiguration>;
|
|
|
273
273
|
export declare const SCRIPT_PARAMS: InjectionToken<any>;
|
|
274
274
|
export declare type ErrorHandlerCallback = (error: string) => any;
|
|
275
275
|
export declare const ERROR_HANDLER: InjectionToken<ErrorHandlerCallback>;
|
|
276
|
+
export declare type AppInitializerFunc = () => Promise<void> | void;
|
|
276
277
|
export interface IModuleConfig {
|
|
277
278
|
apiService?: Type<IApiService>;
|
|
278
279
|
authService?: Type<IAuthService>;
|
|
@@ -281,4 +282,8 @@ export interface IModuleConfig {
|
|
|
281
282
|
toasterService?: Type<IToasterService>;
|
|
282
283
|
promiseService?: Type<IPromiseService>;
|
|
283
284
|
configService?: Type<IConfigService>;
|
|
285
|
+
initializeApp?: (injector: Injector) => AppInitializerFunc;
|
|
286
|
+
}
|
|
287
|
+
export declare class ValuedPromise<T> extends Promise<T> {
|
|
288
|
+
value: T;
|
|
284
289
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export declare class ArrayUtils {
|
|
2
2
|
static has(arr: any[], ...items: any[]): boolean;
|
|
3
3
|
static match(arr: any[], str: string): boolean;
|
|
4
|
-
static any(arr:
|
|
5
|
-
static move(arr:
|
|
4
|
+
static any<T>(arr: T[], cb: (item: T) => boolean): boolean;
|
|
5
|
+
static move<T>(arr: T[], oldIndex: number, newIndex: number): T[];
|
|
6
6
|
static reversed(arr: any[]): any[];
|
|
7
|
-
static min(arr:
|
|
8
|
-
static max(arr:
|
|
7
|
+
static min<T>(arr: T[], cb: (item: T, index?: number) => number): T;
|
|
8
|
+
static max<T>(arr: T[], cb: (item: T, index?: number) => number): T;
|
|
9
|
+
static chunk<T>(arr: T[], size: number): Array<T[]>;
|
|
9
10
|
}
|
package/package.json
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stemy/ngx-utils",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"public": true,
|
|
6
6
|
"repository": "https://github.com/stemyke/ngx-utils.git",
|
|
7
7
|
"author": "stemy <balazs.stemler@metrix.co.hu>",
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@angular/animations": "^10.0.0",
|
|
10
|
-
"@angular/common": "^10.0.0",
|
|
11
|
-
"@angular/compiler": "^10.0.0",
|
|
12
|
-
"@angular/core": "^10.0.0",
|
|
13
|
-
"@angular/forms": "^10.0.0",
|
|
14
|
-
"@angular/router": "^10.0.0",
|
|
15
|
-
"@angular/platform-browser": "^10.0.0",
|
|
16
|
-
"@angular/platform-server": "^10.0.0",
|
|
9
|
+
"@angular/animations": "^10.0.0 || ^11.0.0",
|
|
10
|
+
"@angular/common": "^10.0.0 || ^11.0.0",
|
|
11
|
+
"@angular/compiler": "^10.0.0 || ^11.0.0",
|
|
12
|
+
"@angular/core": "^10.0.0 || ^11.0.0",
|
|
13
|
+
"@angular/forms": "^10.0.0 || ^11.0.0",
|
|
14
|
+
"@angular/router": "^10.0.0 || ^11.0.0",
|
|
15
|
+
"@angular/platform-browser": "^10.0.0 || ^11.0.0",
|
|
16
|
+
"@angular/platform-server": "^10.0.0 || ^11.0.0",
|
|
17
17
|
"express": "^4.0.0",
|
|
18
|
-
"resize-detector": "^0.2.2",
|
|
18
|
+
"resize-detector": "^0.2.2 || ^0.3.0",
|
|
19
19
|
"core-js": "^3.6.5",
|
|
20
20
|
"rxjs": "^6.6.2",
|
|
21
|
-
"zone.js": "^0.10.3",
|
|
21
|
+
"zone.js": "^0.10.3 || ^0.11.4",
|
|
22
22
|
"moment": "^2.27.0",
|
|
23
23
|
"invokable": "^1.0.3",
|
|
24
|
-
"ngx-device-detector": "
|
|
24
|
+
"ngx-device-detector": "~2.1.1"
|
|
25
25
|
},
|
|
26
26
|
"main": "bundles/stemy-ngx-utils.umd.js",
|
|
27
27
|
"module": "fesm2015/stemy-ngx-utils.js",
|
|
@@ -34,4 +34,4 @@
|
|
|
34
34
|
"esm2015": "esm2015/stemy-ngx-utils.js",
|
|
35
35
|
"fesm2015": "fesm2015/stemy-ngx-utils.js",
|
|
36
36
|
"sideEffects": false
|
|
37
|
-
}
|
|
37
|
+
}
|
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 } 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, 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";
|