@acorex/core 6.1.12 → 6.5.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 (224) hide show
  1. package/README.md +2 -23
  2. package/{index.d.ts → acorex-core.d.ts} +0 -0
  3. package/esm2020/acorex-core.mjs +1 -1
  4. package/esm2020/lib/classes/base-page.class.mjs +28 -0
  5. package/esm2020/lib/classes/color.class.mjs +49 -0
  6. package/esm2020/lib/classes/datetime.class.mjs +314 -0
  7. package/esm2020/lib/classes/menu.class.mjs +27 -0
  8. package/esm2020/lib/classes/navigator.class.mjs +2 -0
  9. package/esm2020/lib/classes/popup.class.mjs +2 -0
  10. package/esm2020/lib/classes/promise.class.mjs +19 -0
  11. package/esm2020/lib/classes/sectionlist.class.mjs +2 -0
  12. package/esm2020/lib/classes/select.class.mjs +3 -0
  13. package/esm2020/lib/core.module.mjs +27 -0
  14. package/esm2020/lib/error/error.class.mjs +2 -0
  15. package/esm2020/lib/error/error.module.mjs +19 -0
  16. package/esm2020/lib/error/error.service.mjs +21 -0
  17. package/esm2020/lib/events/keyboard.mjs +2 -0
  18. package/esm2020/lib/http/http-error.class.mjs +2 -0
  19. package/esm2020/lib/http/http-events.interceptor.mjs +3 -0
  20. package/esm2020/lib/http/http-request.class.mjs +2 -0
  21. package/esm2020/lib/http/http-result.class.mjs +21 -0
  22. package/esm2020/lib/http/http.module.mjs +37 -0
  23. package/esm2020/lib/http/http.service.mjs +145 -0
  24. package/esm2020/lib/locale/en.json +255 -0
  25. package/esm2020/lib/locale/fa.json +244 -0
  26. package/esm2020/lib/pipe/datetime.pipe.mjs +25 -0
  27. package/esm2020/lib/pipe/htmlToText.pipe.mjs +25 -0
  28. package/esm2020/lib/platform/index.mjs +2 -0
  29. package/esm2020/lib/platform/platform.service.mjs +138 -0
  30. package/esm2020/lib/services/config.mjs +29 -0
  31. package/esm2020/lib/services/event.service.mjs +36 -0
  32. package/esm2020/lib/services/navigator.service.mjs +10 -0
  33. package/esm2020/lib/services/storage.service.mjs +16 -0
  34. package/esm2020/lib/translator/translator.mjs +26 -0
  35. package/esm2020/lib/translator/translator.module.mjs +25 -0
  36. package/esm2020/lib/translator/translator.pipe.mjs +24 -0
  37. package/esm2020/lib/translator/translator.service.mjs +21 -0
  38. package/esm2020/lib/utils/array/array-util.mjs +133 -0
  39. package/esm2020/lib/utils/html/html-util.mjs +192 -0
  40. package/esm2020/lib/utils/html/html.module.mjs +19 -0
  41. package/esm2020/lib/utils/math/math-util.mjs +6 -0
  42. package/esm2020/lib/utils/object/object-util.mjs +83 -0
  43. package/esm2020/lib/utils/render/on-demand-preload-strategy.service.mjs +20 -0
  44. package/esm2020/lib/utils/render/render.service.mjs +103 -0
  45. package/esm2020/lib/utils/render/rendering.module.mjs +35 -0
  46. package/esm2020/lib/utils/scroll/scroll.directive.mjs +54 -0
  47. package/esm2020/lib/utils/scroll/scroll.module.mjs +19 -0
  48. package/esm2020/lib/utils/separator/separator.module.mjs +19 -0
  49. package/esm2020/lib/utils/separator/separator.pipe.mjs +33 -0
  50. package/esm2020/public-api.mjs +44 -5
  51. package/fesm2015/acorex-core.mjs +2254 -4
  52. package/fesm2015/acorex-core.mjs.map +1 -1
  53. package/fesm2020/acorex-core.mjs +2250 -4
  54. package/fesm2020/acorex-core.mjs.map +1 -1
  55. package/lib/classes/base-page.class.d.ts +13 -0
  56. package/lib/classes/color.class.d.ts +17 -0
  57. package/lib/classes/datetime.class.d.ts +63 -0
  58. package/lib/classes/menu.class.d.ts +34 -0
  59. package/lib/classes/navigator.class.d.ts +5 -0
  60. package/lib/classes/popup.class.d.ts +12 -0
  61. package/lib/classes/promise.class.d.ts +7 -0
  62. package/lib/classes/sectionlist.class.d.ts +8 -0
  63. package/lib/classes/select.class.d.ts +7 -0
  64. package/lib/core.module.d.ts +9 -0
  65. package/lib/error/error.class.d.ts +4 -0
  66. package/lib/error/error.module.d.ts +7 -0
  67. package/lib/error/error.service.d.ts +13 -0
  68. package/lib/events/keyboard.d.ts +2 -0
  69. package/{http/src → lib/http}/http-error.class.d.ts +0 -0
  70. package/{http/src → lib/http}/http-events.interceptor.d.ts +0 -0
  71. package/{http/src → lib/http}/http-request.class.d.ts +0 -0
  72. package/{http/src → lib/http}/http-result.class.d.ts +0 -0
  73. package/{http/src → lib/http}/http.module.d.ts +2 -0
  74. package/{http/src → lib/http}/http.service.d.ts +0 -0
  75. package/{dateTime/src → lib/pipe}/datetime.pipe.d.ts +2 -2
  76. package/lib/pipe/htmlToText.pipe.d.ts +7 -0
  77. package/lib/platform/index.d.ts +1 -0
  78. package/{platform/src → lib/platform}/platform.service.d.ts +4 -5
  79. package/{config/src/configs.d.ts → lib/services/config.d.ts} +1 -1
  80. package/{events/src → lib/services}/event.service.d.ts +0 -0
  81. package/lib/services/navigator.service.d.ts +8 -0
  82. package/lib/services/storage.service.d.ts +7 -0
  83. package/{translation/src → lib/translator}/translator.d.ts +1 -3
  84. package/lib/translator/translator.module.d.ts +8 -0
  85. package/{translation/src → lib/translator}/translator.pipe.d.ts +3 -2
  86. package/lib/translator/translator.service.d.ts +8 -0
  87. package/lib/utils/array/array-util.d.ts +6 -0
  88. package/lib/utils/html/html-util.d.ts +62 -0
  89. package/lib/utils/html/html.module.d.ts +8 -0
  90. package/lib/utils/math/math-util.d.ts +3 -0
  91. package/lib/utils/object/object-util.d.ts +7 -0
  92. package/lib/utils/render/on-demand-preload-strategy.service.d.ts +10 -0
  93. package/lib/utils/render/render.service.d.ts +18 -0
  94. package/lib/utils/render/rendering.module.d.ts +8 -0
  95. package/lib/utils/scroll/scroll.directive.d.ts +18 -0
  96. package/lib/utils/scroll/scroll.module.d.ts +8 -0
  97. package/lib/utils/separator/separator.module.d.ts +8 -0
  98. package/lib/utils/separator/separator.pipe.d.ts +8 -0
  99. package/package.json +9 -98
  100. package/public-api.d.ts +43 -1
  101. package/config/index.d.ts +0 -5
  102. package/config/public-api.d.ts +0 -1
  103. package/dateTime/index.d.ts +0 -5
  104. package/dateTime/public-api.d.ts +0 -5
  105. package/dateTime/src/datetime.class.d.ts +0 -100
  106. package/dateTime/src/datetime.module.d.ts +0 -8
  107. package/dateTime/src/georgian.calendar.d.ts +0 -20
  108. package/dateTime/src/jalali.calendar.d.ts +0 -35
  109. package/esm2020/config/acorex-core-config.mjs +0 -5
  110. package/esm2020/config/public-api.mjs +0 -2
  111. package/esm2020/config/src/configs.mjs +0 -32
  112. package/esm2020/dateTime/acorex-core-dateTime.mjs +0 -5
  113. package/esm2020/dateTime/public-api.mjs +0 -6
  114. package/esm2020/dateTime/src/datetime.class.mjs +0 -288
  115. package/esm2020/dateTime/src/datetime.module.mjs +0 -39
  116. package/esm2020/dateTime/src/datetime.pipe.mjs +0 -26
  117. package/esm2020/dateTime/src/georgian.calendar.mjs +0 -189
  118. package/esm2020/dateTime/src/jalali.calendar.mjs +0 -359
  119. package/esm2020/events/acorex-core-events.mjs +0 -5
  120. package/esm2020/events/public-api.mjs +0 -2
  121. package/esm2020/events/src/event.service.mjs +0 -36
  122. package/esm2020/file/acorex-core-file.mjs +0 -5
  123. package/esm2020/file/public-api.mjs +0 -5
  124. package/esm2020/file/src/file-download-ref.class.mjs +0 -12
  125. package/esm2020/file/src/file-download-result.class.mjs +0 -47
  126. package/esm2020/file/src/file-upload-ref.class.mjs +0 -12
  127. package/esm2020/file/src/file.service.mjs +0 -101
  128. package/esm2020/http/acorex-core-http.mjs +0 -5
  129. package/esm2020/http/public-api.mjs +0 -6
  130. package/esm2020/http/src/http-error.class.mjs +0 -2
  131. package/esm2020/http/src/http-events.interceptor.mjs +0 -3
  132. package/esm2020/http/src/http-request.class.mjs +0 -2
  133. package/esm2020/http/src/http-result.class.mjs +0 -21
  134. package/esm2020/http/src/http.module.mjs +0 -29
  135. package/esm2020/http/src/http.service.mjs +0 -148
  136. package/esm2020/image/acorex-core-image.mjs +0 -5
  137. package/esm2020/image/public-api.mjs +0 -2
  138. package/esm2020/image/src/image.service.mjs +0 -43
  139. package/esm2020/pipes/acorex-core-pipes.mjs +0 -5
  140. package/esm2020/pipes/public-api.mjs +0 -3
  141. package/esm2020/pipes/src/pipes.module.mjs +0 -19
  142. package/esm2020/pipes/src/safe.pipe.mjs +0 -30
  143. package/esm2020/platform/acorex-core-platform.mjs +0 -5
  144. package/esm2020/platform/public-api.mjs +0 -2
  145. package/esm2020/platform/src/platform.service.mjs +0 -151
  146. package/esm2020/translation/acorex-core-translation.mjs +0 -5
  147. package/esm2020/translation/public-api.mjs +0 -4
  148. package/esm2020/translation/src/translation.module.mjs +0 -18
  149. package/esm2020/translation/src/translator.mjs +0 -43
  150. package/esm2020/translation/src/translator.pipe.mjs +0 -15
  151. package/esm2020/utils/acorex-core-utils.mjs +0 -5
  152. package/esm2020/utils/public-api.mjs +0 -5
  153. package/esm2020/utils/src/color-util.mjs +0 -71
  154. package/esm2020/utils/src/drawing-util.mjs +0 -27
  155. package/esm2020/utils/src/object-util.mjs +0 -39
  156. package/esm2020/utils/src/string-util.mjs +0 -19
  157. package/events/index.d.ts +0 -5
  158. package/events/public-api.d.ts +0 -1
  159. package/fesm2015/acorex-core-config.mjs +0 -39
  160. package/fesm2015/acorex-core-config.mjs.map +0 -1
  161. package/fesm2015/acorex-core-dateTime.mjs +0 -898
  162. package/fesm2015/acorex-core-dateTime.mjs.map +0 -1
  163. package/fesm2015/acorex-core-events.mjs +0 -43
  164. package/fesm2015/acorex-core-events.mjs.map +0 -1
  165. package/fesm2015/acorex-core-file.mjs +0 -176
  166. package/fesm2015/acorex-core-file.mjs.map +0 -1
  167. package/fesm2015/acorex-core-http.mjs +0 -202
  168. package/fesm2015/acorex-core-http.mjs.map +0 -1
  169. package/fesm2015/acorex-core-image.mjs +0 -53
  170. package/fesm2015/acorex-core-image.mjs.map +0 -1
  171. package/fesm2015/acorex-core-pipes.mjs +0 -53
  172. package/fesm2015/acorex-core-pipes.mjs.map +0 -1
  173. package/fesm2015/acorex-core-platform.mjs +0 -158
  174. package/fesm2015/acorex-core-platform.mjs.map +0 -1
  175. package/fesm2015/acorex-core-translation.mjs +0 -80
  176. package/fesm2015/acorex-core-translation.mjs.map +0 -1
  177. package/fesm2015/acorex-core-utils.mjs +0 -163
  178. package/fesm2015/acorex-core-utils.mjs.map +0 -1
  179. package/fesm2020/acorex-core-config.mjs +0 -39
  180. package/fesm2020/acorex-core-config.mjs.map +0 -1
  181. package/fesm2020/acorex-core-dateTime.mjs +0 -898
  182. package/fesm2020/acorex-core-dateTime.mjs.map +0 -1
  183. package/fesm2020/acorex-core-events.mjs +0 -43
  184. package/fesm2020/acorex-core-events.mjs.map +0 -1
  185. package/fesm2020/acorex-core-file.mjs +0 -176
  186. package/fesm2020/acorex-core-file.mjs.map +0 -1
  187. package/fesm2020/acorex-core-http.mjs +0 -201
  188. package/fesm2020/acorex-core-http.mjs.map +0 -1
  189. package/fesm2020/acorex-core-image.mjs +0 -50
  190. package/fesm2020/acorex-core-image.mjs.map +0 -1
  191. package/fesm2020/acorex-core-pipes.mjs +0 -53
  192. package/fesm2020/acorex-core-pipes.mjs.map +0 -1
  193. package/fesm2020/acorex-core-platform.mjs +0 -158
  194. package/fesm2020/acorex-core-platform.mjs.map +0 -1
  195. package/fesm2020/acorex-core-translation.mjs +0 -79
  196. package/fesm2020/acorex-core-translation.mjs.map +0 -1
  197. package/fesm2020/acorex-core-utils.mjs +0 -163
  198. package/fesm2020/acorex-core-utils.mjs.map +0 -1
  199. package/file/index.d.ts +0 -5
  200. package/file/public-api.d.ts +0 -4
  201. package/file/src/file-download-ref.class.d.ts +0 -6
  202. package/file/src/file-download-result.class.d.ts +0 -8
  203. package/file/src/file-upload-ref.class.d.ts +0 -5
  204. package/file/src/file.service.d.ts +0 -18
  205. package/http/index.d.ts +0 -5
  206. package/http/public-api.d.ts +0 -5
  207. package/image/index.d.ts +0 -5
  208. package/image/public-api.d.ts +0 -1
  209. package/image/src/image.service.d.ts +0 -12
  210. package/pipes/index.d.ts +0 -5
  211. package/pipes/public-api.d.ts +0 -2
  212. package/pipes/src/pipes.module.d.ts +0 -8
  213. package/pipes/src/safe.pipe.d.ts +0 -10
  214. package/platform/index.d.ts +0 -5
  215. package/platform/public-api.d.ts +0 -1
  216. package/translation/index.d.ts +0 -5
  217. package/translation/public-api.d.ts +0 -3
  218. package/translation/src/translation.module.d.ts +0 -7
  219. package/utils/index.d.ts +0 -5
  220. package/utils/public-api.d.ts +0 -4
  221. package/utils/src/color-util.d.ts +0 -20
  222. package/utils/src/drawing-util.d.ts +0 -17
  223. package/utils/src/object-util.d.ts +0 -4
  224. package/utils/src/string-util.d.ts +0 -6
@@ -1,4 +0,0 @@
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';
@@ -1,6 +0,0 @@
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
- }
@@ -1,8 +0,0 @@
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
- }
@@ -1,5 +0,0 @@
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
- }
@@ -1,18 +0,0 @@
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
- }
package/http/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@acorex/core/http" />
5
- export * from './public-api';
@@ -1,5 +0,0 @@
1
- export * from './src/http-error.class';
2
- export * from './src/http-events.interceptor';
3
- export * from './src/http-request.class';
4
- export * from './src/http-result.class';
5
- export * from './src/http.module';
package/image/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@acorex/core/image" />
5
- export * from './public-api';
@@ -1 +0,0 @@
1
- export * from './src/image.service';
@@ -1,12 +0,0 @@
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/pipes/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@acorex/core/pipes" />
5
- export * from './public-api';
@@ -1,2 +0,0 @@
1
- export * from './src/safe.pipe';
2
- export * from './src/pipes.module';
@@ -1,8 +0,0 @@
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 +0,0 @@
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 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@acorex/core/platform" />
5
- export * from './public-api';
@@ -1 +0,0 @@
1
- export * from './src/platform.service';
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@acorex/core/translation" />
5
- export * from './public-api';
@@ -1,3 +0,0 @@
1
- export * from './src/translator';
2
- export * from './src/translator.pipe';
3
- export * from './src/translation.module';
@@ -1,7 +0,0 @@
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
- }
package/utils/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@acorex/core/utils" />
5
- export * from './public-api';
@@ -1,4 +0,0 @@
1
- export * from './src/object-util';
2
- export * from './src/drawing-util';
3
- export * from './src/string-util';
4
- export * from './src/color-util';
@@ -1,20 +0,0 @@
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
- }
@@ -1,17 +0,0 @@
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
- }
@@ -1,4 +0,0 @@
1
- export declare class AXObjectUtil {
2
- static deepJSONClone(obj: any): any;
3
- static deepCopy(obj: any): any;
4
- }
@@ -1,6 +0,0 @@
1
- export declare class AXStringUtil {
2
- static getWordBoundsAtPosition(str: string, position: number): {
3
- start: number;
4
- end: number;
5
- };
6
- }