@stemy/ngx-utils 19.2.9 → 19.2.11
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 +162 -22
- package/fesm2022/stemy-ngx-utils.mjs.map +1 -1
- package/ngx-utils/components/dynamic-table/dynamic-table.component.d.ts +4 -2
- package/ngx-utils/directives/toggle.directive.d.ts +27 -0
- package/ngx-utils/ngx-utils.imports.d.ts +3 -2
- package/ngx-utils/ngx-utils.module.d.ts +11 -10
- package/ngx-utils/services/config.service.d.ts +2 -2
- package/ngx-utils/utils/loader.utils.d.ts +2 -2
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
|
@@ -2,12 +2,14 @@ import { AfterContentInit, AfterViewInit, OnChanges, QueryList, SimpleChanges, T
|
|
|
2
2
|
import { DragEventHandler, IPaginationData, ITableColumns, ITableDataQuery, ITableTemplates, TableColumns, TableDataLoader } from "../../common-types";
|
|
3
3
|
import { DynamicTableTemplateDirective } from "../../directives/dynamic-table-template.directive";
|
|
4
4
|
import { PaginationDirective } from "../../directives/pagination.directive";
|
|
5
|
+
import { ToggleDirective } from "../../directives/toggle.directive";
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class DynamicTableComponent implements AfterContentInit, AfterViewInit, OnChanges {
|
|
7
8
|
label: string;
|
|
8
9
|
placeholder: string;
|
|
9
10
|
dataLoader: TableDataLoader;
|
|
10
11
|
data: any[];
|
|
12
|
+
selected: any;
|
|
11
13
|
page: number;
|
|
12
14
|
urlParam: string;
|
|
13
15
|
parallelData: any[];
|
|
@@ -54,10 +56,10 @@ export declare class DynamicTableComponent implements AfterContentInit, AfterVie
|
|
|
54
56
|
onDrop(ev: DragEvent, elem: HTMLElement, item: any): void;
|
|
55
57
|
refresh(time?: number): void;
|
|
56
58
|
setFilter(filter: string): void;
|
|
57
|
-
|
|
59
|
+
setSorting(column: string, toggle: ToggleDirective): boolean;
|
|
58
60
|
updateQuery(c: string, value: string | boolean): void;
|
|
59
61
|
loadData: (page: number, itemsPerPage: number) => Promise<IPaginationData>;
|
|
60
62
|
protected loadLocalData(page: number, rowsPerPage: number, orderBy: string, orderDescending: boolean, filter: string): Promise<IPaginationData>;
|
|
61
63
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicTableComponent, never>;
|
|
62
|
-
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"], ["[table-filter]", "[table-top]", "[table-bottom]"], false, never>;
|
|
64
|
+
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; }; "selected": { "alias": "selected"; "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"], ["[table-filter]", "[table-top]", "[table-bottom]"], false, never>;
|
|
63
65
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnDestroy } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ToggleDirective implements OnDestroy {
|
|
4
|
+
readonly element: ElementRef;
|
|
5
|
+
protected static active: ToggleDirective;
|
|
6
|
+
protected opened: boolean;
|
|
7
|
+
protected disabled: boolean;
|
|
8
|
+
closeInside: boolean;
|
|
9
|
+
keyboardHandler: boolean;
|
|
10
|
+
onShown: EventEmitter<ToggleDirective>;
|
|
11
|
+
onHidden: EventEmitter<ToggleDirective>;
|
|
12
|
+
onKeyboard: EventEmitter<KeyboardEvent>;
|
|
13
|
+
private readonly onTap;
|
|
14
|
+
private readonly onKeyDown;
|
|
15
|
+
get nativeElement(): HTMLElement;
|
|
16
|
+
get isOpened(): boolean;
|
|
17
|
+
get getDisabled(): boolean;
|
|
18
|
+
set isDisabled(value: boolean);
|
|
19
|
+
constructor(element: ElementRef);
|
|
20
|
+
ngOnDestroy(): void;
|
|
21
|
+
showEvent(): void;
|
|
22
|
+
hideEvent(): void;
|
|
23
|
+
show($event?: Event): void;
|
|
24
|
+
hide(): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToggleDirective, never>;
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ToggleDirective, "[toggle]", ["toggle"], { "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>;
|
|
27
|
+
}
|
|
@@ -37,6 +37,7 @@ import { PaginationItemDirective } from "./directives/pagination-item.directive"
|
|
|
37
37
|
import { ResourceIfDirective } from "./directives/resource-if.directive";
|
|
38
38
|
import { StickyDirective } from "./directives/sticky.directive";
|
|
39
39
|
import { StickyClassDirective } from "./directives/sticky-class.directive";
|
|
40
|
+
import { ToggleDirective } from "./directives/toggle.directive";
|
|
40
41
|
import { UnorderedListItemDirective } from "./directives/unordered-list-item.directive";
|
|
41
42
|
import { UnorderedListTemplateDirective } from "./directives/unordered-list-template.directive";
|
|
42
43
|
import { FilterPipe } from "./pipes/filter.pipe";
|
|
@@ -52,9 +53,9 @@ import { PaginationMenuComponent } from "./components/pagination-menu/pagination
|
|
|
52
53
|
import { UnorderedListComponent } from "./components/unordered-list/unordered-list.component";
|
|
53
54
|
import { UploadComponent } from "./components/upload/upload.component";
|
|
54
55
|
export declare const pipes: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe)[];
|
|
55
|
-
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)[];
|
|
56
|
+
export declare const directives: (typeof ToggleDirective | 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)[];
|
|
56
57
|
export declare const components: (typeof DropListComponent | typeof DynamicTableComponent | typeof PaginationMenuComponent | typeof UnorderedListComponent | typeof UploadComponent)[];
|
|
57
|
-
export declare const providers: (typeof
|
|
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 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 | {
|
|
58
59
|
provide: import("@angular/core").InjectionToken<import("@angular/platform-browser").EventManagerPlugin[]>;
|
|
59
60
|
useClass: typeof DragDropEventPlugin;
|
|
60
61
|
multi: boolean;
|
|
@@ -41,15 +41,16 @@ import * as i37 from "./directives/pagination-item.directive";
|
|
|
41
41
|
import * as i38 from "./directives/resource-if.directive";
|
|
42
42
|
import * as i39 from "./directives/sticky.directive";
|
|
43
43
|
import * as i40 from "./directives/sticky-class.directive";
|
|
44
|
-
import * as i41 from "./directives/
|
|
45
|
-
import * as i42 from "./directives/unordered-list-
|
|
46
|
-
import * as i43 from "./
|
|
47
|
-
import * as i44 from "./components/
|
|
48
|
-
import * as i45 from "./components/
|
|
49
|
-
import * as i46 from "./components/
|
|
50
|
-
import * as i47 from "./components/
|
|
51
|
-
import * as i48 from "
|
|
52
|
-
import * as i49 from "@angular/
|
|
44
|
+
import * as i41 from "./directives/toggle.directive";
|
|
45
|
+
import * as i42 from "./directives/unordered-list-item.directive";
|
|
46
|
+
import * as i43 from "./directives/unordered-list-template.directive";
|
|
47
|
+
import * as i44 from "./components/drop-list/drop-list.component";
|
|
48
|
+
import * as i45 from "./components/dynamic-table/dynamic-table.component";
|
|
49
|
+
import * as i46 from "./components/pagination-menu/pagination-menu.component";
|
|
50
|
+
import * as i47 from "./components/unordered-list/unordered-list.component";
|
|
51
|
+
import * as i48 from "./components/upload/upload.component";
|
|
52
|
+
import * as i49 from "@angular/common";
|
|
53
|
+
import * as i50 from "@angular/forms";
|
|
53
54
|
export declare function loadBaseUrl(): string;
|
|
54
55
|
export declare function loadBaseHref(baseUrl: string): string;
|
|
55
56
|
export declare class NgxUtilsModule {
|
|
@@ -58,6 +59,6 @@ export declare class NgxUtilsModule {
|
|
|
58
59
|
static provideUtils(config?: IModuleConfig): EnvironmentProviders;
|
|
59
60
|
constructor();
|
|
60
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxUtilsModule, never>;
|
|
61
|
-
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.IsTypePipe, typeof i13.JoinPipe, typeof i14.KeysPipe, typeof i15.MapPipe, typeof i16.MaxPipe, typeof i17.MinPipe, typeof i18.PopPipe, typeof i19.ReducePipe, typeof i20.RemapPipe, typeof i21.ReplacePipe, typeof i22.ReversePipe, typeof i23.RoundPipe, typeof i24.SafeHtmlPipe, typeof i25.ShiftPipe, typeof i26.SplitPipe, typeof i27.TranslatePipe, typeof i28.ValuesPipe, typeof i29.AsyncMethodBase, typeof i30.AsyncMethodDirective, typeof i31.BackgroundDirective, typeof i32.DynamicTableTemplateDirective, typeof i33.GlobalTemplateDirective, typeof i34.IconDirective, typeof i35.NgxTemplateOutletDirective, typeof i36.PaginationDirective, typeof i37.PaginationItemDirective, typeof i38.ResourceIfDirective, typeof i39.StickyDirective, typeof i40.StickyClassDirective, typeof i41.
|
|
62
|
+
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.IsTypePipe, typeof i13.JoinPipe, typeof i14.KeysPipe, typeof i15.MapPipe, typeof i16.MaxPipe, typeof i17.MinPipe, typeof i18.PopPipe, typeof i19.ReducePipe, typeof i20.RemapPipe, typeof i21.ReplacePipe, typeof i22.ReversePipe, typeof i23.RoundPipe, typeof i24.SafeHtmlPipe, typeof i25.ShiftPipe, typeof i26.SplitPipe, typeof i27.TranslatePipe, typeof i28.ValuesPipe, typeof i29.AsyncMethodBase, typeof i30.AsyncMethodDirective, typeof i31.BackgroundDirective, typeof i32.DynamicTableTemplateDirective, typeof i33.GlobalTemplateDirective, typeof i34.IconDirective, typeof i35.NgxTemplateOutletDirective, typeof i36.PaginationDirective, typeof i37.PaginationItemDirective, typeof i38.ResourceIfDirective, typeof i39.StickyDirective, typeof i40.StickyClassDirective, typeof i41.ToggleDirective, typeof i42.UnorderedListItemDirective, typeof i43.UnorderedListTemplateDirective, typeof i44.DropListComponent, typeof i45.DynamicTableComponent, typeof i46.PaginationMenuComponent, typeof i47.UnorderedListComponent, typeof i48.UploadComponent], [typeof i49.CommonModule, typeof i50.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.IsTypePipe, typeof i13.JoinPipe, typeof i14.KeysPipe, typeof i15.MapPipe, typeof i16.MaxPipe, typeof i17.MinPipe, typeof i18.PopPipe, typeof i19.ReducePipe, typeof i20.RemapPipe, typeof i21.ReplacePipe, typeof i22.ReversePipe, typeof i23.RoundPipe, typeof i24.SafeHtmlPipe, typeof i25.ShiftPipe, typeof i26.SplitPipe, typeof i27.TranslatePipe, typeof i28.ValuesPipe, typeof i29.AsyncMethodBase, typeof i30.AsyncMethodDirective, typeof i31.BackgroundDirective, typeof i32.DynamicTableTemplateDirective, typeof i33.GlobalTemplateDirective, typeof i34.IconDirective, typeof i35.NgxTemplateOutletDirective, typeof i36.PaginationDirective, typeof i37.PaginationItemDirective, typeof i38.ResourceIfDirective, typeof i39.StickyDirective, typeof i40.StickyClassDirective, typeof i41.ToggleDirective, typeof i42.UnorderedListItemDirective, typeof i43.UnorderedListTemplateDirective, typeof i44.DropListComponent, typeof i45.DynamicTableComponent, typeof i46.PaginationMenuComponent, typeof i47.UnorderedListComponent, typeof i48.UploadComponent, typeof i50.FormsModule]>;
|
|
62
63
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgxUtilsModule>;
|
|
63
64
|
}
|
|
@@ -7,7 +7,7 @@ export declare class ConfigService implements IConfigService {
|
|
|
7
7
|
readonly http: HttpClient;
|
|
8
8
|
readonly universal: UniversalService;
|
|
9
9
|
readonly injector: Injector;
|
|
10
|
-
readonly rootElement:
|
|
10
|
+
readonly rootElement: HTMLElement;
|
|
11
11
|
readonly baseUrl: string;
|
|
12
12
|
protected baseConfig: IConfiguration;
|
|
13
13
|
protected loadedConfig: IConfiguration;
|
|
@@ -17,7 +17,7 @@ export declare class ConfigService implements IConfigService {
|
|
|
17
17
|
get load(): () => Promise<IConfiguration>;
|
|
18
18
|
get config(): IConfiguration;
|
|
19
19
|
get configUrl(): string;
|
|
20
|
-
constructor(http: HttpClient, universal: UniversalService, injector: Injector, rootElement:
|
|
20
|
+
constructor(http: HttpClient, universal: UniversalService, injector: Injector, rootElement: HTMLElement, baseUrl: string, baseConfig?: IConfiguration, scriptParams?: any);
|
|
21
21
|
protected initService(): void;
|
|
22
22
|
protected loadJson(): Promise<IConfiguration>;
|
|
23
23
|
protected prepareConfig(config: IConfiguration): Promise<IConfiguration>;
|
|
@@ -2,6 +2,6 @@ import { ScriptType, IScriptPromises, IStylePromises } from "../common-types";
|
|
|
2
2
|
export declare class LoaderUtils {
|
|
3
3
|
static scriptPromises: IScriptPromises;
|
|
4
4
|
static stylePromises: IStylePromises;
|
|
5
|
-
static loadScript(src: string, async?: boolean, type?: ScriptType): Promise<HTMLScriptElement>;
|
|
6
|
-
static loadStyle(src: string): Promise<HTMLLinkElement>;
|
|
5
|
+
static loadScript(src: string, async?: boolean, type?: ScriptType, parent?: Node): Promise<HTMLScriptElement>;
|
|
6
|
+
static loadStyle(src: string, parent?: Node): Promise<HTMLLinkElement>;
|
|
7
7
|
}
|
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -91,6 +91,7 @@ export { PaginationItemDirective } from "./ngx-utils/directives/pagination-item.
|
|
|
91
91
|
export { ResourceIfDirective } from "./ngx-utils/directives/resource-if.directive";
|
|
92
92
|
export { StickyDirective } from "./ngx-utils/directives/sticky.directive";
|
|
93
93
|
export { StickyClassDirective } from "./ngx-utils/directives/sticky-class.directive";
|
|
94
|
+
export { ToggleDirective } from "./ngx-utils/directives/toggle.directive";
|
|
94
95
|
export { UnorderedListItemDirective } from "./ngx-utils/directives/unordered-list-item.directive";
|
|
95
96
|
export { UnorderedListTemplateDirective } from "./ngx-utils/directives/unordered-list-template.directive";
|
|
96
97
|
export { DropListComponent } from "./ngx-utils/components/drop-list/drop-list.component";
|