@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.
Files changed (134) hide show
  1. package/README.md +1 -1
  2. package/builders/component-extractor/helpers/component/component-class.extractor.d.ts +2 -0
  3. package/builders/component-extractor/helpers/component/component-class.extractor.d.ts.map +1 -1
  4. package/builders/component-extractor/helpers/component/component-class.extractor.js +14 -8
  5. package/builders/component-extractor/helpers/component/component-class.extractor.js.map +1 -1
  6. package/builders/component-extractor/helpers/component/component-config.extractor.d.ts.map +1 -1
  7. package/builders/component-extractor/helpers/component/component-config.extractor.js +6 -2
  8. package/builders/component-extractor/helpers/component/component-config.extractor.js.map +1 -1
  9. package/builders/component-extractor/helpers/component/component.extractor.d.ts +5 -5
  10. package/builders/component-extractor/helpers/component/component.extractor.d.ts.map +1 -1
  11. package/builders/component-extractor/helpers/component/component.extractor.js +4 -2
  12. package/builders/component-extractor/helpers/component/component.extractor.js.map +1 -1
  13. package/builders/component-extractor/helpers/component/component.parser.d.ts +9 -6
  14. package/builders/component-extractor/helpers/component/component.parser.d.ts.map +1 -1
  15. package/builders/component-extractor/helpers/component/component.parser.js +36 -10
  16. package/builders/component-extractor/helpers/component/component.parser.js.map +1 -1
  17. package/builders/component-extractor/index.d.ts +0 -1
  18. package/builders/component-extractor/index.d.ts.map +1 -1
  19. package/builders/component-extractor/index.js +8 -9
  20. package/builders/component-extractor/index.js.map +1 -1
  21. package/builders/component-extractor/schema.d.ts +5 -0
  22. package/builders/component-extractor/schema.d.ts.map +1 -1
  23. package/builders/component-extractor/schema.json +22 -1
  24. package/core/component.output.d.ts +8 -11
  25. package/core/component.output.d.ts.map +1 -1
  26. package/core/index.d.ts +0 -1
  27. package/core/index.d.ts.map +1 -1
  28. package/core/rendering/helpers.d.ts +0 -1
  29. package/core/rendering/helpers.d.ts.map +1 -1
  30. package/devkit/components-devkit.interface.d.ts +0 -1
  31. package/devkit/components-devkit.interface.d.ts.map +1 -1
  32. package/devkit/components-devtools.message.service.d.ts +4 -6
  33. package/devkit/components-devtools.message.service.d.ts.map +1 -1
  34. package/devkit/components-devtools.module.d.ts +0 -1
  35. package/devkit/components-devtools.module.d.ts.map +1 -1
  36. package/devkit/inspector/ng/ng.d.ts +0 -3
  37. package/devkit/inspector/ng/ng.d.ts.map +1 -1
  38. package/devkit/inspector/otter-inspector.helpers.d.ts +0 -7
  39. package/devkit/inspector/otter-inspector.helpers.d.ts.map +1 -1
  40. package/devkit/inspector/otter-inspector.service.d.ts +5 -6
  41. package/devkit/inspector/otter-inspector.service.d.ts.map +1 -1
  42. package/esm2022/core/component.output.mjs +1 -1
  43. package/esm2022/core/index.mjs +1 -2
  44. package/esm2022/core/rendering/helpers.mjs +1 -2
  45. package/esm2022/devkit/components-devkit.interface.mjs +1 -2
  46. package/esm2022/devkit/components-devtools.message.service.mjs +6 -8
  47. package/esm2022/devkit/components-devtools.module.mjs +5 -6
  48. package/esm2022/devkit/inspector/ng/ng.mjs +1 -1
  49. package/esm2022/devkit/inspector/otter-inspector.helpers.mjs +1 -8
  50. package/esm2022/devkit/inspector/otter-inspector.service.mjs +1 -2
  51. package/esm2022/public_api.mjs +1 -1
  52. package/esm2022/rules-engine/o3r-components-rules-engine.mjs +5 -0
  53. package/esm2022/rules-engine/placeholder.action-handler.mjs +154 -0
  54. package/esm2022/rules-engine/placeholder.interfaces.mjs +3 -0
  55. package/esm2022/rules-engine/placeholder.rules-engine.effect.mjs +124 -0
  56. package/esm2022/rules-engine/placeholder.rules-engine.module.mjs +31 -0
  57. package/esm2022/rules-engine/public_api.mjs +4 -0
  58. package/esm2022/stores/placeholder-request/placeholder-request.module.mjs +4 -4
  59. package/esm2022/stores/placeholder-request/placeholder-request.selectors.mjs +1 -2
  60. package/esm2022/stores/placeholder-template/placeholder-template.module.mjs +4 -4
  61. package/esm2022/stores/placeholder-template/placeholder-template.selectors.mjs +24 -10
  62. package/esm2022/tools/component-replacement/c11n.directive.mjs +17 -23
  63. package/esm2022/tools/component-replacement/c11n.helpers.mjs +1 -2
  64. package/esm2022/tools/component-replacement/c11n.mock.module.mjs +10 -10
  65. package/esm2022/tools/component-replacement/c11n.module.mjs +5 -6
  66. package/esm2022/tools/component-replacement/c11n.service.mjs +6 -8
  67. package/esm2022/tools/pipes/capitalize/capitalize.module.mjs +4 -4
  68. package/esm2022/tools/pipes/capitalize/capitalize.pipe.mjs +3 -3
  69. package/esm2022/tools/pipes/duration/duration.module.mjs +4 -4
  70. package/esm2022/tools/pipes/duration/duration.pipe.mjs +4 -5
  71. package/esm2022/tools/pipes/keep-white-space/keep-white-space.module.mjs +4 -4
  72. package/esm2022/tools/pipes/keep-white-space/keep-white-space.pipe.mjs +3 -3
  73. package/esm2022/tools/pipes/replace-with-bold/replace-with-bold.module.mjs +4 -4
  74. package/esm2022/tools/pipes/replace-with-bold/replace-with-bold.pipe.mjs +3 -3
  75. package/esm2022/tools/placeholder/placeholder.component.mjs +44 -23
  76. package/esm2022/tools/placeholder/placeholder.interface.mjs +2 -0
  77. package/esm2022/tools/placeholder/placeholder.module.mjs +4 -4
  78. package/fesm2022/o3r-components-rules-engine.mjs +302 -0
  79. package/fesm2022/o3r-components-rules-engine.mjs.map +1 -0
  80. package/fesm2022/o3r-components.mjs +150 -141
  81. package/fesm2022/o3r-components.mjs.map +1 -1
  82. package/package.json +62 -33
  83. package/public_api.d.ts +1 -1
  84. package/public_api.d.ts.map +1 -1
  85. package/rules-engine/index.d.ts +6 -0
  86. package/rules-engine/o3r-components-rules-engine.d.ts.map +1 -0
  87. package/rules-engine/placeholder.action-handler.d.ts +42 -0
  88. package/rules-engine/placeholder.action-handler.d.ts.map +1 -0
  89. package/rules-engine/placeholder.interfaces.d.ts +13 -0
  90. package/rules-engine/placeholder.interfaces.d.ts.map +1 -0
  91. package/rules-engine/placeholder.rules-engine.effect.d.ts +37 -0
  92. package/rules-engine/placeholder.rules-engine.effect.d.ts.map +1 -0
  93. package/rules-engine/placeholder.rules-engine.module.d.ts +9 -0
  94. package/rules-engine/placeholder.rules-engine.module.d.ts.map +1 -0
  95. package/rules-engine/public_api.d.ts +4 -0
  96. package/rules-engine/public_api.d.ts.map +1 -0
  97. package/schemas/component.metadata.schema.json +8 -1
  98. package/schemas/placeholder-template.schema.json +1 -1
  99. package/schemas/rules-engine.placeholder-action.schema.json +26 -0
  100. package/schematics/cms-adapter/index.d.ts +0 -1
  101. package/schematics/cms-adapter/index.d.ts.map +1 -1
  102. package/schematics/cms-adapter/index.js +5 -9
  103. package/schematics/cms-adapter/index.js.map +1 -1
  104. package/schematics/ng-add/helpers/devtools-registration.d.ts +10 -0
  105. package/schematics/ng-add/helpers/devtools-registration.d.ts.map +1 -0
  106. package/schematics/ng-add/helpers/devtools-registration.js +25 -0
  107. package/schematics/ng-add/helpers/devtools-registration.js.map +1 -0
  108. package/schematics/ng-add/index.d.ts +0 -1
  109. package/schematics/ng-add/index.d.ts.map +1 -1
  110. package/schematics/ng-add/index.js +7 -5
  111. package/schematics/ng-add/index.js.map +1 -1
  112. package/schematics/ng-add/schema.json +1 -1
  113. package/stores/placeholder-request/placeholder-request.selectors.d.ts +0 -1
  114. package/stores/placeholder-request/placeholder-request.selectors.d.ts.map +1 -1
  115. package/stores/placeholder-template/placeholder-template.selectors.d.ts +41 -8
  116. package/stores/placeholder-template/placeholder-template.selectors.d.ts.map +1 -1
  117. package/tools/component-replacement/c11n.directive.d.ts +5 -10
  118. package/tools/component-replacement/c11n.directive.d.ts.map +1 -1
  119. package/tools/component-replacement/c11n.helpers.d.ts +1 -3
  120. package/tools/component-replacement/c11n.helpers.d.ts.map +1 -1
  121. package/tools/component-replacement/c11n.module.d.ts +0 -1
  122. package/tools/component-replacement/c11n.module.d.ts.map +1 -1
  123. package/tools/component-replacement/c11n.service.d.ts +2 -5
  124. package/tools/component-replacement/c11n.service.d.ts.map +1 -1
  125. package/tools/pipes/duration/duration.pipe.d.ts.map +1 -1
  126. package/tools/placeholder/placeholder.component.d.ts +7 -5
  127. package/tools/placeholder/placeholder.component.d.ts.map +1 -1
  128. package/tools/placeholder/placeholder.interface.d.ts +22 -0
  129. package/tools/placeholder/placeholder.interface.d.ts.map +1 -0
  130. package/builders/package.json +0 -3
  131. package/core/focus.d.ts +0 -17
  132. package/core/focus.d.ts.map +0 -1
  133. package/esm2022/core/focus.mjs +0 -2
  134. 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 templates for a given placeholderId
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 selectPlaceholderRenderedTemplates: (placeholderId: string) => import("@ngrx/store").MemoizedSelector<object, {
19
- orderedRenderedTemplates: undefined;
16
+ export declare const selectSortedTemplates: (placeholderId: string) => import("@ngrx/store").MemoizedSelector<object, {
17
+ orderedTemplates: undefined;
20
18
  isPending: never;
21
19
  } | {
22
- orderedRenderedTemplates: (string | undefined)[];
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
- orderedRenderedTemplates: undefined;
28
+ orderedTemplates: undefined;
26
29
  isPending: never;
27
30
  } | {
28
- orderedRenderedTemplates: (string | undefined)[];
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;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,kBAAmB,MAAM,+OACsB,CAAC;AAE5F;;;;;;GAMG;AACH,eAAO,MAAM,kCAAkC,kBAAmB,MAAM;;;;;;;;;;;;cAoCpE,CAAC"}
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 { ComponentFactoryResolver, ComponentRef, Injector, KeyValueDiffers, OnChanges, OnDestroy, SimpleChanges, ViewContainerRef } from '@angular/core';
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/configuration';
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 componentFactoryResolver;
9
- private differsService;
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, componentFactoryResolver: ComponentFactoryResolver, differsService: KeyValueDiffers, injector: Injector);
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,EACc,wBAAwB,EAAE,YAAY,EAAyB,QAAQ,EAC1F,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,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,W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C,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/configuration';
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,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAExD,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;;;;;;GAMG;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"}
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;;;;;GAKG;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
+ {"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/configuration';
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,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;;AAIlC,qBACa,WAAW;IACtB,OAAO,CAAC,aAAa,CAAmB;gBAEO,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC;IAI9E;;;;;OAKG;IACI,YAAY,CAAC,CAAC,SAAS,OAAO,GAAG,mBAAmB,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC;IAI/G;;;;;OAKG;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;yCAxBhD,WAAW;6CAAX,WAAW;CAiCvB"}
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;;AAgB5D;;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"}
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,EAAqC,MAAM,mCAAmC,CAAC;;AAE/G;;;;;;GAMG;AACH,qBAOa,oBAAqB,YAAW,MAAM,EAAE,SAAS;IAkBhD,OAAO,CAAC,KAAK;IAAmC,OAAO,CAAC,EAAE;IAhBtE,OAAO,CAAC,YAAY,CAAsB;IAE1C,OAAO,CAAC,GAAG,CAAgC;IAE3C,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;gBAEmB,KAAK,EAAE,KAAK,CAAC,wBAAwB,CAAC,EAAU,EAAE,EAAE,iBAAiB;IAGzF,kBAAkB;IACX,QAAQ;IAyBf,kBAAkB;IACX,WAAW;yCAhDP,oBAAoB;2CAApB,oBAAoB;CAmDhC"}
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"}
@@ -1,3 +0,0 @@
1
- {
2
- "type": "commonjs"
3
- }
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
@@ -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"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9jdXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29yZS9mb2N1cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBFdmVudEVtaXR0ZXIgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuLyoqXG4gKiBDdXN0b20gd3JhcHBlZCBpbnB1dCBtdXN0IGltcGxlbWVudCB0aGlzIGludGVyZmFjZVxuICpcbiAqIEBkZXByZWNhdGVkIHdpbGwgYmUgcmVtb3ZlZCBpbiB2MTBcbiAqL1xuZXhwb3J0IGludGVyZmFjZSBGb3J3YXJkRm9jdXMge1xuICAvKipcbiAgICogRW1pdHMgZXZlbnQgd2hlbiB0aGUgY3VzdG9tIGlucHV0IGlzIGZvY3VzZWRcbiAgICovXG4gIGZvY3VzOiBFdmVudEVtaXR0ZXI8Rm9jdXNFdmVudD47XG5cbiAgLyoqXG4gICAqIEVtaXRzIGV2ZW50IHdoZW4gdGhlIGN1c3RvbSBpbnB1dCBpcyBibHVyZWRcbiAgICovXG4gIGJsdXI6IEV2ZW50RW1pdHRlcjxGb2N1c0V2ZW50Pjtcbn1cbiJdfQ==
@@ -1,3 +0,0 @@
1
- {
2
- "type": "commonjs"
3
- }