@acorex/core 16.0.2 → 17.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/common/README.md +3 -0
- package/common/countries/countries.data.d.ts +2 -0
- package/common/countries/country.d.ts +13 -0
- package/common/index.d.ts +2 -0
- package/config/README.md +3 -0
- package/config/index.d.ts +2 -0
- package/config/lib/configs.d.ts +6 -0
- package/config/lib/configs.service.d.ts +12 -0
- package/date-time/README.md +3 -0
- package/date-time/index.d.ts +10 -0
- package/date-time/lib/calendar.service.d.ts +27 -0
- package/date-time/lib/dateTime.config.d.ts +12 -0
- package/date-time/lib/datetime.class.d.ts +138 -0
- package/date-time/lib/datetime.module.d.ts +8 -0
- package/date-time/lib/datetime.pipe.d.ts +12 -0
- package/date-time/lib/formatters/datetime-formatter.d.ts +19 -0
- package/date-time/lib/formatters/timeleft-formatter.d.ts +16 -0
- package/date-time/lib/georgian.calendar.d.ts +21 -0
- package/date-time/lib/holidays.loader.d.ts +21 -0
- package/date-time/lib/jalali.calendar.d.ts +40 -0
- package/esm2022/common/acorex-core-common.mjs +5 -0
- package/esm2022/common/countries/countries.data.mjs +2625 -0
- package/esm2022/common/countries/country.mjs +2 -0
- package/esm2022/common/index.mjs +3 -0
- package/esm2022/config/acorex-core-config.mjs +5 -0
- package/esm2022/config/index.mjs +3 -0
- package/esm2022/config/lib/configs.mjs +7 -0
- package/esm2022/config/lib/configs.service.mjs +27 -0
- package/esm2022/date-time/acorex-core-date-time.mjs +5 -0
- package/esm2022/date-time/index.mjs +11 -0
- package/esm2022/date-time/lib/calendar.service.mjs +100 -0
- package/esm2022/date-time/lib/dateTime.config.mjs +50 -0
- package/esm2022/date-time/lib/datetime.class.mjs +337 -0
- package/esm2022/date-time/lib/datetime.module.mjs +27 -0
- package/esm2022/date-time/lib/datetime.pipe.mjs +29 -0
- package/esm2022/date-time/lib/formatters/datetime-formatter.mjs +32 -0
- package/esm2022/date-time/lib/formatters/timeleft-formatter.mjs +91 -0
- package/esm2022/date-time/lib/georgian.calendar.mjs +203 -0
- package/esm2022/date-time/lib/holidays.loader.mjs +13 -0
- package/esm2022/date-time/lib/jalali.calendar.mjs +440 -0
- package/esm2022/events/acorex-core-events.mjs +5 -0
- package/esm2022/events/index.mjs +3 -0
- package/esm2022/events/lib/event.service.mjs +43 -0
- package/esm2022/events/lib/event.type.mjs +6 -0
- package/esm2022/file/acorex-core-file.mjs +5 -0
- package/esm2022/file/index.mjs +7 -0
- package/esm2022/file/lib/file-download-ref.class.mjs +12 -0
- package/esm2022/file/lib/file-download-result.class.mjs +45 -0
- package/esm2022/file/lib/file-size-formatter.mjs +24 -0
- package/esm2022/file/lib/file-upload-ref.class.mjs +12 -0
- package/esm2022/file/lib/file.module.mjs +20 -0
- package/esm2022/file/lib/file.service.mjs +103 -0
- package/esm2022/format/acorex-core-format.mjs +5 -0
- package/esm2022/format/index.mjs +8 -0
- package/esm2022/format/lib/format.config.mjs +3 -0
- package/esm2022/format/lib/format.module.mjs +64 -0
- package/esm2022/format/lib/format.pipe.mjs +37 -0
- package/esm2022/format/lib/format.service.mjs +95 -0
- package/esm2022/format/lib/format.types.mjs +2 -0
- package/esm2022/format/lib/formatters/number-formatter.mjs +74 -0
- package/esm2022/format/lib/formatters/string-formatter.mjs +15 -0
- package/esm2022/image/acorex-core-image.mjs +5 -0
- package/esm2022/image/index.mjs +2 -0
- package/esm2022/image/lib/image.service.mjs +43 -0
- package/esm2022/index.mjs +2 -44
- package/esm2022/memorize/acorex-core-memorize.mjs +5 -0
- package/esm2022/memorize/index.mjs +2 -0
- package/esm2022/memorize/lib/memorize.decorator.mjs +19 -0
- package/esm2022/pipes/acorex-core-pipes.mjs +5 -0
- package/esm2022/pipes/index.mjs +2 -0
- package/esm2022/pipes/lib/safe/safe.pipe.mjs +38 -0
- package/esm2022/platform/acorex-core-platform.mjs +5 -0
- package/esm2022/platform/index.mjs +2 -0
- package/esm2022/platform/lib/platform.service.mjs +225 -0
- package/esm2022/storage/acorex-core-storage.mjs +5 -0
- package/esm2022/storage/cookie-storage.service.mjs +202 -0
- package/esm2022/storage/index.mjs +5 -0
- package/esm2022/storage/local-storage.service.mjs +58 -0
- package/esm2022/storage/session-storage.service.mjs +22 -0
- package/esm2022/storage/storage.interface.mjs +2 -0
- package/esm2022/translation/acorex-core-translation.mjs +5 -0
- package/esm2022/translation/index.mjs +9 -0
- package/esm2022/translation/lib/translation-scope.resolver.mjs +11 -0
- package/esm2022/translation/lib/translation.config.mjs +20 -0
- package/esm2022/translation/lib/translation.loader.mjs +14 -0
- package/esm2022/translation/lib/translation.module.mjs +40 -0
- package/esm2022/translation/lib/translation.service.mjs +173 -0
- package/esm2022/translation/lib/translation.types.mjs +2 -0
- package/esm2022/translation/lib/translator.directive.mjs +28 -0
- package/esm2022/translation/lib/translator.pipe.mjs +23 -0
- package/esm2022/types/acorex-core-types.mjs +5 -0
- package/esm2022/types/index.mjs +2 -0
- package/esm2022/utils/acorex-core-utils.mjs +5 -0
- package/esm2022/utils/index.mjs +6 -0
- package/esm2022/utils/lib/auto-unsubscribe.mjs +36 -0
- package/esm2022/utils/lib/color-util.mjs +111 -0
- package/esm2022/utils/lib/drawing-util.mjs +35 -0
- package/esm2022/utils/lib/html-util.mjs +39 -0
- package/esm2022/utils/lib/string-util.mjs +19 -0
- package/esm2022/validation/acorex-core-validation.mjs +5 -0
- package/esm2022/validation/index.mjs +18 -0
- package/esm2022/validation/lib/rules/between-rule.mjs +31 -0
- package/esm2022/validation/lib/rules/callback-rule.mjs +29 -0
- package/esm2022/validation/lib/rules/equal-rule.mjs +26 -0
- package/esm2022/validation/lib/rules/greater-than.mjs +29 -0
- package/esm2022/validation/lib/rules/length-rule.mjs +26 -0
- package/esm2022/validation/lib/rules/less-than-rule.mjs +29 -0
- package/esm2022/validation/lib/rules/maxlength-rule.mjs +27 -0
- package/esm2022/validation/lib/rules/minlength-rule.mjs +26 -0
- package/esm2022/validation/lib/rules/regex-rule.mjs +49 -0
- package/esm2022/validation/lib/rules/required-rule.mjs +36 -0
- package/esm2022/validation/lib/validation.config.mjs +33 -0
- package/esm2022/validation/lib/validation.module.mjs +84 -0
- package/esm2022/validation/lib/validation.service.mjs +98 -0
- package/esm2022/validation/lib/validation.types.mjs +3 -0
- package/events/README.md +3 -0
- package/events/index.d.ts +2 -0
- package/{lib/services → events/lib}/event.service.d.ts +8 -0
- package/events/lib/event.type.d.ts +5 -0
- package/fesm2022/acorex-core-common.mjs +2631 -0
- package/fesm2022/acorex-core-common.mjs.map +1 -0
- package/fesm2022/acorex-core-config.mjs +39 -0
- package/fesm2022/acorex-core-config.mjs.map +1 -0
- package/fesm2022/acorex-core-date-time.mjs +1305 -0
- package/fesm2022/acorex-core-date-time.mjs.map +1 -0
- package/fesm2022/acorex-core-events.mjs +56 -0
- package/fesm2022/acorex-core-events.mjs.map +1 -0
- package/fesm2022/acorex-core-file.mjs +214 -0
- package/fesm2022/acorex-core-file.mjs.map +1 -0
- package/fesm2022/acorex-core-format.mjs +282 -0
- package/fesm2022/acorex-core-format.mjs.map +1 -0
- package/fesm2022/acorex-core-image.mjs +50 -0
- package/fesm2022/acorex-core-image.mjs.map +1 -0
- package/fesm2022/acorex-core-memorize.mjs +26 -0
- package/fesm2022/acorex-core-memorize.mjs.map +1 -0
- package/fesm2022/acorex-core-pipes.mjs +44 -0
- package/fesm2022/acorex-core-pipes.mjs.map +1 -0
- package/fesm2022/acorex-core-platform.mjs +232 -0
- package/fesm2022/acorex-core-platform.mjs.map +1 -0
- package/fesm2022/acorex-core-storage.mjs +285 -0
- package/fesm2022/acorex-core-storage.mjs.map +1 -0
- package/fesm2022/acorex-core-translation.mjs +293 -0
- package/fesm2022/acorex-core-translation.mjs.map +1 -0
- package/fesm2022/acorex-core-types.mjs +6 -0
- package/fesm2022/acorex-core-types.mjs.map +1 -0
- package/fesm2022/acorex-core-utils.mjs +247 -0
- package/fesm2022/acorex-core-utils.mjs.map +1 -0
- package/fesm2022/acorex-core-validation.mjs +488 -0
- package/fesm2022/acorex-core-validation.mjs.map +1 -0
- package/fesm2022/acorex-core.mjs +2 -2309
- package/fesm2022/acorex-core.mjs.map +1 -1
- package/file/README.md +3 -0
- package/file/index.d.ts +6 -0
- package/file/lib/file-download-ref.class.d.ts +6 -0
- package/file/lib/file-download-result.class.d.ts +8 -0
- package/file/lib/file-size-formatter.d.ts +16 -0
- package/file/lib/file-upload-ref.class.d.ts +5 -0
- package/file/lib/file.module.d.ts +7 -0
- package/file/lib/file.service.d.ts +18 -0
- package/format/README.md +3 -0
- package/format/index.d.ts +7 -0
- package/format/lib/format.config.d.ts +5 -0
- package/format/lib/format.module.d.ts +18 -0
- package/format/lib/format.pipe.d.ts +12 -0
- package/format/lib/format.service.d.ts +43 -0
- package/format/lib/format.types.d.ts +4 -0
- package/format/lib/formatters/number-formatter.d.ts +23 -0
- package/format/lib/formatters/string-formatter.d.ts +14 -0
- package/image/README.md +3 -0
- package/image/index.d.ts +1 -0
- package/image/lib/image.service.d.ts +11 -0
- package/index.d.ts +1 -43
- package/memorize/README.md +3 -0
- package/memorize/index.d.ts +1 -0
- package/memorize/lib/memorize.decorator.d.ts +1 -0
- package/package.json +98 -5
- package/pipes/README.md +3 -0
- package/pipes/index.d.ts +1 -0
- package/pipes/lib/safe/safe.pipe.d.ts +10 -0
- package/platform/README.md +3 -0
- package/platform/index.d.ts +1 -0
- package/{lib/platform → platform/lib}/platform.service.d.ts +14 -6
- package/storage/README.md +3 -0
- package/storage/cookie-storage.service.d.ts +104 -0
- package/storage/index.d.ts +4 -0
- package/storage/local-storage.service.d.ts +16 -0
- package/storage/session-storage.service.d.ts +10 -0
- package/storage/storage.interface.d.ts +14 -0
- package/translation/README.md +3 -0
- package/translation/index.d.ts +8 -0
- package/translation/lib/translation-scope.resolver.d.ts +2 -0
- package/translation/lib/translation.config.d.ts +14 -0
- package/translation/lib/translation.loader.d.ts +14 -0
- package/translation/lib/translation.module.d.ts +8 -0
- package/translation/lib/translation.service.d.ts +31 -0
- package/translation/lib/translation.types.d.ts +10 -0
- package/translation/lib/translator.directive.d.ts +12 -0
- package/translation/lib/translator.pipe.d.ts +12 -0
- package/types/README.md +3 -0
- package/types/index.d.ts +2 -0
- package/utils/README.md +3 -0
- package/utils/index.d.ts +5 -0
- package/utils/lib/auto-unsubscribe.d.ts +12 -0
- package/utils/lib/color-util.d.ts +24 -0
- package/utils/lib/drawing-util.d.ts +18 -0
- package/utils/lib/html-util.d.ts +5 -0
- package/utils/lib/string-util.d.ts +6 -0
- package/validation/README.md +3 -0
- package/validation/index.d.ts +14 -0
- package/validation/lib/rules/between-rule.d.ts +18 -0
- package/validation/lib/rules/callback-rule.d.ts +23 -0
- package/validation/lib/rules/equal-rule.d.ts +17 -0
- package/validation/lib/rules/greater-than.d.ts +17 -0
- package/validation/lib/rules/length-rule.d.ts +17 -0
- package/validation/lib/rules/less-than-rule.d.ts +17 -0
- package/validation/lib/rules/maxlength-rule.d.ts +16 -0
- package/validation/lib/rules/minlength-rule.d.ts +16 -0
- package/validation/lib/rules/regex-rule.d.ts +17 -0
- package/validation/lib/rules/required-rule.d.ts +16 -0
- package/validation/lib/validation.config.d.ts +15 -0
- package/validation/lib/validation.module.d.ts +17 -0
- package/validation/lib/validation.service.d.ts +35 -0
- package/validation/lib/validation.types.d.ts +21 -0
- package/esm2022/lib/classes/base-page.class.mjs +0 -26
- package/esm2022/lib/classes/color.class.mjs +0 -49
- package/esm2022/lib/classes/datetime.class.mjs +0 -323
- package/esm2022/lib/classes/menu.class.mjs +0 -35
- package/esm2022/lib/classes/navigator.class.mjs +0 -2
- package/esm2022/lib/classes/popup.class.mjs +0 -2
- package/esm2022/lib/classes/promise.class.mjs +0 -21
- package/esm2022/lib/classes/sectionlist.class.mjs +0 -2
- package/esm2022/lib/classes/select.class.mjs +0 -8
- package/esm2022/lib/core.module.mjs +0 -27
- package/esm2022/lib/error/error.class.mjs +0 -2
- package/esm2022/lib/error/error.module.mjs +0 -19
- package/esm2022/lib/error/error.service.mjs +0 -22
- package/esm2022/lib/events/keyboard.mjs +0 -2
- package/esm2022/lib/http/http-error.class.mjs +0 -2
- package/esm2022/lib/http/http-events.interceptor.mjs +0 -3
- package/esm2022/lib/http/http-request.class.mjs +0 -2
- package/esm2022/lib/http/http-result.class.mjs +0 -25
- package/esm2022/lib/http/http.module.mjs +0 -35
- package/esm2022/lib/http/http.service.mjs +0 -148
- package/esm2022/lib/locale/en.json +0 -255
- package/esm2022/lib/locale/fa.json +0 -245
- package/esm2022/lib/pipe/datetime.pipe.mjs +0 -25
- package/esm2022/lib/pipe/htmlToText.pipe.mjs +0 -25
- package/esm2022/lib/platform/index.mjs +0 -2
- package/esm2022/lib/platform/platform.service.mjs +0 -152
- package/esm2022/lib/services/config.mjs +0 -29
- package/esm2022/lib/services/event.service.mjs +0 -34
- package/esm2022/lib/services/navigator.service.mjs +0 -10
- package/esm2022/lib/services/storage.service.mjs +0 -16
- package/esm2022/lib/translator/translator.mjs +0 -26
- package/esm2022/lib/translator/translator.module.mjs +0 -25
- package/esm2022/lib/translator/translator.pipe.mjs +0 -24
- package/esm2022/lib/translator/translator.service.mjs +0 -21
- package/esm2022/lib/utils/array/array-util.mjs +0 -133
- package/esm2022/lib/utils/html/html-util.mjs +0 -200
- package/esm2022/lib/utils/html/html.module.mjs +0 -19
- package/esm2022/lib/utils/math/math-util.mjs +0 -6
- package/esm2022/lib/utils/object/object-util.mjs +0 -83
- package/esm2022/lib/utils/render/on-demand-preload-strategy.service.mjs +0 -21
- package/esm2022/lib/utils/render/render.service.mjs +0 -109
- package/esm2022/lib/utils/render/rendering.module.mjs +0 -35
- package/esm2022/lib/utils/scroll/scroll.directive.mjs +0 -56
- package/esm2022/lib/utils/scroll/scroll.module.mjs +0 -19
- package/esm2022/lib/utils/separator/separator.module.mjs +0 -19
- package/esm2022/lib/utils/separator/separator.pipe.mjs +0 -33
- package/lib/classes/base-page.class.d.ts +0 -13
- package/lib/classes/color.class.d.ts +0 -17
- package/lib/classes/datetime.class.d.ts +0 -63
- package/lib/classes/menu.class.d.ts +0 -34
- package/lib/classes/navigator.class.d.ts +0 -5
- package/lib/classes/popup.class.d.ts +0 -12
- package/lib/classes/promise.class.d.ts +0 -7
- package/lib/classes/sectionlist.class.d.ts +0 -8
- package/lib/classes/select.class.d.ts +0 -7
- package/lib/core.module.d.ts +0 -9
- package/lib/error/error.class.d.ts +0 -4
- package/lib/error/error.module.d.ts +0 -7
- package/lib/error/error.service.d.ts +0 -13
- package/lib/events/keyboard.d.ts +0 -2
- package/lib/http/http-error.class.d.ts +0 -7
- package/lib/http/http-events.interceptor.d.ts +0 -10
- package/lib/http/http-request.class.d.ts +0 -14
- package/lib/http/http-result.class.d.ts +0 -11
- package/lib/http/http.module.d.ts +0 -10
- package/lib/http/http.service.d.ts +0 -23
- package/lib/pipe/datetime.pipe.d.ts +0 -8
- package/lib/pipe/htmlToText.pipe.d.ts +0 -7
- package/lib/platform/index.d.ts +0 -1
- package/lib/services/config.d.ts +0 -9
- package/lib/services/navigator.service.d.ts +0 -8
- package/lib/services/storage.service.d.ts +0 -7
- package/lib/translator/translator.d.ts +0 -9
- package/lib/translator/translator.module.d.ts +0 -8
- package/lib/translator/translator.pipe.d.ts +0 -8
- package/lib/translator/translator.service.d.ts +0 -8
- package/lib/utils/array/array-util.d.ts +0 -6
- package/lib/utils/html/html-util.d.ts +0 -62
- package/lib/utils/html/html.module.d.ts +0 -8
- package/lib/utils/math/math-util.d.ts +0 -3
- package/lib/utils/object/object-util.d.ts +0 -7
- package/lib/utils/render/on-demand-preload-strategy.service.d.ts +0 -10
- package/lib/utils/render/render.service.d.ts +0 -18
- package/lib/utils/render/rendering.module.d.ts +0 -8
- package/lib/utils/scroll/scroll.directive.d.ts +0 -18
- package/lib/utils/scroll/scroll.module.d.ts +0 -8
- package/lib/utils/separator/separator.module.d.ts +0 -8
- package/lib/utils/separator/separator.pipe.d.ts +0 -8
@@ -1,323 +0,0 @@
|
|
1
|
-
import moment from 'jalali-moment';
|
2
|
-
import { AXConfig } from '../services/config';
|
3
|
-
export class AXDateTime {
|
4
|
-
type;
|
5
|
-
static convert(value, type = AXConfig.get('dateTime.type') || 'gregorian') {
|
6
|
-
let date;
|
7
|
-
if (typeof value === 'string' || value instanceof String) {
|
8
|
-
date = new AXDateTime(value, type);
|
9
|
-
}
|
10
|
-
else if (value instanceof Date) {
|
11
|
-
date = new AXDateTime(value, type);
|
12
|
-
}
|
13
|
-
else if (value instanceof AXDateTime) {
|
14
|
-
date = value;
|
15
|
-
}
|
16
|
-
return date;
|
17
|
-
}
|
18
|
-
_date;
|
19
|
-
get date() {
|
20
|
-
return this._date;
|
21
|
-
}
|
22
|
-
resolveUnit(unit) {
|
23
|
-
return this.type === 'jalali' ? 'j' + unit : unit;
|
24
|
-
}
|
25
|
-
_moment;
|
26
|
-
// private get _moment(): moment_.Moment {
|
27
|
-
// const m = moment(this.date);
|
28
|
-
// if (this.type === 'jalali') {
|
29
|
-
// m.locale('fa');
|
30
|
-
// }
|
31
|
-
// return m;
|
32
|
-
// }
|
33
|
-
constructor(value = new Date(), type = AXConfig.get('dateTime.type') || 'gregorian') {
|
34
|
-
this.type = type;
|
35
|
-
if (value instanceof Date) {
|
36
|
-
this._date = value;
|
37
|
-
}
|
38
|
-
else {
|
39
|
-
this._date = new Date(value);
|
40
|
-
}
|
41
|
-
this._moment = moment(this.date);
|
42
|
-
if (this.type === 'jalali') {
|
43
|
-
this._moment.locale('fa');
|
44
|
-
}
|
45
|
-
}
|
46
|
-
clone() {
|
47
|
-
return new AXDateTime(this.date, this.type);
|
48
|
-
}
|
49
|
-
get dayInMonth() {
|
50
|
-
return this._moment.date();
|
51
|
-
}
|
52
|
-
get dayOfYear() {
|
53
|
-
return this._moment.dayOfYear();
|
54
|
-
}
|
55
|
-
get dayInWeek() {
|
56
|
-
return this._moment.day();
|
57
|
-
}
|
58
|
-
get hour() {
|
59
|
-
return this._moment.hour();
|
60
|
-
}
|
61
|
-
get minute() {
|
62
|
-
return this._moment.minute();
|
63
|
-
}
|
64
|
-
get second() {
|
65
|
-
return this._moment.second();
|
66
|
-
}
|
67
|
-
get year() {
|
68
|
-
return this._moment.year();
|
69
|
-
}
|
70
|
-
get monthOfYear() {
|
71
|
-
return this._moment.month();
|
72
|
-
}
|
73
|
-
get month() {
|
74
|
-
return new AXCalendarMonth(this);
|
75
|
-
}
|
76
|
-
get firstDayOfWeek() {
|
77
|
-
const a = moment(this.date);
|
78
|
-
if (this.type === 'jalali') {
|
79
|
-
this._moment.locale('fa');
|
80
|
-
}
|
81
|
-
return new AXDateTime(a.startOf('w').toDate(), this.type);
|
82
|
-
}
|
83
|
-
get endDayOfWeek() {
|
84
|
-
const a = moment(this.date);
|
85
|
-
if (this.type === 'jalali') {
|
86
|
-
this._moment.locale('fa');
|
87
|
-
}
|
88
|
-
return new AXDateTime(moment(this.date).endOf('w').toDate(), this.type);
|
89
|
-
}
|
90
|
-
convertStringToJalali(date, format) {
|
91
|
-
return moment(date).locale('fa').format('YYYY/M/D');
|
92
|
-
}
|
93
|
-
convertStringToGregorian(date, format) {
|
94
|
-
return new Date(moment.from(date, 'fa', 'YYYY/MM/DD').format('YYYY/MM/DD'));
|
95
|
-
}
|
96
|
-
add(unit = 'day', amount) {
|
97
|
-
return new AXDateTime(moment(this.date).add(amount, this.resolveUnit(unit)).toDate(), this.type);
|
98
|
-
}
|
99
|
-
addDay(amount) {
|
100
|
-
return new AXDateTime(moment(this.date).add(amount, 'd').toDate(), this.type);
|
101
|
-
}
|
102
|
-
addMonth(amount) {
|
103
|
-
return new AXDateTime(moment(this.date).add(amount, 'months').toDate(), this.type);
|
104
|
-
}
|
105
|
-
addHour(amount) {
|
106
|
-
return new AXDateTime(moment(this.date).add(amount, 'hours').toDate(), this.type);
|
107
|
-
}
|
108
|
-
set(unit = 'day', value) {
|
109
|
-
return new AXDateTime(this._moment.set(unit, value).toDate(), this.type);
|
110
|
-
}
|
111
|
-
duration(end, unit = 'days') {
|
112
|
-
const duration = moment.duration(this._moment.diff(end._moment));
|
113
|
-
return Math.round(duration.as(unit));
|
114
|
-
}
|
115
|
-
startOf(unit = 'day') {
|
116
|
-
return new AXDateTime(moment(this.date).startOf(this.resolveUnit(unit)).toDate(), this.type);
|
117
|
-
}
|
118
|
-
endOf(unit = 'day') {
|
119
|
-
return new AXDateTime(moment(this.date).endOf(this.resolveUnit(unit)).toDate(), this.type);
|
120
|
-
}
|
121
|
-
format(format = AXConfig.get('dateTime.shortDateFormat') || (this.type === 'gregorian' ? 'DD-MM-YYYY' : 'YYYY-MM-DD')) {
|
122
|
-
if (format === 'P') {
|
123
|
-
return this._moment.fromNow();
|
124
|
-
}
|
125
|
-
return this._moment.format(format);
|
126
|
-
}
|
127
|
-
toString() {
|
128
|
-
return this.format();
|
129
|
-
}
|
130
|
-
equal(value, unit = 'day') {
|
131
|
-
if (!value) {
|
132
|
-
return false;
|
133
|
-
}
|
134
|
-
return this._moment.isSame(moment(value.date), this.resolveUnit(unit));
|
135
|
-
}
|
136
|
-
convertToJalaliDate(value) {
|
137
|
-
const options = {
|
138
|
-
numberingSystem: 'latn',
|
139
|
-
year: 'numeric',
|
140
|
-
month: '2-digit',
|
141
|
-
day: '2-digit',
|
142
|
-
hour: '2-digit',
|
143
|
-
minute: '2-digit',
|
144
|
-
second: '2-digit'
|
145
|
-
};
|
146
|
-
const jDate = new Date(value).toLocaleDateString('fa-IR', options);
|
147
|
-
const item = {};
|
148
|
-
item.year = jDate.slice(0, 4);
|
149
|
-
item.month = jDate.slice(5, 7);
|
150
|
-
item.day = jDate.slice(8, 10);
|
151
|
-
item.hour = jDate.slice(13, 15);
|
152
|
-
item.minutes = jDate.slice(16, 18);
|
153
|
-
item.seconds = jDate.slice(19, 21);
|
154
|
-
return item;
|
155
|
-
}
|
156
|
-
toJalaliString(value) {
|
157
|
-
const date = this.convertToJalaliDate(value);
|
158
|
-
let str = '';
|
159
|
-
str = date.year + '-' + date.month + '-' + date.day + 'T' + date.hour + ':' + date.minutes + ':' + date.seconds;
|
160
|
-
return str;
|
161
|
-
}
|
162
|
-
convertToGregorianDate(value) {
|
163
|
-
// TODO: check this fucking type
|
164
|
-
const options = {
|
165
|
-
numberingSystem: 'latn',
|
166
|
-
year: 'numeric',
|
167
|
-
month: '2-digit',
|
168
|
-
day: '2-digit',
|
169
|
-
hour: '2-digit',
|
170
|
-
minute: '2-digit',
|
171
|
-
second: '2-digit'
|
172
|
-
};
|
173
|
-
const date = new Date(value).toLocaleString('en-us', options);
|
174
|
-
const item = {};
|
175
|
-
item.year = date.slice(6, 10);
|
176
|
-
item.month = date.slice(0, 2);
|
177
|
-
item.day = date.slice(3, 5);
|
178
|
-
item.hour = date.slice(12, 14);
|
179
|
-
item.minutes = date.slice(15, 17);
|
180
|
-
item.seconds = date.slice(18, 20);
|
181
|
-
return item;
|
182
|
-
}
|
183
|
-
toGregorianString(value) {
|
184
|
-
const date = this.convertToGregorianDate(value);
|
185
|
-
let str = '';
|
186
|
-
str = date.year + '-' + date.month + '-' + date.day + 'T' + date.hour + ':' + date.minutes + ':' + date.seconds;
|
187
|
-
return str;
|
188
|
-
}
|
189
|
-
compaireNew(value, unit = 'YMD', type = 'jalali') {
|
190
|
-
const range = [0, 0];
|
191
|
-
let str1;
|
192
|
-
let str2;
|
193
|
-
if (type === 'jalali') {
|
194
|
-
str1 = this.toJalaliString(this.date);
|
195
|
-
str2 = this.toJalaliString(value.date ? value.date : value);
|
196
|
-
}
|
197
|
-
else {
|
198
|
-
str1 = this.toGregorianString(this.date);
|
199
|
-
str2 = this.toGregorianString(value.date ? value.date : value);
|
200
|
-
}
|
201
|
-
switch (unit) {
|
202
|
-
case 'YMDhms':
|
203
|
-
range[0] = 0;
|
204
|
-
range[1] = 19;
|
205
|
-
break;
|
206
|
-
case 'YMDhm':
|
207
|
-
range[0] = 0;
|
208
|
-
range[1] = 16;
|
209
|
-
break;
|
210
|
-
case 'YMDh':
|
211
|
-
range[0] = 0;
|
212
|
-
range[1] = 13;
|
213
|
-
break;
|
214
|
-
case 'YMD':
|
215
|
-
range[0] = 0;
|
216
|
-
range[1] = 10;
|
217
|
-
break;
|
218
|
-
case 'YM':
|
219
|
-
range[0] = 0;
|
220
|
-
range[1] = 7;
|
221
|
-
break;
|
222
|
-
case 'h':
|
223
|
-
range[0] = 11;
|
224
|
-
range[1] = 13;
|
225
|
-
break;
|
226
|
-
case 'm':
|
227
|
-
range[0] = 14;
|
228
|
-
range[1] = 16;
|
229
|
-
break;
|
230
|
-
case 's':
|
231
|
-
range[0] = 17;
|
232
|
-
range[1] = 19;
|
233
|
-
break;
|
234
|
-
case 'D':
|
235
|
-
range[0] = 8;
|
236
|
-
range[1] = 10;
|
237
|
-
break;
|
238
|
-
case 'M':
|
239
|
-
range[0] = 5;
|
240
|
-
range[1] = 7;
|
241
|
-
break;
|
242
|
-
case 'Y':
|
243
|
-
range[0] = 0;
|
244
|
-
range[1] = 4;
|
245
|
-
break;
|
246
|
-
}
|
247
|
-
if (str1.slice(range[0], range[1]) === str2.slice(range[0], range[1])) {
|
248
|
-
return 0;
|
249
|
-
}
|
250
|
-
else if (str1.slice(range[0], range[1]) > str2.slice(range[0], range[1])) {
|
251
|
-
return 1;
|
252
|
-
}
|
253
|
-
else {
|
254
|
-
return -1;
|
255
|
-
}
|
256
|
-
}
|
257
|
-
compaire(value, unit = 'day') {
|
258
|
-
if (this._moment.isSame(moment(value.date), this.resolveUnit(unit))) {
|
259
|
-
return 0;
|
260
|
-
}
|
261
|
-
else if (this._moment.isAfter(moment(value.date), this.resolveUnit(unit))) {
|
262
|
-
return 1;
|
263
|
-
}
|
264
|
-
else {
|
265
|
-
return -1;
|
266
|
-
}
|
267
|
-
}
|
268
|
-
toISOString() {
|
269
|
-
return this._date.toISOString();
|
270
|
-
}
|
271
|
-
}
|
272
|
-
export class AXCalendarMonth {
|
273
|
-
_moment;
|
274
|
-
_range;
|
275
|
-
get range() {
|
276
|
-
return this._range;
|
277
|
-
}
|
278
|
-
set range(v) {
|
279
|
-
this._range = v;
|
280
|
-
}
|
281
|
-
constructor(date) {
|
282
|
-
this._moment = moment(date.date);
|
283
|
-
this.index = date.date.getMonth();
|
284
|
-
this.name = this._moment.format('MMMM');
|
285
|
-
this.range = new AXDateTimeRange(new AXDateTime(this._moment.startOf('month').toDate(), date.type), new AXDateTime(this._moment.endOf('month').toDate(), date.type));
|
286
|
-
}
|
287
|
-
index;
|
288
|
-
name;
|
289
|
-
}
|
290
|
-
export class AXDateTimeRange {
|
291
|
-
startTime;
|
292
|
-
endTime;
|
293
|
-
constructor(startTime, endTime) {
|
294
|
-
this.startTime = startTime;
|
295
|
-
this.endTime = endTime;
|
296
|
-
}
|
297
|
-
duration(unit = 'days') {
|
298
|
-
const duration = moment.duration(moment(this.startTime.date).diff(moment(this.endTime.date)));
|
299
|
-
return duration.as(unit);
|
300
|
-
}
|
301
|
-
enumurate(unit = 'day', type = AXConfig.get('dateTime.type') || 'jalali') {
|
302
|
-
const result = [];
|
303
|
-
for (let index = 0; this.startTime.add(unit, index).compaireNew(this.endTime, this.getViewCompaire(unit), type) <= 0; index++) {
|
304
|
-
result.push(this.startTime.add(unit, index));
|
305
|
-
}
|
306
|
-
return result;
|
307
|
-
}
|
308
|
-
includes(value, unit = 'day', type = 'jalali') {
|
309
|
-
return (value.compaireNew(this.startTime, this.getViewCompaire(unit), type) >= 0 &&
|
310
|
-
value.compaireNew(this.endTime, this.getViewCompaire(unit), type) <= 0);
|
311
|
-
}
|
312
|
-
getViewCompaire(view) {
|
313
|
-
switch (view) {
|
314
|
-
case 'day':
|
315
|
-
return 'YMD';
|
316
|
-
case 'month':
|
317
|
-
return 'YM';
|
318
|
-
case 'year':
|
319
|
-
return 'Y';
|
320
|
-
}
|
321
|
-
}
|
322
|
-
}
|
323
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZXRpbWUuY2xhc3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvcmUvc3JjL2xpYi9jbGFzc2VzL2RhdGV0aW1lLmNsYXNzL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ICAgICB2YWx1ZS5jb21wYWlyZU5ldyh0aGlzLnN0YXJ0VGltZSwgdGhpcy5nZXRWaWV3Q29tcGFpcmUodW5pdCksIHR5cGUpID49IDAgJiZcbiAgICAgIHZhbHVlLmNvbXBhaXJlTmV3KHRoaXMuZW5kVGltZSwgdGhpcy5nZXRWaWV3Q29tcGFpcmUodW5pdCksIHR5cGUpIDw9IDBcbiAgICApO1xuICB9XG5cbiAgZ2V0Vmlld0NvbXBhaXJlKHZpZXcpIHtcbiAgICBzd2l0Y2ggKHZpZXcpIHtcbiAgICAgIGNhc2UgJ2RheSc6XG4gICAgICAgIHJldHVybiAnWU1EJztcbiAgICAgIGNhc2UgJ21vbnRoJzpcbiAgICAgICAgcmV0dXJuICdZTSc7XG4gICAgICBjYXNlICd5ZWFyJzpcbiAgICAgICAgcmV0dXJuICdZJztcbiAgICB9XG4gIH1cbn1cbiJdfQ==
|
@@ -1,35 +0,0 @@
|
|
1
|
-
export class AXBaseMenuItem {
|
2
|
-
uid = new Date().getTime().toString();
|
3
|
-
id;
|
4
|
-
name;
|
5
|
-
text;
|
6
|
-
tooltip;
|
7
|
-
tooltipPlacement;
|
8
|
-
icon;
|
9
|
-
visible = true;
|
10
|
-
disable = false;
|
11
|
-
selected = false;
|
12
|
-
groupName;
|
13
|
-
data;
|
14
|
-
style = 'ax light';
|
15
|
-
orderIndex = 0;
|
16
|
-
endIcon;
|
17
|
-
startIcon;
|
18
|
-
onClick;
|
19
|
-
}
|
20
|
-
export class AXMenuItem extends AXBaseMenuItem {
|
21
|
-
items;
|
22
|
-
parentId;
|
23
|
-
divider = false;
|
24
|
-
}
|
25
|
-
export class AXButtonItem extends AXBaseMenuItem {
|
26
|
-
dropdown = false;
|
27
|
-
submitBehavior = false;
|
28
|
-
cancelBehavior = false;
|
29
|
-
}
|
30
|
-
export class AXCheckItem {
|
31
|
-
text;
|
32
|
-
value;
|
33
|
-
selected;
|
34
|
-
}
|
35
|
-
//# sourceMappingURL=data:application/json;base64,ey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aW9yPzogYm9vbGVhbiA9IGZhbHNlO1xufVxuXG5leHBvcnQgY2xhc3MgQVhDaGVja0l0ZW0ge1xuICB0ZXh0Pzogc3RyaW5nO1xuICB2YWx1ZT86IGFueTtcbiAgc2VsZWN0ZWQ/OiBib29sZWFuO1xufVxuIl19
|
@@ -1,2 +0,0 @@
|
|
1
|
-
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF2aWdhdG9yLmNsYXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb3JlL3NyYy9saWIvY2xhc3Nlcy9uYXZpZ2F0b3IuY2xhc3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgQVhOYXZpZ2F0b3JQYXJhbSB7XG4gICAgcGF0aDogc3RyaW5nO1xuICAgIHRpdGxlPzogc3RyaW5nO1xuICAgIGRhdGE/OiBhbnk7XG59Il19
|
@@ -1,2 +0,0 @@
|
|
1
|
-
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9wdXAuY2xhc3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvcmUvc3JjL2xpYi9jbGFzc2VzL3BvcHVwLmNsYXNzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIENsb3NpbmdFdmVudEFyZ3Mge1xuICAgIGNhbmNlbD86IGJvb2xlYW47XG4gICAgZGF0YT86IGFueTtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBDbG9zaW5nQWN0aW9uIHtcbiAgICBjYW5jZWw/OiBib29sZWFuO1xuICAgIGRhdGE/OiBhbnk7XG4gICAgcmVzb2x2ZTogKCkgPT4gdm9pZDtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBDbG9zZWRFdmVudEFyZ3Mge1xuICAgIGRhdGE/OiBhbnk7XG59XG4iXX0=
|
@@ -1,21 +0,0 @@
|
|
1
|
-
export class AXPromise {
|
2
|
-
_executor;
|
3
|
-
thenAction;
|
4
|
-
static resolve(value) {
|
5
|
-
const r = new AXPromise(z => {
|
6
|
-
z(value);
|
7
|
-
}).then(() => { });
|
8
|
-
return r;
|
9
|
-
}
|
10
|
-
constructor(executor) {
|
11
|
-
this._executor = executor;
|
12
|
-
setTimeout(() => {
|
13
|
-
this._executor(this.thenAction);
|
14
|
-
}, 50);
|
15
|
-
}
|
16
|
-
then(action) {
|
17
|
-
this.thenAction = action;
|
18
|
-
return this;
|
19
|
-
}
|
20
|
-
}
|
21
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvbWlzZS5jbGFzcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29yZS9zcmMvbGliL2NsYXNzZXMvcHJvbWlzZS5jbGFzcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLE9BQU8sU0FBUztJQUVWLFNBQVMsQ0FBbUM7SUFDNUMsVUFBVSxDQUFtQjtJQUVyQyxNQUFNLENBQUMsT0FBTyxDQUFJLEtBQVE7UUFDdEIsTUFBTSxDQUFDLEdBQUcsSUFBSSxTQUFTLENBQUksQ0FBQyxDQUFDLEVBQUU7WUFDM0IsQ0FBQyxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQ2IsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLEdBQUcsRUFBRSxHQUFHLENBQUMsQ0FBQyxDQUFDO1FBQ25CLE9BQU8sQ0FBQyxDQUFDO0lBQ2IsQ0FBQztJQUVELFlB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m9taXNlPFQ+IHtcbiAgICAgICAgdGhpcy50aGVuQWN0aW9uID0gYWN0aW9uO1xuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG59XG4iXX0=
|
@@ -1,2 +0,0 @@
|
|
1
|
-
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VjdGlvbmxpc3QuY2xhc3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvcmUvc3JjL2xpYi9jbGFzc2VzL3NlY3Rpb25saXN0LmNsYXNzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIEFYU2VsZWN0aW9uTGlzdCB7XG4gICAgaWQ/OiBzdHJpbmc7XG4gICAgbmFtZT86IHN0cmluZztcbiAgICB0ZXh0OiBzdHJpbmc7XG4gICAgdmFsdWU6IGJvb2xlYW47XG4gICAgZGlzYWJsZT86IGJvb2xlYW47XG4gICAgcmVhZG9ubHk/OiBib29sZWFuO1xufVxuIl19
|
@@ -1,8 +0,0 @@
|
|
1
|
-
export class AXSelectItem {
|
2
|
-
id;
|
3
|
-
name;
|
4
|
-
text;
|
5
|
-
visible;
|
6
|
-
disable;
|
7
|
-
}
|
8
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0LmNsYXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb3JlL3NyYy9saWIvY2xhc3Nlcy9zZWxlY3QuY2xhc3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxPQUFPLFlBQVk7SUFDdkIsRUFBRSxDQUFTO0lBQ1gsSUFBSSxDQUFVO0lBQ2QsSUFBSSxDQUFTO0lBQ2IsT0FBTyxDQUFXO0lBQ2xCLE9BQU8sQ0FBVztDQUNuQiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjbGFzcyBBWFNlbGVjdEl0ZW0ge1xuICBpZDogc3RyaW5nO1xuICBuYW1lPzogc3RyaW5nO1xuICB0ZXh0OiBzdHJpbmc7XG4gIHZpc2libGU/OiBib29sZWFuO1xuICBkaXNhYmxlPzogYm9vbGVhbjtcbn1cbiJdfQ==
|
@@ -1,27 +0,0 @@
|
|
1
|
-
import { NgModule } from '@angular/core';
|
2
|
-
import { AXDateTimePipe } from './pipe/datetime.pipe';
|
3
|
-
import { AXEventService } from './services/event.service';
|
4
|
-
import { AXStorageService } from './services/storage.service';
|
5
|
-
import { AXScrollModule } from './utils/scroll/scroll.module';
|
6
|
-
import { AXTranslatorModule } from './translator/translator.module';
|
7
|
-
import * as i0 from "@angular/core";
|
8
|
-
const PIPES = [AXDateTimePipe];
|
9
|
-
const MODULES = [AXScrollModule, AXTranslatorModule];
|
10
|
-
const SERVICES = [AXEventService,
|
11
|
-
AXStorageService
|
12
|
-
];
|
13
|
-
export class AXCoreModule {
|
14
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
15
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: AXCoreModule, declarations: [AXDateTimePipe], imports: [AXScrollModule, AXTranslatorModule], exports: [AXDateTimePipe] });
|
16
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXCoreModule, providers: [...SERVICES], imports: [MODULES] });
|
17
|
-
}
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXCoreModule, decorators: [{
|
19
|
-
type: NgModule,
|
20
|
-
args: [{
|
21
|
-
declarations: [...PIPES],
|
22
|
-
imports: [...MODULES],
|
23
|
-
exports: [...PIPES],
|
24
|
-
providers: [...SERVICES]
|
25
|
-
}]
|
26
|
-
}] });
|
27
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29yZS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvcmUvc3JjL2xpYi9jb3JlLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUN0RCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDMUQsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFDOUQsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLDhCQUE4QixDQUFDO0FBQzlELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLGdDQUFnQyxDQUFDOztBQUVwRSxNQUFNLEtBQUssR0FBRyxDQUFDLGNBQWMsQ0FBQyxDQUFDO0FBQy9CLE1BQU0sT0FBTyxHQUFHLENBQUMsY0FBYyxFQUFFLGtCQUFrQixDQUFDLENBQUM7QUFDckQsTUFBTSxRQUFRLEdBQUcsQ0FBQyxjQUFjO0lBQzlCLGdCQUFnQjtDQUNqQixDQUFDO0FBU0YsTUFBTSxPQUFPLFlBQVk7d0dBQVosWUFBWTt5R0FBWixZQUFZLGlCQWJWLGNBQWMsYUFDWixjQUFjLEVBQUUsa0JBQWtCLGFBRHBDLGNBQWM7eUdBYWhCLFlBQVksYUFGWixDQUFDLEdBQUcsUUFBUSxDQUFDLFlBRlgsT0FBTzs7NEZBSVQsWUFBWTt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iAgcHJvdmlkZXJzOiBbLi4uU0VSVklDRVNdXG59KVxuZXhwb3J0IGNsYXNzIEFYQ29yZU1vZHVsZSB7IH1cbiJdfQ==
|
@@ -1,2 +0,0 @@
|
|
1
|
-
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3IuY2xhc3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvcmUvc3JjL2xpYi9lcnJvci9lcnJvci5jbGFzcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBBWEVycm9yIHtcbiAgICBtZXNzYWdlOiBzdHJpbmc7XG4gICAgY29kZTogc3RyaW5nO1xufVxuIl19
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { NgModule } from '@angular/core';
|
2
|
-
import { CommonModule } from '@angular/common';
|
3
|
-
import { AXErrorService } from './error.service';
|
4
|
-
import * as i0 from "@angular/core";
|
5
|
-
export class AXErrorModule {
|
6
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXErrorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
7
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: AXErrorModule, imports: [CommonModule] });
|
8
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXErrorModule, providers: [AXErrorService], imports: [CommonModule] });
|
9
|
-
}
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXErrorModule, decorators: [{
|
11
|
-
type: NgModule,
|
12
|
-
args: [{
|
13
|
-
declarations: [],
|
14
|
-
imports: [CommonModule],
|
15
|
-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WxlXSxcbiAgICBleHBvcnRzOiBbXSxcbiAgICBwcm92aWRlcnM6IFtBWEVycm9yU2VydmljZV0sXG59KVxuZXhwb3J0IGNsYXNzIEFYRXJyb3JNb2R1bGUge1xuXG59XG4iXX0=
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import { InjectionToken, Injectable, Injector } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
export const AX_ERROR_DISPLAY_INTERCEPTOR = new InjectionToken('ax.error');
|
4
|
-
export class AXErrorService {
|
5
|
-
injector;
|
6
|
-
constructor(injector) {
|
7
|
-
this.injector = injector;
|
8
|
-
}
|
9
|
-
handle(message) {
|
10
|
-
const instance = this.injector.get(AX_ERROR_DISPLAY_INTERCEPTOR);
|
11
|
-
if (instance) {
|
12
|
-
instance.show(message);
|
13
|
-
}
|
14
|
-
}
|
15
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXErrorService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
16
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXErrorService, providedIn: 'root' });
|
17
|
-
}
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXErrorService, decorators: [{
|
19
|
-
type: Injectable,
|
20
|
-
args: [{ providedIn: 'root' }]
|
21
|
-
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
22
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3Iuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29yZS9zcmMvbGliL2Vycm9yL2Vycm9yLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE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uICAgIGNvbnN0cnVjdG9yKHByaXZhdGUgaW5qZWN0b3I6IEluamVjdG9yKSB7XG5cbiAgICB9XG5cbiAgICBoYW5kbGUobWVzc2FnZTogc3RyaW5nKSB7XG4gICAgICAgIGNvbnN0IGluc3RhbmNlID0gdGhpcy5pbmplY3Rvci5nZXQoQVhfRVJST1JfRElTUExBWV9JTlRFUkNFUFRPUik7XG4gICAgICAgIGlmIChpbnN0YW5jZSkge1xuICAgICAgICAgICAgaW5zdGFuY2Uuc2hvdyhtZXNzYWdlKTtcbiAgICAgICAgfVxuICAgIH1cblxufVxuIl19
|
@@ -1,2 +0,0 @@
|
|
1
|
-
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2V5Ym9hcmQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvcmUvc3JjL2xpYi9ldmVudHMva2V5Ym9hcmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbIlxuLy8gdHNsaW50OmRpc2FibGUtbmV4dC1saW5lOiBuby1lbXB0eS1pbnRlcmZhY2VcbmV4cG9ydCBpbnRlcmZhY2UgQVhLZXlib2FyZEV2ZW50IGV4dGVuZHMgS2V5Ym9hcmRFdmVudCB7XG5cbn1cbiJdfQ==
|
@@ -1,2 +0,0 @@
|
|
1
|
-
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHR0cC1lcnJvci5jbGFzcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29yZS9zcmMvbGliL2h0dHAvaHR0cC1lcnJvci5jbGFzcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBJSHR0cEVycm9yIHtcbiAgICBtZXNzYWdlPzogc3RyaW5nO1xuICAgIHN0YXR1cz86IG51bWJlcjtcbiAgICBjb2RlPzogc3RyaW5nO1xuICAgIGhhbmRsZWQ6IGJvb2xlYW47XG4gICAgZXJyb3I6IGFueSB8IG51bGxcbn0iXX0=
|
@@ -1,3 +0,0 @@
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
2
|
-
export const AX_HTTP_EVENT_INTERCEPTOR = new InjectionToken('ax.http.events');
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHR0cC1ldmVudHMuaW50ZXJjZXB0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvcmUvc3JjL2xpYi9odHRwL2h0dHAtZXZlbnRzLmludGVyY2VwdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFHL0MsTUFBTSxDQUFDLE1BQU0seUJBQXlCLEdBQUcsSUFBSSxjQUFjLENBQXlCLGdCQUFnQixDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJSHR0cEVycm9yIH0gZnJvbSAnLi9odHRwLWVycm9yLmNsYXNzJztcbmltcG9ydCB7IEluamVjdGlvblRva2VuIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBBWEh0dHBSZXF1ZXN0T3B0aW9ucyB9IGZyb20gJy4vaHR0cC1yZXF1ZXN0LmNsYXNzJztcblxuZXhwb3J0IGNvbnN0IEFYX0hUVFBfRVZFTlRfSU5URVJDRVBUT1IgPSBuZXcgSW5qZWN0aW9uVG9rZW48QVhIdHRwRXZlbnRJbnRlcmNlcHRvcj4oJ2F4Lmh0dHAuZXZlbnRzJyk7XG5cbmV4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cmVzcG9uc2VUeXBlPzogYW55O1xufSJdfQ==
|
@@ -1,25 +0,0 @@
|
|
1
|
-
export class HttpResult {
|
2
|
-
_executor;
|
3
|
-
constructor(executor) {
|
4
|
-
this._executor = executor;
|
5
|
-
setTimeout(() => {
|
6
|
-
this._executor(this.resultAction, this.errorAction, this.completeAction);
|
7
|
-
}, 50);
|
8
|
-
}
|
9
|
-
resultAction;
|
10
|
-
errorAction;
|
11
|
-
completeAction;
|
12
|
-
result(action) {
|
13
|
-
this.resultAction = action;
|
14
|
-
return this;
|
15
|
-
}
|
16
|
-
error(action) {
|
17
|
-
this.errorAction = action;
|
18
|
-
return this;
|
19
|
-
}
|
20
|
-
complete(action) {
|
21
|
-
this.completeAction = action;
|
22
|
-
return this;
|
23
|
-
}
|
24
|
-
}
|
25
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHR0cC1yZXN1bHQuY2xhc3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvcmUvc3JjL2xpYi9odHRwL2h0dHAtcmVzdWx0LmNsYXNzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE1BQU0sT0FBTyxVQUFVO0lBQ1gsU0FBUyxDQUEyRjtJQUM1RyxZQUNJLFFBSVM7UUFFVCxJQUFJLENBQUMsU0FBUyxHQUFHLFFBQVEsQ0FBQztRQUMxQixVQUFVLENBQUMsR0FBRyxFQUFFO1lBQ1osSUFBSSxDQUFDLFNBQVMsQ0FBQyxJQUFJLENBQUMsWUFBWSxFQUFFLElBQUksQ0FBQyxXQUFXLEVBQUUsSUFBSSxDQUFDLGNBQWMsQ0FBQyxDQUFDO1FBQzdFLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQztJQUNYLENBQUM7SUFFTyxZQUFZLENBQWtCO0lBQzlCLFdBQVcsQ0FBMkI7SUFDdEMsY0FBYyxDQUF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vbXBsZXRlQWN0aW9uKTtcbiAgICAgICAgfSwgNTApO1xuICAgIH1cblxuICAgIHByaXZhdGUgcmVzdWx0QWN0aW9uOiAoZT86IFQpID0+IHZvaWQ7XG4gICAgcHJpdmF0ZSBlcnJvckFjdGlvbjogKGU/OiBJSHR0cEVycm9yKSA9PiB2b2lkO1xuICAgIHByaXZhdGUgY29tcGxldGVBY3Rpb246ICgpID0+IHZvaWQ7XG5cbiAgICByZXN1bHQoYWN0aW9uOiAoZT86IFQpID0+IHZvaWQpOiBIdHRwUmVzdWx0PFQ+IHsgXG4gICAgICAgIHRoaXMucmVzdWx0QWN0aW9uID0gYWN0aW9uO1xuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG4gICAgZXJyb3IoYWN0aW9uOiAoZT86IElIdHRwRXJyb3IpID0+IHZvaWQpOiBIdHRwUmVzdWx0PFQ+IHtcbiAgICAgICAgdGhpcy5lcnJvckFjdGlvbiA9IGFjdGlvbjtcbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuICAgIGNvbXBsZXRlKGFjdGlvbjogKCkgPT4gdm9pZCk6IEh0dHBSZXN1bHQ8VD4ge1xuICAgICAgICB0aGlzLmNvbXBsZXRlQWN0aW9uID0gYWN0aW9uO1xuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG59Il19
|
@@ -1,35 +0,0 @@
|
|
1
|
-
import { NgModule } from '@angular/core';
|
2
|
-
import { CommonModule } from '@angular/common';
|
3
|
-
import { HttpClientModule } from '@angular/common/http';
|
4
|
-
import { AXHttpService } from './http.service';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
export class AXHttpModule {
|
7
|
-
static forRoot() {
|
8
|
-
return {
|
9
|
-
ngModule: AXHttpModule,
|
10
|
-
providers: [AXHttpService]
|
11
|
-
};
|
12
|
-
}
|
13
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXHttpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
14
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: AXHttpModule, imports: [CommonModule,
|
15
|
-
HttpClientModule], exports: [HttpClientModule] });
|
16
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXHttpModule, providers: [
|
17
|
-
AXHttpService
|
18
|
-
], imports: [CommonModule,
|
19
|
-
HttpClientModule, HttpClientModule] });
|
20
|
-
}
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AXHttpModule, decorators: [{
|
22
|
-
type: NgModule,
|
23
|
-
args: [{
|
24
|
-
declarations: [],
|
25
|
-
imports: [
|
26
|
-
CommonModule,
|
27
|
-
HttpClientModule
|
28
|
-
],
|
29
|
-
exports: [HttpClientModule],
|
30
|
-
providers: [
|
31
|
-
AXHttpService
|
32
|
-
]
|
33
|
-
}]
|
34
|
-
}] });
|
35
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHR0cC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvcmUvc3JjL2xpYi9odHRwL2h0dHAubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQXVCLE1BQU0sZUFBZSxDQUFDO0FBQzlELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUN4RCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7O0FBYy9DLE1BQU0sT0FBTyxZQUFZO0lBQ3ZCLE1BQU0sQ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