@stemy/ngx-utils 19.0.9 → 19.0.10
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 +158 -21
- package/fesm2022/stemy-ngx-utils.mjs.map +1 -1
- package/ngx-utils/components/dynamic-table/dynamic-table.component.d.ts +3 -3
- package/ngx-utils/ngx-utils.imports.d.ts +6 -0
- package/ngx-utils/plugins/drag-drop-event.plugin.d.ts +14 -0
- package/ngx-utils/plugins/drag-drop-handler.d.ts +24 -0
- package/ngx-utils/plugins/scroll-event.plugin.d.ts +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +2 -0
|
@@ -48,9 +48,9 @@ export declare class DynamicTableComponent implements AfterContentInit, AfterVie
|
|
|
48
48
|
ngAfterContentInit(): void;
|
|
49
49
|
ngAfterViewInit(): void;
|
|
50
50
|
ngOnChanges(changes: SimpleChanges): void;
|
|
51
|
-
onDragStart(ev: DragEvent, elem: HTMLElement, item: any):
|
|
52
|
-
onDragEnter(ev: DragEvent, elem: HTMLElement, item: any):
|
|
53
|
-
|
|
51
|
+
onDragStart(ev: DragEvent, elem: HTMLElement, item: any): void;
|
|
52
|
+
onDragEnter(ev: DragEvent, elem: HTMLElement, item: any): void;
|
|
53
|
+
onDragLeave(ev: DragEvent, elem: HTMLElement): void;
|
|
54
54
|
onDrop(ev: DragEvent, elem: HTMLElement, item: any): boolean;
|
|
55
55
|
refresh(time?: number): void;
|
|
56
56
|
setFilter(filter: string): void;
|
|
@@ -23,6 +23,7 @@ import { BaseToasterService } from "./services/base-toaster.service";
|
|
|
23
23
|
import { TranslatedUrlSerializer } from "./services/translated-url.serializer";
|
|
24
24
|
import { UniversalService } from "./services/universal.service";
|
|
25
25
|
import { WasmService } from "./services/wasm.service";
|
|
26
|
+
import { DragDropEventPlugin } from "./plugins/drag-drop-event.plugin";
|
|
26
27
|
import { ResizeEventPlugin } from "./plugins/resize-event.plugin";
|
|
27
28
|
import { ScrollEventPlugin } from "./plugins/scroll-event.plugin";
|
|
28
29
|
import { AsyncMethodBase } from "./directives/async-method.base";
|
|
@@ -52,6 +53,11 @@ export declare const pipes: (typeof FilterPipe | typeof FormatNumberPipe | typeo
|
|
|
52
53
|
export declare const directives: (typeof AsyncMethodBase | typeof BackgroundDirective | typeof DynamicTableTemplateDirective | typeof GlobalTemplateDirective | typeof IconDirective | typeof NgxTemplateOutletDirective | typeof PaginationDirective | typeof PaginationItemDirective | typeof ResourceIfDirective | typeof StickyDirective | typeof StickyClassDirective | typeof UnorderedListItemDirective | typeof UnorderedListTemplateDirective)[];
|
|
53
54
|
export declare const components: (typeof UnorderedListComponent | typeof DynamicTableComponent | typeof PaginationMenuComponent)[];
|
|
54
55
|
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 BaseDialogService | typeof ErrorHandlerService | typeof EventsService | typeof FormatterService | typeof GlobalTemplateService | typeof IconService | typeof StaticLanguageService | typeof OpenApiService | typeof BaseToasterService | typeof TranslatedUrlSerializer | typeof PromiseService | typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe | typeof DeviceDetectorService | {
|
|
56
|
+
provide: import("@angular/core").InjectionToken<import("@angular/platform-browser").EventManagerPlugin[]>;
|
|
57
|
+
useClass: typeof DragDropEventPlugin;
|
|
58
|
+
multi: boolean;
|
|
59
|
+
useExisting?: undefined;
|
|
60
|
+
} | {
|
|
55
61
|
provide: import("@angular/core").InjectionToken<import("@angular/platform-browser").EventManagerPlugin[]>;
|
|
56
62
|
useClass: typeof ResizeEventPlugin;
|
|
57
63
|
multi: boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ɵDomEventsPlugin as EventManagerPlugin } from "@angular/platform-browser";
|
|
2
|
+
import { UniversalService } from "../services/universal.service";
|
|
3
|
+
import { DragHandlerEvents } from "./drag-drop-handler";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare function emptyRemove(): void;
|
|
6
|
+
export declare class DragDropEventPlugin extends EventManagerPlugin {
|
|
7
|
+
private universal;
|
|
8
|
+
private static EVENT_NAMES;
|
|
9
|
+
constructor(doc: any, universal: UniversalService);
|
|
10
|
+
supports(eventName: DragHandlerEvents): boolean;
|
|
11
|
+
addEventListener(element: HTMLElement, eventName: DragHandlerEvents, handler: Function): Function;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DragDropEventPlugin, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DragDropEventPlugin>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { KeyValue } from "@angular/common";
|
|
2
|
+
export type DragHandlerEvents = "dragstart" | "dragenter" | "dragleave" | "drop";
|
|
3
|
+
export type DragEventListener = (ev: DragEvent) => any;
|
|
4
|
+
export declare class DragDropHandler {
|
|
5
|
+
protected el: HTMLElement;
|
|
6
|
+
protected static handlers: Map<HTMLElement, DragDropHandler>;
|
|
7
|
+
protected readonly onDragStart: DragEventListener;
|
|
8
|
+
protected readonly onDragEnter: DragEventListener;
|
|
9
|
+
protected readonly onDragOver: DragEventListener;
|
|
10
|
+
protected readonly onDragLeave: DragEventListener;
|
|
11
|
+
protected readonly onDrop: DragEventListener;
|
|
12
|
+
protected first: boolean;
|
|
13
|
+
protected second: boolean;
|
|
14
|
+
protected dropEffect: "none" | "copy" | "link" | "move";
|
|
15
|
+
protected effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized";
|
|
16
|
+
protected listeners: Array<KeyValue<DragHandlerEvents, DragEventListener>>;
|
|
17
|
+
static get(el: HTMLElement): DragDropHandler;
|
|
18
|
+
protected static add(el: HTMLElement, inst: DragDropHandler): void;
|
|
19
|
+
protected constructor(el: HTMLElement);
|
|
20
|
+
addListener(key: DragHandlerEvents, value: DragEventListener): void;
|
|
21
|
+
removeListener(type: DragHandlerEvents, listener: DragEventListener): void;
|
|
22
|
+
protected fireEvent(type: DragHandlerEvents, ev: DragEvent): void;
|
|
23
|
+
protected destroy(): void;
|
|
24
|
+
}
|
|
@@ -6,7 +6,7 @@ export declare class ScrollEventPlugin extends EventManagerPlugin {
|
|
|
6
6
|
private universal;
|
|
7
7
|
private static EVENT_NAME;
|
|
8
8
|
constructor(doc: any, universal: UniversalService);
|
|
9
|
-
supports(eventName:
|
|
9
|
+
supports(eventName: string): boolean;
|
|
10
10
|
addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollEventPlugin, never>;
|
|
12
12
|
static ɵprov: i0.ɵɵInjectableDeclaration<ScrollEventPlugin>;
|
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -46,6 +46,8 @@ export { StorageService } from "./ngx-utils/services/storage.service";
|
|
|
46
46
|
export { BaseToasterService } from "./ngx-utils/services/base-toaster.service";
|
|
47
47
|
export { IUrlDictionary, TranslatedUrlSerializer } from "./ngx-utils/services/translated-url.serializer";
|
|
48
48
|
export { PromiseService } from "./ngx-utils/services/promise.service";
|
|
49
|
+
export { DragEventListener } from "./ngx-utils/plugins/drag-drop-handler";
|
|
50
|
+
export { DragDropEventPlugin } from "./ngx-utils/plugins/drag-drop-event.plugin";
|
|
49
51
|
export { ResizeEventPlugin } from "./ngx-utils/plugins/resize-event.plugin";
|
|
50
52
|
export { ScrollEventPlugin } from "./ngx-utils/plugins/scroll-event.plugin";
|
|
51
53
|
export { ChunkPipe } from "./ngx-utils/pipes/chunk.pipe";
|