@acorex/core 4.0.22 → 4.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/README.md +2 -23
- package/acorex-core.d.ts +1 -0
- package/{esm2015/acorex-core.js → 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 +253 -0
- package/esm2020/lib/locale/fa.json +242 -0
- package/esm2020/lib/pipe/datetime.pipe.mjs +25 -0
- package/esm2020/lib/pipe/htmlToText.pipe.mjs +25 -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 +21 -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 +43 -0
- package/fesm2015/acorex-core.mjs +2123 -0
- package/fesm2015/acorex-core.mjs.map +1 -0
- package/fesm2020/acorex-core.mjs +2119 -0
- package/fesm2020/acorex-core.mjs.map +1 -0
- 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/lib/http/http-error.class.d.ts +7 -0
- package/lib/http/http-events.interceptor.d.ts +10 -0
- package/lib/http/http-request.class.d.ts +14 -0
- package/lib/http/http-result.class.d.ts +11 -0
- package/lib/http/http.module.d.ts +10 -0
- package/lib/http/http.service.d.ts +23 -0
- package/lib/pipe/datetime.pipe.d.ts +8 -0
- package/lib/pipe/htmlToText.pipe.d.ts +7 -0
- package/lib/{config/configs.d.ts → services/config.d.ts} +1 -1
- package/lib/services/event.service.d.ts +9 -0
- package/lib/services/navigator.service.d.ts +8 -0
- package/lib/services/storage.service.d.ts +7 -0
- package/lib/{translation → translator}/translator.d.ts +0 -0
- package/lib/translator/translator.module.d.ts +8 -0
- package/lib/translator/translator.pipe.d.ts +8 -0
- 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 +24 -12
- package/public-api.d.ts +42 -4
- package/acorex-core.metadata.json +0 -1
- package/bundles/acorex-core.umd.js +0 -678
- package/bundles/acorex-core.umd.js.map +0 -1
- package/bundles/acorex-core.umd.min.js +0 -2
- package/bundles/acorex-core.umd.min.js.map +0 -1
- package/esm2015/lib/config/configs.js +0 -29
- package/esm2015/lib/dateTime/datetime.class.js +0 -226
- package/esm2015/lib/dateTime/datetime.module.js +0 -13
- package/esm2015/lib/dateTime/datetime.pipe.js +0 -22
- package/esm2015/lib/dateTime/georgian.calendar.js +0 -145
- package/esm2015/lib/dateTime/index.js +0 -5
- package/esm2015/lib/translation/index.js +0 -4
- package/esm2015/lib/translation/translation.module.js +0 -13
- package/esm2015/lib/translation/translator.js +0 -26
- package/esm2015/lib/translation/translator.pipe.js +0 -11
- package/esm2015/lib/utils/object-util.js +0 -83
- package/esm2015/public-api.js +0 -5
- package/fesm2015/acorex-core.js +0 -563
- package/fesm2015/acorex-core.js.map +0 -1
- package/lib/dateTime/datetime.class.d.ts +0 -83
- package/lib/dateTime/datetime.module.d.ts +0 -2
- package/lib/dateTime/datetime.pipe.d.ts +0 -5
- package/lib/dateTime/georgian.calendar.d.ts +0 -17
- package/lib/dateTime/index.d.ts +0 -4
- package/lib/translation/index.d.ts +0 -3
- package/lib/translation/translation.module.d.ts +0 -2
- package/lib/translation/translator.pipe.d.ts +0 -4
- package/lib/utils/object-util.d.ts +0 -7
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
export declare const AX_CALENDARS: any[];
|
|
2
|
-
export declare type TimeUnit = 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' | 'week';
|
|
3
|
-
export interface AXCalendar {
|
|
4
|
-
monthNames: string[];
|
|
5
|
-
monthShortNames: string[];
|
|
6
|
-
dayNames: string[];
|
|
7
|
-
dayShortNames: string[];
|
|
8
|
-
name(): string;
|
|
9
|
-
dayInMonth(date: Date): number;
|
|
10
|
-
dayOfYear(date: Date): number;
|
|
11
|
-
dayInWeek(date: Date): number;
|
|
12
|
-
year(date: Date): number;
|
|
13
|
-
monthOfYear(date: Date): number;
|
|
14
|
-
add(date: Date, unit: TimeUnit, amount: number): AXDateTime;
|
|
15
|
-
set(date: Date, unit: TimeUnit, value: number): AXDateTime;
|
|
16
|
-
startOf(date: Date, unit: TimeUnit): AXDateTime;
|
|
17
|
-
endOf(date: Date, unit: TimeUnit): AXDateTime;
|
|
18
|
-
}
|
|
19
|
-
export declare class AXDateTime {
|
|
20
|
-
static convert(value: any, calendar?: string): AXDateTime;
|
|
21
|
-
private _date;
|
|
22
|
-
get date(): Date;
|
|
23
|
-
private _calendar;
|
|
24
|
-
get calendar(): AXCalendar;
|
|
25
|
-
constructor(value?: Date | string, calendar?: string | AXCalendar);
|
|
26
|
-
clone(): AXDateTime;
|
|
27
|
-
get dayInMonth(): number;
|
|
28
|
-
get dayOfYear(): number;
|
|
29
|
-
get dayInWeek(): number;
|
|
30
|
-
get hour(): number;
|
|
31
|
-
get minute(): number;
|
|
32
|
-
get second(): number;
|
|
33
|
-
get year(): number;
|
|
34
|
-
get monthOfYear(): number;
|
|
35
|
-
get month(): AXCalendarMonth;
|
|
36
|
-
add(unit: TimeUnit, amount: number): AXDateTime;
|
|
37
|
-
set(unit: TimeUnit, value: number): AXDateTime;
|
|
38
|
-
duration(end: AXDateTime | Date | string, unit?: TimeUnit): AXTimeSpan;
|
|
39
|
-
startOf(unit?: TimeUnit): AXDateTime;
|
|
40
|
-
endOf(unit?: TimeUnit): AXDateTime;
|
|
41
|
-
format(format?: string): string;
|
|
42
|
-
private pad;
|
|
43
|
-
toString(): string;
|
|
44
|
-
equal(value: any, unit?: TimeUnit): boolean;
|
|
45
|
-
compaire(value: any, unit?: TimeUnit): 1 | 0 | -1;
|
|
46
|
-
convert(calendar: string): AXDateTime;
|
|
47
|
-
}
|
|
48
|
-
export declare class AXCalendarMonth {
|
|
49
|
-
private _range;
|
|
50
|
-
get range(): AXDateTimeRange;
|
|
51
|
-
set range(v: AXDateTimeRange);
|
|
52
|
-
constructor(date: AXDateTime);
|
|
53
|
-
private readonly index;
|
|
54
|
-
private readonly name;
|
|
55
|
-
}
|
|
56
|
-
export interface AXTimeSpanTotal {
|
|
57
|
-
miliseconds: number;
|
|
58
|
-
seconds: number;
|
|
59
|
-
minutes: number;
|
|
60
|
-
hours: number;
|
|
61
|
-
days: number;
|
|
62
|
-
weeks: number;
|
|
63
|
-
months: number;
|
|
64
|
-
years: number;
|
|
65
|
-
}
|
|
66
|
-
export interface AXTimeSpan {
|
|
67
|
-
miliseconds: number;
|
|
68
|
-
seconds: number;
|
|
69
|
-
minutes: number;
|
|
70
|
-
hours: number;
|
|
71
|
-
days: number;
|
|
72
|
-
months: number;
|
|
73
|
-
years: number;
|
|
74
|
-
total: AXTimeSpanTotal;
|
|
75
|
-
}
|
|
76
|
-
export declare class AXDateTimeRange {
|
|
77
|
-
startTime: AXDateTime;
|
|
78
|
-
endTime: AXDateTime;
|
|
79
|
-
constructor(startTime: AXDateTime, endTime: AXDateTime);
|
|
80
|
-
duration(): AXTimeSpan;
|
|
81
|
-
enumurate(unit?: TimeUnit): AXDateTime[];
|
|
82
|
-
includes(value: AXDateTime, unit?: TimeUnit): boolean;
|
|
83
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { AXCalendar, AXDateTime, TimeUnit } from "./datetime.class";
|
|
2
|
-
export declare class GeorgianCalendar implements AXCalendar {
|
|
3
|
-
monthNames: string[];
|
|
4
|
-
monthShortNames: string[];
|
|
5
|
-
dayNames: string[];
|
|
6
|
-
dayShortNames: string[];
|
|
7
|
-
name(): string;
|
|
8
|
-
dayInMonth(date: Date): number;
|
|
9
|
-
dayOfYear(date: Date): number;
|
|
10
|
-
dayInWeek(date: Date): number;
|
|
11
|
-
year(date: Date): number;
|
|
12
|
-
monthOfYear(date: Date): number;
|
|
13
|
-
add(date: Date, unit: TimeUnit, amount: number): AXDateTime;
|
|
14
|
-
set(date: Date, unit: TimeUnit, value: number): AXDateTime;
|
|
15
|
-
startOf(date: Date, unit: TimeUnit): AXDateTime;
|
|
16
|
-
endOf(date: Date, unit: TimeUnit): AXDateTime;
|
|
17
|
-
}
|
package/lib/dateTime/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare class AXObjectUtil {
|
|
2
|
-
static deepJSONClone(obj: any): any;
|
|
3
|
-
static deepCopy(obj: any): any;
|
|
4
|
-
static fetchProp(obj: any, prop: string): any;
|
|
5
|
-
static getPropByPath(obj: any, path: any, defaultVal?: any): any;
|
|
6
|
-
static setPropByPath(obj: any, path: any, value: any): any;
|
|
7
|
-
}
|