@ihk-gfi/lux-components-update 11.3.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 (158) hide show
  1. package/LICENSE +198 -0
  2. package/README.md +55 -0
  3. package/package.json +54 -0
  4. package/src/add-lux-components/files/app/app-routing.module.ts +19 -0
  5. package/src/add-lux-components/files/app/app.component.html +27 -0
  6. package/src/add-lux-components/files/app/app.component.spec.ts +19 -0
  7. package/src/add-lux-components/files/app/app.component.ts +13 -0
  8. package/src/add-lux-components/files/app/app.module.ts +56 -0
  9. package/src/add-lux-components/files/app/error/error.component.html +10 -0
  10. package/src/add-lux-components/files/app/error/error.component.scss +3 -0
  11. package/src/add-lux-components/files/app/error/error.component.spec.ts +49 -0
  12. package/src/add-lux-components/files/app/error/error.component.ts +17 -0
  13. package/src/add-lux-components/files/app/home/home.component.html +7 -0
  14. package/src/add-lux-components/files/app/home/home.component.scss +0 -0
  15. package/src/add-lux-components/files/app/home/home.component.ts +13 -0
  16. package/src/add-lux-components/files/app/profil/profil.component.html +1 -0
  17. package/src/add-lux-components/files/app/profil/profil.component.scss +0 -0
  18. package/src/add-lux-components/files/app/profil/profil.component.spec.ts +24 -0
  19. package/src/add-lux-components/files/app/profil/profil.component.ts +11 -0
  20. package/src/add-lux-components/files/environments/environment.prod.ts +4 -0
  21. package/src/add-lux-components/files/environments/environment.ts +17 -0
  22. package/src/add-lux-components/files/locale/messages.en.xlf +948 -0
  23. package/src/add-lux-components/files/locale/messages.xlf +822 -0
  24. package/src/add-lux-components/files/scripts/.browserslistrc +17 -0
  25. package/src/add-lux-components/files/src/polyfills.ts +68 -0
  26. package/src/add-lux-components/index.d.ts +10 -0
  27. package/src/add-lux-components/index.js +143 -0
  28. package/src/add-lux-components/index.js.map +1 -0
  29. package/src/add-lux-components/index.ts +183 -0
  30. package/src/add-lux-components/index_spec.d.ts +1 -0
  31. package/src/add-lux-components/index_spec.js +51 -0
  32. package/src/add-lux-components/index_spec.js.map +1 -0
  33. package/src/add-lux-components/index_spec.ts +55 -0
  34. package/src/add-lux-components/schema.json +23 -0
  35. package/src/collection.json +55 -0
  36. package/src/migrate-to-eslint/files/.eslintrc.json +68 -0
  37. package/src/migrate-to-eslint/files/.prettierrc +25 -0
  38. package/src/migrate-to-eslint/index.d.ts +6 -0
  39. package/src/migrate-to-eslint/index.js +149 -0
  40. package/src/migrate-to-eslint/index.js.map +1 -0
  41. package/src/migrate-to-eslint/index.ts +181 -0
  42. package/src/migrate-to-eslint/index_spec.d.ts +1 -0
  43. package/src/migrate-to-eslint/index_spec.js +129 -0
  44. package/src/migrate-to-eslint/index_spec.js.map +1 -0
  45. package/src/migrate-to-eslint/index_spec.ts +152 -0
  46. package/src/migrate-to-eslint/schema.json +23 -0
  47. package/src/migrate-to-webcomponent/index.d.ts +10 -0
  48. package/src/migrate-to-webcomponent/index.js +278 -0
  49. package/src/migrate-to-webcomponent/index.js.map +1 -0
  50. package/src/migrate-to-webcomponent/index.ts +331 -0
  51. package/src/migrate-to-webcomponent/index_spec.d.ts +1 -0
  52. package/src/migrate-to-webcomponent/index_spec.js +580 -0
  53. package/src/migrate-to-webcomponent/index_spec.js.map +1 -0
  54. package/src/migrate-to-webcomponent/index_spec.ts +703 -0
  55. package/src/migrate-to-webcomponent/schema.json +23 -0
  56. package/src/update/files/locale/messages.en.xlf +940 -0
  57. package/src/update/files/locale/messages.xlf +815 -0
  58. package/src/update/files/scripts/move-de-files.js +15 -0
  59. package/src/update/index.d.ts +23 -0
  60. package/src/update/index.js +635 -0
  61. package/src/update/index.js.map +1 -0
  62. package/src/update/index.ts +712 -0
  63. package/src/update/index_spec.d.ts +1 -0
  64. package/src/update/index_spec.js +990 -0
  65. package/src/update/index_spec.js.map +1 -0
  66. package/src/update/index_spec.ts +1145 -0
  67. package/src/update/schema.json +23 -0
  68. package/src/update-dependencies/index.d.ts +5 -0
  69. package/src/update-dependencies/index.js +113 -0
  70. package/src/update-dependencies/index.js.map +1 -0
  71. package/src/update-dependencies/index.ts +114 -0
  72. package/src/update-dependencies/schema.json +23 -0
  73. package/src/update110001/index.d.ts +2 -0
  74. package/src/update110001/index.js +42 -0
  75. package/src/update110001/index.js.map +1 -0
  76. package/src/update110001/index.ts +40 -0
  77. package/src/update110001/index_spec.d.ts +1 -0
  78. package/src/update110001/index_spec.js +67 -0
  79. package/src/update110001/index_spec.js.map +1 -0
  80. package/src/update110001/index_spec.ts +72 -0
  81. package/src/update110001/schema.json +23 -0
  82. package/src/update110100/index.d.ts +2 -0
  83. package/src/update110100/index.js +27 -0
  84. package/src/update110100/index.js.map +1 -0
  85. package/src/update110100/index.ts +24 -0
  86. package/src/update110100/index_spec.d.ts +1 -0
  87. package/src/update110100/index_spec.js +69 -0
  88. package/src/update110100/index_spec.js.map +1 -0
  89. package/src/update110100/index_spec.ts +73 -0
  90. package/src/update110100/schema.json +23 -0
  91. package/src/update110101/index.d.ts +2 -0
  92. package/src/update110101/index.js +24 -0
  93. package/src/update110101/index.js.map +1 -0
  94. package/src/update110101/index.ts +21 -0
  95. package/src/update110101/index_spec.d.ts +1 -0
  96. package/src/update110101/index_spec.js +65 -0
  97. package/src/update110101/index_spec.js.map +1 -0
  98. package/src/update110101/index_spec.ts +69 -0
  99. package/src/update110101/schema.json +23 -0
  100. package/src/update110200/index.d.ts +2 -0
  101. package/src/update110200/index.js +24 -0
  102. package/src/update110200/index.js.map +1 -0
  103. package/src/update110200/index.ts +21 -0
  104. package/src/update110200/index_spec.d.ts +1 -0
  105. package/src/update110200/index_spec.js +65 -0
  106. package/src/update110200/index_spec.js.map +1 -0
  107. package/src/update110200/index_spec.ts +69 -0
  108. package/src/update110200/schema.json +23 -0
  109. package/src/update110300/index.d.ts +2 -0
  110. package/src/update110300/index.js +133 -0
  111. package/src/update110300/index.js.map +1 -0
  112. package/src/update110300/index.ts +148 -0
  113. package/src/update110300/index_spec.d.ts +1 -0
  114. package/src/update110300/index_spec.js +121 -0
  115. package/src/update110300/index_spec.js.map +1 -0
  116. package/src/update110300/index_spec.ts +139 -0
  117. package/src/update110300/schema.json +23 -0
  118. package/src/utility/dependencies.d.ts +39 -0
  119. package/src/utility/dependencies.js +96 -0
  120. package/src/utility/dependencies.js.map +1 -0
  121. package/src/utility/dependencies.ts +116 -0
  122. package/src/utility/files.d.ts +60 -0
  123. package/src/utility/files.js +299 -0
  124. package/src/utility/files.js.map +1 -0
  125. package/src/utility/files.ts +355 -0
  126. package/src/utility/html.d.ts +49 -0
  127. package/src/utility/html.js +183 -0
  128. package/src/utility/html.js.map +1 -0
  129. package/src/utility/html.ts +212 -0
  130. package/src/utility/json.d.ts +34 -0
  131. package/src/utility/json.js +70 -0
  132. package/src/utility/json.js.map +1 -0
  133. package/src/utility/json.ts +70 -0
  134. package/src/utility/logging.d.ts +32 -0
  135. package/src/utility/logging.js +82 -0
  136. package/src/utility/logging.js.map +1 -0
  137. package/src/utility/logging.ts +80 -0
  138. package/src/utility/test.d.ts +10 -0
  139. package/src/utility/test.js +24 -0
  140. package/src/utility/test.js.map +1 -0
  141. package/src/utility/test.ts +24 -0
  142. package/src/utility/typescript.d.ts +22 -0
  143. package/src/utility/typescript.js +521 -0
  144. package/src/utility/typescript.js.map +1 -0
  145. package/src/utility/typescript.ts +598 -0
  146. package/src/utility/typescript_spec.d.ts +1 -0
  147. package/src/utility/typescript_spec.js +1006 -0
  148. package/src/utility/typescript_spec.js.map +1 -0
  149. package/src/utility/typescript_spec.ts +1267 -0
  150. package/src/utility/util.d.ts +33 -0
  151. package/src/utility/util.js +139 -0
  152. package/src/utility/util.js.map +1 -0
  153. package/src/utility/util.ts +140 -0
  154. package/src/utility/validation.d.ts +11 -0
  155. package/src/utility/validation.js +44 -0
  156. package/src/utility/validation.js.map +1 -0
  157. package/src/utility/validation.ts +49 -0
  158. package/tsconfig.json +37 -0
@@ -0,0 +1,133 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.update110300 = 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 update110300(options) {
9
+ return (tree, context) => {
10
+ return schematics_1.chain([
11
+ util_1.messageInfoRule(`Die LUX-Components werden auf die Version 11.3.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.messageInfoRule(`Die Sprachdateien werden angepasst...`),
16
+ updateI18n(),
17
+ util_1.messageSuccessRule(`Die Sprachdateien wurden angepasst.`),
18
+ util_1.messageSuccessRule(`Die LUX-Components wurden auf die Version 11.3.0 aktualisiert.`),
19
+ util_1.finish(`${chalk.yellowBright('Fertig!')}`)
20
+ ]);
21
+ };
22
+ function updateDependencies() {
23
+ return (tree, _context) => {
24
+ dependencies_1.updateDependency(tree, '@ihk-gfi/lux-components', '11.3.0');
25
+ dependencies_1.updateDependency(tree, '@ihk-gfi/lux-components-theme', '11.5.0');
26
+ return tree;
27
+ };
28
+ }
29
+ function updateI18n() {
30
+ return (tree, _context) => {
31
+ addI18nForDateTimePicker(tree);
32
+ return tree;
33
+ };
34
+ }
35
+ function addI18nForDateTimePicker(tree) {
36
+ util_1.updateI18nFile(tree, 'de', 'luxc.datepicker.error_message.empty', `
37
+ <trans-unit id="luxc.datetimepicker.invalid.date" datatype="html">
38
+ <source>Bitte wählen Sie ein Datum aus</source>
39
+ <context-group purpose="location">
40
+ <context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetime-overlay/lux-datetime-overlay-content.component.html</context>
41
+ <context context-type="linenumber">46</context>
42
+ </context-group>
43
+ </trans-unit>
44
+ <trans-unit id="luxc.datetimepicker.invalid.time" datatype="html">
45
+ <source>Bitte geben Sie eine Zeit ein</source>
46
+ <context-group purpose="location">
47
+ <context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetime-overlay/lux-datetime-overlay-content.component.html</context>
48
+ <context context-type="linenumber">48</context>
49
+ </context-group>
50
+ </trans-unit>
51
+ <trans-unit id="luxc.datetimepicker.error_message.min" datatype="html">
52
+ <source>Das Datum unterschreitet den Minimalwert</source>
53
+ <context-group purpose="location">
54
+ <context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
55
+ <context context-type="linenumber">165</context>
56
+ </context-group>
57
+ </trans-unit>
58
+ <trans-unit id="luxc.datetimepicker.error_message.max" datatype="html">
59
+ <source>Das Datum überschreitet den Maximalwert</source>
60
+ <context-group purpose="location">
61
+ <context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
62
+ <context context-type="linenumber">167</context>
63
+ </context-group>
64
+ </trans-unit>
65
+ <trans-unit id="luxc.datetimepicker.error_message.invalid" datatype="html">
66
+ <source>Das Datum ist ungültig</source>
67
+ <context-group purpose="location">
68
+ <context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
69
+ <context context-type="linenumber">170</context>
70
+ </context-group>
71
+ </trans-unit>
72
+ <trans-unit id="luxc.datetimepicker.error_message.empty" datatype="html">
73
+ <source>Das Datum darf nicht leer sein</source>
74
+ <context-group purpose="location">
75
+ <context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
76
+ <context context-type="linenumber">172</context>
77
+ </context-group>
78
+ </trans-unit>
79
+ `);
80
+ util_1.updateI18nFile(tree, 'en', 'luxc.datepicker.error_message.empty', `
81
+ <trans-unit id="luxc.datetimepicker.error_message.min" datatype="html">
82
+ <source>Das Datum unterschreitet den Minimalwert</source>
83
+ <target>Below the minimum value</target>
84
+ <context-group purpose="location">
85
+ <context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
86
+ <context context-type="linenumber">136</context>
87
+ </context-group>
88
+ </trans-unit>
89
+ <trans-unit id="luxc.datetimepicker.error_message.max" datatype="html">
90
+ <source>Das Datum überschreitet den Maximalwert</source>
91
+ <target>Above the maximum value</target>
92
+ <context-group purpose="location">
93
+ <context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
94
+ <context context-type="linenumber">138</context>
95
+ </context-group>
96
+ </trans-unit>
97
+ <trans-unit id="luxc.datetimepicker.error_message.invalid" datatype="html">
98
+ <source>Das Datum ist ungültig</source>
99
+ <target>Invalid date</target>
100
+ <context-group purpose="location">
101
+ <context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
102
+ <context context-type="linenumber">141</context>
103
+ </context-group>
104
+ </trans-unit>
105
+ <trans-unit id="luxc.datetimepicker.error_message.empty" datatype="html">
106
+ <source>Das Datum darf nicht leer sein</source>
107
+ <target>The date should not be empty</target>
108
+ <context-group purpose="location">
109
+ <context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
110
+ <context context-type="linenumber">143</context>
111
+ </context-group>
112
+ </trans-unit>
113
+ <trans-unit id="luxc.datetimepicker.invalid.date" datatype="html">
114
+ <source>Bitte wählen Sie ein Datum aus</source>
115
+ <target>Please enter a date</target>
116
+ <context-group purpose="location">
117
+ <context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetime-overlay/lux-datetime-overlay-content.component.html</context>
118
+ <context context-type="linenumber">46</context>
119
+ </context-group>
120
+ </trans-unit>
121
+ <trans-unit id="luxc.datetimepicker.invalid.time" datatype="html">
122
+ <source>Bitte geben Sie eine Zeit ein</source>
123
+ <target>Please enter a time</target>
124
+ <context-group purpose="location">
125
+ <context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetime-overlay/lux-datetime-overlay-content.component.html</context>
126
+ <context context-type="linenumber">48</context>
127
+ </context-group>
128
+ </trans-unit>
129
+ `);
130
+ }
131
+ }
132
+ exports.update110300 = update110300;
133
+ //#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EACJ,qCAAqC,EACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAiDG,CACJ,CAAC;IACJ,CAAC;AACH,CAAC;AA9ID,oCA8IC"}
@@ -0,0 +1,148 @@
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, updateI18nFile } from '../utility/util';
5
+
6
+ export function update110300(options: any): Rule {
7
+ return (tree: Tree, context: SchematicContext) => {
8
+ return chain([
9
+ messageInfoRule(`Die LUX-Components werden auf die Version 11.3.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 angepasst...`),
16
+ updateI18n(),
17
+ messageSuccessRule(`Die Sprachdateien wurden angepasst.`),
18
+
19
+ messageSuccessRule(`Die LUX-Components wurden auf die Version 11.3.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.3.0');
27
+ updateDependency(tree, '@ihk-gfi/lux-components-theme', '11.5.0');
28
+
29
+ return tree;
30
+ };
31
+ }
32
+
33
+ function updateI18n() {
34
+ return (tree: Tree, _context: SchematicContext) => {
35
+ addI18nForDateTimePicker(tree);
36
+
37
+ return tree;
38
+ };
39
+ }
40
+
41
+ function addI18nForDateTimePicker(tree: Tree) {
42
+ updateI18nFile(
43
+ tree,
44
+ 'de',
45
+ 'luxc.datepicker.error_message.empty',
46
+ `
47
+ <trans-unit id="luxc.datetimepicker.invalid.date" datatype="html">
48
+ <source>Bitte wählen Sie ein Datum aus</source>
49
+ <context-group purpose="location">
50
+ <context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetime-overlay/lux-datetime-overlay-content.component.html</context>
51
+ <context context-type="linenumber">46</context>
52
+ </context-group>
53
+ </trans-unit>
54
+ <trans-unit id="luxc.datetimepicker.invalid.time" datatype="html">
55
+ <source>Bitte geben Sie eine Zeit ein</source>
56
+ <context-group purpose="location">
57
+ <context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetime-overlay/lux-datetime-overlay-content.component.html</context>
58
+ <context context-type="linenumber">48</context>
59
+ </context-group>
60
+ </trans-unit>
61
+ <trans-unit id="luxc.datetimepicker.error_message.min" datatype="html">
62
+ <source>Das Datum unterschreitet den Minimalwert</source>
63
+ <context-group purpose="location">
64
+ <context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
65
+ <context context-type="linenumber">165</context>
66
+ </context-group>
67
+ </trans-unit>
68
+ <trans-unit id="luxc.datetimepicker.error_message.max" datatype="html">
69
+ <source>Das Datum überschreitet den Maximalwert</source>
70
+ <context-group purpose="location">
71
+ <context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
72
+ <context context-type="linenumber">167</context>
73
+ </context-group>
74
+ </trans-unit>
75
+ <trans-unit id="luxc.datetimepicker.error_message.invalid" datatype="html">
76
+ <source>Das Datum ist ungültig</source>
77
+ <context-group purpose="location">
78
+ <context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
79
+ <context context-type="linenumber">170</context>
80
+ </context-group>
81
+ </trans-unit>
82
+ <trans-unit id="luxc.datetimepicker.error_message.empty" datatype="html">
83
+ <source>Das Datum darf nicht leer sein</source>
84
+ <context-group purpose="location">
85
+ <context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
86
+ <context context-type="linenumber">172</context>
87
+ </context-group>
88
+ </trans-unit>
89
+ `
90
+ );
91
+
92
+ updateI18nFile(
93
+ tree,
94
+ 'en',
95
+ 'luxc.datepicker.error_message.empty',
96
+ `
97
+ <trans-unit id="luxc.datetimepicker.error_message.min" datatype="html">
98
+ <source>Das Datum unterschreitet den Minimalwert</source>
99
+ <target>Below the minimum value</target>
100
+ <context-group purpose="location">
101
+ <context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
102
+ <context context-type="linenumber">136</context>
103
+ </context-group>
104
+ </trans-unit>
105
+ <trans-unit id="luxc.datetimepicker.error_message.max" datatype="html">
106
+ <source>Das Datum überschreitet den Maximalwert</source>
107
+ <target>Above the maximum value</target>
108
+ <context-group purpose="location">
109
+ <context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
110
+ <context context-type="linenumber">138</context>
111
+ </context-group>
112
+ </trans-unit>
113
+ <trans-unit id="luxc.datetimepicker.error_message.invalid" datatype="html">
114
+ <source>Das Datum ist ungültig</source>
115
+ <target>Invalid date</target>
116
+ <context-group purpose="location">
117
+ <context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
118
+ <context context-type="linenumber">141</context>
119
+ </context-group>
120
+ </trans-unit>
121
+ <trans-unit id="luxc.datetimepicker.error_message.empty" datatype="html">
122
+ <source>Das Datum darf nicht leer sein</source>
123
+ <target>The date should not be empty</target>
124
+ <context-group purpose="location">
125
+ <context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetimepicker.component.ts</context>
126
+ <context context-type="linenumber">143</context>
127
+ </context-group>
128
+ </trans-unit>
129
+ <trans-unit id="luxc.datetimepicker.invalid.date" datatype="html">
130
+ <source>Bitte wählen Sie ein Datum aus</source>
131
+ <target>Please enter a date</target>
132
+ <context-group purpose="location">
133
+ <context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetime-overlay/lux-datetime-overlay-content.component.html</context>
134
+ <context context-type="linenumber">46</context>
135
+ </context-group>
136
+ </trans-unit>
137
+ <trans-unit id="luxc.datetimepicker.invalid.time" datatype="html">
138
+ <source>Bitte geben Sie eine Zeit ein</source>
139
+ <target>Please enter a time</target>
140
+ <context-group purpose="location">
141
+ <context context-type="sourcefile">src/app/modules/lux-form/lux-datetimepicker/lux-datetime-overlay/lux-datetime-overlay-content.component.html</context>
142
+ <context context-type="linenumber">48</context>
143
+ </context-group>
144
+ </trans-unit>
145
+ `
146
+ );
147
+ }
148
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,121 @@
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
@@ -0,0 +1 @@
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,CAAC,qBAAqB,EAAE,aAAa,EAAE,iBAAU,EAAE,OAAO,CAAC;aACpF,SAAS,EAAE,CAAC;QAEf,iBAAU,CAAC,aAAa,GAAG,CAAC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,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"}
@@ -0,0 +1,139 @@
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
+ });
@@ -0,0 +1,23 @@
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
+ }
@@ -0,0 +1,39 @@
1
+ import { SchematicContext, Tree } from '@angular-devkit/schematics';
2
+ export declare enum NodeDependencyType {
3
+ Default = "dependencies",
4
+ Dev = "devDependencies",
5
+ Peer = "peerDependencies",
6
+ Optional = "optionalDependencies"
7
+ }
8
+ export interface NodeDependency {
9
+ type: NodeDependencyType;
10
+ name: string;
11
+ version: string;
12
+ }
13
+ /**
14
+ * Versucht eine Dependency aus der package.json auslesen und gibt diese zurück.
15
+ * @param tree
16
+ * @param name
17
+ */
18
+ export declare function getPackageJsonDependency(tree: Tree, name: string): NodeDependency;
19
+ /**
20
+ * Aktualisiert eine Dependency in der package.json bzw. fügt diese hinzu, falls sie noch nicht vorhanden ist.
21
+ * @param tree
22
+ * @param name
23
+ * @param verion
24
+ */
25
+ export declare function updateDependency(tree: Tree, name: string, version: string): void;
26
+ /**
27
+ * Aktualisiert eine Dependency in der package.json bzw. fügt diese hinzu, falls sie noch nicht vorhanden ist.
28
+ * @param tree
29
+ * @param name
30
+ * @param verion
31
+ */
32
+ export declare function updateDependencyDev(tree: Tree, name: string, version: string): void;
33
+ /**
34
+ * Aktualisiert eine Dependency in der package.json bzw. fügt diese hinzu, falls sie noch nicht vorhanden ist.
35
+ * @param tree
36
+ * @param dependency
37
+ */
38
+ export declare function updatePackageJsonDependency(tree: Tree, dependency: NodeDependency): void;
39
+ export declare function deletePackageJsonDependency(tree: Tree, context: SchematicContext, dependency: NodeDependency): void;