@stemy/ngx-utils 17.3.15 → 17.4.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/esm2022/ngx-utils/common-types.mjs +1 -1
- package/esm2022/ngx-utils/directives/dropdown.directive.mjs +6 -5
- package/esm2022/ngx-utils/ngx-utils.module.mjs +2 -2
- package/esm2022/ngx-utils/plugins/resize-detector.mjs +38 -0
- package/esm2022/ngx-utils/plugins/resize-event.plugin.mjs +5 -7
- package/fesm2022/stemy-ngx-utils.mjs +45 -9
- 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 +3 -3
- 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
|
@@ -345,7 +345,7 @@ export declare const BASE_CONFIG: InjectionToken<IConfiguration>;
|
|
|
345
345
|
export declare const SCRIPT_PARAMS: InjectionToken<any>;
|
|
346
346
|
export declare const ROOT_ELEMENT: InjectionToken<HTMLElement>;
|
|
347
347
|
export declare const RESIZE_DELAY: InjectionToken<number>;
|
|
348
|
-
export type ResizeEventStrategy = "scroll" | "object";
|
|
348
|
+
export type ResizeEventStrategy = "scroll" | "object" | "observer";
|
|
349
349
|
export declare const RESIZE_STRATEGY: InjectionToken<ResizeEventStrategy>;
|
|
350
350
|
export type ErrorHandlerCallback = (error: string) => any;
|
|
351
351
|
export declare const ERROR_HANDLER: InjectionToken<ErrorHandlerCallback>;
|
|
@@ -53,9 +53,9 @@ import { DynamicTableComponent } from "./components/dynamic-table/dynamic-table.
|
|
|
53
53
|
import { PaginationMenuComponent } from "./components/pagination-menu/pagination-menu.component";
|
|
54
54
|
import { UnorderedListComponent } from "./components/unordered-list/unordered-list.component";
|
|
55
55
|
export declare const pipes: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof IncludesPipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe)[];
|
|
56
|
-
export declare const directives: (typeof
|
|
57
|
-
export declare const components: (typeof
|
|
58
|
-
export declare const providers: (typeof
|
|
56
|
+
export declare const directives: (typeof AsyncMethodBase | typeof BackgroundDirective | typeof DropdownDirective | typeof DropdownContentDirective | typeof DropdownToggleDirective | typeof DynamicTableTemplateDirective | typeof GlobalTemplateDirective | typeof IconDirective | typeof NgxTemplateOutletDirective | typeof PaginationDirective | typeof PaginationItemDirective | typeof ResourceIfDirective | typeof StickyDirective | typeof StickyClassDirective | typeof UnorderedListItemDirective | typeof UnorderedListTemplateDirective)[];
|
|
57
|
+
export declare const components: (typeof DropdownBoxComponent | typeof DynamicTableComponent | typeof PaginationMenuComponent | typeof UnorderedListComponent)[];
|
|
58
|
+
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 ErrorHandlerService | typeof EventsService | typeof FormatterService | typeof GlobalTemplateService | typeof IconService | typeof StaticLanguageService | typeof OpenApiService | typeof PromiseService | typeof StateService | typeof StorageService | typeof ConsoleToasterService | typeof TranslatedUrlSerializer | typeof UniversalService | typeof WasmService | typeof DeviceDetectorService | {
|
|
59
59
|
provide: import("@angular/core").InjectionToken<import("@angular/platform-browser").EventManagerPlugin[]>;
|
|
60
60
|
useClass: typeof ResizeEventPlugin;
|
|
61
61
|
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;
|