@acorex/core 6.1.12 → 6.5.0
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.
- package/README.md +2 -23
- package/{index.d.ts → acorex-core.d.ts} +0 -0
- package/esm2020/acorex-core.mjs +1 -1
- package/esm2020/lib/classes/base-page.class.mjs +28 -0
- package/esm2020/lib/classes/color.class.mjs +49 -0
- package/esm2020/lib/classes/datetime.class.mjs +314 -0
- package/esm2020/lib/classes/menu.class.mjs +27 -0
- package/esm2020/lib/classes/navigator.class.mjs +2 -0
- package/esm2020/lib/classes/popup.class.mjs +2 -0
- package/esm2020/lib/classes/promise.class.mjs +19 -0
- package/esm2020/lib/classes/sectionlist.class.mjs +2 -0
- package/esm2020/lib/classes/select.class.mjs +3 -0
- package/esm2020/lib/core.module.mjs +27 -0
- package/esm2020/lib/error/error.class.mjs +2 -0
- package/esm2020/lib/error/error.module.mjs +19 -0
- package/esm2020/lib/error/error.service.mjs +21 -0
- package/esm2020/lib/events/keyboard.mjs +2 -0
- package/esm2020/lib/http/http-error.class.mjs +2 -0
- package/esm2020/lib/http/http-events.interceptor.mjs +3 -0
- package/esm2020/lib/http/http-request.class.mjs +2 -0
- package/esm2020/lib/http/http-result.class.mjs +21 -0
- package/esm2020/lib/http/http.module.mjs +37 -0
- package/esm2020/lib/http/http.service.mjs +145 -0
- package/esm2020/lib/locale/en.json +255 -0
- package/esm2020/lib/locale/fa.json +244 -0
- package/esm2020/lib/pipe/datetime.pipe.mjs +25 -0
- package/esm2020/lib/pipe/htmlToText.pipe.mjs +25 -0
- package/esm2020/lib/platform/index.mjs +2 -0
- package/esm2020/lib/platform/platform.service.mjs +138 -0
- package/esm2020/lib/services/config.mjs +29 -0
- package/esm2020/lib/services/event.service.mjs +36 -0
- package/esm2020/lib/services/navigator.service.mjs +10 -0
- package/esm2020/lib/services/storage.service.mjs +16 -0
- package/esm2020/lib/translator/translator.mjs +26 -0
- package/esm2020/lib/translator/translator.module.mjs +25 -0
- package/esm2020/lib/translator/translator.pipe.mjs +24 -0
- package/esm2020/lib/translator/translator.service.mjs +21 -0
- package/esm2020/lib/utils/array/array-util.mjs +133 -0
- package/esm2020/lib/utils/html/html-util.mjs +192 -0
- package/esm2020/lib/utils/html/html.module.mjs +19 -0
- package/esm2020/lib/utils/math/math-util.mjs +6 -0
- package/esm2020/lib/utils/object/object-util.mjs +83 -0
- package/esm2020/lib/utils/render/on-demand-preload-strategy.service.mjs +20 -0
- package/esm2020/lib/utils/render/render.service.mjs +103 -0
- package/esm2020/lib/utils/render/rendering.module.mjs +35 -0
- package/esm2020/lib/utils/scroll/scroll.directive.mjs +54 -0
- package/esm2020/lib/utils/scroll/scroll.module.mjs +19 -0
- package/esm2020/lib/utils/separator/separator.module.mjs +19 -0
- package/esm2020/lib/utils/separator/separator.pipe.mjs +33 -0
- package/esm2020/public-api.mjs +44 -5
- package/fesm2015/acorex-core.mjs +2254 -4
- package/fesm2015/acorex-core.mjs.map +1 -1
- package/fesm2020/acorex-core.mjs +2250 -4
- package/fesm2020/acorex-core.mjs.map +1 -1
- package/lib/classes/base-page.class.d.ts +13 -0
- package/lib/classes/color.class.d.ts +17 -0
- package/lib/classes/datetime.class.d.ts +63 -0
- package/lib/classes/menu.class.d.ts +34 -0
- package/lib/classes/navigator.class.d.ts +5 -0
- package/lib/classes/popup.class.d.ts +12 -0
- package/lib/classes/promise.class.d.ts +7 -0
- package/lib/classes/sectionlist.class.d.ts +8 -0
- package/lib/classes/select.class.d.ts +7 -0
- package/lib/core.module.d.ts +9 -0
- package/lib/error/error.class.d.ts +4 -0
- package/lib/error/error.module.d.ts +7 -0
- package/lib/error/error.service.d.ts +13 -0
- package/lib/events/keyboard.d.ts +2 -0
- package/{http/src → lib/http}/http-error.class.d.ts +0 -0
- package/{http/src → lib/http}/http-events.interceptor.d.ts +0 -0
- package/{http/src → lib/http}/http-request.class.d.ts +0 -0
- package/{http/src → lib/http}/http-result.class.d.ts +0 -0
- package/{http/src → lib/http}/http.module.d.ts +2 -0
- package/{http/src → lib/http}/http.service.d.ts +0 -0
- package/{dateTime/src → lib/pipe}/datetime.pipe.d.ts +2 -2
- package/lib/pipe/htmlToText.pipe.d.ts +7 -0
- package/lib/platform/index.d.ts +1 -0
- package/{platform/src → lib/platform}/platform.service.d.ts +4 -5
- package/{config/src/configs.d.ts → lib/services/config.d.ts} +1 -1
- package/{events/src → lib/services}/event.service.d.ts +0 -0
- package/lib/services/navigator.service.d.ts +8 -0
- package/lib/services/storage.service.d.ts +7 -0
- package/{translation/src → lib/translator}/translator.d.ts +1 -3
- package/lib/translator/translator.module.d.ts +8 -0
- package/{translation/src → lib/translator}/translator.pipe.d.ts +3 -2
- package/lib/translator/translator.service.d.ts +8 -0
- package/lib/utils/array/array-util.d.ts +6 -0
- package/lib/utils/html/html-util.d.ts +62 -0
- package/lib/utils/html/html.module.d.ts +8 -0
- package/lib/utils/math/math-util.d.ts +3 -0
- package/lib/utils/object/object-util.d.ts +7 -0
- package/lib/utils/render/on-demand-preload-strategy.service.d.ts +10 -0
- package/lib/utils/render/render.service.d.ts +18 -0
- package/lib/utils/render/rendering.module.d.ts +8 -0
- package/lib/utils/scroll/scroll.directive.d.ts +18 -0
- package/lib/utils/scroll/scroll.module.d.ts +8 -0
- package/lib/utils/separator/separator.module.d.ts +8 -0
- package/lib/utils/separator/separator.pipe.d.ts +8 -0
- package/package.json +9 -98
- package/public-api.d.ts +43 -1
- package/config/index.d.ts +0 -5
- package/config/public-api.d.ts +0 -1
- package/dateTime/index.d.ts +0 -5
- package/dateTime/public-api.d.ts +0 -5
- package/dateTime/src/datetime.class.d.ts +0 -100
- package/dateTime/src/datetime.module.d.ts +0 -8
- package/dateTime/src/georgian.calendar.d.ts +0 -20
- package/dateTime/src/jalali.calendar.d.ts +0 -35
- package/esm2020/config/acorex-core-config.mjs +0 -5
- package/esm2020/config/public-api.mjs +0 -2
- package/esm2020/config/src/configs.mjs +0 -32
- package/esm2020/dateTime/acorex-core-dateTime.mjs +0 -5
- package/esm2020/dateTime/public-api.mjs +0 -6
- package/esm2020/dateTime/src/datetime.class.mjs +0 -288
- package/esm2020/dateTime/src/datetime.module.mjs +0 -39
- package/esm2020/dateTime/src/datetime.pipe.mjs +0 -26
- package/esm2020/dateTime/src/georgian.calendar.mjs +0 -189
- package/esm2020/dateTime/src/jalali.calendar.mjs +0 -359
- package/esm2020/events/acorex-core-events.mjs +0 -5
- package/esm2020/events/public-api.mjs +0 -2
- package/esm2020/events/src/event.service.mjs +0 -36
- package/esm2020/file/acorex-core-file.mjs +0 -5
- package/esm2020/file/public-api.mjs +0 -5
- package/esm2020/file/src/file-download-ref.class.mjs +0 -12
- package/esm2020/file/src/file-download-result.class.mjs +0 -47
- package/esm2020/file/src/file-upload-ref.class.mjs +0 -12
- package/esm2020/file/src/file.service.mjs +0 -101
- package/esm2020/http/acorex-core-http.mjs +0 -5
- package/esm2020/http/public-api.mjs +0 -6
- package/esm2020/http/src/http-error.class.mjs +0 -2
- package/esm2020/http/src/http-events.interceptor.mjs +0 -3
- package/esm2020/http/src/http-request.class.mjs +0 -2
- package/esm2020/http/src/http-result.class.mjs +0 -21
- package/esm2020/http/src/http.module.mjs +0 -29
- package/esm2020/http/src/http.service.mjs +0 -148
- package/esm2020/image/acorex-core-image.mjs +0 -5
- package/esm2020/image/public-api.mjs +0 -2
- package/esm2020/image/src/image.service.mjs +0 -43
- package/esm2020/pipes/acorex-core-pipes.mjs +0 -5
- package/esm2020/pipes/public-api.mjs +0 -3
- package/esm2020/pipes/src/pipes.module.mjs +0 -19
- package/esm2020/pipes/src/safe.pipe.mjs +0 -30
- package/esm2020/platform/acorex-core-platform.mjs +0 -5
- package/esm2020/platform/public-api.mjs +0 -2
- package/esm2020/platform/src/platform.service.mjs +0 -151
- package/esm2020/translation/acorex-core-translation.mjs +0 -5
- package/esm2020/translation/public-api.mjs +0 -4
- package/esm2020/translation/src/translation.module.mjs +0 -18
- package/esm2020/translation/src/translator.mjs +0 -43
- package/esm2020/translation/src/translator.pipe.mjs +0 -15
- package/esm2020/utils/acorex-core-utils.mjs +0 -5
- package/esm2020/utils/public-api.mjs +0 -5
- package/esm2020/utils/src/color-util.mjs +0 -71
- package/esm2020/utils/src/drawing-util.mjs +0 -27
- package/esm2020/utils/src/object-util.mjs +0 -39
- package/esm2020/utils/src/string-util.mjs +0 -19
- package/events/index.d.ts +0 -5
- package/events/public-api.d.ts +0 -1
- package/fesm2015/acorex-core-config.mjs +0 -39
- package/fesm2015/acorex-core-config.mjs.map +0 -1
- package/fesm2015/acorex-core-dateTime.mjs +0 -898
- package/fesm2015/acorex-core-dateTime.mjs.map +0 -1
- package/fesm2015/acorex-core-events.mjs +0 -43
- package/fesm2015/acorex-core-events.mjs.map +0 -1
- package/fesm2015/acorex-core-file.mjs +0 -176
- package/fesm2015/acorex-core-file.mjs.map +0 -1
- package/fesm2015/acorex-core-http.mjs +0 -202
- package/fesm2015/acorex-core-http.mjs.map +0 -1
- package/fesm2015/acorex-core-image.mjs +0 -53
- package/fesm2015/acorex-core-image.mjs.map +0 -1
- package/fesm2015/acorex-core-pipes.mjs +0 -53
- package/fesm2015/acorex-core-pipes.mjs.map +0 -1
- package/fesm2015/acorex-core-platform.mjs +0 -158
- package/fesm2015/acorex-core-platform.mjs.map +0 -1
- package/fesm2015/acorex-core-translation.mjs +0 -80
- package/fesm2015/acorex-core-translation.mjs.map +0 -1
- package/fesm2015/acorex-core-utils.mjs +0 -163
- package/fesm2015/acorex-core-utils.mjs.map +0 -1
- package/fesm2020/acorex-core-config.mjs +0 -39
- package/fesm2020/acorex-core-config.mjs.map +0 -1
- package/fesm2020/acorex-core-dateTime.mjs +0 -898
- package/fesm2020/acorex-core-dateTime.mjs.map +0 -1
- package/fesm2020/acorex-core-events.mjs +0 -43
- package/fesm2020/acorex-core-events.mjs.map +0 -1
- package/fesm2020/acorex-core-file.mjs +0 -176
- package/fesm2020/acorex-core-file.mjs.map +0 -1
- package/fesm2020/acorex-core-http.mjs +0 -201
- package/fesm2020/acorex-core-http.mjs.map +0 -1
- package/fesm2020/acorex-core-image.mjs +0 -50
- package/fesm2020/acorex-core-image.mjs.map +0 -1
- package/fesm2020/acorex-core-pipes.mjs +0 -53
- package/fesm2020/acorex-core-pipes.mjs.map +0 -1
- package/fesm2020/acorex-core-platform.mjs +0 -158
- package/fesm2020/acorex-core-platform.mjs.map +0 -1
- package/fesm2020/acorex-core-translation.mjs +0 -79
- package/fesm2020/acorex-core-translation.mjs.map +0 -1
- package/fesm2020/acorex-core-utils.mjs +0 -163
- package/fesm2020/acorex-core-utils.mjs.map +0 -1
- package/file/index.d.ts +0 -5
- package/file/public-api.d.ts +0 -4
- package/file/src/file-download-ref.class.d.ts +0 -6
- package/file/src/file-download-result.class.d.ts +0 -8
- package/file/src/file-upload-ref.class.d.ts +0 -5
- package/file/src/file.service.d.ts +0 -18
- package/http/index.d.ts +0 -5
- package/http/public-api.d.ts +0 -5
- package/image/index.d.ts +0 -5
- package/image/public-api.d.ts +0 -1
- package/image/src/image.service.d.ts +0 -12
- package/pipes/index.d.ts +0 -5
- package/pipes/public-api.d.ts +0 -2
- package/pipes/src/pipes.module.d.ts +0 -8
- package/pipes/src/safe.pipe.d.ts +0 -10
- package/platform/index.d.ts +0 -5
- package/platform/public-api.d.ts +0 -1
- package/translation/index.d.ts +0 -5
- package/translation/public-api.d.ts +0 -3
- package/translation/src/translation.module.d.ts +0 -7
- package/utils/index.d.ts +0 -5
- package/utils/public-api.d.ts +0 -4
- package/utils/src/color-util.d.ts +0 -20
- package/utils/src/drawing-util.d.ts +0 -17
- package/utils/src/object-util.d.ts +0 -4
- package/utils/src/string-util.d.ts +0 -6
|
File without changes
|
|
@@ -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
|
+
}
|
|
@@ -2,10 +2,8 @@ import { Observable } from 'rxjs';
|
|
|
2
2
|
export declare class AXTranslator {
|
|
3
3
|
private static lang;
|
|
4
4
|
private static dataChangeSubject;
|
|
5
|
-
private static _varsRegx;
|
|
6
|
-
private static _varNameRegx;
|
|
7
5
|
static get onChange(): Observable<any>;
|
|
8
6
|
static load(lang: string, value: any): void;
|
|
9
7
|
static use(lang: string): void;
|
|
10
|
-
static get(key: string,
|
|
8
|
+
static get(key: string, lang?: string): string;
|
|
11
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
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class AXTranslatorPipe implements PipeTransform {
|
|
4
|
-
|
|
4
|
+
constructor();
|
|
5
|
+
transform(value: string, lang?: string): string;
|
|
5
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXTranslatorPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<AXTranslatorPipe, "trans"
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<AXTranslatorPipe, "trans">;
|
|
7
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,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,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,121 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex/core",
|
|
3
|
-
"version": "6.
|
|
4
|
-
"dependencies": {
|
|
5
|
-
"tslib": "^2.3.0"
|
|
6
|
-
},
|
|
3
|
+
"version": "6.5.0",
|
|
7
4
|
"peerDependencies": {
|
|
8
|
-
"@angular/common": "^
|
|
9
|
-
"@angular/core": "^
|
|
10
|
-
"
|
|
11
|
-
"tinycolor2": "^1.4.2",
|
|
12
|
-
"tinygradient": "^1.1.5"
|
|
5
|
+
"@angular/common": "^13.3.8",
|
|
6
|
+
"@angular/core": "^13.3.8",
|
|
7
|
+
"rxjs": "~6.5.4"
|
|
13
8
|
},
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
"tinygradient": {
|
|
19
|
-
"optional": true
|
|
20
|
-
}
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"jalali-moment": "3.3.3",
|
|
11
|
+
"tslib": "^2.0.0"
|
|
21
12
|
},
|
|
22
13
|
"module": "fesm2015/acorex-core.mjs",
|
|
23
14
|
"es2020": "fesm2020/acorex-core.mjs",
|
|
24
15
|
"esm2020": "esm2020/acorex-core.mjs",
|
|
25
16
|
"fesm2020": "fesm2020/acorex-core.mjs",
|
|
26
17
|
"fesm2015": "fesm2015/acorex-core.mjs",
|
|
27
|
-
"typings": "
|
|
18
|
+
"typings": "acorex-core.d.ts",
|
|
28
19
|
"exports": {
|
|
29
20
|
"./package.json": {
|
|
30
21
|
"default": "./package.json"
|
|
31
22
|
},
|
|
32
23
|
".": {
|
|
33
|
-
"types": "./
|
|
24
|
+
"types": "./acorex-core.d.ts",
|
|
34
25
|
"esm2020": "./esm2020/acorex-core.mjs",
|
|
35
26
|
"es2020": "./fesm2020/acorex-core.mjs",
|
|
36
27
|
"es2015": "./fesm2015/acorex-core.mjs",
|
|
37
28
|
"node": "./fesm2015/acorex-core.mjs",
|
|
38
29
|
"default": "./fesm2020/acorex-core.mjs"
|
|
39
|
-
},
|
|
40
|
-
"./config": {
|
|
41
|
-
"types": "./config/index.d.ts",
|
|
42
|
-
"esm2020": "./esm2020/config/acorex-core-config.mjs",
|
|
43
|
-
"es2020": "./fesm2020/acorex-core-config.mjs",
|
|
44
|
-
"es2015": "./fesm2015/acorex-core-config.mjs",
|
|
45
|
-
"node": "./fesm2015/acorex-core-config.mjs",
|
|
46
|
-
"default": "./fesm2020/acorex-core-config.mjs"
|
|
47
|
-
},
|
|
48
|
-
"./dateTime": {
|
|
49
|
-
"types": "./dateTime/index.d.ts",
|
|
50
|
-
"esm2020": "./esm2020/dateTime/acorex-core-dateTime.mjs",
|
|
51
|
-
"es2020": "./fesm2020/acorex-core-dateTime.mjs",
|
|
52
|
-
"es2015": "./fesm2015/acorex-core-dateTime.mjs",
|
|
53
|
-
"node": "./fesm2015/acorex-core-dateTime.mjs",
|
|
54
|
-
"default": "./fesm2020/acorex-core-dateTime.mjs"
|
|
55
|
-
},
|
|
56
|
-
"./events": {
|
|
57
|
-
"types": "./events/index.d.ts",
|
|
58
|
-
"esm2020": "./esm2020/events/acorex-core-events.mjs",
|
|
59
|
-
"es2020": "./fesm2020/acorex-core-events.mjs",
|
|
60
|
-
"es2015": "./fesm2015/acorex-core-events.mjs",
|
|
61
|
-
"node": "./fesm2015/acorex-core-events.mjs",
|
|
62
|
-
"default": "./fesm2020/acorex-core-events.mjs"
|
|
63
|
-
},
|
|
64
|
-
"./file": {
|
|
65
|
-
"types": "./file/index.d.ts",
|
|
66
|
-
"esm2020": "./esm2020/file/acorex-core-file.mjs",
|
|
67
|
-
"es2020": "./fesm2020/acorex-core-file.mjs",
|
|
68
|
-
"es2015": "./fesm2015/acorex-core-file.mjs",
|
|
69
|
-
"node": "./fesm2015/acorex-core-file.mjs",
|
|
70
|
-
"default": "./fesm2020/acorex-core-file.mjs"
|
|
71
|
-
},
|
|
72
|
-
"./http": {
|
|
73
|
-
"types": "./http/index.d.ts",
|
|
74
|
-
"esm2020": "./esm2020/http/acorex-core-http.mjs",
|
|
75
|
-
"es2020": "./fesm2020/acorex-core-http.mjs",
|
|
76
|
-
"es2015": "./fesm2015/acorex-core-http.mjs",
|
|
77
|
-
"node": "./fesm2015/acorex-core-http.mjs",
|
|
78
|
-
"default": "./fesm2020/acorex-core-http.mjs"
|
|
79
|
-
},
|
|
80
|
-
"./image": {
|
|
81
|
-
"types": "./image/index.d.ts",
|
|
82
|
-
"esm2020": "./esm2020/image/acorex-core-image.mjs",
|
|
83
|
-
"es2020": "./fesm2020/acorex-core-image.mjs",
|
|
84
|
-
"es2015": "./fesm2015/acorex-core-image.mjs",
|
|
85
|
-
"node": "./fesm2015/acorex-core-image.mjs",
|
|
86
|
-
"default": "./fesm2020/acorex-core-image.mjs"
|
|
87
|
-
},
|
|
88
|
-
"./pipes": {
|
|
89
|
-
"types": "./pipes/index.d.ts",
|
|
90
|
-
"esm2020": "./esm2020/pipes/acorex-core-pipes.mjs",
|
|
91
|
-
"es2020": "./fesm2020/acorex-core-pipes.mjs",
|
|
92
|
-
"es2015": "./fesm2015/acorex-core-pipes.mjs",
|
|
93
|
-
"node": "./fesm2015/acorex-core-pipes.mjs",
|
|
94
|
-
"default": "./fesm2020/acorex-core-pipes.mjs"
|
|
95
|
-
},
|
|
96
|
-
"./platform": {
|
|
97
|
-
"types": "./platform/index.d.ts",
|
|
98
|
-
"esm2020": "./esm2020/platform/acorex-core-platform.mjs",
|
|
99
|
-
"es2020": "./fesm2020/acorex-core-platform.mjs",
|
|
100
|
-
"es2015": "./fesm2015/acorex-core-platform.mjs",
|
|
101
|
-
"node": "./fesm2015/acorex-core-platform.mjs",
|
|
102
|
-
"default": "./fesm2020/acorex-core-platform.mjs"
|
|
103
|
-
},
|
|
104
|
-
"./translation": {
|
|
105
|
-
"types": "./translation/index.d.ts",
|
|
106
|
-
"esm2020": "./esm2020/translation/acorex-core-translation.mjs",
|
|
107
|
-
"es2020": "./fesm2020/acorex-core-translation.mjs",
|
|
108
|
-
"es2015": "./fesm2015/acorex-core-translation.mjs",
|
|
109
|
-
"node": "./fesm2015/acorex-core-translation.mjs",
|
|
110
|
-
"default": "./fesm2020/acorex-core-translation.mjs"
|
|
111
|
-
},
|
|
112
|
-
"./utils": {
|
|
113
|
-
"types": "./utils/index.d.ts",
|
|
114
|
-
"esm2020": "./esm2020/utils/acorex-core-utils.mjs",
|
|
115
|
-
"es2020": "./fesm2020/acorex-core-utils.mjs",
|
|
116
|
-
"es2015": "./fesm2015/acorex-core-utils.mjs",
|
|
117
|
-
"node": "./fesm2015/acorex-core-utils.mjs",
|
|
118
|
-
"default": "./fesm2020/acorex-core-utils.mjs"
|
|
119
30
|
}
|
|
120
31
|
},
|
|
121
32
|
"sideEffects": false
|
package/public-api.d.ts
CHANGED
|
@@ -1 +1,43 @@
|
|
|
1
|
-
export
|
|
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/config/index.d.ts
DELETED
package/config/public-api.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/configs';
|
package/dateTime/index.d.ts
DELETED
package/dateTime/public-api.d.ts
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
export declare type TimeUnit = 'ms' | 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' | 'week';
|
|
2
|
-
export interface AXDateValue {
|
|
3
|
-
year: number;
|
|
4
|
-
month: number;
|
|
5
|
-
date: number;
|
|
6
|
-
hours?: number;
|
|
7
|
-
minutes?: number;
|
|
8
|
-
seconds?: number;
|
|
9
|
-
ms?: number;
|
|
10
|
-
calendar: string;
|
|
11
|
-
}
|
|
12
|
-
export interface AXCalendar {
|
|
13
|
-
monthNames: string[];
|
|
14
|
-
monthShortNames: string[];
|
|
15
|
-
dayNames: string[];
|
|
16
|
-
dayShortNames: string[];
|
|
17
|
-
name(): string;
|
|
18
|
-
dayOfMonth(date: Date): number;
|
|
19
|
-
dayOfYear(date: Date): number;
|
|
20
|
-
dayOfWeek(date: Date): number;
|
|
21
|
-
monthOfYear(date: Date): number;
|
|
22
|
-
weekOfYear(date: Date): number;
|
|
23
|
-
year(date: Date): number;
|
|
24
|
-
add(date: Date, unit: TimeUnit, amount: number): AXDateTime;
|
|
25
|
-
set(date: Date, unit: TimeUnit, value: number): AXDateTime;
|
|
26
|
-
startOf(date: Date, unit: TimeUnit): AXDateTime;
|
|
27
|
-
endOf(date: Date, unit: TimeUnit): AXDateTime;
|
|
28
|
-
create(value: AXDateValue): AXDateTime;
|
|
29
|
-
}
|
|
30
|
-
export declare class AXDateTime {
|
|
31
|
-
static convert(value: Date | AXDateTime | string, calendar?: string): AXDateTime;
|
|
32
|
-
static from(value?: AXDateValue): AXDateTime;
|
|
33
|
-
static resolveCalendar(calendar: string | AXCalendar): AXCalendar;
|
|
34
|
-
private _date;
|
|
35
|
-
get date(): Date;
|
|
36
|
-
private _calendar;
|
|
37
|
-
get calendar(): AXCalendar;
|
|
38
|
-
constructor(value?: Date | string, calendar?: string | AXCalendar);
|
|
39
|
-
clone(): AXDateTime;
|
|
40
|
-
get dayOfMonth(): number;
|
|
41
|
-
get dayOfYear(): number;
|
|
42
|
-
get dayOfWeek(): number;
|
|
43
|
-
get hour(): number;
|
|
44
|
-
get minute(): number;
|
|
45
|
-
get second(): number;
|
|
46
|
-
get year(): number;
|
|
47
|
-
get monthOfYear(): number;
|
|
48
|
-
get weekOfYear(): number;
|
|
49
|
-
get month(): AXCalendarMonth;
|
|
50
|
-
add(unit: TimeUnit, amount: number): AXDateTime;
|
|
51
|
-
set(unit: TimeUnit, value: number): AXDateTime;
|
|
52
|
-
duration(end: Date | AXDateTime, unit?: TimeUnit): AXTimeSpan;
|
|
53
|
-
startOf(unit?: TimeUnit): AXDateTime;
|
|
54
|
-
endOf(unit?: TimeUnit): AXDateTime;
|
|
55
|
-
private _formatKeys;
|
|
56
|
-
format(format?: string): string;
|
|
57
|
-
private pad;
|
|
58
|
-
toString(format?: string): string;
|
|
59
|
-
equal(value: Date | AXDateTime, unit?: TimeUnit): boolean;
|
|
60
|
-
compare(value: Date | AXDateTime, unit?: TimeUnit): number;
|
|
61
|
-
convert(calendar: string): AXDateTime;
|
|
62
|
-
}
|
|
63
|
-
export declare class AXCalendarMonth {
|
|
64
|
-
private _range;
|
|
65
|
-
get range(): AXDateTimeRange;
|
|
66
|
-
set range(v: AXDateTimeRange);
|
|
67
|
-
constructor(date: AXDateTime);
|
|
68
|
-
private readonly index;
|
|
69
|
-
private readonly name;
|
|
70
|
-
}
|
|
71
|
-
export interface AXTimeSpanTotal {
|
|
72
|
-
miliseconds: number;
|
|
73
|
-
seconds: number;
|
|
74
|
-
minutes: number;
|
|
75
|
-
hours: number;
|
|
76
|
-
days: number;
|
|
77
|
-
weeks: number;
|
|
78
|
-
months: number;
|
|
79
|
-
years: number;
|
|
80
|
-
}
|
|
81
|
-
export interface AXTimeSpan {
|
|
82
|
-
miliseconds: number;
|
|
83
|
-
seconds: number;
|
|
84
|
-
minutes: number;
|
|
85
|
-
hours: number;
|
|
86
|
-
days: number;
|
|
87
|
-
months: number;
|
|
88
|
-
years: number;
|
|
89
|
-
total: AXTimeSpanTotal;
|
|
90
|
-
}
|
|
91
|
-
export declare class AXDateTimeRange {
|
|
92
|
-
private _startTime;
|
|
93
|
-
private _endTime;
|
|
94
|
-
get startTime(): AXDateTime;
|
|
95
|
-
get endTime(): AXDateTime;
|
|
96
|
-
constructor(startTime: AXDateTime, endTime: AXDateTime);
|
|
97
|
-
duration(): AXTimeSpan;
|
|
98
|
-
enumurate(unit?: TimeUnit, amount?: number): AXDateTime[];
|
|
99
|
-
includes(value: AXDateTime, unit?: TimeUnit): boolean;
|
|
100
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./datetime.pipe";
|
|
3
|
-
export declare class AXDateTimeModule {
|
|
4
|
-
constructor();
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXDateTimeModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXDateTimeModule, [typeof i1.AXDateTimePipe], never, [typeof i1.AXDateTimePipe]>;
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AXDateTimeModule>;
|
|
8
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { AXCalendar, AXDateTime, AXDateValue, TimeUnit } from "./datetime.class";
|
|
2
|
-
export declare class GeorgianCalendar implements AXCalendar {
|
|
3
|
-
monthNames: string[];
|
|
4
|
-
monthShortNames: string[];
|
|
5
|
-
dayNames: string[];
|
|
6
|
-
dayShortNames: string[];
|
|
7
|
-
create(value: AXDateValue): AXDateTime;
|
|
8
|
-
name(): string;
|
|
9
|
-
dayOfMonth(date: Date): number;
|
|
10
|
-
dayOfYear(date: Date): number;
|
|
11
|
-
dayOfWeek(date: Date): number;
|
|
12
|
-
weekOfYear(date: Date): number;
|
|
13
|
-
year(date: Date): number;
|
|
14
|
-
monthOfYear(date: Date): number;
|
|
15
|
-
add(date: Date, unit: TimeUnit, amount: number): AXDateTime;
|
|
16
|
-
set(date: Date, unit: TimeUnit, value: number): AXDateTime;
|
|
17
|
-
startOf(date: Date, unit: TimeUnit): AXDateTime;
|
|
18
|
-
endOf(date: Date, unit: TimeUnit): AXDateTime;
|
|
19
|
-
isLeap(date: Date): boolean;
|
|
20
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { AXCalendar, AXDateTime, AXDateValue, TimeUnit } from "./datetime.class";
|
|
2
|
-
export declare class JalaliCalendar implements AXCalendar {
|
|
3
|
-
monthNames: string[];
|
|
4
|
-
monthShortNames: string[];
|
|
5
|
-
dayNames: string[];
|
|
6
|
-
dayShortNames: string[];
|
|
7
|
-
create(value: AXDateValue): AXDateTime;
|
|
8
|
-
name(): string;
|
|
9
|
-
dayOfMonth(date: Date): number;
|
|
10
|
-
dayOfYear(date: Date): number;
|
|
11
|
-
dayOfWeek(date: Date): number;
|
|
12
|
-
weekOfYear(date: Date): number;
|
|
13
|
-
year(date: Date): number;
|
|
14
|
-
monthOfYear(date: Date): number;
|
|
15
|
-
add(date: Date, unit: TimeUnit, amount: number): AXDateTime;
|
|
16
|
-
set(date: Date, unit: TimeUnit, value: number): AXDateTime;
|
|
17
|
-
startOf(date: Date, unit: TimeUnit): AXDateTime;
|
|
18
|
-
endOf(date: Date, unit: TimeUnit): AXDateTime;
|
|
19
|
-
toJalali(date: Date): {
|
|
20
|
-
year: number;
|
|
21
|
-
month: number;
|
|
22
|
-
day: number;
|
|
23
|
-
};
|
|
24
|
-
toGregorian(jy: any, jm: any, jd: any): Date;
|
|
25
|
-
isValid(jy: any, jm: any, jd: any): boolean;
|
|
26
|
-
isLeapYear(jy: any): boolean;
|
|
27
|
-
monthLength(jy: any, jm: any): 31 | 30 | 29;
|
|
28
|
-
private jalCal;
|
|
29
|
-
private j2d;
|
|
30
|
-
private d2j;
|
|
31
|
-
private g2d;
|
|
32
|
-
private d2g;
|
|
33
|
-
private div;
|
|
34
|
-
private mod;
|
|
35
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public-api';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNvcmV4LWNvcmUtY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNvcmV4L2NvcmUvY29uZmlnL2Fjb3JleC1jb3JlLWNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from './src/configs';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9jb3JlL2NvbmZpZy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsZUFBZSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zcmMvY29uZmlncyc7Il19
|