@stemy/ngx-utils 11.0.10 → 11.2.0
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/bundles/stemy-ngx-utils.umd.js +18 -7
- package/bundles/stemy-ngx-utils.umd.js.map +1 -1
- package/bundles/stemy-ngx-utils.umd.min.js +1 -1
- package/bundles/stemy-ngx-utils.umd.min.js.map +1 -1
- package/esm2015/ngx-utils/common-types.js +2 -1
- package/esm2015/ngx-utils/ngx-utils.module.js +6 -2
- package/esm2015/ngx-utils/services/base-http.service.js +6 -4
- package/esm2015/ngx-utils/services/config.service.js +9 -6
- package/esm2015/public_api.js +2 -2
- package/fesm2015/stemy-ngx-utils.js +18 -8
- package/fesm2015/stemy-ngx-utils.js.map +1 -1
- package/ngx-utils/common-types.d.ts +1 -0
- package/ngx-utils/services/base-http.service.d.ts +1 -1
- package/ngx-utils/services/config.service.d.ts +3 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -1
- package/stemy-ngx-utils.metadata.json +1 -1
|
@@ -273,6 +273,7 @@ export interface IConfigService {
|
|
|
273
273
|
export declare const CONFIG_SERVICE: InjectionToken<IConfigService>;
|
|
274
274
|
export declare const BASE_CONFIG: InjectionToken<IConfiguration>;
|
|
275
275
|
export declare const SCRIPT_PARAMS: InjectionToken<any>;
|
|
276
|
+
export declare const ROOT_ELEMENT: InjectionToken<HTMLElement>;
|
|
276
277
|
export declare type ErrorHandlerCallback = (error: string) => any;
|
|
277
278
|
export declare const ERROR_HANDLER: InjectionToken<ErrorHandlerCallback>;
|
|
278
279
|
export declare type AppInitializerFunc = () => Promise<void> | void;
|
|
@@ -34,7 +34,7 @@ export declare class BaseHttpService implements IHttpService {
|
|
|
34
34
|
protected toastWarning(message: string, issueContext: IIssueContext, reason: any, options: IRequestOptions): void;
|
|
35
35
|
protected toastError(message: string, issueContext: IIssueContext, reason: any, options: IRequestOptions): void;
|
|
36
36
|
protected toPromise(url: string, options: IRequestOptions, listener?: ProgressListener): HttpPromise;
|
|
37
|
-
protected pushFailedRequest(url: string, options: IRequestOptions, req: () => void):
|
|
37
|
+
protected pushFailedRequest(url: string, options: IRequestOptions, req: () => void): boolean;
|
|
38
38
|
protected checkHeaders(headers: any): boolean;
|
|
39
39
|
protected makeOptions(options?: IRequestOptions, method?: string, body?: any): IRequestOptions;
|
|
40
40
|
protected makeHeaders(options: IRequestOptions): HttpHeaders;
|
|
@@ -4,6 +4,8 @@ import { IConfigService, IConfiguration } from "../common-types";
|
|
|
4
4
|
export declare class ConfigService implements IConfigService {
|
|
5
5
|
readonly http: HttpClient;
|
|
6
6
|
readonly universal: UniversalService;
|
|
7
|
+
readonly rootElement: any;
|
|
8
|
+
protected baseConfig: IConfiguration;
|
|
7
9
|
protected loadedConfig: IConfiguration;
|
|
8
10
|
protected scriptParameters: any;
|
|
9
11
|
protected loader: Promise<IConfiguration>;
|
|
@@ -11,7 +13,7 @@ export declare class ConfigService implements IConfigService {
|
|
|
11
13
|
get load(): () => Promise<IConfiguration>;
|
|
12
14
|
get config(): IConfiguration;
|
|
13
15
|
get configUrl(): string;
|
|
14
|
-
constructor(http: HttpClient, universal: UniversalService, baseConfig?: IConfiguration, scriptParams?: any);
|
|
16
|
+
constructor(http: HttpClient, universal: UniversalService, rootElement: any, baseConfig?: IConfiguration, scriptParams?: any);
|
|
15
17
|
protected initService(): void;
|
|
16
18
|
protected loadJson(): Promise<IConfiguration>;
|
|
17
19
|
protected prepareConfig(config: IConfiguration): Promise<IConfiguration>;
|
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { IResolveFactory, CanvasColor, IIconService, ICON_SERVICE, ITranslation, ITranslations, ILanguageSettings, ILanguageService, LANGUAGE_SERVICE, IAuthService, RouteValidator, IRouteData, IRoute, AUTH_SERVICE, IAclComponent, IPromiseService, PROMISE_SERVICE, IRouteStateInfo, StorageMode, IToasterService, TOASTER_SERVICE, IAsyncMessage, AsyncMethod, UnorederedListTemplate, UnorderedListTemplates, UnorderedListStyle, IAjaxRequestDetails, AjaxRequestCallback, IScriptPromises, IStylePromises, ISearchObservable, FactoryDependencies, ITimer, IExtraProperties, IGroupMap, TranslationQuery, IPageInfo, IPaginationData, PaginationDataLoader, PaginationItemContext, IHttpHeaders, IHttpParams, IRequestOptions, IIssueContext, IProgress, ProgressListener, PromiseExecutor, HttpPromise, IHttpService, EXPRESS_REQUEST, IApiService, API_SERVICE, IOpenApiSchemaProperty, IOpenApiSchema, IOpenApiSchemas, ITableColumns, ITableTemplate, ITableTemplates, TableDataLoader, ResourceIfContext, IConfiguration, IConfigService, CONFIG_SERVICE, BASE_CONFIG, SCRIPT_PARAMS, ErrorHandlerCallback, ERROR_HANDLER, AppInitializerFunc, IModuleConfig, ValuedPromise } from "./ngx-utils/common-types";
|
|
1
|
+
export { IResolveFactory, CanvasColor, IIconService, ICON_SERVICE, ITranslation, ITranslations, ILanguageSettings, ILanguageService, LANGUAGE_SERVICE, IAuthService, RouteValidator, IRouteData, IRoute, AUTH_SERVICE, IAclComponent, IPromiseService, PROMISE_SERVICE, IRouteStateInfo, StorageMode, IToasterService, TOASTER_SERVICE, IAsyncMessage, AsyncMethod, UnorederedListTemplate, UnorderedListTemplates, UnorderedListStyle, IAjaxRequestDetails, AjaxRequestCallback, IScriptPromises, IStylePromises, ISearchObservable, FactoryDependencies, ITimer, IExtraProperties, IGroupMap, TranslationQuery, IPageInfo, IPaginationData, PaginationDataLoader, PaginationItemContext, IHttpHeaders, IHttpParams, IRequestOptions, IIssueContext, IProgress, ProgressListener, PromiseExecutor, HttpPromise, IHttpService, EXPRESS_REQUEST, IApiService, API_SERVICE, IOpenApiSchemaProperty, IOpenApiSchema, IOpenApiSchemas, ITableColumns, ITableTemplate, ITableTemplates, TableDataLoader, ResourceIfContext, IConfiguration, IConfigService, CONFIG_SERVICE, BASE_CONFIG, SCRIPT_PARAMS, ROOT_ELEMENT, ErrorHandlerCallback, ERROR_HANDLER, AppInitializerFunc, IModuleConfig, ValuedPromise } from "./ngx-utils/common-types";
|
|
2
2
|
export { AjaxRequestHandler } from "./ngx-utils/utils/ajax-request-handler";
|
|
3
3
|
export { ObjectUtils } from "./ngx-utils/utils/object.utils";
|
|
4
4
|
export { DateUtils } from "./ngx-utils/utils/date.utils";
|