@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.
@@ -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 DynamicTableTemplateDirective | typeof AsyncMethodBase | typeof BackgroundDirective | typeof DropdownDirective | typeof DropdownContentDirective | typeof DropdownToggleDirective | 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 DynamicTableComponent | typeof UnorderedListComponent | typeof DropdownBoxComponent | typeof PaginationMenuComponent)[];
58
- export declare const providers: (typeof UniversalService | typeof StateService | typeof AuthGuard | typeof BaseHttpClient | typeof StorageService | typeof BaseHttpService | typeof WasmService | typeof AclService | typeof StaticAuthService | typeof ConfigService | typeof ErrorHandlerService | typeof EventsService | typeof FormatterService | typeof GlobalTemplateService | typeof IconService | typeof StaticLanguageService | typeof OpenApiService | typeof ConsoleToasterService | typeof TranslatedUrlSerializer | typeof PromiseService | typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof IncludesPipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe | typeof DeviceDetectorService | {
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: Erd;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stemy/ngx-utils",
3
- "version": "17.3.15",
3
+ "version": "17.4.0",
4
4
  "license": "MIT",
5
5
  "public": true,
6
6
  "repository": "https://github.com/stemyke/ngx-utils.git",