@stemy/ngx-utils 13.0.7 → 13.1.2

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,6 @@ 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 isObjectId(id: string): boolean;
8
+ static parseDomain(baseUrl: string): string;
7
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stemy/ngx-utils",
3
- "version": "13.0.7",
3
+ "version": "13.1.2",
4
4
  "license": "MIT",
5
5
  "public": true,
6
6
  "repository": "https://github.com/stemyke/ngx-utils.git",
@@ -44,6 +44,14 @@
44
44
  "es2015": "./fesm2015/stemy-ngx-utils.mjs",
45
45
  "node": "./fesm2015/stemy-ngx-utils.mjs",
46
46
  "default": "./fesm2020/stemy-ngx-utils.mjs"
47
+ },
48
+ "./tools": {
49
+ "types": "./tools/stemy-ngx-utils-tools.d.ts",
50
+ "esm2020": "./esm2020/tools/stemy-ngx-utils-tools.mjs",
51
+ "es2020": "./fesm2020/stemy-ngx-utils-tools.mjs",
52
+ "es2015": "./fesm2015/stemy-ngx-utils-tools.mjs",
53
+ "node": "./fesm2015/stemy-ngx-utils-tools.mjs",
54
+ "default": "./fesm2020/stemy-ngx-utils-tools.mjs"
47
55
  }
48
56
  },
49
57
  "sideEffects": false,
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";
@@ -0,0 +1,7 @@
1
+ export declare function isPrimitive(value: any): boolean;
2
+ export declare function isDate(value: any): value is Date;
3
+ export interface IEnvironmentAlternatives {
4
+ [name: string]: string[];
5
+ }
6
+ export declare function parseConfig(config: any): any;
7
+ export declare function createConfig(config: any, alternatives?: IEnvironmentAlternatives): any;
@@ -0,0 +1,10 @@
1
+ {
2
+ "module": "../fesm2015/stemy-ngx-utils-tools.mjs",
3
+ "es2020": "../fesm2020/stemy-ngx-utils-tools.mjs",
4
+ "esm2020": "../esm2020/tools/stemy-ngx-utils-tools.mjs",
5
+ "fesm2020": "../fesm2020/stemy-ngx-utils-tools.mjs",
6
+ "fesm2015": "../fesm2015/stemy-ngx-utils-tools.mjs",
7
+ "typings": "stemy-ngx-utils-tools.d.ts",
8
+ "sideEffects": false,
9
+ "name": "@stemy/ngx-utils/tools"
10
+ }
@@ -0,0 +1 @@
1
+ export { createConfig, IEnvironmentAlternatives } from "./config";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@stemy/ngx-utils/tools" />
5
+ export * from './public_api';
package/tools/circular.js DELETED
@@ -1,117 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const fs = require("fs");
4
- const path = require("path");
5
- const args = process.argv.slice(2);
6
- const basePath = args[0];
7
- const scripts = [];
8
- // Recursively find ts files in the given path
9
- function readDir(dirPath) {
10
- const paths = fs.readdirSync(dirPath);
11
- paths.forEach(p => {
12
- const subPath = path.join(dirPath, p);
13
- const stats = fs.lstatSync(subPath);
14
- if (stats.isDirectory()) {
15
- readDir(subPath);
16
- return;
17
- }
18
- if (path.extname(subPath) == ".ts" && path.basename(subPath).indexOf("spec.") < 0 && path.basename(subPath).indexOf("test.") < 0) {
19
- scripts.push(subPath);
20
- }
21
- });
22
- }
23
- const depMap = {};
24
- let recursions = 0;
25
- function matchSymbolReferences(scriptPath, content, symbol) {
26
- const regex = new RegExp(": " + symbol + "(?:;|,|\\)| {)", "g");
27
- const nl = "\n";
28
- let match = regex.exec(content);
29
- while (match !== null) {
30
- let index = match.index;
31
- const lines = content.substr(0, index).split(nl);
32
- const line = lines.length;
33
- while (lines.length > 1) {
34
- index -= (lines.shift().length + nl.length);
35
- }
36
- index += nl.length + 2;
37
- console.log("Circular dependency found!", symbol, scriptPath, `${line}:${index}`);
38
- match = regex.exec(content);
39
- recursions++;
40
- }
41
- }
42
- function matchSymbols(scriptPath, content, regex) {
43
- let match = regex.exec(content);
44
- while (match !== null) {
45
- matchSymbolReferences(scriptPath, content.substr(0, match.index), match[1]);
46
- match = regex.exec(content);
47
- }
48
- }
49
- function matchPropertyBindFunctions(scriptPath, content) {
50
- const regex = /((?:[a-z]|[A-Z]|[0-9]|_|-|\.)*) = \((?:(?:[a-z]|[A-Z]|[0-9]|_|,|:)*)\): (?:(?:[a-z]|[A-Z]|[0-9]|_|-|\.)*) =>/g;
51
- const nl = "\n";
52
- let match = regex.exec(content);
53
- while (match !== null) {
54
- let index = match.index;
55
- const lines = content.substr(0, index).split(nl);
56
- const line = lines.length;
57
- while (lines.length > 1) {
58
- index -= (lines.shift().length + nl.length);
59
- }
60
- index += nl.length + 2;
61
- console.log("Property bind function found!", match[1], scriptPath, `${line}:${index}`);
62
- match = regex.exec(content);
63
- recursions++;
64
- }
65
- }
66
- function matchFileReferences(scriptDir, content, mapItem, regex) {
67
- let match = regex.exec(content);
68
- while (match !== null) {
69
- const importedScript = path.join(scriptDir, match[1]);
70
- mapItem.push(fs.existsSync(importedScript) ? path.join(importedScript, "index.ts") : `${importedScript}.ts`);
71
- match = regex.exec(content);
72
- }
73
- }
74
- function readScript(scriptPath) {
75
- // Read file
76
- const scriptDir = path.dirname(scriptPath);
77
- const content = fs.readFileSync(scriptPath, "utf8");
78
- const mapItem = depMap[scriptPath] || [];
79
- // Find classes, interfaces
80
- matchSymbols(scriptPath, content, /(?:class|interface) ((?:[a-z]|[A-Z]|[0-9]|_|-|\.)*) (?:(?:implements |extends )(?:(?:(?:[a-z]|[A-Z]|[0-9]|_|-|\.)*)(, | ))+){0,2}{/g);
81
- // Find types
82
- matchSymbols(scriptPath, content, /type ((?:[a-z]|[A-Z]|[0-9]|_|-|\.)*) =/g);
83
- // Find property bind functions
84
- matchPropertyBindFunctions(scriptPath, content);
85
- // Find imports
86
- matchFileReferences(scriptDir, content, mapItem, /import {(?:[a-z]|[A-Z]|[0-9]|_|-|\.|\*)*} from "(\..*)"/g);
87
- // Find exports
88
- matchFileReferences(scriptDir, content, mapItem, /export \* from "(\..*)"/g);
89
- depMap[scriptPath] = mapItem;
90
- }
91
- function findRecursion(scriptPath, path, dependents, visitedFiles) {
92
- dependents.forEach(dep => {
93
- if (visitedFiles.has(dep))
94
- return;
95
- visitedFiles.add(dep);
96
- const subPath = Array.from(path);
97
- subPath.push(dep);
98
- if (scriptPath == dep) {
99
- console.log("Circular dependency found!", subPath.join(" -> "));
100
- recursions++;
101
- }
102
- if (!depMap[dep])
103
- return;
104
- findRecursion(scriptPath, subPath, depMap[dep], visitedFiles);
105
- });
106
- }
107
- // Find ts files
108
- readDir(basePath);
109
- // Build depMap
110
- scripts.forEach(readScript);
111
- // Find recursions
112
- Object.keys(depMap).forEach(scriptPath => findRecursion(scriptPath, [scriptPath], depMap[scriptPath], new Set()));
113
- if (recursions == 0) {
114
- console.log("No circular dependency found!");
115
- }
116
- // fs.writeFileSync(path.join(basePath, "deps.json"), JSON.stringify(depMap, null, 2));
117
- //# sourceMappingURL=circular.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AM,CAAC,GAAG,CAAC,GAAG,qBAAqB,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI,IAAI,GAAG,EAAE,EAAE,YAAY,CAAC,CAAC;QACjH,OAAO,MAAM,CAAC;IAClB,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC;AAClC,CAAC;AAED,SAAgB,WAAW,CAAC,MAAW;IACnC,IAAI,OAAO,MAAM,IAAI,QAAQ,EAAE;QAC3B,IAAI;YACA,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;SAC/B;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,EAAE,CAAC;SACb;KACJ;IACD,OAAO,MAAM,CAAC;AAClB,CAAC;AATD,kCASC;AAED,SAAgB,YAAY,CAAC,MAAW,EAAE,YAAuC;IAC7E,YAAY,GAAG,YAAY,IAAI,EAAE,CAAC;IAClC,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;IACjC,OAAO,qBAAqB,CAAC,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,YAAY,CAAC,CAAC;AAC9E,CAAC;AAJD,oCAIC;AAED,kBAAe,YAAY,CAAC"}
package/tools/icons.js DELETED
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const fs = require("fs");
4
- const path = require("path");
5
- const args = process.argv.slice(2);
6
- const svgPath = args[0];
7
- const files = fs.readdirSync(svgPath);
8
- const icons = {};
9
- files.forEach(file => {
10
- const content = fs.readFileSync(path.join(svgPath, file));
11
- icons[file.replace(".svg", "")] = content.toString().replace(/\r?\n|\r/g, "");
12
- });
13
- fs.writeFileSync(args[1], "icons = " + JSON.stringify(icons) + ";");
14
- //# sourceMappingURL=icons.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"icons.js","sourceRoot":"","sources":["../../tools/icons.ts"],"names":[],"mappings":";;AAAA,yBAAyB;AACzB,6BAA6B;AAE7B,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACnC,MAAM,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;AACxB,MAAM,KAAK,GAAG,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;AACtC,MAAM,KAAK,GAAG,EAAE,CAAC;AACjB,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;IACjB,MAAM,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;IAC1D,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;AAClF,CAAC,CAAC,CAAC;AACH,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC"}