@stemy/ngx-utils 13.1.0 → 13.1.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.
@@ -262,6 +262,7 @@ export declare class ResourceIfContext {
262
262
  resource: string;
263
263
  url: string;
264
264
  }
265
+ export declare const APP_BASE_URL: InjectionToken<string>;
265
266
  export declare class IConfiguration {
266
267
  baseUrl?: string;
267
268
  baseDomain?: string;
@@ -301,7 +302,7 @@ export interface IModuleConfig {
301
302
  configService?: Type<IConfigService>;
302
303
  globalTemplates?: Type<IGlobalTemplates>;
303
304
  initializeApp?: (injector: Injector) => AppInitializerFunc;
304
- baseHref?: (injector: Injector) => string;
305
+ baseUrl?: (injector: Injector) => string;
305
306
  }
306
307
  export declare class ValuedPromise<T> extends Promise<T> {
307
308
  value: T;
@@ -44,7 +44,8 @@ import * as i40 from "./components/pagination-menu/pagination-menu.component";
44
44
  import * as i41 from "./components/unordered-list/unordered-list.component";
45
45
  import * as i42 from "@angular/common";
46
46
  import * as i43 from "@angular/forms";
47
- export declare function loadBaseHref(): string;
47
+ export declare function loadBaseUrl(): string;
48
+ export declare function loadBaseHref(baseUrl: string): string;
48
49
  export declare class NgxUtilsModule {
49
50
  static forRoot(config?: IModuleConfig): ModuleWithProviders<NgxUtilsModule>;
50
51
  constructor();
@@ -6,7 +6,7 @@ export declare class ConfigService implements IConfigService {
6
6
  readonly http: HttpClient;
7
7
  readonly universal: UniversalService;
8
8
  readonly rootElement: any;
9
- readonly baseHref: string;
9
+ readonly baseUrl: string;
10
10
  protected baseConfig: IConfiguration;
11
11
  protected loadedConfig: IConfiguration;
12
12
  protected scriptParameters: any;
@@ -15,8 +15,7 @@ export declare class ConfigService implements IConfigService {
15
15
  get load(): () => Promise<IConfiguration>;
16
16
  get config(): IConfiguration;
17
17
  get configUrl(): string;
18
- constructor(http: HttpClient, universal: UniversalService, rootElement: any, baseHref: string, baseConfig?: IConfiguration, scriptParams?: any);
19
- protected parseDomain(baseUrl: string): string;
18
+ constructor(http: HttpClient, universal: UniversalService, rootElement: any, baseUrl: string, baseConfig?: IConfiguration, scriptParams?: any);
20
19
  protected initService(): void;
21
20
  protected loadJson(): Promise<IConfiguration>;
22
21
  protected prepareConfig(config: IConfiguration): Promise<IConfiguration>;
@@ -4,4 +4,5 @@ export declare class StringUtils {
4
4
  static has(str: string, ...parts: string[]): boolean;
5
5
  static lcFirst(str: string): string;
6
6
  static ucFirst(str: string): string;
7
+ static parseDomain(baseUrl: string): string;
7
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stemy/ngx-utils",
3
- "version": "13.1.0",
3
+ "version": "13.1.1",
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, NavigationUrlParam, 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, GlobalComponentModifier, IGlobalTemplates, GLOBAL_TEMPLATES, 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, NavigationUrlParam, 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, APP_BASE_URL, IConfiguration, IConfigService, CONFIG_SERVICE, BASE_CONFIG, SCRIPT_PARAMS, ROOT_ELEMENT, ErrorHandlerCallback, ERROR_HANDLER, GlobalComponentModifier, IGlobalTemplates, GLOBAL_TEMPLATES, 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";