@o3r/components 11.0.0-next.0 → 11.0.0-next.1

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 (114) hide show
  1. package/README.md +5 -1
  2. package/builders/component-extractor/helpers/component/component-class.extractor.d.ts +1 -1
  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 +1 -1
  5. package/builders/component-extractor/helpers/component/component-class.extractor.js.map +1 -1
  6. package/builders/component-extractor/helpers/component/component-config.extractor.js.map +1 -1
  7. package/builders/component-extractor/helpers/component/component.extractor.js.map +1 -1
  8. package/builders/component-extractor/helpers/component/component.parser.d.ts +1 -0
  9. package/builders/component-extractor/helpers/component/component.parser.d.ts.map +1 -1
  10. package/builders/component-extractor/helpers/component/component.parser.js +10 -8
  11. package/builders/component-extractor/helpers/component/component.parser.js.map +1 -1
  12. package/builders/component-extractor/index.d.ts.map +1 -1
  13. package/builders/component-extractor/index.js +4 -4
  14. package/builders/component-extractor/index.js.map +1 -1
  15. package/devkit/components-devkit.interface.d.ts +24 -1
  16. package/devkit/components-devkit.interface.d.ts.map +1 -1
  17. package/devkit/components-devtools.message.service.d.ts +6 -2
  18. package/devkit/components-devtools.message.service.d.ts.map +1 -1
  19. package/devkit/components-devtools.module.d.ts +2 -1
  20. package/devkit/components-devtools.module.d.ts.map +1 -1
  21. package/devkit/inspector/otter-inspector.helpers.d.ts.map +1 -1
  22. package/devkit/inspector/otter-inspector.service.d.ts.map +1 -1
  23. package/esm2022/core/rendering/helpers.mjs +1 -1
  24. package/esm2022/devkit/components-devkit.interface.mjs +3 -1
  25. package/esm2022/devkit/components-devtools.message.service.mjs +26 -7
  26. package/esm2022/devkit/components-devtools.module.mjs +11 -7
  27. package/esm2022/devkit/inspector/otter-inspector.helpers.mjs +3 -2
  28. package/esm2022/devkit/inspector/otter-inspector.service.mjs +2 -3
  29. package/esm2022/rules-engine/placeholder.action-handler.mjs +18 -14
  30. package/esm2022/rules-engine/placeholder.rules-engine.effect.mjs +22 -13
  31. package/esm2022/rules-engine/placeholder.rules-engine.module.mjs +4 -4
  32. package/esm2022/stores/placeholder-request/placeholder-request.module.mjs +4 -4
  33. package/esm2022/stores/placeholder-request/placeholder-request.reducer.mjs +1 -1
  34. package/esm2022/stores/placeholder-request/placeholder-request.state.mjs +1 -1
  35. package/esm2022/stores/placeholder-request/placeholder-request.sync.mjs +1 -1
  36. package/esm2022/stores/placeholder-template/placeholder-template.actions.mjs +3 -1
  37. package/esm2022/stores/placeholder-template/placeholder-template.module.mjs +4 -4
  38. package/esm2022/stores/placeholder-template/placeholder-template.reducer.mjs +10 -2
  39. package/esm2022/stores/placeholder-template/placeholder-template.selectors.mjs +2 -1
  40. package/esm2022/stores/placeholder-template/placeholder-template.state.mjs +1 -1
  41. package/esm2022/stores/placeholder-template/placeholder-template.sync.mjs +1 -1
  42. package/esm2022/tools/component-replacement/c11n.directive.mjs +8 -6
  43. package/esm2022/tools/component-replacement/c11n.helpers.mjs +1 -1
  44. package/esm2022/tools/component-replacement/c11n.mock.module.mjs +10 -10
  45. package/esm2022/tools/component-replacement/c11n.module.mjs +5 -5
  46. package/esm2022/tools/component-replacement/c11n.service.mjs +4 -4
  47. package/esm2022/tools/pipes/capitalize/capitalize.module.mjs +8 -5
  48. package/esm2022/tools/pipes/capitalize/capitalize.pipe.mjs +16 -5
  49. package/esm2022/tools/pipes/duration/duration.module.mjs +8 -5
  50. package/esm2022/tools/pipes/duration/duration.pipe.mjs +17 -5
  51. package/esm2022/tools/pipes/keep-white-space/keep-white-space.module.mjs +8 -5
  52. package/esm2022/tools/pipes/keep-white-space/keep-white-space.pipe.mjs +19 -7
  53. package/esm2022/tools/pipes/replace-with-bold/replace-with-bold.module.mjs +8 -5
  54. package/esm2022/tools/pipes/replace-with-bold/replace-with-bold.pipe.mjs +23 -9
  55. package/esm2022/tools/placeholder/placeholder.component.mjs +11 -13
  56. package/esm2022/tools/placeholder/placeholder.module.mjs +5 -5
  57. package/fesm2022/o3r-components-rules-engine.mjs +42 -29
  58. package/fesm2022/o3r-components-rules-engine.mjs.map +1 -1
  59. package/fesm2022/o3r-components.mjs +560 -467
  60. package/fesm2022/o3r-components.mjs.map +1 -1
  61. package/migration.json +10 -0
  62. package/package.json +39 -28
  63. package/rules-engine/placeholder.action-handler.d.ts +7 -6
  64. package/rules-engine/placeholder.action-handler.d.ts.map +1 -1
  65. package/rules-engine/placeholder.rules-engine.effect.d.ts.map +1 -1
  66. package/schemas/placeholder-template.schema.json +9 -1
  67. package/schematics/cms-adapter/index.d.ts +2 -3
  68. package/schematics/cms-adapter/index.d.ts.map +1 -1
  69. package/schematics/cms-adapter/index.js +7 -3
  70. package/schematics/cms-adapter/index.js.map +1 -1
  71. package/schematics/ng-add/index.d.ts +1 -1
  72. package/schematics/ng-add/index.d.ts.map +1 -1
  73. package/schematics/ng-add/index.js +60 -40
  74. package/schematics/ng-add/index.js.map +1 -1
  75. package/schematics/ng-add/schema.d.ts +2 -0
  76. package/schematics/ng-add/schema.d.ts.map +1 -1
  77. package/schematics/ng-add/schema.json +5 -0
  78. package/schematics/ng-update/v10-0/index.d.ts +6 -0
  79. package/schematics/ng-update/v10-0/index.d.ts.map +1 -0
  80. package/schematics/ng-update/v10-0/index.js +63 -0
  81. package/schematics/ng-update/v10-0/index.js.map +1 -0
  82. package/stores/placeholder-request/placeholder-request.state.d.ts +1 -0
  83. package/stores/placeholder-request/placeholder-request.state.d.ts.map +1 -1
  84. package/stores/placeholder-template/placeholder-template.actions.d.ts +6 -1
  85. package/stores/placeholder-template/placeholder-template.actions.d.ts.map +1 -1
  86. package/stores/placeholder-template/placeholder-template.reducer.d.ts.map +1 -1
  87. package/stores/placeholder-template/placeholder-template.selectors.d.ts +1 -0
  88. package/stores/placeholder-template/placeholder-template.selectors.d.ts.map +1 -1
  89. package/stores/placeholder-template/placeholder-template.state.d.ts +3 -0
  90. package/stores/placeholder-template/placeholder-template.state.d.ts.map +1 -1
  91. package/tools/component-replacement/c11n.directive.d.ts +4 -4
  92. package/tools/component-replacement/c11n.directive.d.ts.map +1 -1
  93. package/tools/component-replacement/c11n.helpers.d.ts +2 -2
  94. package/tools/component-replacement/c11n.helpers.d.ts.map +1 -1
  95. package/tools/component-replacement/c11n.service.d.ts +3 -3
  96. package/tools/component-replacement/c11n.service.d.ts.map +1 -1
  97. package/tools/pipes/capitalize/capitalize.module.d.ts +3 -0
  98. package/tools/pipes/capitalize/capitalize.module.d.ts.map +1 -1
  99. package/tools/pipes/capitalize/capitalize.pipe.d.ts +8 -1
  100. package/tools/pipes/capitalize/capitalize.pipe.d.ts.map +1 -1
  101. package/tools/pipes/duration/duration.module.d.ts +3 -0
  102. package/tools/pipes/duration/duration.module.d.ts.map +1 -1
  103. package/tools/pipes/duration/duration.pipe.d.ts +9 -1
  104. package/tools/pipes/duration/duration.pipe.d.ts.map +1 -1
  105. package/tools/pipes/keep-white-space/keep-white-space.module.d.ts +3 -0
  106. package/tools/pipes/keep-white-space/keep-white-space.module.d.ts.map +1 -1
  107. package/tools/pipes/keep-white-space/keep-white-space.pipe.d.ts +8 -1
  108. package/tools/pipes/keep-white-space/keep-white-space.pipe.d.ts.map +1 -1
  109. package/tools/pipes/replace-with-bold/replace-with-bold.module.d.ts +3 -0
  110. package/tools/pipes/replace-with-bold/replace-with-bold.module.d.ts.map +1 -1
  111. package/tools/pipes/replace-with-bold/replace-with-bold.pipe.d.ts +8 -1
  112. package/tools/pipes/replace-with-bold/replace-with-bold.pipe.d.ts.map +1 -1
  113. package/tools/placeholder/placeholder.component.d.ts +5 -3
  114. package/tools/placeholder/placeholder.component.d.ts.map +1 -1
package/package.json CHANGED
@@ -1,6 +1,9 @@
1
1
  {
2
2
  "name": "@o3r/components",
3
- "version": "11.0.0-next.0",
3
+ "version": "11.0.0-next.1",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
4
7
  "description": "This module contains component-related features (Component replacement, CMS compatibility, helpers, pipes, debugging developer tools...)\nIt comes with an integrated ng builder to help you generate components compatible with Otter features (CMS integration, localization, etc.).",
5
8
  "keywords": [
6
9
  "components",
@@ -9,12 +12,13 @@
9
12
  "otter-cms"
10
13
  ],
11
14
  "exports": {
12
- "./schemas/*.json": {
13
- "default": "./schemas/*.json"
14
- },
15
15
  "./package.json": {
16
+ "node": "./package.json",
16
17
  "default": "./package.json"
17
18
  },
19
+ "./schemas/*.json": {
20
+ "default": "./schemas/*.json"
21
+ },
18
22
  ".": {
19
23
  "types": "./index.d.ts",
20
24
  "esm2022": "./esm2022/o3r-components.mjs",
@@ -29,32 +33,33 @@
29
33
  }
30
34
  },
31
35
  "peerDependencies": {
32
- "@angular-devkit/architect": "~0.1700.0",
33
- "@angular-devkit/schematics": "~17.0.0",
34
- "@angular/cdk": "~17.0.0",
35
- "@angular/common": "~17.0.0",
36
- "@angular/core": "~17.0.0",
37
- "@angular/forms": "~17.0.0",
38
- "@angular/platform-browser": "~17.0.0",
39
- "@angular/platform-browser-dynamic": "~17.0.0",
40
- "@ngrx/effects": "~17.0.0",
41
- "@ngrx/entity": "~17.0.0",
42
- "@ngrx/store": "~17.0.0",
43
- "@o3r/configuration": "^11.0.0-next.0",
44
- "@o3r/core": "^11.0.0-next.0",
45
- "@o3r/dynamic-content": "^11.0.0-next.0",
46
- "@o3r/extractors": "^11.0.0-next.0",
47
- "@o3r/localization": "^11.0.0-next.0",
48
- "@o3r/logger": "^11.0.0-next.0",
49
- "@o3r/rules-engine": "^11.0.0-next.0",
50
- "@o3r/schematics": "^11.0.0-next.0",
51
- "@o3r/testing": "^11.0.0-next.0",
52
- "@schematics/angular": "~17.0.0",
36
+ "@angular-devkit/architect": "~0.1703.0",
37
+ "@angular-devkit/schematics": "~17.3.0",
38
+ "@angular/cdk": "~17.3.0",
39
+ "@angular/common": "~17.3.0",
40
+ "@angular/core": "~17.3.0",
41
+ "@angular/forms": "~17.3.0",
42
+ "@angular/platform-browser": "~17.3.0",
43
+ "@angular/platform-browser-dynamic": "~17.3.0",
44
+ "@ngrx/effects": "~17.2.0",
45
+ "@ngrx/entity": "~17.2.0",
46
+ "@ngrx/store": "~17.2.0",
47
+ "@o3r/analytics": "^11.0.0-next.1",
48
+ "@o3r/configuration": "^11.0.0-next.1",
49
+ "@o3r/core": "^11.0.0-next.1",
50
+ "@o3r/dynamic-content": "^11.0.0-next.1",
51
+ "@o3r/extractors": "^11.0.0-next.1",
52
+ "@o3r/localization": "^11.0.0-next.1",
53
+ "@o3r/logger": "^11.0.0-next.1",
54
+ "@o3r/rules-engine": "^11.0.0-next.1",
55
+ "@o3r/schematics": "^11.0.0-next.1",
56
+ "@o3r/testing": "^11.0.0-next.1",
57
+ "@schematics/angular": "~17.3.0",
53
58
  "chokidar": "^3.5.2",
54
59
  "globby": "^11.1.0",
55
- "jsonpath-plus": "^7.0.0",
60
+ "jsonpath-plus": "^8.0.0",
56
61
  "rxjs": "^7.8.1",
57
- "typescript": "~5.2.2"
62
+ "typescript": "~5.4.2"
58
63
  },
59
64
  "peerDependenciesMeta": {
60
65
  "@angular-devkit/schematics": {
@@ -63,6 +68,9 @@
63
68
  "@ngx-translate/core": {
64
69
  "optional": true
65
70
  },
71
+ "@o3r/analytics": {
72
+ "optional": true
73
+ },
66
74
  "@o3r/configuration": {
67
75
  "optional": true
68
76
  },
@@ -98,13 +106,16 @@
98
106
  }
99
107
  },
100
108
  "dependencies": {
101
- "tslib": "^2.5.3"
109
+ "tslib": "^2.6.2"
102
110
  },
103
111
  "engines": {
104
112
  "node": ">=18.0.0"
105
113
  },
106
114
  "schematics": "./collection.json",
107
115
  "builders": "./builders.json",
116
+ "ng-update": {
117
+ "migrations": "./migration.json"
118
+ },
108
119
  "module": "fesm2022/o3r-components.mjs",
109
120
  "typings": "index.d.ts",
110
121
  "sideEffects": false,
@@ -1,10 +1,10 @@
1
- import { OnDestroy } from '@angular/core';
1
+ import { Injector, OnDestroy } from '@angular/core';
2
+ import { Store } from '@ngrx/store';
2
3
  import type { RulesEngineActionHandler } from '@o3r/core';
3
- import { LoggerService } from '@o3r/logger';
4
- import { Subject, Subscription } from 'rxjs';
5
4
  import { PlaceholderRequestReply, PlaceholderTemplateStore } from '@o3r/components';
6
- import { Store } from '@ngrx/store';
7
5
  import { LocalizationService } from '@o3r/localization';
6
+ import { LoggerService } from '@o3r/logger';
7
+ import { Subject, Subscription } from 'rxjs';
8
8
  import { ActionUpdatePlaceholderBlock } from './placeholder.interfaces';
9
9
  import * as i0 from "@angular/core";
10
10
  /**
@@ -12,6 +12,7 @@ import * as i0 from "@angular/core";
12
12
  */
13
13
  export declare class PlaceholderRulesEngineActionHandler implements OnDestroy, RulesEngineActionHandler<ActionUpdatePlaceholderBlock> {
14
14
  private readonly logger;
15
+ private readonly injector;
15
16
  protected subscription: Subscription;
16
17
  protected placeholdersActions$: Subject<{
17
18
  placeholderId: string;
@@ -20,7 +21,7 @@ export declare class PlaceholderRulesEngineActionHandler implements OnDestroy, R
20
21
  }[]>;
21
22
  /** @inheritdoc */
22
23
  readonly supportingActions: readonly ["UPDATE_PLACEHOLDER"];
23
- constructor(store: Store<PlaceholderTemplateStore>, logger: LoggerService, translateService?: LocalizationService);
24
+ constructor(store: Store<PlaceholderTemplateStore>, logger: LoggerService, injector: Injector, translateService?: LocalizationService);
24
25
  /**
25
26
  * Localize the url, replacing the language marker
26
27
  * @param url
@@ -36,7 +37,7 @@ export declare class PlaceholderRulesEngineActionHandler implements OnDestroy, R
36
37
  executeActions(actions: ActionUpdatePlaceholderBlock[]): void;
37
38
  /** @inheritdoc */
38
39
  ngOnDestroy(): void;
39
- static ɵfac: i0.ɵɵFactoryDeclaration<PlaceholderRulesEngineActionHandler, [null, null, { optional: true; }]>;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<PlaceholderRulesEngineActionHandler, [null, null, null, { optional: true; }]>;
40
41
  static ɵprov: i0.ɵɵInjectableDeclaration<PlaceholderRulesEngineActionHandler>;
41
42
  }
42
43
  //# sourceMappingURL=placeholder.action-handler.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AG,IAAI,EACnD,kBAAkB,EAAE,mBAAmB,GAAG,IAAI;IAG7E;;;;;OAKG;IACH,OAAO,CAAC,gBAAgB;yCAjEb,iCAAiC;6CAAjC,iCAAiC;CAgI7C"}
1
+ {"version":3,"file":"placeholder.rules-engine.effect.d.ts","sourceRoot":"","sources":["../../src/rules-engine/placeholder.rules-engine.effect.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,OAAO,EAAuB,MAAM,eAAe,CAAC;AAC5D,OAAO,EAGL,uBAAuB,EAKxB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAC,qBAAqB,EAAC,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAC,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAC,wBAAwB,EAAC,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAuB,UAAU,EAAK,MAAM,MAAM,CAAC;AAE1D,OAAO,EAAC,KAAK,EAAC,MAAM,aAAa,CAAC;;AAGlC;;GAEG;AACH,qBACa,iCAAiC;IAqD1C,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,KAAK;IACV,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IACtC,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IAxDjD;;;;OAIG;IACI,mCAAmC;;6IA4CxC;gBAGiB,QAAQ,EAAE,OAAO,EACjB,KAAK,EAAE,KAAK,CAAC,uBAAuB,CAAC,EACzB,kBAAkB,EAAE,wBAAwB,GAAG,IAAI,EACnD,qBAAqB,EAAE,qBAAqB,GAAG,IAAI,EACnD,kBAAkB,EAAE,mBAAmB,GAAG,IAAI;IAG7E;;;;;OAKG;IACH,OAAO,CAAC,gBAAgB;yCAlEb,iCAAiC;6CAAjC,iCAAiC;CA0I7C"}
@@ -14,7 +14,7 @@
14
14
  "type": "object",
15
15
  "patternProperties": {
16
16
  ".*": {
17
- "$ref": "#definitions/placeholderVariable"
17
+ "$ref": "#/definitions/placeholderVariable"
18
18
  }
19
19
  }
20
20
  }
@@ -41,10 +41,18 @@
41
41
  "type": "string"
42
42
  },
43
43
  "vars": {
44
+ "deprecated": true,
45
+ "description": "Deprecated: will be removed in V12. List of variables that can be used in the localization string",
44
46
  "type": "array",
45
47
  "items": {
46
48
  "type": "string"
47
49
  }
50
+ },
51
+ "parameters": {
52
+ "type": "object",
53
+ "additionalProperties": {
54
+ "type": "string"
55
+ }
48
56
  }
49
57
  }
50
58
  },
@@ -3,9 +3,8 @@ import { Rule } from '@angular-devkit/schematics';
3
3
  * Update CMS adapter tools
4
4
  * @param options @see RuleFactory.options
5
5
  * @param options.projectName
6
- * @param rootPath @see RuleFactory.rootPath
7
6
  */
8
- export declare function updateCmsAdapter(options: {
7
+ export declare const updateCmsAdapter: (options: {
9
8
  projectName?: string | undefined;
10
- }): Rule;
9
+ }) => Rule;
11
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/cms-adapter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAKvF;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,GAAG,IAAI,CAoEpF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/cms-adapter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAgFvF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;kBA5EwB,MAAM,GAAG,SAAS;UA4EkB,CAAC"}
@@ -9,9 +9,8 @@ const path = tslib_1.__importStar(require("node:path"));
9
9
  * Update CMS adapter tools
10
10
  * @param options @see RuleFactory.options
11
11
  * @param options.projectName
12
- * @param rootPath @see RuleFactory.rootPath
13
12
  */
14
- function updateCmsAdapter(options) {
13
+ function updateCmsAdapterFn(options) {
15
14
  if (!options.projectName) {
16
15
  return schematics_1.noop;
17
16
  }
@@ -70,5 +69,10 @@ function updateCmsAdapter(options) {
70
69
  editAngularJson
71
70
  ]);
72
71
  }
73
- exports.updateCmsAdapter = updateCmsAdapter;
72
+ /**
73
+ * Update CMS adapter tools
74
+ * @param options @see RuleFactory.options
75
+ * @param options.projectName
76
+ */
77
+ exports.updateCmsAdapter = (0, schematics_2.createSchematicWithMetricsIfInstalled)(updateCmsAdapterFn);
74
78
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/cms-adapter/index.ts"],"names":[],"mappings":";;;;AAAA,2DAAuF;AACvF,gDAA+F;AAC/F,wDAAkC;AAGlC;;;;;GAKG;AACH,SAAgB,gBAAgB,CAAC,OAA6C;IAC5E,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE;QACxB,OAAO,iBAAI,CAAC;KACb;IAED;;;;;OAKG;IACH,MAAM,eAAe,GAAG,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAChE,MAAM,SAAS,GAAG,IAAA,+BAAkB,EAAC,IAAI,CAAC,CAAC;QAC3C,MAAM,gBAAgB,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,EAAE,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAEpG,IAAI,CAAC,SAAS,IAAI,CAAC,gBAAgB,EAAE;YACnC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,uDAAuD,CAAC,CAAC;YAC9E,OAAO,IAAI,CAAC;SACb;QAED,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE;YAC/B,gBAAgB,CAAC,SAAS,GAAG,EAAE,CAAC;SACjC;QAED,gBAAgB,CAAC,SAAS,CAAC,oBAAoB,CAAC,KAAK;YACnD,OAAO,E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AC,WAAW,CAAC,OAAO,CAAC;aAC5E,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,6BAA6B,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;aACpD,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,oBAAoB,IAAI,CAAC,EAAE,CAAC;aAC1C,IAAI,CAAC,MAAM,CAAC,CAAC;QAEhB,IAAI,CAAC,SAAS,CAAC,GAAG,gBAAgB,CAAC,IAAI,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QAC9F,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO,IAAA,kBAAK,EAAC;QACX,oBAAoB;QACpB,eAAe;KAChB,CAAC,CAAC;AACL,CAAC;AAGD;;;;GAIG;AACU,QAAA,gBAAgB,GAAG,IAAA,kDAAqC,EAAC,kBAAkB,CAAC,CAAC"}
@@ -4,5 +4,5 @@ import type { NgAddSchematicsSchema } from './schema';
4
4
  * Add Otter components to an Angular Project
5
5
  * @param options
6
6
  */
7
- export declare function ngAdd(options: NgAddSchematicsSchema): Rule;
7
+ export declare const ngAdd: (options: NgAddSchematicsSchema) => Rule;
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAIjF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAGtD;;;GAGG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI,CAuD1D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAIjF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AA+EtD;;;GAGG;AACH,eAAO,MAAM,KAAK,YAAa,qBAAqB,KAAG,IAGtD,CAAC"}
@@ -7,54 +7,74 @@ const path = tslib_1.__importStar(require("node:path"));
7
7
  const fs = tslib_1.__importStar(require("node:fs"));
8
8
  const cms_adapter_1 = require("../cms-adapter");
9
9
  const devtools_registration_1 = require("./helpers/devtools-registration");
10
+ const reportMissingSchematicsDep = (logger) => (reason) => {
11
+ logger.error(`[ERROR]: Adding @o3r/components has failed.
12
+ If the error is related to missing @o3r dependencies you need to install '@o3r/core' to be able to use the components package. Please run 'ng add @o3r/core' .
13
+ Otherwise, use the error message as guidance.`);
14
+ throw reason;
15
+ };
10
16
  /**
11
17
  * Add Otter components to an Angular Project
12
18
  * @param options
13
19
  */
14
- function ngAdd(options) {
20
+ function ngAddFn(options) {
15
21
  /* ng add rules */
16
22
  return async (tree, context) => {
17
- try {
18
- const { getDefaultOptionsForSchematic, getO3rPeerDeps, getProjectNewDependenciesType, getWorkspaceConfig, ngAddPackages, ngAddPeerDependencyPackages, removePackages, registerPackageCollectionSchematics } = await Promise.resolve().then(() => tslib_1.__importStar(require('@o3r/schematics')));
19
- // eslint-disable-next-line @typescript-eslint/naming-convention
20
- const { NodeDependencyType } = await Promise.resolve().then(() => tslib_1.__importStar(require('@schematics/angular/utility/dependencies')));
21
- options = { ...getDefaultOptionsForSchematic(getWorkspaceConfig(tree), '@o3r/components', 'ng-add', options), ...options };
22
- const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
23
- const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: 'utf-8' }));
24
- const depsInfo = getO3rPeerDeps(packageJsonPath);
25
- if (options.enableMetadataExtract) {
26
- depsInfo.o3rPeerDeps = [...depsInfo.o3rPeerDeps, '@o3r/extractors'];
27
- }
28
- const workspaceProject = options.projectName ? getWorkspaceConfig(tree)?.projects[options.projectName] : undefined;
29
- const workingDirectory = workspaceProject?.root || '.';
30
- const dependencyType = getProjectNewDependenciesType(workspaceProject);
31
- const rule = (0, schematics_1.chain)([
32
- removePackages(['@otter/components']),
33
- ngAddPackages(depsInfo.o3rPeerDeps, {
34
- skipConfirmation: true,
35
- version: depsInfo.packageVersion,
36
- parentPackageInfo: depsInfo.packageName,
37
- projectName: options.projectName,
38
- dependencyType,
39
- workingDirectory
40
- }),
41
- ngAddPeerDependencyPackages(['chokidar'], packageJsonPath, NodeDependencyType.Dev, { ...options, workingDirectory, skipNgAddSchematicRun: true }, '@o3r/components - install builder dependency'),
42
- registerPackageCollectionSchematics(packageJson),
43
- ...(options.enableMetadataExtract ? [(0, cms_adapter_1.updateCmsAdapter)(options)] : []),
44
- await (0, devtools_registration_1.registerDevtools)(options)
45
- ]);
46
- context.logger.info(`The package ${depsInfo.packageName} comes with a debug mechanism`);
47
- context.logger.info('Get more information on the following page: https://github.com/AmadeusITGroup/otter/tree/main/docs/components/COMPONENT_STRUCTURE.md#Runtime-debugging');
48
- return () => rule(tree, context);
49
- }
50
- catch (e) {
51
- // components needs o3r/core as peer dep. o3r/core will install o3r/schematics
52
- context.logger.error(`[ERROR]: Adding @o3r/components has failed.
53
- If the error is related to missing @o3r dependencies you need to install '@o3r/core' to be able to use the components package. Please run 'ng add @o3r/core' .
54
- Otherwise, use the error message as guidance.`);
55
- throw (e);
23
+ const { getDefaultOptionsForSchematic, getO3rPeerDeps, getProjectNewDependenciesTypes, getWorkspaceConfig, setupDependencies, removePackages, registerPackageCollectionSchematics, getPackageInstallConfig } = await Promise.resolve().then(() => tslib_1.__importStar(require('@o3r/schematics')));
24
+ // eslint-disable-next-line @typescript-eslint/naming-convention
25
+ const { NodeDependencyType } = await Promise.resolve().then(() => tslib_1.__importStar(require('@schematics/angular/utility/dependencies')));
26
+ options = { ...getDefaultOptionsForSchematic(getWorkspaceConfig(tree), '@o3r/components', 'ng-add', options), ...options };
27
+ const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
28
+ const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: 'utf-8' }));
29
+ const depsInfo = getO3rPeerDeps(packageJsonPath);
30
+ if (options.enableMetadataExtract) {
31
+ depsInfo.o3rPeerDeps = [...depsInfo.o3rPeerDeps, '@o3r/extractors'];
56
32
  }
33
+ const workspaceProject = options.projectName ? getWorkspaceConfig(tree)?.projects[options.projectName] : undefined;
34
+ const dependencies = depsInfo.o3rPeerDeps.reduce((acc, dep) => {
35
+ acc[dep] = {
36
+ inManifest: [{
37
+ range: `${options.exactO3rVersion ? '' : '~'}${depsInfo.packageVersion}`,
38
+ types: getProjectNewDependenciesTypes(workspaceProject)
39
+ }],
40
+ ngAddOptions: { exactO3rVersion: options.exactO3rVersion }
41
+ };
42
+ return acc;
43
+ }, getPackageInstallConfig(packageJsonPath, tree, options.projectName, false, !!options.exactO3rVersion));
44
+ const devDependencies = {
45
+ chokidar: {
46
+ inManifest: [{
47
+ range: packageJson.peerDependencies.chokidar,
48
+ types: [NodeDependencyType.Dev]
49
+ }]
50
+ }
51
+ };
52
+ const rule = (0, schematics_1.chain)([
53
+ removePackages(['@otter/components']),
54
+ setupDependencies({
55
+ projectName: options.projectName,
56
+ dependencies: {
57
+ ...dependencies,
58
+ ...devDependencies
59
+ },
60
+ ngAddToRun: depsInfo.o3rPeerDeps
61
+ }),
62
+ registerPackageCollectionSchematics(packageJson),
63
+ ...(options.enableMetadataExtract ? [(0, cms_adapter_1.updateCmsAdapter)(options)] : []),
64
+ await (0, devtools_registration_1.registerDevtools)(options)
65
+ ]);
66
+ context.logger.info(`The package ${depsInfo.packageName} comes with a debug mechanism`);
67
+ context.logger.info('Get more information on the following page: https://github.com/AmadeusITGroup/otter/tree/main/docs/components/COMPONENT_STRUCTURE.md#Runtime-debugging');
68
+ return () => rule(tree, context);
57
69
  };
58
70
  }
71
+ /**
72
+ * Add Otter components to an Angular Project
73
+ * @param options
74
+ */
75
+ const ngAdd = (options) => async (_, { logger }) => {
76
+ const { createSchematicWithMetricsIfInstalled } = await Promise.resolve().then(() => tslib_1.__importStar(require('@o3r/schematics'))).catch(reportMissingSchematicsDep(logger));
77
+ return createSchematicWithMetricsIfInstalled(ngAddFn)(options);
78
+ };
59
79
  exports.ngAdd = ngAdd;
60
80
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":";;;;AAAA,2DAAiF;AACjF,wDAAkC;AAClC,oDAA8B;AAC9B,gDAAkD;AAElD,2EAAmE;AAEnE;;;GAGG;AACH,SAAgB,KAAK,CAAC,OAA8B;IAClD,kBAAkB;IAClB,OAAO,KAAK,EAAE,IAAU,EAAE,OAAyB,EAAE,EAAE;QACrD,IAAI;YACF,MAAM,EACJ,6BAA6B,EAC7B,cAAc,EACd,6BAA6B,EAC7B,kBAAkB,EAClB,aAAa,EACb,2BAA2B,EAC3B,cAAc,EACd,mCAAmC,EACpC,GAAG,gEAAa,iBAAiB,GAAC,CAAC;YACpC,gEAAgE;YAChE,MAAM,EAAE,kBAAkB,EAAE,GAAG,gEAAa,0CAA0C,GAAC,CAAC;YACxF,OAAO,GAAG,EAAC,GAAG,6BAA6B,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,iBAAiB,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,GAAG,OAAO,EAAC,CAAC;YACzH,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;YAC5E,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,eAAe,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;YACxF,MAAM,QAAQ,GAAG,cAAc,CAAC,eAAe,CAAC,CAAC;YACjD,IAAI,OAAO,CAAC,qBAAqB,EAAE;gBACjC,QAAQ,CAAC,WAAW,GAAG,CAAC,GAAG,QAA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AAI,GAAG,IAAA,kBAAK,EAAC;YACjB,cAAc,CAAC,CAAC,mBAAmB,CAAC,CAAC;YACrC,iBAAiB,CAAC;gBAChB,WAAW,EAAE,OAAO,CAAC,WAAW;gBAChC,YAAY,EAAE;oBACZ,GAAG,YAAY;oBACf,GAAG,eAAe;iBACnB;gBACD,UAAU,EAAE,QAAQ,CAAC,WAAW;aACjC,CAAC;YACF,mCAAmC,CAAC,WAAW,CAAC;YAChD,GAAG,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,IAAA,8BAAgB,EAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YACrE,MAAM,IAAA,wCAAgB,EAAC,OAAO,CAAC;SAChC,CAAC,CAAC;QAEH,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,QAAQ,CAAC,WAAY,+BAA+B,CAAC,CAAC;QACzF,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,wJAAwJ,CAAC,CAAC;QAE9K,OAAO,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACnC,CAAC,CAAC;AACJ,CAAC;AAED;;;GAGG;AACI,MAAM,KAAK,GAAG,CAAC,OAA8B,EAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;IACrF,MAAM,EAAE,qCAAqC,EAAE,GAAG,MAAM,0DAAO,iBAAiB,IAAE,KAAK,CAAC,0BAA0B,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5H,OAAO,qCAAqC,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;AACjE,CAAC,CAAC;AAHW,QAAA,KAAK,SAGhB"}
@@ -4,5 +4,7 @@ export interface NgAddSchematicsSchema extends SchematicOptionObject {
4
4
  projectName?: string | undefined;
5
5
  /** Activate metadata extraction */
6
6
  enableMetadataExtract: boolean;
7
+ /** Use a pinned version for otter packages */
8
+ exactO3rVersion?: boolean;
7
9
  }
8
10
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D,MAAM,WAAW,qBAAsB,SAAQ,qBAAqB;IAClE,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEjC,mCAAmC;IACnC,qBAAqB,EAAE,OAAO,CAAC;CAChC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D,MAAM,WAAW,qBAAsB,SAAQ,qBAAqB;IAClE,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEjC,mCAAmC;IACnC,qBAAqB,EAAE,OAAO,CAAC;IAE/B,8CAA8C;IAC9C,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B"}
@@ -15,6 +15,11 @@
15
15
  "type": "boolean",
16
16
  "default": false,
17
17
  "description": "Activate metadata extraction"
18
+ },
19
+ "exactO3rVersion": {
20
+ "type": "boolean",
21
+ "description": "Use a pinned version for otter packages",
22
+ "default": false
18
23
  }
19
24
  },
20
25
  "additionalProperties": true,
@@ -0,0 +1,6 @@
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ /**
3
+ * Update of Otter library V10.0
4
+ */
5
+ export declare const updateV10_0: (options: unknown) => Rule;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/ng-update/v10-0/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAgEvF;;GAEG;AACH,eAAO,MAAM,WAAW,4BAAuD,CAAC"}
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateV10_0 = void 0;
4
+ /* eslint-disable camelcase, @typescript-eslint/naming-convention */
5
+ const schematics_1 = require("@angular-devkit/schematics");
6
+ const schematics_2 = require("@o3r/schematics");
7
+ const pipeReplacementInfo = {
8
+ capitalize: {
9
+ new: {
10
+ name: 'o3rCapitalize',
11
+ import: 'O3rCapitalizePipe'
12
+ },
13
+ import: 'CapitalizePipeModule'
14
+ },
15
+ duration: {
16
+ new: {
17
+ name: 'o3rDuration',
18
+ import: 'O3rDurationPipe'
19
+ },
20
+ import: 'DurationPipeModule'
21
+ },
22
+ keepWhiteSpace: {
23
+ new: {
24
+ name: 'o3rKeepWhiteSpace',
25
+ import: 'O3rKeepWhiteSpacePipe'
26
+ },
27
+ import: 'KeepWhiteSpacePipeModule'
28
+ },
29
+ replaceWithBold: {
30
+ new: {
31
+ name: 'o3rReplaceWithBold',
32
+ import: 'O3rReplaceWithBoldPipe'
33
+ },
34
+ import: 'ReplaceWithBoldPipeModule'
35
+ }
36
+ };
37
+ const c11nPresenterDeclarationRegExp = /(presenter\$!?\s*:\s*Observable)<(.*)>/g;
38
+ const updateC11nPresenterDeclaration = (tree) => {
39
+ const files = (0, schematics_2.findFilesInTree)(tree.getDir('/'), (filePath) => /\.component.ts$/.test(filePath));
40
+ return (0, schematics_1.chain)(files.map((file) => c11nPresenterDeclarationRegExp.test(file.content.toString())
41
+ ? (0, schematics_1.chain)([
42
+ () => tree.overwrite(file.path, file.content.toString().replace(c11nPresenterDeclarationRegExp, '$1<Type<$2>>')),
43
+ (0, schematics_2.addImportsRule)(file.path, [{ from: '@angular/core', importNames: ['Type'] }])
44
+ ])
45
+ : (0, schematics_1.noop)()));
46
+ };
47
+ /**
48
+ * Update of Otter library V10.0
49
+ */
50
+ function updateV10_0Fn() {
51
+ return (tree, context) => {
52
+ const updateRules = [
53
+ (0, schematics_2.updatePipes)(pipeReplacementInfo),
54
+ updateC11nPresenterDeclaration
55
+ ];
56
+ return (0, schematics_1.chain)(updateRules)(tree, context);
57
+ };
58
+ }
59
+ /**
60
+ * Update of Otter library V10.0
61
+ */
62
+ exports.updateV10_0 = (0, schematics_2.createSchematicWithMetricsIfInstalled)(updateV10_0Fn);
63
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../schematics/ng-update/v10-0/index.ts"],"names":[],"mappings":";;;AAAA,oEAAoE;AACpE,2DAAuF;AACvF,gDAA2I;AAE3I,MAAM,mBAAmB,GAAwB;IAC/C,UAAU,EAAE;QACV,GAAG,EAAE;YACH,IAAI,EAAE,eAAe;YACrB,MAAM,EAAE,mBAAmB;SAC5B;QACD,MAAM,EAAE,sBAAsB;KAC/B;IACD,QAAQ,EAAE;QACR,GAAG,EAAE;YACH,IAAI,EAAE,aAAa;YACnB,MAAM,EAAE,iBAAiB;SAC1B;QACD,MAAM,EAAE,oBAAoB;KAC7B;IACD,cAAc,EAAE;QACd,GAAG,EAAE;YACH,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,uBAAuB;SAChC;QACD,MAAM,EAAE,0BAA0B;KACnC;IACD,eAAe,EAAE;QACf,GAAG,EAAE;YACH,IAAI,EAAE,oBAAoB;YAC1B,MAAM,EAAE,wBAAwB;SACjC;QACD,MAAM,EAAE,2BAA2B;KACpC;CACF,CAAC;AAEF,MAAM,8BAA8B,GAAG,yCAAyC,CAAC;AAEjF,MAAM,8BAA8B,GAAS,CAAC,IAAI,EAAE,EAAE;IACpD,MAAM,KAAK,GAAG,IAAA,4BAAe,EAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAChG,OAAO,IAAA,kBAAK,EACV,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,8BAA8B,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;QAC9E,CAAC,CAAC,IAAA,kBAAK,EAAC;YACN,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,8BAA8B,EAAE,cAAc,CAAC,CAAC;YAChH,IAAA,2BAAc,EAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;SAC9E,CAAC;QACF,CAAC,CAAC,IAAA,iBAAI,GAAE,CACT,CACF,CAAC;AACJ,CAAC,CAAC;AAEF;;GAEG;AACH,SAAS,aAAa;IACpB,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAE/C,MAAM,WAAW,GAAW;YAC1B,IAAA,wBAAW,EAAC,mBAAmB,CAAC;YAChC,8BAA8B;SAC/B,CAAC;QAEF,OAAO,IAAA,kBAAK,EAAC,WAAW,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC3C,CAAC,CAAC;AACJ,CAAC;AAED;;GAEG;AACU,QAAA,WAAW,GAAG,IAAA,kDAAqC,EAAC,aAAa,CAAC,CAAC"}
@@ -7,6 +7,7 @@ export interface PlaceholderVariable {
7
7
  type: 'fact' | 'fullUrl' | 'relativeUrl' | 'localisation';
8
8
  value: string;
9
9
  vars?: string[];
10
+ parameters?: Record<string, string>;
10
11
  path?: string;
11
12
  }
12
13
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"placeholder-request.state.d.ts","sourceRoot":"","sources":["../../../src/stores/placeholder-request/placeholder-request.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,aAAa,GAAG,cAAc,CAAC;IAC1D,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;CAC5C;AAED;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,cAAc,EAAE,uBAAuB;IACtF,+EAA+E;IAC/E,EAAE,EAAE,MAAM,CAAC;IACX,4EAA4E;IAC5E,WAAW,EAAE,MAAM,CAAC;IACpB,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,sCAAsC;IACtC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B,8IAA8I;IAC9I,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,8BAA+B,SAAQ,cAAc;CAAG;AAEzE;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,WAAW,CAAC,uBAAuB,CAAC,EAAE,8BAA8B;CACpH;AAED;;GAEG;AACH,eAAO,MAAM,8BAA8B,uBAAuB,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,+BAA+B;IAC/B,CAAC,8BAA8B,CAAC,EAAE,uBAAuB,CAAC;CAC3D"}
1
+ {"version":3,"file":"placeholder-request.state.d.ts","sourceRoot":"","sources":["../../../src/stores/placeholder-request/placeholder-request.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,aAAa,GAAG,cAAc,CAAC;IAC1D,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;CAC5C;AAED;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,cAAc,EAAE,uBAAuB;IACtF,+EAA+E;IAC/E,EAAE,EAAE,MAAM,CAAC;IACX,4EAA4E;IAC5E,WAAW,EAAE,MAAM,CAAC;IACpB,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,sCAAsC;IACtC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B,8IAA8I;IAC9I,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,8BAA+B,SAAQ,cAAc;CAAG;AAEzE;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,WAAW,CAAC,uBAAuB,CAAC,EAAE,8BAA8B;CACpH;AAED;;GAEG;AACH,eAAO,MAAM,8BAA8B,uBAAuB,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,+BAA+B;IAC/B,CAAC,8BAA8B,CAAC,EAAE,uBAAuB,CAAC;CAC3D"}
@@ -1,5 +1,5 @@
1
1
  import { SetEntityActionPayload } from '@o3r/core';
2
- import { PlaceholderTemplateModel } from './placeholder-template.state';
2
+ import { type PlaceholderMode, PlaceholderTemplateModel } from './placeholder-template.state';
3
3
  /** Action to delete a specific entity */
4
4
  export declare const deletePlaceholderTemplateEntity: import("@ngrx/store").ActionCreator<"[PlaceholderTemplate] delete entity", (props: {
5
5
  id: string;
@@ -8,4 +8,9 @@ export declare const deletePlaceholderTemplateEntity: import("@ngrx/store").Acti
8
8
  } & import("@ngrx/store/src/models").TypedAction<"[PlaceholderTemplate] delete entity">>;
9
9
  /** Action to clear all placeholderTemplate and fill the store with the payload */
10
10
  export declare const setPlaceholderTemplateEntity: import("@ngrx/store").ActionCreator<"[PlaceholderTemplate] set entity", (props: SetEntityActionPayload<PlaceholderTemplateModel>) => SetEntityActionPayload<PlaceholderTemplateModel> & import("@ngrx/store/src/models").TypedAction<"[PlaceholderTemplate] set entity">>;
11
+ export declare const togglePlaceholderModeTemplate: import("@ngrx/store").ActionCreator<"[PlaceholderTemplate] toggle mode", (props: {
12
+ mode: PlaceholderMode;
13
+ }) => {
14
+ mode: PlaceholderMode;
15
+ } & import("@ngrx/store/src/models").TypedAction<"[PlaceholderTemplate] toggle mode">>;
11
16
  //# sourceMappingURL=placeholder-template.actions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"placeholder-template.actions.d.ts","sourceRoot":"","sources":["../../../src/stores/placeholder-template/placeholder-template.actions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAC,MAAM,WAAW,CAAC;AAClD,OAAO,EAAC,wBAAwB,EAAC,MAAM,8BAA8B,CAAC;AAKtE,yCAAyC;AACzC,eAAO,MAAM,+BAA+B;QAAkD,MAAM;;QAAN,MAAM;wFAAM,CAAC;AAE3G,kFAAkF;AAClF,eAAO,MAAM,4BAA4B,2QAA6F,CAAC"}
1
+ {"version":3,"file":"placeholder-template.actions.d.ts","sourceRoot":"","sources":["../../../src/stores/placeholder-template/placeholder-template.actions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAC,MAAM,WAAW,CAAC;AAClD,OAAO,EAAC,KAAK,eAAe,EAAE,wBAAwB,EAAC,MAAM,8BAA8B,CAAC;AAM5F,yCAAyC;AACzC,eAAO,MAAM,+BAA+B;QAAkD,MAAM;;QAAN,MAAM;wFAAM,CAAC;AAE3G,kFAAkF;AAClF,eAAO,MAAM,4BAA4B,2QAA6F,CAAC;AAEvI,eAAO,MAAM,6BAA6B;UAAkD,eAAe;;UAAf,eAAe;sFAAM,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"placeholder-template.reducer.d.ts","sourceRoot":"","sources":["../../../src/stores/placeholder-template/placeholder-template.reducer.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAqB,YAAY,EAAC,MAAM,aAAa,CAAC;AAE3E,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,8BAA8B,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,0BAA0B,gEAErC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,+BAA+B,EAAE,wBAAuE,CAAC;AAEtH;;GAEG;AACH,eAAO,MAAM,kCAAkC,EAAE,YAAY,CAAC,wBAAwB,EAAE,aAAa,EAAE,CAAC,EAUvG,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,6FAGtC,CAAC"}
1
+ {"version":3,"file":"placeholder-template.reducer.d.ts","sourceRoot":"","sources":["../../../src/stores/placeholder-template/placeholder-template.reducer.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAqB,YAAY,EAAC,MAAM,aAAa,CAAC;AAE3E,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,8BAA8B,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,0BAA0B,gEAErC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,+BAA+B,EAAE,wBAE5C,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,kCAAkC,EAAE,YAAY,CAAC,wBAAwB,EAAE,aAAa,EAAE,CAAC,EAgBvG,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,6FAGtC,CAAC"}
@@ -61,4 +61,5 @@ export declare const selectPlaceholderRenderedTemplates: (placeholderId: string)
61
61
  orderedRenderedTemplates: (string | undefined)[] | undefined;
62
62
  isPending: boolean;
63
63
  } | undefined>;
64
+ export declare const selectPlaceholderTemplateMode: import("@ngrx/store").MemoizedSelector<object, import("./placeholder-template.state").PlaceholderMode, (s1: PlaceholderTemplateState) => import("./placeholder-template.state").PlaceholderMode>;
64
65
  //# 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;;;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
+ {"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;AAGL,eAAO,MAAM,6BAA6B,kMAAwE,CAAC"}
@@ -11,10 +11,13 @@ export interface PlaceholderTemplateModel {
11
11
  priority: number;
12
12
  }[];
13
13
  }
14
+ /** Possible placeholder mode */
15
+ export type PlaceholderMode = 'normal' | 'debug' | 'pending';
14
16
  /**
15
17
  * PlaceholderTemplate store state
16
18
  */
17
19
  export interface PlaceholderTemplateState extends EntityState<PlaceholderTemplateModel> {
20
+ mode: PlaceholderMode;
18
21
  }
19
22
  /**
20
23
  * Name of the PlaceholderTemplate Store
@@ -1 +1 @@
1
- {"version":3,"file":"placeholder-template.state.d.ts","sourceRoot":"","sources":["../../../src/stores/placeholder-template/placeholder-template.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,cAAc,CAAC;AAEzC;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,mCAAmC;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,4EAA4E;IAC5E,gBAAgB,EAAE;QAAE,MAAM,EAAC,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACzD;AAED;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,WAAW,CAAC,wBAAwB,CAAC;CACtF;AAED;;GAEG;AACH,eAAO,MAAM,+BAA+B,wBAAwB,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,gCAAgC;IAChC,CAAC,+BAA+B,CAAC,EAAE,wBAAwB,CAAC;CAC7D"}
1
+ {"version":3,"file":"placeholder-template.state.d.ts","sourceRoot":"","sources":["../../../src/stores/placeholder-template/placeholder-template.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,cAAc,CAAC;AAEzC;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,mCAAmC;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,4EAA4E;IAC5E,gBAAgB,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC1D;AAED,gCAAgC;AAChC,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;AAE7D;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,WAAW,CAAC,wBAAwB,CAAC;IACrF,IAAI,EAAE,eAAe,CAAC;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,+BAA+B,wBAAwB,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,gCAAgC;IAChC,CAAC,+BAA+B,CAAC,EAAE,wBAAwB,CAAC;CAC7D"}
@@ -1,13 +1,13 @@
1
- import { ComponentRef, Injector, KeyValueDiffers, OnChanges, OnDestroy, SimpleChanges, ViewContainerRef } from '@angular/core';
1
+ import { ComponentRef, Injector, KeyValueDiffers, OnChanges, OnDestroy, SimpleChanges, Type, ViewContainerRef } from '@angular/core';
2
2
  import { AbstractControl, FormControl } from '@angular/forms';
3
- import type { BaseContextOutput, Configuration, Context, ContextInput, DynamicConfigurable, Functionify } from '@o3r/core';
3
+ import type { BaseContextOutput, Configuration, Context, ContextInput, Functionify } from '@o3r/core';
4
4
  import * as i0 from "@angular/core";
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 {
5
+ export declare class C11nDirective<D extends Configuration = Configuration, I extends ContextInput = ContextInput, O extends BaseContextOutput = BaseContextOutput, T extends Context<I, O> = Context<I, O>> implements OnChanges, OnDestroy {
6
6
  viewContainerRef: ViewContainerRef;
7
7
  private readonly differsService;
8
8
  private readonly injector;
9
9
  /** The component information passed to the directive */
10
- component: T;
10
+ component: Type<T>;
11
11
  /** The information related to configuration */
12
12
  config?: D;
13
13
  /** Formcontrol */