@acorex/core 6.5.28 → 6.5.30

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 (144) hide show
  1. package/README.md +3 -3
  2. package/acorex-core.d.ts +5 -0
  3. package/esm2020/acorex-core.mjs +5 -0
  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/{src → esm2020}/lib/locale/en.json +255 -255
  25. package/{src → esm2020}/lib/locale/fa.json +245 -245
  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 +150 -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 -0
  51. package/fesm2015/acorex-core.mjs +2274 -0
  52. package/fesm2015/acorex-core.mjs.map +1 -0
  53. package/fesm2020/acorex-core.mjs +2270 -0
  54. package/fesm2020/acorex-core.mjs.map +1 -0
  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/{src/lib/classes/navigator.class.ts → lib/classes/navigator.class.d.ts} +5 -5
  60. package/{src/lib/classes/popup.class.ts → lib/classes/popup.class.d.ts} +12 -14
  61. package/lib/classes/promise.class.d.ts +7 -0
  62. package/{src/lib/classes/sectionlist.class.ts → lib/classes/sectionlist.class.d.ts} +8 -8
  63. package/lib/classes/select.class.d.ts +7 -0
  64. package/lib/core.module.d.ts +9 -0
  65. package/{src/lib/error/error.class.ts → lib/error/error.class.d.ts} +4 -4
  66. package/lib/error/error.module.d.ts +7 -0
  67. package/lib/error/error.service.d.ts +13 -0
  68. package/{src/lib/events/keyboard.ts → lib/events/keyboard.d.ts} +2 -5
  69. package/{src/lib/http/http-error.class.ts → lib/http/http-error.class.d.ts} +7 -7
  70. package/{src/lib/http/http-events.interceptor.ts → lib/http/http-events.interceptor.d.ts} +10 -14
  71. package/{src/lib/http/http-request.class.ts → lib/http/http-request.class.d.ts} +14 -14
  72. package/lib/http/http-result.class.d.ts +11 -0
  73. package/lib/http/http.module.d.ts +10 -0
  74. package/lib/http/http.service.d.ts +23 -0
  75. package/lib/pipe/datetime.pipe.d.ts +8 -0
  76. package/lib/pipe/htmlToText.pipe.d.ts +7 -0
  77. package/lib/platform/index.d.ts +1 -0
  78. package/lib/platform/platform.service.d.ts +26 -0
  79. package/lib/services/config.d.ts +9 -0
  80. package/lib/services/event.service.d.ts +9 -0
  81. package/lib/services/navigator.service.d.ts +8 -0
  82. package/lib/services/storage.service.d.ts +7 -0
  83. package/lib/translator/translator.d.ts +9 -0
  84. package/lib/translator/translator.module.d.ts +8 -0
  85. package/lib/translator/translator.pipe.d.ts +8 -0
  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 +33 -13
  100. package/{src/public-api.ts → public-api.d.ts} +43 -53
  101. package/karma.conf.js +0 -32
  102. package/ng-package.json +0 -10
  103. package/src/lib/classes/base-page.class.ts +0 -29
  104. package/src/lib/classes/color.class.ts +0 -61
  105. package/src/lib/classes/datetime.class.ts +0 -373
  106. package/src/lib/classes/menu.class.ts +0 -37
  107. package/src/lib/classes/promise.class.ts +0 -25
  108. package/src/lib/classes/select.class.ts +0 -7
  109. package/src/lib/core.module.ts +0 -21
  110. package/src/lib/error/error.module.ts +0 -13
  111. package/src/lib/error/error.service.ts +0 -23
  112. package/src/lib/error/index.ts +0 -3
  113. package/src/lib/http/http-result.class.ts +0 -34
  114. package/src/lib/http/http.module.ts +0 -25
  115. package/src/lib/http/http.service.ts +0 -159
  116. package/src/lib/pipe/datetime.pipe.ts +0 -20
  117. package/src/lib/pipe/htmlToText.pipe.ts +0 -18
  118. package/src/lib/platform/index.ts +0 -1
  119. package/src/lib/platform/platform.service.ts +0 -223
  120. package/src/lib/services/config.ts +0 -36
  121. package/src/lib/services/event.service.ts +0 -31
  122. package/src/lib/services/navigator.service.ts +0 -8
  123. package/src/lib/services/storage.service.ts +0 -11
  124. package/src/lib/translator/translator.module.ts +0 -19
  125. package/src/lib/translator/translator.pipe.ts +0 -22
  126. package/src/lib/translator/translator.service.ts +0 -19
  127. package/src/lib/translator/translator.ts +0 -31
  128. package/src/lib/utils/array/array-util.ts +0 -140
  129. package/src/lib/utils/html/html-util.ts +0 -264
  130. package/src/lib/utils/html/html.module.ts +0 -11
  131. package/src/lib/utils/math/math-util.ts +0 -5
  132. package/src/lib/utils/object/object-util.ts +0 -87
  133. package/src/lib/utils/render/on-demand-preload-strategy.service.ts +0 -25
  134. package/src/lib/utils/render/render.service.ts +0 -110
  135. package/src/lib/utils/render/rendering.module.ts +0 -25
  136. package/src/lib/utils/scroll/scroll.directive.ts +0 -35
  137. package/src/lib/utils/scroll/scroll.module.ts +0 -11
  138. package/src/lib/utils/separator/separator.module.ts +0 -11
  139. package/src/lib/utils/separator/separator.pipe.ts +0 -27
  140. package/src/test.ts +0 -28
  141. package/tsconfig.lib.json +0 -25
  142. package/tsconfig.lib.prod.json +0 -6
  143. package/tsconfig.spec.json +0 -18
  144. package/tslint.json +0 -17
@@ -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
+ }
@@ -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,10 @@
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@angular/common";
4
+ import * as i2 from "@angular/common/http";
5
+ export declare class AXHttpModule {
6
+ static forRoot(): ModuleWithProviders<AXHttpModule>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXHttpModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXHttpModule, never, [typeof i1.CommonModule, typeof i2.HttpClientModule], [typeof i2.HttpClientModule]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXHttpModule>;
10
+ }
@@ -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,8 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AXDateTimePipe implements PipeTransform {
4
+ constructor();
5
+ transform(value: any, format?: string): string;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXDateTimePipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<AXDateTimePipe, "dt">;
8
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AXHtmlToTextPipe implements PipeTransform {
4
+ transform(value: string): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXHtmlToTextPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<AXHtmlToTextPipe, "html2text">;
7
+ }
@@ -0,0 +1 @@
1
+ export * from './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 {
9
+ nativeEvent: UIEvent | Event;
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,9 @@
1
+ import { Observable } from 'rxjs';
2
+ export declare class AXConfig {
3
+ private static dataModel;
4
+ private static dataChangeSubject;
5
+ static get onChange(): Observable<any>;
6
+ static set(config: any): any;
7
+ static set(path: string, value?: any): void;
8
+ static get(path: string): any;
9
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class AXEventService {
3
+ private list;
4
+ broadcast(key: string, options?: any): void;
5
+ on(key: string, callback: (options?: any) => void): void;
6
+ destroy(key: string, callback: (options?: any) => void): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXEventService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXEventService>;
9
+ }
@@ -0,0 +1,8 @@
1
+ import { AXNavigatorParam } from '../classes/navigator.class';
2
+ import * as i0 from "@angular/core";
3
+ export declare abstract class AXNavigator {
4
+ abstract navigate(params: AXNavigatorParam): any;
5
+ abstract popup(params: AXNavigatorParam): any;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXNavigator, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXNavigator>;
8
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class AXStorageService {
3
+ get(key: string): any;
4
+ set(key: string, value: any): void;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXStorageService, never>;
6
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXStorageService>;
7
+ }
@@ -0,0 +1,9 @@
1
+ import { Observable } from 'rxjs';
2
+ export declare class AXTranslator {
3
+ private static lang;
4
+ private static dataChangeSubject;
5
+ static get onChange(): Observable<any>;
6
+ static load(lang: string, value: any): void;
7
+ static use(lang: string): void;
8
+ static get(key: string, lang?: string): string;
9
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./translator.pipe";
3
+ export declare class AXTranslatorModule {
4
+ constructor();
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXTranslatorModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXTranslatorModule, [typeof i1.AXTranslatorPipe], never, [typeof i1.AXTranslatorPipe]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXTranslatorModule>;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AXTranslatorPipe implements PipeTransform {
4
+ constructor();
5
+ transform(value: string, lang?: string): string;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXTranslatorPipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<AXTranslatorPipe, "trans">;
8
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class AXTranslatorService {
3
+ load(lang: string, value: any): void;
4
+ use(lang: string): void;
5
+ get(key: string, lang?: string): string;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXTranslatorService, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXTranslatorService>;
8
+ }
@@ -0,0 +1,6 @@
1
+ export declare class AXArrayUtil {
2
+ static pickRandom(array: any[]): any;
3
+ static insert(array: any[], index: any, ...rest: any[]): any[];
4
+ static range(min: number, max: number): number[];
5
+ static filter(array: any[], filters: any[]): any[];
6
+ }
@@ -0,0 +1,62 @@
1
+ export declare type AXPlacement = 'top-start' | 'top-middle' | 'top-end' | 'center-start' | 'center-end' | 'bottom-start' | 'bottom-middle' | 'bottom-end';
2
+ export interface AXIPoint {
3
+ x: number;
4
+ y: number;
5
+ }
6
+ export interface AXConnectedPosition {
7
+ originX: 'start' | 'center' | 'end';
8
+ originY: 'top' | 'center' | 'bottom';
9
+ overlayX: 'start' | 'center' | 'end';
10
+ overlayY: 'top' | 'center' | 'bottom';
11
+ weight?: number;
12
+ offsetX?: number;
13
+ offsetY?: number;
14
+ }
15
+ export declare class AXPoint implements AXIPoint {
16
+ x: number;
17
+ y: number;
18
+ constructor(x: number, y: number);
19
+ }
20
+ export interface AXClientRecCtor {
21
+ left?: number;
22
+ top?: number;
23
+ width?: number;
24
+ height?: number;
25
+ bottom?: number;
26
+ right?: number;
27
+ }
28
+ export declare class AXClientRec implements AXClientRecCtor {
29
+ private _left;
30
+ get left(): number;
31
+ set left(v: number);
32
+ private _top;
33
+ get top(): number;
34
+ set top(v: number);
35
+ private _right;
36
+ get right(): number;
37
+ set right(v: number);
38
+ private _bottom;
39
+ get bottom(): number;
40
+ set bottom(v: number);
41
+ private _width;
42
+ get width(): number;
43
+ set width(v: number);
44
+ private _height;
45
+ get height(): number;
46
+ set height(v: number);
47
+ constructor(rec: AXClientRecCtor);
48
+ intersect(rec: AXClientRecCtor): boolean;
49
+ }
50
+ export declare class AXHtmlUtil {
51
+ static getBoundingRectPoint(el: HTMLElement, placement: AXPlacement): AXPoint;
52
+ static isInRecPoint(pos: AXIPoint, rec: AXClientRecCtor): boolean;
53
+ static isInElementBound(pos: AXIPoint, element: HTMLElement): boolean;
54
+ static getDimensions(): {
55
+ width: number;
56
+ height: number;
57
+ };
58
+ static getOffsetRight(elem: HTMLElement): number;
59
+ static getUID(): string;
60
+ static getRelatedPosition(source: HTMLElement, placement: AXPlacement, target: HTMLElement, alignment: AXPlacement): AXIPoint;
61
+ static collision(a: HTMLElement, b: HTMLElement): boolean;
62
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "../../pipe/htmlToText.pipe";
3
+ import * as i2 from "@angular/common";
4
+ export declare class AXHtmlModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXHtmlModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXHtmlModule, [typeof i1.AXHtmlToTextPipe], [typeof i2.CommonModule], [typeof i1.AXHtmlToTextPipe]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXHtmlModule>;
8
+ }
@@ -0,0 +1,3 @@
1
+ export declare class AXMathUtil {
2
+ static randomRange(min: number, max: number): number;
3
+ }
@@ -0,0 +1,7 @@
1
+ export declare class AXObjectUtil {
2
+ static deepJSONClone(obj: any): any;
3
+ static deepCopy(obj: any): any;
4
+ }
5
+ export declare function AXFetchProp(obj: any, prop: string): any;
6
+ export declare function getPropByPath(obj: any, path: any, defaultVal?: any): any;
7
+ export declare function setPropByPath(obj: any, path: any, value: any): any;
@@ -0,0 +1,10 @@
1
+ import { Subject } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AXOnDemandPreloadService {
4
+ subject: Subject<string>;
5
+ tmp: string;
6
+ constructor();
7
+ startPreload(routePath: string): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXOnDemandPreloadService, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXOnDemandPreloadService>;
10
+ }
@@ -0,0 +1,18 @@
1
+ import { ApplicationRef, ComponentFactoryResolver, ComponentRef, Injector, Type, Compiler } from '@angular/core';
2
+ import { Router, Route } from '@angular/router';
3
+ import { AXOnDemandPreloadService } from './on-demand-preload-strategy.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class AXRenderService {
6
+ private appRef;
7
+ private router;
8
+ private componentFactoryResolver;
9
+ private compiler;
10
+ private modulePreloadService;
11
+ private injector;
12
+ constructor(appRef: ApplicationRef, router: Router, componentFactoryResolver: ComponentFactoryResolver, compiler: Compiler, modulePreloadService: AXOnDemandPreloadService, injector: Injector);
13
+ appendComponent<T>(componentClass: Type<T>, options?: any, location?: Element): ComponentRef<any>;
14
+ findLoadedComponentByRoute(path: string, timeoutTime?: number): Promise<Route>;
15
+ private _findLoadedComponentByRoute;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXRenderService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXRenderService>;
18
+ }
@@ -0,0 +1,8 @@
1
+ import { AXOnDemandPreloadService } from './on-demand-preload-strategy.service';
2
+ import * as i0 from "@angular/core";
3
+ export declare function getOnDemandPreloadServiceFactory(): AXOnDemandPreloadService;
4
+ export declare class AXRenderingModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXRenderingModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXRenderingModule, never, never, never>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXRenderingModule>;
8
+ }
@@ -0,0 +1,18 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AXHorizontalScrollDirective {
4
+ private el;
5
+ constructor(el: ElementRef<HTMLElement>);
6
+ scrollValue: number;
7
+ onMouseWheel(e: any): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXHorizontalScrollDirective, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AXHorizontalScrollDirective, "[horizontalScroll]", never, { "scrollValue": "horizontalScroll"; }, {}, never>;
10
+ }
11
+ export declare class AXVerticalScrollDirective {
12
+ private el;
13
+ constructor(el: ElementRef<HTMLElement>);
14
+ scrollValue: number;
15
+ onMouseWheel(e: any): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXVerticalScrollDirective, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AXVerticalScrollDirective, "[verticalScroll]", never, { "scrollValue": "verticalScroll"; }, {}, never>;
18
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./scroll.directive";
3
+ import * as i2 from "@angular/common";
4
+ export declare class AXScrollModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXScrollModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXScrollModule, [typeof i1.AXHorizontalScrollDirective, typeof i1.AXVerticalScrollDirective], [typeof i2.CommonModule], [typeof i1.AXHorizontalScrollDirective, typeof i1.AXVerticalScrollDirective]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXScrollModule>;
8
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./separator.pipe";
3
+ import * as i2 from "@angular/common";
4
+ export declare class AXSeparatorModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXSeparatorModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXSeparatorModule, [typeof i1.AXSeparatorPipe], [typeof i2.CommonModule], [typeof i1.AXSeparatorPipe]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXSeparatorModule>;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AXSeparatorPipe implements PipeTransform {
4
+ transform(value: number | string, currency?: string, decimal?: number, locale?: string): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXSeparatorPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<AXSeparatorPipe, "separator">;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXSeparatorPipe>;
8
+ }
package/package.json CHANGED
@@ -1,13 +1,33 @@
1
- {
2
- "name": "@acorex/core",
3
- "version": "6.5.28",
4
- "peerDependencies": {
5
- "@angular/common": "^13.3.8",
6
- "@angular/core": "^13.3.8",
7
- "rxjs": "~6.5.4"
8
- },
9
- "dependencies": {
10
- "jalali-moment": "3.3.3",
11
- "tslib": "^2.0.0"
12
- }
13
- }
1
+ {
2
+ "name": "@acorex/core",
3
+ "version": "6.5.30",
4
+ "peerDependencies": {
5
+ "@angular/common": "^13.3.8",
6
+ "@angular/core": "^13.3.8",
7
+ "rxjs": "~6.5.4"
8
+ },
9
+ "dependencies": {
10
+ "jalali-moment": "3.3.3",
11
+ "tslib": "^2.0.0"
12
+ },
13
+ "module": "fesm2015/acorex-core.mjs",
14
+ "es2020": "fesm2020/acorex-core.mjs",
15
+ "esm2020": "esm2020/acorex-core.mjs",
16
+ "fesm2020": "fesm2020/acorex-core.mjs",
17
+ "fesm2015": "fesm2015/acorex-core.mjs",
18
+ "typings": "acorex-core.d.ts",
19
+ "exports": {
20
+ "./package.json": {
21
+ "default": "./package.json"
22
+ },
23
+ ".": {
24
+ "types": "./acorex-core.d.ts",
25
+ "esm2020": "./esm2020/acorex-core.mjs",
26
+ "es2020": "./fesm2020/acorex-core.mjs",
27
+ "es2015": "./fesm2015/acorex-core.mjs",
28
+ "node": "./fesm2015/acorex-core.mjs",
29
+ "default": "./fesm2020/acorex-core.mjs"
30
+ }
31
+ },
32
+ "sideEffects": false
33
+ }
@@ -1,53 +1,43 @@
1
- export * from './lib/classes/color.class';
2
- export * from './lib/classes/datetime.class';
3
- export * from './lib/classes/menu.class';
4
- export * from './lib/classes/navigator.class';
5
- export * from './lib/classes/popup.class';
6
- export * from './lib/classes/promise.class';
7
- export * from './lib/classes/sectionlist.class';
8
- export * from './lib/classes/select.class';
9
- export * from './lib/classes/base-page.class';
10
-
11
- export * from './lib/error/error.class';
12
- export * from './lib/error/error.module';
13
- export * from './lib/error/error.service';
14
-
15
- export * from './lib/events/keyboard';
16
-
17
- export * from './lib/http/http-error.class';
18
- export * from './lib/http/http-events.interceptor';
19
- export * from './lib/http/http-request.class';
20
- export * from './lib/http/http-result.class';
21
- export * from './lib/http/http.module';
22
- export * from './lib/http/http.service';
23
-
24
- export * from './lib/platform/index';
25
-
26
- export * from './lib/pipe/datetime.pipe';
27
- export * from './lib/pipe/htmlToText.pipe';
28
-
29
- export * from './lib/services/event.service';
30
- export * from './lib/services/navigator.service';
31
- export * from './lib/services/storage.service';
32
- export * from './lib/services/config';
33
-
34
-
35
- export * from './lib/translator/translator.service';
36
- export * from './lib/translator/translator.pipe';
37
- export * from './lib/translator/translator';
38
- export * from './lib/translator/translator.module';
39
-
40
- export * from './lib/utils/array/array-util';
41
- export * from './lib/utils/html/html-util';
42
- export * from './lib/utils/html/html.module';
43
- export * from './lib/utils/math/math-util';
44
- export * from './lib/utils/object/object-util';
45
- export * from './lib/utils/render/render.service';
46
- export * from './lib/utils/render/on-demand-preload-strategy.service';
47
- export * from './lib/utils/render/rendering.module';
48
- export * from './lib/utils/scroll/scroll.directive';
49
- export * from './lib/utils/scroll/scroll.module';
50
- export * from './lib/utils/separator/separator.module';
51
- export * from './lib/utils/separator/separator.pipe';
52
- export * from './lib/core.module';
53
-
1
+ export * from './lib/classes/color.class';
2
+ export * from './lib/classes/datetime.class';
3
+ export * from './lib/classes/menu.class';
4
+ export * from './lib/classes/navigator.class';
5
+ export * from './lib/classes/popup.class';
6
+ export * from './lib/classes/promise.class';
7
+ export * from './lib/classes/sectionlist.class';
8
+ export * from './lib/classes/select.class';
9
+ export * from './lib/classes/base-page.class';
10
+ export * from './lib/error/error.class';
11
+ export * from './lib/error/error.module';
12
+ export * from './lib/error/error.service';
13
+ export * from './lib/events/keyboard';
14
+ export * from './lib/http/http-error.class';
15
+ export * from './lib/http/http-events.interceptor';
16
+ export * from './lib/http/http-request.class';
17
+ export * from './lib/http/http-result.class';
18
+ export * from './lib/http/http.module';
19
+ export * from './lib/http/http.service';
20
+ export * from './lib/platform/index';
21
+ export * from './lib/pipe/datetime.pipe';
22
+ export * from './lib/pipe/htmlToText.pipe';
23
+ export * from './lib/services/event.service';
24
+ export * from './lib/services/navigator.service';
25
+ export * from './lib/services/storage.service';
26
+ export * from './lib/services/config';
27
+ export * from './lib/translator/translator.service';
28
+ export * from './lib/translator/translator.pipe';
29
+ export * from './lib/translator/translator';
30
+ export * from './lib/translator/translator.module';
31
+ export * from './lib/utils/array/array-util';
32
+ export * from './lib/utils/html/html-util';
33
+ export * from './lib/utils/html/html.module';
34
+ export * from './lib/utils/math/math-util';
35
+ export * from './lib/utils/object/object-util';
36
+ export * from './lib/utils/render/render.service';
37
+ export * from './lib/utils/render/on-demand-preload-strategy.service';
38
+ export * from './lib/utils/render/rendering.module';
39
+ export * from './lib/utils/scroll/scroll.directive';
40
+ export * from './lib/utils/scroll/scroll.module';
41
+ export * from './lib/utils/separator/separator.module';
42
+ export * from './lib/utils/separator/separator.pipe';
43
+ export * from './lib/core.module';
package/karma.conf.js DELETED
@@ -1,32 +0,0 @@
1
- // Karma configuration file, see link for more information
2
- // https://karma-runner.github.io/1.0/config/configuration-file.html
3
-
4
- module.exports = function (config) {
5
- config.set({
6
- basePath: '',
7
- frameworks: ['jasmine', '@angular-devkit/build-angular'],
8
- plugins: [
9
- require('karma-jasmine'),
10
- require('karma-chrome-launcher'),
11
- require('karma-jasmine-html-reporter'),
12
- require('karma-coverage-istanbul-reporter'),
13
- require('@angular-devkit/build-angular/plugins/karma')
14
- ],
15
- client: {
16
- clearContext: false // leave Jasmine Spec Runner output visible in browser
17
- },
18
- coverageIstanbulReporter: {
19
- dir: require('path').join(__dirname, '../../../coverage/acorex/core'),
20
- reports: ['html', 'lcovonly', 'text-summary'],
21
- fixWebpackSourcePaths: true
22
- },
23
- reporters: ['progress', 'kjhtml'],
24
- port: 9876,
25
- colors: true,
26
- logLevel: config.LOG_INFO,
27
- autoWatch: true,
28
- browsers: ['Chrome'],
29
- singleRun: false,
30
- restartOnFileChange: true
31
- });
32
- };
package/ng-package.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "$schema": "../../../node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "../../../dist/acorex/core",
4
- "lib": {
5
- "entryFile": "src/public-api.ts"
6
- },
7
- "allowedNonPeerDependencies": [
8
- "jalali-moment"
9
- ]
10
- }
@@ -1,29 +0,0 @@
1
- import { EventEmitter, Injectable } from '@angular/core';
2
-
3
- /**
4
- * @deprecated Use AXBasePageComponent from @acorex/components
5
- */
6
- // TODO: Add Angular decorator.
7
- @Injectable()
8
- export abstract class AXBasePageComponent {
9
-
10
- onClosed: EventEmitter<any> = new EventEmitter<any>();
11
-
12
- close(data?: any) {
13
- this.onClosed.emit({
14
- component: this,
15
- data: data
16
- });
17
- }
18
-
19
- onClosing(e: any): void | Promise<void> {
20
- }
21
-
22
- ngOnDestroy() {
23
- this.onClosed.unsubscribe();
24
- }
25
-
26
-
27
- }
28
-
29
-