@stemy/ngx-utils 13.6.12 → 13.6.14

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 (116) hide show
  1. package/assets/ng.mjs +5 -0
  2. package/esm2020/ngx-utils/common-types.mjs +2 -1
  3. package/esm2020/ngx-utils/services/base-http.service.mjs +2 -2
  4. package/esm2020/ngx-utils/utils/cached-factory.mjs +16 -7
  5. package/esm2020/ngx-utils/utils/with-options-provider.mjs +24 -0
  6. package/esm2020/public_api.mjs +3 -2
  7. package/fesm2015/stemy-ngx-utils.mjs +35 -7
  8. package/fesm2015/stemy-ngx-utils.mjs.map +1 -1
  9. package/fesm2020/stemy-ngx-utils.mjs +39 -7
  10. package/fesm2020/stemy-ngx-utils.mjs.map +1 -1
  11. package/ngx-utils/common-types.d.ts +10 -0
  12. package/ngx-utils/utils/cached-factory.d.ts +2 -3
  13. package/ngx-utils/utils/with-options-provider.d.ts +3 -0
  14. package/package.json +1 -1
  15. package/public_api.d.ts +3 -2
  16. package/bundles/stemy-ngx-utils.umd.js +0 -6380
  17. package/bundles/stemy-ngx-utils.umd.js.map +0 -1
  18. package/esm2015/ngx-utils/common-types.js +0 -121
  19. package/esm2015/ngx-utils/components/dynamic-table/dynamic-table.component.js +0 -139
  20. package/esm2015/ngx-utils/components/pagination-menu/pagination-menu.component.js +0 -96
  21. package/esm2015/ngx-utils/components/unordered-list/unordered-list.component.js +0 -51
  22. package/esm2015/ngx-utils/directives/async-method.base.js +0 -66
  23. package/esm2015/ngx-utils/directives/async-method.directive.js +0 -17
  24. package/esm2015/ngx-utils/directives/background.directive.js +0 -51
  25. package/esm2015/ngx-utils/directives/dynamic-table-template.directive.js +0 -19
  26. package/esm2015/ngx-utils/directives/global-template.directive.js +0 -27
  27. package/esm2015/ngx-utils/directives/icon.directive.js +0 -59
  28. package/esm2015/ngx-utils/directives/ngx-template-outlet.directive.js +0 -88
  29. package/esm2015/ngx-utils/directives/pagination-item.directive.js +0 -33
  30. package/esm2015/ngx-utils/directives/pagination.directive.js +0 -76
  31. package/esm2015/ngx-utils/directives/resource-if.directive.js +0 -51
  32. package/esm2015/ngx-utils/directives/sticky-class.directive.js +0 -35
  33. package/esm2015/ngx-utils/directives/sticky.directive.js +0 -48
  34. package/esm2015/ngx-utils/directives/unordered-list-item.directive.js +0 -70
  35. package/esm2015/ngx-utils/directives/unordered-list-template.directive.js +0 -26
  36. package/esm2015/ngx-utils/ngx-utils.module.js +0 -246
  37. package/esm2015/ngx-utils/pipes/chunk.pipe.js +0 -21
  38. package/esm2015/ngx-utils/pipes/entries.pipe.js +0 -24
  39. package/esm2015/ngx-utils/pipes/extra-item-properties.pipe.js +0 -27
  40. package/esm2015/ngx-utils/pipes/filter.pipe.js +0 -33
  41. package/esm2015/ngx-utils/pipes/find.pipe.js +0 -25
  42. package/esm2015/ngx-utils/pipes/format-number.pipe.js +0 -19
  43. package/esm2015/ngx-utils/pipes/get-offset.pipe.js +0 -13
  44. package/esm2015/ngx-utils/pipes/get-type.pipe.js +0 -12
  45. package/esm2015/ngx-utils/pipes/global-template.pipe.js +0 -37
  46. package/esm2015/ngx-utils/pipes/group-by.pipe.js +0 -23
  47. package/esm2015/ngx-utils/pipes/is-type.pipe.js +0 -12
  48. package/esm2015/ngx-utils/pipes/join.pipe.js +0 -15
  49. package/esm2015/ngx-utils/pipes/keys.pipe.js +0 -18
  50. package/esm2015/ngx-utils/pipes/map.pipe.js +0 -25
  51. package/esm2015/ngx-utils/pipes/max.pipe.js +0 -22
  52. package/esm2015/ngx-utils/pipes/min.pipe.js +0 -22
  53. package/esm2015/ngx-utils/pipes/pop.pipe.js +0 -12
  54. package/esm2015/ngx-utils/pipes/reduce.pipe.js +0 -26
  55. package/esm2015/ngx-utils/pipes/remap.pipe.js +0 -28
  56. package/esm2015/ngx-utils/pipes/replace.pipe.js +0 -13
  57. package/esm2015/ngx-utils/pipes/reverse.pipe.js +0 -20
  58. package/esm2015/ngx-utils/pipes/round.pipe.js +0 -19
  59. package/esm2015/ngx-utils/pipes/safe-html.pipe.js +0 -32
  60. package/esm2015/ngx-utils/pipes/shift.pipe.js +0 -12
  61. package/esm2015/ngx-utils/pipes/split.pipe.js +0 -12
  62. package/esm2015/ngx-utils/pipes/translate.pipe.js +0 -81
  63. package/esm2015/ngx-utils/pipes/values.pipe.js +0 -18
  64. package/esm2015/ngx-utils/plugins/resize-event.plugin.js +0 -56
  65. package/esm2015/ngx-utils/plugins/scroll-event.plugin.js +0 -36
  66. package/esm2015/ngx-utils/services/acl.service.js +0 -81
  67. package/esm2015/ngx-utils/services/api.service.js +0 -39
  68. package/esm2015/ngx-utils/services/auth.service.js +0 -14
  69. package/esm2015/ngx-utils/services/base-http.client.js +0 -46
  70. package/esm2015/ngx-utils/services/base-http.service.js +0 -284
  71. package/esm2015/ngx-utils/services/config.service.js +0 -137
  72. package/esm2015/ngx-utils/services/error-handler.service.js +0 -49
  73. package/esm2015/ngx-utils/services/events.service.js +0 -24
  74. package/esm2015/ngx-utils/services/formatter.service.js +0 -46
  75. package/esm2015/ngx-utils/services/global-template.service.js +0 -35
  76. package/esm2015/ngx-utils/services/icon.service.js +0 -24
  77. package/esm2015/ngx-utils/services/language.service.js +0 -129
  78. package/esm2015/ngx-utils/services/open-api.service.js +0 -41
  79. package/esm2015/ngx-utils/services/promise.service.js +0 -52
  80. package/esm2015/ngx-utils/services/state.service.js +0 -181
  81. package/esm2015/ngx-utils/services/static-language.service.js +0 -152
  82. package/esm2015/ngx-utils/services/storage.service.js +0 -48
  83. package/esm2015/ngx-utils/services/toaster.service.js +0 -29
  84. package/esm2015/ngx-utils/services/translated-url.serializer.js +0 -70
  85. package/esm2015/ngx-utils/services/universal.service.js +0 -78
  86. package/esm2015/ngx-utils/utils/ajax-request-handler.js +0 -40
  87. package/esm2015/ngx-utils/utils/array.utils.js +0 -107
  88. package/esm2015/ngx-utils/utils/auth.guard.js +0 -156
  89. package/esm2015/ngx-utils/utils/canvas.utils.js +0 -388
  90. package/esm2015/ngx-utils/utils/date.utils.js +0 -29
  91. package/esm2015/ngx-utils/utils/file-system.js +0 -25
  92. package/esm2015/ngx-utils/utils/file.utils.js +0 -90
  93. package/esm2015/ngx-utils/utils/generic-value.js +0 -20
  94. package/esm2015/ngx-utils/utils/geometry.js +0 -132
  95. package/esm2015/ngx-utils/utils/initializer.js +0 -20
  96. package/esm2015/ngx-utils/utils/loader.utils.js +0 -55
  97. package/esm2015/ngx-utils/utils/math.utils.js +0 -45
  98. package/esm2015/ngx-utils/utils/object.utils.js +0 -320
  99. package/esm2015/ngx-utils/utils/observable.utils.js +0 -63
  100. package/esm2015/ngx-utils/utils/reflect.utils.js +0 -33
  101. package/esm2015/ngx-utils/utils/set.utils.js +0 -20
  102. package/esm2015/ngx-utils/utils/string.utils.js +0 -28
  103. package/esm2015/ngx-utils/utils/timer.utils.js +0 -52
  104. package/esm2015/ngx-utils/utils/unique.utils.js +0 -24
  105. package/esm2015/ngx-utils/utils/vector.js +0 -77
  106. package/esm2015/public_api.js +0 -89
  107. package/esm2015/stemy-ngx-utils.js +0 -7
  108. package/fesm2015/stemy-ngx-utils.js +0 -5060
  109. package/fesm2015/stemy-ngx-utils.js.map +0 -1
  110. package/stemy-ngx-utils.metadata.json +0 -1
  111. package/tools/circular.js +0 -117
  112. package/tools/circular.js.map +0 -1
  113. package/tools/config.js +0 -79
  114. package/tools/config.js.map +0 -1
  115. package/tools/icons.js +0 -14
  116. package/tools/icons.js.map +0 -1
@@ -2,6 +2,16 @@ import { EventEmitter, InjectionToken, Injector, NgZone, Provider, TemplateRef,
2
2
  import { HttpClient, HttpErrorResponse, HttpHeaders } from "@angular/common/http";
3
3
  import { ActivatedRouteSnapshot, Data, Route, UrlTree } from "@angular/router";
4
4
  import { Request } from "express";
5
+ export interface TypedFactoryProvider<T> {
6
+ useFactory: (...args: any[]) => T;
7
+ deps: any[];
8
+ }
9
+ export interface TypedValueProvider<T> {
10
+ useValue: T;
11
+ }
12
+ export declare type CachedProvider<T> = Type<T> | TypedFactoryProvider<T> | TypedValueProvider<T>;
13
+ export declare type CachedFactory<T> = (injector: Injector) => ReadonlyArray<T>;
14
+ export declare const OPTIONS_TOKEN: InjectionToken<unknown>;
5
15
  export interface IResolveFactory {
6
16
  func: Function;
7
17
  type?: any;
@@ -1,3 +1,2 @@
1
- import { Injector, Type } from "@angular/core";
2
- export declare type CachedFactory<T> = (injector: Injector) => ReadonlyArray<T>;
3
- export declare function cachedFactory<T>(types: ReadonlyArray<Type<T>>): CachedFactory<T>;
1
+ import { CachedFactory, CachedProvider } from "../common-types";
2
+ export declare function cachedFactory<T>(providers: CachedProvider<T>[]): CachedFactory<T>;
@@ -0,0 +1,3 @@
1
+ import { Type } from "@angular/core";
2
+ import { TypedFactoryProvider } from "../common-types";
3
+ export declare function provideWithOptions<O extends Object, T = any>(type: Type<T>, options: O): TypedFactoryProvider<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stemy/ngx-utils",
3
- "version": "13.6.12",
3
+ "version": "13.6.14",
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,8 +1,8 @@
1
- export { IResolveFactory, CanvasColor, IIconService, ICON_SERVICE, ITranslation, ITranslations, ILanguageSetting, ILanguageSettings, ILanguageService, LANGUAGE_SERVICE, IAuthService, RouteValidator, IRouteData, IRoute, AUTH_SERVICE, IAclComponent, IPromiseService, PROMISE_SERVICE, IWasi, IWasmExports, IWasm, IWasmAsync, WASI_IMPLEMENTATION, IRouteStateInfo, NavigationUrlParam, StorageMode, IToasterService, TOASTER_SERVICE, IAsyncMessage, AsyncMethod, UnorderedListTemplate, UnorderedListTemplates, UnorderedListStyle, IAjaxRequestDetails, AjaxRequestCallback, ScriptType, IScriptPromises, IStylePromises, ISearchObservable, FactoryDependencies, ObjectType, 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, ITableOrders, ITableColumn, ITableColumns, ITableTemplate, ITableTemplates, ITableDataQuery, TableDataLoader, ResourceIfContext, APP_BASE_URL, IConfiguration, IConfigService, CONFIG_SERVICE, BASE_CONFIG, SCRIPT_PARAMS, ROOT_ELEMENT, RESIZE_DELAY, ResizeEventStrategy, RESIZE_STRATEGY, ErrorHandlerCallback, ERROR_HANDLER, GlobalComponentModifier, IGlobalTemplates, GLOBAL_TEMPLATES, AppInitializerFunc, IModuleConfig, ValuedPromise } from "./ngx-utils/common-types";
1
+ export { TypedFactoryProvider, TypedValueProvider, CachedProvider, CachedFactory, OPTIONS_TOKEN, IResolveFactory, CanvasColor, IIconService, ICON_SERVICE, ITranslation, ITranslations, ILanguageSetting, ILanguageSettings, ILanguageService, LANGUAGE_SERVICE, IAuthService, RouteValidator, IRouteData, IRoute, AUTH_SERVICE, IAclComponent, IPromiseService, PROMISE_SERVICE, IWasi, IWasmExports, IWasm, IWasmAsync, WASI_IMPLEMENTATION, IRouteStateInfo, NavigationUrlParam, StorageMode, IToasterService, TOASTER_SERVICE, IAsyncMessage, AsyncMethod, UnorderedListTemplate, UnorderedListTemplates, UnorderedListStyle, IAjaxRequestDetails, AjaxRequestCallback, ScriptType, IScriptPromises, IStylePromises, ISearchObservable, FactoryDependencies, ObjectType, 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, ITableOrders, ITableColumn, ITableColumns, ITableTemplate, ITableTemplates, ITableDataQuery, TableDataLoader, ResourceIfContext, APP_BASE_URL, IConfiguration, IConfigService, CONFIG_SERVICE, BASE_CONFIG, SCRIPT_PARAMS, ROOT_ELEMENT, RESIZE_DELAY, ResizeEventStrategy, RESIZE_STRATEGY, 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 { ArrayUtils } from "./ngx-utils/utils/array.utils";
4
4
  export { AuthGuard } from "./ngx-utils/utils/auth.guard";
5
- export { CachedFactory, cachedFactory } from "./ngx-utils/utils/cached-factory";
5
+ export { cachedFactory } from "./ngx-utils/utils/cached-factory";
6
6
  export { CanvasUtils } from "./ngx-utils/utils/canvas.utils";
7
7
  export { DateUtils } from "./ngx-utils/utils/date.utils";
8
8
  export { FileUtils } from "./ngx-utils/utils/file.utils";
@@ -21,6 +21,7 @@ export { SetUtils } from "./ngx-utils/utils/set.utils";
21
21
  export { TimerUtils } from "./ngx-utils/utils/timer.utils";
22
22
  export { UniqueUtils } from "./ngx-utils/utils/unique.utils";
23
23
  export { Vector } from "./ngx-utils/utils/vector";
24
+ export { provideWithOptions } from "./ngx-utils/utils/with-options-provider";
24
25
  export { UniversalService } from "./ngx-utils/services/universal.service";
25
26
  export { WasmService } from "./ngx-utils/services/wasm.service";
26
27
  export { AclService } from "./ngx-utils/services/acl.service";