@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.
- package/esm2020/ngx-utils/common-types.mjs +2 -1
- package/esm2020/ngx-utils/ngx-utils.module.mjs +21 -6
- package/esm2020/ngx-utils/services/config.service.mjs +8 -18
- package/esm2020/ngx-utils/utils/string.utils.mjs +11 -1
- package/esm2020/public_api.mjs +2 -2
- package/fesm2015/stemy-ngx-utils.mjs +37 -21
- package/fesm2015/stemy-ngx-utils.mjs.map +1 -1
- package/fesm2020/stemy-ngx-utils.mjs +37 -21
- package/fesm2020/stemy-ngx-utils.mjs.map +1 -1
- package/ngx-utils/common-types.d.ts +2 -1
- package/ngx-utils/ngx-utils.module.d.ts +2 -1
- package/ngx-utils/services/config.service.d.ts +2 -3
- package/ngx-utils/utils/string.utils.d.ts +1 -0
- package/package.json +1 -1
- package/public_api.d.ts +1 -1
|
@@ -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
|
-
|
|
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
|
|
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
|
|
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,
|
|
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>;
|
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, 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";
|