@ihk-gfi/lux-components-update 13.3.0 → 14.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 (141) hide show
  1. package/README.md +2 -2
  2. package/package.json +10 -8
  3. package/src/add-lux-components/files/app/app-routing.module.ts +2 -0
  4. package/src/add-lux-components/files/app/app.component.html +7 -2
  5. package/src/add-lux-components/files/app/app.component.ts +9 -1
  6. package/src/add-lux-components/files/app/app.module.ts +6 -1
  7. package/src/add-lux-components/files/app/base/license-hint/license-hint.component.html +7 -0
  8. package/src/add-lux-components/files/app/base/license-hint/license-hint.component.ts +18 -0
  9. package/src/add-lux-components/files/app/home/home.component.scss +3 -0
  10. package/src/add-lux-components/files/assets/svg/Example.svg +6 -0
  11. package/src/add-lux-components/files/assets/svg/android.svg +2 -0
  12. package/src/add-lux-components/files/assets/svg/box.svg +690 -0
  13. package/src/add-lux-components/files/assets/svg/demoAppLogo.svg +1 -0
  14. package/src/add-lux-components/files/assets/svg/red_power_button.svg +67 -0
  15. package/src/add-lux-components/files/assets/svg/svg2009.svg +57457 -0
  16. package/src/add-lux-components/files/environments/environment.ts +2 -2
  17. package/src/add-lux-components/files/locale/messages.en.xlf +544 -373
  18. package/src/add-lux-components/files/locale/messages.xlf +517 -352
  19. package/src/add-lux-components/files/src/polyfills.ts +29 -39
  20. package/src/add-lux-components/index.d.ts +1 -1
  21. package/src/add-lux-components/index.js +47 -26
  22. package/src/add-lux-components/index.js.map +1 -1
  23. package/src/add-lux-components/index.ts +50 -31
  24. package/src/add-lux-components/index_spec.js +3 -3
  25. package/src/add-lux-components/index_spec.ts +1 -1
  26. package/src/collection.json +13 -19
  27. package/src/theme/change-theme-to-authentic/index.d.ts +4 -0
  28. package/src/theme/change-theme-to-authentic/index.js +129 -0
  29. package/src/theme/change-theme-to-authentic/index.js.map +1 -0
  30. package/src/theme/change-theme-to-authentic/index.ts +131 -0
  31. package/src/{updates/update130000 → theme/change-theme-to-authentic}/index_spec.d.ts +0 -0
  32. package/src/theme/change-theme-to-authentic/index_spec.js +300 -0
  33. package/src/theme/change-theme-to-authentic/index_spec.js.map +1 -0
  34. package/src/theme/change-theme-to-authentic/index_spec.ts +321 -0
  35. package/src/{updates/update130300 → theme/change-theme-to-authentic}/schema.json +3 -3
  36. package/src/theme/change-to-lux-icons/index.d.ts +7 -0
  37. package/src/theme/change-to-lux-icons/index.js +395 -0
  38. package/src/theme/change-to-lux-icons/index.js.map +1 -0
  39. package/src/theme/change-to-lux-icons/index.ts +406 -0
  40. package/src/{updates/update130100 → theme/change-to-lux-icons}/index_spec.d.ts +0 -0
  41. package/src/theme/change-to-lux-icons/index_spec.js +214 -0
  42. package/src/theme/change-to-lux-icons/index_spec.js.map +1 -0
  43. package/src/theme/change-to-lux-icons/index_spec.ts +220 -0
  44. package/src/{updates/update130200 → theme/change-to-lux-icons}/schema.json +3 -3
  45. package/src/update-dependencies/index.d.ts +0 -3
  46. package/src/update-dependencies/index.js +68 -116
  47. package/src/update-dependencies/index.js.map +1 -1
  48. package/src/update-dependencies/index.ts +73 -122
  49. package/src/update-en-messages/index.js +18 -15
  50. package/src/update-en-messages/index.js.map +1 -1
  51. package/src/update-en-messages/index.ts +22 -16
  52. package/src/updates/update140000/files/src/polyfills.ts +70 -0
  53. package/src/updates/update140000/index.d.ts +8 -0
  54. package/src/updates/update140000/index.js +83 -0
  55. package/src/updates/update140000/index.js.map +1 -0
  56. package/src/updates/update140000/index.ts +97 -0
  57. package/src/updates/{update130200 → update140000}/index_spec.d.ts +0 -0
  58. package/src/updates/update140000/index_spec.js +77 -0
  59. package/src/updates/update140000/index_spec.js.map +1 -0
  60. package/src/updates/update140000/index_spec.ts +79 -0
  61. package/src/updates/{update130000 → update140000}/schema.json +0 -0
  62. package/src/utility/files.d.ts +2 -2
  63. package/src/utility/files.js +5 -5
  64. package/src/utility/files.js.map +1 -1
  65. package/src/utility/files.ts +5 -5
  66. package/src/utility/html/hit.d.ts +21 -0
  67. package/src/utility/html/hit.js +27 -0
  68. package/src/utility/html/hit.js.map +1 -0
  69. package/src/utility/html/hit.ts +28 -0
  70. package/src/utility/html/html-manipulator.d.ts +71 -0
  71. package/src/utility/html/html-manipulator.js +136 -0
  72. package/src/utility/html/html-manipulator.js.map +1 -0
  73. package/src/utility/html/html-manipulator.ts +156 -0
  74. package/src/utility/{html_spec.d.ts → html/html_spec.d.ts} +0 -0
  75. package/src/utility/{html_spec.js → html/html_spec.js} +232 -100
  76. package/src/utility/html/html_spec.js.map +1 -0
  77. package/src/utility/{html_spec.ts → html/html_spec.ts} +282 -106
  78. package/src/utility/html/manipulator-functions.d.ts +99 -0
  79. package/src/utility/html/manipulator-functions.js +147 -0
  80. package/src/utility/html/manipulator-functions.js.map +1 -0
  81. package/src/utility/html/manipulator-functions.ts +149 -0
  82. package/src/utility/json.d.ts +2 -2
  83. package/src/utility/json.js +11 -7
  84. package/src/utility/json.js.map +1 -1
  85. package/src/utility/json.ts +42 -26
  86. package/src/utility/json_spec.js +18 -18
  87. package/src/utility/json_spec.js.map +1 -1
  88. package/src/utility/json_spec.ts +136 -66
  89. package/src/utility/typescript.d.ts +3 -3
  90. package/src/utility/typescript.js +2 -2
  91. package/src/utility/typescript.js.map +1 -1
  92. package/src/utility/typescript.ts +3 -3
  93. package/src/utility/typescript_spec.js +0 -1
  94. package/src/utility/typescript_spec.js.map +1 -1
  95. package/src/utility/typescript_spec.ts +0 -2
  96. package/src/utility/util.d.ts +7 -6
  97. package/src/utility/util.js +12 -8
  98. package/src/utility/util.js.map +1 -1
  99. package/src/utility/util.ts +13 -10
  100. package/src/utility/validation.d.ts +2 -3
  101. package/src/utility/validation.js +2 -3
  102. package/src/utility/validation.js.map +1 -1
  103. package/src/utility/validation.ts +2 -3
  104. package/tsconfig.json +5 -7
  105. package/src/add-lux-components/files/scripts/.browserslistrc +0 -20
  106. package/src/updates/update130000/files/root/.browserslistrc +0 -20
  107. package/src/updates/update130000/index.d.ts +0 -27
  108. package/src/updates/update130000/index.js +0 -310
  109. package/src/updates/update130000/index.js.map +0 -1
  110. package/src/updates/update130000/index.ts +0 -362
  111. package/src/updates/update130000/index_spec.js +0 -584
  112. package/src/updates/update130000/index_spec.js.map +0 -1
  113. package/src/updates/update130000/index_spec.ts +0 -675
  114. package/src/updates/update130100/index.d.ts +0 -2
  115. package/src/updates/update130100/index.js +0 -27
  116. package/src/updates/update130100/index.js.map +0 -1
  117. package/src/updates/update130100/index.ts +0 -27
  118. package/src/updates/update130100/index_spec.js +0 -65
  119. package/src/updates/update130100/index_spec.js.map +0 -1
  120. package/src/updates/update130100/index_spec.ts +0 -69
  121. package/src/updates/update130100/schema.json +0 -23
  122. package/src/updates/update130200/index.d.ts +0 -2
  123. package/src/updates/update130200/index.js +0 -43
  124. package/src/updates/update130200/index.js.map +0 -1
  125. package/src/updates/update130200/index.ts +0 -41
  126. package/src/updates/update130200/index_spec.js +0 -106
  127. package/src/updates/update130200/index_spec.js.map +0 -1
  128. package/src/updates/update130200/index_spec.ts +0 -110
  129. package/src/updates/update130300/index.d.ts +0 -2
  130. package/src/updates/update130300/index.js +0 -35
  131. package/src/updates/update130300/index.js.map +0 -1
  132. package/src/updates/update130300/index.ts +0 -32
  133. package/src/updates/update130300/index_spec.d.ts +0 -1
  134. package/src/updates/update130300/index_spec.js +0 -85
  135. package/src/updates/update130300/index_spec.js.map +0 -1
  136. package/src/updates/update130300/index_spec.ts +0 -89
  137. package/src/utility/html.d.ts +0 -49
  138. package/src/utility/html.js +0 -246
  139. package/src/utility/html.js.map +0 -1
  140. package/src/utility/html.ts +0 -288
  141. package/src/utility/html_spec.js.map +0 -1
@@ -1,675 +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, NodeDependencyType, updatePackageJsonDependency } from '../../utility/dependencies';
6
- import { appOptions, workspaceOptions } from '../../utility/test';
7
- import { UtilConfig } from '../../utility/util';
8
- import {
9
- copyFiles,
10
- fixEmptyStyles,
11
- fixKarmaConf,
12
- removeDatepickerDefaultLocale,
13
- removeLuxSelectedFilesAlwaysUseArray,
14
- update,
15
- updateAngularJson, updateIndexHtml,
16
- updateMajorVersion,
17
- updatePackageJson, updateTsConfigJson
18
- } from './index';
19
-
20
- const collectionPath = path.join(__dirname, '../../collection.json');
21
-
22
- describe('update130000', () => {
23
- let appTree: UnitTestTree;
24
- let runner: SchematicTestRunner;
25
- let context: SchematicContext;
26
-
27
- const testOptions: any = {};
28
-
29
- beforeEach(async () => {
30
- runner = new SchematicTestRunner('schematics', collectionPath);
31
-
32
- appTree = await runner.runExternalSchematicAsync('@schematics/angular', 'workspace', workspaceOptions).toPromise();
33
- appTree = await runner
34
- .runExternalSchematicAsync('@schematics/angular', 'application', appOptions, appTree)
35
- .toPromise();
36
-
37
- UtilConfig.defaultWaitMS = 0;
38
-
39
- const collection = runner.engine.createCollection(collectionPath);
40
- const schematic = runner.engine.createSchematic('update', collection);
41
- context = runner.engine.createContext(schematic);
42
-
43
- testOptions.project = appOptions.name;
44
- testOptions.path = workspaceOptions.newProjectRoot + '/' + appOptions.name;
45
- testOptions.verbose = true;
46
- });
47
-
48
- describe('[Rule] update130000', () => {
49
- it('Sollte einen Fehler werfen, wenn Version < n - 1', () => {
50
- updatePackageJsonDependency(appTree, {
51
- type : NodeDependencyType.Default,
52
- version: '11.14.0',
53
- name : '@ihk-gfi/lux-components'
54
- });
55
- Object.defineProperty(process.versions, 'node', {
56
- get: () => '16.14.1'
57
- });
58
-
59
- callRule(update(testOptions), observableOf(appTree), context).subscribe(
60
- (success) => {
61
- },
62
- (reason) => expect(reason.toString()).toContain('wird nicht unterstützt.')
63
- );
64
- });
65
-
66
- it('Sollte LUX-Components 13 einrichten', (done) => {
67
- appTree.overwrite(
68
- '/package.json',
69
- `
70
- {
71
- "name": "Lorem ipsum",
72
- "version": "0.0.32",
73
- "scripts": {
74
- "build": "tsc -p tsconfig.json",
75
- "test": "npm run build && jasmine src/**/*_spec.js"
76
- },
77
- "keywords": [
78
- "schematics",
79
- "lux-components"
80
- ],
81
- "dependencies": {
82
- "@ihk-gfi/lux-components": "11.14.0"
83
- }
84
- }
85
- `
86
- );
87
-
88
- callRule(update(testOptions), observableOf(appTree), context).subscribe(
89
- () => {
90
- expect(getPackageJsonDependency(appTree, '@ihk-gfi/lux-components').version).toEqual(
91
- '' + updateMajorVersion + '.0.0'
92
- );
93
- done();
94
- },
95
- (reason) => expect(reason).toBeUndefined()
96
- );
97
- });
98
- });
99
-
100
- describe('[Rule] copyFiles', () => {
101
- it('Sollte die Dateien kopieren', (done) => {
102
- callRule(copyFiles(testOptions), observableOf(appTree), context).subscribe(
103
- (success) => {
104
- expect(success.exists(testOptions.path + '/.browserslistrc')).toBeTrue();
105
- done();
106
- },
107
- (reason) => expect(reason).toBeUndefined()
108
- );
109
- });
110
- });
111
-
112
- describe('[Rule] fixKarmaConf', () => {
113
- it('Sollte die Datei karma.conf.js anpassen', (done) => {
114
- appTree.overwrite(
115
- testOptions.path + '/karma.conf.js',
116
- `
117
- // Karma configuration file, see link for more information
118
- // https://karma-runner.github.io/1.0/config/configuration-file.html
119
-
120
- module.exports = function (config) {
121
- config.set({
122
- basePath: '',
123
- frameworks: ['jasmine', '@angular-devkit/build-angular'],
124
- plugins: [
125
- require('karma-jasmine'),
126
- require('karma-chrome-launcher'),
127
- require('karma-jasmine-html-reporter'),
128
- require('karma-coverage-istanbul-reporter'),
129
- require('@angular-devkit/build-angular/plugins/karma')
130
- ],
131
- client:{
132
- clearContext: false // leave Jasmine Spec Runner output visible in browser
133
- },
134
- coverageIstanbulReporter: {
135
- dir: require('path').join(__dirname, 'coverage'), reports: [ 'html', 'lcovonly' ],
136
- fixWebpackSourcePaths: true
137
- },
138
-
139
- reporters: ['progress', 'kjhtml'],
140
- port: 9876,
141
- colors: true,
142
- logLevel: config.LOG_INFO,
143
- autoWatch: true,
144
- browsers: ['Chrome'],
145
- singleRun: false
146
- });
147
- };
148
-
149
- `
150
- );
151
-
152
- callRule(fixKarmaConf(testOptions), observableOf(appTree), context).subscribe(
153
- (success) => {
154
- const content = success.read(testOptions.path + '/karma.conf.js')?.toString();
155
-
156
- expect(content).toBeDefined();
157
-
158
- if (content) {
159
- expect(content).toContain('require(\'karma-coverage\'),');
160
- expect(content).toContain('coverageReporter: {');
161
- expect(content).toContain('reporters: [\'progress\', \'coverage\'],');
162
- expect(content).not.toContain('require(\'karma-coverage-istanbul-reporter\'),');
163
- expect(content).not.toContain('coverageIstanbulReporter');
164
- expect(content).not.toContain('fixWebpackSourcePaths');
165
- done();
166
- }
167
- },
168
- (reason) => expect(reason).toBeUndefined()
169
- );
170
- });
171
- });
172
-
173
- describe('[Rule] updateAngularJson', () => {
174
- it('Sollte die Datei "angular.json" anpassen', (done) => {
175
- appTree.overwrite('/angular.json', testAngularJson);
176
-
177
- callRule(updateAngularJson(testOptions), observableOf(appTree), context).subscribe(
178
- (success) => {
179
- const angularJson = success.read('/angular.json');
180
- expect(angularJson).toBeDefined();
181
-
182
- const content = angularJson?.toString();
183
-
184
- expect(content).toContain('"glob": "material-design-icons.css*"');
185
- expect(content).toContain('"glob": "*(*min.css|*min.css.map)"');
186
- expect(content).not.toContain('"glob": "*.css",');
187
- expect(content).not.toContain('"tsConfig": "src/tsconfig.app.ie.json"');
188
- done();
189
- },
190
- (reason) => expect(reason).toBeUndefined()
191
- );
192
- });
193
- });
194
-
195
- describe('[Rule] updatePackageJson', () => {
196
- it('Sollte die Datei "package.json" anpassen', (done) => {
197
- appTree.overwrite(
198
- '/package.json',
199
- `
200
- {
201
- "name": "Lorem ipsum",
202
- "version": "0.0.32",
203
- "scripts": {
204
- "build": "tsc -p tsconfig.json",
205
- "test": "npm run build && jasmine src/**/*_spec.js",
206
- "compodoc": "./node_modules/.bin/compodoc -p tsconfig.json",
207
- },
208
- "keywords": [
209
- "schematics",
210
- "lux-components"
211
- ],
212
- "scripts": {
213
- "xi18n": "ng extract-i18n --output-path src/locale --ivy"
214
- },
215
- "dependencies": {
216
- "@ihk-gfi/lux-components": "11.7.0"
217
- }
218
- }
219
- `
220
- );
221
-
222
- callRule(updatePackageJson(testOptions), observableOf(appTree), context).subscribe(
223
- (success) => {
224
- const packageJson = success.read('/package.json');
225
- expect(packageJson).toBeDefined();
226
- expect(packageJson?.toString()).toContain('"xi18n": "ng extract-i18n --output-path src/locale"');
227
- expect(packageJson?.toString()).toContain('"compodoc": "compodoc -p tsconfig.json",');
228
- done();
229
- },
230
- (reason) => expect(reason).toBeUndefined()
231
- );
232
- });
233
- });
234
-
235
- describe('[Rule] updateTsConfigJson', () => {
236
- it('Sollte die Datei "tsconfig.json" anpassen', (done) => {
237
- appTree.overwrite(
238
- '/tsconfig.json',
239
- `
240
-
241
- {
242
- "compilerOptions": {
243
- "baseUrl": "tslint.json",
244
- "lib": [
245
- "es2018",
246
- "dom"
247
- ],
248
- "declaration": true,
249
- "module": "commonjs",
250
- "moduleResolution": "node",
251
- }
252
- }
253
- `
254
- );
255
-
256
- callRule(updateTsConfigJson(testOptions), observableOf(appTree), context).subscribe(
257
- (success) => {
258
- const packageJson = success.read('/tsconfig.json');
259
- expect(packageJson).toBeDefined();
260
- expect(packageJson?.toString()).toContain('"allowSyntheticDefaultImports": true,');
261
- done();
262
- },
263
- (reason) => expect(reason).toBeUndefined()
264
- );
265
- });
266
- });
267
-
268
- describe('[Rule] updateIndexHtml', () => {
269
- it('Sollte die Datei "index.html" anpassen', (done) => {
270
- appTree.create(
271
- '/src/index.html',
272
- `
273
- <!doctype html>
274
- <html lang="de">
275
- <head>
276
- <meta charset="utf-8">
277
- <title>LUX Blueprint</title>
278
- <base href="/">
279
-
280
- <meta name="viewport" content="width=device-width, initial-scale=1">
281
- <link rel="icon" type="image/x-icon" href="favicon.ico">
282
- <link rel="stylesheet" href="assets/icons/fontawesome/css/all.css">
283
- <link rel="stylesheet" href="assets/icons/material-icons/material-design-icons.css">
284
- <style>
285
- .lux-no-js {
286
- color: red;
287
- font-size: 20px;
288
- border: 1px solid red;
289
- padding: 10px;
290
- }
291
- </style>
292
- </head>
293
- <body style="margin: 0">
294
- <noscript>
295
- <div id="no-js" class="lux-no-js">
296
- <p><b>Achtung, Javascript ist deaktiviert.</b></p>
297
- <p>Bitte aktivieren Sie Javascript in Ihrem Browser, damit die Applikation funktionsf&auml;hig ist.</p>
298
- </div>
299
- </noscript>
300
- <lux-bp></lux-bp>
301
- </body>
302
- </html>
303
- `
304
- );
305
-
306
- callRule(updateIndexHtml(testOptions), observableOf(appTree), context).subscribe(
307
- (success) => {
308
- const indexHtml = success.read('/src/index.html');
309
-
310
- expect(indexHtml).toBeDefined();
311
- expect(indexHtml?.toString()).toContain('<link rel="stylesheet preload" as="style" type="text/css" href="assets/icons/fontawesome/css/all.css">');
312
- expect(indexHtml?.toString()).toContain('<link rel="stylesheet preload" as="style" type="text/css" href="assets/icons/material-icons/material-design-icons.css">');
313
- done();
314
- },
315
- (reason) => expect(reason).toBeUndefined()
316
- );
317
- });
318
- });
319
-
320
- describe('[Rule] removeLuxSelectedFilesAlwaysUseArray', () => {
321
- it('Sollte die Datei "package.json" anpassen', (done) => {
322
- appTree.create(testOptions.path + '/src/app/abc.component.html', templateRemoveLuxSelectedFilesAlwaysUseArray);
323
-
324
- callRule(removeLuxSelectedFilesAlwaysUseArray(testOptions), observableOf(appTree), context).subscribe(
325
- (success) => {
326
- const componentHtml = success.read(testOptions.path + '/src/app/abc.component.html')?.toString();
327
- expect(componentHtml).toBeDefined();
328
- expect(componentHtml?.toString()).not.toContain('alwaysUseArray');
329
-
330
- done();
331
- },
332
- (reason) => expect(reason).toBeUndefined()
333
- );
334
- });
335
- });
336
-
337
- describe('[Rule] fixEmptyStyles', () => {
338
- it('Sollte die leeren Styles korrigieren', (done) => {
339
- const filePath1 = testOptions.path + '/src/app/fix-empty-styles1.component.ts';
340
- appTree.create(filePath1, templateFixEmptyStyles1);
341
-
342
- const filePath2 = testOptions.path + '/src/app/fix-empty-styles2.component.ts';
343
- appTree.create(filePath2, templateFixEmptyStyles2);
344
-
345
- const filePath3 = testOptions.path + '/src/app/fix-empty-styles3.component.ts';
346
- appTree.create(filePath3, templateFixEmptyStyles3);
347
-
348
- const filePath4 = testOptions.path + '/src/app/fix-empty-styles4.component.ts';
349
- appTree.create(filePath4, templateFixEmptyStyles4);
350
-
351
- callRule(fixEmptyStyles(testOptions), observableOf(appTree), context).subscribe(
352
- (success) => {
353
- expect(success.read(filePath1)?.toString()).toContain('styles: []');
354
- expect(success.read(filePath2)?.toString()).toContain('styles: []');
355
- expect(success.read(filePath3)?.toString()).toContain('styles: []');
356
- expect(success.read(filePath4)?.toString()).toContain('styles: []');
357
-
358
- done();
359
- },
360
- (reason) => expect(reason).toBeUndefined()
361
- );
362
- });
363
- });
364
-
365
- describe('[Rule] removeDatepickerDefaultLocale', () => {
366
- it('Sollte die Defaultlocale "de-DE" entfernen', (done) => {
367
- const filePath = testOptions.path + '/src/app/datepicker-default-locale.component.html';
368
- appTree.create(filePath, templateRemoveDatepickerDefaultLocale);
369
-
370
- callRule(removeDatepickerDefaultLocale(testOptions), observableOf(appTree), context).subscribe(
371
- (success) => {
372
- expect(success.read(filePath)?.toString()).not.toContain('luxLocale="de-DE"');
373
-
374
- done();
375
- },
376
- (reason) => expect(reason).toBeUndefined()
377
- );
378
- });
379
- });
380
- });
381
-
382
- const testAngularJson = `
383
- {
384
- "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
385
- "version": 1,
386
- "newProjectRoot": "projects",
387
- "projects": {
388
- "bar": {
389
- "root": "",
390
- "sourceRoot": "src",
391
- "projectType": "application",
392
- "i18n": {
393
- "sourceLocale": {
394
- "code": "de",
395
- "baseHref": "/"
396
- },
397
- "locales": {
398
- "en": "src/locale/messages.en.xlf"
399
- }
400
- },
401
- "architect": {
402
- "build": {
403
- "builder": "ngx-build-plus:browser",
404
- "options": {
405
- "outputPath": "dist",
406
- "index": "src/index.html",
407
- "main": "src/main.ts",
408
- "tsConfig": "src/tsconfig.app.json",
409
- "polyfills": "src/polyfills.ts",
410
- "assets": [
411
- "src/assets",
412
- {
413
- "glob": "**/*",
414
- "input": "./node_modules/pdfjs-dist/cmaps/",
415
- "output": "./assets/cmaps"
416
- },
417
- {
418
- "glob": "*.css",
419
- "input": "./node_modules/@ihk-gfi/lux-components-theme/prebuilt-themes",
420
- "output": "./assets/themes"
421
- },
422
- {
423
- "glob": "material-design-icons.css",
424
- "input": "./node_modules/material-design-icons-iconfont/dist",
425
- "output": "./assets/icons/material-icons"
426
- }
427
- ],
428
- "styles": [
429
- "src/styles.scss"
430
- ],
431
- "scripts": [
432
- {
433
- "bundleName": "polyfill-webcomp",
434
- "input": "node_modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js"
435
- },
436
- {
437
- "bundleName": "polyfill-webcomp-es5",
438
- "input": "node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"
439
- }
440
- ],
441
- "allowedCommonJsDependencies": [
442
- "hammerjs",
443
- "ng2-pdf-viewer"
444
- ],
445
- "localize": [
446
- "de"
447
- ],
448
- "i18nMissingTranslation": "error",
449
- "extraWebpackConfig": "webpack.config.js"
450
- },
451
- "configurations": {
452
- "production": {
453
- "budgets": [
454
- {
455
- "type": "anyComponentStyle",
456
- "maximumWarning": "6kb"
457
- }
458
- ],
459
- "optimization": true,
460
- "outputHashing": "all",
461
- "sourceMap": false,
462
- "namedChunks": false,
463
- "aot": true,
464
- "extractLicenses": true,
465
- "vendorChunk": false,
466
- "buildOptimizer": true,
467
- "fileReplacements": [
468
- {
469
- "replace": "src/environments/environment.ts",
470
- "with": "src/environments/environment.prod.ts"
471
- }
472
- ]
473
- },
474
- "es5": {
475
- "budgets": [
476
- {
477
- "type": "anyComponentStyle",
478
- "maximumWarning": "6kb"
479
- }
480
- ],
481
- "tsConfig": "src/tsconfig.app.ie.json"
482
- },
483
- "en": {
484
- "localize": [
485
- "en"
486
- ],
487
- "aot": true,
488
- "outputPath": "dist/en",
489
- "i18nMissingTranslation": "error"
490
- }
491
- }
492
- },
493
- "serve": {
494
- "builder": "ngx-build-plus:dev-server",
495
- "options": {
496
- "browserTarget": "bar:build"
497
- },
498
- "configurations": {
499
- "production": {
500
- "browserTarget": "bar:build:production"
501
- },
502
- "es5": {
503
- "browserTarget": "bar:build:es5"
504
- },
505
- "en": {
506
- "browserTarget": "bar:build:en"
507
- }
508
- }
509
- },
510
- "extract-i18n": {
511
- "builder": "@angular-devkit/build-angular:extract-i18n",
512
- "options": {
513
- "browserTarget": "bar:build"
514
- }
515
- },
516
- "test": {
517
- "builder": "ngx-build-plus:karma",
518
- "options": {
519
- "main": "src/test.ts",
520
- "karmaConfig": "./karma.conf.js",
521
- "polyfills": "src/polyfills.ts",
522
- "tsConfig": "src/tsconfig.spec.json",
523
- "scripts": [],
524
- "styles": [
525
- "src/styles.scss"
526
- ],
527
- "assets": [
528
- "src/assets",
529
- {
530
- "glob": "**/*",
531
- "input": "./node_modules/pdfjs-dist/cmaps/",
532
- "output": "./assets/cmaps"
533
- },
534
- {
535
- "glob": "*.css",
536
- "input": "./node_modules/@ihk-gfi/lux-components-theme/prebuilt-themes",
537
- "output": "./assets/themes"
538
- }
539
- ]
540
- }
541
- },
542
- "lint": {
543
- "builder": "@angular-eslint/builder:lint",
544
- "options": {
545
- "lintFilePatterns": [
546
- "src/**/*.ts",
547
- "src/**/*.html"
548
- ]
549
- }
550
- }
551
- }
552
- },
553
- "bar-e2e": {
554
- "root": "e2e",
555
- "sourceRoot": "e2e",
556
- "projectType": "application",
557
- "architect": {
558
- "e2e": {
559
- "builder": "@angular-devkit/build-angular:protractor",
560
- "options": {
561
- "protractorConfig": "./protractor.conf.js",
562
- "devServerTarget": "bar:serve"
563
- }
564
- }
565
- }
566
- }
567
- },
568
- "defaultProject": "bar",
569
- "cli": {
570
- "defaultCollection": "@angular-eslint/schematics"
571
- },
572
- "schematics": {
573
- "@schematics/angular:component": {
574
- "prefix": "bp",
575
- "style": "scss"
576
- },
577
- "@schematics/angular:directive": {
578
- "prefix": "bp"
579
- }
580
- }
581
- }
582
-
583
- `;
584
-
585
- const templateRemoveLuxSelectedFilesAlwaysUseArray = `
586
- <div fxFlex="auto" fxLayout="column">
587
- <h3>Ohne ReactiveForm</h3>
588
- <lux-file-list
589
- testDirective
590
- [luxLabel]="label"
591
- [luxDownloadActionConfig]="downloadActionConfig"
592
- [luxMaximumExtended]="maximumExtended"
593
- [luxCapture]="capture"
594
- [luxAccept]="accept"
595
- [luxHint]=""
596
- [luxHintShowOnlyOnFocus]="hintShowOnlyOnFocus"
597
- [luxDnDActive]="dndActive"
598
- [luxSelectedFiles]="selected"
599
- [luxContentsAsBlob]="contentAsBlob"
600
- [luxUploadReportProgress]="reportProgress"
601
- (luxSelectedFilesChange)="onSelectedChange($event)"
602
- [luxSelectedFilesAlwaysUseArray]="alwaysUseArray"
603
- (luxFocusIn)="log(showOutputEvents, 'luxFocusIn', $event)"
604
- (luxFocusOut)="log(showOutputEvents, 'luxFocusOut', $event)"
605
- #filelistexamplewithoutform
606
- >
607
- </lux-file-list>
608
- </div>
609
- `;
610
-
611
- const templateFixEmptyStyles1 = `
612
- import { Component, ContentChild, TemplateRef } from '@angular/core';
613
-
614
- @Component({
615
- selector: 'lux-detail-view',
616
- template: '',
617
- styles: ['']
618
- })
619
- export class LuxDetailViewComponent {
620
- @ContentChild(TemplateRef) tempRef: TemplateRef<any>;
621
-
622
- constructor() {}
623
- }
624
- `;
625
-
626
- const templateFixEmptyStyles2 = `
627
- import { Component, ContentChild, TemplateRef } from '@angular/core';
628
-
629
- @Component({
630
- selector:'lux-detail-view',
631
- template:'',
632
- styles:['']
633
- })
634
- export class LuxDetailViewComponent {
635
- @ContentChild(TemplateRef) tempRef: TemplateRef<any>;
636
-
637
- constructor() {}
638
- }
639
- `;
640
-
641
- const templateFixEmptyStyles3 = `
642
- import { Component, ContentChild, TemplateRef } from '@angular/core';
643
-
644
- @Component({
645
- selector:'lux-detail-view',
646
- template:'',
647
- styles: ['']
648
- })
649
- export class LuxDetailViewComponent {
650
- @ContentChild(TemplateRef) tempRef: TemplateRef<any>;
651
-
652
- constructor() {}
653
- }
654
- `;
655
-
656
- const templateFixEmptyStyles4 = `
657
- import { Component, ContentChild, TemplateRef } from "@angular/core";
658
-
659
- @Component({
660
- selector: "lux-detail-view",
661
- template: "",
662
- styles: [""]
663
- })
664
- export class LuxDetailViewComponent {
665
- @ContentChild(TemplateRef) tempRef: TemplateRef<any>;
666
-
667
- constructor() {}
668
- }
669
- `;
670
-
671
- const templateRemoveDatepickerDefaultLocale = `
672
- <lux-datepicker luxLabel="Datepicker" [luxCustomFilter]="myFilter" luxLocale="de-DE"></lux-datepicker>
673
- <lux-datepicker luxLabel="Datepicker" luxMaxDate="02/02/2002" luxMinDate="02.02.2000" luxLocale="de-DE" [(luxValue)]="value"></lux-datepicker>
674
- <lux-datepicker luxLocale="de-DE" luxLabel="Datepicker" luxControlBinding="datepicker"></lux-datepicker>
675
- `;
@@ -1,2 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- export declare function update130100(options: any): Rule;