@stemy/ngx-utils 19.6.7 → 19.6.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.
- package/fesm2022/stemy-ngx-utils.mjs +41 -18
- package/fesm2022/stemy-ngx-utils.mjs.map +1 -1
- package/ngx-utils/common-types.d.ts +11 -1
- package/ngx-utils/ngx-utils.imports.d.ts +2 -2
- package/ngx-utils/services/open-api.service.d.ts +2 -1
- package/ngx-utils/tokens.d.ts +2 -1
- package/ngx-utils/utils/cached-factory.d.ts +4 -2
- package/package.json +1 -1
- package/public_api.d.ts +3 -3
|
@@ -12,7 +12,16 @@ export interface TypedFactoryProvider<T> {
|
|
|
12
12
|
export interface TypedValueProvider<T> {
|
|
13
13
|
useValue: T;
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export interface TypedExistingProvider<T> {
|
|
16
|
+
useExisting: Type<T>;
|
|
17
|
+
}
|
|
18
|
+
export interface TypedClassProvider<T> {
|
|
19
|
+
useClass: Type<T>;
|
|
20
|
+
}
|
|
21
|
+
export interface TypedTokenProvider<T> {
|
|
22
|
+
useToken: InjectionToken<T>;
|
|
23
|
+
}
|
|
24
|
+
export type TypedProvider<T> = TypedFactoryProvider<T> | TypedValueProvider<T> | TypedExistingProvider<T> | TypedClassProvider<T> | TypedTokenProvider<T> | Type<T>;
|
|
16
25
|
export type CachedFactory<T> = (injector: Injector) => ReadonlyArray<T>;
|
|
17
26
|
export interface IResolveFactory {
|
|
18
27
|
func: Function;
|
|
@@ -547,6 +556,7 @@ export interface IModuleConfig {
|
|
|
547
556
|
resizeDelay?: number;
|
|
548
557
|
resizeStrategy?: ResizeEventStrategy;
|
|
549
558
|
socketPath?: string;
|
|
559
|
+
staticSchemas?: OpenApiSchemas;
|
|
550
560
|
}
|
|
551
561
|
export declare class ValuedPromise<T> extends Promise<T> {
|
|
552
562
|
value: T;
|
|
@@ -67,8 +67,8 @@ import { UnorderedListComponent } from "./components/unordered-list/unordered-li
|
|
|
67
67
|
import { UploadComponent } from "./components/upload/upload.component";
|
|
68
68
|
export declare const pipes: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof IncludesPipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe)[];
|
|
69
69
|
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)[];
|
|
70
|
-
export declare const components: (typeof ChipsComponent | typeof CloseBtnComponent | typeof DropListComponent | typeof DynamicTableComponent | typeof
|
|
71
|
-
export declare const providers: (typeof
|
|
70
|
+
export declare const components: (typeof ChipsComponent | typeof CloseBtnComponent | typeof DropListComponent | typeof DynamicTableComponent | typeof PaginationMenuComponent | typeof InteractiveCanvasComponent | typeof InteractiveCircleComponent | typeof InteractiveRectComponent | typeof UnorderedListComponent | typeof UploadComponent)[];
|
|
71
|
+
export declare const providers: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof IncludesPipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof TranslatePipe | typeof BaseHttpClient | typeof BaseHttpService | typeof AuthGuard | typeof AclService | typeof StaticAuthService | typeof ConfigService | typeof BaseDialogService | typeof ErrorHandlerService | typeof EventsService | typeof FormatterService | typeof GlobalTemplateService | typeof IconService | typeof StaticLanguageService | typeof OpenApiService | typeof PromiseService | typeof SocketService | typeof StateService | typeof StorageService | typeof BaseToasterService | typeof CacheService | typeof ComponentLoaderService | typeof TranslatedUrlSerializer | typeof UniversalService | typeof WasmService | typeof DeviceDetectorService | {
|
|
72
72
|
provide: import("@angular/core").InjectionToken<import("@angular/platform-browser").EventManagerPlugin[]>;
|
|
73
73
|
useClass: typeof DragDropEventPlugin;
|
|
74
74
|
multi: boolean;
|
|
@@ -2,10 +2,11 @@ import { DynamicSchemaRef, IApiService, OpenApiSchema, OpenApiSchemaProperty, Op
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class OpenApiService {
|
|
4
4
|
readonly api: IApiService;
|
|
5
|
+
protected readonly staticSchemas: OpenApiSchemas;
|
|
5
6
|
private apiDocs;
|
|
6
7
|
private schemas;
|
|
7
8
|
private readonly dynamicSchemas;
|
|
8
|
-
constructor(api: IApiService);
|
|
9
|
+
constructor(api: IApiService, staticSchemas: OpenApiSchemas);
|
|
9
10
|
isDynamicSchema(value: any): value is Required<DynamicSchemaRef>;
|
|
10
11
|
getSchemas(): Promise<OpenApiSchemas>;
|
|
11
12
|
getReferences(property: OpenApiSchemaProperty, schema: OpenApiSchema): Promise<OpenApiSchema[]>;
|
package/ngx-utils/tokens.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InjectionToken, Type } from "@angular/core";
|
|
2
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";
|
|
3
|
+
import { ButtonProps, DynamicEntryComponents, DynamicModuleInfo, ErrorHandlerCallback, IApiService, IAuthService, IConfigService, IConfiguration, IconMap, IconProps, IDialogService, IIconService, ILanguageService, IPromiseService, IToasterService, IWasi, OpenApiSchemas, ResizeEventStrategy } from "./common-types";
|
|
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>>;
|
|
@@ -25,3 +25,4 @@ export declare const ROOT_ELEMENT: InjectionToken<HTMLElement>;
|
|
|
25
25
|
export declare const RESIZE_DELAY: InjectionToken<number>;
|
|
26
26
|
export declare const RESIZE_STRATEGY: InjectionToken<ResizeEventStrategy>;
|
|
27
27
|
export declare const ERROR_HANDLER: InjectionToken<ErrorHandlerCallback>;
|
|
28
|
+
export declare const STATIC_SCHEMAS: InjectionToken<OpenApiSchemas>;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { InjectionToken, Provider } from "@angular/core";
|
|
2
|
+
import { CachedFactory, TypedProvider } from "../common-types";
|
|
3
|
+
export declare function createTypedProvider<T>(provide: InjectionToken<T>, p: TypedProvider<T>, multi?: boolean): Provider;
|
|
4
|
+
export declare function cachedFactory<T>(providers: TypedProvider<T>[]): CachedFactory<T>;
|
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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,
|
|
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";
|
|
3
|
+
export { DurationUnit, TypedFactoryProvider, TypedValueProvider, TypedExistingProvider, TypedClassProvider, TypedTokenProvider, TypedProvider, CachedFactory, IResolveFactory, CanvasColor, IIconService, ITranslation, ITranslations, ILanguageSetting, ILanguageSettings, ILanguageService, IUserData, IAuthService, RouteValidator, IRouteData, IRoute, IAclComponent, IDialogButtonConfig, IDialogConfig, 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";
|
|
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
|
-
export { cachedFactory } from "./ngx-utils/utils/cached-factory";
|
|
8
|
+
export { createTypedProvider, cachedFactory } from "./ngx-utils/utils/cached-factory";
|
|
9
9
|
export { CanvasUtils } from "./ngx-utils/utils/canvas.utils";
|
|
10
10
|
export { DateUtils } from "./ngx-utils/utils/date.utils";
|
|
11
11
|
export { FileUtils } from "./ngx-utils/utils/file.utils";
|