@ihk-gfi/lux-components-update 11.14.0 → 13.0.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 (239) hide show
  1. package/README.md +2 -4
  2. package/package.json +14 -17
  3. package/src/add-lux-components/files/app/app.component.html +1 -1
  4. package/src/add-lux-components/files/app/app.component.ts +4 -1
  5. package/src/add-lux-components/files/locale/messages.en.xlf +489 -235
  6. package/src/add-lux-components/files/locale/messages.xlf +451 -218
  7. package/src/add-lux-components/files/scripts/.browserslistrc +10 -7
  8. package/src/add-lux-components/files/src/index.html +31 -0
  9. package/src/add-lux-components/index.js +151 -84
  10. package/src/add-lux-components/index.js.map +1 -1
  11. package/src/add-lux-components/index.ts +141 -72
  12. package/src/add-lux-components/index_spec.js +4 -4
  13. package/src/add-lux-components/index_spec.js.map +1 -1
  14. package/src/add-lux-components/index_spec.ts +1 -1
  15. package/src/add-lux-components/schema.json +1 -1
  16. package/src/collection.json +8 -93
  17. package/src/update-dependencies/index.d.ts +1 -1
  18. package/src/update-dependencies/index.js +82 -65
  19. package/src/update-dependencies/index.js.map +1 -1
  20. package/src/update-dependencies/index.ts +112 -95
  21. package/src/update-dependencies/schema.json +1 -1
  22. package/src/update-en-messages/index.d.ts +2 -0
  23. package/src/update-en-messages/index.js +75 -0
  24. package/src/update-en-messages/index.js.map +1 -0
  25. package/src/update-en-messages/index.ts +78 -0
  26. package/src/{update110100 → update-en-messages}/schema.json +3 -3
  27. package/src/updates/update130000/files/root/.browserslistrc +20 -0
  28. package/src/updates/update130000/index.d.ts +27 -0
  29. package/src/updates/update130000/index.js +296 -0
  30. package/src/updates/update130000/index.js.map +1 -0
  31. package/src/updates/update130000/index.ts +346 -0
  32. package/src/{migrate-to-eslint → updates/update130000}/index_spec.d.ts +0 -0
  33. package/src/updates/update130000/index_spec.js +574 -0
  34. package/src/updates/update130000/index_spec.js.map +1 -0
  35. package/src/updates/update130000/index_spec.ts +665 -0
  36. package/src/{update → updates/update130000}/schema.json +1 -1
  37. package/src/utility/dependencies.js +16 -14
  38. package/src/utility/dependencies.js.map +1 -1
  39. package/src/utility/dependencies.ts +6 -4
  40. package/src/utility/files.d.ts +5 -1
  41. package/src/utility/files.js +27 -16
  42. package/src/utility/files.js.map +1 -1
  43. package/src/utility/files.ts +16 -3
  44. package/src/utility/html.js +88 -25
  45. package/src/utility/html.js.map +1 -1
  46. package/src/utility/html.ts +105 -29
  47. package/src/{migrate-to-webcomponent/index_spec.d.ts → utility/html_spec.d.ts} +0 -0
  48. package/src/utility/html_spec.js +560 -0
  49. package/src/utility/html_spec.js.map +1 -0
  50. package/src/utility/html_spec.ts +575 -0
  51. package/src/utility/json.d.ts +46 -1
  52. package/src/utility/json.js +174 -4
  53. package/src/utility/json.js.map +1 -1
  54. package/src/utility/json.ts +198 -3
  55. package/src/{update/index_spec.d.ts → utility/json_spec.d.ts} +0 -0
  56. package/src/utility/json_spec.js +326 -0
  57. package/src/utility/json_spec.js.map +1 -0
  58. package/src/utility/json_spec.ts +376 -0
  59. package/src/utility/typescript.js +16 -16
  60. package/src/utility/typescript.js.map +1 -1
  61. package/src/utility/typescript_spec.js +36 -36
  62. package/src/utility/typescript_spec.js.map +1 -1
  63. package/src/utility/util.d.ts +2 -2
  64. package/src/utility/util.js +16 -14
  65. package/src/utility/util.js.map +1 -1
  66. package/src/utility/util.ts +7 -5
  67. package/src/utility/validation.js +11 -11
  68. package/src/utility/validation.js.map +1 -1
  69. package/src/migrate-to-eslint/files/.eslintrc.json +0 -68
  70. package/src/migrate-to-eslint/files/.prettierrc +0 -25
  71. package/src/migrate-to-eslint/index.d.ts +0 -6
  72. package/src/migrate-to-eslint/index.js +0 -149
  73. package/src/migrate-to-eslint/index.js.map +0 -1
  74. package/src/migrate-to-eslint/index.ts +0 -181
  75. package/src/migrate-to-eslint/index_spec.js +0 -129
  76. package/src/migrate-to-eslint/index_spec.js.map +0 -1
  77. package/src/migrate-to-eslint/index_spec.ts +0 -152
  78. package/src/migrate-to-eslint/schema.json +0 -23
  79. package/src/migrate-to-webcomponent/index.d.ts +0 -10
  80. package/src/migrate-to-webcomponent/index.js +0 -278
  81. package/src/migrate-to-webcomponent/index.js.map +0 -1
  82. package/src/migrate-to-webcomponent/index.ts +0 -331
  83. package/src/migrate-to-webcomponent/index_spec.js +0 -580
  84. package/src/migrate-to-webcomponent/index_spec.js.map +0 -1
  85. package/src/migrate-to-webcomponent/index_spec.ts +0 -703
  86. package/src/migrate-to-webcomponent/schema.json +0 -23
  87. package/src/update/files/locale/messages.en.xlf +0 -940
  88. package/src/update/files/locale/messages.xlf +0 -815
  89. package/src/update/files/scripts/move-de-files.js +0 -15
  90. package/src/update/index.d.ts +0 -23
  91. package/src/update/index.js +0 -635
  92. package/src/update/index.js.map +0 -1
  93. package/src/update/index.ts +0 -712
  94. package/src/update/index_spec.js +0 -984
  95. package/src/update/index_spec.js.map +0 -1
  96. package/src/update/index_spec.ts +0 -1139
  97. package/src/update110001/index.d.ts +0 -2
  98. package/src/update110001/index.js +0 -42
  99. package/src/update110001/index.js.map +0 -1
  100. package/src/update110001/index.ts +0 -40
  101. package/src/update110001/index_spec.d.ts +0 -1
  102. package/src/update110001/index_spec.js +0 -67
  103. package/src/update110001/index_spec.js.map +0 -1
  104. package/src/update110001/index_spec.ts +0 -72
  105. package/src/update110001/schema.json +0 -23
  106. package/src/update110100/index.d.ts +0 -2
  107. package/src/update110100/index.js +0 -27
  108. package/src/update110100/index.js.map +0 -1
  109. package/src/update110100/index.ts +0 -24
  110. package/src/update110100/index_spec.d.ts +0 -1
  111. package/src/update110100/index_spec.js +0 -69
  112. package/src/update110100/index_spec.js.map +0 -1
  113. package/src/update110100/index_spec.ts +0 -73
  114. package/src/update110101/index.d.ts +0 -2
  115. package/src/update110101/index.js +0 -24
  116. package/src/update110101/index.js.map +0 -1
  117. package/src/update110101/index.ts +0 -21
  118. package/src/update110101/index_spec.d.ts +0 -1
  119. package/src/update110101/index_spec.js +0 -65
  120. package/src/update110101/index_spec.js.map +0 -1
  121. package/src/update110101/index_spec.ts +0 -69
  122. package/src/update110101/schema.json +0 -23
  123. package/src/update110200/index.d.ts +0 -2
  124. package/src/update110200/index.js +0 -24
  125. package/src/update110200/index.js.map +0 -1
  126. package/src/update110200/index.ts +0 -21
  127. package/src/update110200/index_spec.d.ts +0 -1
  128. package/src/update110200/index_spec.js +0 -65
  129. package/src/update110200/index_spec.js.map +0 -1
  130. package/src/update110200/index_spec.ts +0 -69
  131. package/src/update110200/schema.json +0 -23
  132. package/src/update110300/index.d.ts +0 -2
  133. package/src/update110300/index.js +0 -133
  134. package/src/update110300/index.js.map +0 -1
  135. package/src/update110300/index.ts +0 -148
  136. package/src/update110300/index_spec.d.ts +0 -1
  137. package/src/update110300/index_spec.js +0 -121
  138. package/src/update110300/index_spec.js.map +0 -1
  139. package/src/update110300/index_spec.ts +0 -139
  140. package/src/update110300/schema.json +0 -23
  141. package/src/update110400/index.d.ts +0 -2
  142. package/src/update110400/index.js +0 -28
  143. package/src/update110400/index.js.map +0 -1
  144. package/src/update110400/index.ts +0 -28
  145. package/src/update110400/index_spec.d.ts +0 -1
  146. package/src/update110400/index_spec.js +0 -66
  147. package/src/update110400/index_spec.js.map +0 -1
  148. package/src/update110400/index_spec.ts +0 -70
  149. package/src/update110400/schema.json +0 -23
  150. package/src/update110500/index.d.ts +0 -2
  151. package/src/update110500/index.js +0 -28
  152. package/src/update110500/index.js.map +0 -1
  153. package/src/update110500/index.ts +0 -28
  154. package/src/update110500/index_spec.d.ts +0 -1
  155. package/src/update110500/index_spec.js +0 -66
  156. package/src/update110500/index_spec.js.map +0 -1
  157. package/src/update110500/index_spec.ts +0 -70
  158. package/src/update110500/schema.json +0 -23
  159. package/src/update110600/index.d.ts +0 -2
  160. package/src/update110600/index.js +0 -28
  161. package/src/update110600/index.js.map +0 -1
  162. package/src/update110600/index.ts +0 -28
  163. package/src/update110600/index_spec.d.ts +0 -1
  164. package/src/update110600/index_spec.js +0 -66
  165. package/src/update110600/index_spec.js.map +0 -1
  166. package/src/update110600/index_spec.ts +0 -70
  167. package/src/update110600/schema.json +0 -23
  168. package/src/update110700/index.d.ts +0 -2
  169. package/src/update110700/index.js +0 -45
  170. package/src/update110700/index.js.map +0 -1
  171. package/src/update110700/index.ts +0 -47
  172. package/src/update110700/index_spec.d.ts +0 -1
  173. package/src/update110700/index_spec.js +0 -108
  174. package/src/update110700/index_spec.js.map +0 -1
  175. package/src/update110700/index_spec.ts +0 -122
  176. package/src/update110700/schema.json +0 -23
  177. package/src/update110800/index.d.ts +0 -2
  178. package/src/update110800/index.js +0 -32
  179. package/src/update110800/index.js.map +0 -1
  180. package/src/update110800/index.ts +0 -33
  181. package/src/update110800/index_spec.d.ts +0 -1
  182. package/src/update110800/index_spec.js +0 -70
  183. package/src/update110800/index_spec.js.map +0 -1
  184. package/src/update110800/index_spec.ts +0 -75
  185. package/src/update110800/schema.json +0 -23
  186. package/src/update110900/index.d.ts +0 -4
  187. package/src/update110900/index.js +0 -111
  188. package/src/update110900/index.js.map +0 -1
  189. package/src/update110900/index.ts +0 -123
  190. package/src/update110900/index_spec.d.ts +0 -1
  191. package/src/update110900/index_spec.js +0 -311
  192. package/src/update110900/index_spec.js.map +0 -1
  193. package/src/update110900/index_spec.ts +0 -341
  194. package/src/update110900/schema.json +0 -23
  195. package/src/update111000/index.d.ts +0 -2
  196. package/src/update111000/index.js +0 -27
  197. package/src/update111000/index.js.map +0 -1
  198. package/src/update111000/index.ts +0 -27
  199. package/src/update111000/index_spec.d.ts +0 -1
  200. package/src/update111000/index_spec.js +0 -65
  201. package/src/update111000/index_spec.js.map +0 -1
  202. package/src/update111000/index_spec.ts +0 -70
  203. package/src/update111000/schema.json +0 -23
  204. package/src/update111100/index.d.ts +0 -2
  205. package/src/update111100/index.js +0 -389
  206. package/src/update111100/index.js.map +0 -1
  207. package/src/update111100/index.ts +0 -405
  208. package/src/update111100/index_spec.d.ts +0 -1
  209. package/src/update111100/index_spec.js +0 -66
  210. package/src/update111100/index_spec.js.map +0 -1
  211. package/src/update111100/index_spec.ts +0 -70
  212. package/src/update111100/schema.json +0 -23
  213. package/src/update111200/index.d.ts +0 -2
  214. package/src/update111200/index.js +0 -59
  215. package/src/update111200/index.js.map +0 -1
  216. package/src/update111200/index.ts +0 -75
  217. package/src/update111200/index_spec.d.ts +0 -1
  218. package/src/update111200/index_spec.js +0 -67
  219. package/src/update111200/index_spec.js.map +0 -1
  220. package/src/update111200/index_spec.ts +0 -71
  221. package/src/update111200/schema.json +0 -23
  222. package/src/update111300/index.d.ts +0 -2
  223. package/src/update111300/index.js +0 -27
  224. package/src/update111300/index.js.map +0 -1
  225. package/src/update111300/index.ts +0 -27
  226. package/src/update111300/index_spec.d.ts +0 -1
  227. package/src/update111300/index_spec.js +0 -65
  228. package/src/update111300/index_spec.js.map +0 -1
  229. package/src/update111300/index_spec.ts +0 -69
  230. package/src/update111300/schema.json +0 -23
  231. package/src/update111400/index.d.ts +0 -2
  232. package/src/update111400/index.js +0 -27
  233. package/src/update111400/index.js.map +0 -1
  234. package/src/update111400/index.ts +0 -27
  235. package/src/update111400/index_spec.d.ts +0 -1
  236. package/src/update111400/index_spec.js +0 -65
  237. package/src/update111400/index_spec.js.map +0 -1
  238. package/src/update111400/index_spec.ts +0 -69
  239. package/src/update111400/schema.json +0 -23
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,2DAAiF;AACjF,+BAA+B;AAC/B,0DAAgF;AAChF,0CAA8F;AAE9F,SAAgB,YAAY,CAAC,OAAY;IACvC,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC/C,OAAO,kBAAK,CAAC;YACX,sBAAe,CAAC,mEAAmE,CAAC;YAEpF,sBAAe,CAAC,4CAA4C,CAAC;YAC7D,kBAAkB,EAAE;YACpB,yBAAkB,CAAC,2CAA2C,CAAC;YAE/D,sBAAe,CAAC,0EAA0E,CAAC;YAC3F,UAAU,EAAE;YACZ,yBAAkB,CAAC,wEAAwE,CAAC;YAE5F,yBAAkB,CAAC,iEAAiE,CAAC;YACrF,aAAM,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,CAAC;SAC3C,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,SAAS,kBAAkB;QACzB,OAAO,CAAC,IAAU,EAAE,QAA0B,EAAE,EAAE;YAChD,+BAAgB,CAAC,IAAI,EAAE,yBAAyB,EAAE,SAAS,CAAC,CAAC;YAC7D,+BAAgB,CAAC,IAAI,EAAE,+BAA+B,EAAE,SAAS,CAAC,CAAC;YACnE,kCAAmB,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;YAE7C,OAAO,IAAI,CAAC;QACd,CAAC,CAAC;IACJ,CAAC;AACH,CAAC;AA3BD,oCA2BC;AAED,SAAS,UAAU;IACjB,OAAO,CAAC,IAAU,EAAE,QAA0B,EAAE,EAAE;QAChD,wBAAwB,CAAC,IAAI,CAAC,CAAC;QAE/B,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,wBAAwB,CAAC,IAAU;IAC1C,qBAAc,CACZ,IAAI,EACJ,IAAI,EACJ,mCAAmC,EACnC;;;;;;;;SAQK,CACN,CAAC;IAEF,qBAAc,CACZ,IAAI,EACJ,IAAI,EACJ,mCAAmC,EACnC;;;;;;;;;SASK,CACN,CAAC;AACJ,CAAC"}
@@ -1,75 +0,0 @@
1
- import { chain, Rule, SchematicContext, Tree } from '@angular-devkit/schematics';
2
- import * as chalk from 'chalk';
3
- import { updateDependency, updateDependencyDev } from '../utility/dependencies';
4
- import { finish, messageInfoRule, messageSuccessRule, updateI18nFile } from '../utility/util';
5
-
6
- export function update111200(options: any): Rule {
7
- return (tree: Tree, context: SchematicContext) => {
8
- return chain([
9
- messageInfoRule(`Die LUX-Components werden auf die Version 11.12.0 aktualisiert...`),
10
-
11
- messageInfoRule(`Die Datei "package.json" wird angepasst...`),
12
- updateDependencies(),
13
- messageSuccessRule(`Die Datei "package.json" wurde angepasst.`),
14
-
15
- messageInfoRule(`Die Sprachdateien werden um Einträge für die Chips-Komponente ergänzt...`),
16
- updateI18N(),
17
- messageSuccessRule(`Die Sprachdateien wurden um Einträge für die Chips-Komponente ergänzt.`),
18
-
19
- messageSuccessRule(`Die LUX-Components wurden auf die Version 11.12.0 aktualisiert.`),
20
- finish(`${chalk.yellowBright('Fertig!')}`)
21
- ]);
22
- };
23
-
24
- function updateDependencies() {
25
- return (tree: Tree, _context: SchematicContext) => {
26
- updateDependency(tree, '@ihk-gfi/lux-components', '11.12.0');
27
- updateDependency(tree, '@ihk-gfi/lux-components-theme', '11.13.0');
28
- updateDependencyDev(tree, 'karma', '6.3.17');
29
-
30
- return tree;
31
- };
32
- }
33
- }
34
-
35
- function updateI18N() {
36
- return (tree: Tree, _context: SchematicContext) => {
37
- addI18nForChipsComponent(tree);
38
-
39
- return tree;
40
- };
41
- }
42
-
43
- function addI18nForChipsComponent(tree: Tree) {
44
- updateI18nFile(
45
- tree,
46
- 'de',
47
- 'luxc.datepicker.error_message.min',
48
- `
49
- <trans-unit id="luxc.chips.input.placeholder.lbl" datatype="html">
50
- <source>eingeben oder auswählen</source>
51
- <context-group purpose="location">
52
- <context context-type="sourcefile">src/app/modules/lux-form/lux-chips/lux-chips.component.ts</context>
53
- <context context-type="linenumber">48</context>
54
- </context-group>
55
- </trans-unit>
56
- `
57
- );
58
-
59
- updateI18nFile(
60
- tree,
61
- 'en',
62
- 'luxc.datepicker.error_message.min',
63
- `
64
- <trans-unit id="luxc.chips.input.placeholder.lbl" datatype="html">
65
- <source>eingeben oder auswählen</source>
66
- <target>enter or select</target>
67
- <context-group purpose="location">
68
- <context context-type="sourcefile">src/app/modules/lux-form/lux-chips/lux-chips.component.ts</context>
69
- <context context-type="linenumber">48</context>
70
- </context-group>
71
- </trans-unit>
72
- `
73
- );
74
- }
75
-
@@ -1 +0,0 @@
1
- export {};
@@ -1,67 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const schematics_1 = require("@angular-devkit/schematics");
13
- const testing_1 = require("@angular-devkit/schematics/testing");
14
- const path = require("path");
15
- const rxjs_1 = require("rxjs");
16
- const dependencies_1 = require("../utility/dependencies");
17
- const test_1 = require("../utility/test");
18
- const util_1 = require("../utility/util");
19
- const index_1 = require("./index");
20
- const collectionPath = path.join(__dirname, '../collection.json');
21
- describe('update111200', () => {
22
- let appTree;
23
- let runner;
24
- let context;
25
- const testOptions = {};
26
- beforeEach(() => __awaiter(void 0, void 0, void 0, function* () {
27
- runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
28
- appTree = yield runner.runExternalSchematicAsync('@schematics/angular', 'workspace', test_1.workspaceOptions).toPromise();
29
- appTree = yield runner
30
- .runExternalSchematicAsync('@schematics/angular', 'application', test_1.appOptions, appTree)
31
- .toPromise();
32
- util_1.UtilConfig.defaultWaitMS = 0;
33
- const collection = runner.engine.createCollection(collectionPath);
34
- const schematic = runner.engine.createSchematic('update-11.12.0', collection);
35
- context = runner.engine.createContext(schematic);
36
- testOptions.project = test_1.appOptions.name;
37
- testOptions.path = test_1.workspaceOptions.newProjectRoot + '/' + test_1.appOptions.name;
38
- testOptions.verbose = true;
39
- }));
40
- describe('[Rule] update111200', () => {
41
- it('Sollte die Abhängigkeiten aktualisieren', (done) => {
42
- appTree.overwrite('/package.json', `
43
- {
44
- "name": "Lorem ipsum",
45
- "version": "0.0.32",
46
- "scripts": {
47
- "build": "tsc -p tsconfig.json",
48
- "test": "npm run build && jasmine src/**/*_spec.js"
49
- },
50
- "dependencies": {
51
- "@ihk-gfi/lux-components": "11.0.0",
52
- },
53
- "devDependencies": {
54
- "@angular-devkit/build-angular": "0.1102.10",
55
- }
56
- }
57
- `);
58
- schematics_1.callRule(index_1.update111200(testOptions), rxjs_1.of(appTree), context).subscribe(() => {
59
- expect(dependencies_1.getPackageJsonDependency(appTree, '@ihk-gfi/lux-components').version).toEqual('11.12.0');
60
- expect(dependencies_1.getPackageJsonDependency(appTree, '@ihk-gfi/lux-components-theme').version).toEqual('11.13.0');
61
- expect(dependencies_1.getPackageJsonDependency(appTree, 'karma').version).toEqual('6.3.17');
62
- done();
63
- }, (reason) => expect(reason).toBeUndefined());
64
- });
65
- });
66
- });
67
- //# sourceMappingURL=index_spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index_spec.js","sourceRoot":"","sources":["index_spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2DAAwE;AACxE,gEAAuF;AACvF,6BAA6B;AAC7B,+BAA0C;AAC1C,0DAAmE;AACnE,0CAA+D;AAC/D,0CAA6C;AAC7C,mCAAuC;AAEvC,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;AAElE,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,IAAI,OAAqB,CAAC;IAC1B,IAAI,MAA2B,CAAC;IAChC,IAAI,OAAyB,CAAC;IAE9B,MAAM,WAAW,GAAQ,EAAE,CAAC;IAE5B,UAAU,CAAC,GAAS,EAAE;QACpB,MAAM,GAAG,IAAI,6BAAmB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;QAE/D,OAAO,GAAG,MAAM,MAAM,CAAC,yBAAyB,CAAC,qBAAqB,EAAE,WAAW,EAAE,uBAAgB,CAAC,CAAC,SAAS,EAAE,CAAC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AC,OAAO,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;gBAC7E,IAAI,EAAE,CAAC;YACT,CAAC,EACD,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,aAAa,EAAE,CAC3C,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,71 +0,0 @@
1
- import { callRule, SchematicContext } from '@angular-devkit/schematics';
2
- import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
3
- import * as path from 'path';
4
- import { of as observableOf } from 'rxjs';
5
- import { getPackageJsonDependency } from '../utility/dependencies';
6
- import { appOptions, workspaceOptions } from '../utility/test';
7
- import { UtilConfig } from '../utility/util';
8
- import { update111200 } from './index';
9
-
10
- const collectionPath = path.join(__dirname, '../collection.json');
11
-
12
- describe('update111200', () => {
13
- let appTree: UnitTestTree;
14
- let runner: SchematicTestRunner;
15
- let context: SchematicContext;
16
-
17
- const testOptions: any = {};
18
-
19
- beforeEach(async () => {
20
- runner = new SchematicTestRunner('schematics', collectionPath);
21
-
22
- appTree = await runner.runExternalSchematicAsync('@schematics/angular', 'workspace', workspaceOptions).toPromise();
23
- appTree = await runner
24
- .runExternalSchematicAsync('@schematics/angular', 'application', appOptions, appTree)
25
- .toPromise();
26
-
27
- UtilConfig.defaultWaitMS = 0;
28
-
29
- const collection = runner.engine.createCollection(collectionPath);
30
- const schematic = runner.engine.createSchematic('update-11.12.0', collection);
31
- context = runner.engine.createContext(schematic);
32
-
33
- testOptions.project = appOptions.name;
34
- testOptions.path = workspaceOptions.newProjectRoot + '/' + appOptions.name;
35
- testOptions.verbose = true;
36
- });
37
-
38
- describe('[Rule] update111200', () => {
39
- it('Sollte die Abhängigkeiten aktualisieren', (done) => {
40
- appTree.overwrite(
41
- '/package.json',
42
- `
43
- {
44
- "name": "Lorem ipsum",
45
- "version": "0.0.32",
46
- "scripts": {
47
- "build": "tsc -p tsconfig.json",
48
- "test": "npm run build && jasmine src/**/*_spec.js"
49
- },
50
- "dependencies": {
51
- "@ihk-gfi/lux-components": "11.0.0",
52
- },
53
- "devDependencies": {
54
- "@angular-devkit/build-angular": "0.1102.10",
55
- }
56
- }
57
- `
58
- );
59
-
60
- callRule(update111200(testOptions), observableOf(appTree), context).subscribe(
61
- () => {
62
- expect(getPackageJsonDependency(appTree, '@ihk-gfi/lux-components').version).toEqual('11.12.0');
63
- expect(getPackageJsonDependency(appTree, '@ihk-gfi/lux-components-theme').version).toEqual('11.13.0');
64
- expect(getPackageJsonDependency(appTree, 'karma').version).toEqual('6.3.17');
65
- done();
66
- },
67
- (reason) => expect(reason).toBeUndefined()
68
- );
69
- });
70
- });
71
- });
@@ -1,23 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "id": "luxUpdate111200Schema",
4
- "title": "Aktualisiert das LUX-Componentsprojekt",
5
- "type": "object",
6
- "description": "Aktualisiert das LUX-Componentsprojekt",
7
- "properties": {
8
- "project": {
9
- "type": "string",
10
- "description": "Der Projektname",
11
- "$default": {
12
- "$source": "projectName"
13
- }
14
- },
15
- "verbose": {
16
- "type": "boolean",
17
- "description": "Generiert mehr Logausgaben",
18
- "default": false
19
- }
20
- },
21
- "required": [],
22
- "additionalProperties": false
23
- }
@@ -1,2 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- export declare function update111300(options: any): Rule;
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.update111300 = void 0;
4
- const schematics_1 = require("@angular-devkit/schematics");
5
- const chalk = require("chalk");
6
- const dependencies_1 = require("../utility/dependencies");
7
- const util_1 = require("../utility/util");
8
- function update111300(options) {
9
- return (tree, context) => {
10
- return schematics_1.chain([
11
- util_1.messageInfoRule(`Die LUX-Components werden auf die Version 11.13.0 aktualisiert...`),
12
- util_1.messageInfoRule(`Die Datei "package.json" wird angepasst...`),
13
- updateDependencies(),
14
- util_1.messageSuccessRule(`Die Datei "package.json" wurde angepasst.`),
15
- util_1.messageSuccessRule(`Die LUX-Components wurden auf die Version 11.13.0 aktualisiert.`),
16
- util_1.finish(`${chalk.yellowBright('Fertig!')}`)
17
- ]);
18
- };
19
- function updateDependencies() {
20
- return (tree, _context) => {
21
- dependencies_1.updateDependency(tree, '@ihk-gfi/lux-components', '11.13.0');
22
- return tree;
23
- };
24
- }
25
- }
26
- exports.update111300 = update111300;
27
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,2DAAiF;AACjF,+BAA+B;AAC/B,0DAA2D;AAC3D,0CAA8E;AAE9E,SAAgB,YAAY,CAAC,OAAY;IACvC,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC/C,OAAO,kBAAK,CAAC;YACX,sBAAe,CAAC,mEAAmE,CAAC;YAEpF,sBAAe,CAAC,4CAA4C,CAAC;YAC7D,kBAAkB,EAAE;YACpB,yBAAkB,CAAC,2CAA2C,CAAC;YAE/D,yBAAkB,CAAC,iEAAiE,CAAC;YACrF,aAAM,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,CAAC;SAC3C,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,SAAS,kBAAkB;QACzB,OAAO,CAAC,IAAU,EAAE,QAA0B,EAAE,EAAE;YAChD,+BAAgB,CAAC,IAAI,EAAE,yBAAyB,EAAE,SAAS,CAAC,CAAC;YAE7D,OAAO,IAAI,CAAC;QACd,CAAC,CAAC;IACJ,CAAC;AACH,CAAC;AArBD,oCAqBC"}
@@ -1,27 +0,0 @@
1
- import { chain, Rule, SchematicContext, Tree } from '@angular-devkit/schematics';
2
- import * as chalk from 'chalk';
3
- import { updateDependency } from '../utility/dependencies';
4
- import { finish, messageInfoRule, messageSuccessRule } from '../utility/util';
5
-
6
- export function update111300(options: any): Rule {
7
- return (tree: Tree, context: SchematicContext) => {
8
- return chain([
9
- messageInfoRule(`Die LUX-Components werden auf die Version 11.13.0 aktualisiert...`),
10
-
11
- messageInfoRule(`Die Datei "package.json" wird angepasst...`),
12
- updateDependencies(),
13
- messageSuccessRule(`Die Datei "package.json" wurde angepasst.`),
14
-
15
- messageSuccessRule(`Die LUX-Components wurden auf die Version 11.13.0 aktualisiert.`),
16
- finish(`${chalk.yellowBright('Fertig!')}`)
17
- ]);
18
- };
19
-
20
- function updateDependencies() {
21
- return (tree: Tree, _context: SchematicContext) => {
22
- updateDependency(tree, '@ihk-gfi/lux-components', '11.13.0');
23
-
24
- return tree;
25
- };
26
- }
27
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,65 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const schematics_1 = require("@angular-devkit/schematics");
13
- const testing_1 = require("@angular-devkit/schematics/testing");
14
- const path = require("path");
15
- const rxjs_1 = require("rxjs");
16
- const dependencies_1 = require("../utility/dependencies");
17
- const test_1 = require("../utility/test");
18
- const util_1 = require("../utility/util");
19
- const index_1 = require("./index");
20
- const collectionPath = path.join(__dirname, '../collection.json');
21
- describe('update111300', () => {
22
- let appTree;
23
- let runner;
24
- let context;
25
- const testOptions = {};
26
- beforeEach(() => __awaiter(void 0, void 0, void 0, function* () {
27
- runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
28
- appTree = yield runner.runExternalSchematicAsync('@schematics/angular', 'workspace', test_1.workspaceOptions).toPromise();
29
- appTree = yield runner
30
- .runExternalSchematicAsync('@schematics/angular', 'application', test_1.appOptions, appTree)
31
- .toPromise();
32
- util_1.UtilConfig.defaultWaitMS = 0;
33
- const collection = runner.engine.createCollection(collectionPath);
34
- const schematic = runner.engine.createSchematic('update-11.13.0', collection);
35
- context = runner.engine.createContext(schematic);
36
- testOptions.project = test_1.appOptions.name;
37
- testOptions.path = test_1.workspaceOptions.newProjectRoot + '/' + test_1.appOptions.name;
38
- testOptions.verbose = true;
39
- }));
40
- describe('[Rule] update111300', () => {
41
- it('Sollte die Abhängigkeiten aktualisieren', (done) => {
42
- appTree.overwrite('/package.json', `
43
- {
44
- "name": "Lorem ipsum",
45
- "version": "0.0.32",
46
- "scripts": {
47
- "build": "tsc -p tsconfig.json",
48
- "test": "npm run build && jasmine src/**/*_spec.js"
49
- },
50
- "dependencies": {
51
- "@ihk-gfi/lux-components": "11.0.0",
52
- },
53
- "devDependencies": {
54
- "@angular-devkit/build-angular": "0.1102.10",
55
- }
56
- }
57
- `);
58
- schematics_1.callRule(index_1.update111300(testOptions), rxjs_1.of(appTree), context).subscribe(() => {
59
- expect(dependencies_1.getPackageJsonDependency(appTree, '@ihk-gfi/lux-components').version).toEqual('11.13.0');
60
- done();
61
- }, (reason) => expect(reason).toBeUndefined());
62
- });
63
- });
64
- });
65
- //# sourceMappingURL=index_spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index_spec.js","sourceRoot":"","sources":["index_spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2DAAwE;AACxE,gEAAuF;AACvF,6BAA6B;AAC7B,+BAA0C;AAC1C,0DAAmE;AACnE,0CAA+D;AAC/D,0CAA6C;AAC7C,mCAAuC;AAEvC,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;AAElE,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,IAAI,OA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AC,SAAS,CAC3E,GAAG,EAAE;gBACH,MAAM,CAAC,uCAAwB,CAAC,OAAO,EAAE,yBAAyB,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;gBAChG,IAAI,EAAE,CAAC;YACT,CAAC,EACD,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,aAAa,EAAE,CAC3C,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,69 +0,0 @@
1
- import { callRule, SchematicContext } from '@angular-devkit/schematics';
2
- import { SchematicTestRunner, UnitTestTree } from '@angular-devkit/schematics/testing';
3
- import * as path from 'path';
4
- import { of as observableOf } from 'rxjs';
5
- import { getPackageJsonDependency } from '../utility/dependencies';
6
- import { appOptions, workspaceOptions } from '../utility/test';
7
- import { UtilConfig } from '../utility/util';
8
- import { update111300 } from './index';
9
-
10
- const collectionPath = path.join(__dirname, '../collection.json');
11
-
12
- describe('update111300', () => {
13
- let appTree: UnitTestTree;
14
- let runner: SchematicTestRunner;
15
- let context: SchematicContext;
16
-
17
- const testOptions: any = {};
18
-
19
- beforeEach(async () => {
20
- runner = new SchematicTestRunner('schematics', collectionPath);
21
-
22
- appTree = await runner.runExternalSchematicAsync('@schematics/angular', 'workspace', workspaceOptions).toPromise();
23
- appTree = await runner
24
- .runExternalSchematicAsync('@schematics/angular', 'application', appOptions, appTree)
25
- .toPromise();
26
-
27
- UtilConfig.defaultWaitMS = 0;
28
-
29
- const collection = runner.engine.createCollection(collectionPath);
30
- const schematic = runner.engine.createSchematic('update-11.13.0', collection);
31
- context = runner.engine.createContext(schematic);
32
-
33
- testOptions.project = appOptions.name;
34
- testOptions.path = workspaceOptions.newProjectRoot + '/' + appOptions.name;
35
- testOptions.verbose = true;
36
- });
37
-
38
- describe('[Rule] update111300', () => {
39
- it('Sollte die Abhängigkeiten aktualisieren', (done) => {
40
- appTree.overwrite(
41
- '/package.json',
42
- `
43
- {
44
- "name": "Lorem ipsum",
45
- "version": "0.0.32",
46
- "scripts": {
47
- "build": "tsc -p tsconfig.json",
48
- "test": "npm run build && jasmine src/**/*_spec.js"
49
- },
50
- "dependencies": {
51
- "@ihk-gfi/lux-components": "11.0.0",
52
- },
53
- "devDependencies": {
54
- "@angular-devkit/build-angular": "0.1102.10",
55
- }
56
- }
57
- `
58
- );
59
-
60
- callRule(update111300(testOptions), observableOf(appTree), context).subscribe(
61
- () => {
62
- expect(getPackageJsonDependency(appTree, '@ihk-gfi/lux-components').version).toEqual('11.13.0');
63
- done();
64
- },
65
- (reason) => expect(reason).toBeUndefined()
66
- );
67
- });
68
- });
69
- });
@@ -1,23 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "id": "luxUpdate111300Schema",
4
- "title": "Aktualisiert das LUX-Componentsprojekt",
5
- "type": "object",
6
- "description": "Aktualisiert das LUX-Componentsprojekt",
7
- "properties": {
8
- "project": {
9
- "type": "string",
10
- "description": "Der Projektname",
11
- "$default": {
12
- "$source": "projectName"
13
- }
14
- },
15
- "verbose": {
16
- "type": "boolean",
17
- "description": "Generiert mehr Logausgaben",
18
- "default": false
19
- }
20
- },
21
- "required": [],
22
- "additionalProperties": false
23
- }
@@ -1,2 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- export declare function update111400(options: any): Rule;
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.update111400 = void 0;
4
- const schematics_1 = require("@angular-devkit/schematics");
5
- const chalk = require("chalk");
6
- const dependencies_1 = require("../utility/dependencies");
7
- const util_1 = require("../utility/util");
8
- function update111400(options) {
9
- return (tree, context) => {
10
- return schematics_1.chain([
11
- util_1.messageInfoRule(`Die LUX-Components werden auf die Version 11.14.0 aktualisiert...`),
12
- util_1.messageInfoRule(`Die Datei "package.json" wird angepasst...`),
13
- updateDependencies(),
14
- util_1.messageSuccessRule(`Die Datei "package.json" wurde angepasst.`),
15
- util_1.messageSuccessRule(`Die LUX-Components wurden auf die Version 11.14.0 aktualisiert.`),
16
- util_1.finish(`${chalk.yellowBright('Fertig!')}`)
17
- ]);
18
- };
19
- function updateDependencies() {
20
- return (tree, _context) => {
21
- dependencies_1.updateDependency(tree, '@ihk-gfi/lux-components', '11.14.0');
22
- return tree;
23
- };
24
- }
25
- }
26
- exports.update111400 = update111400;
27
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,2DAAiF;AACjF,+BAA+B;AAC/B,0DAA2D;AAC3D,0CAA8E;AAE9E,SAAgB,YAAY,CAAC,OAAY;IACvC,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC/C,OAAO,kBAAK,CAAC;YACX,sBAAe,CAAC,mEAAmE,CAAC;YAEpF,sBAAe,CAAC,4CAA4C,CAAC;YAC7D,kBAAkB,EAAE;YACpB,yBAAkB,CAAC,2CAA2C,CAAC;YAE/D,yBAAkB,CAAC,iEAAiE,CAAC;YACrF,aAAM,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,CAAC;SAC3C,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,SAAS,kBAAkB;QACzB,OAAO,CAAC,IAAU,EAAE,QAA0B,EAAE,EAAE;YAChD,+BAAgB,CAAC,IAAI,EAAE,yBAAyB,EAAE,SAAS,CAAC,CAAC;YAE7D,OAAO,IAAI,CAAC;QACd,CAAC,CAAC;IACJ,CAAC;AACH,CAAC;AArBD,oCAqBC"}
@@ -1,27 +0,0 @@
1
- import { chain, Rule, SchematicContext, Tree } from '@angular-devkit/schematics';
2
- import * as chalk from 'chalk';
3
- import { updateDependency } from '../utility/dependencies';
4
- import { finish, messageInfoRule, messageSuccessRule } from '../utility/util';
5
-
6
- export function update111400(options: any): Rule {
7
- return (tree: Tree, context: SchematicContext) => {
8
- return chain([
9
- messageInfoRule(`Die LUX-Components werden auf die Version 11.14.0 aktualisiert...`),
10
-
11
- messageInfoRule(`Die Datei "package.json" wird angepasst...`),
12
- updateDependencies(),
13
- messageSuccessRule(`Die Datei "package.json" wurde angepasst.`),
14
-
15
- messageSuccessRule(`Die LUX-Components wurden auf die Version 11.14.0 aktualisiert.`),
16
- finish(`${chalk.yellowBright('Fertig!')}`)
17
- ]);
18
- };
19
-
20
- function updateDependencies() {
21
- return (tree: Tree, _context: SchematicContext) => {
22
- updateDependency(tree, '@ihk-gfi/lux-components', '11.14.0');
23
-
24
- return tree;
25
- };
26
- }
27
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,65 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const schematics_1 = require("@angular-devkit/schematics");
13
- const testing_1 = require("@angular-devkit/schematics/testing");
14
- const path = require("path");
15
- const rxjs_1 = require("rxjs");
16
- const dependencies_1 = require("../utility/dependencies");
17
- const test_1 = require("../utility/test");
18
- const util_1 = require("../utility/util");
19
- const index_1 = require("./index");
20
- const collectionPath = path.join(__dirname, '../collection.json');
21
- describe('update111400', () => {
22
- let appTree;
23
- let runner;
24
- let context;
25
- const testOptions = {};
26
- beforeEach(() => __awaiter(void 0, void 0, void 0, function* () {
27
- runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
28
- appTree = yield runner.runExternalSchematicAsync('@schematics/angular', 'workspace', test_1.workspaceOptions).toPromise();
29
- appTree = yield runner
30
- .runExternalSchematicAsync('@schematics/angular', 'application', test_1.appOptions, appTree)
31
- .toPromise();
32
- util_1.UtilConfig.defaultWaitMS = 0;
33
- const collection = runner.engine.createCollection(collectionPath);
34
- const schematic = runner.engine.createSchematic('update-11.14.0', collection);
35
- context = runner.engine.createContext(schematic);
36
- testOptions.project = test_1.appOptions.name;
37
- testOptions.path = test_1.workspaceOptions.newProjectRoot + '/' + test_1.appOptions.name;
38
- testOptions.verbose = true;
39
- }));
40
- describe('[Rule] update111400', () => {
41
- it('Sollte die Abhängigkeiten aktualisieren', (done) => {
42
- appTree.overwrite('/package.json', `
43
- {
44
- "name": "Lorem ipsum",
45
- "version": "0.0.32",
46
- "scripts": {
47
- "build": "tsc -p tsconfig.json",
48
- "test": "npm run build && jasmine src/**/*_spec.js"
49
- },
50
- "dependencies": {
51
- "@ihk-gfi/lux-components": "11.0.0",
52
- },
53
- "devDependencies": {
54
- "@angular-devkit/build-angular": "0.1102.10",
55
- }
56
- }
57
- `);
58
- schematics_1.callRule(index_1.update111400(testOptions), rxjs_1.of(appTree), context).subscribe(() => {
59
- expect(dependencies_1.getPackageJsonDependency(appTree, '@ihk-gfi/lux-components').version).toEqual('11.14.0');
60
- done();
61
- }, (reason) => expect(reason).toBeUndefined());
62
- });
63
- });
64
- });
65
- //# sourceMappingURL=index_spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index_spec.js","sourceRoot":"","sources":["index_spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2DAAwE;AACxE,gEAAuF;AACvF,6BAA6B;AAC7B,+BAA0C;AAC1C,0DAAmE;AACnE,0CAA+D;AAC/D,0CAA6C;AAC7C,mCAAuC;AAEvC,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;AAElE,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,IAAI,OAAqB,CAAC;IAC1B,IAAI,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