@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
@@ -0,0 +1,43 @@
|
|
1
|
+
import { Injectable } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export class AXImageService {
|
4
|
+
async resize(options) {
|
5
|
+
options = Object.assign({ type: 'image/png', quality: 1 }, options);
|
6
|
+
let image;
|
7
|
+
if (options.source instanceof File) {
|
8
|
+
const a = new Image();
|
9
|
+
a.src = URL.createObjectURL(options.source);
|
10
|
+
await new Promise((res) => (a.onload = res));
|
11
|
+
image = a;
|
12
|
+
}
|
13
|
+
else {
|
14
|
+
image = options.source;
|
15
|
+
}
|
16
|
+
// Resize the image
|
17
|
+
const canvas = document.createElement('canvas');
|
18
|
+
let width = image.width;
|
19
|
+
let height = image.height;
|
20
|
+
if (width > height) {
|
21
|
+
if (width > options.maxSize) {
|
22
|
+
height *= options.maxSize / width;
|
23
|
+
width = options.maxSize;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
else {
|
27
|
+
if (height > options.maxSize) {
|
28
|
+
width *= options.maxSize / height;
|
29
|
+
height = options.maxSize;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
canvas.width = width;
|
33
|
+
canvas.height = height;
|
34
|
+
canvas.getContext('2d').drawImage(image, 0, 0, width, height);
|
35
|
+
return new Promise((resolve) => canvas.toBlob(resolve, options.type, options.quality));
|
36
|
+
}
|
37
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXImageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
38
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXImageService }); }
|
39
|
+
}
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXImageService, decorators: [{
|
41
|
+
type: Injectable
|
42
|
+
}] });
|
43
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW1hZ2Uuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29yZS9p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MubWF4U2l6ZSAvIHdpZHRoO1xuICAgICAgICB3aWR0aCA9IG9wdGlvbnMubWF4U2l6ZTtcbiAgICAgIH1cbiAgICB9IGVsc2Uge1xuICAgICAgaWYgKGhlaWdodCA+IG9wdGlvbnMubWF4U2l6ZSkge1xuICAgICAgICB3aWR0aCAqPSBvcHRpb25zLm1heFNpemUgLyBoZWlnaHQ7XG4gICAgICAgIGhlaWdodCA9IG9wdGlvbnMubWF4U2l6ZTtcbiAgICAgIH1cbiAgICB9XG4gICAgY2FudmFzLndpZHRoID0gd2lkdGg7XG4gICAgY2FudmFzLmhlaWdodCA9IGhlaWdodDtcbiAgICBjYW52YXMuZ2V0Q29udGV4dCgnMmQnKS5kcmF3SW1hZ2UoaW1hZ2UsIDAsIDAsIHdpZHRoLCBoZWlnaHQpO1xuICAgIHJldHVybiBuZXcgUHJvbWlzZSgocmVzb2x2ZSkgPT5cbiAgICAgIGNhbnZhcy50b0Jsb2IocmVzb2x2ZSwgb3B0aW9ucy50eXBlLCBvcHRpb25zLnF1YWxpdHkpXG4gICAgKTtcbiAgfVxufVxuIl19
|
package/esm2022/index.mjs
CHANGED
@@ -1,44 +1,2 @@
|
|
1
|
-
export
|
2
|
-
|
3
|
-
export * from './lib/classes/menu.class';
|
4
|
-
export * from './lib/classes/navigator.class';
|
5
|
-
export * from './lib/classes/popup.class';
|
6
|
-
export * from './lib/classes/promise.class';
|
7
|
-
export * from './lib/classes/sectionlist.class';
|
8
|
-
export * from './lib/classes/select.class';
|
9
|
-
export * from './lib/classes/base-page.class';
|
10
|
-
export * from './lib/error/error.class';
|
11
|
-
export * from './lib/error/error.module';
|
12
|
-
export * from './lib/error/error.service';
|
13
|
-
export * from './lib/events/keyboard';
|
14
|
-
export * from './lib/http/http-error.class';
|
15
|
-
export * from './lib/http/http-events.interceptor';
|
16
|
-
export * from './lib/http/http-request.class';
|
17
|
-
export * from './lib/http/http-result.class';
|
18
|
-
export * from './lib/http/http.module';
|
19
|
-
export * from './lib/http/http.service';
|
20
|
-
export * from './lib/platform/index';
|
21
|
-
export * from './lib/pipe/datetime.pipe';
|
22
|
-
export * from './lib/pipe/htmlToText.pipe';
|
23
|
-
export * from './lib/services/event.service';
|
24
|
-
export * from './lib/services/navigator.service';
|
25
|
-
export * from './lib/services/storage.service';
|
26
|
-
export * from './lib/services/config';
|
27
|
-
export * from './lib/translator/translator.service';
|
28
|
-
export * from './lib/translator/translator.pipe';
|
29
|
-
export * from './lib/translator/translator';
|
30
|
-
export * from './lib/translator/translator.module';
|
31
|
-
export * from './lib/utils/array/array-util';
|
32
|
-
export * from './lib/utils/html/html-util';
|
33
|
-
export * from './lib/utils/html/html.module';
|
34
|
-
export * from './lib/utils/math/math-util';
|
35
|
-
export * from './lib/utils/object/object-util';
|
36
|
-
export * from './lib/utils/render/render.service';
|
37
|
-
export * from './lib/utils/render/on-demand-preload-strategy.service';
|
38
|
-
export * from './lib/utils/render/rendering.module';
|
39
|
-
export * from './lib/utils/scroll/scroll.directive';
|
40
|
-
export * from './lib/utils/scroll/scroll.module';
|
41
|
-
export * from './lib/utils/separator/separator.module';
|
42
|
-
export * from './lib/utils/separator/separator.pipe';
|
43
|
-
export * from './lib/core.module';
|
44
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWJzL2NvcmUvc3JjL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsMkJBQTJCLENBQUM7QUFDMUMsY0FBYyw4QkFBOEIsQ0FBQztBQUM3QyxjQUFjLDBCQUEwQixDQUFDO0FBQ3pDLGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYywyQkFBMkIsQ0FBQztBQUMxQyxjQUFjLDZCQUE2QixDQUFDO0FBQzVDLGNBQWMsaUNBQWlDLENBQUM7QUFDaEQsY0FBYyw0QkFBNEIs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bCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi91dGlscy9vYmplY3Qvb2JqZWN0LXV0aWwnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvdXRpbHMvcmVuZGVyL3JlbmRlci5zZXJ2aWNlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3V0aWxzL3JlbmRlci9vbi1kZW1hbmQtcHJlbG9hZC1zdHJhdGVneS5zZXJ2aWNlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3V0aWxzL3JlbmRlci9yZW5kZXJpbmcubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3V0aWxzL3Njcm9sbC9zY3JvbGwuZGlyZWN0aXZlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3V0aWxzL3Njcm9sbC9zY3JvbGwubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3V0aWxzL3NlcGFyYXRvci9zZXBhcmF0b3IubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3V0aWxzL3NlcGFyYXRvci9zZXBhcmF0b3IucGlwZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb3JlLm1vZHVsZSc7XG5cbiJdfQ==
|
1
|
+
export const AX_CORE = 'ACOREX_CORE';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWJzL2NvcmUvc3JjL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBQyxNQUFNLE9BQU8sR0FBRyxhQUFhLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgQVhfQ09SRSA9ICdBQ09SRVhfQ09SRSc7XG4iXX0=
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './index';
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNvcmV4LWNvcmUtbWVtb3JpemUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvcmUvbWVtb3JpemUvc3JjL2Fjb3JleC1jb3JlLW1lbW9yaXplLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export * from './lib/memorize.decorator';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvcmUvbWVtb3JpemUvc3JjL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsMEJBQTBCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYi9tZW1vcml6ZS5kZWNvcmF0b3InO1xuIl19
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import memoizee from 'memoizee';
|
2
|
+
export function Memorize() {
|
3
|
+
return (target, propertyKey, descriptor) => {
|
4
|
+
const originalNgOnDestroy = target.ngOnDestroy;
|
5
|
+
const originalMethod = descriptor.value;
|
6
|
+
const memorizedMethod = memoizee(originalMethod);
|
7
|
+
target.ngOnDestroy = function () {
|
8
|
+
if (originalNgOnDestroy) {
|
9
|
+
originalNgOnDestroy.apply(this);
|
10
|
+
}
|
11
|
+
memorizedMethod.clear();
|
12
|
+
};
|
13
|
+
descriptor.value = function (...args) {
|
14
|
+
return memorizedMethod.apply(this, args);
|
15
|
+
};
|
16
|
+
return descriptor;
|
17
|
+
};
|
18
|
+
}
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVtb3JpemUuZGVjb3JhdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb3JlL21lbW9yaXplL3NyYy9saWIvbWVtb3JpemUuZGVjb3JhdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sUUFBUSxNQUFNLFVBQVUsQ0FBQztBQUVoQyxNQUFNLFVBQVUsUUFBUTtJQUN0QixPQUFPLENBQUMsTUFBVyxFQUFFLFdBQW1CLEVBQUUsVUFBOEIsRUFBRSxFQUFFO1FBQzFFLE1BQU0sbUJBQW1CLEdBQUcsTUFBTSxDQUFDLFdBQVcsQ0FBQztRQUMvQyxNQUFNLGNBQWMsR0FBRyxVQUFVLENBQUMsS0FBSyxDQUFDO1FBQ3hDLE1BQU0sZUFBZSxHQUFHLFFBQVEsQ0FBQyxjQUFjLENBQUMsQ0FBQztRQUNqRCxNQUFNLENBQUMsV0FBVyxHQUFHO1lBQ25CLElBQUksbUJBQW1CLEVBQUUsQ0FBQztnQkFDeEIsbUJBQW1CLENBQUMsS0FBSyxDQUFDLElBQUksQ0FBQyxDQUFDO1lBQ2xDLENBQUM7WUFDRCxlQUFlLENBQUMsS0FBSyxFQUFFLENBQUM7UUFDMUIsQ0FBQyxDQUFDO1FBQ0YsVUFBVSxDQUFDLEtBQUssR0FBRyxVQUFVLEdBQUcsSUFBSTtZQUNsQyxPQUFPLGVBQWUsQ0FBQyxLQUFLLENBQUMsSUFBSSxFQUFFLElBQUksQ0FBQyxDQUFDO1FBQzNDLENBQUMsQ0FBQztRQUNGLE9BQU8sVUFBVSxDQUFDO0lBQ3BCLENBQUMsQ0FBQztBQUNKLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgbWVtb2l6ZWUgZnJvbSAnbWVtb2l6ZWUnO1xuXG5leHBvcnQgZnVuY3Rpb24gTWVtb3JpemUoKSB7XG4gIHJldHVybiAodGFyZ2V0OiBhbnksIHByb3BlcnR5S2V5OiBzdHJpbmcsIGRlc2NyaXB0b3I6IFByb3BlcnR5RGVzY3JpcHRvcikgPT4ge1xuICAgIGNvbnN0IG9yaWdpbmFsTmdPbkRlc3Ryb3kgPSB0YXJnZXQubmdPbkRlc3Ryb3k7XG4gICAgY29uc3Qgb3JpZ2luYWxNZXRob2QgPSBkZXNjcmlwdG9yLnZhbHVlO1xuICAgIGNvbnN0IG1lbW9yaXplZE1ldGhvZCA9IG1lbW9pemVlKG9yaWdpbmFsTWV0aG9kKTtcbiAgICB0YXJnZXQubmdPbkRlc3Ryb3kgPSBmdW5jdGlvbiAoKSB7XG4gICAgICBpZiAob3JpZ2luYWxOZ09uRGVzdHJveSkge1xuICAgICAgICBvcmlnaW5hbE5nT25EZXN0cm95LmFwcGx5KHRoaXMpO1xuICAgICAgfVxuICAgICAgbWVtb3JpemVkTWV0aG9kLmNsZWFyKCk7XG4gICAgfTtcbiAgICBkZXNjcmlwdG9yLnZhbHVlID0gZnVuY3Rpb24gKC4uLmFyZ3MpIHtcbiAgICAgIHJldHVybiBtZW1vcml6ZWRNZXRob2QuYXBwbHkodGhpcywgYXJncyk7XG4gICAgfTtcbiAgICByZXR1cm4gZGVzY3JpcHRvcjtcbiAgfTtcbn1cbiJdfQ==
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './index';
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNvcmV4LWNvcmUtcGlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvcmUvcGlwZXMvc3JjL2Fjb3JleC1jb3JlLXBpcGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export * from './lib/safe/safe.pipe';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvcmUvcGlwZXMvc3JjL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsc0JBQXNCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYi9zYWZlL3NhZmUucGlwZSc7XG4iXX0=
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import { Pipe } from '@angular/core';
|
2
|
+
import { DomSanitizer, } from '@angular/platform-browser';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "@angular/platform-browser";
|
5
|
+
export class AXSafePipe {
|
6
|
+
constructor(sanitizer) {
|
7
|
+
this.sanitizer = sanitizer;
|
8
|
+
}
|
9
|
+
transform(value, type) {
|
10
|
+
if (value == null || value == undefined || value == '')
|
11
|
+
return '';
|
12
|
+
switch (type) {
|
13
|
+
case 'html':
|
14
|
+
return this.sanitizer.bypassSecurityTrustHtml(value);
|
15
|
+
case 'style':
|
16
|
+
return this.sanitizer.bypassSecurityTrustStyle(value);
|
17
|
+
case 'script':
|
18
|
+
return this.sanitizer.bypassSecurityTrustScript(value);
|
19
|
+
case 'url':
|
20
|
+
return this.sanitizer.bypassSecurityTrustUrl(value);
|
21
|
+
case 'resourceUrl':
|
22
|
+
return this.sanitizer.bypassSecurityTrustResourceUrl(value);
|
23
|
+
default:
|
24
|
+
throw new Error(`Invalid safe type specified: ${type}`);
|
25
|
+
}
|
26
|
+
}
|
27
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXSafePipe, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
28
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.2", ngImport: i0, type: AXSafePipe, isStandalone: true, name: "safe" }); }
|
29
|
+
}
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXSafePipe, decorators: [{
|
31
|
+
type: Pipe,
|
32
|
+
args: [{
|
33
|
+
name: 'safe',
|
34
|
+
pure: true,
|
35
|
+
standalone: true,
|
36
|
+
}]
|
37
|
+
}], ctorParameters: () => [{ type: i1.DomSanitizer }] });
|
38
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2FmZS5waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb3JlL3BpcGVzL3NyYy9saWIvc2FmZS9zYWZlLnBpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLElBQUksRUFBaUIsTUFBTSxlQUFlLENBQUM7QUFDcEQsT0FBTyxFQUNMLFlBQVksR0FNYixNQUFNLDJCQUEyQixDQUFDOzs7QUFPbkMsTUFBTSxPQUFPLFVBQVU7SUFDckIsWUFBc0IsU0FBdUI7UUFBdkIsY0FBUyxHQUFULFNBQVMsQ0FBYztJ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lKTtcbiAgICAgIGNhc2UgJ3VybCc6XG4gICAgICAgIHJldHVybiB0aGlzLnNhbml0aXplci5ieXBhc3NTZWN1cml0eVRydXN0VXJsKHZhbHVlKTtcbiAgICAgIGNhc2UgJ3Jlc291cmNlVXJsJzpcbiAgICAgICAgcmV0dXJuIHRoaXMuc2FuaXRpemVyLmJ5cGFzc1NlY3VyaXR5VHJ1c3RSZXNvdXJjZVVybCh2YWx1ZSk7XG4gICAgICBkZWZhdWx0OlxuICAgICAgICB0aHJvdyBuZXcgRXJyb3IoYEludmFsaWQgc2FmZSB0eXBlIHNwZWNpZmllZDogJHt0eXBlfWApO1xuICAgIH1cbiAgfVxufVxuIl19
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './index';
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNvcmV4LWNvcmUtcGxhdGZvcm0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvcmUvcGxhdGZvcm0vc3JjL2Fjb3JleC1jb3JlLXBsYXRmb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export * from './lib/platform.service';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvcmUvcGxhdGZvcm0vc3JjL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsd0JBQXdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYi9wbGF0Zm9ybS5zZXJ2aWNlJztcbiJdfQ==
|
@@ -0,0 +1,225 @@
|
|
1
|
+
import { Injectable } from '@angular/core';
|
2
|
+
import { BehaviorSubject, Subject, fromEvent } from 'rxjs';
|
3
|
+
import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
const isChrome = (win) => testUserAgent(win, /Chrome/i);
|
6
|
+
const isFirefox = (win) => testUserAgent(win, /Firefox/i);
|
7
|
+
const isEdge = (win) => testUserAgent(win, /Edge/i);
|
8
|
+
const isSafari = (win) => testUserAgent(win, /Safari/i);
|
9
|
+
const isOpera = (win) => testUserAgent(win, /Opera/i) || testUserAgent(win, /OPR/i);
|
10
|
+
const isMSIE = (win) => testUserAgent(win, /MSIE/i) || testUserAgent(win, /Trident/i);
|
11
|
+
const isMobileWeb = (win) => isMobile(win) && !isHybrid(win);
|
12
|
+
const isIpad = (win) => {
|
13
|
+
// iOS 12 and below
|
14
|
+
if (testUserAgent(win, /iPad/i)) {
|
15
|
+
return true;
|
16
|
+
}
|
17
|
+
// iOS 13+
|
18
|
+
if (testUserAgent(win, /Macintosh/i) && isMobile(win)) {
|
19
|
+
return true;
|
20
|
+
}
|
21
|
+
return false;
|
22
|
+
};
|
23
|
+
const isIphone = (win) => testUserAgent(win, /iPhone/i);
|
24
|
+
const isIOS = (win) => testUserAgent(win, /iPhone|iPod/i) || isIpad(win);
|
25
|
+
const isAndroid = (win) => testUserAgent(win, /android|sink/i);
|
26
|
+
const isAndroidTablet = (win) => {
|
27
|
+
return isAndroid(win) && !testUserAgent(win, /mobile/i);
|
28
|
+
};
|
29
|
+
const isPhablet = (win) => {
|
30
|
+
const width = win.innerWidth;
|
31
|
+
const height = win.innerHeight;
|
32
|
+
const smallest = Math.min(width, height);
|
33
|
+
const largest = Math.max(width, height);
|
34
|
+
return smallest > 390 && smallest < 520 && largest > 620 && largest < 800;
|
35
|
+
};
|
36
|
+
const isTablet = (win) => {
|
37
|
+
const width = win.innerWidth;
|
38
|
+
const height = win.innerHeight;
|
39
|
+
const smallest = Math.min(width, height);
|
40
|
+
const largest = Math.max(width, height);
|
41
|
+
return isIpad(win) || isAndroidTablet(win) || (smallest > 460 && smallest < 820 && largest > 780 && largest < 1400);
|
42
|
+
};
|
43
|
+
const isMobile = (win) => matchMedia(win, '(any-pointer:coarse)');
|
44
|
+
const isTouch = (win) => matchMedia(win, '(any-pointer:coarse)');
|
45
|
+
const isDesktop = (win) => !isMobile(win);
|
46
|
+
const isHybrid = (win) => isCordova(win) || isCapacitorNative(win);
|
47
|
+
const isCordova = (win) => !!(win['cordova'] || win['phonegap'] || win['PhoneGap']);
|
48
|
+
const isCapacitorNative = (win) => {
|
49
|
+
const capacitor = win['Capacitor'];
|
50
|
+
return !!(capacitor && capacitor.isNative);
|
51
|
+
};
|
52
|
+
const isElectron = (win) => testUserAgent(win, /electron/i);
|
53
|
+
const isPWA = (win) => !!(win.matchMedia('(display-mode: standalone)').matches || win.navigator.standalone);
|
54
|
+
export const testUserAgent = (win, expr) => expr.test(win.navigator.userAgent);
|
55
|
+
export const isBrowser = new Function('try {return this===window;}catch(e){ return false;}');
|
56
|
+
export const isServer = new Function('try {return this===global;}catch(e){return false;}');
|
57
|
+
const matchMedia = (win, query) => {
|
58
|
+
if (isBrowser())
|
59
|
+
return win.matchMedia(query).matches;
|
60
|
+
return false;
|
61
|
+
};
|
62
|
+
const isSMScreen = (win) => matchMedia(win, '(max-width: 578px)');
|
63
|
+
const isMDScreen = (win) => matchMedia(win, '(max-width: 768px)');
|
64
|
+
const isLGScreen = (win) => matchMedia(win, '(max-width: 992px)');
|
65
|
+
const isXLScreen = (win) => matchMedia(win, '(max-width: 1200px)');
|
66
|
+
const is2XLScreen = (win) => matchMedia(win, '(max-width: 1440px)');
|
67
|
+
const is3XLScreen = (win) => matchMedia(win, '(max-width: 1920px)');
|
68
|
+
const is4XLScreen = (win) => matchMedia(win, '(max-width: 2560px)');
|
69
|
+
const PLATFORMS_MAP = {
|
70
|
+
Android: isAndroid,
|
71
|
+
iOS: isIOS,
|
72
|
+
Desktop: isDesktop,
|
73
|
+
Mobile: isMobile,
|
74
|
+
Touch: isTouch,
|
75
|
+
Chrome: isChrome,
|
76
|
+
Firefox: isFirefox,
|
77
|
+
Safari: isSafari,
|
78
|
+
Edge: isEdge,
|
79
|
+
Opera: isOpera,
|
80
|
+
Hybrid: isHybrid,
|
81
|
+
PWA: isPWA,
|
82
|
+
Electron: isElectron,
|
83
|
+
SM: isSMScreen,
|
84
|
+
MD: isMDScreen,
|
85
|
+
LG: isLGScreen,
|
86
|
+
XL: isXLScreen,
|
87
|
+
'2XL': is2XLScreen,
|
88
|
+
'3XL': is3XLScreen,
|
89
|
+
'4XL': is4XLScreen,
|
90
|
+
};
|
91
|
+
export class AXPlatformEvent {
|
92
|
+
}
|
93
|
+
export class AXPlatform {
|
94
|
+
isRtl() {
|
95
|
+
return document.dir == 'rtl' || document.body.dir == 'rtl' || document.body.style.direction == 'rtl';
|
96
|
+
}
|
97
|
+
isLandscape() {
|
98
|
+
return window.innerHeight < window.innerWidth;
|
99
|
+
}
|
100
|
+
isPortrate() {
|
101
|
+
return !this.isLandscape();
|
102
|
+
}
|
103
|
+
is(name) {
|
104
|
+
if (isBrowser()) {
|
105
|
+
return PLATFORMS_MAP[name](window) || false;
|
106
|
+
}
|
107
|
+
else {
|
108
|
+
return false;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
get screenSize() {
|
112
|
+
return (['SM', 'MD', 'LG', 'XL', '2XL', '3XL', '4XL'].find((name) => PLATFORMS_MAP[name](window) == true) || '5XL');
|
113
|
+
}
|
114
|
+
switchLightMode() {
|
115
|
+
const _html = document.getElementsByTagName('html')[0];
|
116
|
+
_html.classList.remove('ax-dark');
|
117
|
+
localStorage.setItem('AX_THEME_MODE', 'light');
|
118
|
+
this.themeMode$.next('light');
|
119
|
+
return 'light';
|
120
|
+
}
|
121
|
+
switchDarkMode() {
|
122
|
+
const _html = document.getElementsByTagName('html')[0];
|
123
|
+
_html.classList.add('ax-dark');
|
124
|
+
localStorage.setItem('AX_THEME_MODE', 'dark');
|
125
|
+
this.themeMode$.next('dark');
|
126
|
+
}
|
127
|
+
switchSystemMode() {
|
128
|
+
if (isBrowser()) {
|
129
|
+
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
130
|
+
const _html = document.getElementsByTagName('html')[0];
|
131
|
+
_html.classList.add('ax-dark');
|
132
|
+
}
|
133
|
+
else {
|
134
|
+
const _html = document.getElementsByTagName('html')[0];
|
135
|
+
_html.classList.remove('ax-dark');
|
136
|
+
}
|
137
|
+
localStorage.setItem('AX_THEME_MODE', 'system');
|
138
|
+
this.themeMode$.next('system');
|
139
|
+
}
|
140
|
+
}
|
141
|
+
autoDetectThemeMode() {
|
142
|
+
if (isBrowser()) {
|
143
|
+
const mode = localStorage.getItem('AX_THEME_MODE') || 'system';
|
144
|
+
switch (mode) {
|
145
|
+
case 'light':
|
146
|
+
return this.switchLightMode();
|
147
|
+
case 'dark':
|
148
|
+
return this.switchDarkMode();
|
149
|
+
case 'system':
|
150
|
+
return this.switchSystemMode();
|
151
|
+
}
|
152
|
+
}
|
153
|
+
}
|
154
|
+
_setFullHeightRatio() {
|
155
|
+
try {
|
156
|
+
if (isBrowser()) {
|
157
|
+
document.querySelector(':root')?.style.setProperty('--ax-vh', window.innerHeight / 100 + 'px');
|
158
|
+
}
|
159
|
+
}
|
160
|
+
catch (error) {
|
161
|
+
console.error(error);
|
162
|
+
}
|
163
|
+
}
|
164
|
+
autoSystemModeDetection(event) {
|
165
|
+
if (this.themeMode$.getValue() === 'system') {
|
166
|
+
const themeMode = event.matches ? 'dark' : 'light';
|
167
|
+
if (themeMode === 'dark') {
|
168
|
+
const _html = document.getElementsByTagName('html')[0];
|
169
|
+
_html.classList.add('ax-dark');
|
170
|
+
}
|
171
|
+
else {
|
172
|
+
const _html = document.getElementsByTagName('html')[0];
|
173
|
+
_html.classList.remove('ax-dark');
|
174
|
+
}
|
175
|
+
}
|
176
|
+
}
|
177
|
+
constructor() {
|
178
|
+
this.resize = new Subject();
|
179
|
+
this.click = new Subject();
|
180
|
+
this.scroll = new Subject();
|
181
|
+
this.themeMode$ = new BehaviorSubject('system');
|
182
|
+
if (isBrowser()) {
|
183
|
+
fromEvent(window, 'resize')
|
184
|
+
.pipe(debounceTime(100))
|
185
|
+
.pipe(distinctUntilChanged())
|
186
|
+
.subscribe((e) => {
|
187
|
+
this.resize.next({
|
188
|
+
nativeEvent: e,
|
189
|
+
source: this,
|
190
|
+
});
|
191
|
+
//
|
192
|
+
this._setFullHeightRatio();
|
193
|
+
});
|
194
|
+
if (window?.matchMedia('(prefers-color-scheme: dark)').matches) {
|
195
|
+
window?.matchMedia('(prefers-color-scheme: dark)')?.addEventListener('change', (event) => {
|
196
|
+
// Detect System color mode
|
197
|
+
this.autoSystemModeDetection(event);
|
198
|
+
});
|
199
|
+
}
|
200
|
+
document.addEventListener('click', (e) => {
|
201
|
+
this.click.next({
|
202
|
+
nativeEvent: e,
|
203
|
+
source: this,
|
204
|
+
});
|
205
|
+
}, true);
|
206
|
+
document.addEventListener('scroll', (e) => {
|
207
|
+
this.scroll.next({
|
208
|
+
nativeEvent: e,
|
209
|
+
source: this,
|
210
|
+
});
|
211
|
+
}, true);
|
212
|
+
}
|
213
|
+
// init functions
|
214
|
+
this._setFullHeightRatio();
|
215
|
+
}
|
216
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXPlatform, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
217
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXPlatform, providedIn: 'root' }); }
|
218
|
+
}
|
219
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXPlatform, decorators: [{
|
220
|
+
type: Injectable,
|
221
|
+
args: [{
|
222
|
+
providedIn: 'root',
|
223
|
+
}]
|
224
|
+
}], ctorParameters: () => [] });
|
225
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGxhdGZvcm0uc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29yZS9wbGF0Zm9ybS9zcmMvbGliL3BsYXRmb3JtLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQUUsZUFBZSxFQUFFLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFDM0QsT0FBTyxFQUFFLFlBQVksRUFBRSxvQkFBb0IsRUFBRSxNQUFNLGdCQUFnQixDQUFDOztBQVNwRSxNQUFNLFFBQVEsR0FBRyxDQUFDLEdBQVcsRUFBVyxFQUFFLENBQUMsYUFBYSxDQUFDLEdBQUcsRUFBRSxTQUFTLENBQUMsQ0FBQztBQUV6RSxNQUFNLFNBQVMsR0FBRyxDQUFDLEdBQVcsRUFBVyxFQUFFLENBQUMsYUFBYSxDQUFDLEdBQUcsRUFBRSxVQUFVLENBQUMsQ0FBQztBQUUzRSxNQUFNLE1BQU0sR0FBRyxDQUFDLEdBQVcsRUFBVyxFQUFFLENBQUMsYUFBYSxDQUFDLEdBQUcsRUFBRSxPQUFPLENBQUMsQ0FBQztBQUVyRSxNQUFNLFFBQVEsR0FBRyxDQUFDLEdBQVcsRUFBVyxFQUFFLENBQUMsYUFBYSxDQUFDLEdBQ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y5jbGljay5uZXh0KHtcbiAgICAgICAgICAgIG5hdGl2ZUV2ZW50OiBlLFxuICAgICAgICAgICAgc291cmNlOiB0aGlzLFxuICAgICAgICAgIH0pO1xuICAgICAgICB9LFxuICAgICAgICB0cnVlLFxuICAgICAgKTtcblxuICAgICAgZG9jdW1lbnQuYWRkRXZlbnRMaXN0ZW5lcihcbiAgICAgICAgJ3Njcm9sbCcsXG4gICAgICAgIChlKSA9PiB7XG4gICAgICAgICAgdGhpcy5zY3JvbGwubmV4dCh7XG4gICAgICAgICAgICBuYXRpdmVFdmVudDogZSxcbiAgICAgICAgICAgIHNvdXJjZTogdGhpcyxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfSxcbiAgICAgICAgdHJ1ZSxcbiAgICAgICk7XG4gICAgfVxuXG4gICAgLy8gaW5pdCBmdW5jdGlvbnNcbiAgICB0aGlzLl9zZXRGdWxsSGVpZ2h0UmF0aW8oKTtcbiAgfVxufVxuIl19
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './index';
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNvcmV4LWNvcmUtc3RvcmFnZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvY29yZS9zdG9yYWdlL3NyYy9hY29yZXgtY29yZS1zdG9yYWdlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19
|