@acorex/core 20.2.0-next.2 → 20.2.0-next.21
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/date-time/index.d.ts +1 -1
- package/fesm2022/acorex-core-components.mjs +3 -3
- package/fesm2022/acorex-core-components.mjs.map +1 -1
- package/fesm2022/acorex-core-config.mjs +3 -3
- package/fesm2022/acorex-core-config.mjs.map +1 -1
- package/fesm2022/acorex-core-date-time.mjs +68 -57
- package/fesm2022/acorex-core-date-time.mjs.map +1 -1
- package/fesm2022/acorex-core-events.mjs +3 -3
- package/fesm2022/acorex-core-events.mjs.map +1 -1
- package/fesm2022/acorex-core-file.mjs +10 -10
- package/fesm2022/acorex-core-file.mjs.map +1 -1
- package/fesm2022/acorex-core-format.mjs +19 -19
- package/fesm2022/acorex-core-format.mjs.map +1 -1
- package/fesm2022/acorex-core-icon.mjs +3 -3
- package/fesm2022/acorex-core-icon.mjs.map +1 -1
- package/fesm2022/acorex-core-image.mjs +3 -3
- package/fesm2022/acorex-core-image.mjs.map +1 -1
- package/fesm2022/acorex-core-locale.mjs +83 -17
- package/fesm2022/acorex-core-locale.mjs.map +1 -1
- package/fesm2022/acorex-core-memoize.mjs.map +1 -1
- package/fesm2022/acorex-core-network.mjs +3 -3
- package/fesm2022/acorex-core-network.mjs.map +1 -1
- package/fesm2022/acorex-core-pipes.mjs +3 -3
- package/fesm2022/acorex-core-pipes.mjs.map +1 -1
- package/fesm2022/acorex-core-platform.mjs +3 -3
- package/fesm2022/acorex-core-platform.mjs.map +1 -1
- package/fesm2022/acorex-core-storage.mjs +9 -9
- package/fesm2022/acorex-core-storage.mjs.map +1 -1
- package/fesm2022/acorex-core-translation.mjs +16 -16
- package/fesm2022/acorex-core-translation.mjs.map +1 -1
- package/fesm2022/acorex-core-utils.mjs +3 -3
- package/fesm2022/acorex-core-utils.mjs.map +1 -1
- package/fesm2022/acorex-core-validation.mjs +40 -40
- package/fesm2022/acorex-core-validation.mjs.map +1 -1
- package/locale/index.d.ts +3 -1
- package/package.json +1 -1
- package/fesm2022/acorex-core-locale-en-AU.profile-DNjKIaZS.mjs +0 -64
- package/fesm2022/acorex-core-locale-en-AU.profile-DNjKIaZS.mjs.map +0 -1
package/date-time/index.d.ts
CHANGED
@@ -278,7 +278,7 @@ declare class AXTimeDurationFormatter implements AXFormatter {
|
|
278
278
|
get name(): string;
|
279
279
|
format(value: number, options?: AXTimeDurationFormatterOptions): string;
|
280
280
|
translationService: AXTranslationService;
|
281
|
-
millisecondsToMask(ms: number, startUnit?: AXTimeDurationUnit, endUnit?: AXTimeDurationUnit, label?: boolean): Promise<string>;
|
281
|
+
millisecondsToMask(ms: number, startUnit?: AXTimeDurationUnit, endUnit?: AXTimeDurationUnit, label?: boolean, maskDigits?: string, padZero?: boolean): Promise<string>;
|
282
282
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXTimeDurationFormatter, never>;
|
283
283
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXTimeDurationFormatter>;
|
284
284
|
}
|
@@ -20,10 +20,10 @@ class AXComponentService {
|
|
20
20
|
async createFromTemplate(content) {
|
21
21
|
return this.getRootViewContainerRef().createEmbeddedView(content);
|
22
22
|
}
|
23
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.
|
24
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.
|
23
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXComponentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
24
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXComponentService, providedIn: 'root' }); }
|
25
25
|
}
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXComponentService, decorators: [{
|
27
27
|
type: Injectable,
|
28
28
|
args: [{
|
29
29
|
providedIn: 'root',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"acorex-core-components.mjs","sources":["../tmp-esm2022/components/lib/component.service.js","../tmp-esm2022/components/acorex-core-components.js"],"sourcesContent":["import { ApplicationRef, inject, Injectable, ViewContainerRef, } from '@angular/core';\nimport * as i0 from \"@angular/core\";\nexport class AXComponentService {\n constructor() {\n this.appRef = inject(ApplicationRef);\n }\n getRootViewContainerRef() {\n // Get all components in the application\n const components = this.appRef.components;\n if (components.length > 0) {\n const rootComponentRef = components[0];\n return rootComponentRef.injector.get(ViewContainerRef, null);\n }\n return null;\n }\n async createFromComponent(content) {\n return this.getRootViewContainerRef().createComponent(content);\n }\n async createFromTemplate(content) {\n return this.getRootViewContainerRef().createEmbeddedView(content);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.1.
|
1
|
+
{"version":3,"file":"acorex-core-components.mjs","sources":["../tmp-esm2022/components/lib/component.service.js","../tmp-esm2022/components/acorex-core-components.js"],"sourcesContent":["import { ApplicationRef, inject, Injectable, ViewContainerRef, } from '@angular/core';\nimport * as i0 from \"@angular/core\";\nexport class AXComponentService {\n constructor() {\n this.appRef = inject(ApplicationRef);\n }\n getRootViewContainerRef() {\n // Get all components in the application\n const components = this.appRef.components;\n if (components.length > 0) {\n const rootComponentRef = components[0];\n return rootComponentRef.injector.get(ViewContainerRef, null);\n }\n return null;\n }\n async createFromComponent(content) {\n return this.getRootViewContainerRef().createComponent(content);\n }\n async createFromTemplate(content) {\n return this.getRootViewContainerRef().createEmbeddedView(content);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.1.8\", ngImport: i0, type: AXComponentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"20.1.8\", ngImport: i0, type: AXComponentService, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.1.8\", ngImport: i0, type: AXComponentService, decorators: [{\n type: Injectable,\n args: [{\n providedIn: 'root',\n }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50LnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9jb3JlL2NvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnQuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsY0FBYyxFQUdkLE1BQU0sRUFDTixVQUFVLEVBRVYsZ0JBQWdCLEdBQ2pCLE1BQU0sZUFBZSxDQUFDOztBQU12QixNQUFNLE9BQU8sa0JBQWtCO0lBSC9CO1FBSVUsV0FBTSxHQUFHLE1BQU0sQ0FBQyxjQUFjLENBQUMsQ0FBQztLQXFCekM7SUFuQlMsdUJBQXVCO1FBQzdCLHdDQUF3QztRQUN4QyxNQUFNLFVBQVUsR0FBRyxJQUFJLENBQUMsTUFBTSxDQUFDLFVBQVUsQ0FBQztRQUUxQyxJQUFJLFVBQVUsQ0FBQyxNQUFNLEdBQUcsQ0FBQyxFQUFFLENBQUM7WUFDMUIsTUFBTSxnQkFBZ0IsR0FBc0IsVUFBVSxDQUFDLENBQUMsQ0FBQyxDQUFDO1lBQzFELE9BQU8sZ0JBQWdCLENBQUMsUUFBUSxDQUFDLEdBQUcsQ0FBQyxnQkFBZ0IsRUFBRSxJQUFJLENBQUMsQ0FBQztRQUMvRCxDQUFDO1FBRUQsT0FBTyxJQUFJLENBQUM7SUFDZCxDQUFDO0lBRUQsS0FBSyxDQUFDLG1CQUFtQixDQUFJLE9BQTJCO1FBQ3R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AwKSB7XG4gICAgICBjb25zdCByb290Q29tcG9uZW50UmVmOiBDb21wb25lbnRSZWY8YW55PiA9IGNvbXBvbmVudHNbMF07XG4gICAgICByZXR1cm4gcm9vdENvbXBvbmVudFJlZi5pbmplY3Rvci5nZXQoVmlld0NvbnRhaW5lclJlZiwgbnVsbCk7XG4gICAgfVxuXG4gICAgcmV0dXJuIG51bGw7XG4gIH1cblxuICBhc3luYyBjcmVhdGVGcm9tQ29tcG9uZW50PFQ+KGNvbnRlbnQ6IEFYQ29tcG9uZW50VHlwZTxUPik6IFByb21pc2U8Q29tcG9uZW50UmVmPFQ+PiB7XG4gICAgcmV0dXJuIHRoaXMuZ2V0Um9vdFZpZXdDb250YWluZXJSZWYoKS5jcmVhdGVDb21wb25lbnQ8VD4oY29udGVudCk7XG4gIH1cblxuICBhc3luYyBjcmVhdGVGcm9tVGVtcGxhdGU8VD4oY29udGVudDogVGVtcGxhdGVSZWY8VD4pOiBQcm9taXNlPEVtYmVkZGVkVmlld1JlZjxUPj4ge1xuICAgIHJldHVybiB0aGlzLmdldFJvb3RWaWV3Q29udGFpbmVyUmVmKCkuY3JlYXRlRW1iZWRkZWRWaWV3KGNvbnRlbnQpO1xuICB9XG59XG4iXX0=","/**\n * Generated bundle index. Do not edit.\n */\nexport * from './index';\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNvcmV4LWNvcmUtY29tcG9uZW50cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvcmUvY29tcG9uZW50cy9zcmMvYWNvcmV4LWNvcmUtY29tcG9uZW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZW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EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC;AAC5J;AACA,EAAE,CAAC,wBAAwB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,UAAU,EAAE,CAAC;AAC5H,YAAY,IAAI,EAAE,UAAU;AAC5B,YAAY,IAAI,EAAE,CAAC;AACnB,oBAAoB,UAAU,EAAE,MAAM;AACtC,iBAAiB;AACjB,SAAS,CAAC,EAAE,CAAC;;AC7Bb;AACA;AACA;;;;"}
|
@@ -20,10 +20,10 @@ class AXConfigService {
|
|
20
20
|
const v2 = this.injector.get(providerToken);
|
21
21
|
return get(v2, parts[parts.length - 1], defaultValue);
|
22
22
|
}
|
23
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.
|
24
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.
|
23
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
24
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXConfigService, providedIn: 'root' }); }
|
25
25
|
}
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXConfigService, decorators: [{
|
27
27
|
type: Injectable,
|
28
28
|
args: [{ providedIn: 'root' }]
|
29
29
|
}] });
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"acorex-core-config.mjs","sources":["../tmp-esm2022/config/lib/configs.js","../tmp-esm2022/config/lib/configs.service.js","../tmp-esm2022/config/acorex-core-config.js"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nexport const AXGlobalDefaultConfig = {};\nexport const AX_GLOBAL_CONFIG = new InjectionToken('AX_GLOBAL_CONFIG', {\n providedIn: 'root',\n factory: () => AXGlobalDefaultConfig,\n});\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlncy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvcmUvY29uZmlnL3NyYy9saWIvY29uZmlncy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBTS9DLE1BQU0sQ0FBQyxNQUFNLHFCQUFxQixHQUFtQixFQUFFLENBQUM7QUFFeEQsTUFBTSxDQUFDLE1BQU0sZ0JBQWdCLEdBQUcsSUFBSSxjQUFjLENBQWlCLGtCQUFrQixFQUFFO0lBQ3JGLFVBQVUsRUFBRSxNQUFNO0lBQ2xCLE9BQU8sRUFBRSxHQUFHLEVBQUUsQ0FBQyxxQkFBcUI7Q0FDckMsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSW5qZWN0aW9uVG9rZW4gfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuZXhwb3J0IHR5cGUgQVhHbG9iYWxDb25maWcgPSB7XG4gIFtrZXk6IHN0cmluZ106IHVua25vd247XG59O1xuXG5leHBvcnQgY29uc3QgQVhHbG9iYWxEZWZhdWx0Q29uZmlnOiBBWEdsb2JhbENvbmZpZyA9IHt9O1xuXG5leHBvcnQgY29uc3QgQVhfR0xPQkFMX0NPTkZJRyA9IG5ldyBJbmplY3Rpb25Ub2tlbjxBWEdsb2JhbENvbmZpZz4oJ0FYX0dMT0JBTF9DT05GSUcnLCB7XG4gIHByb3ZpZGVkSW46ICdyb290JyxcbiAgZmFjdG9yeTogKCkgPT4gQVhHbG9iYWxEZWZhdWx0Q29uZmlnLFxufSk7XG4iXX0=","import { Injectable, Injector, inject } from '@angular/core';\nimport { get } from 'lodash-es';\nimport { AX_GLOBAL_CONFIG } from './configs';\nimport * as i0 from \"@angular/core\";\nexport class AXConfigService {\n constructor() {\n this.injector = inject(Injector);\n }\n get(key, defaultValue) {\n const v1 = this.injector.get(AX_GLOBAL_CONFIG);\n const parts = key.split('.');\n const tokenName = parts.slice(0, parts.length - 1).join('.');\n const providerToken = get(v1, tokenName);\n const v2 = this.injector.get(providerToken);\n return get(v2, parts[parts.length - 1], defaultValue);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.1.
|
1
|
+
{"version":3,"file":"acorex-core-config.mjs","sources":["../tmp-esm2022/config/lib/configs.js","../tmp-esm2022/config/lib/configs.service.js","../tmp-esm2022/config/acorex-core-config.js"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nexport const AXGlobalDefaultConfig = {};\nexport const AX_GLOBAL_CONFIG = new InjectionToken('AX_GLOBAL_CONFIG', {\n providedIn: 'root',\n factory: () => AXGlobalDefaultConfig,\n});\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlncy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvcmUvY29uZmlnL3NyYy9saWIvY29uZmlncy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBTS9DLE1BQU0sQ0FBQyxNQUFNLHFCQUFxQixHQUFtQixFQUFFLENBQUM7QUFFeEQsTUFBTSxDQUFDLE1BQU0sZ0JBQWdCLEdBQUcsSUFBSSxjQUFjLENBQWlCLGtCQUFrQixFQUFFO0lBQ3JGLFVBQVUsRUFBRSxNQUFNO0lBQ2xCLE9BQU8sRUFBRSxHQUFHLEVBQUUsQ0FBQyxxQkFBcUI7Q0FDckMsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSW5qZWN0aW9uVG9rZW4gfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuZXhwb3J0IHR5cGUgQVhHbG9iYWxDb25maWcgPSB7XG4gIFtrZXk6IHN0cmluZ106IHVua25vd247XG59O1xuXG5leHBvcnQgY29uc3QgQVhHbG9iYWxEZWZhdWx0Q29uZmlnOiBBWEdsb2JhbENvbmZpZyA9IHt9O1xuXG5leHBvcnQgY29uc3QgQVhfR0xPQkFMX0NPTkZJRyA9IG5ldyBJbmplY3Rpb25Ub2tlbjxBWEdsb2JhbENvbmZpZz4oJ0FYX0dMT0JBTF9DT05GSUcnLCB7XG4gIHByb3ZpZGVkSW46ICdyb290JyxcbiAgZmFjdG9yeTogKCkgPT4gQVhHbG9iYWxEZWZhdWx0Q29uZmlnLFxufSk7XG4iXX0=","import { Injectable, Injector, inject } from '@angular/core';\nimport { get } from 'lodash-es';\nimport { AX_GLOBAL_CONFIG } from './configs';\nimport * as i0 from \"@angular/core\";\nexport class AXConfigService {\n constructor() {\n this.injector = inject(Injector);\n }\n get(key, defaultValue) {\n const v1 = this.injector.get(AX_GLOBAL_CONFIG);\n const parts = key.split('.');\n const tokenName = parts.slice(0, parts.length - 1).join('.');\n const providerToken = get(v1, tokenName);\n const v2 = this.injector.get(providerToken);\n return get(v2, parts[parts.length - 1], defaultValue);\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.1.8\", ngImport: i0, type: AXConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"20.1.8\", ngImport: i0, type: AXConfigService, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.1.8\", ngImport: i0, type: AXConfigService, decorators: [{\n type: Injectable,\n args: [{ providedIn: 'root' }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlncy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29yZS9jb25maWcvc3JjL2xpYi9jb25maWdzLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBa0IsUUFBUSxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUM3RSxPQUFPLEVBQUUsR0FBRyxFQUFFLE1BQU0sV0FBVyxDQUFDO0FBQ2hDLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLFdBQVcsQ0FBQzs7QUFHN0MsTUFBTSxPQUFPLGVBQWU7SUFENUI7UUFFVSxhQUFRLEdBQUcsTUFBTSxDQUFDLFFBQVEsQ0FBQyxDQUFDO0tBVXJDO0lBUlEsR0FBRyxDQUFhLEdBQVcsRUFBRSxZQUFnQjtRQUNsRCxNQUFNLEVBQUUsR0FBRyxJQUFJLENBQUMsUUFBUSxDQUFDLEdBQUcsQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDO1FBQy9DLE1BQU0sS0FBSyxHQUFHLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLENBQUM7UUFDN0IsTUFBTSxTQUFTLEdBQUcsS0FBSyxDQUFDLEtBQUssQ0FBQyxDQUFDLEVBQUUsS0FBSyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLENBQUM7UUFDN0QsTUFBTSxhQUFhLEdBQUcsR0FBRyxDQUFDLEVBQUUsRUFBRSxTQUFTLENBQUMsQ0FBQztRQUN6Qyx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vbnN0IHYyID0gdGhpcy5pbmplY3Rvci5nZXQocHJvdmlkZXJUb2tlbiBhcyBJbmplY3Rpb25Ub2tlbjx1bmtub3duPik7XG4gICAgcmV0dXJuIGdldCh2MiwgcGFydHNbcGFydHMubGVuZ3RoIC0gMV0sIGRlZmF1bHRWYWx1ZSk7XG4gIH1cbn1cbiJdfQ==","/**\n * Generated bundle index. Do not edit.\n */\nexport * from './index';\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNvcmV4LWNvcmUtY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29yZS9jb25maWcvc3JjL2Fjb3JleC1jb3JlLWNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ=="],"names":[],"mappings":";;;;AACY,MAAC,qBAAqB,GAAG;AACzB,MAAC,gBAAgB,GAAG,IAAI,cAAc,CAAC,kBAAkB,EAAE;AACvE,IAAI,UAAU,EAAE,MAAM;AACtB,IAAI,OAAO,EAAE,MAAM,qBAAqB;AACxC,CAAC;;ACDM,MAAM,eAAe,CAAC;AAC7B,IAAI,WAAW,GAAG;AAClB,QAAQ,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AACxC,IAAI;AACJ,IAAI,GAAG,CAAC,GAAG,EAAE,YAAY,EAAE;AAC3B,QAAQ,MAAM,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,gBAAgB,CAAC;AACtD,QAAQ,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,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
|
1239
1239
|
calendar: calendar.name(),
|
1240
1240
|
});
|
1241
1241
|
}
|
1242
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.
|
1243
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.
|
1242
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXCalendarService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1243
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXCalendarService, providedIn: 'root' }); }
|
1244
1244
|
}
|
1245
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.
|
1245
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXCalendarService, decorators: [{
|
1246
1246
|
type: Injectable,
|
1247
1247
|
args: [{ providedIn: 'root' }]
|
1248
1248
|
}], ctorParameters: () => [] });
|
@@ -1266,10 +1266,10 @@ class AXDateTimePipe {
|
|
1266
1266
|
const val = this._calendarService.convert(value, calendar.name());
|
1267
1267
|
return this.formatService.format(val, 'datetime', format);
|
1268
1268
|
}
|
1269
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.
|
1270
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.1.
|
1269
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXDateTimePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
1270
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.1.8", ngImport: i0, type: AXDateTimePipe, isStandalone: true, name: "axDate" }); }
|
1271
1271
|
}
|
1272
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.
|
1272
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXDateTimePipe, decorators: [{
|
1273
1273
|
type: Pipe,
|
1274
1274
|
args: [{ name: 'axDate' }]
|
1275
1275
|
}] });
|
@@ -1314,10 +1314,10 @@ class AXDateFormatter {
|
|
1314
1314
|
.convert(value, effectiveOptions.calendar)
|
1315
1315
|
.format(format, { locale: effectiveOptions.locale });
|
1316
1316
|
}
|
1317
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.
|
1318
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.
|
1317
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXDateFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1318
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXDateFormatter }); }
|
1319
1319
|
}
|
1320
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.
|
1320
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXDateFormatter, decorators: [{
|
1321
1321
|
type: Injectable
|
1322
1322
|
}] });
|
1323
1323
|
|
@@ -1371,10 +1371,10 @@ class AXDateTimeFormatter {
|
|
1371
1371
|
.convert(value, effectiveOptions.calendar)
|
1372
1372
|
.format(format, { locale: effectiveOptions.locale });
|
1373
1373
|
}
|
1374
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.
|
1375
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.
|
1374
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXDateTimeFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1375
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXDateTimeFormatter }); }
|
1376
1376
|
}
|
1377
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.
|
1377
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXDateTimeFormatter, decorators: [{
|
1378
1378
|
type: Injectable
|
1379
1379
|
}] });
|
1380
1380
|
|
@@ -1424,9 +1424,17 @@ class AXTimeDurationFormatter {
|
|
1424
1424
|
// Join the parts according to the format
|
1425
1425
|
return formattedTime.join(format.includes('ms') || format.includes('MS') ? ':' : ':');
|
1426
1426
|
}
|
1427
|
-
async millisecondsToMask(ms, startUnit = 'YEAR', endUnit = 'MILLISECOND', label = false) {
|
1427
|
+
async millisecondsToMask(ms, startUnit = 'YEAR', endUnit = 'MILLISECOND', label = false, maskDigits = '00:00:00:00:00:00:00:000', padZero = false) {
|
1428
1428
|
if (ms <= 0)
|
1429
1429
|
return '';
|
1430
|
+
const yearDigits = maskDigits.split(':')[0];
|
1431
|
+
const monthDigits = maskDigits.split(':')[1];
|
1432
|
+
const weekDigits = maskDigits.split(':')[2];
|
1433
|
+
const dayDigits = maskDigits.split(':')[3];
|
1434
|
+
const hourDigits = maskDigits.split(':')[4];
|
1435
|
+
const minuteDigits = maskDigits.split(':')[5];
|
1436
|
+
const secondDigits = maskDigits.split(':')[6];
|
1437
|
+
const millisecondDigits = maskDigits.split(':')[7];
|
1430
1438
|
const translations = await Promise.all([
|
1431
1439
|
this.translationService.translateAsync('@acorex:dateTime.units.year'),
|
1432
1440
|
this.translationService.translateAsync('@acorex:dateTime.units.month'),
|
@@ -1438,14 +1446,19 @@ class AXTimeDurationFormatter {
|
|
1438
1446
|
this.translationService.translateAsync('@acorex:dateTime.units.millisecond'),
|
1439
1447
|
]);
|
1440
1448
|
const units = [
|
1441
|
-
{ key: 'YEAR', label: translations[0].toLocaleUpperCase(), value: 1000 * 60 * 60 * 24 * 365 },
|
1442
|
-
{
|
1443
|
-
|
1444
|
-
|
1445
|
-
|
1446
|
-
|
1447
|
-
|
1448
|
-
{ key: '
|
1449
|
+
{ key: 'YEAR', label: translations[0].toLocaleUpperCase(), value: 1000 * 60 * 60 * 24 * 365, digits: yearDigits },
|
1450
|
+
{
|
1451
|
+
key: 'MONTH',
|
1452
|
+
label: translations[1].toLocaleUpperCase(),
|
1453
|
+
value: 1000 * 60 * 60 * 24 * 30,
|
1454
|
+
digits: monthDigits,
|
1455
|
+
},
|
1456
|
+
{ key: 'WEEK', label: translations[2].toLocaleUpperCase(), value: 1000 * 60 * 60 * 24 * 7, digits: weekDigits },
|
1457
|
+
{ key: 'DAY', label: translations[3].toLocaleUpperCase(), value: 1000 * 60 * 60 * 24, digits: dayDigits },
|
1458
|
+
{ key: 'HOUR', label: translations[4].toLocaleUpperCase(), value: 1000 * 60 * 60, digits: hourDigits },
|
1459
|
+
{ key: 'MINUTE', label: translations[5].toLocaleUpperCase(), value: 1000 * 60, digits: minuteDigits },
|
1460
|
+
{ key: 'SECOND', label: translations[6].toLocaleUpperCase(), value: 1000, digits: secondDigits },
|
1461
|
+
{ key: 'MILLISECOND', label: translations[7].toLocaleUpperCase(), value: 1, digits: millisecondDigits },
|
1449
1462
|
];
|
1450
1463
|
const startIndex = units.findIndex((u) => u.key === startUnit.toUpperCase());
|
1451
1464
|
const endIndex = units.findIndex((u) => u.key === endUnit.toUpperCase());
|
@@ -1453,43 +1466,41 @@ class AXTimeDurationFormatter {
|
|
1453
1466
|
throw new Error('Invalid time unit range');
|
1454
1467
|
}
|
1455
1468
|
const limitedUnits = units.slice(startIndex, endIndex + 1);
|
1456
|
-
|
1457
|
-
|
1458
|
-
|
1459
|
-
|
1460
|
-
|
1461
|
-
|
1462
|
-
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1466
|
-
}
|
1467
|
-
else {
|
1468
|
-
return label ? `${count} (${unit.label})` : `${count}`;
|
1469
|
-
}
|
1470
|
-
}
|
1471
|
-
else {
|
1472
|
-
// For other units, pad with one zero if less than 10
|
1473
|
-
const paddedCount = count < 10 ? `0${count}` : `${count}`;
|
1474
|
-
return label ? `${paddedCount} (${unit.label})` : `${paddedCount}`;
|
1469
|
+
let remainingMs = ms;
|
1470
|
+
const result = [];
|
1471
|
+
for (let i = 0; i < limitedUnits.length; i++) {
|
1472
|
+
const unit = limitedUnits[i];
|
1473
|
+
const maxValue = Math.pow(10, unit.digits.length) - 1;
|
1474
|
+
let unitValue = 0;
|
1475
|
+
if (remainingMs >= unit.value) {
|
1476
|
+
// Calculate how much of this unit we can fill
|
1477
|
+
unitValue = Math.min(Math.floor(remainingMs / unit.value), maxValue);
|
1478
|
+
remainingMs -= unitValue * unit.value;
|
1475
1479
|
}
|
1476
|
-
|
1480
|
+
// Always add all units to result, even if value is zero
|
1481
|
+
const displayValue = label
|
1482
|
+
? `${padZero ? unitValue.toString().padStart(unit.digits.length, '0') : unitValue} (${unit.label})`
|
1483
|
+
: `${padZero ? unitValue.toString().padStart(unit.digits.length, '0') : unitValue}`;
|
1484
|
+
result.push(displayValue);
|
1485
|
+
}
|
1486
|
+
const separator = label ? ' : ' : ':';
|
1487
|
+
const reverseSeparator = label ? ' : ' : ':';
|
1477
1488
|
if (label) {
|
1478
1489
|
if (this.translationService.getActiveLang() === 'fa-IR') {
|
1479
|
-
return result.reverse().join(
|
1490
|
+
return result.reverse().join(reverseSeparator);
|
1480
1491
|
}
|
1481
1492
|
else {
|
1482
|
-
return result.join(
|
1493
|
+
return result.join(separator);
|
1483
1494
|
}
|
1484
1495
|
}
|
1485
1496
|
else {
|
1486
|
-
return result.join(
|
1497
|
+
return result.join(separator);
|
1487
1498
|
}
|
1488
1499
|
}
|
1489
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.
|
1490
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.
|
1500
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXTimeDurationFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1501
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXTimeDurationFormatter }); }
|
1491
1502
|
}
|
1492
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.
|
1503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXTimeDurationFormatter, decorators: [{
|
1493
1504
|
type: Injectable
|
1494
1505
|
}] });
|
1495
1506
|
|
@@ -1533,10 +1544,10 @@ class AXTimeFormatter {
|
|
1533
1544
|
.convert(value, effectiveOptions.calendar)
|
1534
1545
|
.format(format, { locale: effectiveOptions.locale });
|
1535
1546
|
}
|
1536
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.
|
1537
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.
|
1547
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXTimeFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1548
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXTimeFormatter }); }
|
1538
1549
|
}
|
1539
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.
|
1550
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXTimeFormatter, decorators: [{
|
1540
1551
|
type: Injectable
|
1541
1552
|
}] });
|
1542
1553
|
|
@@ -1637,21 +1648,21 @@ class AXTimeLeftFormatter {
|
|
1637
1648
|
return 'Invalid format';
|
1638
1649
|
}
|
1639
1650
|
}
|
1640
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.
|
1641
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.
|
1651
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXTimeLeftFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1652
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXTimeLeftFormatter }); }
|
1642
1653
|
}
|
1643
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.
|
1654
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXTimeLeftFormatter, decorators: [{
|
1644
1655
|
type: Injectable
|
1645
1656
|
}] });
|
1646
1657
|
|
1647
1658
|
class AXDateTimeModule {
|
1648
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.
|
1649
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.
|
1650
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.
|
1659
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXDateTimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
1660
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.8", ngImport: i0, type: AXDateTimeModule, imports: [i1.AXFormatModule, AXDateTimePipe], exports: [AXDateTimePipe] }); }
|
1661
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXDateTimeModule, imports: [AXFormatModule.forChild({
|
1651
1662
|
formatters: [AXDateTimeFormatter, AXDateFormatter, AXTimeFormatter, AXTimeLeftFormatter, AXTimeDurationFormatter],
|
1652
1663
|
})] }); }
|
1653
1664
|
}
|
1654
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.
|
1665
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImport: i0, type: AXDateTimeModule, decorators: [{
|
1655
1666
|
type: NgModule,
|
1656
1667
|
args: [{
|
1657
1668
|
imports: [
|