@acorex/core 21.0.1-next.3 → 21.0.1-next.31
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/components/index.d.ts +2 -2
- package/fesm2022/acorex-core-components.mjs +5 -5
- 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-constants.mjs +2 -2
- package/fesm2022/acorex-core-constants.mjs.map +1 -1
- package/fesm2022/acorex-core-date-time.mjs +25 -25
- 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-full-screen.mjs +16 -5
- package/fesm2022/acorex-core-full-screen.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 +10 -10
- 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 +10 -10
- 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 +4 -5
- 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/fesm2022/acorex-core-z-index.mjs +44 -0
- package/fesm2022/acorex-core-z-index.mjs.map +1 -0
- package/fesm2022/acorex-core.mjs.map +1 -1
- package/full-screen/index.d.ts +5 -0
- package/package.json +5 -1
- package/z-index/README.md +3 -0
- package/z-index/index.d.ts +20 -0
package/components/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ declare class AXComponentService {
|
|
|
20
20
|
* @param content - Component type to instantiate
|
|
21
21
|
* @returns Promise<ComponentRef<T>> - Reference to the created component
|
|
22
22
|
*/
|
|
23
|
-
createFromComponent<T>(content: AXComponentType<T>):
|
|
23
|
+
createFromComponent<T>(content: AXComponentType<T>): ComponentRef<T>;
|
|
24
24
|
/**
|
|
25
25
|
* Creates and inserts an embedded view from a TemplateRef into the application's root ViewContainerRef.
|
|
26
26
|
*
|
|
@@ -28,7 +28,7 @@ declare class AXComponentService {
|
|
|
28
28
|
* @param content - TemplateRef to render
|
|
29
29
|
* @returns Promise<EmbeddedViewRef<T>> - Reference to the created embedded view
|
|
30
30
|
*/
|
|
31
|
-
createFromTemplate<T>(content: TemplateRef<T>):
|
|
31
|
+
createFromTemplate<T>(content: TemplateRef<T>): EmbeddedViewRef<T>;
|
|
32
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXComponentService, never>;
|
|
33
33
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXComponentService>;
|
|
34
34
|
}
|
|
@@ -21,7 +21,7 @@ class AXComponentService {
|
|
|
21
21
|
* @param content - Component type to instantiate
|
|
22
22
|
* @returns Promise<ComponentRef<T>> - Reference to the created component
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
createFromComponent(content) {
|
|
25
25
|
return this.getRootViewContainerRef().createComponent(content);
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
@@ -31,13 +31,13 @@ class AXComponentService {
|
|
|
31
31
|
* @param content - TemplateRef to render
|
|
32
32
|
* @returns Promise<EmbeddedViewRef<T>> - Reference to the created embedded view
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
createFromTemplate(content) {
|
|
35
35
|
return this.getRootViewContainerRef().createEmbeddedView(content);
|
|
36
36
|
}
|
|
37
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
38
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
37
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXComponentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
38
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXComponentService, providedIn: 'root' }); }
|
|
39
39
|
}
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXComponentService, decorators: [{
|
|
41
41
|
type: Injectable,
|
|
42
42
|
args: [{
|
|
43
43
|
providedIn: 'root',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-core-components.mjs","sources":["
|
|
1
|
+
{"version":3,"file":"acorex-core-components.mjs","sources":["../../../../packages/core/components/src/lib/component.service.ts","../../../../packages/core/components/src/acorex-core-components.ts"],"sourcesContent":["import {\n ApplicationRef,\n ComponentRef,\n EmbeddedViewRef,\n inject,\n Injectable,\n TemplateRef,\n ViewContainerRef,\n} from '@angular/core';\nimport { AXComponentType } from './component.types';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AXComponentService {\n private appRef = inject(ApplicationRef);\n\n private getRootViewContainerRef(): ViewContainerRef | null {\n // Get all components in the application\n const components = this.appRef.components;\n\n if (components.length > 0) {\n const rootComponentRef: ComponentRef<any> = components[0];\n return rootComponentRef.injector.get(ViewContainerRef, null);\n }\n\n return null;\n }\n\n /**\n * Creates and inserts a component instance into the application's root ViewContainerRef.\n *\n * @typeParam T - Component class type\n * @param content - Component type to instantiate\n * @returns Promise<ComponentRef<T>> - Reference to the created component\n */\n createFromComponent<T>(content: AXComponentType<T>): ComponentRef<T> {\n return this.getRootViewContainerRef().createComponent<T>(content);\n }\n\n /**\n * Creates and inserts an embedded view from a TemplateRef into the application's root ViewContainerRef.\n *\n * @typeParam T - Template context type\n * @param content - TemplateRef to render\n * @returns Promise<EmbeddedViewRef<T>> - Reference to the created embedded view\n */\n createFromTemplate<T>(content: TemplateRef<T>): EmbeddedViewRef<T> {\n return this.getRootViewContainerRef().createEmbeddedView(content);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAca,kBAAkB,CAAA;AAH/B,IAAA,WAAA,GAAA;AAIU,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,cAAc,CAAC;AAmCxC,IAAA;IAjCS,uBAAuB,GAAA;;AAE7B,QAAA,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU;AAEzC,QAAA,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;AACzB,YAAA,MAAM,gBAAgB,GAAsB,UAAU,CAAC,CAAC,CAAC;YACzD,OAAO,gBAAgB,CAAC,QAAQ,CAAC,GAAG,CAAC,gBAAgB,EAAE,IAAI,CAAC;QAC9D;AAEA,QAAA,OAAO,IAAI;IACb;AAEA;;;;;;AAMG;AACH,IAAA,mBAAmB,CAAI,OAA2B,EAAA;QAChD,OAAO,IAAI,CAAC,uBAAuB,EAAE,CAAC,eAAe,CAAI,OAAO,CAAC;IACnE;AAEA;;;;;;AAMG;AACH,IAAA,kBAAkB,CAAI,OAAuB,EAAA;QAC3C,OAAO,IAAI,CAAC,uBAAuB,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC;IACnE;+GAnCW,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,cAFjB,MAAM,EAAA,CAAA,CAAA;;4FAEP,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAH9B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA;;;ACbD;;AAEG;;;;"}
|
|
@@ -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.3.
|
|
24
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
23
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
24
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXConfigService, providedIn: 'root' }); }
|
|
25
25
|
}
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", 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":["
|
|
1
|
+
{"version":3,"file":"acorex-core-config.mjs","sources":["../../../../packages/core/config/src/lib/configs.ts","../../../../packages/core/config/src/lib/configs.service.ts","../../../../packages/core/config/src/acorex-core-config.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport type AXGlobalConfig = {\n [key: string]: unknown;\n};\n\nexport const AXGlobalDefaultConfig: AXGlobalConfig = {};\n\nexport const AX_GLOBAL_CONFIG = new InjectionToken<AXGlobalConfig>('AX_GLOBAL_CONFIG', {\n providedIn: 'root',\n factory: () => AXGlobalDefaultConfig,\n});\n","import { Injectable, InjectionToken, Injector, inject } from '@angular/core';\nimport { get } from 'lodash-es';\nimport { AX_GLOBAL_CONFIG } from './configs';\n\n@Injectable({ providedIn: 'root' })\nexport class AXConfigService {\n private injector = inject(Injector);\n\n public get<T = string>(key: string, defaultValue?: T) {\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 as InjectionToken<unknown>);\n return get(v2, parts[parts.length - 1], defaultValue);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAMO,MAAM,qBAAqB,GAAmB;MAExC,gBAAgB,GAAG,IAAI,cAAc,CAAiB,kBAAkB,EAAE;AACrF,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,qBAAqB;AACrC,CAAA;;MCNY,eAAe,CAAA;AAD5B,IAAA,WAAA,GAAA;AAEU,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAUpC,IAAA;IARQ,GAAG,CAAa,GAAW,EAAE,YAAgB,EAAA;QAClD,MAAM,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,gBAAgB,CAAC;QAC9C,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC;AAC5B,QAAA,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;QAC5D,MAAM,aAAa,GAAG,GAAG,CAAC,EAAE,EAAE,SAAS,CAAC;QACxC,MAAM,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,aAAwC,CAAC;AACtE,QAAA,OAAO,GAAG,CAAC,EAAE,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,YAAY,CAAC;IACvD;+GAVW,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAf,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,cADF,MAAM,EAAA,CAAA,CAAA;;4FACnB,eAAe,EAAA,UAAA,EAAA,CAAA;kBAD3B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;ACJlC;;AAEG;;;;"}
|
|
@@ -2448,8 +2448,8 @@ const COUNTRIES =
|
|
|
2448
2448
|
regions: ['middle-east'],
|
|
2449
2449
|
code: 'ae',
|
|
2450
2450
|
iso2code: '+971',
|
|
2451
|
-
format: '
|
|
2452
|
-
regex: '^\\d{
|
|
2451
|
+
format: '000 000 000',
|
|
2452
|
+
regex: '^\\d{3}\\s\\d{3}\\s\\d{3}$',
|
|
2453
2453
|
bkPosition: {
|
|
2454
2454
|
x: '-72px',
|
|
2455
2455
|
y: '-26px',
|