@stemy/ngx-utils 19.7.7 → 19.7.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.
@@ -6,19 +6,24 @@ import { DurationLikeObject } from "luxon";
6
6
  import { MaybePromise, StringKeys } from "./helper-types";
7
7
  export type DurationUnit = StringKeys<DurationLikeObject>;
8
8
  export interface TypedFactoryProvider<T> {
9
+ provide?: any;
9
10
  useFactory: (...args: any[]) => T;
10
11
  deps: any[];
11
12
  }
12
13
  export interface TypedValueProvider<T> {
14
+ provide?: any;
13
15
  useValue: T;
14
16
  }
15
17
  export interface TypedExistingProvider<T> {
18
+ provide?: any;
16
19
  useExisting: Type<T>;
17
20
  }
18
21
  export interface TypedClassProvider<T> {
22
+ provide?: any;
19
23
  useClass: Type<T>;
20
24
  }
21
25
  export interface TypedTokenProvider<T> {
26
+ provide?: any;
22
27
  useToken: InjectionToken<T>;
23
28
  }
24
29
  export type TypedProvider<T> = TypedFactoryProvider<T> | TypedValueProvider<T> | TypedExistingProvider<T> | TypedClassProvider<T> | TypedTokenProvider<T> | Type<T>;
@@ -42,6 +47,7 @@ export interface IIconService {
42
47
  isDisabled: boolean;
43
48
  iconsLoaded: EventEmitter<any>;
44
49
  getIcon(icon: string, activeIcon: string, active: boolean): Promise<string>;
50
+ getIconImage(icon: string, modifier?: SvgSourceModifier): Promise<HTMLImageElement>;
45
51
  }
46
52
  export interface ITranslation {
47
53
  lang: string;
@@ -346,11 +352,13 @@ export interface InteractiveCanvasParams {
346
352
  export interface InteractiveCanvasItem {
347
353
  readonly position: IPoint;
348
354
  readonly shapes: ReadonlyArray<IShape>;
349
- readonly canvas: InteractiveCanvas;
350
- readonly index: number;
351
- readonly active: boolean;
352
355
  readonly isValid: boolean;
353
356
  readonly validPosition: IPoint;
357
+ readonly hovered: boolean;
358
+ readonly selected: boolean;
359
+ readonly active: boolean;
360
+ readonly canvas: InteractiveCanvas;
361
+ readonly index: number;
354
362
  draw(ctx: CanvasRenderingContext2D): MaybePromise<void>;
355
363
  }
356
364
  export type InteractiveCanvasItems = ReadonlyArray<InteractiveCanvasItem>;
@@ -359,16 +367,13 @@ export type InteractiveCanvasItems = ReadonlyArray<InteractiveCanvasItem>;
359
367
  * Some properties are optional for compatibility with other kind of renderer functions
360
368
  */
361
369
  export interface InteractiveCanvas {
362
- readonly infinite?: boolean;
363
- readonly resizeMode?: CanvasResizeMode;
364
- readonly params?: InteractiveCanvasParams;
370
+ readonly isInfinite?: boolean;
365
371
  readonly realWidth?: number;
366
372
  readonly realHeight?: number;
367
- readonly $items?: Observable<InteractiveCanvasItems>;
368
373
  readonly items?: InteractiveCanvasItems;
369
374
  readonly canvas: HTMLCanvasElement;
370
375
  readonly lockedItem?: InteractiveCanvasItem;
371
- readonly selectedItem?: InteractiveCanvasItem;
376
+ selectedItem?: InteractiveCanvasItem;
372
377
  hoveredItem?: InteractiveCanvasItem;
373
378
  readonly xRange?: RangeCoords;
374
379
  readonly yRange?: RangeCoords;
@@ -458,6 +463,12 @@ export interface IHttpService {
458
463
  url(url: string): string;
459
464
  makeListParams(page: number, itemsPerPage: number, orderBy?: string, orderDescending?: boolean, filter?: string): HttpRequestQuery;
460
465
  }
466
+ export interface SvgDefinition {
467
+ source: SVGSVGElement;
468
+ width: number;
469
+ height: number;
470
+ }
471
+ export type SvgSourceModifier = (svg: SVGSVGElement, width: number, height: number) => string;
461
472
  export interface IBaseHttpClient extends HttpClient {
462
473
  readonly requestHeaders: HttpRequestHeaders;
463
474
  readonly requestParams: HttpRequestQuery;
@@ -1,45 +1,64 @@
1
- import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, QueryList, Renderer2 } from "@angular/core";
2
- import { BehaviorSubject, Subscription } from "rxjs";
1
+ import { ElementRef, OnDestroy, OnInit, Renderer2 } from "@angular/core";
3
2
  import { CanvasPaintFunc, CanvasResizeMode, InteractiveCanvas, InteractiveCanvasItem, InteractiveCanvasParams, InteractiveCanvasPointer, InteractiveCanvasRenderer, InteractivePanEvent, IPoint, RangeCoords } from "../../common-types";
4
3
  import { Point, Rect } from "../../utils/geometry";
5
- import { InteractiveItemComponent } from "./interactive-item.component";
6
4
  import { UniversalService } from "../../services/universal.service";
5
+ import { InteractiveItemComponent } from "./interactive-item.component";
7
6
  import * as i0 from "@angular/core";
8
- export declare class InteractiveCanvasComponent implements InteractiveCanvas, OnInit, OnDestroy, AfterViewInit, OnChanges {
9
- readonly renderer: Renderer2;
10
- readonly universal: UniversalService;
11
- infinite: boolean;
12
- resizeMode: CanvasResizeMode;
13
- params: InteractiveCanvasParams;
7
+ export declare class InteractiveCanvasComponent implements InteractiveCanvas, OnInit, OnDestroy {
8
+ /**
9
+ * Injectable options
10
+ * @private
11
+ */
12
+ protected readonly options: {
13
+ infinite: boolean;
14
+ resizeMode: CanvasResizeMode;
15
+ panOffset: number;
16
+ };
17
+ protected readonly renderer: Renderer2;
18
+ protected readonly universal: UniversalService;
19
+ /**
20
+ * Is the canvas infinitely scrollable?
21
+ */
22
+ readonly infinite: import("@angular/core").InputSignal<boolean>;
23
+ readonly resizeMode: import("@angular/core").InputSignal<CanvasResizeMode>;
24
+ readonly horizontal: import("@angular/core").InputSignal<boolean>;
14
25
  /**
15
26
  * Real life-size width of the canvas
16
27
  */
17
- realWidth: number;
28
+ readonly width: import("@angular/core").InputSignal<number>;
18
29
  /**
19
30
  * Real life-size height of the canvas
20
31
  */
21
- realHeight: number;
22
- debug: boolean;
23
- horizontal: boolean;
24
- selectedIndex: number;
32
+ readonly height: import("@angular/core").InputSignal<number>;
33
+ /**
34
+ * Canvas params
35
+ */
36
+ readonly params: import("@angular/core").InputSignalWithTransform<InteractiveCanvasParams, InteractiveCanvasParams>;
37
+ /**
38
+ * Model signal for selected index
39
+ */
40
+ readonly selectedIndex: import("@angular/core").ModelSignal<number>;
25
41
  /**
26
42
  * Relative offset of the panning. It is based on the rendered canvas height
27
43
  */
28
- panOffset: number;
29
- renderCtx: Record<string, any>;
30
- beforeItems: ReadonlyArray<InteractiveCanvasRenderer>;
31
- afterItems: ReadonlyArray<InteractiveCanvasRenderer>;
32
- selectedIndexChange: EventEmitter<number>;
33
- onRotate: EventEmitter<number>;
34
- onItemPan: EventEmitter<InteractivePanEvent>;
35
- onItemPanned: EventEmitter<InteractivePanEvent>;
36
- onPan: EventEmitter<InteractivePanEvent>;
37
- onPanned: EventEmitter<InteractivePanEvent>;
38
- readonly $items: BehaviorSubject<InteractiveItemComponent[]>;
44
+ readonly panOffset: import("@angular/core").InputSignal<number>;
45
+ readonly renderCtx: import("@angular/core").InputSignal<Record<string, any>>;
46
+ readonly beforeItems: import("@angular/core").InputSignal<readonly InteractiveCanvasRenderer[]>;
47
+ readonly afterItems: import("@angular/core").InputSignal<readonly InteractiveCanvasRenderer[]>;
48
+ readonly onRotate: import("@angular/core").OutputEmitterRef<number>;
49
+ readonly onItemPan: import("@angular/core").OutputEmitterRef<InteractivePanEvent>;
50
+ readonly onItemPanned: import("@angular/core").OutputEmitterRef<InteractivePanEvent>;
51
+ readonly onPan: import("@angular/core").OutputEmitterRef<InteractivePanEvent>;
52
+ readonly onPanned: import("@angular/core").OutputEmitterRef<InteractivePanEvent>;
53
+ readonly itemList: import("@angular/core").Signal<readonly InteractiveItemComponent[]>;
54
+ get isInfinite(): boolean;
55
+ get realWidth(): number;
56
+ get realHeight(): number;
39
57
  get items(): ReadonlyArray<InteractiveItemComponent>;
40
58
  get canvas(): HTMLCanvasElement;
41
59
  get lockedItem(): InteractiveItemComponent;
42
60
  get selectedItem(): InteractiveItemComponent;
61
+ set selectedItem(item: InteractiveItemComponent);
43
62
  get hoveredItem(): InteractiveItemComponent;
44
63
  set hoveredItem(item: InteractiveItemComponent);
45
64
  xRange: RangeCoords;
@@ -58,33 +77,29 @@ export declare class InteractiveCanvasComponent implements InteractiveCanvas, On
58
77
  protected tempCanvas: HTMLCanvasElement;
59
78
  protected shouldDraw: boolean;
60
79
  protected hoveredIndex: number;
61
- protected subscription: Subscription;
62
80
  protected containerElem: ElementRef<HTMLDivElement>;
63
81
  protected canvasElem: ElementRef<HTMLCanvasElement>;
64
- protected itemList: QueryList<InteractiveItemComponent>;
65
82
  protected touched: boolean;
66
83
  protected panStartRotation: number;
67
84
  protected panStartPos: IPoint;
68
85
  protected lockedIndex: number;
69
- constructor(renderer: Renderer2, universal: UniversalService);
86
+ protected oldLength: number;
87
+ constructor();
70
88
  ngOnInit(): void;
71
89
  ngOnDestroy(): void;
72
- ngOnChanges(): void;
73
- ngAfterViewInit(): void;
74
90
  tempPaint(cb: CanvasPaintFunc): Promise<void>;
75
91
  resize(): void;
76
92
  onTouchStart($event: TouchEvent): void;
77
- onTouchEnd($event: TouchEvent): void;
93
+ onTouchEnd(): void;
78
94
  onMouseDown($event: MouseEvent): void;
79
- onMouseUp($event: MouseEvent): void;
95
+ onMouseUp(): void;
80
96
  onMouseMove($event: MouseEvent): void;
81
97
  onMouseLeave(): void;
82
98
  onPanStart(): void;
83
99
  onPanMove($event: any): void;
84
100
  onPanEnd(): void;
85
101
  protected fixRotation(): void;
86
- protected fixItems(): void;
87
- protected selectItem(pointer: InteractiveCanvasPointer): void;
102
+ protected selectItem(): void;
88
103
  protected toCanvasPoint(pointer: InteractiveCanvasPointer): Point;
89
104
  protected getIndexUnderPointer(pointer: InteractiveCanvasPointer): number;
90
105
  protected updateCursor(): void;
@@ -94,5 +109,5 @@ export declare class InteractiveCanvasComponent implements InteractiveCanvas, On
94
109
  protected drawItem(ctx: CanvasRenderingContext2D, item: InteractiveCanvasItem): Promise<void>;
95
110
  protected draw(): Promise<void>;
96
111
  static ɵfac: i0.ɵɵFactoryDeclaration<InteractiveCanvasComponent, never>;
97
- static ɵcmp: i0.ɵɵComponentDeclaration<InteractiveCanvasComponent, "interactive-canvas", never, { "infinite": { "alias": "infinite"; "required": false; }; "resizeMode": { "alias": "resizeMode"; "required": false; }; "params": { "alias": "params"; "required": false; }; "realWidth": { "alias": "realWidth"; "required": false; }; "realHeight": { "alias": "realHeight"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "horizontal": { "alias": "horizontal"; "required": false; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; }; "panOffset": { "alias": "panOffset"; "required": false; }; "renderCtx": { "alias": "renderCtx"; "required": false; }; "beforeItems": { "alias": "beforeItems"; "required": false; }; "afterItems": { "alias": "afterItems"; "required": false; }; }, { "selectedIndexChange": "selectedIndexChange"; "onRotate": "onRotate"; "onItemPan": "onItemPan"; "onItemPanned": "onItemPanned"; "onPan": "onPan"; "onPanned": "onPanned"; }, ["itemList"], never, false, never>;
112
+ static ɵcmp: i0.ɵɵComponentDeclaration<InteractiveCanvasComponent, "interactive-canvas", never, { "infinite": { "alias": "infinite"; "required": false; "isSignal": true; }; "resizeMode": { "alias": "resizeMode"; "required": false; "isSignal": true; }; "horizontal": { "alias": "horizontal"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "params": { "alias": "params"; "required": false; "isSignal": true; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; "isSignal": true; }; "panOffset": { "alias": "panOffset"; "required": false; "isSignal": true; }; "renderCtx": { "alias": "renderCtx"; "required": false; "isSignal": true; }; "beforeItems": { "alias": "beforeItems"; "required": false; "isSignal": true; }; "afterItems": { "alias": "afterItems"; "required": false; "isSignal": true; }; }, { "selectedIndex": "selectedIndexChange"; "onRotate": "onRotate"; "onItemPan": "onItemPan"; "onItemPanned": "onItemPanned"; "onPan": "onPan"; "onPanned": "onPanned"; }, ["itemList"], never, false, never>;
98
113
  }
@@ -7,8 +7,6 @@ export declare class InteractiveItemComponent implements OnChanges, InteractiveC
7
7
  protected pos: Point;
8
8
  protected mShapes: IShape[];
9
9
  get shapes(): ReadonlyArray<IShape>;
10
- get hovered(): boolean;
11
- set hovered(value: boolean);
12
10
  get x(): number;
13
11
  set x(value: number);
14
12
  get y(): number;
@@ -18,11 +16,15 @@ export declare class InteractiveItemComponent implements OnChanges, InteractiveC
18
16
  get isValid(): boolean;
19
17
  get validPosition(): IPoint;
20
18
  set validPosition(value: IPoint);
19
+ get hovered(): boolean;
20
+ set hovered(value: boolean);
21
+ get selected(): boolean;
22
+ set selected(value: boolean);
21
23
  direction: CanvasItemDirection;
22
24
  disabled: boolean;
25
+ active: boolean;
23
26
  canvas: InteractiveCanvas;
24
27
  index: number;
25
- active: boolean;
26
28
  protected valid: boolean;
27
29
  protected validPos: Point;
28
30
  constructor();
@@ -36,6 +38,7 @@ export declare class InteractiveItemComponent implements OnChanges, InteractiveC
36
38
  moveY(y: number): void;
37
39
  moveEnd(): void;
38
40
  protected restrictPosition(x: number, y: number): IPoint;
41
+ protected checkIsValid(): boolean;
39
42
  protected isValidByParams(): boolean;
40
43
  protected isValidByDistance(other: InteractiveCanvasItem): boolean;
41
44
  protected distToPixels(value: number): number;
@@ -58,13 +58,12 @@ import { ChipsComponent } from "./components/chips/chips.component";
58
58
  import { CloseBtnComponent } from "./components/close-btn/close-btn.component";
59
59
  import { DropListComponent } from "./components/drop-list/drop-list.component";
60
60
  import { DynamicTableComponent } from "./components/dynamic-table/dynamic-table.component";
61
- import { InteractiveCanvasComponent } from "./components/interactive-canvas/interactive-canvas.component";
62
61
  import { PaginationMenuComponent } from "./components/pagination-menu/pagination-menu.component";
63
62
  import { UnorderedListComponent } from "./components/unordered-list/unordered-list.component";
64
63
  import { UploadComponent } from "./components/upload/upload.component";
65
64
  export declare const pipes: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof IncludesPipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe)[];
66
65
  export declare const directives: (typeof AsyncMethodBase | typeof AsyncMethodTargetDirective | 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 TabsItemDirective | typeof UnorderedListItemDirective | typeof UnorderedListTemplateDirective)[];
67
- export declare const components: (typeof ChipsComponent | typeof CloseBtnComponent | typeof DropListComponent | typeof DynamicTableComponent | typeof InteractiveCanvasComponent | typeof PaginationMenuComponent | typeof UnorderedListComponent | typeof UploadComponent)[];
66
+ export declare const components: (typeof ChipsComponent | typeof CloseBtnComponent | typeof DropListComponent | typeof DynamicTableComponent | typeof PaginationMenuComponent | typeof UnorderedListComponent | typeof UploadComponent)[];
68
67
  export declare const providers: (typeof UniversalService | typeof StateService | typeof AuthGuard | typeof EventsService | typeof AclService | typeof BaseHttpClient | typeof StorageService | typeof CacheService | typeof BaseHttpService | typeof StaticAuthService | typeof ConfigService | typeof BaseDialogService | typeof ErrorHandlerService | 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 | {
69
68
  provide: import("@angular/core").InjectionToken<import("@angular/platform-browser").EventManagerPlugin[]>;
70
69
  useClass: typeof DragDropEventPlugin;
@@ -1,13 +1,17 @@
1
1
  import { EventEmitter } from "@angular/core";
2
- import { IIconService } from "../common-types";
2
+ import { IIconService, SvgSourceModifier } from "../common-types";
3
+ import { LocalHttpService } from "./local-http.service";
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class IconService implements IIconService {
6
+ readonly http: LocalHttpService;
5
7
  get isDisabled(): boolean;
6
8
  set isDisabled(value: boolean);
7
9
  readonly iconsLoaded: EventEmitter<any>;
8
10
  protected disabled: boolean;
9
- constructor();
11
+ constructor(http: LocalHttpService);
10
12
  getIcon(icon: string, activeIcon: string, active: boolean): Promise<string>;
13
+ getIconUrl(icon: string, modifier?: SvgSourceModifier): Promise<string>;
14
+ getIconImage(icon: string, modifier?: SvgSourceModifier): Promise<HTMLImageElement>;
11
15
  static ɵfac: i0.ɵɵFactoryDeclaration<IconService, never>;
12
16
  static ɵprov: i0.ɵɵInjectableDeclaration<IconService>;
13
17
  }
@@ -1,8 +1,9 @@
1
- import { HttpClientRequestOptions, IConfiguration } from "../common-types";
1
+ import { HttpClientRequestOptions, IConfiguration, SvgDefinition, SvgSourceModifier } from "../common-types";
2
2
  import { BaseHttpService } from "./base-http.service";
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class LocalHttpService extends BaseHttpService {
5
- private images;
5
+ protected svgs: Record<string, SvgDefinition>;
6
+ protected images: Record<string, Promise<HTMLImageElement>>;
6
7
  get name(): string;
7
8
  get config(): IConfiguration;
8
9
  protected get withCredentials(): boolean;
@@ -10,6 +11,10 @@ export declare class LocalHttpService extends BaseHttpService {
10
11
  url(url: string): string;
11
12
  get(url: string, options?: HttpClientRequestOptions, body?: any): Promise<any>;
12
13
  getImage(url: string): Promise<HTMLImageElement>;
14
+ svgUrlFromSource(sourceStr: string, modifier?: SvgSourceModifier): string;
15
+ svgFromSource(sourceStr: string, modifier?: SvgSourceModifier): Promise<HTMLImageElement>;
16
+ getSvgUrl(url: string, modifier?: SvgSourceModifier): Promise<string>;
17
+ getSvgImage(url: string, modifier?: SvgSourceModifier): Promise<HTMLImageElement>;
13
18
  static ɵfac: i0.ɵɵFactoryDeclaration<LocalHttpService, never>;
14
19
  static ɵprov: i0.ɵɵInjectableDeclaration<LocalHttpService>;
15
20
  }
@@ -4,7 +4,7 @@ import { ButtonProps, DynamicEntryComponents, DynamicModuleInfo, ErrorHandlerCal
4
4
  export declare const ICON_TYPE: InjectionToken<Type<IconProps>>;
5
5
  export declare const ICON_MAP: InjectionToken<IconMap>;
6
6
  export declare const BUTTON_TYPE: InjectionToken<Type<ButtonProps>>;
7
- export declare const OPTIONS_TOKEN: InjectionToken<unknown>;
7
+ export declare const OPTIONS_TOKEN: InjectionToken<Record<string, any>>;
8
8
  export declare const ICON_SERVICE: InjectionToken<IIconService>;
9
9
  export declare const LANGUAGE_SERVICE: InjectionToken<ILanguageService>;
10
10
  export declare const AUTH_SERVICE: InjectionToken<IAuthService>;
@@ -8,7 +8,6 @@ export declare class FileUtils {
8
8
  static saveBlob(blob: Blob, fileName: string): void;
9
9
  static saveJson(json: any, fileName: string): void;
10
10
  static readFileAsText(file: Blob): Promise<string>;
11
- static readFileAsBinaryString(file: Blob): Promise<string>;
12
11
  static readFileAsDataURL(file: Blob): Promise<string>;
13
12
  static base64ToBlob(base64: string, mimeType?: string): Blob;
14
13
  static readBlobFromUrl(http: HttpClient, url: string): Promise<Blob>;
@@ -1,5 +1,5 @@
1
1
  import { Type, ValueProvider, ɵComponentDef as ComponentDef } from "@angular/core";
2
- import { CssSelector, CssSelectorList, TypedFactoryProvider } from "../common-types";
2
+ import { CssSelector, CssSelectorList, TypedFactoryProvider, TypedValueProvider } from "../common-types";
3
3
  export declare function isBrowser(): boolean;
4
4
  /**
5
5
  * Returns an elements root
@@ -20,4 +20,6 @@ export declare function getComponentDef<T>(type: Type<T>): ComponentDef<T>;
20
20
  export declare function parseSelector(selector: string | CssSelector): CssSelector;
21
21
  export declare function selectorMatchesList(list: CssSelectorList, selector: CssSelector): boolean;
22
22
  export declare function provideEntryComponents(components: Type<any>[], moduleId?: string): ValueProvider;
23
- export declare function provideWithOptions<O extends Object, T = any>(type: Type<T>, options: O): TypedFactoryProvider<T>;
23
+ export declare function provideOptions<O extends Record<string, any>>(options: O): Required<TypedValueProvider<O>>;
24
+ export declare function provideWithOptions<O extends Record<string, any>, T = any>(type: Type<T>, options: O): TypedFactoryProvider<T>;
25
+ export declare function injectOptions<O extends Record<string, any>>(defaults: O): O;
@@ -1,3 +1,4 @@
1
+ export declare function svgToDataUri(svgString: string): string;
1
2
  export declare class StringUtils {
2
3
  static concat(separator: string, ...strings: string[]): string;
3
4
  static startsWith(str: string, ...starts: string[]): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stemy/ngx-utils",
3
- "version": "19.7.7",
3
+ "version": "19.7.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,6 @@
1
1
  import "zone.js";
2
2
  export { MaybePromise, MaybeArray, KeysOfType, ObjOfType, StringKeys, CapitalizeFirst, CamelJoin, PrefixedPick } from "./ngx-utils/helper-types";
3
- export { DurationUnit, TypedFactoryProvider, TypedValueProvider, TypedExistingProvider, TypedClassProvider, TypedTokenProvider, TypedProvider, CachedFactory, ResolveFactory, IResolveFactory, CanvasColor, IIconService, ITranslation, ITranslations, ILanguageSetting, ILanguageSettings, ILanguageService, IUserData, IAuthService, RouteValidator, IRouteData, IRoute, IAclComponent, IDialogButtonConfig, IDialogConfig, IConfirmMessageConfig, IConfirmDialogConfig, IDialogService, IPromiseService, IRouteStateInfo, NavigationUrlParam, StorageMode, ToastType, IToasterService, IAsyncMessage, AsyncMethod, IconMap, IconProps, ButtonType, ButtonSize, ButtonProps, TabValue, 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, ShapeIntersection, ShapeDistance, IShape, CanvasResizeMode, CanvasItemDirection, CanvasPaintFunc, RangeCoords, RectCoords, InteractiveCanvasParams, InteractiveCanvasItem, InteractiveCanvasItems, InteractiveCanvas, InteractiveCanvasRenderer, InteractivePanEvent, InteractiveCanvasPointer, HttpRequestHeaders, HttpRequestQuery, HttpClientRequestOptions, HttpRequestOptions, UploadData, IIssueContext, IProgress, ProgressListener, CacheExpireMode, IHttpService, IApiService, DynamicSchemaRef, OpenApiSchemaProperty, OpenApiSchema, OpenApiSchemas, TableFilterType, ITableOrders, ITableColumn, ITableColumns, TableColumns, ITableTemplate, ITableTemplates, ITableDataQuery, TableDataItems, TableDataLoader, DragDropEvent, DragEventHandler, ITableDragEvent, DynamicTableDragHandler, ResourceIfContext, CssSelector, CssSelectorList, DynamicComponentLocation, DynamicModuleInfo, DynamicEntryComponents, IConfiguration, IConfigService, ResizeEventStrategy, ErrorHandlerCallback, GlobalComponentModifier, AppInitializerFunc, IModuleConfig, ValuedPromise } from "./ngx-utils/common-types";
3
+ export { DurationUnit, TypedFactoryProvider, TypedValueProvider, TypedExistingProvider, TypedClassProvider, TypedTokenProvider, TypedProvider, CachedFactory, ResolveFactory, IResolveFactory, CanvasColor, IIconService, ITranslation, ITranslations, ILanguageSetting, ILanguageSettings, ILanguageService, IUserData, IAuthService, RouteValidator, IRouteData, IRoute, IAclComponent, IDialogButtonConfig, IDialogConfig, IConfirmMessageConfig, IConfirmDialogConfig, IDialogService, IPromiseService, IRouteStateInfo, NavigationUrlParam, StorageMode, ToastType, IToasterService, IAsyncMessage, AsyncMethod, IconMap, IconProps, ButtonType, ButtonSize, ButtonProps, TabValue, 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, ShapeIntersection, ShapeDistance, IShape, CanvasResizeMode, CanvasItemDirection, CanvasPaintFunc, RangeCoords, RectCoords, InteractiveCanvasParams, InteractiveCanvasItem, InteractiveCanvasItems, InteractiveCanvas, InteractiveCanvasRenderer, InteractivePanEvent, InteractiveCanvasPointer, HttpRequestHeaders, HttpRequestQuery, HttpClientRequestOptions, HttpRequestOptions, UploadData, IIssueContext, IProgress, ProgressListener, CacheExpireMode, IHttpService, SvgSourceModifier, IApiService, DynamicSchemaRef, OpenApiSchemaProperty, OpenApiSchema, OpenApiSchemas, TableFilterType, ITableOrders, ITableColumn, ITableColumns, TableColumns, ITableTemplate, ITableTemplates, ITableDataQuery, TableDataItems, 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
4
  export { ICON_TYPE, ICON_MAP, BUTTON_TYPE, ERROR_HANDLER, STATIC_SCHEMAS, RESIZE_STRATEGY, RESIZE_DELAY, ROOT_ELEMENT, SCRIPT_PARAMS, BASE_CONFIG, CONFIG_SERVICE, APP_BASE_URL, API_SERVICE, EXPRESS_REQUEST, PROMISE_SERVICE, DIALOG_SERVICE, TOASTER_SERVICE, AUTH_SERVICE, LANGUAGE_SERVICE, ICON_SERVICE, OPTIONS_TOKEN } from "./ngx-utils/tokens";
5
5
  export { AjaxRequestHandler } from "./ngx-utils/utils/ajax-request-handler";
6
6
  export { ArrayUtils } from "./ngx-utils/utils/array.utils";
@@ -18,11 +18,11 @@ export { JSONfn } from "./ngx-utils/utils/jsonfn";
18
18
  export { ReflectUtils } from "./ngx-utils/utils/reflect.utils";
19
19
  export { LoaderUtils } from "./ngx-utils/utils/loader.utils";
20
20
  export { EPSILON, normalizeRange, clamp, overflow, MathUtils } from "./ngx-utils/utils/math.utils";
21
- export { isBrowser, getRoot, hashCode, switchClass, getCssVariables, checkTransitions, getComponentDef, parseSelector, selectorMatchesList, provideEntryComponents, provideWithOptions } from "./ngx-utils/utils/misc";
21
+ export { isBrowser, getRoot, hashCode, switchClass, getCssVariables, checkTransitions, getComponentDef, parseSelector, selectorMatchesList, provideEntryComponents, provideOptions, provideWithOptions, injectOptions } from "./ngx-utils/utils/misc";
22
22
  export { ObjectUtils } from "./ngx-utils/utils/object.utils";
23
23
  export { ObservableUtils, ISubscriberInfo } from "./ngx-utils/utils/observable.utils";
24
24
  export { CancelablePromise, cancelablePromise, impatientPromise } from "./ngx-utils/utils/promise.utils";
25
- export { StringUtils } from "./ngx-utils/utils/string.utils";
25
+ export { svgToDataUri, StringUtils } from "./ngx-utils/utils/string.utils";
26
26
  export { SetUtils } from "./ngx-utils/utils/set.utils";
27
27
  export { computedPrevious, cssStyles, cssVariables } from "./ngx-utils/utils/signal-utils";
28
28
  export { SocketFactory, SocketData, SocketDataValue, SocketDataObj, SocketClient } from "./ngx-utils/utils/socket-client";