@acorex/core 7.0.41 → 7.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/index.d.ts +5 -5
- package/config/public-api.d.ts +1 -1
- package/config/src/configs.d.ts +9 -9
- package/dateTime/index.d.ts +5 -5
- package/dateTime/public-api.d.ts +5 -5
- package/dateTime/src/datetime.class.d.ts +100 -100
- package/dateTime/src/datetime.module.d.ts +8 -8
- package/dateTime/src/datetime.pipe.d.ts +8 -8
- package/dateTime/src/georgian.calendar.d.ts +20 -20
- package/dateTime/src/jalali.calendar.d.ts +35 -35
- package/{esm2020 → esm2022}/acorex-core.mjs +4 -4
- package/{esm2020 → esm2022}/config/acorex-core-config.mjs +4 -4
- package/{esm2020 → esm2022}/config/public-api.mjs +1 -1
- package/esm2022/config/src/configs.mjs +25 -0
- package/{esm2020 → esm2022}/dateTime/acorex-core-dateTime.mjs +4 -4
- package/{esm2020 → esm2022}/dateTime/public-api.mjs +5 -5
- package/esm2022/dateTime/src/datetime.class.mjs +295 -0
- package/esm2022/dateTime/src/datetime.module.mjs +40 -0
- package/esm2022/dateTime/src/datetime.pipe.mjs +27 -0
- package/esm2022/dateTime/src/georgian.calendar.mjs +187 -0
- package/esm2022/dateTime/src/jalali.calendar.mjs +357 -0
- package/{esm2020 → esm2022}/events/acorex-core-events.mjs +4 -4
- package/{esm2020 → esm2022}/events/public-api.mjs +1 -1
- package/esm2022/events/src/event.service.mjs +35 -0
- package/{esm2020 → esm2022}/file/acorex-core-file.mjs +4 -4
- package/{esm2020 → esm2022}/file/public-api.mjs +4 -4
- package/esm2022/file/src/file-download-ref.class.mjs +13 -0
- package/esm2022/file/src/file-download-result.class.mjs +47 -0
- package/esm2022/file/src/file-upload-ref.class.mjs +13 -0
- package/esm2022/file/src/file.service.mjs +103 -0
- package/{esm2020 → esm2022}/http/acorex-core-http.mjs +4 -4
- package/{esm2020 → esm2022}/http/public-api.mjs +5 -5
- package/{esm2020 → esm2022}/http/src/http-error.class.mjs +1 -1
- package/{esm2020 → esm2022}/http/src/http-events.interceptor.mjs +2 -2
- package/{esm2020 → esm2022}/http/src/http-request.class.mjs +1 -1
- package/esm2022/http/src/http-result.class.mjs +25 -0
- package/esm2022/http/src/http.module.mjs +30 -0
- package/esm2022/http/src/http.service.mjs +152 -0
- package/{esm2020 → esm2022}/image/acorex-core-image.mjs +4 -4
- package/{esm2020 → esm2022}/image/public-api.mjs +1 -1
- package/esm2022/image/src/image.service.mjs +44 -0
- package/{esm2020 → esm2022}/pipes/acorex-core-pipes.mjs +4 -4
- package/{esm2020 → esm2022}/pipes/public-api.mjs +2 -2
- package/esm2022/pipes/src/pipes.module.mjs +20 -0
- package/{esm2020 → esm2022}/pipes/src/safe.pipe.mjs +32 -30
- package/{esm2020 → esm2022}/platform/acorex-core-platform.mjs +4 -4
- package/{esm2020 → esm2022}/platform/public-api.mjs +1 -1
- package/esm2022/platform/src/platform.service.mjs +152 -0
- package/{esm2020 → esm2022}/public-api.mjs +4 -4
- package/{esm2020 → esm2022}/translation/acorex-core-translation.mjs +4 -4
- package/{esm2020 → esm2022}/translation/public-api.mjs +3 -3
- package/esm2022/translation/src/translation.module.mjs +19 -0
- package/esm2022/translation/src/translator.mjs +44 -0
- package/esm2022/translation/src/translator.pipe.mjs +16 -0
- package/{esm2020 → esm2022}/utils/acorex-core-utils.mjs +4 -4
- package/{esm2020 → esm2022}/utils/public-api.mjs +5 -5
- package/{esm2020 → esm2022}/utils/src/color-util.mjs +114 -114
- package/{esm2020 → esm2022}/utils/src/drawing-util.mjs +29 -29
- package/{esm2020 → esm2022}/utils/src/html-util.mjs +15 -15
- package/{esm2020 → esm2022}/utils/src/object-util.mjs +38 -38
- package/{esm2020 → esm2022}/utils/src/string-util.mjs +18 -18
- package/events/index.d.ts +5 -5
- package/events/public-api.d.ts +1 -1
- package/events/src/event.service.d.ts +9 -9
- package/{fesm2015 → fesm2022}/acorex-core-config.mjs +23 -24
- package/{fesm2015 → fesm2022}/acorex-core-config.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/acorex-core-dateTime.mjs +882 -880
- package/{fesm2020 → fesm2022}/acorex-core-dateTime.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-core-events.mjs +32 -35
- package/fesm2022/acorex-core-events.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/acorex-core-file.mjs +162 -159
- package/{fesm2020 → fesm2022}/acorex-core-file.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-core-http.mjs +190 -184
- package/{fesm2020 → fesm2022}/acorex-core-http.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-core-image.mjs +41 -42
- package/{fesm2020 → fesm2022}/acorex-core-image.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/acorex-core-pipes.mjs +41 -41
- package/fesm2022/acorex-core-pipes.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/acorex-core-platform.mjs +147 -154
- package/fesm2022/acorex-core-platform.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/acorex-core-translation.mjs +64 -65
- package/{fesm2020 → fesm2022}/acorex-core-translation.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-core-utils.mjs +209 -210
- package/{fesm2015 → fesm2022}/acorex-core.mjs +5 -6
- package/file/index.d.ts +5 -5
- package/file/public-api.d.ts +4 -4
- package/file/src/file-download-ref.class.d.ts +6 -6
- package/file/src/file-download-result.class.d.ts +8 -8
- package/file/src/file-upload-ref.class.d.ts +5 -5
- package/file/src/file.service.d.ts +18 -18
- package/http/index.d.ts +5 -5
- package/http/public-api.d.ts +5 -5
- package/http/src/http-error.class.d.ts +7 -7
- package/http/src/http-events.interceptor.d.ts +10 -10
- package/http/src/http-request.class.d.ts +14 -14
- package/http/src/http-result.class.d.ts +11 -11
- package/http/src/http.module.d.ts +8 -8
- package/http/src/http.service.d.ts +23 -23
- package/image/index.d.ts +5 -5
- package/image/public-api.d.ts +1 -1
- package/image/src/image.service.d.ts +12 -12
- package/index.d.ts +5 -5
- package/package.json +39 -65
- package/pipes/index.d.ts +5 -5
- package/pipes/public-api.d.ts +2 -2
- package/pipes/src/pipes.module.d.ts +8 -8
- package/pipes/src/safe.pipe.d.ts +10 -10
- package/platform/index.d.ts +5 -5
- package/platform/public-api.d.ts +1 -1
- package/platform/src/platform.service.d.ts +26 -26
- package/public-api.d.ts +1 -1
- package/translation/index.d.ts +5 -5
- package/translation/public-api.d.ts +3 -3
- package/translation/src/translation.module.d.ts +7 -7
- package/translation/src/translator.d.ts +11 -11
- package/translation/src/translator.pipe.d.ts +7 -7
- package/utils/index.d.ts +5 -5
- package/utils/public-api.d.ts +5 -5
- package/utils/src/color-util.d.ts +23 -23
- package/utils/src/drawing-util.d.ts +18 -18
- package/utils/src/html-util.d.ts +4 -4
- package/utils/src/object-util.d.ts +4 -4
- package/utils/src/string-util.d.ts +6 -6
- package/esm2020/config/src/configs.mjs +0 -24
- 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/src/event.service.mjs +0 -36
- package/esm2020/file/src/file-download-ref.class.mjs +0 -12
- package/esm2020/file/src/file-download-result.class.mjs +0 -46
- package/esm2020/file/src/file-upload-ref.class.mjs +0 -12
- package/esm2020/file/src/file.service.mjs +0 -101
- 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/src/image.service.mjs +0 -43
- package/esm2020/pipes/src/pipes.module.mjs +0 -19
- package/esm2020/platform/src/platform.service.mjs +0 -157
- 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/fesm2015/acorex-core-dateTime.mjs.map +0 -1
- package/fesm2015/acorex-core-events.mjs +0 -44
- 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 -203
- package/fesm2015/acorex-core-http.mjs.map +0 -1
- package/fesm2015/acorex-core-image.mjs +0 -54
- package/fesm2015/acorex-core-image.mjs.map +0 -1
- package/fesm2015/acorex-core-pipes.mjs.map +0 -1
- package/fesm2015/acorex-core-platform.mjs +0 -165
- package/fesm2015/acorex-core-platform.mjs.map +0 -1
- package/fesm2015/acorex-core-translation.mjs +0 -81
- package/fesm2015/acorex-core-translation.mjs.map +0 -1
- package/fesm2015/acorex-core-utils.mjs +0 -227
- package/fesm2020/acorex-core-config.mjs +0 -32
- package/fesm2020/acorex-core-config.mjs.map +0 -1
- package/fesm2020/acorex-core-dateTime.mjs +0 -899
- package/fesm2020/acorex-core-events.mjs.map +0 -1
- package/fesm2020/acorex-core-pipes.mjs +0 -54
- package/fesm2020/acorex-core-pipes.mjs.map +0 -1
- package/fesm2020/acorex-core-platform.mjs.map +0 -1
- package/fesm2020/acorex-core-utils.mjs.map +0 -1
- package/fesm2020/acorex-core.mjs +0 -12
- package/fesm2020/acorex-core.mjs.map +0 -1
- /package/{fesm2015 → fesm2022}/acorex-core-utils.mjs.map +0 -0
- /package/{fesm2015 → fesm2022}/acorex-core.mjs.map +0 -0
package/config/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
/**
|
2
|
-
* Generated bundle index. Do not edit.
|
3
|
-
*/
|
4
|
-
/// <amd-module name="@acorex/core/config" />
|
5
|
-
export * from './public-api';
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
/// <amd-module name="@acorex/core/config" />
|
5
|
+
export * from './public-api';
|
package/config/public-api.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export * from './src/configs';
|
1
|
+
export * from './src/configs';
|
package/config/src/configs.d.ts
CHANGED
@@ -1,9 +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): void;
|
7
|
-
static set(path: string, value?: any): void;
|
8
|
-
static get(path: string, defaultValue?: any): any;
|
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): void;
|
7
|
+
static set(path: string, value?: any): void;
|
8
|
+
static get(path: string, defaultValue?: any): any;
|
9
|
+
}
|
package/dateTime/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
/**
|
2
|
-
* Generated bundle index. Do not edit.
|
3
|
-
*/
|
4
|
-
/// <amd-module name="@acorex/core/dateTime" />
|
5
|
-
export * from './public-api';
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
/// <amd-module name="@acorex/core/dateTime" />
|
5
|
+
export * from './public-api';
|
package/dateTime/public-api.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
export * from './src/datetime.class';
|
2
|
-
export * from './src/datetime.module';
|
3
|
-
export * from './src/datetime.pipe';
|
4
|
-
export * from './src/georgian.calendar';
|
5
|
-
export * from './src/jalali.calendar';
|
1
|
+
export * from './src/datetime.class';
|
2
|
+
export * from './src/datetime.module';
|
3
|
+
export * from './src/datetime.pipe';
|
4
|
+
export * from './src/georgian.calendar';
|
5
|
+
export * from './src/jalali.calendar';
|
@@ -1,100 +1,100 @@
|
|
1
|
-
export
|
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
|
+
export 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 +1,8 @@
|
|
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
|
+
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,8 +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, calendar?: string): string;
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXDateTimePipe, never>;
|
7
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<AXDateTimePipe, "axDate", false>;
|
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, calendar?: string): string;
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXDateTimePipe, never>;
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<AXDateTimePipe, "axDate", false>;
|
8
|
+
}
|
@@ -1,20 +1,20 @@
|
|
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
|
+
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 +1,35 @@
|
|
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
|
+
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 +1,5 @@
|
|
1
|
-
/**
|
2
|
-
* Generated bundle index. Do not edit.
|
3
|
-
*/
|
4
|
-
export * from './public-api';
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './public-api';
|
5
5
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNvcmV4LWNvcmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9hY29yZXgvY29yZS9hY29yZXgtY29yZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
|
@@ -1,5 +1,5 @@
|
|
1
|
-
/**
|
2
|
-
* Generated bundle index. Do not edit.
|
3
|
-
*/
|
4
|
-
export * from './public-api';
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './public-api';
|
5
5
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNvcmV4LWNvcmUtY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNvcmV4L2NvcmUvY29uZmlnL2Fjb3JleC1jb3JlLWNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from './src/configs';
|
1
|
+
export * from './src/configs';
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9jb3JlL2NvbmZpZy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsZUFBZSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zcmMvY29uZmlncyc7Il19
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { get, set, merge } from 'lodash-es';
|
2
|
+
import { Subject } from 'rxjs';
|
3
|
+
// @dynamic
|
4
|
+
class AXConfig {
|
5
|
+
static dataModel = {};
|
6
|
+
static dataChangeSubject = new Subject();
|
7
|
+
static get onChange() {
|
8
|
+
return AXConfig.dataChangeSubject.asObservable();
|
9
|
+
}
|
10
|
+
static set(arg1, arg2) {
|
11
|
+
if (arg1 && typeof arg1 == 'string') {
|
12
|
+
set(AXConfig.dataModel, arg1, arg2);
|
13
|
+
AXConfig.dataChangeSubject.next(AXConfig.dataModel);
|
14
|
+
}
|
15
|
+
if (arg1 && typeof arg1 == 'object') {
|
16
|
+
merge(AXConfig.dataModel, arg1);
|
17
|
+
AXConfig.dataChangeSubject.next(AXConfig.dataModel);
|
18
|
+
}
|
19
|
+
}
|
20
|
+
static get(path, defaultValue) {
|
21
|
+
return get(AXConfig.dataModel, path, defaultValue);
|
22
|
+
}
|
23
|
+
}
|
24
|
+
export { AXConfig };
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlncy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9jb3JlL2NvbmZpZy9zcmMvY29uZmlncy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsR0FBRyxFQUFFLEdBQUcsRUFBRSxLQUFLLEVBQUUsTUFBTSxXQUFXLENBQUM7QUFDNUMsT0FBTyxFQUFFLE9BQU8sRUFBYyxNQUFNLE1BQU0sQ0FBQztBQUUzQyxXQUFXO0FBQ1gsTUFBYSxRQUFRO0lBQ1gsTUFBTSxDQUFDLFNBQVMsR0FBUSxFQUFFLENBQUM7SUFDM0IsTUFBTSxDQUFDLGlCQUFpQixHQUFHLElBQUksT0FBTyxFQUFPLENBQUM7SUFFdEQsTUFBTSxLQUFLLFFBQVE7UUFDakIsT0FBTyxRQUFRLENBQUMsaUJBQWlCLENBQUMsWUFBWSxFQUFFLENBQUM7SUFDbkQsQ0FBQztJQUlELE1BQU0sQ0FBQyxHQUFHLENBQUMsSUFBVSxFQUFFLElBQVU7UUFDL0IsSUFBSSxJQUFJLElBQUksT0FBTyxJQUFJLElBQUksUUFBUSxFQUFFO1lBQ25DLEdBQUcsQ0FBQyxRQUFRLENBQUMsU0FBUyxFQUFFLElBQUksRUFBRSxJQUFJLENBQUMsQ0FBQztZQUNwQyxRQUFRLENBQUMsaUJBQWlCLENBQUMsSUFBSSxDQUFDLFFBQVEsQ0FBQyxTQUFTLENBQUMsQ0FBQztTQUNyRDtRQUNELElBQUksSUFBSSxJQUFJLE9BQU8sSUFBSSxJQUFJLFFBQVEsRUFBRTtZQUNuQyxLQUFLLENBQUMsUUFBUSxDQUFDLFNBQVMsRUFBRSxJQUFJLENBQUMsQ0FBQztZQUNoQyxRQUFRLENBQUMsaUJBQWlCLENBQUMsSUFBSSxDQUFDLFFBQVEsQ0FBQyxTQUFTLENBQUMsQ0FBQztTQUNyRDtJQUNILENBQUM7SUFFRCxNQUFNLENBQUMsR0FBRyxDQUFDLElBQVksRUFBRSxZQUFrQjtRQUN6QyxPQUFPLEdBQUcsQ0FBQyxRQUFRLENBQUMsU0FBUyxFQUFFLElBQUksRUFBRSxZQUFZLENBQUMsQ0FBQztJQUNyRCxDQUFDOztTQXZCVSxRQUFRIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgZ2V0LCBzZXQsIG1lcmdlIH0gZnJvbSAnbG9kYXNoLWVzJztcclxuaW1wb3J0IHsgU3ViamVjdCwgT2JzZXJ2YWJsZSB9IGZyb20gJ3J4anMnO1xyXG5cclxuLy8gQGR5bmFtaWNcclxuZXhwb3J0IGNsYXNzIEFYQ29uZmlnIHtcclxuICBwcml2YXRlIHN0YXRpYyBkYXRhTW9kZWw6IGFueSA9IHt9O1xyXG4gIHByaXZhdGUgc3RhdGljIGRhdGFDaGFuZ2VTdWJqZWN0ID0gbmV3IFN1YmplY3Q8YW55PigpO1xyXG5cclxuICBzdGF0aWMgZ2V0IG9uQ2hhbmdlKCk6IE9ic2VydmFibGU8YW55PiB7XHJcbiAgICByZXR1cm4gQVhDb25maWcuZGF0YUNoYW5nZVN1YmplY3QuYXNPYnNlcnZhYmxlKCk7XHJcbiAgfVxyXG5cclxuICBzdGF0aWMgc2V0KGNvbmZpZzogYW55KTogdm9pZDtcclxuICBzdGF0aWMgc2V0KHBhdGg6IHN0cmluZywgdmFsdWU/OiBhbnkpOiB2b2lkO1xyXG4gIHN0YXRpYyBzZXQoYXJnMT86IGFueSwgYXJnMj86IGFueSk6IHZvaWQge1xyXG4gICAgaWYgKGFyZzEgJiYgdHlwZW9mIGFyZzEgPT0gJ3N0cmluZycpIHtcclxuICAgICAgc2V0KEFYQ29uZmlnLmRhdGFNb2RlbCwgYXJnMSwgYXJnMik7XHJcbiAgICAgIEFYQ29uZmlnLmRhdGFDaGFuZ2VTdWJqZWN0Lm5leHQoQVhDb25maWcuZGF0YU1vZGVsKTtcclxuICAgIH1cclxuICAgIGlmIChhcmcxICYmIHR5cGVvZiBhcmcxID09ICdvYmplY3QnKSB7XHJcbiAgICAgIG1lcmdlKEFYQ29uZmlnLmRhdGFNb2RlbCwgYXJnMSk7XHJcbiAgICAgIEFYQ29uZmlnLmRhdGFDaGFuZ2VTdWJqZWN0Lm5leHQoQVhDb25maWcuZGF0YU1vZGVsKTtcclxuICAgIH1cclxuICB9XHJcblxyXG4gIHN0YXRpYyBnZXQocGF0aDogc3RyaW5nLCBkZWZhdWx0VmFsdWU/OiBhbnkpOiBhbnkge1xyXG4gICAgcmV0dXJuIGdldChBWENvbmZpZy5kYXRhTW9kZWwsIHBhdGgsIGRlZmF1bHRWYWx1ZSk7XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
@@ -1,5 +1,5 @@
|
|
1
|
-
/**
|
2
|
-
* Generated bundle index. Do not edit.
|
3
|
-
*/
|
4
|
-
export * from './public-api';
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './public-api';
|
5
5
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNvcmV4LWNvcmUtZGF0ZVRpbWUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hY29yZXgvY29yZS9kYXRlVGltZS9hY29yZXgtY29yZS1kYXRlVGltZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
|
@@ -1,6 +1,6 @@
|
|
1
|
-
export * from './src/datetime.class';
|
2
|
-
export * from './src/datetime.module';
|
3
|
-
export * from './src/datetime.pipe';
|
4
|
-
export * from './src/georgian.calendar';
|
5
|
-
export * from './src/jalali.calendar';
|
1
|
+
export * from './src/datetime.class';
|
2
|
+
export * from './src/datetime.module';
|
3
|
+
export * from './src/datetime.pipe';
|
4
|
+
export * from './src/georgian.calendar';
|
5
|
+
export * from './src/jalali.calendar';
|
6
6
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9jb3JlL2RhdGVUaW1lL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxzQkFBc0IsQ0FBQztBQUNyQyxjQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGNBQWMscUJBQXFCLENBQUM7QUFDcEMsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLHVCQUF1QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zcmMvZGF0ZXRpbWUuY2xhc3MnO1xyXG5leHBvcnQgKiBmcm9tICcuL3NyYy9kYXRldGltZS5tb2R1bGUnO1xyXG5leHBvcnQgKiBmcm9tICcuL3NyYy9kYXRldGltZS5waXBlJztcclxuZXhwb3J0ICogZnJvbSAnLi9zcmMvZ2VvcmdpYW4uY2FsZW5kYXInO1xyXG5leHBvcnQgKiBmcm9tICcuL3NyYy9qYWxhbGkuY2FsZW5kYXInOyJdfQ==
|