@acorex/core 7.0.20 → 7.0.22

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 (205) hide show
  1. package/config/index.d.ts +5 -0
  2. package/config/public-api.d.ts +1 -0
  3. package/config/src/configs.d.ts +9 -0
  4. package/dateTime/index.d.ts +5 -0
  5. package/dateTime/{public-api.ts → public-api.d.ts} +1 -1
  6. package/dateTime/src/datetime.class.d.ts +100 -0
  7. package/dateTime/src/datetime.module.d.ts +8 -0
  8. package/dateTime/src/datetime.pipe.d.ts +8 -0
  9. package/dateTime/src/georgian.calendar.d.ts +20 -0
  10. package/dateTime/src/jalali.calendar.d.ts +35 -0
  11. package/esm2020/acorex-core.mjs +5 -0
  12. package/esm2020/config/acorex-core-config.mjs +5 -0
  13. package/esm2020/config/public-api.mjs +2 -0
  14. package/esm2020/config/src/configs.mjs +32 -0
  15. package/esm2020/dateTime/acorex-core-dateTime.mjs +5 -0
  16. package/esm2020/dateTime/public-api.mjs +6 -0
  17. package/esm2020/dateTime/src/datetime.class.mjs +288 -0
  18. package/esm2020/dateTime/src/datetime.module.mjs +39 -0
  19. package/esm2020/dateTime/src/datetime.pipe.mjs +26 -0
  20. package/esm2020/dateTime/src/georgian.calendar.mjs +189 -0
  21. package/esm2020/dateTime/src/jalali.calendar.mjs +359 -0
  22. package/esm2020/events/acorex-core-events.mjs +5 -0
  23. package/esm2020/events/public-api.mjs +2 -0
  24. package/esm2020/events/src/event.service.mjs +36 -0
  25. package/esm2020/file/acorex-core-file.mjs +5 -0
  26. package/esm2020/file/public-api.mjs +5 -0
  27. package/esm2020/file/src/file-download-ref.class.mjs +12 -0
  28. package/esm2020/file/src/file-download-result.class.mjs +47 -0
  29. package/esm2020/file/src/file-upload-ref.class.mjs +12 -0
  30. package/esm2020/file/src/file.service.mjs +101 -0
  31. package/esm2020/http/acorex-core-http.mjs +5 -0
  32. package/esm2020/http/public-api.mjs +6 -0
  33. package/esm2020/http/src/http-error.class.mjs +2 -0
  34. package/esm2020/http/src/http-events.interceptor.mjs +3 -0
  35. package/esm2020/http/src/http-request.class.mjs +2 -0
  36. package/esm2020/http/src/http-result.class.mjs +21 -0
  37. package/esm2020/http/src/http.module.mjs +29 -0
  38. package/esm2020/http/src/http.service.mjs +148 -0
  39. package/esm2020/image/acorex-core-image.mjs +5 -0
  40. package/esm2020/image/public-api.mjs +2 -0
  41. package/esm2020/image/src/image.service.mjs +43 -0
  42. package/esm2020/pipes/acorex-core-pipes.mjs +5 -0
  43. package/esm2020/pipes/public-api.mjs +3 -0
  44. package/esm2020/pipes/src/pipes.module.mjs +19 -0
  45. package/esm2020/pipes/src/safe.pipe.mjs +30 -0
  46. package/esm2020/platform/acorex-core-platform.mjs +5 -0
  47. package/esm2020/platform/public-api.mjs +2 -0
  48. package/esm2020/platform/src/platform.service.mjs +153 -0
  49. package/esm2020/public-api.mjs +5 -0
  50. package/esm2020/translation/acorex-core-translation.mjs +5 -0
  51. package/esm2020/translation/public-api.mjs +4 -0
  52. package/esm2020/translation/src/translation.module.mjs +18 -0
  53. package/esm2020/translation/src/translator.mjs +43 -0
  54. package/esm2020/translation/src/translator.pipe.mjs +15 -0
  55. package/esm2020/utils/acorex-core-utils.mjs +5 -0
  56. package/esm2020/utils/public-api.mjs +5 -0
  57. package/esm2020/utils/src/color-util.mjs +71 -0
  58. package/esm2020/utils/src/drawing-util.mjs +27 -0
  59. package/esm2020/utils/src/object-util.mjs +39 -0
  60. package/esm2020/utils/src/string-util.mjs +19 -0
  61. package/events/index.d.ts +5 -0
  62. package/events/public-api.d.ts +1 -0
  63. package/events/src/event.service.d.ts +9 -0
  64. package/fesm2015/acorex-core-config.mjs +40 -0
  65. package/fesm2015/acorex-core-config.mjs.map +1 -0
  66. package/fesm2015/acorex-core-dateTime.mjs +899 -0
  67. package/fesm2015/acorex-core-dateTime.mjs.map +1 -0
  68. package/fesm2015/acorex-core-events.mjs +44 -0
  69. package/fesm2015/acorex-core-events.mjs.map +1 -0
  70. package/fesm2015/acorex-core-file.mjs +177 -0
  71. package/fesm2015/acorex-core-file.mjs.map +1 -0
  72. package/fesm2015/acorex-core-http.mjs +203 -0
  73. package/fesm2015/acorex-core-http.mjs.map +1 -0
  74. package/fesm2015/acorex-core-image.mjs +54 -0
  75. package/fesm2015/acorex-core-image.mjs.map +1 -0
  76. package/fesm2015/acorex-core-pipes.mjs +54 -0
  77. package/fesm2015/acorex-core-pipes.mjs.map +1 -0
  78. package/fesm2015/acorex-core-platform.mjs +161 -0
  79. package/fesm2015/acorex-core-platform.mjs.map +1 -0
  80. package/fesm2015/acorex-core-translation.mjs +81 -0
  81. package/fesm2015/acorex-core-translation.mjs.map +1 -0
  82. package/fesm2015/acorex-core-utils.mjs +164 -0
  83. package/fesm2015/acorex-core-utils.mjs.map +1 -0
  84. package/fesm2015/acorex-core.mjs +12 -0
  85. package/fesm2015/acorex-core.mjs.map +1 -0
  86. package/fesm2020/acorex-core-config.mjs +40 -0
  87. package/fesm2020/acorex-core-config.mjs.map +1 -0
  88. package/fesm2020/acorex-core-dateTime.mjs +899 -0
  89. package/fesm2020/acorex-core-dateTime.mjs.map +1 -0
  90. package/fesm2020/acorex-core-events.mjs +44 -0
  91. package/fesm2020/acorex-core-events.mjs.map +1 -0
  92. package/fesm2020/acorex-core-file.mjs +177 -0
  93. package/fesm2020/acorex-core-file.mjs.map +1 -0
  94. package/fesm2020/acorex-core-http.mjs +202 -0
  95. package/fesm2020/acorex-core-http.mjs.map +1 -0
  96. package/fesm2020/acorex-core-image.mjs +51 -0
  97. package/fesm2020/acorex-core-image.mjs.map +1 -0
  98. package/fesm2020/acorex-core-pipes.mjs +54 -0
  99. package/fesm2020/acorex-core-pipes.mjs.map +1 -0
  100. package/fesm2020/acorex-core-platform.mjs +161 -0
  101. package/fesm2020/acorex-core-platform.mjs.map +1 -0
  102. package/fesm2020/acorex-core-translation.mjs +80 -0
  103. package/fesm2020/acorex-core-translation.mjs.map +1 -0
  104. package/fesm2020/acorex-core-utils.mjs +164 -0
  105. package/fesm2020/acorex-core-utils.mjs.map +1 -0
  106. package/fesm2020/acorex-core.mjs +12 -0
  107. package/fesm2020/acorex-core.mjs.map +1 -0
  108. package/file/index.d.ts +5 -0
  109. package/file/public-api.d.ts +4 -0
  110. package/file/src/file-download-ref.class.d.ts +6 -0
  111. package/file/src/file-download-result.class.d.ts +8 -0
  112. package/file/src/file-upload-ref.class.d.ts +5 -0
  113. package/file/src/file.service.d.ts +18 -0
  114. package/http/index.d.ts +5 -0
  115. package/http/{public-api.ts → public-api.d.ts} +1 -1
  116. package/http/src/{http-error.class.ts → http-error.class.d.ts} +2 -2
  117. package/http/src/{http-events.interceptor.ts → http-events.interceptor.d.ts} +3 -7
  118. package/http/src/{http-request.class.ts → http-request.class.d.ts} +5 -5
  119. package/http/src/http-result.class.d.ts +11 -0
  120. package/http/src/http.module.d.ts +8 -0
  121. package/http/src/http.service.d.ts +23 -0
  122. package/image/index.d.ts +5 -0
  123. package/image/public-api.d.ts +1 -0
  124. package/image/src/image.service.d.ts +12 -0
  125. package/index.d.ts +5 -0
  126. package/package.json +115 -16
  127. package/pipes/index.d.ts +5 -0
  128. package/pipes/public-api.d.ts +2 -0
  129. package/pipes/src/pipes.module.d.ts +8 -0
  130. package/pipes/src/safe.pipe.d.ts +10 -0
  131. package/platform/index.d.ts +5 -0
  132. package/platform/public-api.d.ts +1 -0
  133. package/platform/src/platform.service.d.ts +26 -0
  134. package/public-api.d.ts +1 -0
  135. package/translation/index.d.ts +5 -0
  136. package/translation/{public-api.ts → public-api.d.ts} +1 -1
  137. package/translation/src/translation.module.d.ts +7 -0
  138. package/translation/src/translator.d.ts +11 -0
  139. package/translation/src/translator.pipe.d.ts +7 -0
  140. package/utils/index.d.ts +5 -0
  141. package/utils/{public-api.ts → public-api.d.ts} +1 -1
  142. package/utils/src/color-util.d.ts +20 -0
  143. package/utils/src/drawing-util.d.ts +17 -0
  144. package/utils/src/object-util.d.ts +4 -0
  145. package/utils/src/string-util.d.ts +6 -0
  146. package/config/ax-preset.js +0 -186
  147. package/config/index.ts +0 -1
  148. package/config/ng-package.json +0 -6
  149. package/config/public-api.ts +0 -1
  150. package/config/src/configs.ts +0 -37
  151. package/dateTime/index.ts +0 -1
  152. package/dateTime/ng-package.json +0 -6
  153. package/dateTime/src/datetime.class.ts +0 -449
  154. package/dateTime/src/datetime.module.ts +0 -35
  155. package/dateTime/src/datetime.pipe.ts +0 -21
  156. package/dateTime/src/georgian.calendar.ts +0 -205
  157. package/dateTime/src/jalali.calendar.ts +0 -416
  158. package/events/index.ts +0 -1
  159. package/events/ng-package.json +0 -6
  160. package/events/public-api.ts +0 -1
  161. package/events/src/event.service.ts +0 -31
  162. package/file/index.ts +0 -1
  163. package/file/ng-package.json +0 -7
  164. package/file/public-api.ts +0 -4
  165. package/file/src/file-download-ref.class.ts +0 -16
  166. package/file/src/file-download-result.class.ts +0 -56
  167. package/file/src/file-upload-ref.class.ts +0 -14
  168. package/file/src/file.service.ts +0 -104
  169. package/http/index.ts +0 -1
  170. package/http/ng-package.json +0 -6
  171. package/http/src/http-result.class.ts +0 -34
  172. package/http/src/http.module.ts +0 -25
  173. package/http/src/http.service.ts +0 -161
  174. package/image/index.ts +0 -1
  175. package/image/ng-package.json +0 -7
  176. package/image/public-api.ts +0 -1
  177. package/image/src/image.service.ts +0 -42
  178. package/index.ts +0 -1
  179. package/karma.conf.js +0 -44
  180. package/ng-package.json +0 -7
  181. package/pipes/index.ts +0 -1
  182. package/pipes/ng-package.json +0 -6
  183. package/pipes/public-api.ts +0 -2
  184. package/pipes/src/pipes.module.ts +0 -11
  185. package/pipes/src/safe.pipe.ts +0 -24
  186. package/platform/index.ts +0 -1
  187. package/platform/ng-package.json +0 -6
  188. package/platform/public-api.ts +0 -1
  189. package/platform/src/platform.service.ts +0 -223
  190. package/public-api.ts +0 -4
  191. package/test.ts +0 -27
  192. package/translation/index.ts +0 -1
  193. package/translation/ng-package.json +0 -6
  194. package/translation/src/translation.module.ts +0 -12
  195. package/translation/src/translator.pipe.ts +0 -9
  196. package/translation/src/translator.ts +0 -49
  197. package/tsconfig.lib.json +0 -15
  198. package/tsconfig.lib.prod.json +0 -10
  199. package/tsconfig.spec.json +0 -17
  200. package/utils/index.ts +0 -1
  201. package/utils/ng-package.json +0 -6
  202. package/utils/src/color-util.ts +0 -83
  203. package/utils/src/drawing-util.ts +0 -43
  204. package/utils/src/object-util.ts +0 -82
  205. package/utils/src/string-util.ts +0 -25
@@ -0,0 +1,12 @@
1
+ /*
2
+ * Public API Surface of core
3
+ */
4
+ const ACOREX_CORE = "@acorex/core";
5
+
6
+ /**
7
+ * Generated bundle index. Do not edit.
8
+ */
9
+
10
+ export { ACOREX_CORE };
11
+ //# sourceMappingURL=acorex-core.mjs.map
12
+ //# sourceMappingURL=acorex-core.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-core.mjs","sources":["../../../../projects/acorex/core/public-api.ts","../../../../projects/acorex/core/acorex-core.ts"],"sourcesContent":["/*\r\n * Public API Surface of core\r\n */\r\nexport const ACOREX_CORE = \"@acorex/core\";","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAA;;AAEG;AACI,MAAM,WAAW,GAAG;;ACH3B;;AAEG;;;;"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@acorex/core/file" />
5
+ export * from './public-api';
@@ -0,0 +1,4 @@
1
+ export * from './src/file-download-ref.class';
2
+ export * from './src/file-download-result.class';
3
+ export * from './src/file-upload-ref.class';
4
+ export * from './src/file.service';
@@ -0,0 +1,6 @@
1
+ import { AXFileDownloadResult } from "./file-download-result.class";
2
+ export declare class AXFileDownloadRef extends Promise<AXFileDownloadResult> {
3
+ abortMethod: () => void;
4
+ constructor(executor: (resolve: (value?: PromiseLike<AXFileDownloadResult>) => void, reject: (reason?: any) => void) => void);
5
+ abort(): void;
6
+ }
@@ -0,0 +1,8 @@
1
+ export declare class AXFileDownloadResult {
2
+ _response: Blob;
3
+ constructor(response: Blob);
4
+ save(filename?: string): Promise<void>;
5
+ blob(): Blob;
6
+ base64(): Promise<string>;
7
+ private _defaultBrowserDownload;
8
+ }
@@ -0,0 +1,5 @@
1
+ export declare class AXFileUploadRef<T = any> extends Promise<T> {
2
+ abortMethod: () => void;
3
+ constructor(executor: (resolve: (value?: PromiseLike<T>) => void, reject: (reason?: any) => void) => void);
4
+ abort(): void;
5
+ }
@@ -0,0 +1,18 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { AXFileDownloadRef } from './file-download-ref.class';
4
+ import { AXFileUploadRef } from './file-upload-ref.class';
5
+ import * as i0 from "@angular/core";
6
+ export declare class AXFileService {
7
+ private _httpClient;
8
+ constructor(_httpClient: HttpClient);
9
+ download(request: string | Observable<Blob>): AXFileDownloadRef;
10
+ upload<T = any>(url: string, files: File[]): AXFileUploadRef<T>;
11
+ choose(options?: {
12
+ accept?: string;
13
+ multiple?: boolean;
14
+ }): Promise<File[]>;
15
+ blobToBase64: (blob: Blob) => Promise<string>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXFileService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXFileService>;
18
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@acorex/core/http" />
5
+ export * from './public-api';
@@ -2,4 +2,4 @@ export * from './src/http-error.class';
2
2
  export * from './src/http-events.interceptor';
3
3
  export * from './src/http-request.class';
4
4
  export * from './src/http-result.class';
5
- export * from './src/http.module';
5
+ export * from './src/http.module';
@@ -3,5 +3,5 @@ export interface IHttpError {
3
3
  status?: number;
4
4
  code?: string;
5
5
  handled: boolean;
6
- error: any | null
7
- }
6
+ error: any | null;
7
+ }
@@ -1,14 +1,10 @@
1
1
  import { IHttpError } from './http-error.class';
2
2
  import { InjectionToken } from '@angular/core';
3
3
  import { AXHttpRequestOptions } from './http-request.class';
4
-
5
- export const AX_HTTP_EVENT_INTERCEPTOR = new InjectionToken<AXHttpEventInterceptor>('ax.http.events');
6
-
4
+ export declare const AX_HTTP_EVENT_INTERCEPTOR: InjectionToken<AXHttpEventInterceptor>;
7
5
  export interface AXHttpEventInterceptor {
8
6
  begin(request: AXHttpRequestOptions): Promise<AXHttpRequestOptions>;
9
7
  success(request: AXHttpRequestOptions, result: any): Promise<any>;
10
- complete(request: AXHttpRequestOptions);
11
- error(request: AXHttpRequestOptions, error: IHttpError);
8
+ complete(request: AXHttpRequestOptions): any;
9
+ error(request: AXHttpRequestOptions, error: IHttpError): any;
12
10
  }
13
-
14
-
@@ -1,14 +1,14 @@
1
1
  export interface AXHttpRequestOptions {
2
- url?: any,
2
+ url?: any;
3
3
  params?: {
4
4
  [param: string]: any;
5
- },
5
+ };
6
6
  body?: {
7
7
  [param: string]: any;
8
- },
8
+ };
9
9
  headers?: {
10
10
  [header: string]: any;
11
- },
11
+ };
12
12
  method?: 'get' | 'post' | 'put' | 'delete';
13
13
  responseType?: any;
14
- }
14
+ }
@@ -0,0 +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
+ }
@@ -0,0 +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
+ }
@@ -0,0 +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
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@acorex/core/image" />
5
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export * from './src/image.service';
@@ -0,0 +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
+ }
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
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,16 +1,115 @@
1
- {
2
- "name": "@acorex/core",
3
- "version": "7.0.20",
4
- "dependencies": {
5
- "tslib": "^2.3.0"
6
- },
7
- "ngPackage": {},
8
- "peerDependencies": {
9
- "@angular/common": "^15.0.4",
10
- "@angular/core": "^15.0.4",
11
- "lodash-es": "^4.17.21",
12
- "tinycolor2": "^1.4.2",
13
- "tinygradient": "^1.1.5"
14
- },
15
- "peerDependenciesMeta": {}
16
- }
1
+ {
2
+ "name": "@acorex/core",
3
+ "version": "7.0.22",
4
+ "dependencies": {
5
+ "tslib": "^2.3.0"
6
+ },
7
+ "peerDependencies": {
8
+ "@angular/common": "^15.0.4",
9
+ "@angular/core": "^15.0.4",
10
+ "lodash-es": "^4.17.21",
11
+ "tinycolor2": "^1.4.2",
12
+ "tinygradient": "^1.1.5"
13
+ },
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",
20
+ "typings": "index.d.ts",
21
+ "exports": {
22
+ "./package.json": {
23
+ "default": "./package.json"
24
+ },
25
+ ".": {
26
+ "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"
32
+ },
33
+ "./config": {
34
+ "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"
40
+ },
41
+ "./dateTime": {
42
+ "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"
48
+ },
49
+ "./events": {
50
+ "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"
56
+ },
57
+ "./file": {
58
+ "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"
64
+ },
65
+ "./http": {
66
+ "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"
72
+ },
73
+ "./image": {
74
+ "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"
80
+ },
81
+ "./pipes": {
82
+ "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"
88
+ },
89
+ "./platform": {
90
+ "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"
96
+ },
97
+ "./translation": {
98
+ "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"
104
+ },
105
+ "./utils": {
106
+ "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"
112
+ }
113
+ },
114
+ "sideEffects": false
115
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@acorex/core/pipes" />
5
+ export * from './public-api';
@@ -0,0 +1,2 @@
1
+ export * from './src/safe.pipe';
2
+ export * from './src/pipes.module';
@@ -0,0 +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
+ }
@@ -0,0 +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
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@acorex/core/platform" />
5
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export * from './src/platform.service';
@@ -0,0 +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
+ }
@@ -0,0 +1 @@
1
+ export declare const ACOREX_CORE = "@acorex/core";
@@ -0,0 +1,5 @@
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
1
  export * from './src/translator';
2
2
  export * from './src/translator.pipe';
3
- export * from './src/translation.module';
3
+ export * from './src/translation.module';
@@ -0,0 +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
+ }
@@ -0,0 +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
+ }
@@ -0,0 +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
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@acorex/core/utils" />
5
+ export * from './public-api';
@@ -1,4 +1,4 @@
1
1
  export * from './src/object-util';
2
2
  export * from './src/drawing-util';
3
3
  export * from './src/string-util';
4
- export * from './src/color-util';
4
+ export * from './src/color-util';
@@ -0,0 +1,20 @@
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 mix(baseColor: AXColorFormat, hex: AXColorFormat, percentage: number): string;
9
+ static multiply(color1: AXColorFormat, color2: AXColorFormat): string;
10
+ static toHexSting(color: string): string;
11
+ static toRGBString(color: AXColorFormat): string;
12
+ static contrastToWhite(color: AXColorFormat): number;
13
+ static lighten(hex: AXColorFormat, percentage?: number): tinycolor.Instance;
14
+ static darken(hex: AXColorFormat, percentage?: number): tinycolor.Instance;
15
+ static equal(color1: AXColorFormat, color2: AXColorFormat): boolean;
16
+ static gradient(values: any[] | {
17
+ color: any;
18
+ pos: number;
19
+ }[]): tinygradient.Instance;
20
+ }
@@ -0,0 +1,17 @@
1
+ export interface AXPoint {
2
+ x: number;
3
+ y: number;
4
+ }
5
+ export interface AXBoundingClientRect {
6
+ left?: number;
7
+ top?: number;
8
+ width?: number;
9
+ height?: number;
10
+ bottom?: number;
11
+ right?: number;
12
+ }
13
+ export declare class AXDrawingUtil {
14
+ static collision(a: HTMLElement, b: HTMLElement): boolean;
15
+ static isInElementBound(pos: AXPoint, element: HTMLElement): boolean;
16
+ static isInRecPoint(pos: AXPoint, rec: AXBoundingClientRect | any): boolean;
17
+ }
@@ -0,0 +1,4 @@
1
+ export declare class AXObjectUtil {
2
+ static deepJSONClone(obj: any): any;
3
+ static deepCopy(obj: any): any;
4
+ }
@@ -0,0 +1,6 @@
1
+ export declare class AXStringUtil {
2
+ static getWordBoundsAtPosition(str: string, position: number): {
3
+ start: number;
4
+ end: number;
5
+ };
6
+ }