@stemy/ngx-utils 19.0.10 → 19.0.12
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 +29 -13
- package/fesm2022/stemy-ngx-utils.mjs.map +1 -1
- package/ngx-utils/common-types.d.ts +1 -1
- package/ngx-utils/components/dynamic-table/dynamic-table.component.d.ts +4 -3
- package/ngx-utils/ngx-utils.imports.d.ts +2 -2
- package/ngx-utils/plugins/drag-drop-handler.d.ts +1 -1
- package/package.json +1 -1
|
@@ -367,7 +367,7 @@ export interface ITableDragEvent<T = any> {
|
|
|
367
367
|
item: T;
|
|
368
368
|
source?: T;
|
|
369
369
|
}
|
|
370
|
-
export type DynamicTableDragHandler = (ev: ITableDragEvent) =>
|
|
370
|
+
export type DynamicTableDragHandler<R = boolean> = (ev: ITableDragEvent) => R;
|
|
371
371
|
export declare class ResourceIfContext {
|
|
372
372
|
resource: string;
|
|
373
373
|
url: string;
|
|
@@ -25,7 +25,7 @@ export declare class DynamicTableComponent implements AfterContentInit, AfterVie
|
|
|
25
25
|
titlePrefix: string;
|
|
26
26
|
dragStartFn: DynamicTableDragHandler;
|
|
27
27
|
dragEnterFn: DynamicTableDragHandler;
|
|
28
|
-
dropFn: DynamicTableDragHandler
|
|
28
|
+
dropFn: DynamicTableDragHandler<void>;
|
|
29
29
|
tableId: string;
|
|
30
30
|
templates: ITableTemplates;
|
|
31
31
|
filter: string;
|
|
@@ -51,13 +51,14 @@ export declare class DynamicTableComponent implements AfterContentInit, AfterVie
|
|
|
51
51
|
onDragStart(ev: DragEvent, elem: HTMLElement, item: any): void;
|
|
52
52
|
onDragEnter(ev: DragEvent, elem: HTMLElement, item: any): void;
|
|
53
53
|
onDragLeave(ev: DragEvent, elem: HTMLElement): void;
|
|
54
|
-
onDrop(ev: DragEvent, elem: HTMLElement, item: any):
|
|
54
|
+
onDrop(ev: DragEvent, elem: HTMLElement, item: any): void;
|
|
55
55
|
refresh(time?: number): void;
|
|
56
56
|
setFilter(filter: string): void;
|
|
57
57
|
setOrder(column: string): void;
|
|
58
58
|
updateQuery(c: string, value: string | boolean): void;
|
|
59
59
|
loadData: (page: number, itemsPerPage: number) => Promise<IPaginationData>;
|
|
60
|
-
|
|
60
|
+
protected checkTransitions(el: HTMLElement, cb: () => any): void;
|
|
61
|
+
protected loadLocalData(page: number, rowsPerPage: number, orderBy: string, orderDescending: boolean, filter: string): Promise<IPaginationData>;
|
|
61
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicTableComponent, never>;
|
|
62
63
|
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicTableComponent, "dynamic-table", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "dataLoader": { "alias": "dataLoader"; "required": false; }; "data": { "alias": "data"; "required": false; }; "page": { "alias": "page"; "required": false; }; "urlParam": { "alias": "urlParam"; "required": false; }; "parallelData": { "alias": "parallelData"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "showFilter": { "alias": "showFilter"; "required": false; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; }; "updateTime": { "alias": "updateTime"; "required": false; }; "filterTime": { "alias": "filterTime"; "required": false; }; "maxPages": { "alias": "maxPages"; "required": false; }; "directionLinks": { "alias": "directionLinks"; "required": false; }; "boundaryLinks": { "alias": "boundaryLinks"; "required": false; }; "orderBy": { "alias": "orderBy"; "required": false; }; "orderDescending": { "alias": "orderDescending"; "required": false; }; "testId": { "alias": "testId"; "required": false; }; "titlePrefix": { "alias": "titlePrefix"; "required": false; }; "dragStartFn": { "alias": "dragStartFn"; "required": false; }; "dragEnterFn": { "alias": "dragEnterFn"; "required": false; }; "dropFn": { "alias": "dropFn"; "required": false; }; }, {}, ["rowTemplate", "wrapperTemplate", "filterTemplate", "templateDirectives"], never, false, never>;
|
|
63
64
|
}
|
|
@@ -51,8 +51,8 @@ import { PaginationMenuComponent } from "./components/pagination-menu/pagination
|
|
|
51
51
|
import { UnorderedListComponent } from "./components/unordered-list/unordered-list.component";
|
|
52
52
|
export declare const pipes: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe)[];
|
|
53
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)[];
|
|
54
|
-
export declare const components: (typeof
|
|
55
|
-
export declare const providers: (typeof
|
|
54
|
+
export declare const components: (typeof DynamicTableComponent | typeof PaginationMenuComponent | typeof UnorderedListComponent)[];
|
|
55
|
+
export declare const providers: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | 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 StateService | typeof StorageService | typeof BaseToasterService | typeof TranslatedUrlSerializer | typeof UniversalService | typeof WasmService | typeof DeviceDetectorService | {
|
|
56
56
|
provide: import("@angular/core").InjectionToken<import("@angular/platform-browser").EventManagerPlugin[]>;
|
|
57
57
|
useClass: typeof DragDropEventPlugin;
|
|
58
58
|
multi: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { KeyValue } from "@angular/common";
|
|
2
2
|
export type DragHandlerEvents = "dragstart" | "dragenter" | "dragleave" | "drop";
|
|
3
|
-
export type DragEventListener = (ev: DragEvent) =>
|
|
3
|
+
export type DragEventListener = (ev: DragEvent) => boolean | void;
|
|
4
4
|
export declare class DragDropHandler {
|
|
5
5
|
protected el: HTMLElement;
|
|
6
6
|
protected static handlers: Map<HTMLElement, DragDropHandler>;
|