@ihk-gfi/lux-components-update 11.13.0 → 13.0.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 (230) 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 -78
  10. package/src/add-lux-components/index.js.map +1 -1
  11. package/src/add-lux-components/index.ts +141 -66
  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 -88
  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
@@ -1,121 +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('update110300', () => {
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.3.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] update110300', () => {
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.update110300(testOptions), rxjs_1.of(appTree), context).subscribe(() => {
59
- expect(dependencies_1.getPackageJsonDependency(appTree, '@ihk-gfi/lux-components').version).toEqual('11.3.0');
60
- expect(dependencies_1.getPackageJsonDependency(appTree, '@ihk-gfi/lux-components-theme').version).toEqual('11.5.0');
61
- done();
62
- }, (reason) => expect(reason).toBeUndefined());
63
- });
64
- it('Sollte die Sprachdateien aktualisieren', (done) => {
65
- appTree.create('/src/locale/messages.xlf', `
66
- <?xml version="1.0" encoding="UTF-8" ?>
67
- <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
68
- <file source-language="de" datatype="plaintext" original="ng2.template">
69
- <body>
70
- <trans-unit id="luxc.datepicker.error_message.empty" datatype="html">
71
- <source>Das Datum darf nicht leer sein</source>
72
- <context-group purpose="location">
73
- <context context-type="sourcefile">src/app/modules/lux-form/lux-datepicker/lux-datepicker.component.ts</context>
74
- <context context-type="linenumber">141</context>
75
- </context-group>
76
- </trans-unit>
77
- </body>
78
- </file>
79
- </xliff>
80
- `);
81
- appTree.create('/src/locale/messages.en.xlf', `
82
- <?xml version="1.0" encoding="UTF-8" ?>
83
- <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
84
- <file source-language="de" datatype="plaintext" original="ng2.template">
85
- <body>
86
- <trans-unit id="luxc.datepicker.error_message.empty" datatype="html">
87
- <source>Das Datum darf nicht leer sein</source>
88
- <target>The date should not be empty</target>
89
- <context-group purpose="location">
90
- <context context-type="sourcefile">src/app/modules/lux-form/lux-datepicker/lux-datetimepicker.component.ts</context>
91
- <context context-type="linenumber">141</context>
92
- </context-group>
93
- </trans-unit>
94
- </body>
95
- </file>
96
- </xliff>
97
- `);
98
- schematics_1.callRule(index_1.update110300(testOptions), rxjs_1.of(appTree), context).subscribe((success) => {
99
- var _a, _b;
100
- const contentDe = (_a = success.read('/src/locale/messages.xlf')) === null || _a === void 0 ? void 0 : _a.toString();
101
- const contentEn = (_b = success.read('/src/locale/messages.en.xlf')) === null || _b === void 0 ? void 0 : _b.toString();
102
- expect(contentDe).toContain('<trans-unit id="luxc.datetimepicker.invalid.date" datatype="html">');
103
- expect(contentDe).toContain('<trans-unit id="luxc.datetimepicker.invalid.time" datatype="html">');
104
- expect(contentDe).toContain('<trans-unit id="luxc.datetimepicker.error_message.min" datatype="html">');
105
- expect(contentDe).toContain('<trans-unit id="luxc.datetimepicker.error_message.max" datatype="html">');
106
- expect(contentDe).toContain('<trans-unit id="luxc.datetimepicker.error_message.invalid" datatype="html">');
107
- expect(contentDe).toContain('<trans-unit id="luxc.datetimepicker.error_message.empty" datatype="html">');
108
- expect(contentDe).toContain('<trans-unit id="luxc.datepicker.error_message.empty" datatype="html">');
109
- expect(contentEn).toContain('<trans-unit id="luxc.datetimepicker.invalid.date" datatype="html">');
110
- expect(contentEn).toContain('<trans-unit id="luxc.datetimepicker.invalid.time" datatype="html">');
111
- expect(contentEn).toContain('<trans-unit id="luxc.datetimepicker.error_message.min" datatype="html">');
112
- expect(contentEn).toContain('<trans-unit id="luxc.datetimepicker.error_message.max" datatype="html">');
113
- expect(contentEn).toContain('<trans-unit id="luxc.datetimepicker.error_message.invalid" datatype="html">');
114
- expect(contentEn).toContain('<trans-unit id="luxc.datetimepicker.error_message.empty" datatype="html">');
115
- expect(contentEn).toContain('<trans-unit id="luxc.datepicker.error_message.empty" datatype="html">');
116
- done();
117
- }, (reason) => expect(reason).toBeUndefined());
118
- });
119
- });
120
- });
121
- //# 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;QACnH,OAAO,GAAG,MAAM,MAAM;aACnB,yBAAyB,CAA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,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,yEAAyE,CAAC,CAAC;gBACvG,MAAM,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,yEAAyE,CAAC,CAAC;gBACvG,MAAM,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,6EAA6E,CAAC,CAAC;gBAC3G,MAAM,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,2EAA2E,CAAC,CAAC;gBACzG,MAAM,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,uEAAuE,CAAC,CAAC;gBAErG,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,139 +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 { update110300 } from './index';
9
-
10
- const collectionPath = path.join(__dirname, '../collection.json');
11
-
12
- describe('update110300', () => {
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.3.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] update110300', () => {
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(update110300(testOptions), observableOf(appTree), context).subscribe(
61
- () => {
62
- expect(getPackageJsonDependency(appTree, '@ihk-gfi/lux-components').version).toEqual('11.3.0');
63
- expect(getPackageJsonDependency(appTree, '@ihk-gfi/lux-components-theme').version).toEqual('11.5.0');
64
- done();
65
- },
66
- (reason) => expect(reason).toBeUndefined()
67
- );
68
- });
69
-
70
- it('Sollte die Sprachdateien aktualisieren', (done) => {
71
- appTree.create(
72
- '/src/locale/messages.xlf',
73
- `
74
- <?xml version="1.0" encoding="UTF-8" ?>
75
- <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
76
- <file source-language="de" datatype="plaintext" original="ng2.template">
77
- <body>
78
- <trans-unit id="luxc.datepicker.error_message.empty" datatype="html">
79
- <source>Das Datum darf nicht leer sein</source>
80
- <context-group purpose="location">
81
- <context context-type="sourcefile">src/app/modules/lux-form/lux-datepicker/lux-datepicker.component.ts</context>
82
- <context context-type="linenumber">141</context>
83
- </context-group>
84
- </trans-unit>
85
- </body>
86
- </file>
87
- </xliff>
88
- `
89
- );
90
-
91
- appTree.create(
92
- '/src/locale/messages.en.xlf',
93
- `
94
- <?xml version="1.0" encoding="UTF-8" ?>
95
- <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
96
- <file source-language="de" datatype="plaintext" original="ng2.template">
97
- <body>
98
- <trans-unit id="luxc.datepicker.error_message.empty" datatype="html">
99
- <source>Das Datum darf nicht leer sein</source>
100
- <target>The date should not be empty</target>
101
- <context-group purpose="location">
102
- <context context-type="sourcefile">src/app/modules/lux-form/lux-datepicker/lux-datetimepicker.component.ts</context>
103
- <context context-type="linenumber">141</context>
104
- </context-group>
105
- </trans-unit>
106
- </body>
107
- </file>
108
- </xliff>
109
- `
110
- );
111
-
112
- callRule(update110300(testOptions), observableOf(appTree), context).subscribe(
113
- (success) => {
114
- const contentDe = success.read('/src/locale/messages.xlf')?.toString();
115
- const contentEn = success.read('/src/locale/messages.en.xlf')?.toString();
116
-
117
- expect(contentDe).toContain('<trans-unit id="luxc.datetimepicker.invalid.date" datatype="html">');
118
- expect(contentDe).toContain('<trans-unit id="luxc.datetimepicker.invalid.time" datatype="html">');
119
- expect(contentDe).toContain('<trans-unit id="luxc.datetimepicker.error_message.min" datatype="html">');
120
- expect(contentDe).toContain('<trans-unit id="luxc.datetimepicker.error_message.max" datatype="html">');
121
- expect(contentDe).toContain('<trans-unit id="luxc.datetimepicker.error_message.invalid" datatype="html">');
122
- expect(contentDe).toContain('<trans-unit id="luxc.datetimepicker.error_message.empty" datatype="html">');
123
- expect(contentDe).toContain('<trans-unit id="luxc.datepicker.error_message.empty" datatype="html">');
124
-
125
- expect(contentEn).toContain('<trans-unit id="luxc.datetimepicker.invalid.date" datatype="html">');
126
- expect(contentEn).toContain('<trans-unit id="luxc.datetimepicker.invalid.time" datatype="html">');
127
- expect(contentEn).toContain('<trans-unit id="luxc.datetimepicker.error_message.min" datatype="html">');
128
- expect(contentEn).toContain('<trans-unit id="luxc.datetimepicker.error_message.max" datatype="html">');
129
- expect(contentEn).toContain('<trans-unit id="luxc.datetimepicker.error_message.invalid" datatype="html">');
130
- expect(contentEn).toContain('<trans-unit id="luxc.datetimepicker.error_message.empty" datatype="html">');
131
- expect(contentEn).toContain('<trans-unit id="luxc.datepicker.error_message.empty" datatype="html">');
132
-
133
- done();
134
- },
135
- (reason) => expect(reason).toBeUndefined()
136
- );
137
- });
138
- });
139
- });
@@ -1,23 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "id": "luxUpdate110300Schema",
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 update110400(options: any): Rule;
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.update110400 = 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 update110400(options) {
9
- return (tree, context) => {
10
- return schematics_1.chain([
11
- util_1.messageInfoRule(`Die LUX-Components werden auf die Version 11.4.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.4.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.4.0');
22
- dependencies_1.updateDependency(tree, '@ihk-gfi/lux-components-theme', '11.6.1');
23
- return tree;
24
- };
25
- }
26
- }
27
- exports.update110400 = update110400;
28
- //# 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,kEAAkE,CAAC;YAEnF,sBAAe,CAAC,4CAA4C,CAAC;YAC7D,kBAAkB,EAAE;YACpB,yBAAkB,CAAC,2CAA2C,CAAC;YAE/D,yBAAkB,CAAC,gEAAgE,CAAC;YACpF,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,QAAQ,CAAC,CAAC;YAC5D,+BAAgB,CAAC,IAAI,EAAE,+BAA+B,EAAE,QAAQ,CAAC,CAAC;YAElE,OAAO,IAAI,CAAC;QACd,CAAC,CAAC;IACJ,CAAC;AACH,CAAC;AAtBD,oCAsBC"}
@@ -1,28 +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 update110400(options: any): Rule {
7
- return (tree: Tree, context: SchematicContext) => {
8
- return chain([
9
- messageInfoRule(`Die LUX-Components werden auf die Version 11.4.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.4.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.4.0');
23
- updateDependency(tree, '@ihk-gfi/lux-components-theme', '11.6.1');
24
-
25
- return tree;
26
- };
27
- }
28
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,66 +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('update110400', () => {
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.4.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] update110400', () => {
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.update110400(testOptions), rxjs_1.of(appTree), context).subscribe(() => {
59
- expect(dependencies_1.getPackageJsonDependency(appTree, '@ihk-gfi/lux-components').version).toEqual('11.4.0');
60
- expect(dependencies_1.getPackageJsonDependency(appTree, '@ihk-gfi/lux-components-theme').version).toEqual('11.6.1');
61
- done();
62
- }, (reason) => expect(reason).toBeUndefined());
63
- });
64
- });
65
- });
66
- //# 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;I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,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;gBAC/F,MAAM,CAAC,uCAAwB,CAAC,OAAO,EAAE,+BAA+B,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;gBACrG,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,70 +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 { update110400 } from './index';
9
-
10
- const collectionPath = path.join(__dirname, '../collection.json');
11
-
12
- describe('update110400', () => {
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.4.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] update110400', () => {
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(update110400(testOptions), observableOf(appTree), context).subscribe(
61
- () => {
62
- expect(getPackageJsonDependency(appTree, '@ihk-gfi/lux-components').version).toEqual('11.4.0');
63
- expect(getPackageJsonDependency(appTree, '@ihk-gfi/lux-components-theme').version).toEqual('11.6.1');
64
- done();
65
- },
66
- (reason) => expect(reason).toBeUndefined()
67
- );
68
- });
69
- });
70
- });
@@ -1,23 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "id": "luxUpdate110400Schema",
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 update110500(options: any): Rule;
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.update110500 = 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 update110500(options) {
9
- return (tree, context) => {
10
- return schematics_1.chain([
11
- util_1.messageInfoRule(`Die LUX-Components werden auf die Version 11.5.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.5.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.5.0');
22
- dependencies_1.updateDependency(tree, '@ihk-gfi/lux-components-theme', '11.7.1');
23
- return tree;
24
- };
25
- }
26
- }
27
- exports.update110500 = update110500;
28
- //# 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,kEAAkE,CAAC;YAEnF,sBAAe,CAAC,4CAA4C,CAAC;YAC7D,kBAAkB,EAAE;YACpB,yBAAkB,CAAC,2CAA2C,CAAC;YAE/D,yBAAkB,CAAC,gEAAgE,CAAC;YACpF,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,QAAQ,CAAC,CAAC;YAC5D,+BAAgB,CAAC,IAAI,EAAE,+BAA+B,EAAE,QAAQ,CAAC,CAAC;YAElE,OAAO,IAAI,CAAC;QACd,CAAC,CAAC;IACJ,CAAC;AACH,CAAC;AAtBD,oCAsBC"}
@@ -1,28 +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 update110500(options: any): Rule {
7
- return (tree: Tree, context: SchematicContext) => {
8
- return chain([
9
- messageInfoRule(`Die LUX-Components werden auf die Version 11.5.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.5.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.5.0');
23
- updateDependency(tree, '@ihk-gfi/lux-components-theme', '11.7.1');
24
-
25
- return tree;
26
- };
27
- }
28
- }
@@ -1 +0,0 @@
1
- export {};