@stemy/ngx-utils 19.2.11 → 19.2.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 +264 -18
- package/fesm2022/stemy-ngx-utils.mjs.map +1 -1
- package/ngx-utils/common-types.d.ts +7 -1
- package/ngx-utils/components/dynamic-table/dynamic-table.component.d.ts +2 -2
- package/ngx-utils/directives/dropdown-toggle.directive.d.ts +15 -0
- package/ngx-utils/directives/dropdown.directive.d.ts +27 -0
- package/ngx-utils/directives/dynamic-table-template.directive.d.ts +1 -1
- package/ngx-utils/ngx-utils.imports.d.ts +5 -3
- package/ngx-utils/ngx-utils.module.d.ts +12 -11
- package/ngx-utils/services/socket.service.d.ts +24 -0
- package/ngx-utils/utils/socket-client.d.ts +32 -0
- package/package.json +1 -1
- package/public_api.d.ts +4 -1
- package/ngx-utils/directives/toggle.directive.d.ts +0 -27
|
@@ -146,6 +146,7 @@ export interface IDialogService {
|
|
|
146
146
|
confirm(config: IConfirmDialogConfig): void;
|
|
147
147
|
}
|
|
148
148
|
export declare const DIALOG_SERVICE: InjectionToken<IDialogService>;
|
|
149
|
+
export declare const SOCKET_IO_PATH: InjectionToken<string>;
|
|
149
150
|
export interface IPromiseService {
|
|
150
151
|
zone: NgZone;
|
|
151
152
|
count: number;
|
|
@@ -313,9 +314,13 @@ export interface IHttpService {
|
|
|
313
314
|
makeListParams(page: number, itemsPerPage: number, orderBy?: string, orderDescending?: boolean, filter?: string): IHttpParams;
|
|
314
315
|
}
|
|
315
316
|
export declare const EXPRESS_REQUEST: InjectionToken<Request>;
|
|
317
|
+
export interface IBaseHttpClient extends HttpClient {
|
|
318
|
+
readonly requestHeaders: IHttpHeaders;
|
|
319
|
+
readonly requestParams: IHttpParams;
|
|
320
|
+
}
|
|
316
321
|
export interface IApiService extends IHttpService {
|
|
317
322
|
cache: any;
|
|
318
|
-
client:
|
|
323
|
+
client: IBaseHttpClient;
|
|
319
324
|
get(url: string, options?: IRequestOptions): Promise<any>;
|
|
320
325
|
delete(url: string, options?: IRequestOptions): Promise<any>;
|
|
321
326
|
post(url: string, body?: any, options?: IRequestOptions): Promise<any>;
|
|
@@ -432,6 +437,7 @@ export interface IModuleConfig {
|
|
|
432
437
|
baseUrl?: (injector: Injector) => string;
|
|
433
438
|
resizeDelay?: number;
|
|
434
439
|
resizeStrategy?: ResizeEventStrategy;
|
|
440
|
+
socketPath?: string;
|
|
435
441
|
}
|
|
436
442
|
export declare class ValuedPromise<T> extends Promise<T> {
|
|
437
443
|
value: T;
|
|
@@ -2,7 +2,7 @@ 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 {
|
|
5
|
+
import { DropdownDirective } from "../../directives/dropdown.directive";
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class DynamicTableComponent implements AfterContentInit, AfterViewInit, OnChanges {
|
|
8
8
|
label: string;
|
|
@@ -56,7 +56,7 @@ export declare class DynamicTableComponent implements AfterContentInit, AfterVie
|
|
|
56
56
|
onDrop(ev: DragEvent, elem: HTMLElement, item: any): void;
|
|
57
57
|
refresh(time?: number): void;
|
|
58
58
|
setFilter(filter: string): void;
|
|
59
|
-
setSorting(column: string, toggle:
|
|
59
|
+
setSorting(column: string, toggle: DropdownDirective): boolean;
|
|
60
60
|
updateQuery(c: string, value: string | boolean): void;
|
|
61
61
|
loadData: (page: number, itemsPerPage: number) => Promise<IPaginationData>;
|
|
62
62
|
protected loadLocalData(page: number, rowsPerPage: number, orderBy: string, orderDescending: boolean, filter: string): Promise<IPaginationData>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef } from "@angular/core";
|
|
2
|
+
import { DropdownDirective } from "./dropdown.directive";
|
|
3
|
+
import { AsyncMethodBase } from "./async-method.base";
|
|
4
|
+
import { AsyncMethod, IToasterService } from "../common-types";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class DropdownToggleDirective extends AsyncMethodBase {
|
|
7
|
+
readonly element: ElementRef;
|
|
8
|
+
readonly dropdown: DropdownDirective;
|
|
9
|
+
beforeOpen: AsyncMethod;
|
|
10
|
+
constructor(element: ElementRef, dropdown: DropdownDirective, toaster: IToasterService, cdr: ChangeDetectorRef);
|
|
11
|
+
protected getMethod(): AsyncMethod;
|
|
12
|
+
callMethod(): boolean;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownToggleDirective, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownToggleDirective, "[dropdownToggle]", ["dropdown-toggle"], { "beforeOpen": { "alias": "beforeOpen"; "required": false; }; }, {}, never, never, false, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnDestroy } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DropdownDirective implements OnDestroy {
|
|
4
|
+
readonly element: ElementRef;
|
|
5
|
+
protected static active: DropdownDirective;
|
|
6
|
+
protected opened: boolean;
|
|
7
|
+
protected disabled: boolean;
|
|
8
|
+
closeInside: boolean;
|
|
9
|
+
keyboardHandler: boolean;
|
|
10
|
+
onShown: EventEmitter<DropdownDirective>;
|
|
11
|
+
onHidden: EventEmitter<DropdownDirective>;
|
|
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<DropdownDirective, never>;
|
|
26
|
+
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>;
|
|
27
|
+
}
|
|
@@ -2,7 +2,7 @@ import { TemplateRef } from "@angular/core";
|
|
|
2
2
|
import { ITableTemplate } from "../common-types";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class DynamicTableTemplateDirective implements ITableTemplate {
|
|
5
|
-
ref: TemplateRef<any>;
|
|
5
|
+
readonly ref: TemplateRef<any>;
|
|
6
6
|
column: string | string[];
|
|
7
7
|
pure: boolean;
|
|
8
8
|
constructor(ref: TemplateRef<any>);
|
|
@@ -15,6 +15,7 @@ import { FormatterService } from "./services/formatter.service";
|
|
|
15
15
|
import { GlobalTemplateService } from "./services/global-template.service";
|
|
16
16
|
import { IconService } from "./services/icon.service";
|
|
17
17
|
import { PromiseService } from "./services/promise.service";
|
|
18
|
+
import { SocketService } from "./services/socket.service";
|
|
18
19
|
import { OpenApiService } from "./services/open-api.service";
|
|
19
20
|
import { StateService } from "./services/state.service";
|
|
20
21
|
import { StaticLanguageService } from "./services/static-language.service";
|
|
@@ -37,7 +38,8 @@ import { PaginationItemDirective } from "./directives/pagination-item.directive"
|
|
|
37
38
|
import { ResourceIfDirective } from "./directives/resource-if.directive";
|
|
38
39
|
import { StickyDirective } from "./directives/sticky.directive";
|
|
39
40
|
import { StickyClassDirective } from "./directives/sticky-class.directive";
|
|
40
|
-
import {
|
|
41
|
+
import { DropdownDirective } from "./directives/dropdown.directive";
|
|
42
|
+
import { DropdownToggleDirective } from "./directives/dropdown-toggle.directive";
|
|
41
43
|
import { UnorderedListItemDirective } from "./directives/unordered-list-item.directive";
|
|
42
44
|
import { UnorderedListTemplateDirective } from "./directives/unordered-list-template.directive";
|
|
43
45
|
import { FilterPipe } from "./pipes/filter.pipe";
|
|
@@ -53,9 +55,9 @@ import { PaginationMenuComponent } from "./components/pagination-menu/pagination
|
|
|
53
55
|
import { UnorderedListComponent } from "./components/unordered-list/unordered-list.component";
|
|
54
56
|
import { UploadComponent } from "./components/upload/upload.component";
|
|
55
57
|
export declare const pipes: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe)[];
|
|
56
|
-
export declare const directives: (typeof
|
|
58
|
+
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 DropdownDirective | typeof DropdownToggleDirective | typeof UnorderedListItemDirective | typeof UnorderedListTemplateDirective)[];
|
|
57
59
|
export declare const components: (typeof DropListComponent | typeof DynamicTableComponent | typeof PaginationMenuComponent | typeof UnorderedListComponent | typeof UploadComponent)[];
|
|
58
|
-
export declare const providers: (typeof
|
|
60
|
+
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 SocketService | typeof StateService | typeof StorageService | typeof BaseToasterService | typeof TranslatedUrlSerializer | typeof UniversalService | typeof WasmService | typeof DeviceDetectorService | {
|
|
59
61
|
provide: import("@angular/core").InjectionToken<import("@angular/platform-browser").EventManagerPlugin[]>;
|
|
60
62
|
useClass: typeof DragDropEventPlugin;
|
|
61
63
|
multi: boolean;
|
|
@@ -41,16 +41,17 @@ 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/
|
|
46
|
-
import * as i43 from "./directives/unordered-list-
|
|
47
|
-
import * as i44 from "./
|
|
48
|
-
import * as i45 from "./components/
|
|
49
|
-
import * as i46 from "./components/
|
|
50
|
-
import * as i47 from "./components/
|
|
51
|
-
import * as i48 from "./components/
|
|
52
|
-
import * as i49 from "
|
|
53
|
-
import * as i50 from "@angular/
|
|
44
|
+
import * as i41 from "./directives/dropdown.directive";
|
|
45
|
+
import * as i42 from "./directives/dropdown-toggle.directive";
|
|
46
|
+
import * as i43 from "./directives/unordered-list-item.directive";
|
|
47
|
+
import * as i44 from "./directives/unordered-list-template.directive";
|
|
48
|
+
import * as i45 from "./components/drop-list/drop-list.component";
|
|
49
|
+
import * as i46 from "./components/dynamic-table/dynamic-table.component";
|
|
50
|
+
import * as i47 from "./components/pagination-menu/pagination-menu.component";
|
|
51
|
+
import * as i48 from "./components/unordered-list/unordered-list.component";
|
|
52
|
+
import * as i49 from "./components/upload/upload.component";
|
|
53
|
+
import * as i50 from "@angular/common";
|
|
54
|
+
import * as i51 from "@angular/forms";
|
|
54
55
|
export declare function loadBaseUrl(): string;
|
|
55
56
|
export declare function loadBaseHref(baseUrl: string): string;
|
|
56
57
|
export declare class NgxUtilsModule {
|
|
@@ -59,6 +60,6 @@ export declare class NgxUtilsModule {
|
|
|
59
60
|
static provideUtils(config?: IModuleConfig): EnvironmentProviders;
|
|
60
61
|
constructor();
|
|
61
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxUtilsModule, never>;
|
|
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.
|
|
63
|
+
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.DropdownDirective, typeof i42.DropdownToggleDirective, typeof i43.UnorderedListItemDirective, typeof i44.UnorderedListTemplateDirective, typeof i45.DropListComponent, typeof i46.DynamicTableComponent, typeof i47.PaginationMenuComponent, typeof i48.UnorderedListComponent, typeof i49.UploadComponent], [typeof i50.CommonModule, typeof i51.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.DropdownDirective, typeof i42.DropdownToggleDirective, typeof i43.UnorderedListItemDirective, typeof i44.UnorderedListTemplateDirective, typeof i45.DropListComponent, typeof i46.DynamicTableComponent, typeof i47.PaginationMenuComponent, typeof i48.UnorderedListComponent, typeof i49.UploadComponent, typeof i51.FormsModule]>;
|
|
63
64
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgxUtilsModule>;
|
|
64
65
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OnDestroy } from "@angular/core";
|
|
2
|
+
import { BehaviorSubject, Subscription } from "rxjs";
|
|
3
|
+
import { IApiService, IAuthService } from "../common-types";
|
|
4
|
+
import { ExtraHeaders, SocketClient, SocketData, SocketDataObj } from "../utils/socket-client";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class SocketService implements OnDestroy {
|
|
7
|
+
readonly auth: IAuthService;
|
|
8
|
+
readonly api: IApiService;
|
|
9
|
+
protected ioPath: string;
|
|
10
|
+
protected client: SocketClient;
|
|
11
|
+
protected authSub: Subscription;
|
|
12
|
+
get status(): BehaviorSubject<boolean>;
|
|
13
|
+
get id(): string;
|
|
14
|
+
constructor(auth: IAuthService, api: IApiService, ioPath: string);
|
|
15
|
+
withAuth(extraHeaders?: ExtraHeaders): void;
|
|
16
|
+
ngOnDestroy(): void;
|
|
17
|
+
connect(extraHeaders?: ExtraHeaders): void;
|
|
18
|
+
disconnect(): void;
|
|
19
|
+
subscribe(event: string, cb: (value: SocketData) => void): Subscription;
|
|
20
|
+
emit(event: string, content: SocketData): void;
|
|
21
|
+
request(event: string, content: SocketDataObj): Promise<any>;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SocketService, never>;
|
|
23
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SocketService>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { BehaviorSubject, Subject, Subscription } from "rxjs";
|
|
2
|
+
import type { ManagerOptions, SocketOptions, Socket } from "socket.io-client";
|
|
3
|
+
export type SocketFactory = (uri?: string, opts?: Partial<ManagerOptions & SocketOptions>) => Socket;
|
|
4
|
+
export type SocketDataValue = string | number | boolean | Date | Array<SocketDataValue> | Array<SocketDataObj>;
|
|
5
|
+
export interface SocketDataObj {
|
|
6
|
+
[key: string]: SocketDataValue | SocketDataObj;
|
|
7
|
+
}
|
|
8
|
+
export type SocketData = SocketDataValue | SocketDataObj;
|
|
9
|
+
export type ExtraHeaders = Record<string, string>;
|
|
10
|
+
export interface ResponseHandler {
|
|
11
|
+
resolve: (data: SocketData) => void;
|
|
12
|
+
reject: (error: SocketData) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare class SocketClient {
|
|
15
|
+
readonly url: string;
|
|
16
|
+
protected ioLoader: () => Promise<SocketFactory>;
|
|
17
|
+
readonly status: BehaviorSubject<boolean>;
|
|
18
|
+
protected readonly channels: Map<string, Subject<SocketData>>;
|
|
19
|
+
protected readonly responseHandlers: Map<string, ResponseHandler>;
|
|
20
|
+
protected sid: string;
|
|
21
|
+
protected open: boolean;
|
|
22
|
+
protected factory: Promise<SocketFactory>;
|
|
23
|
+
protected ws: Promise<Socket>;
|
|
24
|
+
get id(): string;
|
|
25
|
+
constructor(url: string, ioLoader: () => Promise<SocketFactory>);
|
|
26
|
+
connect(extraHeaders?: ExtraHeaders): void;
|
|
27
|
+
disconnect(): void;
|
|
28
|
+
subscribe<T = SocketData>(event: string, cb: (value: T) => void): Subscription;
|
|
29
|
+
emit(event: string, content: SocketData): void;
|
|
30
|
+
request(event: string, content: SocketDataObj): Promise<any>;
|
|
31
|
+
protected handleResponse(event: string, content: SocketData): void;
|
|
32
|
+
}
|
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export { ObservableUtils, ISubscriberInfo } from "./ngx-utils/utils/observable.u
|
|
|
20
20
|
export { CancelablePromise, cancelablePromise, impatientPromise } from "./ngx-utils/utils/promise.utils";
|
|
21
21
|
export { StringUtils } from "./ngx-utils/utils/string.utils";
|
|
22
22
|
export { SetUtils } from "./ngx-utils/utils/set.utils";
|
|
23
|
+
export { SocketFactory, SocketData, SocketDataValue, SocketDataObj, SocketClient } from "./ngx-utils/utils/socket-client";
|
|
23
24
|
export { TimerUtils } from "./ngx-utils/utils/timer.utils";
|
|
24
25
|
export { UniqueUtils } from "./ngx-utils/utils/unique.utils";
|
|
25
26
|
export { Vector } from "./ngx-utils/utils/vector";
|
|
@@ -47,6 +48,7 @@ export { StorageService } from "./ngx-utils/services/storage.service";
|
|
|
47
48
|
export { BaseToasterService } from "./ngx-utils/services/base-toaster.service";
|
|
48
49
|
export { IUrlDictionary, TranslatedUrlSerializer } from "./ngx-utils/services/translated-url.serializer";
|
|
49
50
|
export { PromiseService } from "./ngx-utils/services/promise.service";
|
|
51
|
+
export { SocketService } from "./ngx-utils/services/socket.service";
|
|
50
52
|
export { DragEventListener } from "./ngx-utils/plugins/drag-drop-handler";
|
|
51
53
|
export { DragDropEventPlugin } from "./ngx-utils/plugins/drag-drop-event.plugin";
|
|
52
54
|
export { ResizeEventPlugin } from "./ngx-utils/plugins/resize-event.plugin";
|
|
@@ -91,7 +93,8 @@ export { PaginationItemDirective } from "./ngx-utils/directives/pagination-item.
|
|
|
91
93
|
export { ResourceIfDirective } from "./ngx-utils/directives/resource-if.directive";
|
|
92
94
|
export { StickyDirective } from "./ngx-utils/directives/sticky.directive";
|
|
93
95
|
export { StickyClassDirective } from "./ngx-utils/directives/sticky-class.directive";
|
|
94
|
-
export {
|
|
96
|
+
export { DropdownDirective } from "./ngx-utils/directives/dropdown.directive";
|
|
97
|
+
export { DropdownToggleDirective } from "./ngx-utils/directives/dropdown-toggle.directive";
|
|
95
98
|
export { UnorderedListItemDirective } from "./ngx-utils/directives/unordered-list-item.directive";
|
|
96
99
|
export { UnorderedListTemplateDirective } from "./ngx-utils/directives/unordered-list-template.directive";
|
|
97
100
|
export { DropListComponent } from "./ngx-utils/components/drop-list/drop-list.component";
|
|
@@ -1,27 +0,0 @@
|
|
|
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
|
-
}
|