@acorex/core 7.0.41 → 7.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.
Files changed (170) hide show
  1. package/config/index.d.ts +5 -5
  2. package/config/public-api.d.ts +1 -1
  3. package/config/src/configs.d.ts +9 -9
  4. package/dateTime/index.d.ts +5 -5
  5. package/dateTime/public-api.d.ts +5 -5
  6. package/dateTime/src/datetime.class.d.ts +100 -100
  7. package/dateTime/src/datetime.module.d.ts +8 -8
  8. package/dateTime/src/datetime.pipe.d.ts +8 -8
  9. package/dateTime/src/georgian.calendar.d.ts +20 -20
  10. package/dateTime/src/jalali.calendar.d.ts +35 -35
  11. package/{esm2020 → esm2022}/acorex-core.mjs +4 -4
  12. package/{esm2020 → esm2022}/config/acorex-core-config.mjs +4 -4
  13. package/{esm2020 → esm2022}/config/public-api.mjs +1 -1
  14. package/esm2022/config/src/configs.mjs +25 -0
  15. package/{esm2020 → esm2022}/dateTime/acorex-core-dateTime.mjs +4 -4
  16. package/{esm2020 → esm2022}/dateTime/public-api.mjs +5 -5
  17. package/esm2022/dateTime/src/datetime.class.mjs +295 -0
  18. package/esm2022/dateTime/src/datetime.module.mjs +40 -0
  19. package/esm2022/dateTime/src/datetime.pipe.mjs +27 -0
  20. package/esm2022/dateTime/src/georgian.calendar.mjs +187 -0
  21. package/esm2022/dateTime/src/jalali.calendar.mjs +357 -0
  22. package/{esm2020 → esm2022}/events/acorex-core-events.mjs +4 -4
  23. package/{esm2020 → esm2022}/events/public-api.mjs +1 -1
  24. package/esm2022/events/src/event.service.mjs +35 -0
  25. package/{esm2020 → esm2022}/file/acorex-core-file.mjs +4 -4
  26. package/{esm2020 → esm2022}/file/public-api.mjs +4 -4
  27. package/esm2022/file/src/file-download-ref.class.mjs +13 -0
  28. package/esm2022/file/src/file-download-result.class.mjs +47 -0
  29. package/esm2022/file/src/file-upload-ref.class.mjs +13 -0
  30. package/esm2022/file/src/file.service.mjs +103 -0
  31. package/{esm2020 → esm2022}/http/acorex-core-http.mjs +4 -4
  32. package/{esm2020 → esm2022}/http/public-api.mjs +5 -5
  33. package/{esm2020 → esm2022}/http/src/http-error.class.mjs +1 -1
  34. package/{esm2020 → esm2022}/http/src/http-events.interceptor.mjs +2 -2
  35. package/{esm2020 → esm2022}/http/src/http-request.class.mjs +1 -1
  36. package/esm2022/http/src/http-result.class.mjs +25 -0
  37. package/esm2022/http/src/http.module.mjs +30 -0
  38. package/esm2022/http/src/http.service.mjs +152 -0
  39. package/{esm2020 → esm2022}/image/acorex-core-image.mjs +4 -4
  40. package/{esm2020 → esm2022}/image/public-api.mjs +1 -1
  41. package/esm2022/image/src/image.service.mjs +44 -0
  42. package/{esm2020 → esm2022}/pipes/acorex-core-pipes.mjs +4 -4
  43. package/{esm2020 → esm2022}/pipes/public-api.mjs +2 -2
  44. package/esm2022/pipes/src/pipes.module.mjs +20 -0
  45. package/{esm2020 → esm2022}/pipes/src/safe.pipe.mjs +32 -30
  46. package/{esm2020 → esm2022}/platform/acorex-core-platform.mjs +4 -4
  47. package/{esm2020 → esm2022}/platform/public-api.mjs +1 -1
  48. package/esm2022/platform/src/platform.service.mjs +152 -0
  49. package/{esm2020 → esm2022}/public-api.mjs +4 -4
  50. package/{esm2020 → esm2022}/translation/acorex-core-translation.mjs +4 -4
  51. package/{esm2020 → esm2022}/translation/public-api.mjs +3 -3
  52. package/esm2022/translation/src/translation.module.mjs +19 -0
  53. package/esm2022/translation/src/translator.mjs +44 -0
  54. package/esm2022/translation/src/translator.pipe.mjs +16 -0
  55. package/{esm2020 → esm2022}/utils/acorex-core-utils.mjs +4 -4
  56. package/{esm2020 → esm2022}/utils/public-api.mjs +5 -5
  57. package/{esm2020 → esm2022}/utils/src/color-util.mjs +114 -114
  58. package/{esm2020 → esm2022}/utils/src/drawing-util.mjs +29 -29
  59. package/{esm2020 → esm2022}/utils/src/html-util.mjs +15 -15
  60. package/{esm2020 → esm2022}/utils/src/object-util.mjs +38 -38
  61. package/{esm2020 → esm2022}/utils/src/string-util.mjs +18 -18
  62. package/events/index.d.ts +5 -5
  63. package/events/public-api.d.ts +1 -1
  64. package/events/src/event.service.d.ts +9 -9
  65. package/{fesm2015 → fesm2022}/acorex-core-config.mjs +23 -24
  66. package/{fesm2015 → fesm2022}/acorex-core-config.mjs.map +1 -1
  67. package/{fesm2015 → fesm2022}/acorex-core-dateTime.mjs +882 -880
  68. package/{fesm2020 → fesm2022}/acorex-core-dateTime.mjs.map +1 -1
  69. package/{fesm2020 → fesm2022}/acorex-core-events.mjs +32 -35
  70. package/fesm2022/acorex-core-events.mjs.map +1 -0
  71. package/{fesm2020 → fesm2022}/acorex-core-file.mjs +162 -159
  72. package/{fesm2020 → fesm2022}/acorex-core-file.mjs.map +1 -1
  73. package/{fesm2020 → fesm2022}/acorex-core-http.mjs +190 -184
  74. package/{fesm2020 → fesm2022}/acorex-core-http.mjs.map +1 -1
  75. package/{fesm2020 → fesm2022}/acorex-core-image.mjs +41 -42
  76. package/{fesm2020 → fesm2022}/acorex-core-image.mjs.map +1 -1
  77. package/{fesm2015 → fesm2022}/acorex-core-pipes.mjs +41 -41
  78. package/fesm2022/acorex-core-pipes.mjs.map +1 -0
  79. package/{fesm2020 → fesm2022}/acorex-core-platform.mjs +147 -154
  80. package/fesm2022/acorex-core-platform.mjs.map +1 -0
  81. package/{fesm2020 → fesm2022}/acorex-core-translation.mjs +64 -65
  82. package/{fesm2020 → fesm2022}/acorex-core-translation.mjs.map +1 -1
  83. package/{fesm2020 → fesm2022}/acorex-core-utils.mjs +209 -210
  84. package/{fesm2015 → fesm2022}/acorex-core.mjs +5 -6
  85. package/file/index.d.ts +5 -5
  86. package/file/public-api.d.ts +4 -4
  87. package/file/src/file-download-ref.class.d.ts +6 -6
  88. package/file/src/file-download-result.class.d.ts +8 -8
  89. package/file/src/file-upload-ref.class.d.ts +5 -5
  90. package/file/src/file.service.d.ts +18 -18
  91. package/http/index.d.ts +5 -5
  92. package/http/public-api.d.ts +5 -5
  93. package/http/src/http-error.class.d.ts +7 -7
  94. package/http/src/http-events.interceptor.d.ts +10 -10
  95. package/http/src/http-request.class.d.ts +14 -14
  96. package/http/src/http-result.class.d.ts +11 -11
  97. package/http/src/http.module.d.ts +8 -8
  98. package/http/src/http.service.d.ts +23 -23
  99. package/image/index.d.ts +5 -5
  100. package/image/public-api.d.ts +1 -1
  101. package/image/src/image.service.d.ts +12 -12
  102. package/index.d.ts +5 -5
  103. package/package.json +39 -65
  104. package/pipes/index.d.ts +5 -5
  105. package/pipes/public-api.d.ts +2 -2
  106. package/pipes/src/pipes.module.d.ts +8 -8
  107. package/pipes/src/safe.pipe.d.ts +10 -10
  108. package/platform/index.d.ts +5 -5
  109. package/platform/public-api.d.ts +1 -1
  110. package/platform/src/platform.service.d.ts +26 -26
  111. package/public-api.d.ts +1 -1
  112. package/translation/index.d.ts +5 -5
  113. package/translation/public-api.d.ts +3 -3
  114. package/translation/src/translation.module.d.ts +7 -7
  115. package/translation/src/translator.d.ts +11 -11
  116. package/translation/src/translator.pipe.d.ts +7 -7
  117. package/utils/index.d.ts +5 -5
  118. package/utils/public-api.d.ts +5 -5
  119. package/utils/src/color-util.d.ts +23 -23
  120. package/utils/src/drawing-util.d.ts +18 -18
  121. package/utils/src/html-util.d.ts +4 -4
  122. package/utils/src/object-util.d.ts +4 -4
  123. package/utils/src/string-util.d.ts +6 -6
  124. package/esm2020/config/src/configs.mjs +0 -24
  125. package/esm2020/dateTime/src/datetime.class.mjs +0 -288
  126. package/esm2020/dateTime/src/datetime.module.mjs +0 -39
  127. package/esm2020/dateTime/src/datetime.pipe.mjs +0 -26
  128. package/esm2020/dateTime/src/georgian.calendar.mjs +0 -189
  129. package/esm2020/dateTime/src/jalali.calendar.mjs +0 -359
  130. package/esm2020/events/src/event.service.mjs +0 -36
  131. package/esm2020/file/src/file-download-ref.class.mjs +0 -12
  132. package/esm2020/file/src/file-download-result.class.mjs +0 -46
  133. package/esm2020/file/src/file-upload-ref.class.mjs +0 -12
  134. package/esm2020/file/src/file.service.mjs +0 -101
  135. package/esm2020/http/src/http-result.class.mjs +0 -21
  136. package/esm2020/http/src/http.module.mjs +0 -29
  137. package/esm2020/http/src/http.service.mjs +0 -148
  138. package/esm2020/image/src/image.service.mjs +0 -43
  139. package/esm2020/pipes/src/pipes.module.mjs +0 -19
  140. package/esm2020/platform/src/platform.service.mjs +0 -157
  141. package/esm2020/translation/src/translation.module.mjs +0 -18
  142. package/esm2020/translation/src/translator.mjs +0 -43
  143. package/esm2020/translation/src/translator.pipe.mjs +0 -15
  144. package/fesm2015/acorex-core-dateTime.mjs.map +0 -1
  145. package/fesm2015/acorex-core-events.mjs +0 -44
  146. package/fesm2015/acorex-core-events.mjs.map +0 -1
  147. package/fesm2015/acorex-core-file.mjs +0 -176
  148. package/fesm2015/acorex-core-file.mjs.map +0 -1
  149. package/fesm2015/acorex-core-http.mjs +0 -203
  150. package/fesm2015/acorex-core-http.mjs.map +0 -1
  151. package/fesm2015/acorex-core-image.mjs +0 -54
  152. package/fesm2015/acorex-core-image.mjs.map +0 -1
  153. package/fesm2015/acorex-core-pipes.mjs.map +0 -1
  154. package/fesm2015/acorex-core-platform.mjs +0 -165
  155. package/fesm2015/acorex-core-platform.mjs.map +0 -1
  156. package/fesm2015/acorex-core-translation.mjs +0 -81
  157. package/fesm2015/acorex-core-translation.mjs.map +0 -1
  158. package/fesm2015/acorex-core-utils.mjs +0 -227
  159. package/fesm2020/acorex-core-config.mjs +0 -32
  160. package/fesm2020/acorex-core-config.mjs.map +0 -1
  161. package/fesm2020/acorex-core-dateTime.mjs +0 -899
  162. package/fesm2020/acorex-core-events.mjs.map +0 -1
  163. package/fesm2020/acorex-core-pipes.mjs +0 -54
  164. package/fesm2020/acorex-core-pipes.mjs.map +0 -1
  165. package/fesm2020/acorex-core-platform.mjs.map +0 -1
  166. package/fesm2020/acorex-core-utils.mjs.map +0 -1
  167. package/fesm2020/acorex-core.mjs +0 -12
  168. package/fesm2020/acorex-core.mjs.map +0 -1
  169. /package/{fesm2015 → fesm2022}/acorex-core-utils.mjs.map +0 -0
  170. /package/{fesm2015 → fesm2022}/acorex-core.mjs.map +0 -0
@@ -1,14 +1,14 @@
1
- export interface AXHttpRequestOptions {
2
- url?: any;
3
- params?: {
4
- [param: string]: any;
5
- };
6
- body?: {
7
- [param: string]: any;
8
- };
9
- headers?: {
10
- [header: string]: any;
11
- };
12
- method?: 'get' | 'post' | 'put' | 'delete';
13
- responseType?: any;
14
- }
1
+ export interface AXHttpRequestOptions {
2
+ url?: any;
3
+ params?: {
4
+ [param: string]: any;
5
+ };
6
+ body?: {
7
+ [param: string]: any;
8
+ };
9
+ headers?: {
10
+ [header: string]: any;
11
+ };
12
+ method?: 'get' | 'post' | 'put' | 'delete';
13
+ responseType?: any;
14
+ }
@@ -1,11 +1,11 @@
1
- import { IHttpError } from './http-error.class';
2
- export declare class HttpResult<T> {
3
- private _executor;
4
- constructor(executor: (result: (e?: T) => void, error: (e?: IHttpError) => void, complete: () => void) => void);
5
- private resultAction;
6
- private errorAction;
7
- private completeAction;
8
- result(action: (e?: T) => void): HttpResult<T>;
9
- error(action: (e?: IHttpError) => void): HttpResult<T>;
10
- complete(action: () => void): HttpResult<T>;
11
- }
1
+ import { IHttpError } from './http-error.class';
2
+ export declare class HttpResult<T> {
3
+ private _executor;
4
+ constructor(executor: (result: (e?: T) => void, error: (e?: IHttpError) => void, complete: () => void) => void);
5
+ private resultAction;
6
+ private errorAction;
7
+ private completeAction;
8
+ result(action: (e?: T) => void): HttpResult<T>;
9
+ error(action: (e?: IHttpError) => void): HttpResult<T>;
10
+ complete(action: () => void): HttpResult<T>;
11
+ }
@@ -1,8 +1,8 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@angular/common";
3
- import * as i2 from "@angular/common/http";
4
- export declare class AXHttpModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<AXHttpModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXHttpModule, never, [typeof i1.CommonModule, typeof i2.HttpClientModule], [typeof i2.HttpClientModule]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<AXHttpModule>;
8
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/common";
3
+ import * as i2 from "@angular/common/http";
4
+ export declare class AXHttpModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXHttpModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXHttpModule, never, [typeof i1.CommonModule, typeof i2.HttpClientModule], [typeof i2.HttpClientModule]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXHttpModule>;
8
+ }
@@ -1,23 +1,23 @@
1
- import { Injector } from '@angular/core';
2
- import { HttpClient } from '@angular/common/http';
3
- import { HttpResult } from './http-result.class';
4
- import { AXHttpRequestOptions } from './http-request.class';
5
- import * as i0 from "@angular/core";
6
- export declare class AXHttpService {
7
- private http;
8
- private injector;
9
- private interceptor;
10
- constructor(http: HttpClient, injector: Injector);
11
- get<T>(url: string, config?: AXHttpRequestOptions): HttpResult<T>;
12
- post<T>(url: string, config?: AXHttpRequestOptions): HttpResult<T>;
13
- delete<T>(url: string, config?: AXHttpRequestOptions): HttpResult<T>;
14
- put<T>(url: string, config?: AXHttpRequestOptions): HttpResult<T>;
15
- request<T>(config: AXHttpRequestOptions): HttpResult<T>;
16
- private handleResult;
17
- private handleBegin;
18
- private handleComplete;
19
- private handleError;
20
- private mapOptions;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<AXHttpService, never>;
22
- static ɵprov: i0.ɵɵInjectableDeclaration<AXHttpService>;
23
- }
1
+ import { Injector } from '@angular/core';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { HttpResult } from './http-result.class';
4
+ import { AXHttpRequestOptions } from './http-request.class';
5
+ import * as i0 from "@angular/core";
6
+ export declare class AXHttpService {
7
+ private http;
8
+ private injector;
9
+ private interceptor;
10
+ constructor(http: HttpClient, injector: Injector);
11
+ get<T>(url: string, config?: AXHttpRequestOptions): HttpResult<T>;
12
+ post<T>(url: string, config?: AXHttpRequestOptions): HttpResult<T>;
13
+ delete<T>(url: string, config?: AXHttpRequestOptions): HttpResult<T>;
14
+ put<T>(url: string, config?: AXHttpRequestOptions): HttpResult<T>;
15
+ request<T>(config: AXHttpRequestOptions): HttpResult<T>;
16
+ private handleResult;
17
+ private handleBegin;
18
+ private handleComplete;
19
+ private handleError;
20
+ private mapOptions;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXHttpService, never>;
22
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXHttpService>;
23
+ }
package/image/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@acorex/core/image" />
5
- export * from './public-api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@acorex/core/image" />
5
+ export * from './public-api';
@@ -1 +1 @@
1
- export * from './src/image.service';
1
+ export * from './src/image.service';
@@ -1,12 +1,12 @@
1
- import * as i0 from "@angular/core";
2
- export declare class AXImageService {
3
- constructor();
4
- resize(options: {
5
- maxSize: number;
6
- source: HTMLImageElement | File;
7
- type?: 'image/png' | 'image/jpeg' | 'image/webp';
8
- quality?: number;
9
- }): Promise<Blob>;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<AXImageService, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<AXImageService>;
12
- }
1
+ import * as i0 from "@angular/core";
2
+ export declare class AXImageService {
3
+ constructor();
4
+ resize(options: {
5
+ maxSize: number;
6
+ source: HTMLImageElement | File;
7
+ type?: 'image/png' | 'image/jpeg' | 'image/webp';
8
+ quality?: number;
9
+ }): Promise<Blob>;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXImageService, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXImageService>;
12
+ }
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@acorex/core" />
5
- export * from './public-api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@acorex/core" />
5
+ export * from './public-api';
package/package.json CHANGED
@@ -1,22 +1,18 @@
1
1
  {
2
2
  "name": "@acorex/core",
3
- "version": "7.0.41",
3
+ "version": "7.1.1",
4
4
  "dependencies": {
5
- "tslib": "^2.3.0"
5
+ "tslib": "^2.5.0"
6
6
  },
7
7
  "peerDependencies": {
8
- "@angular/common": "^15.0.4",
9
- "@angular/core": "^15.0.4",
8
+ "@angular/common": "^16.0.0",
9
+ "@angular/core": "^16.0.0",
10
10
  "lodash-es": "^4.17.21",
11
- "tinycolor2": "^1.4.2",
11
+ "tinycolor2": "^1.6.0",
12
12
  "tinygradient": "^1.1.5"
13
13
  },
14
14
  "peerDependenciesMeta": {},
15
- "module": "fesm2015/acorex-core.mjs",
16
- "es2020": "fesm2020/acorex-core.mjs",
17
- "esm2020": "esm2020/acorex-core.mjs",
18
- "fesm2020": "fesm2020/acorex-core.mjs",
19
- "fesm2015": "fesm2015/acorex-core.mjs",
15
+ "module": "fesm2022/acorex-core.mjs",
20
16
  "typings": "index.d.ts",
21
17
  "exports": {
22
18
  "./package.json": {
@@ -24,91 +20,69 @@
24
20
  },
25
21
  ".": {
26
22
  "types": "./index.d.ts",
27
- "esm2020": "./esm2020/acorex-core.mjs",
28
- "es2020": "./fesm2020/acorex-core.mjs",
29
- "es2015": "./fesm2015/acorex-core.mjs",
30
- "node": "./fesm2015/acorex-core.mjs",
31
- "default": "./fesm2020/acorex-core.mjs"
23
+ "esm2022": "./esm2022/acorex-core.mjs",
24
+ "esm": "./esm2022/acorex-core.mjs",
25
+ "default": "./fesm2022/acorex-core.mjs"
32
26
  },
33
27
  "./config": {
34
28
  "types": "./config/index.d.ts",
35
- "esm2020": "./esm2020/config/acorex-core-config.mjs",
36
- "es2020": "./fesm2020/acorex-core-config.mjs",
37
- "es2015": "./fesm2015/acorex-core-config.mjs",
38
- "node": "./fesm2015/acorex-core-config.mjs",
39
- "default": "./fesm2020/acorex-core-config.mjs"
29
+ "esm2022": "./esm2022/config/acorex-core-config.mjs",
30
+ "esm": "./esm2022/config/acorex-core-config.mjs",
31
+ "default": "./fesm2022/acorex-core-config.mjs"
40
32
  },
41
33
  "./dateTime": {
42
34
  "types": "./dateTime/index.d.ts",
43
- "esm2020": "./esm2020/dateTime/acorex-core-dateTime.mjs",
44
- "es2020": "./fesm2020/acorex-core-dateTime.mjs",
45
- "es2015": "./fesm2015/acorex-core-dateTime.mjs",
46
- "node": "./fesm2015/acorex-core-dateTime.mjs",
47
- "default": "./fesm2020/acorex-core-dateTime.mjs"
35
+ "esm2022": "./esm2022/dateTime/acorex-core-dateTime.mjs",
36
+ "esm": "./esm2022/dateTime/acorex-core-dateTime.mjs",
37
+ "default": "./fesm2022/acorex-core-dateTime.mjs"
48
38
  },
49
39
  "./events": {
50
40
  "types": "./events/index.d.ts",
51
- "esm2020": "./esm2020/events/acorex-core-events.mjs",
52
- "es2020": "./fesm2020/acorex-core-events.mjs",
53
- "es2015": "./fesm2015/acorex-core-events.mjs",
54
- "node": "./fesm2015/acorex-core-events.mjs",
55
- "default": "./fesm2020/acorex-core-events.mjs"
41
+ "esm2022": "./esm2022/events/acorex-core-events.mjs",
42
+ "esm": "./esm2022/events/acorex-core-events.mjs",
43
+ "default": "./fesm2022/acorex-core-events.mjs"
56
44
  },
57
45
  "./file": {
58
46
  "types": "./file/index.d.ts",
59
- "esm2020": "./esm2020/file/acorex-core-file.mjs",
60
- "es2020": "./fesm2020/acorex-core-file.mjs",
61
- "es2015": "./fesm2015/acorex-core-file.mjs",
62
- "node": "./fesm2015/acorex-core-file.mjs",
63
- "default": "./fesm2020/acorex-core-file.mjs"
47
+ "esm2022": "./esm2022/file/acorex-core-file.mjs",
48
+ "esm": "./esm2022/file/acorex-core-file.mjs",
49
+ "default": "./fesm2022/acorex-core-file.mjs"
64
50
  },
65
51
  "./http": {
66
52
  "types": "./http/index.d.ts",
67
- "esm2020": "./esm2020/http/acorex-core-http.mjs",
68
- "es2020": "./fesm2020/acorex-core-http.mjs",
69
- "es2015": "./fesm2015/acorex-core-http.mjs",
70
- "node": "./fesm2015/acorex-core-http.mjs",
71
- "default": "./fesm2020/acorex-core-http.mjs"
53
+ "esm2022": "./esm2022/http/acorex-core-http.mjs",
54
+ "esm": "./esm2022/http/acorex-core-http.mjs",
55
+ "default": "./fesm2022/acorex-core-http.mjs"
72
56
  },
73
57
  "./image": {
74
58
  "types": "./image/index.d.ts",
75
- "esm2020": "./esm2020/image/acorex-core-image.mjs",
76
- "es2020": "./fesm2020/acorex-core-image.mjs",
77
- "es2015": "./fesm2015/acorex-core-image.mjs",
78
- "node": "./fesm2015/acorex-core-image.mjs",
79
- "default": "./fesm2020/acorex-core-image.mjs"
59
+ "esm2022": "./esm2022/image/acorex-core-image.mjs",
60
+ "esm": "./esm2022/image/acorex-core-image.mjs",
61
+ "default": "./fesm2022/acorex-core-image.mjs"
80
62
  },
81
63
  "./pipes": {
82
64
  "types": "./pipes/index.d.ts",
83
- "esm2020": "./esm2020/pipes/acorex-core-pipes.mjs",
84
- "es2020": "./fesm2020/acorex-core-pipes.mjs",
85
- "es2015": "./fesm2015/acorex-core-pipes.mjs",
86
- "node": "./fesm2015/acorex-core-pipes.mjs",
87
- "default": "./fesm2020/acorex-core-pipes.mjs"
65
+ "esm2022": "./esm2022/pipes/acorex-core-pipes.mjs",
66
+ "esm": "./esm2022/pipes/acorex-core-pipes.mjs",
67
+ "default": "./fesm2022/acorex-core-pipes.mjs"
88
68
  },
89
69
  "./platform": {
90
70
  "types": "./platform/index.d.ts",
91
- "esm2020": "./esm2020/platform/acorex-core-platform.mjs",
92
- "es2020": "./fesm2020/acorex-core-platform.mjs",
93
- "es2015": "./fesm2015/acorex-core-platform.mjs",
94
- "node": "./fesm2015/acorex-core-platform.mjs",
95
- "default": "./fesm2020/acorex-core-platform.mjs"
71
+ "esm2022": "./esm2022/platform/acorex-core-platform.mjs",
72
+ "esm": "./esm2022/platform/acorex-core-platform.mjs",
73
+ "default": "./fesm2022/acorex-core-platform.mjs"
96
74
  },
97
75
  "./translation": {
98
76
  "types": "./translation/index.d.ts",
99
- "esm2020": "./esm2020/translation/acorex-core-translation.mjs",
100
- "es2020": "./fesm2020/acorex-core-translation.mjs",
101
- "es2015": "./fesm2015/acorex-core-translation.mjs",
102
- "node": "./fesm2015/acorex-core-translation.mjs",
103
- "default": "./fesm2020/acorex-core-translation.mjs"
77
+ "esm2022": "./esm2022/translation/acorex-core-translation.mjs",
78
+ "esm": "./esm2022/translation/acorex-core-translation.mjs",
79
+ "default": "./fesm2022/acorex-core-translation.mjs"
104
80
  },
105
81
  "./utils": {
106
82
  "types": "./utils/index.d.ts",
107
- "esm2020": "./esm2020/utils/acorex-core-utils.mjs",
108
- "es2020": "./fesm2020/acorex-core-utils.mjs",
109
- "es2015": "./fesm2015/acorex-core-utils.mjs",
110
- "node": "./fesm2015/acorex-core-utils.mjs",
111
- "default": "./fesm2020/acorex-core-utils.mjs"
83
+ "esm2022": "./esm2022/utils/acorex-core-utils.mjs",
84
+ "esm": "./esm2022/utils/acorex-core-utils.mjs",
85
+ "default": "./fesm2022/acorex-core-utils.mjs"
112
86
  }
113
87
  },
114
88
  "sideEffects": false
package/pipes/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@acorex/core/pipes" />
5
- export * from './public-api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@acorex/core/pipes" />
5
+ export * from './public-api';
@@ -1,2 +1,2 @@
1
- export * from './src/safe.pipe';
2
- export * from './src/pipes.module';
1
+ export * from './src/safe.pipe';
2
+ export * from './src/pipes.module';
@@ -1,8 +1,8 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./safe.pipe";
3
- import * as i2 from "@angular/common";
4
- export declare class AXPipesModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<AXPipesModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXPipesModule, [typeof i1.AXSafePipe], [typeof i2.CommonModule], [typeof i1.AXSafePipe]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<AXPipesModule>;
8
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./safe.pipe";
3
+ import * as i2 from "@angular/common";
4
+ export declare class AXPipesModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPipesModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXPipesModule, [typeof i1.AXSafePipe], [typeof i2.CommonModule], [typeof i1.AXSafePipe]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXPipesModule>;
8
+ }
@@ -1,10 +1,10 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { DomSanitizer, SafeHtml, SafeStyle, SafeScript, SafeUrl, SafeResourceUrl } from '@angular/platform-browser';
3
- import * as i0 from "@angular/core";
4
- export declare class AXSafePipe implements PipeTransform {
5
- protected sanitizer: DomSanitizer;
6
- constructor(sanitizer: DomSanitizer);
7
- transform(value: any, type: string): SafeHtml | SafeStyle | SafeScript | SafeUrl | SafeResourceUrl;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<AXSafePipe, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<AXSafePipe, "safe", false>;
10
- }
1
+ import { PipeTransform } from '@angular/core';
2
+ import { DomSanitizer, SafeHtml, SafeStyle, SafeScript, SafeUrl, SafeResourceUrl } from '@angular/platform-browser';
3
+ import * as i0 from "@angular/core";
4
+ export declare class AXSafePipe implements PipeTransform {
5
+ protected sanitizer: DomSanitizer;
6
+ constructor(sanitizer: DomSanitizer);
7
+ transform(value: any, type: string): SafeHtml | SafeStyle | SafeScript | SafeUrl | SafeResourceUrl;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXSafePipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<AXSafePipe, "safe", false>;
10
+ }
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@acorex/core/platform" />
5
- export * from './public-api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@acorex/core/platform" />
5
+ export * from './public-api';
@@ -1 +1 @@
1
- export * from './src/platform.service';
1
+ export * from './src/platform.service';
@@ -1,26 +1,26 @@
1
- import { Subject } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
- export declare type AXPlatforms = 'Android' | 'Desktop' | 'iOS' | 'Mobile';
4
- export declare type AXBrowsers = 'Chrome' | 'Safari' | 'Edge' | 'Firefox' | 'Opera' | 'MSIE';
5
- export declare type AXTechnologies = 'PWA' | 'Hybrid' | 'Electron';
6
- export declare type AXScreenSizes = 'SM' | 'MD' | 'LG' | 'XL' | '2XL';
7
- export declare const testUserAgent: (win: Window, expr: RegExp) => boolean;
8
- export declare class AXPlatformEvent<T extends Event = Event> {
9
- nativeEvent: T;
10
- source: AXPlatform;
11
- }
12
- export declare class AXPlatform {
13
- resize: Subject<AXPlatformEvent>;
14
- click: Subject<AXPlatformEvent>;
15
- scroll: Subject<AXPlatformEvent>;
16
- isRtl(): boolean;
17
- isLandscape(): boolean;
18
- isPortrate(): boolean;
19
- is(name: AXPlatforms | AXBrowsers | AXTechnologies | AXScreenSizes): boolean;
20
- switchDarkMode(): void;
21
- switchLightMode(): void;
22
- private _setFullHeightRatio;
23
- constructor();
24
- static ɵfac: i0.ɵɵFactoryDeclaration<AXPlatform, never>;
25
- static ɵprov: i0.ɵɵInjectableDeclaration<AXPlatform>;
26
- }
1
+ import { Subject } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ export type AXPlatforms = 'Android' | 'Desktop' | 'iOS' | 'Mobile';
4
+ export type AXBrowsers = 'Chrome' | 'Safari' | 'Edge' | 'Firefox' | 'Opera' | 'MSIE';
5
+ export type AXTechnologies = 'PWA' | 'Hybrid' | 'Electron';
6
+ export type AXScreenSizes = 'SM' | 'MD' | 'LG' | 'XL' | '2XL';
7
+ export declare const testUserAgent: (win: Window, expr: RegExp) => boolean;
8
+ export declare class AXPlatformEvent<T extends Event = Event> {
9
+ nativeEvent: T;
10
+ source: AXPlatform;
11
+ }
12
+ export declare class AXPlatform {
13
+ resize: Subject<AXPlatformEvent>;
14
+ click: Subject<AXPlatformEvent>;
15
+ scroll: Subject<AXPlatformEvent>;
16
+ isRtl(): boolean;
17
+ isLandscape(): boolean;
18
+ isPortrate(): boolean;
19
+ is(name: AXPlatforms | AXBrowsers | AXTechnologies | AXScreenSizes): boolean;
20
+ switchDarkMode(): void;
21
+ switchLightMode(): void;
22
+ private _setFullHeightRatio;
23
+ constructor();
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPlatform, never>;
25
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXPlatform>;
26
+ }
package/public-api.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const ACOREX_CORE = "@acorex/core";
1
+ export declare const ACOREX_CORE = "@acorex/core";
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@acorex/core/translation" />
5
- export * from './public-api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@acorex/core/translation" />
5
+ export * from './public-api';
@@ -1,3 +1,3 @@
1
- export * from './src/translator';
2
- export * from './src/translator.pipe';
3
- export * from './src/translation.module';
1
+ export * from './src/translator';
2
+ export * from './src/translator.pipe';
3
+ export * from './src/translation.module';
@@ -1,7 +1,7 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./translator.pipe";
3
- export declare class AXTranslationModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<AXTranslationModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXTranslationModule, [typeof i1.AXTranslatorPipe], never, [typeof i1.AXTranslatorPipe]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<AXTranslationModule>;
7
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./translator.pipe";
3
+ export declare class AXTranslationModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXTranslationModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXTranslationModule, [typeof i1.AXTranslatorPipe], never, [typeof i1.AXTranslatorPipe]>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXTranslationModule>;
7
+ }
@@ -1,11 +1,11 @@
1
- import { Observable } from 'rxjs';
2
- export declare class AXTranslator {
3
- private static lang;
4
- private static dataChangeSubject;
5
- private static _varsRegx;
6
- private static _varNameRegx;
7
- static get onChange(): Observable<any>;
8
- static load(lang: string, value: any): void;
9
- static use(lang: string): void;
10
- static get(key: string, arg1?: object | string, arg2?: object): string;
11
- }
1
+ import { Observable } from 'rxjs';
2
+ export declare class AXTranslator {
3
+ private static lang;
4
+ private static dataChangeSubject;
5
+ private static _varsRegx;
6
+ private static _varNameRegx;
7
+ static get onChange(): Observable<any>;
8
+ static load(lang: string, value: any): void;
9
+ static use(lang: string): void;
10
+ static get(key: string, arg1?: object | string, arg2?: object): string;
11
+ }
@@ -1,7 +1,7 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class AXTranslatorPipe implements PipeTransform {
4
- transform(value: string, arg1?: object | string, arg2?: object): string;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<AXTranslatorPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<AXTranslatorPipe, "trans", false>;
7
- }
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AXTranslatorPipe implements PipeTransform {
4
+ transform(value: string, arg1?: object | string, arg2?: object): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXTranslatorPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<AXTranslatorPipe, "trans", false>;
7
+ }
package/utils/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@acorex/core/utils" />
5
- export * from './public-api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@acorex/core/utils" />
5
+ export * from './public-api';
@@ -1,5 +1,5 @@
1
- export * from './src/object-util';
2
- export * from './src/drawing-util';
3
- export * from './src/string-util';
4
- export * from './src/color-util';
5
- export * from './src/html-util';
1
+ export * from './src/object-util';
2
+ export * from './src/drawing-util';
3
+ export * from './src/string-util';
4
+ export * from './src/color-util';
5
+ export * from './src/html-util';
@@ -1,23 +1,23 @@
1
- export declare type AXColorMode = 'rgba' | 'hex' | 'hsla' | 'hsva';
2
- import tinycolor, { ColorInput } from 'tinycolor2';
3
- import tinygradient from 'tinygradient';
4
- export declare type AXColorFormat = ColorInput;
5
- export declare class AXColorUtil {
6
- static to(color: AXColorFormat, mode: AXColorMode): AXColorFormat;
7
- static toString(color: AXColorFormat, mode?: AXColorMode): string;
8
- static isValid(color: AXColorFormat): boolean;
9
- static mix(baseColor: AXColorFormat, hex: AXColorFormat, percentage: number): string;
10
- static multiply(color1: AXColorFormat, color2: AXColorFormat): string;
11
- static contrastToWhite(color: AXColorFormat): number;
12
- static lighten(hex: AXColorFormat, percentage?: number): tinycolor.Instance;
13
- static darken(hex: AXColorFormat, percentage?: number): tinycolor.Instance;
14
- static brighten(hex: AXColorFormat, percentage?: number): tinycolor.Instance;
15
- static saturate(hex: AXColorFormat, percentage?: number): tinycolor.Instance;
16
- static desaturate(hex: AXColorFormat, percentage?: number): number;
17
- static equal(color1: AXColorFormat, color2: AXColorFormat): boolean;
18
- static gradient(values: any[] | {
19
- color: any;
20
- pos: number;
21
- }[]): tinygradient.Instance;
22
- static xyToRgb(vX: any, vY: any): string;
23
- }
1
+ export type AXColorMode = 'rgba' | 'hex' | 'hsla' | 'hsva';
2
+ import tinycolor, { ColorInput } from 'tinycolor2';
3
+ import tinygradient from 'tinygradient';
4
+ export type AXColorFormat = ColorInput;
5
+ export declare class AXColorUtil {
6
+ static to(color: AXColorFormat, mode: AXColorMode): AXColorFormat;
7
+ static toString(color: AXColorFormat, mode?: AXColorMode): string;
8
+ static isValid(color: AXColorFormat): boolean;
9
+ static mix(baseColor: AXColorFormat, hex: AXColorFormat, percentage: number): string;
10
+ static multiply(color1: AXColorFormat, color2: AXColorFormat): string;
11
+ static contrastToWhite(color: AXColorFormat): number;
12
+ static lighten(hex: AXColorFormat, percentage?: number): tinycolor.Instance;
13
+ static darken(hex: AXColorFormat, percentage?: number): tinycolor.Instance;
14
+ static brighten(hex: AXColorFormat, percentage?: number): tinycolor.Instance;
15
+ static saturate(hex: AXColorFormat, percentage?: number): tinycolor.Instance;
16
+ static desaturate(hex: AXColorFormat, percentage?: number): number;
17
+ static equal(color1: AXColorFormat, color2: AXColorFormat): boolean;
18
+ static gradient(values: any[] | {
19
+ color: any;
20
+ pos: number;
21
+ }[]): tinygradient.Instance;
22
+ static xyToRgb(vX: any, vY: any): string;
23
+ }