@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.
Files changed (170) hide show
  1. package/config/index.d.ts +5 -5
  2. package/config/public-api.d.ts +1 -1
  3. package/config/src/configs.d.ts +9 -9
  4. package/dateTime/index.d.ts +5 -5
  5. package/dateTime/public-api.d.ts +5 -5
  6. package/dateTime/src/datetime.class.d.ts +100 -100
  7. package/dateTime/src/datetime.module.d.ts +8 -8
  8. package/dateTime/src/datetime.pipe.d.ts +8 -8
  9. package/dateTime/src/georgian.calendar.d.ts +20 -20
  10. package/dateTime/src/jalali.calendar.d.ts +35 -35
  11. package/{esm2020 → esm2022}/acorex-core.mjs +4 -4
  12. package/{esm2020 → esm2022}/config/acorex-core-config.mjs +4 -4
  13. package/{esm2020 → esm2022}/config/public-api.mjs +1 -1
  14. package/esm2022/config/src/configs.mjs +25 -0
  15. package/{esm2020 → esm2022}/dateTime/acorex-core-dateTime.mjs +4 -4
  16. package/{esm2020 → esm2022}/dateTime/public-api.mjs +5 -5
  17. package/esm2022/dateTime/src/datetime.class.mjs +295 -0
  18. package/esm2022/dateTime/src/datetime.module.mjs +40 -0
  19. package/esm2022/dateTime/src/datetime.pipe.mjs +27 -0
  20. package/esm2022/dateTime/src/georgian.calendar.mjs +187 -0
  21. package/esm2022/dateTime/src/jalali.calendar.mjs +357 -0
  22. package/{esm2020 → esm2022}/events/acorex-core-events.mjs +4 -4
  23. package/{esm2020 → esm2022}/events/public-api.mjs +1 -1
  24. package/esm2022/events/src/event.service.mjs +35 -0
  25. package/{esm2020 → esm2022}/file/acorex-core-file.mjs +4 -4
  26. package/{esm2020 → esm2022}/file/public-api.mjs +4 -4
  27. package/esm2022/file/src/file-download-ref.class.mjs +13 -0
  28. package/esm2022/file/src/file-download-result.class.mjs +47 -0
  29. package/esm2022/file/src/file-upload-ref.class.mjs +13 -0
  30. package/esm2022/file/src/file.service.mjs +103 -0
  31. package/{esm2020 → esm2022}/http/acorex-core-http.mjs +4 -4
  32. package/{esm2020 → esm2022}/http/public-api.mjs +5 -5
  33. package/{esm2020 → esm2022}/http/src/http-error.class.mjs +1 -1
  34. package/{esm2020 → esm2022}/http/src/http-events.interceptor.mjs +2 -2
  35. package/{esm2020 → esm2022}/http/src/http-request.class.mjs +1 -1
  36. package/esm2022/http/src/http-result.class.mjs +25 -0
  37. package/esm2022/http/src/http.module.mjs +30 -0
  38. package/esm2022/http/src/http.service.mjs +152 -0
  39. package/{esm2020 → esm2022}/image/acorex-core-image.mjs +4 -4
  40. package/{esm2020 → esm2022}/image/public-api.mjs +1 -1
  41. package/esm2022/image/src/image.service.mjs +44 -0
  42. package/{esm2020 → esm2022}/pipes/acorex-core-pipes.mjs +4 -4
  43. package/{esm2020 → esm2022}/pipes/public-api.mjs +2 -2
  44. package/esm2022/pipes/src/pipes.module.mjs +20 -0
  45. package/{esm2020 → esm2022}/pipes/src/safe.pipe.mjs +32 -30
  46. package/{esm2020 → esm2022}/platform/acorex-core-platform.mjs +4 -4
  47. package/{esm2020 → esm2022}/platform/public-api.mjs +1 -1
  48. package/esm2022/platform/src/platform.service.mjs +152 -0
  49. package/{esm2020 → esm2022}/public-api.mjs +4 -4
  50. package/{esm2020 → esm2022}/translation/acorex-core-translation.mjs +4 -4
  51. package/{esm2020 → esm2022}/translation/public-api.mjs +3 -3
  52. package/esm2022/translation/src/translation.module.mjs +19 -0
  53. package/esm2022/translation/src/translator.mjs +44 -0
  54. package/esm2022/translation/src/translator.pipe.mjs +16 -0
  55. package/{esm2020 → esm2022}/utils/acorex-core-utils.mjs +4 -4
  56. package/{esm2020 → esm2022}/utils/public-api.mjs +5 -5
  57. package/{esm2020 → esm2022}/utils/src/color-util.mjs +114 -114
  58. package/{esm2020 → esm2022}/utils/src/drawing-util.mjs +29 -29
  59. package/{esm2020 → esm2022}/utils/src/html-util.mjs +15 -15
  60. package/{esm2020 → esm2022}/utils/src/object-util.mjs +38 -38
  61. package/{esm2020 → esm2022}/utils/src/string-util.mjs +18 -18
  62. package/events/index.d.ts +5 -5
  63. package/events/public-api.d.ts +1 -1
  64. package/events/src/event.service.d.ts +9 -9
  65. package/{fesm2015 → fesm2022}/acorex-core-config.mjs +23 -24
  66. package/{fesm2015 → fesm2022}/acorex-core-config.mjs.map +1 -1
  67. package/{fesm2015 → fesm2022}/acorex-core-dateTime.mjs +882 -880
  68. package/{fesm2020 → fesm2022}/acorex-core-dateTime.mjs.map +1 -1
  69. package/{fesm2020 → fesm2022}/acorex-core-events.mjs +32 -35
  70. package/fesm2022/acorex-core-events.mjs.map +1 -0
  71. package/{fesm2020 → fesm2022}/acorex-core-file.mjs +162 -159
  72. package/{fesm2020 → fesm2022}/acorex-core-file.mjs.map +1 -1
  73. package/{fesm2020 → fesm2022}/acorex-core-http.mjs +190 -184
  74. package/{fesm2020 → fesm2022}/acorex-core-http.mjs.map +1 -1
  75. package/{fesm2020 → fesm2022}/acorex-core-image.mjs +41 -42
  76. package/{fesm2020 → fesm2022}/acorex-core-image.mjs.map +1 -1
  77. package/{fesm2015 → fesm2022}/acorex-core-pipes.mjs +41 -41
  78. package/fesm2022/acorex-core-pipes.mjs.map +1 -0
  79. package/{fesm2020 → fesm2022}/acorex-core-platform.mjs +147 -154
  80. package/fesm2022/acorex-core-platform.mjs.map +1 -0
  81. package/{fesm2020 → fesm2022}/acorex-core-translation.mjs +64 -65
  82. package/{fesm2020 → fesm2022}/acorex-core-translation.mjs.map +1 -1
  83. package/{fesm2020 → fesm2022}/acorex-core-utils.mjs +209 -210
  84. package/{fesm2015 → fesm2022}/acorex-core.mjs +5 -6
  85. package/file/index.d.ts +5 -5
  86. package/file/public-api.d.ts +4 -4
  87. package/file/src/file-download-ref.class.d.ts +6 -6
  88. package/file/src/file-download-result.class.d.ts +8 -8
  89. package/file/src/file-upload-ref.class.d.ts +5 -5
  90. package/file/src/file.service.d.ts +18 -18
  91. package/http/index.d.ts +5 -5
  92. package/http/public-api.d.ts +5 -5
  93. package/http/src/http-error.class.d.ts +7 -7
  94. package/http/src/http-events.interceptor.d.ts +10 -10
  95. package/http/src/http-request.class.d.ts +14 -14
  96. package/http/src/http-result.class.d.ts +11 -11
  97. package/http/src/http.module.d.ts +8 -8
  98. package/http/src/http.service.d.ts +23 -23
  99. package/image/index.d.ts +5 -5
  100. package/image/public-api.d.ts +1 -1
  101. package/image/src/image.service.d.ts +12 -12
  102. package/index.d.ts +5 -5
  103. package/package.json +39 -65
  104. package/pipes/index.d.ts +5 -5
  105. package/pipes/public-api.d.ts +2 -2
  106. package/pipes/src/pipes.module.d.ts +8 -8
  107. package/pipes/src/safe.pipe.d.ts +10 -10
  108. package/platform/index.d.ts +5 -5
  109. package/platform/public-api.d.ts +1 -1
  110. package/platform/src/platform.service.d.ts +26 -26
  111. package/public-api.d.ts +1 -1
  112. package/translation/index.d.ts +5 -5
  113. package/translation/public-api.d.ts +3 -3
  114. package/translation/src/translation.module.d.ts +7 -7
  115. package/translation/src/translator.d.ts +11 -11
  116. package/translation/src/translator.pipe.d.ts +7 -7
  117. package/utils/index.d.ts +5 -5
  118. package/utils/public-api.d.ts +5 -5
  119. package/utils/src/color-util.d.ts +23 -23
  120. package/utils/src/drawing-util.d.ts +18 -18
  121. package/utils/src/html-util.d.ts +4 -4
  122. package/utils/src/object-util.d.ts +4 -4
  123. package/utils/src/string-util.d.ts +6 -6
  124. package/esm2020/config/src/configs.mjs +0 -24
  125. package/esm2020/dateTime/src/datetime.class.mjs +0 -288
  126. package/esm2020/dateTime/src/datetime.module.mjs +0 -39
  127. package/esm2020/dateTime/src/datetime.pipe.mjs +0 -26
  128. package/esm2020/dateTime/src/georgian.calendar.mjs +0 -189
  129. package/esm2020/dateTime/src/jalali.calendar.mjs +0 -359
  130. package/esm2020/events/src/event.service.mjs +0 -36
  131. package/esm2020/file/src/file-download-ref.class.mjs +0 -12
  132. package/esm2020/file/src/file-download-result.class.mjs +0 -46
  133. package/esm2020/file/src/file-upload-ref.class.mjs +0 -12
  134. package/esm2020/file/src/file.service.mjs +0 -101
  135. package/esm2020/http/src/http-result.class.mjs +0 -21
  136. package/esm2020/http/src/http.module.mjs +0 -29
  137. package/esm2020/http/src/http.service.mjs +0 -148
  138. package/esm2020/image/src/image.service.mjs +0 -43
  139. package/esm2020/pipes/src/pipes.module.mjs +0 -19
  140. package/esm2020/platform/src/platform.service.mjs +0 -157
  141. package/esm2020/translation/src/translation.module.mjs +0 -18
  142. package/esm2020/translation/src/translator.mjs +0 -43
  143. package/esm2020/translation/src/translator.pipe.mjs +0 -15
  144. package/fesm2015/acorex-core-dateTime.mjs.map +0 -1
  145. package/fesm2015/acorex-core-events.mjs +0 -44
  146. package/fesm2015/acorex-core-events.mjs.map +0 -1
  147. package/fesm2015/acorex-core-file.mjs +0 -176
  148. package/fesm2015/acorex-core-file.mjs.map +0 -1
  149. package/fesm2015/acorex-core-http.mjs +0 -203
  150. package/fesm2015/acorex-core-http.mjs.map +0 -1
  151. package/fesm2015/acorex-core-image.mjs +0 -54
  152. package/fesm2015/acorex-core-image.mjs.map +0 -1
  153. package/fesm2015/acorex-core-pipes.mjs.map +0 -1
  154. package/fesm2015/acorex-core-platform.mjs +0 -165
  155. package/fesm2015/acorex-core-platform.mjs.map +0 -1
  156. package/fesm2015/acorex-core-translation.mjs +0 -81
  157. package/fesm2015/acorex-core-translation.mjs.map +0 -1
  158. package/fesm2015/acorex-core-utils.mjs +0 -227
  159. package/fesm2020/acorex-core-config.mjs +0 -32
  160. package/fesm2020/acorex-core-config.mjs.map +0 -1
  161. package/fesm2020/acorex-core-dateTime.mjs +0 -899
  162. package/fesm2020/acorex-core-events.mjs.map +0 -1
  163. package/fesm2020/acorex-core-pipes.mjs +0 -54
  164. package/fesm2020/acorex-core-pipes.mjs.map +0 -1
  165. package/fesm2020/acorex-core-platform.mjs.map +0 -1
  166. package/fesm2020/acorex-core-utils.mjs.map +0 -1
  167. package/fesm2020/acorex-core.mjs +0 -12
  168. package/fesm2020/acorex-core.mjs.map +0 -1
  169. /package/{fesm2015 → fesm2022}/acorex-core-utils.mjs.map +0 -0
  170. /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';
@@ -1 +1 @@
1
- export * from './src/configs';
1
+ export * from './src/configs';
@@ -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
+ }
@@ -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';
@@ -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 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
+ 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlncy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9jb3JlL2NvbmZpZy9zcmMvY29uZmlncy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQU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5leHQoQVhDb25maWcuZGF0YU1vZGVsKTtcclxuICAgIH1cclxuICB9XHJcblxyXG4gIHN0YXRpYyBnZXQocGF0aDogc3RyaW5nLCBkZWZhdWx0VmFsdWU/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==