@stemy/ngx-utils 19.4.15 → 19.4.16
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/fesm2022/stemy-ngx-utils.mjs +40 -5
- package/fesm2022/stemy-ngx-utils.mjs.map +1 -1
- package/ngx-utils/common-types.d.ts +1 -1
- package/ngx-utils/ngx-utils.imports.d.ts +2 -2
- package/ngx-utils/plugins/resize-detector.d.ts +11 -0
- package/ngx-utils/plugins/resize-event.plugin.d.ts +2 -2
- package/package.json +1 -1
|
@@ -481,7 +481,7 @@ export declare const BASE_CONFIG: InjectionToken<IConfiguration>;
|
|
|
481
481
|
export declare const SCRIPT_PARAMS: InjectionToken<any>;
|
|
482
482
|
export declare const ROOT_ELEMENT: InjectionToken<HTMLElement>;
|
|
483
483
|
export declare const RESIZE_DELAY: InjectionToken<number>;
|
|
484
|
-
export type ResizeEventStrategy = "scroll" | "object";
|
|
484
|
+
export type ResizeEventStrategy = "scroll" | "object" | "observer";
|
|
485
485
|
export declare const RESIZE_STRATEGY: InjectionToken<ResizeEventStrategy>;
|
|
486
486
|
export type ErrorHandlerCallback = (error: string) => any;
|
|
487
487
|
export declare const ERROR_HANDLER: InjectionToken<ErrorHandlerCallback>;
|
|
@@ -64,8 +64,8 @@ import { UnorderedListComponent } from "./components/unordered-list/unordered-li
|
|
|
64
64
|
import { UploadComponent } from "./components/upload/upload.component";
|
|
65
65
|
export declare const pipes: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof IncludesPipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe)[];
|
|
66
66
|
export declare const directives: (typeof AsyncMethodBase | typeof BackgroundDirective | typeof ComponentLoaderDirective | typeof DynamicTableTemplateDirective | typeof GlobalTemplateDirective | typeof IconDirective | typeof NgxTemplateOutletDirective | typeof PaginationDirective | typeof PaginationItemDirective | typeof ResourceIfDirective | typeof StickyDirective | typeof StickyClassDirective | typeof DropdownDirective | typeof DropdownContentDirective | typeof DropdownToggleDirective | typeof UnorderedListItemDirective | typeof UnorderedListTemplateDirective)[];
|
|
67
|
-
export declare const components: (typeof
|
|
68
|
-
export declare const providers: (typeof
|
|
67
|
+
export declare const components: (typeof DropListComponent | typeof DynamicTableComponent | typeof FakeModuleComponent | typeof PaginationMenuComponent | typeof InteractiveCanvasComponent | typeof InteractiveCircleComponent | typeof InteractiveRectComponent | typeof UnorderedListComponent | typeof UploadComponent)[];
|
|
68
|
+
export declare const providers: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof IncludesPipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe | typeof BaseHttpClient | typeof BaseHttpService | typeof AuthGuard | typeof AclService | typeof StaticAuthService | typeof ConfigService | typeof BaseDialogService | typeof ErrorHandlerService | typeof EventsService | typeof FormatterService | typeof GlobalTemplateService | typeof IconService | typeof StaticLanguageService | typeof OpenApiService | typeof PromiseService | typeof SocketService | typeof StateService | typeof StorageService | typeof BaseToasterService | typeof ComponentLoaderService | typeof TranslatedUrlSerializer | typeof UniversalService | typeof WasmService | typeof DeviceDetectorService | {
|
|
69
69
|
provide: import("@angular/core").InjectionToken<import("@angular/platform-browser").EventManagerPlugin[]>;
|
|
70
70
|
useClass: typeof DragDropEventPlugin;
|
|
71
71
|
multi: boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Erd } from "element-resize-detector";
|
|
2
|
+
import { ResizeEventStrategy } from "../common-types";
|
|
3
|
+
export declare class ResizeDetector {
|
|
4
|
+
protected resizeStrategy: ResizeEventStrategy;
|
|
5
|
+
protected readonly detector: Erd;
|
|
6
|
+
protected isObservable: boolean;
|
|
7
|
+
protected observers: Map<HTMLElement, ResizeObserver>;
|
|
8
|
+
constructor(resizeStrategy: ResizeEventStrategy);
|
|
9
|
+
listenTo(elem: HTMLElement, cb: (el: HTMLElement) => void): void;
|
|
10
|
+
uninstall(elem: HTMLElement): void;
|
|
11
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ɵDomEventsPlugin as EventManagerPlugin } from "@angular/platform-browser";
|
|
2
|
-
import type { Erd } from "element-resize-detector";
|
|
3
2
|
import { ResizeEventStrategy } from "../common-types";
|
|
4
3
|
import { UniversalService } from "../services/universal.service";
|
|
4
|
+
import { ResizeDetector } from "./resize-detector";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class ResizeEventPlugin extends EventManagerPlugin {
|
|
7
7
|
protected resizeDelay: number;
|
|
8
8
|
protected resizeStrategy: ResizeEventStrategy;
|
|
9
9
|
readonly universal: UniversalService;
|
|
10
10
|
static readonly EVENT_NAME: string;
|
|
11
|
-
readonly detector:
|
|
11
|
+
readonly detector: ResizeDetector;
|
|
12
12
|
constructor(doc: any, resizeDelay: number, resizeStrategy: ResizeEventStrategy, universal: UniversalService);
|
|
13
13
|
supports(eventName: string): boolean;
|
|
14
14
|
addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
|