@stemy/ngx-utils 19.6.12 → 19.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/public_api.d.ts CHANGED
@@ -1,24 +1,24 @@
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, IWasi, IWasmExports, IWasm, IWasmAsync, 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, IShape, CanvasItemShape, CanvasItemDirection, InteractiveCanvas, InteractiveCanvasItem, InteractiveDrawFn, 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, 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, STATIC_SCHEMAS, 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";
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, IShape, CanvasItemDirection, CanvasPaintFunc, 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";
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";
7
7
  export { AuthGuard } from "./ngx-utils/utils/auth.guard";
8
8
  export { createTypedProvider, cachedFactory } from "./ngx-utils/utils/cached-factory";
9
- export { CanvasUtils } from "./ngx-utils/utils/canvas.utils";
9
+ export { drawRect, drawOval, CanvasUtils } from "./ngx-utils/utils/canvas";
10
10
  export { DateUtils } from "./ngx-utils/utils/date.utils";
11
11
  export { FileUtils } from "./ngx-utils/utils/file.utils";
12
12
  export { ForbiddenZone } from "./ngx-utils/utils/forbidden-zone";
13
13
  export { GenericValue } from "./ngx-utils/utils/generic-value";
14
14
  export { FileSystemEntryOpenResult, FileSystemEntryOpenCb, FileSystemEntry } from "./ngx-utils/utils/file-system";
15
- export { Rect, Circle, Point } from "./ngx-utils/utils/geometry";
15
+ export { dotProduct, isPoint, perpendicular, ptAdd, ptDistance, ptLength, ptMultiply, ptSubtract, rotateDeg, rotateRad, toDegrees, toRadians, Point, Rect, Oval, Circle } from "./ngx-utils/utils/geometry";
16
16
  export { Initializer } from "./ngx-utils/utils/initializer";
17
17
  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 { MathUtils } from "./ngx-utils/utils/math.utils";
21
- export { isBrowser, getRoot, hashCode, switchClass, getCssVariables, checkTransitions, getComponentDef, parseSelector, selectorMatchesList, provideEntryComponents } from "./ngx-utils/utils/misc";
21
+ export { isBrowser, getRoot, hashCode, switchClass, getCssVariables, checkTransitions, getComponentDef, parseSelector, selectorMatchesList, provideEntryComponents, provideWithOptions } 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";
@@ -28,10 +28,7 @@ export { computedPrevious, cssStyles, cssVariables } from "./ngx-utils/utils/sig
28
28
  export { SocketFactory, SocketData, SocketDataValue, SocketDataObj, SocketClient } from "./ngx-utils/utils/socket-client";
29
29
  export { TimerUtils } from "./ngx-utils/utils/timer.utils";
30
30
  export { UniqueUtils } from "./ngx-utils/utils/unique.utils";
31
- export { Vector } from "./ngx-utils/utils/vector";
32
- export { provideWithOptions } from "./ngx-utils/utils/with-options-provider";
33
31
  export { UniversalService } from "./ngx-utils/services/universal.service";
34
- export { WasmService } from "./ngx-utils/services/wasm.service";
35
32
  export { AclService } from "./ngx-utils/services/acl.service";
36
33
  export { ApiService } from "./ngx-utils/services/api.service";
37
34
  export { StaticAuthService } from "./ngx-utils/services/auth.service";
@@ -1,25 +0,0 @@
1
- import { Type } from "@angular/core";
2
- import { IWasi, IWasm, IWasmAsync } from "../common-types";
3
- import { UniversalService } from "./universal.service";
4
- import { LocalHttpService } from "./local-http.service";
5
- import { Wasi } from "../utils/wasi";
6
- import * as i0 from "@angular/core";
7
- /**
8
- * Use this service to load WebAssembly modules
9
- */
10
- export declare class WasmService {
11
- protected universal: UniversalService;
12
- protected http: LocalHttpService;
13
- protected wasi: Type<Wasi>;
14
- protected modules: {
15
- [url: string]: Promise<any>;
16
- };
17
- protected workerModules: {
18
- [url: string]: any;
19
- };
20
- constructor(universal: UniversalService, http: LocalHttpService, wasi: IWasi);
21
- getModule<T = IWasm>(name: string): Promise<T>;
22
- getWorkerModule<T = IWasmAsync>(name: string): T;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<WasmService, never>;
24
- static ɵprov: i0.ɵɵInjectableDeclaration<WasmService>;
25
- }
@@ -1,46 +0,0 @@
1
- import { IPoint, IShape } from "../common-types";
2
- export declare class Rect implements IShape {
3
- readonly x: number;
4
- readonly y: number;
5
- readonly width: number;
6
- readonly height: number;
7
- readonly rotation: number;
8
- get center(): Point;
9
- get left(): number;
10
- get right(): number;
11
- get bottom(): number;
12
- get top(): number;
13
- constructor(x: number, y: number, width: number, height: number, rotation?: number);
14
- distance(p: IPoint): number;
15
- }
16
- export declare class Circle implements IShape {
17
- readonly x: number;
18
- readonly y: number;
19
- readonly radius: number;
20
- get center(): Point;
21
- get left(): Point;
22
- get right(): Point;
23
- get top(): Point;
24
- get bottom(): Point;
25
- get rect(): Rect;
26
- constructor(x: number, y: number, radius: number);
27
- distance(p: IPoint): number;
28
- }
29
- export declare class Point implements IShape {
30
- readonly x: number;
31
- readonly y: number;
32
- static Zero: Point;
33
- get length(): number;
34
- get perpendicular(): Point;
35
- constructor(x: number, y: number);
36
- add(p: Point): Point;
37
- subtract(p: Point): Point;
38
- multiply(p: Point | number): Point;
39
- distance(b: IPoint): number;
40
- lerp(p: Point, ratio: number): Point;
41
- perpendicularTo(p: Point, length: number): Point;
42
- circleWith(a: Point, b: Point): Circle;
43
- tangents(c: Circle): Point[];
44
- angle(p: Point): number;
45
- rotateAround(p: Point, angle: number): Point;
46
- }
@@ -1,23 +0,0 @@
1
- export declare class Vector {
2
- x: number;
3
- y: number;
4
- z: number;
5
- get negative(): Vector;
6
- get length(): number;
7
- get unit(): Vector;
8
- get min(): number;
9
- get max(): number;
10
- get angles(): any;
11
- constructor(x: number, y: number, z: number);
12
- add(v: Vector | number): Vector;
13
- subtract(v: Vector | number): Vector;
14
- multiply(v: Vector | number): Vector;
15
- divide(v: Vector | number): Vector;
16
- equals(v: Vector): boolean;
17
- dot(v: Vector): number;
18
- cross(v: Vector): Vector;
19
- angleTo(v: Vector): number;
20
- toArray(n?: number): number[];
21
- clone(): Vector;
22
- init(x: number, y: number, z: number): Vector;
23
- }
@@ -1,26 +0,0 @@
1
- import { IWasi, IWasmExports } from "../common-types";
2
- import * as i0 from "@angular/core";
3
- export declare class Wasi implements IWasi {
4
- protected env: {
5
- [key: string]: string;
6
- };
7
- protected instantiated: boolean;
8
- protected wasi: any;
9
- protected wasm: IWasmExports;
10
- protected envStrings: string[];
11
- constructor();
12
- instantiate(bytes: ArrayBuffer): Promise<IWasmExports>;
13
- protected updateMemoryViews(): void;
14
- protected getEnvStrings(): string[];
15
- protected stringToAscii(str: any, buffer: any): void;
16
- emscripten_notify_memory_growth(memoryIndex: number): void;
17
- proc_exit(rval: number): void;
18
- environ_get(environ: number, environ_buf: number): number;
19
- environ_sizes_get(penviron_count: number, penviron_buf_size: number): number;
20
- fd_close(fd: number): number;
21
- fd_write(fd: number, iovs: number, iovs_len: number, nwritten: number): number;
22
- fd_read(fd: number, iovs: number, iovs_len: number, nread: number): number;
23
- fd_seek(fd: number, offset: number, whence: number, newOffset: number): number;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<Wasi, never>;
25
- static ɵprov: i0.ɵɵInjectableDeclaration<Wasi>;
26
- }
@@ -1,17 +0,0 @@
1
- import { IWasi } from "../common-types";
2
- import { Type } from "@angular/core";
3
- interface IPromiseExecutor {
4
- resolve: (value?: any) => void;
5
- reject: (reason?: any) => void;
6
- }
7
- export declare function workerFunction(JSONfn: any, logTimes: boolean): void;
8
- export declare class WasmWorkerProxy {
9
- protected methods: Promise<string[]>;
10
- protected onMethods: (methods: string[]) => void;
11
- protected worker: Worker;
12
- protected promises: Map<string, IPromiseExecutor>;
13
- constructor(wasmPath: string, wasi: Type<IWasi>, logTimes?: boolean);
14
- onMessage(e: MessageEvent): void;
15
- call(method: string, args: any[]): Promise<any>;
16
- }
17
- export {};
@@ -1,3 +0,0 @@
1
- import { Type } from "@angular/core";
2
- import { TypedFactoryProvider } from "../common-types";
3
- export declare function provideWithOptions<O extends Object, T = any>(type: Type<T>, options: O): TypedFactoryProvider<T>;