@stemy/ngx-utils 13.6.3 → 13.6.5
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/esm2020/ngx-utils/common-types.mjs +2 -1
- package/esm2020/ngx-utils/ngx-utils.module.mjs +7 -3
- package/esm2020/ngx-utils/plugins/resize-event.plugin.mjs +13 -9
- package/esm2020/public_api.mjs +2 -2
- package/fesm2015/stemy-ngx-utils.mjs +19 -10
- package/fesm2015/stemy-ngx-utils.mjs.map +1 -1
- package/fesm2020/stemy-ngx-utils.mjs +18 -9
- package/fesm2020/stemy-ngx-utils.mjs.map +1 -1
- package/ngx-utils/common-types.d.ts +3 -0
- package/ngx-utils/plugins/resize-event.plugin.d.ts +7 -3
- package/package.json +9 -9
- package/public_api.d.ts +1 -1
|
@@ -329,6 +329,8 @@ export declare const BASE_CONFIG: InjectionToken<IConfiguration>;
|
|
|
329
329
|
export declare const SCRIPT_PARAMS: InjectionToken<any>;
|
|
330
330
|
export declare const ROOT_ELEMENT: InjectionToken<HTMLElement>;
|
|
331
331
|
export declare const RESIZE_DELAY: InjectionToken<number>;
|
|
332
|
+
export declare type ResizeEventStrategy = "scroll" | "object";
|
|
333
|
+
export declare const RESIZE_STRATEGY: InjectionToken<ResizeEventStrategy>;
|
|
332
334
|
export declare type ErrorHandlerCallback = (error: string) => any;
|
|
333
335
|
export declare const ERROR_HANDLER: InjectionToken<ErrorHandlerCallback>;
|
|
334
336
|
export declare type GlobalComponentModifier = (component: any) => any;
|
|
@@ -354,6 +356,7 @@ export interface IModuleConfig {
|
|
|
354
356
|
initializeApp?: (injector: Injector) => AppInitializerFunc;
|
|
355
357
|
baseUrl?: (injector: Injector) => string;
|
|
356
358
|
resizeDelay?: number;
|
|
359
|
+
resizeStrategy?: ResizeEventStrategy;
|
|
357
360
|
}
|
|
358
361
|
export declare class ValuedPromise<T> extends Promise<T> {
|
|
359
362
|
value: T;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { ɵDomEventsPlugin as EventManagerPlugin } from "@angular/platform-browser";
|
|
2
|
+
import type { Erd } from "element-resize-detector";
|
|
3
|
+
import { ResizeEventStrategy } from "../common-types";
|
|
2
4
|
import { UniversalService } from "../services/universal.service";
|
|
3
5
|
import * as i0 from "@angular/core";
|
|
4
6
|
export declare class ResizeEventPlugin extends EventManagerPlugin {
|
|
5
7
|
protected resizeDelay: number;
|
|
8
|
+
protected resizeStrategy: ResizeEventStrategy;
|
|
6
9
|
readonly universal: UniversalService;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
static readonly EVENT_NAME: string;
|
|
11
|
+
readonly detector: Erd;
|
|
12
|
+
constructor(doc: any, resizeDelay: number, resizeStrategy: ResizeEventStrategy, universal: UniversalService);
|
|
13
|
+
supports(eventName: string): boolean;
|
|
10
14
|
addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
|
|
11
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<ResizeEventPlugin, never>;
|
|
12
16
|
static ɵprov: i0.ɵɵInjectableDeclaration<ResizeEventPlugin>;
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stemy/ngx-utils",
|
|
3
|
-
"version": "13.6.
|
|
3
|
+
"version": "13.6.5",
|
|
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 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0
|
|
10
|
-
"@angular/common": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0
|
|
11
|
-
"@angular/compiler": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0
|
|
12
|
-
"@angular/core": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0
|
|
13
|
-
"@angular/forms": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0
|
|
14
|
-
"@angular/router": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0
|
|
15
|
-
"@angular/platform-browser": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0
|
|
16
|
-
"@angular/platform-server": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0
|
|
9
|
+
"@angular/animations": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
|
|
10
|
+
"@angular/common": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
|
|
11
|
+
"@angular/compiler": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
|
|
12
|
+
"@angular/core": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
|
|
13
|
+
"@angular/forms": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
|
|
14
|
+
"@angular/router": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
|
|
15
|
+
"@angular/platform-browser": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
|
|
16
|
+
"@angular/platform-server": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",
|
|
17
17
|
"express": "^4.0.0",
|
|
18
18
|
"element-resize-detector": "^1.2.4",
|
|
19
19
|
"core-js": "^3.6.5 || ^3.22.5",
|
package/public_api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { IResolveFactory, CanvasColor, IIconService, ICON_SERVICE, ITranslation, ITranslations, ILanguageSetting, ILanguageSettings, ILanguageService, LANGUAGE_SERVICE, IAuthService, RouteValidator, IRouteData, IRoute, AUTH_SERVICE, IAclComponent, IPromiseService, PROMISE_SERVICE, IWasi, IWasmExports, IWasm, IWasmAsync, WASI_IMPLEMENTATION, IRouteStateInfo, NavigationUrlParam, StorageMode, IToasterService, TOASTER_SERVICE, IAsyncMessage, AsyncMethod, UnorederedListTemplate, UnorderedListTemplates, UnorderedListStyle, IAjaxRequestDetails, AjaxRequestCallback, ScriptType, IScriptPromises, IStylePromises, ISearchObservable, FactoryDependencies, ObjectType, 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, ITableOrders, ITableColumn, ITableColumns, ITableTemplate, ITableTemplates, TableDataLoader, ResourceIfContext, APP_BASE_URL, IConfiguration, IConfigService, CONFIG_SERVICE, BASE_CONFIG, SCRIPT_PARAMS, ROOT_ELEMENT, RESIZE_DELAY, ErrorHandlerCallback, ERROR_HANDLER, GlobalComponentModifier, IGlobalTemplates, GLOBAL_TEMPLATES, AppInitializerFunc, IModuleConfig, ValuedPromise } from "./ngx-utils/common-types";
|
|
1
|
+
export { IResolveFactory, CanvasColor, IIconService, ICON_SERVICE, ITranslation, ITranslations, ILanguageSetting, ILanguageSettings, ILanguageService, LANGUAGE_SERVICE, IAuthService, RouteValidator, IRouteData, IRoute, AUTH_SERVICE, IAclComponent, IPromiseService, PROMISE_SERVICE, IWasi, IWasmExports, IWasm, IWasmAsync, WASI_IMPLEMENTATION, IRouteStateInfo, NavigationUrlParam, StorageMode, IToasterService, TOASTER_SERVICE, IAsyncMessage, AsyncMethod, UnorederedListTemplate, UnorderedListTemplates, UnorderedListStyle, IAjaxRequestDetails, AjaxRequestCallback, ScriptType, IScriptPromises, IStylePromises, ISearchObservable, FactoryDependencies, ObjectType, 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, ITableOrders, ITableColumn, ITableColumns, ITableTemplate, ITableTemplates, TableDataLoader, ResourceIfContext, APP_BASE_URL, IConfiguration, IConfigService, CONFIG_SERVICE, BASE_CONFIG, SCRIPT_PARAMS, ROOT_ELEMENT, RESIZE_DELAY, ResizeEventStrategy, RESIZE_STRATEGY, ErrorHandlerCallback, ERROR_HANDLER, GlobalComponentModifier, IGlobalTemplates, GLOBAL_TEMPLATES, 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";
|