@stemy/ngx-utils 19.5.7 → 19.5.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.
@@ -1,7 +1,6 @@
1
1
  import { ElementRef, EventEmitter, InjectionToken, Injector, NgZone, Provider, TemplateRef, Type } from "@angular/core";
2
2
  import { HttpClient, HttpErrorResponse, HttpHeaders } from "@angular/common/http";
3
3
  import { ActivatedRouteSnapshot, Data, LoadChildrenCallback, Route, Routes, UrlTree } from "@angular/router";
4
- import { Request } from "express";
5
4
  import { DurationLikeObject } from "luxon";
6
5
  import { StringKeys } from "./helper-types";
7
6
  export type DurationUnit = StringKeys<DurationLikeObject>;
@@ -14,7 +13,6 @@ export interface TypedValueProvider<T> {
14
13
  }
15
14
  export type CachedProvider<T> = Type<T> | TypedFactoryProvider<T> | TypedValueProvider<T>;
16
15
  export type CachedFactory<T> = (injector: Injector) => ReadonlyArray<T>;
17
- export declare const OPTIONS_TOKEN: InjectionToken<unknown>;
18
16
  export interface IResolveFactory {
19
17
  func: Function;
20
18
  type?: any;
@@ -32,7 +30,6 @@ export interface IIconService {
32
30
  iconsLoaded: EventEmitter<any>;
33
31
  getIcon(icon: string, activeIcon: string, active: boolean): Promise<string>;
34
32
  }
35
- export declare const ICON_SERVICE: InjectionToken<IIconService>;
36
33
  export interface ITranslation {
37
34
  lang: string;
38
35
  translation: string;
@@ -69,7 +66,6 @@ export interface ILanguageService {
69
66
  getTranslationFromObject(translations: ITranslations, params?: any, lang?: string): string;
70
67
  getTranslationFromArray(translations: ITranslation[], params?: any, lang?: string): string;
71
68
  }
72
- export declare const LANGUAGE_SERVICE: InjectionToken<ILanguageService>;
73
69
  export interface IAuthService {
74
70
  isAuthenticated: boolean;
75
71
  userChanged: EventEmitter<any>;
@@ -83,7 +79,6 @@ export interface IRouteData extends Data {
83
79
  export interface IRoute extends Route {
84
80
  data?: IRouteData;
85
81
  }
86
- export declare const AUTH_SERVICE: InjectionToken<IAuthService>;
87
82
  export interface IAclComponent {
88
83
  onUserInitialized(): void;
89
84
  onUserChanged(): void;
@@ -108,7 +103,6 @@ export interface IToasterService {
108
103
  warning(message: string, params?: any): void;
109
104
  handleAsyncMethod(method: AsyncMethod, context?: any): void;
110
105
  }
111
- export declare const TOASTER_SERVICE: InjectionToken<IToasterService>;
112
106
  export interface IDialogButtonConfig {
113
107
  icon?: string;
114
108
  text?: string;
@@ -149,8 +143,6 @@ export interface IDialogService<DR = any> {
149
143
  dialog(config: IDialogConfig): DR;
150
144
  confirm(config: IConfirmDialogConfig): DR;
151
145
  }
152
- export declare const DIALOG_SERVICE: InjectionToken<IDialogService<any>>;
153
- export declare const SOCKET_IO_PATH: InjectionToken<string>;
154
146
  export interface IPromiseService {
155
147
  zone: NgZone;
156
148
  count: number;
@@ -160,7 +152,6 @@ export interface IPromiseService {
160
152
  resolve<T>(value: T | PromiseLike<T>): Promise<T>;
161
153
  reject<T>(value: T | PromiseLike<T>): Promise<T>;
162
154
  }
163
- export declare const PROMISE_SERVICE: InjectionToken<IPromiseService>;
164
155
  export type TypedArray = Int8Array | Int16Array | Int32Array | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | Float32Array | Float64Array;
165
156
  export interface IWasmExports {
166
157
  HEAP8: Int8Array;
@@ -187,12 +178,40 @@ export interface IWasmAsync {
187
178
  readArrayFromMemory<T = TypedArray>(pointer: number, array: T): T;
188
179
  [key: string]: (...args: any[]) => Promise<any>;
189
180
  }
190
- export declare const WASI_IMPLEMENTATION: InjectionToken<Type<IWasi>>;
191
181
  export interface IAsyncMessage {
192
182
  message: string;
193
183
  context?: any;
194
184
  }
195
185
  export type AsyncMethod = (context?: any, ev?: MouseEvent) => Promise<IAsyncMessage>;
186
+ export interface IconMap {
187
+ [key: string]: string;
188
+ }
189
+ export interface IconProps {
190
+ name: string;
191
+ }
192
+ export type ButtonStyle = "primary" | "secondary" | "transparent";
193
+ export type ButtonSize = "normal" | "small";
194
+ export interface ButtonProps {
195
+ label: string;
196
+ tooltip: string;
197
+ icon: string;
198
+ disabled: boolean;
199
+ style: ButtonStyle;
200
+ size: ButtonSize;
201
+ }
202
+ export interface TabOption extends Omit<Partial<ButtonProps>, "size" | "state" | "style"> {
203
+ value: string;
204
+ active?: boolean;
205
+ }
206
+ export type ChipValue = string | number;
207
+ export type ChipStatus = "valid" | "invalid";
208
+ export interface ChipOption {
209
+ value: ChipValue;
210
+ label: string;
211
+ classes?: string;
212
+ disabled?: boolean;
213
+ picture?: string;
214
+ }
196
215
  export type DropdownAttachTo = "root" | HTMLElement | ElementRef<HTMLElement> | null;
197
216
  export interface UnorderedListTemplate {
198
217
  readonly type: string;
@@ -360,7 +379,6 @@ export interface IHttpService {
360
379
  url(url: string): string;
361
380
  makeListParams(page: number, itemsPerPage: number, orderBy?: string, orderDescending?: boolean, filter?: string): IHttpParams;
362
381
  }
363
- export declare const EXPRESS_REQUEST: InjectionToken<Request>;
364
382
  export interface IBaseHttpClient extends HttpClient {
365
383
  readonly requestHeaders: IHttpHeaders;
366
384
  readonly requestParams: IHttpParams;
@@ -376,7 +394,6 @@ export interface IApiService extends IHttpService {
376
394
  upload(url: string, body: any, listener?: ProgressListener, options?: IRequestOptions): Promise<any>;
377
395
  list(url: string, params: IHttpParams): Promise<IPaginationData>;
378
396
  }
379
- export declare const API_SERVICE: InjectionToken<IApiService>;
380
397
  export interface IOpenApiSchemaProperty {
381
398
  id: string;
382
399
  type?: string;
@@ -459,9 +476,6 @@ export interface DynamicEntryComponents {
459
476
  components: Type<any>[];
460
477
  moduleId: string;
461
478
  }
462
- export declare const DYNAMIC_ENTRY_COMPONENTS: InjectionToken<DynamicEntryComponents[]>;
463
- export declare const DYNAMIC_MODULE_INFO: InjectionToken<DynamicModuleInfo[]>;
464
- export declare const APP_BASE_URL: InjectionToken<string>;
465
479
  export declare class IConfiguration {
466
480
  cdnUrl?: string;
467
481
  baseUrl?: string;
@@ -480,15 +494,8 @@ export interface IConfigService {
480
494
  getConfigValue(key: string): any;
481
495
  getQueryParameter(name: string, url?: string): string;
482
496
  }
483
- export declare const CONFIG_SERVICE: InjectionToken<IConfigService>;
484
- export declare const BASE_CONFIG: InjectionToken<IConfiguration>;
485
- export declare const SCRIPT_PARAMS: InjectionToken<any>;
486
- export declare const ROOT_ELEMENT: InjectionToken<HTMLElement>;
487
- export declare const RESIZE_DELAY: InjectionToken<number>;
488
497
  export type ResizeEventStrategy = "scroll" | "object" | "observer";
489
- export declare const RESIZE_STRATEGY: InjectionToken<ResizeEventStrategy>;
490
498
  export type ErrorHandlerCallback = (error: string) => any;
491
- export declare const ERROR_HANDLER: InjectionToken<ErrorHandlerCallback>;
492
499
  export type GlobalComponentModifier = (component: any) => any;
493
500
  export type AppInitializerFunc = () => Promise<void> | void;
494
501
  export interface IModuleConfig {
@@ -501,6 +508,9 @@ export interface IModuleConfig {
501
508
  configService?: Type<IConfigService>;
502
509
  dialogService?: Type<IDialogService>;
503
510
  wasiImplementation?: Type<IWasi>;
511
+ iconType?: Type<IconProps>;
512
+ iconMap?: IconMap;
513
+ buttonType?: Type<ButtonProps>;
504
514
  initializeApp?: (injector: Injector) => AppInitializerFunc;
505
515
  baseUrl?: (injector: Injector) => string;
506
516
  resizeDelay?: number;
@@ -0,0 +1,14 @@
1
+ import { ButtonProps, ButtonSize, ButtonStyle } from "../../common-types";
2
+ import * as i0 from "@angular/core";
3
+ export declare class BtnComponent {
4
+ readonly label: import("@angular/core").InputSignal<string>;
5
+ readonly tooltip: import("@angular/core").InputSignal<string>;
6
+ readonly icon: import("@angular/core").InputSignal<string>;
7
+ readonly disabled: import("@angular/core").InputSignal<boolean>;
8
+ readonly style: import("@angular/core").InputSignal<ButtonStyle>;
9
+ readonly size: import("@angular/core").InputSignal<ButtonSize>;
10
+ readonly buttonType: import("@angular/core").Type<ButtonProps>;
11
+ readonly buttonProps: import("@angular/core").Signal<ButtonProps>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<BtnComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<BtnComponent, "btn", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "style": { "alias": "style"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
14
+ }
@@ -0,0 +1,12 @@
1
+ import { ButtonProps, ButtonSize, ButtonStyle } from "../../common-types";
2
+ import * as i0 from "@angular/core";
3
+ export declare class BtnDefaultComponent implements ButtonProps {
4
+ label: string;
5
+ tooltip: string;
6
+ icon: string;
7
+ disabled: boolean;
8
+ style: ButtonStyle;
9
+ size: ButtonSize;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<BtnDefaultComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<BtnDefaultComponent, "btn-default", never, { "label": { "alias": "label"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "style": { "alias": "style"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, false, never>;
12
+ }
@@ -1,17 +1,10 @@
1
- import { ChangeDetectorRef, ElementRef, EventEmitter } from "@angular/core";
1
+ import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, SimpleChanges } from "@angular/core";
2
2
  import { ControlValueAccessor } from "@angular/forms";
3
+ import { ChipOption, ChipStatus, ChipValue } from "../../common-types";
3
4
  import * as i0 from "@angular/core";
4
- export type ChipValues = string | number;
5
- export interface IChipOption {
6
- value: ChipValues;
7
- label: string;
8
- props?: any;
9
- classes?: string;
10
- disabled?: boolean;
11
- }
12
- export declare class ChipsComponent implements ControlValueAccessor {
5
+ export declare class ChipsComponent implements ControlValueAccessor, OnChanges {
13
6
  readonly cdr: ChangeDetectorRef;
14
- value: ChipValues | ChipValues[];
7
+ value: ChipValue | ChipValue[];
15
8
  multiple: boolean;
16
9
  disabled: boolean;
17
10
  type: string;
@@ -22,17 +15,17 @@ export declare class ChipsComponent implements ControlValueAccessor {
22
15
  step: number;
23
16
  placeholder: string;
24
17
  unique: boolean;
25
- options: ReadonlyArray<IChipOption>;
26
- valueChange: EventEmitter<ChipValues | ChipValues[]>;
18
+ options: ReadonlyArray<ChipOption>;
19
+ valueChange: EventEmitter<ChipValue | ChipValue[]>;
27
20
  chipContainer: ElementRef<HTMLDivElement>;
28
21
  chipButtons: ElementRef<HTMLDivElement>;
29
22
  chipInput: ElementRef<HTMLInputElement>;
30
23
  inputStyles: {
31
24
  [key: string]: string;
32
25
  };
33
- valueOptions: IChipOption[];
34
- filteredOptions: IChipOption[];
35
- statuses: Array<"danger" | "primary">;
26
+ valueOptions: ChipOption[];
27
+ filteredOptions: ChipOption[];
28
+ statuses: ChipStatus[];
36
29
  private undoList;
37
30
  private previousValue;
38
31
  onChange: any;
@@ -40,19 +33,20 @@ export declare class ChipsComponent implements ControlValueAccessor {
40
33
  constructor(cdr: ChangeDetectorRef);
41
34
  registerOnChange(fn: any): void;
42
35
  registerOnTouched(fn: any): void;
43
- writeValue(val: ChipValues | ChipValues[]): void;
44
- updateValues(val: IChipOption[]): void;
36
+ ngOnChanges(changes: SimpleChanges): void;
37
+ writeValue(value: ChipValue | ChipValue[]): void;
38
+ updateValues(val: ChipOption[]): void;
45
39
  setDisabledState(val: boolean): void;
46
40
  removeItem(event: Event, ix: number): void;
47
41
  onResize(): void;
48
- onInput(ev: KeyboardEvent): void;
42
+ onInput(ev: KeyboardEvent): boolean;
49
43
  onBlur(ev: FocusEvent): void;
50
- enterOption(value: string): void;
51
- trackBy(index: number, option: IChipOption): string;
44
+ enterOption(value: string): boolean;
45
+ trackBy(index: number, option: ChipOption): string;
52
46
  protected makeUndo(): void;
53
- protected createOption(value: string | number): IChipOption;
54
- protected createValueOptions(value: ChipValues[]): IChipOption[];
55
- protected updateValue(): ChipValues | ChipValues[];
47
+ protected createOption(value: string | number): ChipOption;
48
+ protected createValueOptions(values: ChipValue[]): ChipOption[];
49
+ protected updateValue(): ChipValue | ChipValue[];
56
50
  protected filterOptions(): void;
57
51
  static ɵfac: i0.ɵɵFactoryDeclaration<ChipsComponent, never>;
58
52
  static ɵcmp: i0.ɵɵComponentDeclaration<ChipsComponent, "chips", never, { "value": { "alias": "value"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "step": { "alias": "step"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "unique": { "alias": "unique"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
@@ -0,0 +1,10 @@
1
+ import { IconProps } from "../../common-types";
2
+ import * as i0 from "@angular/core";
3
+ export declare class IconComponent {
4
+ readonly name: import("@angular/core").InputSignal<string>;
5
+ readonly iconType: import("@angular/core").Type<IconProps>;
6
+ readonly iconMap: import("../../common-types").IconMap;
7
+ readonly iconProps: import("@angular/core").Signal<IconProps>;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "icon", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
10
+ }
@@ -0,0 +1,7 @@
1
+ import { IconProps } from "../../common-types";
2
+ import * as i0 from "@angular/core";
3
+ export declare class IconDefaultComponent implements IconProps {
4
+ name: string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<IconDefaultComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<IconDefaultComponent, "icon-default", never, { "name": { "alias": "name"; "required": false; }; }, {}, never, never, false, never>;
7
+ }
@@ -0,0 +1,16 @@
1
+ import { Renderer2 } from "@angular/core";
2
+ import { ButtonSize, ButtonStyle, TabOption } from "../../common-types";
3
+ import { TabsItemDirective } from "../../directives/tabs-item.directive";
4
+ import * as i0 from "@angular/core";
5
+ export declare class TabsComponent {
6
+ readonly value: import("@angular/core").ModelSignal<unknown>;
7
+ readonly options: import("@angular/core").InputSignal<TabOption[]>;
8
+ readonly style: import("@angular/core").InputSignal<ButtonStyle>;
9
+ readonly size: import("@angular/core").InputSignal<ButtonSize>;
10
+ readonly tabItems: import("@angular/core").Signal<readonly TabsItemDirective[]>;
11
+ readonly renderer: Renderer2;
12
+ readonly tabs: import("@angular/core").Signal<TabOption[]>;
13
+ select(value: any): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<TabsComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabsComponent, "tabs", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "style": { "alias": "style"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, ["tabItems"], ["*"], false, never>;
16
+ }
@@ -19,5 +19,5 @@ export declare class IconDirective implements OnChanges, OnInit, OnDestroy {
19
19
  click(): void;
20
20
  private changeIcon;
21
21
  static ɵfac: i0.ɵɵFactoryDeclaration<IconDirective, never>;
22
- static ɵdir: i0.ɵɵDirectiveDeclaration<IconDirective, "[icon]", never, { "icon": { "alias": "icon"; "required": false; }; "activeIcon": { "alias": "activeIcon"; "required": false; }; "active": { "alias": "active"; "required": false; }; }, { "activeChange": "activeChange"; }, never, never, false, never>;
22
+ static ɵdir: i0.ɵɵDirectiveDeclaration<IconDirective, "i[icon],b[icon],p[icon],span[icon],a[icon],h1[icon],h2[icon],h3[icon],h4[icon]", never, { "icon": { "alias": "icon"; "required": false; }; "activeIcon": { "alias": "activeIcon"; "required": false; }; "active": { "alias": "active"; "required": false; }; }, { "activeChange": "activeChange"; }, never, never, false, never>;
23
23
  }
@@ -0,0 +1,12 @@
1
+ import { ElementRef } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class TabsItemDirective {
4
+ readonly value: import("@angular/core").InputSignal<any>;
5
+ readonly label: import("@angular/core").InputSignal<string>;
6
+ readonly tooltip: import("@angular/core").InputSignal<string>;
7
+ readonly icon: import("@angular/core").InputSignal<string>;
8
+ readonly disabled: import("@angular/core").InputSignal<boolean>;
9
+ readonly element: ElementRef<any>;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<TabsItemDirective, never>;
11
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TabsItemDirective, "[tabsItem]", never, { "value": { "alias": "tabsItem"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
12
+ }
@@ -43,6 +43,7 @@ import { StickyClassDirective } from "./directives/sticky-class.directive";
43
43
  import { DropdownDirective } from "./directives/dropdown.directive";
44
44
  import { DropdownContentDirective } from "./directives/dropdown-content.directive";
45
45
  import { DropdownToggleDirective } from "./directives/dropdown-toggle.directive";
46
+ import { TabsItemDirective } from "./directives/tabs-item.directive";
46
47
  import { UnorderedListItemDirective } from "./directives/unordered-list-item.directive";
47
48
  import { UnorderedListTemplateDirective } from "./directives/unordered-list-template.directive";
48
49
  import { FilterPipe } from "./pipes/filter.pipe";
@@ -64,7 +65,7 @@ import { PaginationMenuComponent } from "./components/pagination-menu/pagination
64
65
  import { UnorderedListComponent } from "./components/unordered-list/unordered-list.component";
65
66
  import { UploadComponent } from "./components/upload/upload.component";
66
67
  export declare const pipes: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof IncludesPipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe)[];
67
- 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)[];
68
+ 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 TabsItemDirective | typeof UnorderedListItemDirective | typeof UnorderedListTemplateDirective)[];
68
69
  export declare const components: (typeof ChipsComponent | typeof DropListComponent | typeof DynamicTableComponent | typeof FakeModuleComponent | typeof InteractiveCanvasComponent | typeof InteractiveCircleComponent | typeof InteractiveRectComponent | typeof PaginationMenuComponent | typeof UnorderedListComponent | typeof UploadComponent)[];
69
70
  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 ComponentLoaderService | typeof TranslatedUrlSerializer | typeof PromiseService | typeof SocketService | typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof IncludesPipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe | typeof DeviceDetectorService | {
70
71
  provide: import("@angular/core").InjectionToken<import("@angular/platform-browser").EventManagerPlugin[]>;
@@ -46,22 +46,28 @@ import * as i42 from "./directives/sticky-class.directive";
46
46
  import * as i43 from "./directives/dropdown.directive";
47
47
  import * as i44 from "./directives/dropdown-content.directive";
48
48
  import * as i45 from "./directives/dropdown-toggle.directive";
49
- import * as i46 from "./directives/unordered-list-item.directive";
50
- import * as i47 from "./directives/unordered-list-template.directive";
51
- import * as i48 from "./components/chips/chips.component";
52
- import * as i49 from "./components/drop-list/drop-list.component";
53
- import * as i50 from "./components/dropdown-box/dropdown-box.component";
54
- import * as i51 from "./components/dynamic-table/dynamic-table.component";
55
- import * as i52 from "./components/fake-module/fake-module.component";
56
- import * as i53 from "./components/pagination-menu/pagination-menu.component";
57
- import * as i54 from "./components/interactive-canvas/interactive-canvas.component";
58
- import * as i55 from "./components/interactive-canvas/interactive-item.component";
59
- import * as i56 from "./components/interactive-canvas/interactive-circle.component";
60
- import * as i57 from "./components/interactive-canvas/interactive-rect.component";
61
- import * as i58 from "./components/unordered-list/unordered-list.component";
62
- import * as i59 from "./components/upload/upload.component";
63
- import * as i60 from "@angular/common";
64
- import * as i61 from "@angular/forms";
49
+ import * as i46 from "./directives/tabs-item.directive";
50
+ import * as i47 from "./directives/unordered-list-item.directive";
51
+ import * as i48 from "./directives/unordered-list-template.directive";
52
+ import * as i49 from "./components/btn/btn.component";
53
+ import * as i50 from "./components/btn-default/btn-default.component";
54
+ import * as i51 from "./components/chips/chips.component";
55
+ import * as i52 from "./components/drop-list/drop-list.component";
56
+ import * as i53 from "./components/dropdown-box/dropdown-box.component";
57
+ import * as i54 from "./components/dynamic-table/dynamic-table.component";
58
+ import * as i55 from "./components/fake-module/fake-module.component";
59
+ import * as i56 from "./components/pagination-menu/pagination-menu.component";
60
+ import * as i57 from "./components/icon/icon.component";
61
+ import * as i58 from "./components/icon-default/icon-default.component";
62
+ import * as i59 from "./components/interactive-canvas/interactive-canvas.component";
63
+ import * as i60 from "./components/interactive-canvas/interactive-item.component";
64
+ import * as i61 from "./components/interactive-canvas/interactive-circle.component";
65
+ import * as i62 from "./components/interactive-canvas/interactive-rect.component";
66
+ import * as i63 from "./components/tabs/tabs.component";
67
+ import * as i64 from "./components/unordered-list/unordered-list.component";
68
+ import * as i65 from "./components/upload/upload.component";
69
+ import * as i66 from "@angular/common";
70
+ import * as i67 from "@angular/forms";
65
71
  export declare function loadBaseUrl(): string;
66
72
  export declare function loadBaseHref(baseUrl: string): string;
67
73
  export declare function getRootElement(): HTMLElement;
@@ -72,6 +78,6 @@ export declare class NgxUtilsModule {
72
78
  static useDynamic(moduleInfo: DynamicModuleInfo): ModuleWithProviders<NgxUtilsModule>;
73
79
  constructor();
74
80
  static ɵfac: i0.ɵɵFactoryDeclaration<NgxUtilsModule, never>;
75
- 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.ChipsComponent, typeof i49.DropListComponent, typeof i50.DropdownBoxComponent, typeof i51.DynamicTableComponent, typeof i52.FakeModuleComponent, typeof i53.PaginationMenuComponent, typeof i54.InteractiveCanvasComponent, typeof i55.InteractiveItemComponent, typeof i56.InteractiveCircleComponent, typeof i57.InteractiveRectComponent, typeof i58.UnorderedListComponent, typeof i59.UploadComponent], [typeof i60.CommonModule, typeof i61.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.ChipsComponent, typeof i49.DropListComponent, typeof i50.DropdownBoxComponent, typeof i51.DynamicTableComponent, typeof i52.FakeModuleComponent, typeof i53.PaginationMenuComponent, typeof i54.InteractiveCanvasComponent, typeof i55.InteractiveItemComponent, typeof i56.InteractiveCircleComponent, typeof i57.InteractiveRectComponent, typeof i58.UnorderedListComponent, typeof i59.UploadComponent, typeof i61.FormsModule]>;
81
+ 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.TabsItemDirective, typeof i47.UnorderedListItemDirective, typeof i48.UnorderedListTemplateDirective, typeof i49.BtnComponent, typeof i50.BtnDefaultComponent, typeof i51.ChipsComponent, typeof i52.DropListComponent, typeof i53.DropdownBoxComponent, typeof i54.DynamicTableComponent, typeof i55.FakeModuleComponent, typeof i56.PaginationMenuComponent, typeof i57.IconComponent, typeof i58.IconDefaultComponent, typeof i59.InteractiveCanvasComponent, typeof i60.InteractiveItemComponent, typeof i61.InteractiveCircleComponent, typeof i62.InteractiveRectComponent, typeof i63.TabsComponent, typeof i64.UnorderedListComponent, typeof i65.UploadComponent], [typeof i66.CommonModule, typeof i67.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.TabsItemDirective, typeof i47.UnorderedListItemDirective, typeof i48.UnorderedListTemplateDirective, typeof i49.BtnComponent, typeof i50.BtnDefaultComponent, typeof i51.ChipsComponent, typeof i52.DropListComponent, typeof i53.DropdownBoxComponent, typeof i54.DynamicTableComponent, typeof i55.FakeModuleComponent, typeof i56.PaginationMenuComponent, typeof i57.IconComponent, typeof i58.IconDefaultComponent, typeof i59.InteractiveCanvasComponent, typeof i60.InteractiveItemComponent, typeof i61.InteractiveCircleComponent, typeof i62.InteractiveRectComponent, typeof i63.TabsComponent, typeof i64.UnorderedListComponent, typeof i65.UploadComponent, typeof i67.FormsModule]>;
76
82
  static ɵinj: i0.ɵɵInjectorDeclaration<NgxUtilsModule>;
77
83
  }
@@ -0,0 +1,27 @@
1
+ import { InjectionToken, Type } from "@angular/core";
2
+ import { Request } from "express";
3
+ import { ButtonProps, DynamicEntryComponents, DynamicModuleInfo, ErrorHandlerCallback, IApiService, IAuthService, IConfigService, IConfiguration, IconMap, IconProps, IDialogService, IIconService, ILanguageService, IPromiseService, IToasterService, IWasi, ResizeEventStrategy } from "./common-types";
4
+ export declare const ICON_TYPE: InjectionToken<Type<IconProps>>;
5
+ export declare const ICON_MAP: InjectionToken<IconMap>;
6
+ export declare const BUTTON_TYPE: InjectionToken<Type<ButtonProps>>;
7
+ export declare const OPTIONS_TOKEN: InjectionToken<unknown>;
8
+ export declare const ICON_SERVICE: InjectionToken<IIconService>;
9
+ export declare const LANGUAGE_SERVICE: InjectionToken<ILanguageService>;
10
+ export declare const AUTH_SERVICE: InjectionToken<IAuthService>;
11
+ export declare const TOASTER_SERVICE: InjectionToken<IToasterService>;
12
+ export declare const DIALOG_SERVICE: InjectionToken<IDialogService<any>>;
13
+ export declare const SOCKET_IO_PATH: InjectionToken<string>;
14
+ export declare const PROMISE_SERVICE: InjectionToken<IPromiseService>;
15
+ export declare const WASI_IMPLEMENTATION: InjectionToken<Type<IWasi>>;
16
+ export declare const EXPRESS_REQUEST: InjectionToken<Request>;
17
+ export declare const API_SERVICE: InjectionToken<IApiService>;
18
+ export declare const DYNAMIC_ENTRY_COMPONENTS: InjectionToken<DynamicEntryComponents[]>;
19
+ export declare const DYNAMIC_MODULE_INFO: InjectionToken<DynamicModuleInfo[]>;
20
+ export declare const APP_BASE_URL: InjectionToken<string>;
21
+ export declare const CONFIG_SERVICE: InjectionToken<IConfigService>;
22
+ export declare const BASE_CONFIG: InjectionToken<IConfiguration>;
23
+ export declare const SCRIPT_PARAMS: InjectionToken<any>;
24
+ export declare const ROOT_ELEMENT: InjectionToken<HTMLElement>;
25
+ export declare const RESIZE_DELAY: InjectionToken<number>;
26
+ export declare const RESIZE_STRATEGY: InjectionToken<ResizeEventStrategy>;
27
+ export declare const ERROR_HANDLER: InjectionToken<ErrorHandlerCallback>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stemy/ngx-utils",
3
- "version": "19.5.7",
3
+ "version": "19.5.10",
4
4
  "license": "MIT",
5
5
  "public": true,
6
6
  "repository": "https://github.com/stemyke/ngx-utils.git",
package/public_api.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import "zone.js";
2
2
  export { MaybePromise, MaybeArray, StringKeys, CapitalizeFirst, CamelJoin, PrefixedPick } from "./ngx-utils/helper-types";
3
- export { DurationUnit, TypedFactoryProvider, TypedValueProvider, CachedProvider, CachedFactory, OPTIONS_TOKEN, IResolveFactory, CanvasColor, IIconService, ICON_SERVICE, ITranslation, ITranslations, ILanguageSetting, ILanguageSettings, ILanguageService, LANGUAGE_SERVICE, IAuthService, RouteValidator, IRouteData, IRoute, AUTH_SERVICE, IAclComponent, IDialogButtonConfig, IDialogConfig, IConfirmDialogConfig, IDialogService, DIALOG_SERVICE, IPromiseService, PROMISE_SERVICE, IWasi, IWasmExports, IWasm, IWasmAsync, WASI_IMPLEMENTATION, IRouteStateInfo, NavigationUrlParam, StorageMode, ToastType, IToasterService, TOASTER_SERVICE, IAsyncMessage, AsyncMethod, DropdownAttachTo, UnorderedListTemplate, UnorderedListTemplates, UnorderedListStyle, UploadType, IFileUploadResult, IFileUploadProcess, IAjaxRequestDetails, AjaxRequestCallback, ScriptType, ILoadableElement, ILoaderPromises, ISearchObservable, FactoryDependencies, ObjectType, ITimer, IExtraProperties, IGroupMap, TranslationQuery, IPageInfo, IPaginationData, PaginationDataLoader, PaginationItemContext, IPoint, IShape, CanvasItemShape, CanvasItemDirection, InteractiveCanvas, InteractiveCanvasItem, InteractiveDrawFn, InteractivePanEvent, InteractiveCanvasPointer, IHttpHeaders, IHttpParams, IRequestOptions, IIssueContext, IProgress, ProgressListener, PromiseExecutor, HttpPromise, IHttpService, EXPRESS_REQUEST, IApiService, API_SERVICE, IOpenApiSchemaProperty, IOpenApiSchema, IOpenApiSchemas, TableFilterType, ITableOrders, ITableColumn, ITableColumns, TableColumns, ITableTemplate, ITableTemplates, ITableDataQuery, TableDataLoader, DragDropEvent, DragEventHandler, ITableDragEvent, DynamicTableDragHandler, ResourceIfContext, CssSelector, CssSelectorList, DynamicComponentLocation, DynamicModuleInfo, DynamicEntryComponents, APP_BASE_URL, IConfiguration, IConfigService, CONFIG_SERVICE, BASE_CONFIG, SCRIPT_PARAMS, ROOT_ELEMENT, RESIZE_DELAY, ResizeEventStrategy, RESIZE_STRATEGY, ErrorHandlerCallback, ERROR_HANDLER, GlobalComponentModifier, AppInitializerFunc, IModuleConfig, ValuedPromise } from "./ngx-utils/common-types";
3
+ export { DurationUnit, TypedFactoryProvider, TypedValueProvider, CachedProvider, CachedFactory, IResolveFactory, CanvasColor, IIconService, ITranslation, ITranslations, ILanguageSetting, ILanguageSettings, ILanguageService, IAuthService, RouteValidator, IRouteData, IRoute, IAclComponent, IDialogButtonConfig, IDialogConfig, IConfirmDialogConfig, IDialogService, IPromiseService, IWasi, IWasmExports, IWasm, IWasmAsync, IRouteStateInfo, NavigationUrlParam, StorageMode, ToastType, IToasterService, IAsyncMessage, AsyncMethod, IconMap, IconProps, ButtonStyle, ButtonSize, ButtonProps, TabOption, ChipValue, ChipStatus, ChipOption, DropdownAttachTo, UnorderedListTemplate, UnorderedListTemplates, UnorderedListStyle, UploadType, IFileUploadResult, IFileUploadProcess, IAjaxRequestDetails, AjaxRequestCallback, ScriptType, ILoadableElement, ILoaderPromises, ISearchObservable, FactoryDependencies, ObjectType, ITimer, IExtraProperties, IGroupMap, TranslationQuery, IPageInfo, IPaginationData, PaginationDataLoader, PaginationItemContext, IPoint, IShape, CanvasItemShape, CanvasItemDirection, InteractiveCanvas, InteractiveCanvasItem, InteractiveDrawFn, InteractivePanEvent, InteractiveCanvasPointer, IHttpHeaders, IHttpParams, IRequestOptions, IIssueContext, IProgress, ProgressListener, PromiseExecutor, HttpPromise, IHttpService, IApiService, IOpenApiSchemaProperty, IOpenApiSchema, IOpenApiSchemas, TableFilterType, ITableOrders, ITableColumn, ITableColumns, TableColumns, ITableTemplate, ITableTemplates, ITableDataQuery, TableDataLoader, DragDropEvent, DragEventHandler, ITableDragEvent, DynamicTableDragHandler, ResourceIfContext, CssSelector, CssSelectorList, DynamicComponentLocation, DynamicModuleInfo, DynamicEntryComponents, IConfiguration, IConfigService, ResizeEventStrategy, ErrorHandlerCallback, GlobalComponentModifier, AppInitializerFunc, IModuleConfig, ValuedPromise } from "./ngx-utils/common-types";
4
+ export { ICON_TYPE, ICON_MAP, BUTTON_TYPE, ERROR_HANDLER, RESIZE_STRATEGY, RESIZE_DELAY, ROOT_ELEMENT, SCRIPT_PARAMS, BASE_CONFIG, CONFIG_SERVICE, APP_BASE_URL, API_SERVICE, EXPRESS_REQUEST, WASI_IMPLEMENTATION, PROMISE_SERVICE, DIALOG_SERVICE, TOASTER_SERVICE, AUTH_SERVICE, LANGUAGE_SERVICE, ICON_SERVICE, OPTIONS_TOKEN } from "./ngx-utils/tokens";
4
5
  export { AjaxRequestHandler } from "./ngx-utils/utils/ajax-request-handler";
5
6
  export { ArrayUtils } from "./ngx-utils/utils/array.utils";
6
7
  export { AuthGuard } from "./ngx-utils/utils/auth.guard";
@@ -102,18 +103,24 @@ export { StickyClassDirective } from "./ngx-utils/directives/sticky-class.direct
102
103
  export { DropdownDirective } from "./ngx-utils/directives/dropdown.directive";
103
104
  export { DropdownContentDirective } from "./ngx-utils/directives/dropdown-content.directive";
104
105
  export { DropdownToggleDirective } from "./ngx-utils/directives/dropdown-toggle.directive";
106
+ export { TabsItemDirective } from "./ngx-utils/directives/tabs-item.directive";
105
107
  export { UnorderedListItemDirective } from "./ngx-utils/directives/unordered-list-item.directive";
106
108
  export { UnorderedListTemplateDirective } from "./ngx-utils/directives/unordered-list-template.directive";
109
+ export { BtnComponent } from "./ngx-utils/components/btn/btn.component";
110
+ export { BtnDefaultComponent } from "./ngx-utils/components/btn-default/btn-default.component";
107
111
  export { ChipsComponent } from "./ngx-utils/components/chips/chips.component";
108
112
  export { DropListComponent } from "./ngx-utils/components/drop-list/drop-list.component";
109
113
  export { DropdownBoxComponent } from "./ngx-utils/components/dropdown-box/dropdown-box.component";
110
114
  export { DynamicTableComponent } from "./ngx-utils/components/dynamic-table/dynamic-table.component";
111
115
  export { FakeModuleComponent } from "./ngx-utils/components/fake-module/fake-module.component";
116
+ export { IconComponent } from "./ngx-utils/components/icon/icon.component";
117
+ export { IconDefaultComponent } from "./ngx-utils/components/icon-default/icon-default.component";
112
118
  export { InteractiveCanvasComponent } from "./ngx-utils/components/interactive-canvas/interactive-canvas.component";
113
119
  export { InteractiveItemComponent } from "./ngx-utils/components/interactive-canvas/interactive-item.component";
114
120
  export { InteractiveCircleComponent } from "./ngx-utils/components/interactive-canvas/interactive-circle.component";
115
121
  export { InteractiveRectComponent } from "./ngx-utils/components/interactive-canvas/interactive-rect.component";
116
122
  export { PaginationMenuComponent } from "./ngx-utils/components/pagination-menu/pagination-menu.component";
123
+ export { TabsComponent } from "./ngx-utils/components/tabs/tabs.component";
117
124
  export { UnorderedListComponent } from "./ngx-utils/components/unordered-list/unordered-list.component";
118
125
  export { UploadComponent } from "./ngx-utils/components/upload/upload.component";
119
126
  export { NgxUtilsModule } from "./ngx-utils/ngx-utils.module";