@o3r/components 12.2.0-prerelease.6 → 12.2.0-prerelease.61
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/builders/component-extractor/helpers/component/component-config.extractor.d.ts.map +1 -1
- package/builders/component-extractor/helpers/component/component-config.extractor.js +6 -1
- package/builders/component-extractor/helpers/component/component.extractor.d.ts.map +1 -1
- package/builders/component-extractor/helpers/component/component.extractor.js +8 -9
- package/fesm2022/o3r-components-rules-engine.mjs +11 -15
- package/fesm2022/o3r-components-rules-engine.mjs.map +1 -1
- package/fesm2022/o3r-components.mjs +94 -60
- package/fesm2022/o3r-components.mjs.map +1 -1
- package/package.json +11 -11
- package/rules-engine/placeholder.rules-engine.effect.d.ts.map +1 -1
- package/tools/component-replacement/c11n.directive.d.ts +1 -1
- package/tools/component-replacement/c11n.directive.d.ts.map +1 -1
- package/tools/component-replacement/c11n.module.d.ts +28 -2
- package/tools/component-replacement/c11n.module.d.ts.map +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
1
|
+
import { ModuleWithProviders, type Type } from '@angular/core';
|
|
2
|
+
import type { Context } from '@o3r/core';
|
|
2
3
|
import { C11nService } from './c11n.service';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
import * as i1 from "./c11n.directive";
|
|
@@ -10,17 +11,42 @@ import * as i1 from "./c11n.directive";
|
|
|
10
11
|
export declare function createC11nService(config: {
|
|
11
12
|
registerCompFunc: () => Map<string, any>;
|
|
12
13
|
}): C11nService;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Will be removed in v14.
|
|
16
|
+
*/
|
|
13
17
|
export declare class C11nModule {
|
|
14
18
|
/**
|
|
15
19
|
* Get the module with providers for the root component
|
|
16
20
|
* @param config -> registerCompFunc - a function which returns the map of custom components which will be injected in c11n service
|
|
17
21
|
* @param config.registerCompFunc
|
|
22
|
+
* @deprecated Please use {@link provideCustomComponents} instead. Will be removed in v14.
|
|
18
23
|
*/
|
|
19
24
|
static forRoot(config: {
|
|
20
25
|
registerCompFunc: () => Map<string, any>;
|
|
21
26
|
}): ModuleWithProviders<C11nModule>;
|
|
22
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<C11nModule, never>;
|
|
23
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<C11nModule, [typeof i1.C11nDirective], never
|
|
28
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<C11nModule, never, [typeof i1.C11nDirective], never>;
|
|
24
29
|
static ɵinj: i0.ɵɵInjectorDeclaration<C11nModule>;
|
|
25
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Returns a tuple of the key and the component
|
|
33
|
+
* @note should be used with {@link provideCustomComponents}
|
|
34
|
+
* @example
|
|
35
|
+
* ```typescript
|
|
36
|
+
* provideCustomComponents(
|
|
37
|
+
* new Map(),
|
|
38
|
+
* withComponent('example1', MyFirstComponent),
|
|
39
|
+
* withComponent('example2', MySecondComponent),
|
|
40
|
+
* )
|
|
41
|
+
* ```
|
|
42
|
+
* @param customComponentKey
|
|
43
|
+
* @param customComponent
|
|
44
|
+
*/
|
|
45
|
+
export declare function withComponent<T extends Context>(customComponentKey: string, customComponent: Type<T>): [string, Type<T>];
|
|
46
|
+
/**
|
|
47
|
+
* Provide custom components which will be injected in c11n service
|
|
48
|
+
* @param customComponents
|
|
49
|
+
* @param additionalComponents
|
|
50
|
+
*/
|
|
51
|
+
export declare function provideCustomComponents(customComponents?: Map<string, any>, ...additionalComponents: (ReturnType<typeof withComponent>)[]): import("@angular/core").EnvironmentProviders;
|
|
26
52
|
//# sourceMappingURL=c11n.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"c11n.module.d.ts","sourceRoot":"","sources":["../../../src/tools/component-replacement/c11n.module.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"c11n.module.d.ts","sourceRoot":"","sources":["../../../src/tools/component-replacement/c11n.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,mBAAmB,EAEnB,KAAK,IAAI,EACV,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EACV,OAAO,EACR,MAAM,WAAW,CAAC;AAInB,OAAO,EACL,WAAW,EACZ,MAAM,gBAAgB,CAAC;;;AAMxB;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE;IAAE,gBAAgB,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAAE,eAMrF;AAED;;GAEG;AACH,qBAGa,UAAU;IACrB;;;;;OAKG;WACW,OAAO,CAAC,MAAM,EAAE;QAAE,gBAAgB,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;KAAE,GAAG,mBAAmB,CAAC,UAAU,CAAC;yCAPjG,UAAU;0CAAV,UAAU;0CAAV,UAAU;CAmBtB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,eAAe,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAExH;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,gBAAgB,GAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAa,EAAE,GAAG,oBAAoB,EAAE,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,EAAE,gDASpJ"}
|