@o3r/components 10.0.0-next.9 → 11.0.0-next.0
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/README.md +1 -1
- package/builders/component-extractor/helpers/component/component-class.extractor.d.ts +2 -0
- package/builders/component-extractor/helpers/component/component-class.extractor.d.ts.map +1 -1
- package/builders/component-extractor/helpers/component/component-class.extractor.js +14 -8
- package/builders/component-extractor/helpers/component/component-class.extractor.js.map +1 -1
- 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 -2
- package/builders/component-extractor/helpers/component/component-config.extractor.js.map +1 -1
- package/builders/component-extractor/helpers/component/component.extractor.d.ts +5 -5
- package/builders/component-extractor/helpers/component/component.extractor.d.ts.map +1 -1
- package/builders/component-extractor/helpers/component/component.extractor.js +4 -2
- package/builders/component-extractor/helpers/component/component.extractor.js.map +1 -1
- package/builders/component-extractor/helpers/component/component.parser.d.ts +9 -6
- package/builders/component-extractor/helpers/component/component.parser.d.ts.map +1 -1
- package/builders/component-extractor/helpers/component/component.parser.js +36 -10
- package/builders/component-extractor/helpers/component/component.parser.js.map +1 -1
- package/builders/component-extractor/index.d.ts +0 -1
- package/builders/component-extractor/index.d.ts.map +1 -1
- package/builders/component-extractor/index.js +8 -9
- package/builders/component-extractor/index.js.map +1 -1
- package/builders/component-extractor/schema.d.ts +5 -0
- package/builders/component-extractor/schema.d.ts.map +1 -1
- package/builders/component-extractor/schema.json +22 -1
- package/core/component.output.d.ts +8 -11
- package/core/component.output.d.ts.map +1 -1
- package/core/index.d.ts +0 -1
- package/core/index.d.ts.map +1 -1
- package/core/rendering/helpers.d.ts +0 -1
- package/core/rendering/helpers.d.ts.map +1 -1
- package/devkit/components-devkit.interface.d.ts +0 -1
- package/devkit/components-devkit.interface.d.ts.map +1 -1
- package/devkit/components-devtools.message.service.d.ts +4 -6
- package/devkit/components-devtools.message.service.d.ts.map +1 -1
- package/devkit/components-devtools.module.d.ts +0 -1
- package/devkit/components-devtools.module.d.ts.map +1 -1
- package/devkit/inspector/ng/ng.d.ts +0 -3
- package/devkit/inspector/ng/ng.d.ts.map +1 -1
- package/devkit/inspector/otter-inspector.helpers.d.ts +0 -7
- package/devkit/inspector/otter-inspector.helpers.d.ts.map +1 -1
- package/devkit/inspector/otter-inspector.service.d.ts +5 -6
- package/devkit/inspector/otter-inspector.service.d.ts.map +1 -1
- package/esm2022/core/component.output.mjs +1 -1
- package/esm2022/core/index.mjs +1 -2
- package/esm2022/core/rendering/helpers.mjs +1 -2
- package/esm2022/devkit/components-devkit.interface.mjs +1 -2
- package/esm2022/devkit/components-devtools.message.service.mjs +6 -8
- package/esm2022/devkit/components-devtools.module.mjs +5 -6
- package/esm2022/devkit/inspector/ng/ng.mjs +1 -1
- package/esm2022/devkit/inspector/otter-inspector.helpers.mjs +1 -8
- package/esm2022/devkit/inspector/otter-inspector.service.mjs +1 -2
- package/esm2022/public_api.mjs +1 -1
- package/esm2022/rules-engine/o3r-components-rules-engine.mjs +5 -0
- package/esm2022/rules-engine/placeholder.action-handler.mjs +154 -0
- package/esm2022/rules-engine/placeholder.interfaces.mjs +3 -0
- package/esm2022/rules-engine/placeholder.rules-engine.effect.mjs +124 -0
- package/esm2022/rules-engine/placeholder.rules-engine.module.mjs +31 -0
- package/esm2022/rules-engine/public_api.mjs +4 -0
- package/esm2022/stores/placeholder-request/placeholder-request.module.mjs +4 -4
- package/esm2022/stores/placeholder-request/placeholder-request.selectors.mjs +1 -2
- package/esm2022/stores/placeholder-template/placeholder-template.module.mjs +4 -4
- package/esm2022/stores/placeholder-template/placeholder-template.selectors.mjs +24 -10
- package/esm2022/tools/component-replacement/c11n.directive.mjs +17 -23
- package/esm2022/tools/component-replacement/c11n.helpers.mjs +1 -2
- package/esm2022/tools/component-replacement/c11n.mock.module.mjs +10 -10
- package/esm2022/tools/component-replacement/c11n.module.mjs +5 -6
- package/esm2022/tools/component-replacement/c11n.service.mjs +6 -8
- package/esm2022/tools/pipes/capitalize/capitalize.module.mjs +4 -4
- package/esm2022/tools/pipes/capitalize/capitalize.pipe.mjs +3 -3
- package/esm2022/tools/pipes/duration/duration.module.mjs +4 -4
- package/esm2022/tools/pipes/duration/duration.pipe.mjs +4 -5
- package/esm2022/tools/pipes/keep-white-space/keep-white-space.module.mjs +4 -4
- package/esm2022/tools/pipes/keep-white-space/keep-white-space.pipe.mjs +3 -3
- package/esm2022/tools/pipes/replace-with-bold/replace-with-bold.module.mjs +4 -4
- package/esm2022/tools/pipes/replace-with-bold/replace-with-bold.pipe.mjs +3 -3
- package/esm2022/tools/placeholder/placeholder.component.mjs +44 -23
- package/esm2022/tools/placeholder/placeholder.interface.mjs +2 -0
- package/esm2022/tools/placeholder/placeholder.module.mjs +4 -4
- package/fesm2022/o3r-components-rules-engine.mjs +302 -0
- package/fesm2022/o3r-components-rules-engine.mjs.map +1 -0
- package/fesm2022/o3r-components.mjs +150 -141
- package/fesm2022/o3r-components.mjs.map +1 -1
- package/package.json +62 -33
- package/public_api.d.ts +1 -1
- package/public_api.d.ts.map +1 -1
- package/rules-engine/index.d.ts +6 -0
- package/rules-engine/o3r-components-rules-engine.d.ts.map +1 -0
- package/rules-engine/placeholder.action-handler.d.ts +42 -0
- package/rules-engine/placeholder.action-handler.d.ts.map +1 -0
- package/rules-engine/placeholder.interfaces.d.ts +13 -0
- package/rules-engine/placeholder.interfaces.d.ts.map +1 -0
- package/rules-engine/placeholder.rules-engine.effect.d.ts +37 -0
- package/rules-engine/placeholder.rules-engine.effect.d.ts.map +1 -0
- package/rules-engine/placeholder.rules-engine.module.d.ts +9 -0
- package/rules-engine/placeholder.rules-engine.module.d.ts.map +1 -0
- package/rules-engine/public_api.d.ts +4 -0
- package/rules-engine/public_api.d.ts.map +1 -0
- package/schemas/component.metadata.schema.json +8 -1
- package/schemas/placeholder-template.schema.json +1 -1
- package/schemas/rules-engine.placeholder-action.schema.json +26 -0
- package/schematics/cms-adapter/index.d.ts +0 -1
- package/schematics/cms-adapter/index.d.ts.map +1 -1
- package/schematics/cms-adapter/index.js +5 -9
- package/schematics/cms-adapter/index.js.map +1 -1
- package/schematics/ng-add/helpers/devtools-registration.d.ts +10 -0
- package/schematics/ng-add/helpers/devtools-registration.d.ts.map +1 -0
- package/schematics/ng-add/helpers/devtools-registration.js +25 -0
- package/schematics/ng-add/helpers/devtools-registration.js.map +1 -0
- package/schematics/ng-add/index.d.ts +0 -1
- package/schematics/ng-add/index.d.ts.map +1 -1
- package/schematics/ng-add/index.js +7 -5
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-add/schema.json +1 -1
- package/stores/placeholder-request/placeholder-request.selectors.d.ts +0 -1
- package/stores/placeholder-request/placeholder-request.selectors.d.ts.map +1 -1
- package/stores/placeholder-template/placeholder-template.selectors.d.ts +41 -8
- package/stores/placeholder-template/placeholder-template.selectors.d.ts.map +1 -1
- package/tools/component-replacement/c11n.directive.d.ts +5 -10
- package/tools/component-replacement/c11n.directive.d.ts.map +1 -1
- package/tools/component-replacement/c11n.helpers.d.ts +1 -3
- package/tools/component-replacement/c11n.helpers.d.ts.map +1 -1
- package/tools/component-replacement/c11n.module.d.ts +0 -1
- package/tools/component-replacement/c11n.module.d.ts.map +1 -1
- package/tools/component-replacement/c11n.service.d.ts +2 -5
- package/tools/component-replacement/c11n.service.d.ts.map +1 -1
- package/tools/pipes/duration/duration.pipe.d.ts.map +1 -1
- package/tools/placeholder/placeholder.component.d.ts +7 -5
- package/tools/placeholder/placeholder.component.d.ts.map +1 -1
- package/tools/placeholder/placeholder.interface.d.ts +22 -0
- package/tools/placeholder/placeholder.interface.d.ts.map +1 -0
- package/builders/package.json +0 -3
- package/core/focus.d.ts +0 -17
- package/core/focus.d.ts.map +0 -1
- package/esm2022/core/focus.mjs +0 -2
- package/schematics/package.json +0 -3
|
@@ -4,28 +4,61 @@ export declare const selectPlaceholderTemplateState: import("@ngrx/store").Memoi
|
|
|
4
4
|
export declare const selectPlaceholderTemplateEntities: import("@ngrx/store").MemoizedSelector<object, import("@ngrx/entity").Dictionary<import("./placeholder-template.state").PlaceholderTemplateModel>, (s1: PlaceholderTemplateState) => import("@ngrx/entity").Dictionary<import("./placeholder-template.state").PlaceholderTemplateModel>>;
|
|
5
5
|
/**
|
|
6
6
|
* Select a specific PlaceholderTemplate
|
|
7
|
-
*
|
|
8
7
|
* @param placeholderId
|
|
9
8
|
*/
|
|
10
9
|
export declare const selectPlaceholderTemplateEntity: (placeholderId: string) => import("@ngrx/store").MemoizedSelector<object, import("./placeholder-template.state").PlaceholderTemplateModel | undefined, (s1: PlaceholderTemplateState) => import("./placeholder-template.state").PlaceholderTemplateModel | undefined>;
|
|
11
10
|
/**
|
|
12
|
-
* Select the ordered rendered
|
|
11
|
+
* Select the ordered rendered placeholder template full data (url, priority etc.) for a given placeholderId
|
|
13
12
|
* Return undefined if the placeholder is not found
|
|
14
13
|
* Returns {orderedRenderedTemplates: undefined, isPending: true} if any of the request is still pending
|
|
15
|
-
*
|
|
16
14
|
* @param placeholderId
|
|
17
15
|
*/
|
|
18
|
-
export declare const
|
|
19
|
-
|
|
16
|
+
export declare const selectSortedTemplates: (placeholderId: string) => import("@ngrx/store").MemoizedSelector<object, {
|
|
17
|
+
orderedTemplates: undefined;
|
|
20
18
|
isPending: never;
|
|
21
19
|
} | {
|
|
22
|
-
|
|
20
|
+
orderedTemplates: {
|
|
21
|
+
rawUrl: string;
|
|
22
|
+
priority: number;
|
|
23
|
+
renderedTemplate?: string | undefined;
|
|
24
|
+
resolvedUrl: string;
|
|
25
|
+
}[];
|
|
23
26
|
isPending: boolean;
|
|
24
27
|
} | undefined, (s1: import("./placeholder-template.state").PlaceholderTemplateModel | undefined, s2: import("../placeholder-request").PlaceholderRequestState) => {
|
|
25
|
-
|
|
28
|
+
orderedTemplates: undefined;
|
|
26
29
|
isPending: never;
|
|
27
30
|
} | {
|
|
28
|
-
|
|
31
|
+
orderedTemplates: {
|
|
32
|
+
rawUrl: string;
|
|
33
|
+
priority: number;
|
|
34
|
+
renderedTemplate?: string | undefined;
|
|
35
|
+
resolvedUrl: string;
|
|
36
|
+
}[];
|
|
37
|
+
isPending: boolean;
|
|
38
|
+
} | undefined>;
|
|
39
|
+
/**
|
|
40
|
+
* Select the ordered rendered templates for a given placeholderId
|
|
41
|
+
* Return undefined if the placeholder is not found
|
|
42
|
+
* Returns {orderedRenderedTemplates: undefined, isPending: true} if any of the request is still pending
|
|
43
|
+
* @param placeholderId
|
|
44
|
+
* @deprecated Please use {@link selectSortedTemplates} instead
|
|
45
|
+
*/
|
|
46
|
+
export declare const selectPlaceholderRenderedTemplates: (placeholderId: string) => import("@ngrx/store").MemoizedSelector<object, {
|
|
47
|
+
orderedRenderedTemplates: (string | undefined)[] | undefined;
|
|
48
|
+
isPending: boolean;
|
|
49
|
+
} | undefined, (s1: {
|
|
50
|
+
orderedTemplates: undefined;
|
|
51
|
+
isPending: never;
|
|
52
|
+
} | {
|
|
53
|
+
orderedTemplates: {
|
|
54
|
+
rawUrl: string;
|
|
55
|
+
priority: number;
|
|
56
|
+
renderedTemplate?: string | undefined;
|
|
57
|
+
resolvedUrl: string;
|
|
58
|
+
}[];
|
|
59
|
+
isPending: boolean;
|
|
60
|
+
} | undefined) => {
|
|
61
|
+
orderedRenderedTemplates: (string | undefined)[] | undefined;
|
|
29
62
|
isPending: boolean;
|
|
30
63
|
} | undefined>;
|
|
31
64
|
//# sourceMappingURL=placeholder-template.selectors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"placeholder-template.selectors.d.ts","sourceRoot":"","sources":["../../../src/stores/placeholder-template/placeholder-template.selectors.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkC,wBAAwB,EAAC,MAAM,8BAA8B,CAAC;AAKvG,eAAO,MAAM,8BAA8B,8IAAmF,CAAC;AAE/H,4DAA4D;AAC5D,eAAO,MAAM,iCAAiC,0RAA4F,CAAC;AAE3I
|
|
1
|
+
{"version":3,"file":"placeholder-template.selectors.d.ts","sourceRoot":"","sources":["../../../src/stores/placeholder-template/placeholder-template.selectors.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkC,wBAAwB,EAAC,MAAM,8BAA8B,CAAC;AAKvG,eAAO,MAAM,8BAA8B,8IAAmF,CAAC;AAE/H,4DAA4D;AAC5D,eAAO,MAAM,iCAAiC,0RAA4F,CAAC;AAE3I;;;GAGG;AACH,eAAO,MAAM,+BAA+B,kBAAmB,MAAM,+OACsB,CAAC;AAE5F;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,kBAAmB,MAAM;;;;;gBAS5B,MAAM;kBAAY,MAAM;;qBAA0C,MAAM;;;;;;;;gBAAxE,MAAM;kBAAY,MAAM;;qBAA0C,MAAM;;;cA2BnG,CAAC;AAEL;;;;;;GAMG;AACH,eAAO,MAAM,kCAAkC,kBAAmB,MAAM;;;;;;;;gBApCzC,MAAM;kBAAY,MAAM;;qBAA0C,MAAM;;;;;;cA8CnG,CAAC"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentRef, Injector, KeyValueDiffers, OnChanges, OnDestroy, SimpleChanges, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { AbstractControl, FormControl } from '@angular/forms';
|
|
3
|
-
import type { DynamicConfigurable } from '@o3r/
|
|
4
|
-
import type { BaseContextOutput, Configuration, Context, ContextInput, Functionify } from '@o3r/core';
|
|
3
|
+
import type { BaseContextOutput, Configuration, Context, ContextInput, DynamicConfigurable, Functionify } from '@o3r/core';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class C11nDirective<D extends Configuration = Configuration, I extends ContextInput = ContextInput, O extends BaseContextOutput = BaseContextOutput, T extends Context<I, O> & DynamicConfigurable<D> = Context<I, O> & DynamicConfigurable<D>> implements OnChanges, OnDestroy {
|
|
7
6
|
viewContainerRef: ViewContainerRef;
|
|
8
|
-
private
|
|
9
|
-
private
|
|
10
|
-
private injector;
|
|
7
|
+
private readonly differsService;
|
|
8
|
+
private readonly injector;
|
|
11
9
|
/** The component information passed to the directive */
|
|
12
10
|
component: T;
|
|
13
11
|
/** The information related to configuration */
|
|
@@ -31,23 +29,20 @@ export declare class C11nDirective<D extends Configuration = Configuration, I ex
|
|
|
31
29
|
private differInputs;
|
|
32
30
|
/** Set of inputs when the component was created. */
|
|
33
31
|
private readonly uninitializedInputs;
|
|
34
|
-
constructor(viewContainerRef: ViewContainerRef,
|
|
32
|
+
constructor(viewContainerRef: ViewContainerRef, differsService: KeyValueDiffers, injector: Injector);
|
|
35
33
|
/**
|
|
36
34
|
* Type guard for component implementing CVA
|
|
37
|
-
*
|
|
38
35
|
* @param _cmp Component instance
|
|
39
36
|
*/
|
|
40
37
|
private componentImplementsCva;
|
|
41
38
|
private updateInputs;
|
|
42
39
|
/**
|
|
43
40
|
* called when data-bound property change
|
|
44
|
-
*
|
|
45
41
|
* @param changes The changes that occur
|
|
46
42
|
*/
|
|
47
43
|
ngOnChanges(changes: SimpleChanges): void;
|
|
48
44
|
/**
|
|
49
45
|
* returns validation errors from component instance if validate method exists else returns null
|
|
50
|
-
*
|
|
51
46
|
* @param control Form control
|
|
52
47
|
*/
|
|
53
48
|
validate(control: AbstractControl): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"c11n.directive.d.ts","sourceRoot":"","sources":["../../../src/tools/component-replacement/c11n.directive.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"c11n.directive.d.ts","sourceRoot":"","sources":["../../../src/tools/component-replacement/c11n.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAAyB,QAAQ,EAC7C,eAAe,EAAE,SAAS,EAAE,SAAS,EAAgB,aAAa,EAAE,gBAAgB,EACrF,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,eAAe,EAAwB,WAAW,EAA+C,MAAM,gBAAgB,CAAC;AACjI,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;;AAG3H,qBAea,aAAa,CACxB,CAAC,SAAS,aAAa,GAAG,aAAa,EACvC,CAAC,SAAS,YAAY,GAAG,YAAY,EACrC,CAAC,SAAS,iBAAiB,GAAG,iBAAiB,EAC/C,CAAC,SAAS,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,mBAAmB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAAE,YAAW,SAAS,EAAE,SAAS;IAuCvG,gBAAgB,EAAE,gBAAgB;IACnD,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAvC3B,wDAAwD;IACxC,SAAS,EAAG,CAAC,CAAC;IAE9B,+CAA+C;IAC/B,MAAM,CAAC,EAAE,CAAC,CAAC;IAE3B,kBAAkB;IACF,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1C,uBAAuB;IACvB,IAAoB,MAAM,CAAC,KAAK,EAAE;SAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KAAE,EAKzD;IAED,uBAAuB;IACvB,IAAW,MAAM,IAAI;SAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KAAE,CAE5C;IAED,wCAAwC;IACxB,OAAO,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IAEzC,8BAA8B;IACvB,YAAY,EAAG,YAAY,CAAC,CAAC,CAAC,CAAC;IAEtC,OAAO,CAAC,sBAAsB,CAAsB;IAEpD,OAAO,CAAC,OAAO,CAA4B;IAE3C,OAAO,CAAC,YAAY,CAA+B;IAEnD,oDAAoD;IACpD,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAqB;gBAEtC,gBAAgB,EAAE,gBAAgB,EAClC,cAAc,EAAE,eAAe,EAC/B,QAAQ,EAAE,QAAQ;IAGrC;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAI9B,OAAO,CAAC,YAAY;IAOpB;;;OAGG;IACI,WAAW,CAAC,OAAO,EAAE,aAAa;IAoEzC;;;OAGG;IACI,QAAQ,CAAC,OAAO,EAAE,eAAe;IAOxC;;OAEG;IACI,WAAW;yCArJP,aAAa;2CAAb,aAAa;CA0JzB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { Type } from '@angular/core';
|
|
2
|
-
import type { DynamicConfigurable } from '@o3r/
|
|
3
|
-
import type { Configuration, Context } from '@o3r/core';
|
|
2
|
+
import type { Configuration, Context, DynamicConfigurable } from '@o3r/core';
|
|
4
3
|
/** Interface for grouping the arrays needed for custom component registration */
|
|
5
4
|
export interface EntryCustomComponents {
|
|
6
5
|
/** Array of custom presenters */
|
|
@@ -10,7 +9,6 @@ export interface EntryCustomComponents {
|
|
|
10
9
|
}
|
|
11
10
|
/**
|
|
12
11
|
* Register a custom component
|
|
13
|
-
*
|
|
14
12
|
* @param customComponentsMap an object containing the already registered custom component
|
|
15
13
|
* @param customComponentKey
|
|
16
14
|
* @param customComponent
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"c11n.helpers.d.ts","sourceRoot":"","sources":["../../../src/tools/component-replacement/c11n.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"c11n.helpers.d.ts","sourceRoot":"","sources":["../../../src/tools/component-replacement/c11n.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAE7E,iFAAiF;AACjF,MAAM,WAAW,qBAAqB;IAEpC,iCAAiC;IACjC,gBAAgB,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;IAE9B,wCAAwC;IACxC,uBAAuB,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;CACtC;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,OAAO,GAAG,mBAAmB,CAAC,aAAa,CAAC,EAC1F,mBAAmB,EAAE,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,MAAM,EAAE,eAAe,EAAE,IAAI,CAAC,CAAC,CAAC,wBAGlG"}
|
|
@@ -4,7 +4,6 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
import * as i1 from "./c11n.directive";
|
|
5
5
|
/**
|
|
6
6
|
* Customization service factory
|
|
7
|
-
*
|
|
8
7
|
* @param config -> registerCompFunc - a function which returns the map of custom components which will be injected in c11n service
|
|
9
8
|
* @param config.registerCompFunc
|
|
10
9
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"c11n.module.d.ts","sourceRoot":"","sources":["../../../src/tools/component-replacement/c11n.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAY,MAAM,eAAe,CAAC;AAE9D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;;;AAG7C
|
|
1
|
+
{"version":3,"file":"c11n.module.d.ts","sourceRoot":"","sources":["../../../src/tools/component-replacement/c11n.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAY,MAAM,eAAe,CAAC;AAE9D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;;;AAG7C;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE;IAAC,gBAAgB,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAAC,eAMnF;AAED,qBAIa,UAAU;IAErB;;;OAGG;WACW,OAAO,CAAC,MAAM,EAAE;QAAC,gBAAgB,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;KAAC,GAAG,mBAAmB,CAAC,UAAU,CAAC;yCAN/F,UAAU;0CAAV,UAAU;0CAAV,UAAU;CAkBtB"}
|
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
import { Type } from '@angular/core';
|
|
2
|
-
import type { DynamicConfigurable } from '@o3r/
|
|
3
|
-
import type { Configuration, Context } from '@o3r/core';
|
|
2
|
+
import type { Configuration, Context, DynamicConfigurable } from '@o3r/core';
|
|
4
3
|
import { Observable } from 'rxjs';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class C11nService {
|
|
7
|
-
private presentersMap;
|
|
6
|
+
private readonly presentersMap;
|
|
8
7
|
constructor(presentersMap: Map<string, any>);
|
|
9
8
|
/**
|
|
10
9
|
* Add a presenter
|
|
11
|
-
*
|
|
12
10
|
* @param presKey The presenter key to set
|
|
13
11
|
* @param presenter The new presenter
|
|
14
12
|
*/
|
|
15
13
|
addPresenter<T extends Context & DynamicConfigurable<Configuration>>(presKey: string, presenter: Type<T>): void;
|
|
16
14
|
/**
|
|
17
15
|
* Operator to retrieve the presenter based on a given presKey
|
|
18
|
-
*
|
|
19
16
|
* @param defaultPres The default presenter
|
|
20
17
|
* @param presKey The presenter key to retrieve
|
|
21
18
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"c11n.service.d.ts","sourceRoot":"","sources":["../../../src/tools/component-replacement/c11n.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,IAAI,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"c11n.service.d.ts","sourceRoot":"","sources":["../../../src/tools/component-replacement/c11n.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,IAAI,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;;AAIlC,qBACa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAmB;gBAEF,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC;IAI9E;;;;OAIG;IACI,YAAY,CAAC,CAAC,SAAS,OAAO,GAAG,mBAAmB,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC;IAI/G;;;;OAIG;IACI,YAAY,CAAC,CAAC,SAAS,OAAO,GAAG,mBAAmB,CAAC,aAAa,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,SAAkB,YACzG,WAAW,aAAa,CAAC,KAAG,WAAW,CAAC,CAAC;yCAtBhD,WAAW;6CAAX,WAAW;CA+BvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"duration.pipe.d.ts","sourceRoot":"","sources":["../../../../src/tools/pipes/duration/duration.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,aAAa,EAAC,MAAM,eAAe,CAAC;AAClD,OAAO,EAAmB,QAAQ,EAAC,MAAM,kBAAkB,CAAC;;
|
|
1
|
+
{"version":3,"file":"duration.pipe.d.ts","sourceRoot":"","sources":["../../../../src/tools/pipes/duration/duration.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,aAAa,EAAC,MAAM,eAAe,CAAC;AAClD,OAAO,EAAmB,QAAQ,EAAC,MAAM,kBAAkB,CAAC;;AAe5D;;GAEG;AACH,qBACa,YAAa,YAAW,aAAa;IAEhD;;;;;;;;;;;;;OAaG;IACI,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,SAAa,EAAE,SAAS,GAAE,QAAQ,EAAqB;yCAhBpF,YAAY;uCAAZ,YAAY;CA8CxB"}
|
|
@@ -5,15 +5,16 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
/**
|
|
6
6
|
* Placeholder component that is bind to the PlaceholderTemplateStore to display a template based on its ID
|
|
7
7
|
* A loading indication can be provided via projection
|
|
8
|
-
*
|
|
9
8
|
* @example
|
|
10
9
|
* <o3r-placeholder id="my-template-id">Is loading ...</o3r-placeholder>
|
|
11
10
|
*/
|
|
12
11
|
export declare class PlaceholderComponent implements OnInit, OnDestroy {
|
|
13
|
-
private store;
|
|
14
|
-
private cd;
|
|
15
|
-
private subscription;
|
|
16
|
-
private id$;
|
|
12
|
+
private readonly store;
|
|
13
|
+
private readonly cd;
|
|
14
|
+
private readonly subscription;
|
|
15
|
+
private readonly id$;
|
|
16
|
+
private readonly afterViewInit$;
|
|
17
|
+
private readonly messages$;
|
|
17
18
|
/** Determine if the placeholder content is pending */
|
|
18
19
|
isPending?: boolean;
|
|
19
20
|
/** Generated HTML template */
|
|
@@ -23,6 +24,7 @@ export declare class PlaceholderComponent implements OnInit, OnDestroy {
|
|
|
23
24
|
constructor(store: Store<PlaceholderTemplateStore>, cd: ChangeDetectorRef);
|
|
24
25
|
/** @inheritdoc */
|
|
25
26
|
ngOnInit(): void;
|
|
27
|
+
ngAfterViewChecked(): void;
|
|
26
28
|
/** @inheritdoc */
|
|
27
29
|
ngOnDestroy(): void;
|
|
28
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<PlaceholderComponent, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"placeholder.component.d.ts","sourceRoot":"","sources":["../../../src/tools/placeholder/placeholder.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAGjB,SAAS,EACT,MAAM,EAEP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,KAAK,EAAC,MAAM,aAAa,CAAC;AAGlC,OAAO,EAAC,wBAAwB,
|
|
1
|
+
{"version":3,"file":"placeholder.component.d.ts","sourceRoot":"","sources":["../../../src/tools/placeholder/placeholder.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAGjB,SAAS,EACT,MAAM,EAEP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,KAAK,EAAC,MAAM,aAAa,CAAC;AAGlC,OAAO,EAAC,wBAAwB,EAAwB,MAAM,mCAAmC,CAAC;;AAIlG;;;;;GAKG;AACH,qBAOa,oBAAqB,YAAW,MAAM,EAAE,SAAS;IAsBhD,OAAO,CAAC,QAAQ,CAAC,KAAK;IAAmC,OAAO,CAAC,QAAQ,CAAC,EAAE;IApBxF,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAsB;IAEnD,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAsD;IAE1E,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAuB;IAEtD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAkD;IAE5E,sDAAsD;IAC/C,SAAS,CAAC,EAAE,OAAO,CAAC;IAE3B,8BAA8B;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAEzB,wBAAwB;IACxB,IACW,EAAE,CAAC,KAAK,EAAE,MAAM,EAE1B;gBAE4B,KAAK,EAAE,KAAK,CAAC,wBAAwB,CAAC,EAAmB,EAAE,EAAE,iBAAiB;IAG3G,kBAAkB;IACX,QAAQ;IAmDR,kBAAkB;IAKzB,kBAAkB;IACX,WAAW;yCAnFP,oBAAoB;2CAApB,oBAAoB;CAwFhC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { OtterMessageContent } from '@o3r/core';
|
|
2
|
+
/**
|
|
3
|
+
* Payload of the {@see PlaceholderLoadingStatusMessage}
|
|
4
|
+
*
|
|
5
|
+
* Describe the state of an identified placeholder: what template is being loaded and whether the load is done
|
|
6
|
+
*/
|
|
7
|
+
export interface PlaceholderLoadingStatus {
|
|
8
|
+
/**
|
|
9
|
+
* Ids of the template to be loaded in the placeholder
|
|
10
|
+
*/
|
|
11
|
+
templateIds?: string[];
|
|
12
|
+
/**
|
|
13
|
+
* Identify the placeholder under consideration
|
|
14
|
+
*/
|
|
15
|
+
placeholderId?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Message to describe a placeholder's loading status: the templates to be loaded and the pending status.
|
|
19
|
+
*/
|
|
20
|
+
export interface PlaceholderLoadingStatusMessage extends PlaceholderLoadingStatus, OtterMessageContent<'placeholder-loading-status'> {
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=placeholder.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"placeholder.interface.d.ts","sourceRoot":"","sources":["../../../src/tools/placeholder/placeholder.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,WAAW,CAAC;AAEnD;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,+BAAgC,SAAQ,wBAAwB,EAC/E,mBAAmB,CAAC,4BAA4B,CAAC;CAAG"}
|
package/builders/package.json
DELETED
package/core/focus.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { EventEmitter } from '@angular/core';
|
|
2
|
-
/**
|
|
3
|
-
* Custom wrapped input must implement this interface
|
|
4
|
-
*
|
|
5
|
-
* @deprecated will be removed in v10
|
|
6
|
-
*/
|
|
7
|
-
export interface ForwardFocus {
|
|
8
|
-
/**
|
|
9
|
-
* Emits event when the custom input is focused
|
|
10
|
-
*/
|
|
11
|
-
focus: EventEmitter<FocusEvent>;
|
|
12
|
-
/**
|
|
13
|
-
* Emits event when the custom input is blured
|
|
14
|
-
*/
|
|
15
|
-
blur: EventEmitter<FocusEvent>;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=focus.d.ts.map
|
package/core/focus.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"focus.d.ts","sourceRoot":"","sources":["../../src/core/focus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,KAAK,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;IAEhC;;OAEG;IACH,IAAI,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;CAChC"}
|
package/esm2022/core/focus.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9jdXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29yZS9mb2N1cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBFdmVudEVtaXR0ZXIgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuLyoqXG4gKiBDdXN0b20gd3JhcHBlZCBpbnB1dCBtdXN0IGltcGxlbWVudCB0aGlzIGludGVyZmFjZVxuICpcbiAqIEBkZXByZWNhdGVkIHdpbGwgYmUgcmVtb3ZlZCBpbiB2MTBcbiAqL1xuZXhwb3J0IGludGVyZmFjZSBGb3J3YXJkRm9jdXMge1xuICAvKipcbiAgICogRW1pdHMgZXZlbnQgd2hlbiB0aGUgY3VzdG9tIGlucHV0IGlzIGZvY3VzZWRcbiAgICovXG4gIGZvY3VzOiBFdmVudEVtaXR0ZXI8Rm9jdXNFdmVudD47XG5cbiAgLyoqXG4gICAqIEVtaXRzIGV2ZW50IHdoZW4gdGhlIGN1c3RvbSBpbnB1dCBpcyBibHVyZWRcbiAgICovXG4gIGJsdXI6IEV2ZW50RW1pdHRlcjxGb2N1c0V2ZW50Pjtcbn1cbiJdfQ==
|
package/schematics/package.json
DELETED