@stemy/ngx-utils 12.2.11 → 12.2.13

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.
Files changed (90) hide show
  1. package/bundles/stemy-ngx-utils.umd.js +44 -18
  2. package/bundles/stemy-ngx-utils.umd.js.map +1 -1
  3. package/esm2015/ngx-utils/common-types.js +1 -1
  4. package/esm2015/ngx-utils/services/config.service.js +14 -1
  5. package/esm2015/ngx-utils/services/language.service.js +16 -4
  6. package/esm2015/public_api.js +1 -1
  7. package/esm2020/ngx-utils/common-types.mjs +2 -1
  8. package/esm2020/ngx-utils/components/dynamic-table/dynamic-table.component.mjs +3 -3
  9. package/esm2020/ngx-utils/components/pagination-menu/pagination-menu.component.mjs +3 -3
  10. package/esm2020/ngx-utils/components/unordered-list/unordered-list.component.mjs +3 -3
  11. package/esm2020/ngx-utils/directives/async-method.base.mjs +3 -3
  12. package/esm2020/ngx-utils/directives/async-method.directive.mjs +3 -3
  13. package/esm2020/ngx-utils/directives/background.directive.mjs +3 -3
  14. package/esm2020/ngx-utils/directives/dynamic-table-template.directive.mjs +3 -3
  15. package/esm2020/ngx-utils/directives/global-template.directive.mjs +3 -3
  16. package/esm2020/ngx-utils/directives/icon.directive.mjs +3 -3
  17. package/esm2020/ngx-utils/directives/ngx-template-outlet.directive.mjs +3 -3
  18. package/esm2020/ngx-utils/directives/pagination-item.directive.mjs +3 -3
  19. package/esm2020/ngx-utils/directives/pagination.directive.mjs +3 -3
  20. package/esm2020/ngx-utils/directives/resource-if.directive.mjs +3 -3
  21. package/esm2020/ngx-utils/directives/sticky-class.directive.mjs +3 -3
  22. package/esm2020/ngx-utils/directives/sticky.directive.mjs +3 -3
  23. package/esm2020/ngx-utils/directives/unordered-list-item.directive.mjs +3 -3
  24. package/esm2020/ngx-utils/directives/unordered-list-template.directive.mjs +3 -3
  25. package/esm2020/ngx-utils/ngx-utils.module.mjs +10 -6
  26. package/esm2020/ngx-utils/pipes/chunk.pipe.mjs +3 -3
  27. package/esm2020/ngx-utils/pipes/entries.pipe.mjs +3 -3
  28. package/esm2020/ngx-utils/pipes/extra-item-properties.pipe.mjs +3 -3
  29. package/esm2020/ngx-utils/pipes/filter.pipe.mjs +3 -3
  30. package/esm2020/ngx-utils/pipes/find.pipe.mjs +3 -3
  31. package/esm2020/ngx-utils/pipes/format-number.pipe.mjs +3 -3
  32. package/esm2020/ngx-utils/pipes/get-offset.pipe.mjs +3 -3
  33. package/esm2020/ngx-utils/pipes/get-type.pipe.mjs +3 -3
  34. package/esm2020/ngx-utils/pipes/global-template.pipe.mjs +3 -3
  35. package/esm2020/ngx-utils/pipes/group-by.pipe.mjs +3 -3
  36. package/esm2020/ngx-utils/pipes/is-type.pipe.mjs +3 -3
  37. package/esm2020/ngx-utils/pipes/join.pipe.mjs +3 -3
  38. package/esm2020/ngx-utils/pipes/keys.pipe.mjs +3 -3
  39. package/esm2020/ngx-utils/pipes/map.pipe.mjs +3 -3
  40. package/esm2020/ngx-utils/pipes/max.pipe.mjs +3 -3
  41. package/esm2020/ngx-utils/pipes/min.pipe.mjs +3 -3
  42. package/esm2020/ngx-utils/pipes/pop.pipe.mjs +3 -3
  43. package/esm2020/ngx-utils/pipes/reduce.pipe.mjs +3 -3
  44. package/esm2020/ngx-utils/pipes/remap.pipe.mjs +3 -3
  45. package/esm2020/ngx-utils/pipes/replace.pipe.mjs +3 -3
  46. package/esm2020/ngx-utils/pipes/reverse.pipe.mjs +3 -3
  47. package/esm2020/ngx-utils/pipes/round.pipe.mjs +3 -3
  48. package/esm2020/ngx-utils/pipes/safe-html.pipe.mjs +3 -3
  49. package/esm2020/ngx-utils/pipes/shift.pipe.mjs +3 -3
  50. package/esm2020/ngx-utils/pipes/split.pipe.mjs +3 -3
  51. package/esm2020/ngx-utils/pipes/translate.pipe.mjs +4 -4
  52. package/esm2020/ngx-utils/pipes/values.pipe.mjs +3 -3
  53. package/esm2020/ngx-utils/plugins/resize-event.plugin.mjs +24 -9
  54. package/esm2020/ngx-utils/plugins/scroll-event.plugin.mjs +3 -3
  55. package/esm2020/ngx-utils/services/acl.service.mjs +3 -3
  56. package/esm2020/ngx-utils/services/api.service.mjs +3 -3
  57. package/esm2020/ngx-utils/services/base-http.client.mjs +3 -3
  58. package/esm2020/ngx-utils/services/base-http.service.mjs +3 -3
  59. package/esm2020/ngx-utils/services/config.service.mjs +3 -3
  60. package/esm2020/ngx-utils/services/error-handler.service.mjs +3 -3
  61. package/esm2020/ngx-utils/services/events.service.mjs +3 -3
  62. package/esm2020/ngx-utils/services/formatter.service.mjs +7 -6
  63. package/esm2020/ngx-utils/services/global-template.service.mjs +3 -3
  64. package/esm2020/ngx-utils/services/icon.service.mjs +3 -3
  65. package/esm2020/ngx-utils/services/language.service.mjs +3 -3
  66. package/esm2020/ngx-utils/services/local-http.service.mjs +3 -3
  67. package/esm2020/ngx-utils/services/open-api.service.mjs +3 -3
  68. package/esm2020/ngx-utils/services/promise.service.mjs +3 -3
  69. package/esm2020/ngx-utils/services/state.service.mjs +3 -3
  70. package/esm2020/ngx-utils/services/static-language.service.mjs +3 -3
  71. package/esm2020/ngx-utils/services/storage.service.mjs +3 -3
  72. package/esm2020/ngx-utils/services/toaster.service.mjs +3 -3
  73. package/esm2020/ngx-utils/services/translated-url.serializer.mjs +3 -3
  74. package/esm2020/ngx-utils/services/universal.service.mjs +3 -3
  75. package/esm2020/ngx-utils/services/wasm.service.mjs +3 -3
  76. package/esm2020/ngx-utils/utils/auth.guard.mjs +3 -3
  77. package/esm2020/ngx-utils/utils/wasi.mjs +3 -3
  78. package/esm2020/public_api.mjs +2 -2
  79. package/fesm2015/stemy-ngx-utils.js +28 -3
  80. package/fesm2015/stemy-ngx-utils.js.map +1 -1
  81. package/fesm2015/stemy-ngx-utils.mjs +240 -220
  82. package/fesm2015/stemy-ngx-utils.mjs.map +1 -1
  83. package/fesm2020/stemy-ngx-utils.mjs +239 -220
  84. package/fesm2020/stemy-ngx-utils.mjs.map +1 -1
  85. package/ngx-utils/common-types.d.ts +9 -1
  86. package/ngx-utils/services/config.service.d.ts +1 -0
  87. package/ngx-utils/services/language.service.d.ts +3 -3
  88. package/package.json +1 -1
  89. package/public_api.d.ts +1 -1
  90. package/stemy-ngx-utils.metadata.json +1 -1
@@ -27,11 +27,17 @@ export interface ITranslation {
27
27
  export interface ITranslations {
28
28
  [key: string]: any;
29
29
  }
30
+ export interface ILanguageSetting {
31
+ unavailable?: string;
32
+ [key: string]: string | boolean | number;
33
+ }
30
34
  export interface ILanguageSettings {
31
35
  languages: string[];
32
36
  devLanguages: string[];
33
37
  defaultLanguage: string;
34
- settings?: any;
38
+ settings?: {
39
+ [lang: string]: ILanguageSetting;
40
+ };
35
41
  }
36
42
  export interface ILanguageService {
37
43
  currentLanguage: string;
@@ -268,6 +274,8 @@ export declare class IConfiguration {
268
274
  export interface IConfigService {
269
275
  config: IConfiguration;
270
276
  readonly load: () => Promise<IConfiguration>;
277
+ readonly rootElement: any;
278
+ cloneRootElem(): any;
271
279
  prepareUrl(url: string, ending: string): string;
272
280
  getConfigValue(key: string): any;
273
281
  getQueryParameter(name: string, url?: string): string;
@@ -20,6 +20,7 @@ export declare class ConfigService implements IConfigService {
20
20
  protected initService(): void;
21
21
  protected loadJson(): Promise<IConfiguration>;
22
22
  protected prepareConfig(config: IConfiguration): Promise<IConfiguration>;
23
+ cloneRootElem(): any;
23
24
  prepareUrl(url: string, ending: string): string;
24
25
  getConfigValue(key: string): any;
25
26
  getQueryParameter(name: string, url?: string): string;
@@ -1,5 +1,5 @@
1
1
  import { BehaviorSubject, Observable } from "rxjs";
2
- import { ILanguageSettings, ITranslations } from "../common-types";
2
+ import { ILanguageSetting, ILanguageSettings, ITranslations } from "../common-types";
3
3
  import { StaticLanguageService } from "./static-language.service";
4
4
  export declare class LanguageService extends StaticLanguageService {
5
5
  protected translationRequests: ITranslations;
@@ -7,8 +7,8 @@ export declare class LanguageService extends StaticLanguageService {
7
7
  protected languageSettings: BehaviorSubject<ILanguageSettings>;
8
8
  get currentLanguage(): string;
9
9
  set currentLanguage(lang: string);
10
- get settings(): ILanguageSettings;
11
- get $settings(): Observable<any>;
10
+ get settings(): ILanguageSetting;
11
+ get $settings(): Observable<ILanguageSetting>;
12
12
  protected initService(): void;
13
13
  initFromSettings(): Promise<any>;
14
14
  getTranslation(key: string, params?: any): Promise<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stemy/ngx-utils",
3
- "version": "12.2.11",
3
+ "version": "12.2.13",
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, ILanguageSetting, 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";
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";