@acorex/core 6.0.1 → 6.0.7
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 +24 -24
- package/config/index.d.ts +5 -0
- package/config/public-api.d.ts +1 -0
- package/config/src/configs.d.ts +9 -0
- package/dateTime/index.d.ts +5 -0
- package/dateTime/{public-api.ts → public-api.d.ts} +1 -1
- package/dateTime/src/datetime.class.d.ts +100 -0
- package/dateTime/src/datetime.module.d.ts +8 -0
- package/dateTime/src/datetime.pipe.d.ts +8 -0
- package/dateTime/src/georgian.calendar.d.ts +20 -0
- package/dateTime/src/jalali.calendar.d.ts +35 -0
- package/esm2020/acorex-core.mjs +5 -0
- package/esm2020/config/acorex-core-config.mjs +5 -0
- package/esm2020/config/public-api.mjs +2 -0
- package/esm2020/config/src/configs.mjs +32 -0
- package/esm2020/dateTime/acorex-core-dateTime.mjs +5 -0
- package/esm2020/dateTime/public-api.mjs +6 -0
- package/esm2020/dateTime/src/datetime.class.mjs +296 -0
- package/esm2020/dateTime/src/datetime.module.mjs +33 -0
- package/esm2020/dateTime/src/datetime.pipe.mjs +26 -0
- package/esm2020/dateTime/src/georgian.calendar.mjs +189 -0
- package/esm2020/dateTime/src/jalali.calendar.mjs +359 -0
- package/esm2020/events/acorex-core-events.mjs +5 -0
- package/esm2020/events/public-api.mjs +2 -0
- package/esm2020/events/src/event.service.mjs +36 -0
- package/esm2020/http/acorex-core-http.mjs +5 -0
- package/esm2020/http/public-api.mjs +6 -0
- package/esm2020/http/src/http-error.class.mjs +2 -0
- package/esm2020/http/src/http-events.interceptor.mjs +3 -0
- package/esm2020/http/src/http-request.class.mjs +2 -0
- package/esm2020/http/src/http-result.class.mjs +21 -0
- package/esm2020/http/src/http.module.mjs +29 -0
- package/esm2020/http/src/http.service.mjs +147 -0
- package/esm2020/pipes/acorex-core-pipes.mjs +5 -0
- package/esm2020/pipes/public-api.mjs +3 -0
- package/esm2020/pipes/src/pipes.module.mjs +19 -0
- package/esm2020/pipes/src/safe.pipe.mjs +30 -0
- package/esm2020/platform/acorex-core-platform.mjs +5 -0
- package/esm2020/platform/public-api.mjs +2 -0
- package/esm2020/platform/src/platform.service.mjs +141 -0
- package/esm2020/public-api.mjs +5 -0
- package/esm2020/translation/acorex-core-translation.mjs +5 -0
- package/esm2020/translation/public-api.mjs +4 -0
- package/esm2020/translation/src/translation.module.mjs +18 -0
- package/esm2020/translation/src/translator.mjs +43 -0
- package/esm2020/translation/src/translator.pipe.mjs +15 -0
- package/esm2020/utils/acorex-core-utils.mjs +5 -0
- package/esm2020/utils/public-api.mjs +5 -0
- package/esm2020/utils/src/color-util.mjs +71 -0
- package/esm2020/utils/src/drawing-util.mjs +27 -0
- package/esm2020/utils/src/object-util.mjs +39 -0
- package/esm2020/utils/src/string-util.mjs +19 -0
- package/events/index.d.ts +5 -0
- package/events/public-api.d.ts +1 -0
- package/events/src/event.service.d.ts +9 -0
- package/fesm2015/acorex-core-config.mjs +39 -0
- package/fesm2015/acorex-core-config.mjs.map +1 -0
- package/fesm2015/acorex-core-dateTime.mjs +900 -0
- package/fesm2015/acorex-core-dateTime.mjs.map +1 -0
- package/fesm2015/acorex-core-events.mjs +43 -0
- package/fesm2015/acorex-core-events.mjs.map +1 -0
- package/fesm2015/acorex-core-http.mjs +201 -0
- package/fesm2015/acorex-core-http.mjs.map +1 -0
- package/fesm2015/acorex-core-pipes.mjs +53 -0
- package/fesm2015/acorex-core-pipes.mjs.map +1 -0
- package/fesm2015/acorex-core-platform.mjs +148 -0
- package/fesm2015/acorex-core-platform.mjs.map +1 -0
- package/fesm2015/acorex-core-translation.mjs +80 -0
- package/fesm2015/acorex-core-translation.mjs.map +1 -0
- package/fesm2015/acorex-core-utils.mjs +163 -0
- package/fesm2015/acorex-core-utils.mjs.map +1 -0
- package/fesm2015/acorex-core.mjs +11 -0
- package/fesm2015/acorex-core.mjs.map +1 -0
- package/fesm2020/acorex-core-config.mjs +39 -0
- package/fesm2020/acorex-core-config.mjs.map +1 -0
- package/fesm2020/acorex-core-dateTime.mjs +900 -0
- package/fesm2020/acorex-core-dateTime.mjs.map +1 -0
- package/fesm2020/acorex-core-events.mjs +43 -0
- package/fesm2020/acorex-core-events.mjs.map +1 -0
- package/fesm2020/acorex-core-http.mjs +200 -0
- package/fesm2020/acorex-core-http.mjs.map +1 -0
- package/fesm2020/acorex-core-pipes.mjs +53 -0
- package/fesm2020/acorex-core-pipes.mjs.map +1 -0
- package/fesm2020/acorex-core-platform.mjs +148 -0
- package/fesm2020/acorex-core-platform.mjs.map +1 -0
- package/fesm2020/acorex-core-translation.mjs +79 -0
- package/fesm2020/acorex-core-translation.mjs.map +1 -0
- package/fesm2020/acorex-core-utils.mjs +163 -0
- package/fesm2020/acorex-core-utils.mjs.map +1 -0
- package/fesm2020/acorex-core.mjs +11 -0
- package/fesm2020/acorex-core.mjs.map +1 -0
- package/http/index.d.ts +5 -0
- package/http/{public-api.ts → public-api.d.ts} +1 -1
- package/http/src/{http-error.class.ts → http-error.class.d.ts} +2 -2
- package/http/src/{http-events.interceptor.ts → http-events.interceptor.d.ts} +3 -7
- package/http/src/{http-request.class.ts → http-request.class.d.ts} +5 -5
- package/http/src/http-result.class.d.ts +11 -0
- package/http/src/http.module.d.ts +8 -0
- package/http/src/http.service.d.ts +23 -0
- package/index.d.ts +5 -0
- package/package.json +106 -23
- package/pipes/index.d.ts +5 -0
- package/pipes/public-api.d.ts +2 -0
- package/pipes/src/pipes.module.d.ts +8 -0
- package/pipes/src/safe.pipe.d.ts +10 -0
- package/platform/index.d.ts +5 -0
- package/platform/public-api.d.ts +1 -0
- package/platform/src/platform.service.d.ts +25 -0
- package/public-api.d.ts +1 -0
- package/translation/index.d.ts +5 -0
- package/translation/{public-api.ts → public-api.d.ts} +1 -1
- package/translation/src/translation.module.d.ts +7 -0
- package/translation/src/translator.d.ts +11 -0
- package/translation/src/translator.pipe.d.ts +7 -0
- package/utils/index.d.ts +5 -0
- package/utils/{public-api.ts → public-api.d.ts} +1 -1
- package/utils/src/color-util.d.ts +20 -0
- package/utils/src/drawing-util.d.ts +17 -0
- package/utils/src/object-util.d.ts +4 -0
- package/utils/src/string-util.d.ts +6 -0
- package/.browserslistrc +0 -16
- package/config/ax-preset.js +0 -186
- package/config/index.ts +0 -1
- package/config/ng-package.json +0 -6
- package/config/public-api.ts +0 -1
- package/config/src/configs.ts +0 -37
- package/dateTime/index.ts +0 -1
- package/dateTime/ng-package.json +0 -6
- package/dateTime/src/datetime.class.ts +0 -452
- package/dateTime/src/datetime.module.ts +0 -29
- package/dateTime/src/datetime.pipe.ts +0 -21
- package/dateTime/src/georgian.calendar.ts +0 -205
- package/dateTime/src/jalali.calendar.ts +0 -416
- package/events/index.ts +0 -1
- package/events/ng-package.json +0 -6
- package/events/public-api.ts +0 -1
- package/events/src/event.service.ts +0 -31
- package/http/index.ts +0 -1
- package/http/ng-package.json +0 -6
- package/http/src/http-result.class.ts +0 -34
- package/http/src/http.module.ts +0 -25
- package/http/src/http.service.ts +0 -161
- package/index.ts +0 -1
- package/karma.conf.js +0 -44
- package/ng-package.json +0 -7
- package/pipes/index.ts +0 -1
- package/pipes/ng-package.json +0 -6
- package/pipes/public-api.ts +0 -2
- package/pipes/src/pipes.module.ts +0 -11
- package/pipes/src/safe.pipe.ts +0 -24
- package/platform/index.ts +0 -1
- package/platform/ng-package.json +0 -6
- package/platform/public-api.ts +0 -1
- package/platform/src/platform.service.ts +0 -207
- package/public-api.ts +0 -4
- package/test.ts +0 -27
- package/translation/index.ts +0 -1
- package/translation/ng-package.json +0 -6
- package/translation/src/translation.module.ts +0 -12
- package/translation/src/translator.pipe.ts +0 -9
- package/translation/src/translator.ts +0 -49
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
- package/utils/index.ts +0 -1
- package/utils/ng-package.json +0 -6
- package/utils/src/color-util.ts +0 -83
- package/utils/src/drawing-util.ts +0 -43
- package/utils/src/object-util.ts +0 -82
- package/utils/src/string-util.ts +0 -25
package/README.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
# Core
|
|
2
|
-
|
|
3
|
-
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.0.0.
|
|
4
|
-
|
|
5
|
-
## Code scaffolding
|
|
6
|
-
|
|
7
|
-
Run `ng generate component component-name --project core` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project core`.
|
|
8
|
-
> Note: Don't forget to add `--project core` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
-
|
|
10
|
-
## Build
|
|
11
|
-
|
|
12
|
-
Run `ng build core` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
-
|
|
14
|
-
## Publishing
|
|
15
|
-
|
|
16
|
-
After building your library with `ng build core`, go to the dist folder `cd dist/core` and run `npm publish`.
|
|
17
|
-
|
|
18
|
-
## Running unit tests
|
|
19
|
-
|
|
20
|
-
Run `ng test core` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
-
|
|
22
|
-
## Further help
|
|
23
|
-
|
|
24
|
-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
|
1
|
+
# Core
|
|
2
|
+
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.0.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Run `ng generate component component-name --project core` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project core`.
|
|
8
|
+
> Note: Don't forget to add `--project core` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
+
|
|
10
|
+
## Build
|
|
11
|
+
|
|
12
|
+
Run `ng build core` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
+
|
|
14
|
+
## Publishing
|
|
15
|
+
|
|
16
|
+
After building your library with `ng build core`, go to the dist folder `cd dist/core` and run `npm publish`.
|
|
17
|
+
|
|
18
|
+
## Running unit tests
|
|
19
|
+
|
|
20
|
+
Run `ng test core` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
+
|
|
22
|
+
## Further help
|
|
23
|
+
|
|
24
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/configs';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
export declare class AXConfig {
|
|
3
|
+
private static dataModel;
|
|
4
|
+
private static dataChangeSubject;
|
|
5
|
+
static get onChange(): Observable<any>;
|
|
6
|
+
static set(config: any): any;
|
|
7
|
+
static set(path: string, value?: any): void;
|
|
8
|
+
static get(path: string, defaultValue?: any): any;
|
|
9
|
+
}
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AXDateTimePipe implements PipeTransform {
|
|
4
|
+
constructor();
|
|
5
|
+
transform(value: any, format?: string, calendar?: string): string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXDateTimePipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<AXDateTimePipe, "axDate", false>;
|
|
8
|
+
}
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +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
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNvcmV4LWNvcmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9hY29yZXgvY29yZS9hY29yZXgtY29yZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNvcmV4LWNvcmUtY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNvcmV4L2NvcmUvY29uZmlnL2Fjb3JleC1jb3JlLWNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './src/configs';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9jb3JlL2NvbmZpZy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsZUFBZSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zcmMvY29uZmlncyc7Il19
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { get, set, merge } from 'lodash-es';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
// @dynamic
|
|
4
|
+
export class AXConfig {
|
|
5
|
+
static get onChange() {
|
|
6
|
+
return AXConfig.dataChangeSubject.asObservable();
|
|
7
|
+
}
|
|
8
|
+
static set(arg1, arg2) {
|
|
9
|
+
if (arg1 && typeof arg1 == 'string') {
|
|
10
|
+
set(AXConfig.dataModel, arg1, arg2);
|
|
11
|
+
AXConfig.dataChangeSubject.next(AXConfig.dataModel);
|
|
12
|
+
return true;
|
|
13
|
+
}
|
|
14
|
+
if (arg1 && typeof arg1 == 'object') {
|
|
15
|
+
merge(AXConfig.dataModel, arg1);
|
|
16
|
+
AXConfig.dataChangeSubject.next(AXConfig.dataModel);
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
if (!arg1 && !arg2) {
|
|
20
|
+
return AXConfig.dataChangeSubject.asObservable();
|
|
21
|
+
}
|
|
22
|
+
// TODO: Arash please check 'Not all code paths return a value.'.
|
|
23
|
+
// if remove return you can see error on line 15.
|
|
24
|
+
return '';
|
|
25
|
+
}
|
|
26
|
+
static get(path, defaultValue) {
|
|
27
|
+
return get(AXConfig.dataModel, path, defaultValue);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
AXConfig.dataModel = {};
|
|
31
|
+
AXConfig.dataChangeSubject = new Subject();
|
|
32
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlncy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9jb3JlL2NvbmZpZy9zcmMvY29uZmlncy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsR0FBRyxFQUFFLEdBQUcsRUFBRSxLQUFLLEVBQUUsTUFBTSxXQUFXLENBQUM7QUFDNUMsT0FBTyxFQUFFLE9BQU8sRUFBYyxNQUFNLE1BQU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QnKSB7XHJcbiAgICAgIG1lcmdlKEFYQ29uZmlnLmRhdGFNb2RlbCwgYXJnMSk7XHJcbiAgICAgIEFYQ29uZmlnLmRhdGFDaGFuZ2VTdWJqZWN0Lm5leHQoQVhDb25maWcuZGF0YU1vZGVsKTtcclxuICAgICAgcmV0dXJuIHRydWU7XHJcbiAgICB9XHJcbiAgICBpZiAoIWFyZzEgJiYgIWFyZzIpIHtcclxuICAgICAgcmV0dXJuIEFYQ29uZmlnLmRhdGFDaGFuZ2VTdWJqZWN0LmFzT2JzZXJ2YWJsZSgpO1xyXG4gICAgfVxyXG4gICAgLy8gVE9ETzogQXJhc2ggcGxlYXNlIGNoZWNrICdOb3QgYWxsIGNvZGUgcGF0aHMgcmV0dXJuIGEgdmFsdWUuJy5cclxuICAgIC8vIGlmIHJlbW92ZSByZXR1cm4geW91IGNhbiBzZWUgZXJyb3Igb24gbGluZSAxNS5cclxuICAgIHJldHVybiAnJztcclxuICB9XHJcblxyXG4gIHN0YXRpYyBnZXQocGF0aDogc3RyaW5nLCBkZWZhdWx0VmFsdWU/OiBhbnkpOiBhbnkge1xyXG4gICAgcmV0dXJuIGdldChBWENvbmZpZy5kYXRhTW9kZWwsIHBhdGgsIGRlZmF1bHRWYWx1ZSk7XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNvcmV4LWNvcmUtZGF0ZVRpbWUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hY29yZXgvY29yZS9kYXRlVGltZS9hY29yZXgtY29yZS1kYXRlVGltZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
|
|
@@ -0,0 +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';
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9jb3JlL2RhdGVUaW1lL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxzQkFBc0IsQ0FBQztBQUNyQyxjQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGNBQWMscUJBQXFCLENBQUM7QUFDcEMsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLHVCQUF1QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zcmMvZGF0ZXRpbWUuY2xhc3MnO1xyXG5leHBvcnQgKiBmcm9tICcuL3NyYy9kYXRldGltZS5tb2R1bGUnO1xyXG5leHBvcnQgKiBmcm9tICcuL3NyYy9kYXRldGltZS5waXBlJztcclxuZXhwb3J0ICogZnJvbSAnLi9zcmMvZ2VvcmdpYW4uY2FsZW5kYXInO1xyXG5leHBvcnQgKiBmcm9tICcuL3NyYy9qYWxhbGkuY2FsZW5kYXInOyJdfQ==
|