@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.
@@ -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): 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stemy/ngx-utils",
3
- "version": "11.0.10",
3
+ "version": "11.2.0",
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,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";