@stemy/ngx-utils 19.5.7 → 19.5.9

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,35 @@ 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 type ButtonStyle = "primary" | "secondary";
187
+ export type ButtonSize = "normal" | "small";
188
+ export type ButtonState = "active" | "inactive";
189
+ export interface ButtonProps {
190
+ label: string;
191
+ tooltip: string;
192
+ icon: string;
193
+ disabled: boolean;
194
+ style: ButtonStyle;
195
+ size: ButtonSize;
196
+ state: ButtonState;
197
+ }
198
+ export interface TabOption extends Omit<Partial<ButtonProps>, "size" | "state" | "style"> {
199
+ value: string;
200
+ }
201
+ export type ChipValue = string | number;
202
+ export type ChipStatus = "valid" | "invalid";
203
+ export interface ChipOption {
204
+ value: ChipValue;
205
+ label: string;
206
+ classes?: string;
207
+ disabled?: boolean;
208
+ picture?: string;
209
+ }
196
210
  export type DropdownAttachTo = "root" | HTMLElement | ElementRef<HTMLElement> | null;
197
211
  export interface UnorderedListTemplate {
198
212
  readonly type: string;
@@ -360,7 +374,6 @@ export interface IHttpService {
360
374
  url(url: string): string;
361
375
  makeListParams(page: number, itemsPerPage: number, orderBy?: string, orderDescending?: boolean, filter?: string): IHttpParams;
362
376
  }
363
- export declare const EXPRESS_REQUEST: InjectionToken<Request>;
364
377
  export interface IBaseHttpClient extends HttpClient {
365
378
  readonly requestHeaders: IHttpHeaders;
366
379
  readonly requestParams: IHttpParams;
@@ -376,7 +389,6 @@ export interface IApiService extends IHttpService {
376
389
  upload(url: string, body: any, listener?: ProgressListener, options?: IRequestOptions): Promise<any>;
377
390
  list(url: string, params: IHttpParams): Promise<IPaginationData>;
378
391
  }
379
- export declare const API_SERVICE: InjectionToken<IApiService>;
380
392
  export interface IOpenApiSchemaProperty {
381
393
  id: string;
382
394
  type?: string;
@@ -459,9 +471,6 @@ export interface DynamicEntryComponents {
459
471
  components: Type<any>[];
460
472
  moduleId: string;
461
473
  }
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
474
  export declare class IConfiguration {
466
475
  cdnUrl?: string;
467
476
  baseUrl?: string;
@@ -480,15 +489,8 @@ export interface IConfigService {
480
489
  getConfigValue(key: string): any;
481
490
  getQueryParameter(name: string, url?: string): string;
482
491
  }
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
492
  export type ResizeEventStrategy = "scroll" | "object" | "observer";
489
- export declare const RESIZE_STRATEGY: InjectionToken<ResizeEventStrategy>;
490
493
  export type ErrorHandlerCallback = (error: string) => any;
491
- export declare const ERROR_HANDLER: InjectionToken<ErrorHandlerCallback>;
492
494
  export type GlobalComponentModifier = (component: any) => any;
493
495
  export type AppInitializerFunc = () => Promise<void> | void;
494
496
  export interface IModuleConfig {
@@ -501,6 +503,7 @@ export interface IModuleConfig {
501
503
  configService?: Type<IConfigService>;
502
504
  dialogService?: Type<IDialogService>;
503
505
  wasiImplementation?: Type<IWasi>;
506
+ buttonType?: Type<ButtonProps>;
504
507
  initializeApp?: (injector: Injector) => AppInitializerFunc;
505
508
  baseUrl?: (injector: Injector) => string;
506
509
  resizeDelay?: number;
@@ -0,0 +1,15 @@
1
+ import { ButtonProps, ButtonSize, ButtonState, 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 state: import("@angular/core").InputSignal<ButtonState>;
11
+ readonly buttonType: import("@angular/core").Type<ButtonProps>;
12
+ readonly buttonProps: import("@angular/core").Signal<ButtonProps>;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<BtnComponent, never>;
14
+ 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; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
15
+ }
@@ -0,0 +1,13 @@
1
+ import { ButtonProps, ButtonSize, ButtonState, 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
+ state: ButtonState;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<BtnDefaultComponent, never>;
12
+ 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; }; "state": { "alias": "state"; "required": false; }; }, {}, never, never, false, never>;
13
+ }
@@ -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,11 @@
1
+ import { ButtonSize, ButtonStyle, TabOption } from "../../common-types";
2
+ import * as i0 from "@angular/core";
3
+ export declare class TabsComponent {
4
+ readonly value: import("@angular/core").ModelSignal<unknown>;
5
+ readonly options: import("@angular/core").InputSignal<TabOption[]>;
6
+ readonly style: import("@angular/core").InputSignal<ButtonStyle>;
7
+ readonly size: import("@angular/core").InputSignal<ButtonSize>;
8
+ select(option: TabOption): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<TabsComponent, never>;
10
+ 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"; }, never, never, false, never>;
11
+ }
@@ -48,20 +48,23 @@ import * as i44 from "./directives/dropdown-content.directive";
48
48
  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
- 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";
51
+ import * as i48 from "./components/btn/btn.component";
52
+ import * as i49 from "./components/btn-default/btn-default.component";
53
+ import * as i50 from "./components/chips/chips.component";
54
+ import * as i51 from "./components/drop-list/drop-list.component";
55
+ import * as i52 from "./components/dropdown-box/dropdown-box.component";
56
+ import * as i53 from "./components/dynamic-table/dynamic-table.component";
57
+ import * as i54 from "./components/fake-module/fake-module.component";
58
+ import * as i55 from "./components/pagination-menu/pagination-menu.component";
59
+ import * as i56 from "./components/tabs/tabs.component";
60
+ import * as i57 from "./components/interactive-canvas/interactive-canvas.component";
61
+ import * as i58 from "./components/interactive-canvas/interactive-item.component";
62
+ import * as i59 from "./components/interactive-canvas/interactive-circle.component";
63
+ import * as i60 from "./components/interactive-canvas/interactive-rect.component";
64
+ import * as i61 from "./components/unordered-list/unordered-list.component";
65
+ import * as i62 from "./components/upload/upload.component";
66
+ import * as i63 from "@angular/common";
67
+ import * as i64 from "@angular/forms";
65
68
  export declare function loadBaseUrl(): string;
66
69
  export declare function loadBaseHref(baseUrl: string): string;
67
70
  export declare function getRootElement(): HTMLElement;
@@ -72,6 +75,6 @@ export declare class NgxUtilsModule {
72
75
  static useDynamic(moduleInfo: DynamicModuleInfo): ModuleWithProviders<NgxUtilsModule>;
73
76
  constructor();
74
77
  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]>;
78
+ 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.BtnComponent, typeof i49.BtnDefaultComponent, typeof i50.ChipsComponent, typeof i51.DropListComponent, typeof i52.DropdownBoxComponent, typeof i53.DynamicTableComponent, typeof i54.FakeModuleComponent, typeof i55.PaginationMenuComponent, typeof i56.TabsComponent, typeof i57.InteractiveCanvasComponent, typeof i58.InteractiveItemComponent, typeof i59.InteractiveCircleComponent, typeof i60.InteractiveRectComponent, typeof i61.UnorderedListComponent, typeof i62.UploadComponent], [typeof i63.CommonModule, typeof i64.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.BtnComponent, typeof i49.BtnDefaultComponent, typeof i50.ChipsComponent, typeof i51.DropListComponent, typeof i52.DropdownBoxComponent, typeof i53.DynamicTableComponent, typeof i54.FakeModuleComponent, typeof i55.PaginationMenuComponent, typeof i56.TabsComponent, typeof i57.InteractiveCanvasComponent, typeof i58.InteractiveItemComponent, typeof i59.InteractiveCircleComponent, typeof i60.InteractiveRectComponent, typeof i61.UnorderedListComponent, typeof i62.UploadComponent, typeof i64.FormsModule]>;
76
79
  static ɵinj: i0.ɵɵInjectorDeclaration<NgxUtilsModule>;
77
80
  }
@@ -0,0 +1,25 @@
1
+ import { InjectionToken, Type } from "@angular/core";
2
+ import { Request } from "express";
3
+ import { ButtonProps, DynamicEntryComponents, DynamicModuleInfo, ErrorHandlerCallback, IApiService, IAuthService, IConfigService, IConfiguration, IDialogService, IIconService, ILanguageService, IPromiseService, IToasterService, IWasi, ResizeEventStrategy } from "./common-types";
4
+ export declare const BUTTON_TYPE: InjectionToken<Type<ButtonProps>>;
5
+ export declare const OPTIONS_TOKEN: InjectionToken<unknown>;
6
+ export declare const ICON_SERVICE: InjectionToken<IIconService>;
7
+ export declare const LANGUAGE_SERVICE: InjectionToken<ILanguageService>;
8
+ export declare const AUTH_SERVICE: InjectionToken<IAuthService>;
9
+ export declare const TOASTER_SERVICE: InjectionToken<IToasterService>;
10
+ export declare const DIALOG_SERVICE: InjectionToken<IDialogService<any>>;
11
+ export declare const SOCKET_IO_PATH: InjectionToken<string>;
12
+ export declare const PROMISE_SERVICE: InjectionToken<IPromiseService>;
13
+ export declare const WASI_IMPLEMENTATION: InjectionToken<Type<IWasi>>;
14
+ export declare const EXPRESS_REQUEST: InjectionToken<Request>;
15
+ export declare const API_SERVICE: InjectionToken<IApiService>;
16
+ export declare const DYNAMIC_ENTRY_COMPONENTS: InjectionToken<DynamicEntryComponents[]>;
17
+ export declare const DYNAMIC_MODULE_INFO: InjectionToken<DynamicModuleInfo[]>;
18
+ export declare const APP_BASE_URL: InjectionToken<string>;
19
+ export declare const CONFIG_SERVICE: InjectionToken<IConfigService>;
20
+ export declare const BASE_CONFIG: InjectionToken<IConfiguration>;
21
+ export declare const SCRIPT_PARAMS: InjectionToken<any>;
22
+ export declare const ROOT_ELEMENT: InjectionToken<HTMLElement>;
23
+ export declare const RESIZE_DELAY: InjectionToken<number>;
24
+ export declare const RESIZE_STRATEGY: InjectionToken<ResizeEventStrategy>;
25
+ 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.9",
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, ButtonStyle, ButtonSize, ButtonState, 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 { 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";
@@ -104,6 +105,8 @@ export { DropdownContentDirective } from "./ngx-utils/directives/dropdown-conten
104
105
  export { DropdownToggleDirective } from "./ngx-utils/directives/dropdown-toggle.directive";
105
106
  export { UnorderedListItemDirective } from "./ngx-utils/directives/unordered-list-item.directive";
106
107
  export { UnorderedListTemplateDirective } from "./ngx-utils/directives/unordered-list-template.directive";
108
+ export { BtnComponent } from "./ngx-utils/components/btn/btn.component";
109
+ export { BtnDefaultComponent } from "./ngx-utils/components/btn-default/btn-default.component";
107
110
  export { ChipsComponent } from "./ngx-utils/components/chips/chips.component";
108
111
  export { DropListComponent } from "./ngx-utils/components/drop-list/drop-list.component";
109
112
  export { DropdownBoxComponent } from "./ngx-utils/components/dropdown-box/dropdown-box.component";
@@ -114,6 +117,7 @@ export { InteractiveItemComponent } from "./ngx-utils/components/interactive-can
114
117
  export { InteractiveCircleComponent } from "./ngx-utils/components/interactive-canvas/interactive-circle.component";
115
118
  export { InteractiveRectComponent } from "./ngx-utils/components/interactive-canvas/interactive-rect.component";
116
119
  export { PaginationMenuComponent } from "./ngx-utils/components/pagination-menu/pagination-menu.component";
120
+ export { TabsComponent } from "./ngx-utils/components/tabs/tabs.component";
117
121
  export { UnorderedListComponent } from "./ngx-utils/components/unordered-list/unordered-list.component";
118
122
  export { UploadComponent } from "./ngx-utils/components/upload/upload.component";
119
123
  export { NgxUtilsModule } from "./ngx-utils/ngx-utils.module";