@stemy/ngx-utils 13.0.6 → 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/esm2020/tools/config.mjs +71 -0
- package/esm2020/tools/public_api.mjs +2 -0
- package/esm2020/tools/stemy-ngx-utils-tools.mjs +5 -0
- package/{tools/config.js → fesm2015/stemy-ngx-utils-tools.mjs} +8 -10
- package/fesm2015/stemy-ngx-utils-tools.mjs.map +1 -0
- package/fesm2015/stemy-ngx-utils.mjs +37 -21
- package/fesm2015/stemy-ngx-utils.mjs.map +1 -1
- package/fesm2020/stemy-ngx-utils-tools.mjs +77 -0
- package/fesm2020/stemy-ngx-utils-tools.mjs.map +1 -0
- package/fesm2020/stemy-ngx-utils.mjs +37 -21
- package/fesm2020/stemy-ngx-utils.mjs.map +1 -1
- package/ngx-utils/common-types.d.ts +5 -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 +9 -1
- package/public_api.d.ts +1 -1
- package/tools/config.d.ts +7 -0
- package/tools/package.json +10 -0
- package/tools/public_api.d.ts +1 -0
- package/tools/stemy-ngx-utils-tools.d.ts +5 -0
- package/tools/circular.js +0 -117
- package/tools/circular.js.map +0 -1
- package/tools/config.js.map +0 -1
- package/tools/icons.js +0 -14
- package/tools/icons.js.map +0 -1
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createConfig = exports.parseConfig = exports.isDate = exports.isPrimitive = void 0;
|
|
4
1
|
function isPrimitive(value) {
|
|
5
2
|
const type = typeof value;
|
|
6
3
|
return value == null || (type !== "object" && type !== "function");
|
|
7
4
|
}
|
|
8
|
-
exports.isPrimitive = isPrimitive;
|
|
9
5
|
function isDate(value) {
|
|
10
6
|
return null !== value && !isNaN(value) && "undefined" !== typeof value.getDate;
|
|
11
7
|
}
|
|
12
|
-
exports.isDate = isDate;
|
|
13
8
|
function convertValue(value, type) {
|
|
14
9
|
switch (type) {
|
|
15
10
|
case "boolean":
|
|
@@ -68,12 +63,15 @@ function parseConfig(config) {
|
|
|
68
63
|
}
|
|
69
64
|
return config;
|
|
70
65
|
}
|
|
71
|
-
exports.parseConfig = parseConfig;
|
|
72
66
|
function createConfig(config, alternatives) {
|
|
73
67
|
alternatives = alternatives || {};
|
|
74
68
|
console.log("Parsing config...");
|
|
75
69
|
return createConfigRecursive(null, parseConfig(config), "", alternatives);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Generated bundle index. Do not edit.
|
|
74
|
+
*/
|
|
75
|
+
|
|
76
|
+
export { createConfig };
|
|
77
|
+
//# sourceMappingURL=stemy-ngx-utils-tools.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stemy-ngx-utils-tools.mjs","sources":["../../tools/config.ts","../../tools/stemy-ngx-utils-tools.ts"],"sourcesContent":["export function isPrimitive(value: any): boolean {\r\n const type = typeof value;\r\n return value == null || (type !== \"object\" && type !== \"function\");\r\n}\r\n\r\nexport function isDate(value: any): value is Date {\r\n return null !== value && !isNaN(value) && \"undefined\" !== typeof value.getDate;\r\n}\r\n\r\nexport interface IEnvironmentAlternatives {\r\n [name: string]: string[]\r\n}\r\n\r\nfunction convertValue(value: any, type: string): any {\r\n switch (type) {\r\n case \"boolean\":\r\n value = typeof value == \"string\" ? value.toLowerCase() : value;\r\n return (value == \"no\" || value == \"false\" || value == \"0\") ? false : !!value;\r\n case \"number\":\r\n const val = parseFloat(value);\r\n return isNaN(val) ? 0 : val;\r\n }\r\n return value;\r\n}\r\n\r\nfunction getFromEnv(path: string, alternatives: IEnvironmentAlternatives, value: any): any {\r\n const name = path.replace(/\\.?([A-Z|0-9]+)/g, function (x,y){\r\n return \"_\" + y.toLowerCase()\r\n }).replace(/\\./gi, \"_\").replace(/^_/, \"\").toUpperCase();\r\n const alts = Array.from(alternatives[name] || []);\r\n alts.unshift(name);\r\n for (const envName of alts) {\r\n const envValue = process.env[envName];\r\n if (typeof envValue !== \"undefined\") {\r\n const val = convertValue(envValue, typeof value);\r\n console.log(name, envName, val);\r\n return convertValue(envValue, typeof value);\r\n }\r\n }\r\n console.log(name, value);\r\n return value;\r\n}\r\n\r\nfunction createConfigRecursive(target: any, source: any, path: string, alternatives: IEnvironmentAlternatives): any {\r\n if (isPrimitive(source) || isDate(source)) {\r\n return getFromEnv(path, alternatives, source);\r\n }\r\n if (Array.isArray(source)) {\r\n target = Array.isArray(target) ? Array.from(target) : [];\r\n source.forEach((item, index) => {\r\n if (target.length > index)\r\n target[index] = createConfigRecursive(target[index], item, !path ? `${index}` : `${path}.${index}`, alternatives);\r\n else\r\n target.push(createConfigRecursive(null, item, !path ? `${index}` : `${path}.${index}`, alternatives));\r\n });\r\n return target;\r\n }\r\n return Object.keys(source).reduce((result, key) => {\r\n result[key] = createConfigRecursive(result[key], source[key], !path ? `${key}` : `${path}.${key}`, alternatives);\r\n return result;\r\n }, Object.assign({}, target));\r\n}\r\n\r\nexport function parseConfig(config: any): any {\r\n if (typeof config == \"string\") {\r\n try {\r\n config = JSON.parse(config);\r\n } catch (e) {\r\n return {};\r\n }\r\n }\r\n return config;\r\n}\r\n\r\nexport function createConfig(config: any, alternatives?: IEnvironmentAlternatives): any {\r\n alternatives = alternatives || {};\r\n console.log(\"Parsing config...\");\r\n return createConfigRecursive(null, parseConfig(config), \"\", alternatives);\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_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;AAEe,SAAA,YAAY,CAAC,MAAW,EAAE,YAAuC,EAAA;AAC7E,IAAA,YAAY,GAAG,YAAY,IAAI,EAAE,CAAC;AAClC,IAAA,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;AACjC,IAAA,OAAO,qBAAqB,CAAC,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,YAAY,CAAC,CAAC;AAC9E;;AC9EA;;AAEG;;;;"}
|
|
@@ -9,7 +9,7 @@ import { __awaiter } from 'tslib';
|
|
|
9
9
|
import * as i2 from '@angular/router';
|
|
10
10
|
import { ActivatedRouteSnapshot, NavigationEnd, DefaultUrlSerializer, UrlTree, UrlSegmentGroup, UrlSegment, UrlSerializer } from '@angular/router';
|
|
11
11
|
import * as i1$3 from '@angular/common';
|
|
12
|
-
import { isPlatformBrowser, isPlatformServer,
|
|
12
|
+
import { isPlatformBrowser, isPlatformServer, DOCUMENT, APP_BASE_HREF, CommonModule } from '@angular/common';
|
|
13
13
|
import * as i1 from 'ngx-device-detector';
|
|
14
14
|
import { DeviceDetectorService } from 'ngx-device-detector';
|
|
15
15
|
import * as i1$1 from '@angular/common/http';
|
|
@@ -414,6 +414,7 @@ const API_SERVICE = new InjectionToken("api-service");
|
|
|
414
414
|
class ResourceIfContext {
|
|
415
415
|
}
|
|
416
416
|
// --- ConfigService ---
|
|
417
|
+
const APP_BASE_URL = new InjectionToken("app-base-url");
|
|
417
418
|
class IConfiguration {
|
|
418
419
|
}
|
|
419
420
|
const CONFIG_SERVICE = new InjectionToken("config-service");
|
|
@@ -1773,6 +1774,16 @@ class StringUtils {
|
|
|
1773
1774
|
static ucFirst(str) {
|
|
1774
1775
|
return str ? str.charAt(0).toUpperCase() + str.substring(1) : "";
|
|
1775
1776
|
}
|
|
1777
|
+
static parseDomain(baseUrl) {
|
|
1778
|
+
try {
|
|
1779
|
+
const url = new URL(baseUrl);
|
|
1780
|
+
const port = url.port && url.port !== "443" && url.port !== "80" ? `:${url.port}` : ``;
|
|
1781
|
+
return `${url.protocol}//${url.hostname}${port}/`;
|
|
1782
|
+
}
|
|
1783
|
+
catch (_a) {
|
|
1784
|
+
return "/";
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1776
1787
|
}
|
|
1777
1788
|
|
|
1778
1789
|
class ArrayUtils {
|
|
@@ -2496,18 +2507,18 @@ class StaticAuthService {
|
|
|
2496
2507
|
}
|
|
2497
2508
|
|
|
2498
2509
|
class ConfigService {
|
|
2499
|
-
constructor(http, universal, rootElement,
|
|
2510
|
+
constructor(http, universal, rootElement, baseUrl, baseConfig = null, scriptParams = null) {
|
|
2500
2511
|
this.http = http;
|
|
2501
2512
|
this.universal = universal;
|
|
2502
2513
|
this.rootElement = rootElement;
|
|
2503
|
-
this.
|
|
2514
|
+
this.baseUrl = baseUrl;
|
|
2504
2515
|
for (const key in []) {
|
|
2505
2516
|
Object.defineProperty(Array.prototype, key, {
|
|
2506
2517
|
enumerable: false
|
|
2507
2518
|
});
|
|
2508
2519
|
}
|
|
2509
2520
|
this.baseConfig = baseConfig || {};
|
|
2510
|
-
this.loadedConfig = Object.assign(!this.
|
|
2521
|
+
this.loadedConfig = Object.assign(!this.baseUrl ? {} : { baseUrl: this.baseUrl, baseDomain: StringUtils.parseDomain(this.baseUrl) }, this.baseConfig);
|
|
2511
2522
|
this.scriptParameters = scriptParams || {};
|
|
2512
2523
|
this.loaderFunc = () => {
|
|
2513
2524
|
this.loader = this.loader || new Promise((resolve, reject) => {
|
|
@@ -2533,16 +2544,6 @@ class ConfigService {
|
|
|
2533
2544
|
get configUrl() {
|
|
2534
2545
|
return `${this.loadedConfig.baseUrl}config/config.json`;
|
|
2535
2546
|
}
|
|
2536
|
-
parseDomain(baseUrl) {
|
|
2537
|
-
try {
|
|
2538
|
-
const url = new URL(baseUrl);
|
|
2539
|
-
const port = url.port && url.port !== "443" && url.port !== "80" ? `:${url.port}` : ``;
|
|
2540
|
-
return `${url.protocol}//${url.hostname}${port}/`;
|
|
2541
|
-
}
|
|
2542
|
-
catch (_a) {
|
|
2543
|
-
return "/";
|
|
2544
|
-
}
|
|
2545
|
-
}
|
|
2546
2547
|
initService() {
|
|
2547
2548
|
}
|
|
2548
2549
|
loadJson() {
|
|
@@ -2592,7 +2593,7 @@ class ConfigService {
|
|
|
2592
2593
|
return decodeURIComponent(results[2].replace(/\+/g, " "));
|
|
2593
2594
|
}
|
|
2594
2595
|
}
|
|
2595
|
-
ConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: ConfigService, deps: [{ token: i1$1.HttpClient }, { token: UniversalService }, { token: ROOT_ELEMENT }, { token:
|
|
2596
|
+
ConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: ConfigService, deps: [{ token: i1$1.HttpClient }, { token: UniversalService }, { token: ROOT_ELEMENT }, { token: APP_BASE_URL }, { token: BASE_CONFIG, optional: true }, { token: SCRIPT_PARAMS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2596
2597
|
ConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: ConfigService });
|
|
2597
2598
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: ConfigService, decorators: [{
|
|
2598
2599
|
type: Injectable
|
|
@@ -2602,7 +2603,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImpor
|
|
|
2602
2603
|
args: [ROOT_ELEMENT]
|
|
2603
2604
|
}] }, { type: undefined, decorators: [{
|
|
2604
2605
|
type: Inject,
|
|
2605
|
-
args: [
|
|
2606
|
+
args: [APP_BASE_URL]
|
|
2606
2607
|
}] }, { type: IConfiguration, decorators: [{
|
|
2607
2608
|
type: Optional
|
|
2608
2609
|
}, {
|
|
@@ -5033,7 +5034,7 @@ function loadConfig(config) {
|
|
|
5033
5034
|
return config.load;
|
|
5034
5035
|
}
|
|
5035
5036
|
|
|
5036
|
-
function
|
|
5037
|
+
function loadBaseUrl() {
|
|
5037
5038
|
if (typeof (document) === "undefined" || typeof (location) === "undefined")
|
|
5038
5039
|
return "/";
|
|
5039
5040
|
const currentScript = document.currentScript;
|
|
@@ -5044,7 +5045,8 @@ function loadBaseHref() {
|
|
|
5044
5045
|
}
|
|
5045
5046
|
catch (e) {
|
|
5046
5047
|
const qualifiedUrl = location.protocol + "//" + location.host;
|
|
5047
|
-
const
|
|
5048
|
+
const stack = (e.stack || "");
|
|
5049
|
+
const srcUrl = (stack.match(new RegExp(qualifiedUrl + ".*?\\.js", "g")) || stack.match(/http([A-Z:\/\-.]+)\.js/gi)).shift();
|
|
5048
5050
|
const lastIndex = srcUrl.lastIndexOf("/");
|
|
5049
5051
|
return lastIndex < 0 ? "/" : srcUrl.substring(0, lastIndex + 1);
|
|
5050
5052
|
}
|
|
@@ -5053,6 +5055,15 @@ function loadBaseHref() {
|
|
|
5053
5055
|
const lastIndex = scriptSrc.lastIndexOf("/");
|
|
5054
5056
|
return lastIndex < 0 ? "/" : scriptSrc.substring(0, lastIndex + 1);
|
|
5055
5057
|
}
|
|
5058
|
+
function loadBaseHref(baseUrl) {
|
|
5059
|
+
try {
|
|
5060
|
+
return new URL(baseUrl).pathname;
|
|
5061
|
+
}
|
|
5062
|
+
catch (e) {
|
|
5063
|
+
console.log(e);
|
|
5064
|
+
return "/";
|
|
5065
|
+
}
|
|
5066
|
+
}
|
|
5056
5067
|
class NgxUtilsModule {
|
|
5057
5068
|
constructor() {
|
|
5058
5069
|
}
|
|
@@ -5093,6 +5104,11 @@ class NgxUtilsModule {
|
|
|
5093
5104
|
provide: GLOBAL_TEMPLATES,
|
|
5094
5105
|
useExisting: (!config ? null : config.globalTemplates) || GlobalTemplateService
|
|
5095
5106
|
},
|
|
5107
|
+
{
|
|
5108
|
+
provide: APP_BASE_URL,
|
|
5109
|
+
useFactory: (!config ? null : config.baseUrl) || loadBaseUrl,
|
|
5110
|
+
deps: [Injector]
|
|
5111
|
+
},
|
|
5096
5112
|
{
|
|
5097
5113
|
provide: ROOT_ELEMENT,
|
|
5098
5114
|
useValue: null
|
|
@@ -5105,8 +5121,8 @@ class NgxUtilsModule {
|
|
|
5105
5121
|
},
|
|
5106
5122
|
{
|
|
5107
5123
|
provide: APP_BASE_HREF,
|
|
5108
|
-
useFactory:
|
|
5109
|
-
deps: [
|
|
5124
|
+
useFactory: loadBaseHref,
|
|
5125
|
+
deps: [APP_BASE_URL]
|
|
5110
5126
|
}
|
|
5111
5127
|
]
|
|
5112
5128
|
};
|
|
@@ -5145,5 +5161,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImpor
|
|
|
5145
5161
|
* Generated bundle index. Do not edit.
|
|
5146
5162
|
*/
|
|
5147
5163
|
|
|
5148
|
-
export { API_SERVICE, AUTH_SERVICE, AclService, AjaxRequestHandler, ApiService, ArrayUtils, AsyncMethodBase, AsyncMethodDirective, AuthGuard, BASE_CONFIG, BackgroundDirective, BaseHttpClient, BaseHttpService, CONFIG_SERVICE, CanvasColor, CanvasUtils, ChunkPipe, Circle, ConfigService, ConsoleToasterService, DateUtils, DynamicTableComponent, DynamicTableTemplateDirective, ERROR_HANDLER, EXPRESS_REQUEST, EntriesPipe, ErrorHandlerService, EventsService, ExtraItemPropertiesPipe, FactoryDependencies, FileUtils, FilterPipe, FindPipe, FormatNumberPipe, FormatterService, GLOBAL_TEMPLATES, GenericValue, GetOffsetPipe, GetTypePipe, GlobalTemplateDirective, GlobalTemplatePipe, GlobalTemplateService, GroupByPipe, HttpPromise, ICON_SERVICE, IConfiguration, IconDirective, IconService, Initializer, IsTypePipe, JoinPipe, KeysPipe, LANGUAGE_SERVICE, LanguageService, LoaderUtils, MapPipe, MathUtils, MaxPipe, MinPipe, NgxTemplateOutletDirective, NgxUtilsModule, ObjectUtils, ObservableUtils, OpenApiService, PROMISE_SERVICE, PaginationDirective, PaginationItemContext, PaginationItemDirective, PaginationMenuComponent, Point, PromiseService, ROOT_ELEMENT, Rect, ReducePipe, ReflectUtils, RemapPipe, ReplacePipe, ResizeEventPlugin, ResourceIfContext, ResourceIfDirective, ReversePipe, RoundPipe, SCRIPT_PARAMS, SafeHtmlPipe, ScrollEventPlugin, SetUtils, StateService, StaticAuthService, StaticLanguageService, StickyClassDirective, StickyDirective, StorageMode, StorageService, StringUtils, TOASTER_SERVICE, TimerUtils, TranslatePipe, TranslatedUrlSerializer, UniqueUtils, UniversalService, UnorderedListComponent, UnorderedListItemDirective, UnorderedListTemplateDirective, UnorederedListTemplate, ValuedPromise, ValuesPipe, Vector };
|
|
5164
|
+
export { API_SERVICE, APP_BASE_URL, AUTH_SERVICE, AclService, AjaxRequestHandler, ApiService, ArrayUtils, AsyncMethodBase, AsyncMethodDirective, AuthGuard, BASE_CONFIG, BackgroundDirective, BaseHttpClient, BaseHttpService, CONFIG_SERVICE, CanvasColor, CanvasUtils, ChunkPipe, Circle, ConfigService, ConsoleToasterService, DateUtils, DynamicTableComponent, DynamicTableTemplateDirective, ERROR_HANDLER, EXPRESS_REQUEST, EntriesPipe, ErrorHandlerService, EventsService, ExtraItemPropertiesPipe, FactoryDependencies, FileUtils, FilterPipe, FindPipe, FormatNumberPipe, FormatterService, GLOBAL_TEMPLATES, GenericValue, GetOffsetPipe, GetTypePipe, GlobalTemplateDirective, GlobalTemplatePipe, GlobalTemplateService, GroupByPipe, HttpPromise, ICON_SERVICE, IConfiguration, IconDirective, IconService, Initializer, IsTypePipe, JoinPipe, KeysPipe, LANGUAGE_SERVICE, LanguageService, LoaderUtils, MapPipe, MathUtils, MaxPipe, MinPipe, NgxTemplateOutletDirective, NgxUtilsModule, ObjectUtils, ObservableUtils, OpenApiService, PROMISE_SERVICE, PaginationDirective, PaginationItemContext, PaginationItemDirective, PaginationMenuComponent, Point, PromiseService, ROOT_ELEMENT, Rect, ReducePipe, ReflectUtils, RemapPipe, ReplacePipe, ResizeEventPlugin, ResourceIfContext, ResourceIfDirective, ReversePipe, RoundPipe, SCRIPT_PARAMS, SafeHtmlPipe, ScrollEventPlugin, SetUtils, StateService, StaticAuthService, StaticLanguageService, StickyClassDirective, StickyDirective, StorageMode, StorageService, StringUtils, TOASTER_SERVICE, TimerUtils, TranslatePipe, TranslatedUrlSerializer, UniqueUtils, UniversalService, UnorderedListComponent, UnorderedListItemDirective, UnorderedListTemplateDirective, UnorederedListTemplate, ValuedPromise, ValuesPipe, Vector };
|
|
5149
5165
|
//# sourceMappingURL=stemy-ngx-utils.mjs.map
|