@stemy/ngx-utils 19.2.24 → 19.3.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/README.md +27 -27
- package/assets/ng.mjs +5 -5
- package/fesm2022/stemy-ngx-utils-tools.mjs.map +1 -1
- package/fesm2022/stemy-ngx-utils.mjs +462 -319
- package/fesm2022/stemy-ngx-utils.mjs.map +1 -1
- package/ng.mjs +5 -5
- package/ngx-utils/components/dropdown-box/dropdown-box.component.d.ts +55 -0
- package/ngx-utils/components/dynamic-table/dynamic-table.component.d.ts +1 -1
- package/ngx-utils/components/pagination-menu/pagination-menu.component.d.ts +1 -8
- package/ngx-utils/directives/async-method.base.d.ts +1 -1
- package/ngx-utils/directives/dropdown-content.directive.d.ts +15 -6
- package/ngx-utils/directives/dropdown.directive.d.ts +26 -4
- package/ngx-utils/ngx-utils.imports.d.ts +1 -1
- package/ngx-utils/ngx-utils.module.d.ts +9 -8
- package/ngx-utils/utils/file-system.d.ts +5 -5
- package/ngx-utils/utils/misc.d.ts +1 -0
- package/package.json +10 -9
- package/public_api.d.ts +1 -0
package/ng.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { register } from "node:module";
|
|
2
|
-
import { pathToFileURL } from "node:url";
|
|
3
|
-
|
|
4
|
-
register("ts-node/esm", pathToFileURL("./"));
|
|
5
|
-
import "@angular/cli/bin/ng.js";
|
|
1
|
+
import { register } from "node:module";
|
|
2
|
+
import { pathToFileURL } from "node:url";
|
|
3
|
+
|
|
4
|
+
register("ts-node/esm", pathToFileURL("./"));
|
|
5
|
+
import "@angular/cli/bin/ng.js";
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { AfterViewInit, OnChanges } from "@angular/core";
|
|
2
|
+
import { Placement } from "@floating-ui/utils";
|
|
3
|
+
import { Alignment, AutoPlacementOptions } from "@floating-ui/dom";
|
|
4
|
+
import { DropdownContentDirective } from "../../directives/dropdown-content.directive";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class DropdownBoxComponent implements AfterViewInit, OnChanges {
|
|
7
|
+
/**
|
|
8
|
+
* Determines if the dropdown should be closed even if we click inside it
|
|
9
|
+
*/
|
|
10
|
+
closeInside: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Determines if the floating element needs to be placed in the root node or keep where it was before
|
|
13
|
+
*/
|
|
14
|
+
attachToRoot: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Where to place the floating element relative to the reference element.
|
|
17
|
+
*/
|
|
18
|
+
placement: Placement;
|
|
19
|
+
/**
|
|
20
|
+
* The axis that runs along the alignment of the floating element. Determines
|
|
21
|
+
* whether to check for most space along this axis.
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
crossAxis?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Choose placements with a particular alignment.
|
|
27
|
+
* @default undefined
|
|
28
|
+
*/
|
|
29
|
+
alignment?: Alignment | null;
|
|
30
|
+
/**
|
|
31
|
+
* Whether to choose placements with the opposite alignment if the preferred
|
|
32
|
+
* alignment does not fit.
|
|
33
|
+
* @default true
|
|
34
|
+
*/
|
|
35
|
+
autoAlignment?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Which placements are allowed to be chosen. Placements must be within the
|
|
38
|
+
* `alignment` option if explicitly set.
|
|
39
|
+
* @default allPlacements (variable)
|
|
40
|
+
*/
|
|
41
|
+
allowedPlacements?: Array<Placement>;
|
|
42
|
+
/**
|
|
43
|
+
* Adds a class to the main div element and also to the content
|
|
44
|
+
* ('drop' by default which translates to 'drop-content-wrapper' in case of content)
|
|
45
|
+
*/
|
|
46
|
+
componentClass: string;
|
|
47
|
+
autoPlacement: AutoPlacementOptions;
|
|
48
|
+
content: DropdownContentDirective;
|
|
49
|
+
constructor();
|
|
50
|
+
protected makeAutoPlacementOpts(): void;
|
|
51
|
+
ngAfterViewInit(): void;
|
|
52
|
+
ngOnChanges(): void;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownBoxComponent, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownBoxComponent, "dropdown-box", never, { "closeInside": { "alias": "closeInside"; "required": false; }; "attachToRoot": { "alias": "attachToRoot"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "crossAxis": { "alias": "crossAxis"; "required": false; }; "alignment": { "alias": "alignment"; "required": false; }; "autoAlignment": { "alias": "autoAlignment"; "required": false; }; "allowedPlacements": { "alias": "allowedPlacements"; "required": false; }; "componentClass": { "alias": "componentClass"; "required": false; }; }, {}, never, ["[toggle-content]", "*"], false, never>;
|
|
55
|
+
}
|
|
@@ -72,7 +72,7 @@ export declare class DynamicTableComponent implements AfterContentInit, AfterVie
|
|
|
72
72
|
onDrop(ev: DragEvent, elem: HTMLElement, item: any): void;
|
|
73
73
|
refresh(time?: number): void;
|
|
74
74
|
setFilter(filter: string): void;
|
|
75
|
-
setSorting(column: string, toggle
|
|
75
|
+
setSorting(column: string, toggle?: DropdownDirective): void;
|
|
76
76
|
setQueryValue(c: string, value: string | boolean): void;
|
|
77
77
|
setItemsPerPage(count: number): void;
|
|
78
78
|
loadData: (page: number, itemsPerPage: number) => Promise<IPaginationData>;
|
|
@@ -1,30 +1,23 @@
|
|
|
1
1
|
import { OnChanges, OnDestroy, OnInit, SimpleChanges } from "@angular/core";
|
|
2
2
|
import { StateService } from "../../services/state.service";
|
|
3
3
|
import { PaginationDirective } from "../../directives/pagination.directive";
|
|
4
|
-
import { IIconService } from "../../common-types";
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class PaginationMenuComponent implements OnInit, OnDestroy, OnChanges {
|
|
7
6
|
state: StateService;
|
|
8
7
|
pagination: PaginationDirective;
|
|
9
|
-
icons: IIconService;
|
|
10
8
|
maxSize: number;
|
|
11
9
|
urlParam: string;
|
|
12
10
|
directionLinks: boolean;
|
|
13
11
|
boundaryLinks: boolean;
|
|
14
12
|
pages: number[];
|
|
15
|
-
firstLabel: string;
|
|
16
|
-
prevLabel: string;
|
|
17
|
-
nextLabel: string;
|
|
18
|
-
lastLabel: string;
|
|
19
13
|
get hasPrev(): boolean;
|
|
20
14
|
get hasNext(): boolean;
|
|
21
15
|
private onRefresh;
|
|
22
|
-
constructor(state: StateService, pagination: PaginationDirective
|
|
16
|
+
constructor(state: StateService, pagination: PaginationDirective);
|
|
23
17
|
ngOnInit(): void;
|
|
24
18
|
ngOnDestroy(): void;
|
|
25
19
|
ngOnChanges(changes: SimpleChanges): void;
|
|
26
20
|
paginate(page: number): void;
|
|
27
|
-
protected setIcon(labelName: string, icon: string): void;
|
|
28
21
|
protected setPages(): number;
|
|
29
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationMenuComponent, never>;
|
|
30
23
|
static ɵcmp: i0.ɵɵComponentDeclaration<PaginationMenuComponent, "pagination-menu", never, { "maxSize": { "alias": "maxSize"; "required": false; }; "urlParam": { "alias": "urlParam"; "required": false; }; "directionLinks": { "alias": "directionLinks"; "required": false; }; "boundaryLinks": { "alias": "boundaryLinks"; "required": false; }; }, {}, never, never, false, never>;
|
|
@@ -14,7 +14,7 @@ export declare class AsyncMethodBase implements OnChanges {
|
|
|
14
14
|
constructor(toaster: IToasterService, cdr: ChangeDetectorRef);
|
|
15
15
|
protected getMethod(): AsyncMethod;
|
|
16
16
|
ngOnChanges(): void;
|
|
17
|
-
click(ev: Event):
|
|
17
|
+
click(ev: Event): boolean;
|
|
18
18
|
callMethod(): boolean;
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<AsyncMethodBase, never>;
|
|
20
20
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AsyncMethodBase, "[__asmb__]", never, { "disabled": { "alias": "disabled"; "required": false; }; "context": { "alias": "context"; "required": false; }; }, { "onSuccess": "onSuccess"; "onError": "onError"; }, never, never, false, never>;
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnDestroy, OnInit, TemplateRef, ViewContainerRef } from "@angular/core";
|
|
2
|
+
import { Subscription } from "rxjs";
|
|
2
3
|
import { DropdownDirective } from "./dropdown.directive";
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class DropdownContentDirective implements OnInit, OnDestroy {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
protected vcr: ViewContainerRef;
|
|
7
|
+
protected dropdown: DropdownDirective;
|
|
8
|
+
readonly templateRef: TemplateRef<any>;
|
|
9
|
+
protected root: HTMLElement;
|
|
10
|
+
protected subscription: Subscription;
|
|
11
|
+
protected lastPlacement: string;
|
|
12
|
+
protected cleanUp: () => void;
|
|
13
|
+
constructor(vcr: ViewContainerRef, dropdown: DropdownDirective, templateRef: TemplateRef<any>);
|
|
9
14
|
ngOnInit(): void;
|
|
10
15
|
ngOnDestroy(): void;
|
|
11
|
-
|
|
16
|
+
protected createView(init?: boolean): void;
|
|
17
|
+
protected destroyView(): void;
|
|
18
|
+
protected createWrapper(): HTMLDivElement;
|
|
19
|
+
initialize(): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownContentDirective, [null, { optional: true; }, { optional: true; }]>;
|
|
12
21
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownContentDirective, "[dropdownContent]", ["dropdown-content"], {}, {}, never, never, false, never>;
|
|
13
22
|
}
|
|
@@ -1,15 +1,38 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, OnDestroy } from "@angular/core";
|
|
2
|
+
import { AutoPlacementOptions, Placement } from "@floating-ui/dom";
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class DropdownDirective implements OnDestroy {
|
|
4
5
|
protected element: ElementRef<HTMLElement>;
|
|
5
6
|
protected static active: DropdownDirective;
|
|
6
7
|
protected opened: boolean;
|
|
7
8
|
protected disabled: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Determines if the dropdown should be closed even if we click inside it
|
|
11
|
+
*/
|
|
8
12
|
closeInside: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Determines if the floating element needs to be placed in the root node or keep where it was before
|
|
15
|
+
*/
|
|
16
|
+
attachToRoot: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Where to place the floating element relative to the reference element.
|
|
19
|
+
*/
|
|
20
|
+
placement: Placement;
|
|
21
|
+
/**
|
|
22
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
|
23
|
+
* that has the most space available automatically, without needing to specify a
|
|
24
|
+
* preferred placement. Alternative to `flip`.
|
|
25
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
|
26
|
+
*/
|
|
27
|
+
autoPlacement: AutoPlacementOptions;
|
|
28
|
+
/**
|
|
29
|
+
* Determines if the dropdown should react to keys to close like 'Esc'
|
|
30
|
+
*/
|
|
9
31
|
keyboardHandler: boolean;
|
|
10
32
|
onShown: EventEmitter<DropdownDirective>;
|
|
11
33
|
onHidden: EventEmitter<DropdownDirective>;
|
|
12
34
|
onKeyboard: EventEmitter<KeyboardEvent>;
|
|
35
|
+
contentElement: HTMLElement;
|
|
13
36
|
private readonly onTap;
|
|
14
37
|
private readonly onKeyDown;
|
|
15
38
|
get nativeElement(): HTMLElement;
|
|
@@ -20,9 +43,8 @@ export declare class DropdownDirective implements OnDestroy {
|
|
|
20
43
|
ngOnDestroy(): void;
|
|
21
44
|
showEvent(): void;
|
|
22
45
|
hideEvent(): void;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
hide(): void;
|
|
46
|
+
show($event?: Event): boolean;
|
|
47
|
+
hide(): boolean;
|
|
26
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownDirective, never>;
|
|
27
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownDirective, "[dd],[drop-down]", ["dropdown"], { "closeInside": { "alias": "closeInside"; "required": false; }; "keyboardHandler": { "alias": "keyboardHandler"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; }, { "onShown": "onShown"; "onHidden": "onHidden"; "onKeyboard": "onKeyboard"; }, never, never, false, never>;
|
|
49
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownDirective, "[dd],[drop-down]", ["dropdown"], { "closeInside": { "alias": "closeInside"; "required": false; }; "attachToRoot": { "alias": "attachToRoot"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "autoPlacement": { "alias": "autoPlacement"; "required": false; }; "keyboardHandler": { "alias": "keyboardHandler"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; }, { "onShown": "onShown"; "onHidden": "onHidden"; "onKeyboard": "onKeyboard"; }, never, never, false, never>;
|
|
28
50
|
}
|
|
@@ -62,7 +62,7 @@ import { UploadComponent } from "./components/upload/upload.component";
|
|
|
62
62
|
export declare const pipes: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof IncludesPipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe)[];
|
|
63
63
|
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)[];
|
|
64
64
|
export declare const components: (typeof DropListComponent | typeof DynamicTableComponent | typeof FakeModuleComponent | typeof PaginationMenuComponent | typeof UnorderedListComponent | typeof UploadComponent)[];
|
|
65
|
-
export declare const providers: (typeof
|
|
65
|
+
export declare const providers: (typeof DeviceDetectorService | 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 ComponentLoaderService | typeof TranslatedUrlSerializer | typeof PromiseService | typeof SocketService | typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof IncludesPipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe | {
|
|
66
66
|
provide: import("@angular/core").InjectionToken<import("@angular/platform-browser").EventManagerPlugin[]>;
|
|
67
67
|
useClass: typeof DragDropEventPlugin;
|
|
68
68
|
multi: boolean;
|
|
@@ -49,13 +49,14 @@ import * as i45 from "./directives/dropdown-toggle.directive";
|
|
|
49
49
|
import * as i46 from "./directives/unordered-list-item.directive";
|
|
50
50
|
import * as i47 from "./directives/unordered-list-template.directive";
|
|
51
51
|
import * as i48 from "./components/drop-list/drop-list.component";
|
|
52
|
-
import * as i49 from "./components/
|
|
53
|
-
import * as i50 from "./components/
|
|
54
|
-
import * as i51 from "./components/
|
|
55
|
-
import * as i52 from "./components/
|
|
56
|
-
import * as i53 from "./components/
|
|
57
|
-
import * as i54 from "
|
|
58
|
-
import * as i55 from "@angular/
|
|
52
|
+
import * as i49 from "./components/dropdown-box/dropdown-box.component";
|
|
53
|
+
import * as i50 from "./components/dynamic-table/dynamic-table.component";
|
|
54
|
+
import * as i51 from "./components/fake-module/fake-module.component";
|
|
55
|
+
import * as i52 from "./components/pagination-menu/pagination-menu.component";
|
|
56
|
+
import * as i53 from "./components/unordered-list/unordered-list.component";
|
|
57
|
+
import * as i54 from "./components/upload/upload.component";
|
|
58
|
+
import * as i55 from "@angular/common";
|
|
59
|
+
import * as i56 from "@angular/forms";
|
|
59
60
|
export declare function loadBaseUrl(): string;
|
|
60
61
|
export declare function loadBaseHref(baseUrl: string): string;
|
|
61
62
|
export declare class NgxUtilsModule {
|
|
@@ -65,6 +66,6 @@ export declare class NgxUtilsModule {
|
|
|
65
66
|
static useDynamic(moduleInfo: DynamicModuleInfo): ModuleWithProviders<NgxUtilsModule>;
|
|
66
67
|
constructor();
|
|
67
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxUtilsModule, never>;
|
|
68
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxUtilsModule, [typeof i1.ChunkPipe, typeof i2.EntriesPipe, typeof i3.ExtraItemPropertiesPipe, typeof i4.FilterPipe, typeof i5.FindPipe, typeof i6.FormatNumberPipe, typeof i7.GetOffsetPipe, typeof i8.GetTypePipe, typeof i9.GetValuePipe, typeof i10.GlobalTemplatePipe, typeof i11.GroupByPipe, typeof i12.IncludesPipe, typeof i13.IsTypePipe, typeof i14.JoinPipe, typeof i15.KeysPipe, typeof i16.MapPipe, typeof i17.MaxPipe, typeof i18.MinPipe, typeof i19.PopPipe, typeof i20.ReducePipe, typeof i21.RemapPipe, typeof i22.ReplacePipe, typeof i23.ReversePipe, typeof i24.RoundPipe, typeof i25.SafeHtmlPipe, typeof i26.ShiftPipe, typeof i27.SplitPipe, typeof i28.TranslatePipe, typeof i29.ValuesPipe, typeof i30.AsyncMethodBase, typeof i31.AsyncMethodDirective, typeof i32.BackgroundDirective, typeof i33.ComponentLoaderDirective, typeof i34.DynamicTableTemplateDirective, typeof i35.GlobalTemplateDirective, typeof i36.IconDirective, typeof i37.NgxTemplateOutletDirective, typeof i38.PaginationDirective, typeof i39.PaginationItemDirective, typeof i40.ResourceIfDirective, typeof i41.StickyDirective, typeof i42.StickyClassDirective, typeof i43.DropdownDirective, typeof i44.DropdownContentDirective, typeof i45.DropdownToggleDirective, typeof i46.UnorderedListItemDirective, typeof i47.UnorderedListTemplateDirective, typeof i48.DropListComponent, typeof i49.
|
|
69
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxUtilsModule, [typeof i1.ChunkPipe, typeof i2.EntriesPipe, typeof i3.ExtraItemPropertiesPipe, typeof i4.FilterPipe, typeof i5.FindPipe, typeof i6.FormatNumberPipe, typeof i7.GetOffsetPipe, typeof i8.GetTypePipe, typeof i9.GetValuePipe, typeof i10.GlobalTemplatePipe, typeof i11.GroupByPipe, typeof i12.IncludesPipe, typeof i13.IsTypePipe, typeof i14.JoinPipe, typeof i15.KeysPipe, typeof i16.MapPipe, typeof i17.MaxPipe, typeof i18.MinPipe, typeof i19.PopPipe, typeof i20.ReducePipe, typeof i21.RemapPipe, typeof i22.ReplacePipe, typeof i23.ReversePipe, typeof i24.RoundPipe, typeof i25.SafeHtmlPipe, typeof i26.ShiftPipe, typeof i27.SplitPipe, typeof i28.TranslatePipe, typeof i29.ValuesPipe, typeof i30.AsyncMethodBase, typeof i31.AsyncMethodDirective, typeof i32.BackgroundDirective, typeof i33.ComponentLoaderDirective, typeof i34.DynamicTableTemplateDirective, typeof i35.GlobalTemplateDirective, typeof i36.IconDirective, typeof i37.NgxTemplateOutletDirective, typeof i38.PaginationDirective, typeof i39.PaginationItemDirective, typeof i40.ResourceIfDirective, typeof i41.StickyDirective, typeof i42.StickyClassDirective, typeof i43.DropdownDirective, typeof i44.DropdownContentDirective, typeof i45.DropdownToggleDirective, typeof i46.UnorderedListItemDirective, typeof i47.UnorderedListTemplateDirective, typeof i48.DropListComponent, typeof i49.DropdownBoxComponent, typeof i50.DynamicTableComponent, typeof i51.FakeModuleComponent, typeof i52.PaginationMenuComponent, typeof i53.UnorderedListComponent, typeof i54.UploadComponent], [typeof i55.CommonModule, typeof i56.FormsModule], [typeof i1.ChunkPipe, typeof i2.EntriesPipe, typeof i3.ExtraItemPropertiesPipe, typeof i4.FilterPipe, typeof i5.FindPipe, typeof i6.FormatNumberPipe, typeof i7.GetOffsetPipe, typeof i8.GetTypePipe, typeof i9.GetValuePipe, typeof i10.GlobalTemplatePipe, typeof i11.GroupByPipe, typeof i12.IncludesPipe, typeof i13.IsTypePipe, typeof i14.JoinPipe, typeof i15.KeysPipe, typeof i16.MapPipe, typeof i17.MaxPipe, typeof i18.MinPipe, typeof i19.PopPipe, typeof i20.ReducePipe, typeof i21.RemapPipe, typeof i22.ReplacePipe, typeof i23.ReversePipe, typeof i24.RoundPipe, typeof i25.SafeHtmlPipe, typeof i26.ShiftPipe, typeof i27.SplitPipe, typeof i28.TranslatePipe, typeof i29.ValuesPipe, typeof i30.AsyncMethodBase, typeof i31.AsyncMethodDirective, typeof i32.BackgroundDirective, typeof i33.ComponentLoaderDirective, typeof i34.DynamicTableTemplateDirective, typeof i35.GlobalTemplateDirective, typeof i36.IconDirective, typeof i37.NgxTemplateOutletDirective, typeof i38.PaginationDirective, typeof i39.PaginationItemDirective, typeof i40.ResourceIfDirective, typeof i41.StickyDirective, typeof i42.StickyClassDirective, typeof i43.DropdownDirective, typeof i44.DropdownContentDirective, typeof i45.DropdownToggleDirective, typeof i46.UnorderedListItemDirective, typeof i47.UnorderedListTemplateDirective, typeof i48.DropListComponent, typeof i49.DropdownBoxComponent, typeof i50.DynamicTableComponent, typeof i51.FakeModuleComponent, typeof i52.PaginationMenuComponent, typeof i53.UnorderedListComponent, typeof i54.UploadComponent, typeof i56.FormsModule]>;
|
|
69
70
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgxUtilsModule>;
|
|
70
71
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export type FileSystemEntryOpenResult = ReadonlyArray<FileSystemEntry
|
|
1
|
+
export type FileSystemEntryOpenResult<T = any> = ReadonlyArray<FileSystemEntry<T>> | null;
|
|
2
2
|
export type FileSystemEntryOpenCb = (data: any, parent: FileSystemEntry) => Promise<FileSystemEntryOpenResult>;
|
|
3
|
-
export declare class FileSystemEntry {
|
|
3
|
+
export declare class FileSystemEntry<T = any, R = any> {
|
|
4
4
|
readonly label: string;
|
|
5
5
|
readonly meta: string;
|
|
6
6
|
readonly image: string;
|
|
7
|
-
readonly data:
|
|
7
|
+
readonly data: T;
|
|
8
8
|
readonly parent: FileSystemEntry;
|
|
9
9
|
protected openCb: FileSystemEntryOpenCb;
|
|
10
10
|
protected result: Promise<FileSystemEntryOpenResult>;
|
|
11
11
|
readonly path: ReadonlyArray<FileSystemEntry>;
|
|
12
12
|
readonly level: number;
|
|
13
13
|
readonly classes: ReadonlyArray<string>;
|
|
14
|
-
constructor(label: string, meta: string, image: string, data:
|
|
15
|
-
open(): Promise<FileSystemEntryOpenResult
|
|
14
|
+
constructor(label: string, meta: string, image: string, data: T, parent: FileSystemEntry, openCb: FileSystemEntryOpenCb);
|
|
15
|
+
open<O = R>(): Promise<FileSystemEntryOpenResult<O>>;
|
|
16
16
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Type, ValueProvider, ɵComponentDef as ComponentDef } from "@angular/core";
|
|
2
2
|
import { CssSelector, CssSelectorList } from "../common-types";
|
|
3
|
+
export declare function getCssVariables(elem: HTMLElement): Record<string, string>;
|
|
3
4
|
export declare function checkTransitions(el: HTMLElement, cb: () => any): void;
|
|
4
5
|
export declare function getComponentDef<T>(type: Type<T>): ComponentDef<T>;
|
|
5
6
|
export declare function parseSelector(selector: string | CssSelector): CssSelector;
|
package/package.json
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stemy/ngx-utils",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.3.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"public": true,
|
|
6
6
|
"repository": "https://github.com/stemyke/ngx-utils.git",
|
|
7
7
|
"author": "stemy <balazs.stemler@metrix.co.hu>",
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@angular/animations": "^
|
|
10
|
-
"@angular/common": "^
|
|
11
|
-
"@angular/compiler": "^
|
|
12
|
-
"@angular/core": "^
|
|
13
|
-
"@angular/forms": "^
|
|
14
|
-
"@angular/router": "^
|
|
15
|
-
"@angular/platform-browser": "^
|
|
16
|
-
"@angular/platform-server": "^
|
|
9
|
+
"@angular/animations": "^19.0.0",
|
|
10
|
+
"@angular/common": "^19.0.0",
|
|
11
|
+
"@angular/compiler": "^19.0.0",
|
|
12
|
+
"@angular/core": "^19.0.0",
|
|
13
|
+
"@angular/forms": "^19.0.0",
|
|
14
|
+
"@angular/router": "^19.0.0",
|
|
15
|
+
"@angular/platform-browser": "^19.0.0",
|
|
16
|
+
"@angular/platform-server": "^19.0.0",
|
|
17
17
|
"express": "^4.21.2",
|
|
18
18
|
"element-resize-detector": "^1.2.4",
|
|
19
19
|
"rxjs": "^6.6.2 || ~7.8.0",
|
|
20
20
|
"moment": "^2.30.1",
|
|
21
21
|
"invokable": "^1.0.3",
|
|
22
22
|
"ngx-device-detector": "^5.0.1 || ^8.0.0",
|
|
23
|
+
"@floating-ui/dom": "^1.6.13",
|
|
23
24
|
"json5": "^2.2.3"
|
|
24
25
|
},
|
|
25
26
|
"main": "dist/bundles/stemy-ngx-utils.umd.js",
|
package/public_api.d.ts
CHANGED
|
@@ -102,6 +102,7 @@ export { DropdownToggleDirective } from "./ngx-utils/directives/dropdown-toggle.
|
|
|
102
102
|
export { UnorderedListItemDirective } from "./ngx-utils/directives/unordered-list-item.directive";
|
|
103
103
|
export { UnorderedListTemplateDirective } from "./ngx-utils/directives/unordered-list-template.directive";
|
|
104
104
|
export { DropListComponent } from "./ngx-utils/components/drop-list/drop-list.component";
|
|
105
|
+
export { DropdownBoxComponent } from "./ngx-utils/components/dropdown-box/dropdown-box.component";
|
|
105
106
|
export { DynamicTableComponent } from "./ngx-utils/components/dynamic-table/dynamic-table.component";
|
|
106
107
|
export { FakeModuleComponent } from "./ngx-utils/components/fake-module/fake-module.component";
|
|
107
108
|
export { PaginationMenuComponent } from "./ngx-utils/components/pagination-menu/pagination-menu.component";
|