@ihk-gfi/lux-components-update 15.5.1 → 16.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.
- package/README.md +3 -4
- package/add-lux-components/files/app/app.component.scss +4 -0
- package/add-lux-components/files/app/app.module.ts +4 -2
- package/add-lux-components/files/app/base/license-hint/license-hint.component.html +11 -8
- package/add-lux-components/files/app/home/home.component.html +3 -4
- package/add-lux-components/files/app/home/home.component.scss +0 -4
- package/add-lux-components/index.js +1 -13
- package/collection.json +4 -34
- package/package.json +22 -22
- package/update-dependencies/index.js +42 -45
- package/updates/16.0.0/index.d.ts +9 -0
- package/updates/16.0.0/index.js +66 -0
- package/utility/dependencies.js +1 -1
- package/theme/change-theme-to-authentic/index.d.ts +0 -4
- package/theme/change-theme-to-authentic/index.js +0 -128
- package/theme/change-theme-to-authentic/schema.json +0 -23
- package/theme/change-to-lux-icons/index.d.ts +0 -2
- package/theme/change-to-lux-icons/index.js +0 -382
- package/theme/change-to-lux-icons/schema.json +0 -23
- package/updates/15.0.0/files/src/main.ts +0 -17
- package/updates/15.0.0/files/src/test.ts +0 -4
- package/updates/15.0.0/index.d.ts +0 -8
- package/updates/15.0.0/index.js +0 -113
- package/updates/15.1.0/index.d.ts +0 -2
- package/updates/15.1.0/index.js +0 -20
- package/updates/15.1.0/schema.json +0 -23
- package/updates/15.2.0/index.d.ts +0 -2
- package/updates/15.2.0/index.js +0 -21
- package/updates/15.2.0/schema.json +0 -23
- package/updates/15.3.0/index.d.ts +0 -2
- package/updates/15.3.0/index.js +0 -20
- package/updates/15.3.0/schema.json +0 -23
- package/updates/15.4.0/index.d.ts +0 -2
- package/updates/15.4.0/index.js +0 -19
- package/updates/15.4.0/schema.json +0 -23
- package/updates/15.5.0/index.d.ts +0 -2
- package/updates/15.5.0/index.js +0 -20
- package/updates/15.5.0/schema.json +0 -23
- package/updates/15.5.1/index.d.ts +0 -2
- package/updates/15.5.1/index.js +0 -19
- package/updates/15.5.1/schema.json +0 -23
- /package/updates/{15.0.0 → 16.0.0}/schema.json +0 -0
|
@@ -1,382 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.changeToLuxIcons = void 0;
|
|
4
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
-
const files_1 = require("../../utility/files");
|
|
6
|
-
const html_manipulator_1 = require("../../utility/html/html-manipulator");
|
|
7
|
-
const logging_1 = require("../../utility/logging");
|
|
8
|
-
const util_1 = require("../../utility/util");
|
|
9
|
-
function changeToLuxIcons(options) {
|
|
10
|
-
return (0, schematics_1.chain)([
|
|
11
|
-
(0, util_1.messageInfoRule)(`Die FA- und Material-Icons werden durch die LUX-Icons ersetzt...`),
|
|
12
|
-
(tree, _context) => {
|
|
13
|
-
(0, files_1.iterateFilesAndModifyContent)(tree, options.path, (filePath, content) => {
|
|
14
|
-
const result = html_manipulator_1.HtmlManipulator.transform(content, '*[luxIconName]', updateIconAttrFn(filePath, true));
|
|
15
|
-
if (content !== result) {
|
|
16
|
-
(0, logging_1.logInfo)(filePath + ' wurde angepasst.');
|
|
17
|
-
tree.overwrite(filePath, result);
|
|
18
|
-
}
|
|
19
|
-
}, '.component.html');
|
|
20
|
-
},
|
|
21
|
-
(0, util_1.messageSuccessRule)(`Die FA- und Material-Icons wurden durch die LUX-Icons ersetzt.`)
|
|
22
|
-
]);
|
|
23
|
-
}
|
|
24
|
-
exports.changeToLuxIcons = changeToLuxIcons;
|
|
25
|
-
const updateIconAttrFn = (filePath, ac) => {
|
|
26
|
-
return (hit) => {
|
|
27
|
-
const pattern = new RegExp('((\\(|\\[|\\[\\()?luxIconName(\\)|\\]|\\)\\])?)\\s*=\\s*"(.*?)"', 'm');
|
|
28
|
-
const groups = pattern.exec(hit.elementContent);
|
|
29
|
-
if (groups && groups.length >= 4) {
|
|
30
|
-
let iconName = groups[4];
|
|
31
|
-
if (iconName.startsWith('fab ')) {
|
|
32
|
-
iconName = (0, util_1.replaceFirst)(iconName, 'fab ', '');
|
|
33
|
-
}
|
|
34
|
-
else if (iconName.startsWith('fas ')) {
|
|
35
|
-
iconName = (0, util_1.replaceFirst)(iconName, 'fas ', '');
|
|
36
|
-
}
|
|
37
|
-
else if (iconName.startsWith('far ')) {
|
|
38
|
-
iconName = (0, util_1.replaceFirst)(iconName, 'far ', '');
|
|
39
|
-
}
|
|
40
|
-
else if (iconName.startsWith('fal ')) {
|
|
41
|
-
iconName = (0, util_1.replaceFirst)(iconName, 'fal ', '');
|
|
42
|
-
}
|
|
43
|
-
const found = luxIcons.find((icon) => (ac ? icon.oldName : icon.newName) === iconName);
|
|
44
|
-
if (found) {
|
|
45
|
-
hit.elementContent = hit.elementContent.replace(pattern, '$1="' + (ac ? found.newName : found.oldName) + '"');
|
|
46
|
-
(0, logging_1.logInfo)(`${filePath}: Das Icon "${iconName}" -> ${ac ? found.newName : found.oldName}`);
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
if (!iconName.startsWith('lux-')) {
|
|
50
|
-
(0, logging_1.logWarn)(`${filePath}: Das Icon "${iconName}" konnte nicht ersetzt werden.`);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
class LuxIcon {
|
|
57
|
-
constructor(oldName, newName) {
|
|
58
|
-
this.oldName = oldName;
|
|
59
|
-
this.newName = newName;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
const luxIcons = [
|
|
63
|
-
new LuxIcon('account_circle', 'lux-interface-user-circle'),
|
|
64
|
-
new LuxIcon('add', 'lux-interface-add-1'),
|
|
65
|
-
new LuxIcon('android', 'lux-logo-android'),
|
|
66
|
-
new LuxIcon('check', 'lux-interface-validation-check'),
|
|
67
|
-
new LuxIcon('delete', 'lux-interface-delete-bin-2'),
|
|
68
|
-
new LuxIcon('done', 'lux-interface-validation-check'),
|
|
69
|
-
new LuxIcon('edit', 'lux-interface-edit-pencil'),
|
|
70
|
-
new LuxIcon('error', 'lux-interface-alert-warning-circle'),
|
|
71
|
-
new LuxIcon('fa-address-book', 'lux-phone-book'),
|
|
72
|
-
new LuxIcon('fa-address-card', 'lux-card'),
|
|
73
|
-
new LuxIcon('fa-align-justify', 'lux-interface-text-formatting-justified-align'),
|
|
74
|
-
new LuxIcon('fa-align-left', 'lux-interface-text-formatting-left-align'),
|
|
75
|
-
new LuxIcon('fa-angle-left', 'lux-interface-arrows-button-left'),
|
|
76
|
-
new LuxIcon('fa-angle-right', 'lux-interface-arrows-button-right'),
|
|
77
|
-
new LuxIcon('fa-angle-up', 'lux-interface-arrows-button-up'),
|
|
78
|
-
new LuxIcon('fa-angle-down', 'lux-interface-arrows-button-down'),
|
|
79
|
-
new LuxIcon('fa-archive', 'lux-interface-content-archive'),
|
|
80
|
-
new LuxIcon('fa-arrow-alt-circle-left', 'lux-interface-arrows-left-circle-2'),
|
|
81
|
-
new LuxIcon('fa-arrow-alt-circle-right', 'lux-interface-arrows-right-circle-2'),
|
|
82
|
-
new LuxIcon('fa-arrow-alt-circle-up', 'lux-interface-arrows-up-circle-2'),
|
|
83
|
-
new LuxIcon('fa-arrow-alt-circle-down', 'lux-interface-arrows-down-circle-2'),
|
|
84
|
-
new LuxIcon('fa-arrow-circle-down', 'lux-interface-arrows-down-circle-1'),
|
|
85
|
-
new LuxIcon('fa-arrow-circle-left', 'lux-interface-arrows-left-circle-1'),
|
|
86
|
-
new LuxIcon('fa-arrow-circle-right', 'lux-interface-arrows-right-circle-1'),
|
|
87
|
-
new LuxIcon('fa-arrow-circle-up', 'lux-interface-arrows-up-circle-1'),
|
|
88
|
-
new LuxIcon('fa-arrow-down', 'lux-interface-arrows-down'),
|
|
89
|
-
new LuxIcon('fa-arrow-left', 'lux-interface-arrows-left'),
|
|
90
|
-
new LuxIcon('fa-arrow-right', 'lux-interface-arrows-right'),
|
|
91
|
-
new LuxIcon('fa-arrow-up', 'lux-interface-arrows-up'),
|
|
92
|
-
new LuxIcon('fa-arrows-v', 'lux-interface-arrows-vertical'),
|
|
93
|
-
new LuxIcon('fa-at', 'lux-mail-sign-at'),
|
|
94
|
-
new LuxIcon('fa-atom', 'lux-atom'),
|
|
95
|
-
new LuxIcon('fa-automobile', 'lux-car'),
|
|
96
|
-
new LuxIcon('fa-ban', 'lux-interface-block'),
|
|
97
|
-
new LuxIcon('fa-bar', 'lux-interface-setting-menu-1'),
|
|
98
|
-
new LuxIcon('fa-bars', 'lux-interface-setting-menu-1'),
|
|
99
|
-
new LuxIcon('fa-bed', 'lux-travel-hotel-bed-2'),
|
|
100
|
-
new LuxIcon('fa-bezier-curve', 'lux-bezier-curve'),
|
|
101
|
-
new LuxIcon('fa-binoculars', 'lux-interface-edit-binocular'),
|
|
102
|
-
new LuxIcon('fa-birthday-cake', 'lux-food-cake'),
|
|
103
|
-
new LuxIcon('fa-bolt', 'lux-image-flash-2'),
|
|
104
|
-
new LuxIcon('fa-bomb', 'lux-interface-edit-bomb'),
|
|
105
|
-
new LuxIcon('fa-book', 'lux-interface-content-book'),
|
|
106
|
-
new LuxIcon('fa-book-open', 'lux-interface-content-book-open'),
|
|
107
|
-
new LuxIcon('fa-book-reader', 'lux-book-reader'),
|
|
108
|
-
new LuxIcon('fa-briefcase', 'lux-shopping-briefcase'),
|
|
109
|
-
new LuxIcon('fa-building', 'lux-factory'),
|
|
110
|
-
new LuxIcon('fa-bullhorn', 'lux-interface-share-mega-phone-1'),
|
|
111
|
-
new LuxIcon('fa-business-time', 'lux-suitcase-time'),
|
|
112
|
-
new LuxIcon('fa-calculator', 'lux-calculator'),
|
|
113
|
-
new LuxIcon('fa-calendar-alt', 'lux-interface-calendar-mark'),
|
|
114
|
-
new LuxIcon('fa-calendar-check', 'lux-interface-calendar-check'),
|
|
115
|
-
new LuxIcon('fa-calendar-plus', 'lux-interface-calendar-add'),
|
|
116
|
-
new LuxIcon('fa-calendar-times', 'lux-time'),
|
|
117
|
-
new LuxIcon('fa-camera-retro', 'lux-image-camera-1'),
|
|
118
|
-
new LuxIcon('fa-car', 'lux-car'),
|
|
119
|
-
new LuxIcon('fa-cash-register', 'lux-money-cashier'),
|
|
120
|
-
new LuxIcon('fa-chalkboard-teacher', 'lux-drawing-board'),
|
|
121
|
-
new LuxIcon('fa-chart-bar', 'lux-graph-bars'),
|
|
122
|
-
new LuxIcon('fa-chart-line', 'lux-money-graph'),
|
|
123
|
-
new LuxIcon('fa-check', 'lux-interface-validation-check'),
|
|
124
|
-
new LuxIcon('fa-check-circle', 'lux-interface-validation-check-circle'),
|
|
125
|
-
new LuxIcon('fa-check-circle-o', 'lux-interface-validation-check-circle'),
|
|
126
|
-
new LuxIcon('fa-check-square', 'lux-interface-validation-check-square-1'),
|
|
127
|
-
new LuxIcon('fa-chevron-left', 'lux-interface-arrows-button-left'),
|
|
128
|
-
new LuxIcon('fa-chevron-right', 'lux-interface-arrows-button-right'),
|
|
129
|
-
new LuxIcon('fa-chevron-up', 'lux-interface-arrows-button-up'),
|
|
130
|
-
new LuxIcon('fa-chevron-down', 'lux-interface-arrows-button-down'),
|
|
131
|
-
new LuxIcon('fa-child', 'lux-body-kid'),
|
|
132
|
-
new LuxIcon('fa-circle', 'lux-interface-geometric-circle'),
|
|
133
|
-
new LuxIcon('fa-city', 'lux-city'),
|
|
134
|
-
new LuxIcon('fa-clipboard', 'lux-interface-file-clipboard'),
|
|
135
|
-
new LuxIcon('fa-clipboard-check', 'lux-interface-file-clipboard-check'),
|
|
136
|
-
new LuxIcon('fa-clipboard-list', 'lux-interface-file-clipboard-text'),
|
|
137
|
-
new LuxIcon('fa-clock', 'lux-interface-time-clock-circle'),
|
|
138
|
-
new LuxIcon('fa-clone', 'lux-clone'),
|
|
139
|
-
new LuxIcon('fa-close', 'lux-interface-delete-1'),
|
|
140
|
-
new LuxIcon('fa-cloud', 'lux-interface-weather-cloud-1'),
|
|
141
|
-
new LuxIcon('fa-cog', 'lux-interface-setting-cog'),
|
|
142
|
-
new LuxIcon('fa-cogs', 'lux-cogs'),
|
|
143
|
-
new LuxIcon('fa-columns', 'lux-interface-layout-three-columns'),
|
|
144
|
-
new LuxIcon('fa-comment', 'lux-oval'),
|
|
145
|
-
new LuxIcon('fa-comments', 'lux-ovals'),
|
|
146
|
-
new LuxIcon('fa-copy', 'lux-clone'),
|
|
147
|
-
new LuxIcon('fa-credit-card', 'lux-money-atm-card-1'),
|
|
148
|
-
new LuxIcon('fa-crop-alt', 'lux-interface-edit-crop'),
|
|
149
|
-
new LuxIcon('fa-crosshairs', 'lux-travel-map-location-target-1'),
|
|
150
|
-
new LuxIcon('fa-cut', 'lux-interface-edit-scissors'),
|
|
151
|
-
new LuxIcon('fa-database', 'lux-database'),
|
|
152
|
-
new LuxIcon('fa-dice-five', 'lux-dice'),
|
|
153
|
-
new LuxIcon('fa-download', 'lux-interface-download-button-2'),
|
|
154
|
-
new LuxIcon('fa-edit', 'lux-interface-edit-write-2'),
|
|
155
|
-
new LuxIcon('fa-ellipsis-h', 'lux-interface-setting-menu-horizontal'),
|
|
156
|
-
new LuxIcon('fa-ellipsis-v', 'lux-interface-setting-menu-vertical'),
|
|
157
|
-
new LuxIcon('fa-envelope', 'lux-mail-send-envelope'),
|
|
158
|
-
new LuxIcon('fa-envelope-open', 'lux-envelope-open'),
|
|
159
|
-
new LuxIcon('fa-envelope-open-text', 'lux-envelope-open-text'),
|
|
160
|
-
new LuxIcon('fa-eraser', 'lux-interface-text-formatting-eraser'),
|
|
161
|
-
new LuxIcon('fa-euro-sign', 'lux-money-currency-euro'),
|
|
162
|
-
new LuxIcon('fa-exchange-alt', 'lux-exchange'),
|
|
163
|
-
new LuxIcon('fa-exclamation', 'lux-exclamation-mark'),
|
|
164
|
-
new LuxIcon('fa-exclamation-circle', 'lux-interface-alert-warning-circle'),
|
|
165
|
-
new LuxIcon('fa-exclamation-triangle', 'lux-interface-alert-warning-triangle'),
|
|
166
|
-
new LuxIcon('fa-expand', 'lux-interface-arrows-expand-1'),
|
|
167
|
-
new LuxIcon('fa-external-link', 'lux-interface-arrows-expand-5'),
|
|
168
|
-
new LuxIcon('fa-external-link-alt', 'lux-interface-arrows-expand-5'),
|
|
169
|
-
new LuxIcon('fa-eye', 'lux-interface-edit-view'),
|
|
170
|
-
new LuxIcon('fa-file', 'lux-interface-content-file'),
|
|
171
|
-
new LuxIcon('fa-file-alt', 'lux-interface-file-text'),
|
|
172
|
-
new LuxIcon('fa-file-archive', 'lux-interface-file-zip'),
|
|
173
|
-
new LuxIcon('fa-file-contract', 'lux-file-contract'),
|
|
174
|
-
new LuxIcon('fa-file-csv', 'lux-file-csv'),
|
|
175
|
-
new LuxIcon('fa-file-download', 'lux-file-download'),
|
|
176
|
-
new LuxIcon('fa-file-excel', 'lux-interface-file-delete'),
|
|
177
|
-
new LuxIcon('fa-file-image', 'lux-file-image'),
|
|
178
|
-
new LuxIcon('fa-file-import', 'lux-file-import'),
|
|
179
|
-
new LuxIcon('fa-file-invoice', 'lux-file-invoice'),
|
|
180
|
-
new LuxIcon('fa-file-invoice-dollar', 'money'),
|
|
181
|
-
new LuxIcon('fa-file-medical-alt', 'lux-file-medical'),
|
|
182
|
-
new LuxIcon('fa-file-pdf', 'lux-file-pdf'),
|
|
183
|
-
new LuxIcon('fa-file-powerpoint', 'lux-file-powerpoint'),
|
|
184
|
-
new LuxIcon('fa-file-signature', 'lux-file-signature'),
|
|
185
|
-
new LuxIcon('fa-file-upload', 'lux-file-upload'),
|
|
186
|
-
new LuxIcon('fa-file-word', 'lux-file-word'),
|
|
187
|
-
new LuxIcon('fa-filter', 'lux-interface-text-formatting-filter-1'),
|
|
188
|
-
new LuxIcon('fa-filter-circle-xmark', 'lux-filter-remove'),
|
|
189
|
-
new LuxIcon('fa-flag', 'lux-travel-map-rectangle-flag'),
|
|
190
|
-
new LuxIcon('fa-folder', 'lux-interface-folder'),
|
|
191
|
-
new LuxIcon('fa-folder-open', 'lux-folder-open'),
|
|
192
|
-
new LuxIcon('fa-font', 'lux-interface-text-formatting-font-size'),
|
|
193
|
-
new LuxIcon('fa-frown', 'lux-mail-smiley-sad-face'),
|
|
194
|
-
new LuxIcon('fa-gavel', 'lux-interface-setting-hammer'),
|
|
195
|
-
new LuxIcon('fa-gear', 'lux-interface-setting-cog'),
|
|
196
|
-
new LuxIcon('fa-gears', 'lux-cogs'),
|
|
197
|
-
new LuxIcon('fa-globe', 'lux-programming-web'),
|
|
198
|
-
new LuxIcon('fa-globe-americas', 'lux-travel-map-earth-1'),
|
|
199
|
-
new LuxIcon('fa-globe-europe', 'lux-travel-map-earth-2'),
|
|
200
|
-
new LuxIcon('fa-graduation-cap', 'lux-graduation cap'),
|
|
201
|
-
new LuxIcon('fa-grip-horizontal', 'lux-dial-pad-6-digits'),
|
|
202
|
-
new LuxIcon('fa-hammer', 'lux-interface-setting-hammer'),
|
|
203
|
-
new LuxIcon('fa-hand-peace', 'lux-peace'),
|
|
204
|
-
new LuxIcon('fa-hand-peace-o', 'lux-peace'),
|
|
205
|
-
new LuxIcon('fa-handshake', 'lux-handshake'),
|
|
206
|
-
new LuxIcon('fa-handshake-o', 'lux-handshake'),
|
|
207
|
-
new LuxIcon('fa-history', 'lux-interface-content-archive-folder'),
|
|
208
|
-
new LuxIcon('fa-home', 'lux-interface-home-3'),
|
|
209
|
-
new LuxIcon('fa-hourglass-end', 'lux-hour-glass-end'),
|
|
210
|
-
new LuxIcon('fa-hourglass-start', 'lux-hour-glass-start'),
|
|
211
|
-
new LuxIcon('fa-id-badge', 'lux-id-badge'),
|
|
212
|
-
new LuxIcon('fa-id-card', 'lux-id-card'),
|
|
213
|
-
new LuxIcon('fa-image', 'lux-image-picture-landscape-2'),
|
|
214
|
-
new LuxIcon('fa-inbox', 'lux-mail-inbox'),
|
|
215
|
-
new LuxIcon('fa-industry', 'lux-industry'),
|
|
216
|
-
new LuxIcon('fa-info', 'lux-info'),
|
|
217
|
-
new LuxIcon('fa-info-circle', 'lux-interface-alert-information-circle'),
|
|
218
|
-
new LuxIcon('fa-key', 'lux-interface-login-key'),
|
|
219
|
-
new LuxIcon('fa-life-ring', 'lux-travel-wayfinder-lifebuoy'),
|
|
220
|
-
new LuxIcon('fa-lightbulb', 'lux-interface-lighting-light-bulb'),
|
|
221
|
-
new LuxIcon('fa-link', 'lux-interface-link'),
|
|
222
|
-
new LuxIcon('fa-list', 'lux-interface-text-formatting-list-bullets'),
|
|
223
|
-
new LuxIcon('fa-list-alt', 'lux-interface-text-formatting-list-bullets'),
|
|
224
|
-
new LuxIcon('fa-list-ol', 'lux-ordered-list'),
|
|
225
|
-
new LuxIcon('fa-list-ul', 'lux-interface-text-formatting-list-bullets'),
|
|
226
|
-
new LuxIcon('fa-lock', 'lux-interface-lock'),
|
|
227
|
-
new LuxIcon('fa-lock-open', 'lux-interface-lock-unlock'),
|
|
228
|
-
new LuxIcon('fa-long-arrow-right', 'lux-interface-arrows-right'),
|
|
229
|
-
new LuxIcon('fa-magic', 'lux-interface-edit-design-tool-selection-wand'),
|
|
230
|
-
new LuxIcon('fa-mail-bulk', 'lux-bulk'),
|
|
231
|
-
new LuxIcon('fa-map', 'lux-travel-map'),
|
|
232
|
-
new LuxIcon('fa-map-marker-alt', 'lux-map-marker'),
|
|
233
|
-
new LuxIcon('fa-marker', 'lux-location-pin-empty'),
|
|
234
|
-
new LuxIcon('fa-minus', 'lux-interface-remove-1'),
|
|
235
|
-
new LuxIcon('fa-minus-circle', 'lux-interface-remove-circle'),
|
|
236
|
-
new LuxIcon('fa-moon', 'lux-interface-weather-moon'),
|
|
237
|
-
new LuxIcon('fa-mouse-pointer', 'lux-interface-cursor-arrow-1'),
|
|
238
|
-
new LuxIcon('fa-network-wired', 'lux-network-structure'),
|
|
239
|
-
new LuxIcon('fa-newspaper', 'lux-news-paper'),
|
|
240
|
-
new LuxIcon('fa-not-equal', 'lux-not-equal'),
|
|
241
|
-
new LuxIcon('fa-object-group', 'lux-group-objects'),
|
|
242
|
-
new LuxIcon('fa-paper-plane', 'lux-mail-send-email'),
|
|
243
|
-
new LuxIcon('fa-paperclip', 'lux-interface-edit-attachment-1'),
|
|
244
|
-
new LuxIcon('fa-pause-circle', 'lux-control-button-pause-circle'),
|
|
245
|
-
new LuxIcon('fa-pen', 'lux-interface-edit-pen-1'),
|
|
246
|
-
new LuxIcon('fa-pen-alt', 'lux-interface-edit-pen-2'),
|
|
247
|
-
new LuxIcon('fa-pen-square', 'lux-interface-edit-write-2'),
|
|
248
|
-
new LuxIcon('fa-pencil', 'lux-interface-edit-pencil'),
|
|
249
|
-
new LuxIcon('fa-pencil-alt', 'lux-interface-edit-pencil'),
|
|
250
|
-
new LuxIcon('fa-percentage', 'lux-percentage'),
|
|
251
|
-
new LuxIcon('fa-flux-capacitor', 'lux-flux-capacitor'),
|
|
252
|
-
new LuxIcon('fa-phone', 'lux-phone'),
|
|
253
|
-
new LuxIcon('fa-play', 'lux-control-button-play'),
|
|
254
|
-
new LuxIcon('fa-play-circle', 'lux-control-button-play-circle'),
|
|
255
|
-
new LuxIcon('fa-plug', 'lux-plug'),
|
|
256
|
-
new LuxIcon('fa-plus', 'lux-interface-add-1'),
|
|
257
|
-
new LuxIcon('fa-plus-circle', 'lux-interface-add-circle'),
|
|
258
|
-
new LuxIcon('fa-plus-square', 'lux-interface-add-square'),
|
|
259
|
-
new LuxIcon('fa-poll', 'lux-graph-poll-vertical'),
|
|
260
|
-
new LuxIcon('fa-poll-h', 'lux-graph-poll-horizontal'),
|
|
261
|
-
new LuxIcon('fa-portrait', 'lux-interface-user-square-alternate'),
|
|
262
|
-
new LuxIcon('fa-power-off', 'lux-control-button-power-1'),
|
|
263
|
-
new LuxIcon('fa-print', 'lux-printer'),
|
|
264
|
-
new LuxIcon('fa-project-diagram', 'lux-interface-hierarchy-1'),
|
|
265
|
-
new LuxIcon('fa-puzzle-piece', 'lux-programming-module-puzzle'),
|
|
266
|
-
new LuxIcon('fa-question', 'lux-question-mark'),
|
|
267
|
-
new LuxIcon('fa-question-circle', 'lux-interface-help-question-circle'),
|
|
268
|
-
new LuxIcon('fa-ravelry', 'lux-registred-trademark'),
|
|
269
|
-
new LuxIcon('fa-readme', 'lux-book-readme'),
|
|
270
|
-
new LuxIcon('fa-receipt', 'lux-receipt'),
|
|
271
|
-
new LuxIcon('fa-redo', 'lux-interface-arrows-turn-forward'),
|
|
272
|
-
new LuxIcon('fa-refresh', 'lux-interface-arrows-synchronize'),
|
|
273
|
-
new LuxIcon('fa-sync', 'lux-interface-arrows-synchronize'),
|
|
274
|
-
new LuxIcon('fa-robot', 'lux-robot-cyborg'),
|
|
275
|
-
new LuxIcon('fa-route', 'lux-route'),
|
|
276
|
-
new LuxIcon('fa-ruler', 'lux-interface-edit-ruler'),
|
|
277
|
-
new LuxIcon('fa-running', 'lux-running'),
|
|
278
|
-
new LuxIcon('fa-satellite-dish', 'lux-interface-share-satellite'),
|
|
279
|
-
new LuxIcon('fa-save', 'lux-save'),
|
|
280
|
-
new LuxIcon('fa-scroll', 'lux-scroll'),
|
|
281
|
-
new LuxIcon('fa-search', 'lux-interface-search'),
|
|
282
|
-
new LuxIcon('fa-search-plus', 'lux-interface-edit-zoom-in'),
|
|
283
|
-
new LuxIcon('fa-search-minus', 'lux-interface-edit-zoom-out'),
|
|
284
|
-
new LuxIcon('fa-searchengin', 'lux-searchengine'),
|
|
285
|
-
new LuxIcon('fa-sign-in-alt', 'lux-interface-login'),
|
|
286
|
-
new LuxIcon('fa-sign-out-alt', 'lux-interface-logout'),
|
|
287
|
-
new LuxIcon('fa-signature', 'lux-signature'),
|
|
288
|
-
new LuxIcon('fa-sitemap', 'lux-network-structure'),
|
|
289
|
-
new LuxIcon('fa-sliders-h', 'lux-interface-setting-slider-horizontal'),
|
|
290
|
-
new LuxIcon('fa-solid fa-barcode', 'lux-money-cashier-bar-code'),
|
|
291
|
-
new LuxIcon('fa-solid fa-bug', 'lux-programming-bug'),
|
|
292
|
-
new LuxIcon('fa-sort', 'lux-interface-page-controller-scroll-up-down'),
|
|
293
|
-
new LuxIcon('fa-sort-up', 'lux-interface-arrows-button-up'),
|
|
294
|
-
new LuxIcon('fa-sort-down', 'lux-interface-arrows-button-down'),
|
|
295
|
-
new LuxIcon('fa-sort-amount-down', 'lux-amount-down-asc'),
|
|
296
|
-
new LuxIcon('fa-sort-amount-down-alt', 'lux-amount-down-desc-alt'),
|
|
297
|
-
new LuxIcon('fa-sort-amount-up', 'lux-amount-up-asc'),
|
|
298
|
-
new LuxIcon('fa-sort-amount-up-alt', 'lux-amount-up-desc-alt'),
|
|
299
|
-
new LuxIcon('fa-spell-check', 'lux-spellcheck'),
|
|
300
|
-
new LuxIcon('fa-spinner', 'lux-spinner'),
|
|
301
|
-
new LuxIcon('fa-star', 'lux-interface-favorite-star'),
|
|
302
|
-
new LuxIcon('fa-star-half-alt', 'lux-interface-award-half-star'),
|
|
303
|
-
new LuxIcon('fa-sticky-note', 'lux-interface-file-sticky-note'),
|
|
304
|
-
new LuxIcon('fa-stopwatch', 'lux-stopwatch'),
|
|
305
|
-
new LuxIcon('fa-stream', 'lux-stopwatch'),
|
|
306
|
-
new LuxIcon('fa-sun', 'x-interface-lighting-brightness-1'),
|
|
307
|
-
new LuxIcon('fa-sync', 'lux-interface-arrows-synchronize'),
|
|
308
|
-
new LuxIcon('fa-sync-alt', 'lux-interface-arrows-reload-2'),
|
|
309
|
-
new LuxIcon('fa-table', 'lux-interface-layout-7'),
|
|
310
|
-
new LuxIcon('fa-tachometer-alt', 'lux-gauge'),
|
|
311
|
-
new LuxIcon('fa-tag', 'lux-interface-bookmark-tag'),
|
|
312
|
-
new LuxIcon('fa-tasks', 'lux-tasks'),
|
|
313
|
-
new LuxIcon('fa-th', 'lux-interface-edit-grid'),
|
|
314
|
-
new LuxIcon('fa-th-large', 'lux-interface-layout-border-full'),
|
|
315
|
-
new LuxIcon('fa-thumbs-down', 'lux-interface-favorite-dislike-1'),
|
|
316
|
-
new LuxIcon('fa-thumbs-up', 'lux-interface-favorite-like-1'),
|
|
317
|
-
new LuxIcon('fa-thumbtack', 'lux-interface-edit-pin-2'),
|
|
318
|
-
new LuxIcon('fa-times', 'lux-interface-delete-1'),
|
|
319
|
-
new LuxIcon('fa-times-circle', 'lux-interface-delete-circle'),
|
|
320
|
-
new LuxIcon('fa-toolbox', 'lux-interface-setting-tool-box'),
|
|
321
|
-
new LuxIcon('fa-tools', 'lux-tools'),
|
|
322
|
-
new LuxIcon('fa-trash', 'lux-interface-delete-bin-2'),
|
|
323
|
-
new LuxIcon('fa-trash-alt', 'lux-interface-delete-bin-5'),
|
|
324
|
-
new LuxIcon('fa-trophy', 'lux-interface-award-trophy'),
|
|
325
|
-
new LuxIcon('fa-undo', 'lux-interface-arrows-turn-backward'),
|
|
326
|
-
new LuxIcon('fa-university', 'lux-university'),
|
|
327
|
-
new LuxIcon('fa-unlink', 'lux-interface-unlink'),
|
|
328
|
-
new LuxIcon('fa-upload', 'lux-interface-upload-button-2'),
|
|
329
|
-
new LuxIcon('fa-user', 'lux-interface-user-single'),
|
|
330
|
-
new LuxIcon('fa-user-alt', 'lux-interface-user-single'),
|
|
331
|
-
new LuxIcon('fa-user-astronaut', 'lux-ecology-science-planet'),
|
|
332
|
-
new LuxIcon('fa-user-check', 'lux-interface-user-check'),
|
|
333
|
-
new LuxIcon('fa-user-circle', 'lux-interface-user-circle'),
|
|
334
|
-
new LuxIcon('fa-user-clock', 'lux-clock'),
|
|
335
|
-
new LuxIcon('fa-user-cog', 'lux-cog'),
|
|
336
|
-
new LuxIcon('fa-user-edit', 'lux-interface-user-edit'),
|
|
337
|
-
new LuxIcon('fa-user-friends', 'lux-interface-user-multiple'),
|
|
338
|
-
new LuxIcon('fa-user-graduate', 'lux-graduate'),
|
|
339
|
-
new LuxIcon('fa-user-minus', 'lux-interface-user-remove'),
|
|
340
|
-
new LuxIcon('fa-user-plus', 'lux-interface-user-add'),
|
|
341
|
-
new LuxIcon('fa-user-secret', 'lux-interface-user-lock'),
|
|
342
|
-
new LuxIcon('fa-user-tag', 'lux-tag'),
|
|
343
|
-
new LuxIcon('fa-user-tie', 'lux-tie'),
|
|
344
|
-
new LuxIcon('fa-user-times', 'lux-interface-user-delete'),
|
|
345
|
-
new LuxIcon('fa-users', 'lux-interface-user-multiple'),
|
|
346
|
-
new LuxIcon('fa-users-cog', 'lux-multiple-cog'),
|
|
347
|
-
new LuxIcon('fa-utensils', 'lux-food-kitchenware-fork-spoon'),
|
|
348
|
-
new LuxIcon('fa-wallet', 'lux-money-wallet'),
|
|
349
|
-
new LuxIcon('fa-weight', 'lux-weight'),
|
|
350
|
-
new LuxIcon('fa-window-close', 'lux-close'),
|
|
351
|
-
new LuxIcon('fa-window-maximize', 'lux-maximize'),
|
|
352
|
-
new LuxIcon('fa-window-restore', 'lux-programming-browser-window'),
|
|
353
|
-
new LuxIcon('fa-wrench', 'lux-interface-setting-wrench'),
|
|
354
|
-
new LuxIcon('fa-handshake', 'lux-handshake'),
|
|
355
|
-
new LuxIcon('file_download', 'lux-file-download'),
|
|
356
|
-
new LuxIcon('file_upload', 'lux-file-upload'),
|
|
357
|
-
new LuxIcon('info', 'lux-info'),
|
|
358
|
-
new LuxIcon('looks_3', 'lux-three'),
|
|
359
|
-
new LuxIcon('looks_one', 'lux-one'),
|
|
360
|
-
new LuxIcon('looks_two', 'lux-two'),
|
|
361
|
-
new LuxIcon('mail_outline', 'lux-mail-send-envelope'),
|
|
362
|
-
new LuxIcon('person', 'lux-interface-user-single'),
|
|
363
|
-
new LuxIcon('refresh', 'lux-interface-arrows-round-right'),
|
|
364
|
-
new LuxIcon('remove', 'lux-interface-remove-1'),
|
|
365
|
-
new LuxIcon('rotate_left', 'lux-rotate-left'),
|
|
366
|
-
new LuxIcon('rotate_right', 'lux-rotate-right'),
|
|
367
|
-
new LuxIcon('save', 'lux-save'),
|
|
368
|
-
new LuxIcon('sync', 'lux-interface-arrows-synchronize'),
|
|
369
|
-
new LuxIcon('undo', 'lux-mail-send-reply'),
|
|
370
|
-
new LuxIcon('warning', 'lux-interface-alert-warning-triangle'),
|
|
371
|
-
new LuxIcon('fa-bookmark', 'lux-interface-bookmark'),
|
|
372
|
-
new LuxIcon('fa-money-check-alt', 'lux-money-atm-card-1'),
|
|
373
|
-
new LuxIcon('fa-cloud-upload-alt', 'lux-programming-cloud-upload'),
|
|
374
|
-
new LuxIcon('fa-bell', 'lux-interface-alert-alarm-bell-2'),
|
|
375
|
-
new LuxIcon('fa-caret-left', 'lux-interface-arrows-button-left'),
|
|
376
|
-
new LuxIcon('keyboard_arrow_left', 'lux-interface-arrows-button-left'),
|
|
377
|
-
new LuxIcon('keyboard_arrow_right', 'lux-interface-arrows-button-right'),
|
|
378
|
-
new LuxIcon('fa-fill', 'lux-interface-edit-spray'),
|
|
379
|
-
new LuxIcon('fa-video', 'lux-camera-video'),
|
|
380
|
-
new LuxIcon('fa-at', 'lux-mail-sign-at'),
|
|
381
|
-
new LuxIcon('fa-file-code', 'lux-programming-script-file-code-1')
|
|
382
|
-
];
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "ChangeToLuxIconsSchema",
|
|
4
|
-
"title": "Die neuen LUX-Icons werden im Projekt eingerichtet",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"description": "Die alten FA- und Material-Icons werden durch die neuen LUX-Icons ersetzt.",
|
|
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,17 +0,0 @@
|
|
|
1
|
-
/***************************************************************************************************
|
|
2
|
-
* Load `$localize` onto the global scope - used if i18n tags appear in Angular templates.
|
|
3
|
-
*/
|
|
4
|
-
import '@angular/localize/init';
|
|
5
|
-
|
|
6
|
-
import { enableProdMode } from '@angular/core';
|
|
7
|
-
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
8
|
-
import { AppModule } from './app/app.module';
|
|
9
|
-
import { environment } from './environments/environment';
|
|
10
|
-
|
|
11
|
-
if (environment.production) {
|
|
12
|
-
enableProdMode();
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
platformBrowserDynamic()
|
|
16
|
-
.bootstrapModule(AppModule)
|
|
17
|
-
.catch((err) => console.log(err));
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
-
export declare const updateMajorVersion = "15";
|
|
3
|
-
export declare const updateMinVersion = "14.8.0";
|
|
4
|
-
export declare const updateNodeMinVersion = "16.0.0";
|
|
5
|
-
export declare function update(options: any): Rule;
|
|
6
|
-
export declare function updateProject(options: any): Rule;
|
|
7
|
-
export declare function removeMaAndFaIcons(options: any): Rule;
|
|
8
|
-
export declare function updateProjectStructure(options: any): Rule;
|
package/updates/15.0.0/index.js
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateProjectStructure = exports.removeMaAndFaIcons = exports.updateProject = exports.update = exports.updateNodeMinVersion = exports.updateMinVersion = exports.updateMajorVersion = void 0;
|
|
4
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
-
const chalk = require("chalk");
|
|
6
|
-
const index_1 = require("../../update-dependencies/index");
|
|
7
|
-
const files_1 = require("../../utility/files");
|
|
8
|
-
const json_1 = require("../../utility/json");
|
|
9
|
-
const logging_1 = require("../../utility/logging");
|
|
10
|
-
const typescript_1 = require("../../utility/typescript");
|
|
11
|
-
const util_1 = require("../../utility/util");
|
|
12
|
-
const validation_1 = require("../../utility/validation");
|
|
13
|
-
exports.updateMajorVersion = '15';
|
|
14
|
-
exports.updateMinVersion = '14.8.0';
|
|
15
|
-
exports.updateNodeMinVersion = '16.0.0';
|
|
16
|
-
function update(options) {
|
|
17
|
-
return (_tree, _context) => {
|
|
18
|
-
return (0, schematics_1.chain)([
|
|
19
|
-
check(options),
|
|
20
|
-
(0, util_1.applyRuleIf)(exports.updateMinVersion, updateProject(options)),
|
|
21
|
-
(0, util_1.finish)(false, `${chalk.yellowBright('Wichtig!!!')} Hinweise im Update Guide beachten -> https://github.com/IHK-GfI/lux-components/wiki/update-guide-${exports.updateMajorVersion}`)
|
|
22
|
-
]);
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
exports.update = update;
|
|
26
|
-
function updateProject(options) {
|
|
27
|
-
return (_tree, _context) => {
|
|
28
|
-
return (0, schematics_1.chain)([
|
|
29
|
-
(0, util_1.messageInfoRule)(`LUX-Components ${exports.updateMajorVersion} werden aktualisiert...`),
|
|
30
|
-
(0, index_1.updateDependencies)(),
|
|
31
|
-
removeMaAndFaIcons(options),
|
|
32
|
-
updateProjectStructure(options),
|
|
33
|
-
removeLuxMasterDetailMobileHelperService(options),
|
|
34
|
-
(0, util_1.messageSuccessRule)(`LUX-Components ${exports.updateMajorVersion} wurden aktualisiert.`)
|
|
35
|
-
]);
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
exports.updateProject = updateProject;
|
|
39
|
-
function removeMaAndFaIcons(options) {
|
|
40
|
-
return (_tree, _context) => {
|
|
41
|
-
return (0, schematics_1.chain)([
|
|
42
|
-
(0, util_1.messageInfoRule)(`Abhängigkeiten der Material- und FA-Icons werden entfernt...`),
|
|
43
|
-
(0, index_1.deleteDep)('@fortawesome/fontawesome-free'),
|
|
44
|
-
(0, index_1.deleteDep)('material-design-icons-iconfont'),
|
|
45
|
-
(tree, _context) => {
|
|
46
|
-
var _a;
|
|
47
|
-
const filePath = ((_a = options.path) !== null && _a !== void 0 ? _a : '.') + '/src/index.html';
|
|
48
|
-
const content = tree.readText(filePath);
|
|
49
|
-
const modifiedContent = content
|
|
50
|
-
.split('\n')
|
|
51
|
-
.filter((line) => !line.includes('material-icons/material-design-icons.css') && !line.includes('fontawesome/css/all.css'))
|
|
52
|
-
.join('\n');
|
|
53
|
-
if (content !== modifiedContent) {
|
|
54
|
-
tree.overwrite(filePath, modifiedContent);
|
|
55
|
-
(0, logging_1.logInfo)(`${filePath}: Die Links auf die Css-Dateien entfernt.`);
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
(0, json_1.deleteJsonArray)('/angular.json', ['projects', options.project, 'architect', 'build', 'options', 'assets'], (node) => (0, json_1.findObjectPropertyInArray)(node, 'input', './node_modules/@fortawesome/fontawesome-free/css')),
|
|
59
|
-
(0, json_1.deleteJsonArray)('/angular.json', ['projects', options.project, 'architect', 'build', 'options', 'assets'], (node) => (0, json_1.findObjectPropertyInArray)(node, 'input', './node_modules/@fortawesome/fontawesome-free/webfonts')),
|
|
60
|
-
(0, json_1.deleteJsonArray)('/angular.json', ['projects', options.project, 'architect', 'build', 'options', 'assets'], (node) => (0, json_1.findObjectPropertyInArray)(node, 'input', './node_modules/material-design-icons-iconfont/dist')),
|
|
61
|
-
(0, json_1.deleteJsonArray)('/angular.json', ['projects', options.project, 'architect', 'build', 'options', 'assets'], (node) => (0, json_1.findObjectPropertyInArray)(node, 'input', './node_modules/material-design-icons-iconfont/dist/fonts')),
|
|
62
|
-
(0, json_1.deleteJsonArray)('/angular.json', ['projects', options.project, 'architect', 'test', 'options', 'assets'], (node) => (0, json_1.findObjectPropertyInArray)(node, 'input', './node_modules/@fortawesome/fontawesome-free/css')),
|
|
63
|
-
(0, json_1.deleteJsonArray)('/angular.json', ['projects', options.project, 'architect', 'test', 'options', 'assets'], (node) => (0, json_1.findObjectPropertyInArray)(node, 'input', './node_modules/@fortawesome/fontawesome-free/webfonts')),
|
|
64
|
-
(0, json_1.deleteJsonArray)('/angular.json', ['projects', options.project, 'architect', 'test', 'options', 'assets'], (node) => (0, json_1.findObjectPropertyInArray)(node, 'input', './node_modules/material-design-icons-iconfont/dist')),
|
|
65
|
-
(0, json_1.deleteJsonArray)('/angular.json', ['projects', options.project, 'architect', 'test', 'options', 'assets'], (node) => (0, json_1.findObjectPropertyInArray)(node, 'input', './node_modules/material-design-icons-iconfont/dist/fonts')),
|
|
66
|
-
(0, util_1.messageSuccessRule)(`Abhängigkeiten der Material- und FA-Icons wurden entfernt.`)
|
|
67
|
-
]);
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
exports.removeMaAndFaIcons = removeMaAndFaIcons;
|
|
71
|
-
function updateProjectStructure(options) {
|
|
72
|
-
var _a, _b, _c, _d, _e, _f;
|
|
73
|
-
return (0, schematics_1.chain)([
|
|
74
|
-
(0, util_1.messageInfoRule)(`Projektstruktur wird angepasst...`),
|
|
75
|
-
copyAppFiles(options),
|
|
76
|
-
(0, files_1.deleteFile)(options, '/src/polyfills.ts'),
|
|
77
|
-
(0, files_1.deleteFile)(options, '/src/tsconfig.app.ie.json'),
|
|
78
|
-
(0, json_1.updateJsonValue)('/angular.json', ['projects', options.project, 'architect', 'build', 'options', 'polyfills'], ['zone.js'], false),
|
|
79
|
-
(0, json_1.updateJsonValue)('/angular.json', ['projects', options.project, 'architect', 'test', 'options', 'polyfills'], ['zone.js', 'zone.js/testing', 'src/test.ts'], false),
|
|
80
|
-
(0, json_1.deleteJsonValue)('/angular.json', ['projects', options.project, 'architect', 'test', 'options', 'main']),
|
|
81
|
-
(0, util_1.applyRuleIfFileExists)((0, json_1.deleteJsonArray)(((_a = options.path) !== null && _a !== void 0 ? _a : '.') + '/src/tsconfig.app.json', ['files'], (node) => (0, json_1.findStringInArray)(node, 'polyfills.ts')), ((_b = options.path) !== null && _b !== void 0 ? _b : '.') + '/src/tsconfig.app.json'),
|
|
82
|
-
(0, util_1.applyRuleIfFileExists)((0, json_1.deleteJsonArray)(((_c = options.path) !== null && _c !== void 0 ? _c : '.') + '/src/tsconfig.spec.json', ['files'], (node) => (0, json_1.findStringInArray)(node, 'polyfills.ts')), ((_d = options.path) !== null && _d !== void 0 ? _d : '.') + '/src/tsconfig.spec.json'),
|
|
83
|
-
(0, util_1.applyRuleIfFileExists)((0, json_1.deleteJsonArray)(((_e = options.path) !== null && _e !== void 0 ? _e : '.') + '/src/tsconfig.spec.json', ['compilerOptions', 'types'], (node) => (0, json_1.findStringInArray)(node, 'node')), ((_f = options.path) !== null && _f !== void 0 ? _f : '.') + '/src/tsconfig.spec.json'),
|
|
84
|
-
(0, util_1.messageSuccessRule)(`Projektstruktur wurde angepasst.`)
|
|
85
|
-
]);
|
|
86
|
-
}
|
|
87
|
-
exports.updateProjectStructure = updateProjectStructure;
|
|
88
|
-
function check(_options) {
|
|
89
|
-
return (tree, _context) => {
|
|
90
|
-
(0, logging_1.logInfoWithDescriptor)(`Vorbedingungen werden geprüft...`);
|
|
91
|
-
(0, validation_1.validateNodeVersion)(_context, exports.updateNodeMinVersion);
|
|
92
|
-
(0, validation_1.validateLuxComponentsVersion)(tree, `${exports.updateMinVersion} || ^${exports.updateMajorVersion}.0.0`);
|
|
93
|
-
(0, logging_1.logSuccess)(`Vorbedingungen wurden geprüft.`);
|
|
94
|
-
return tree;
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
function removeLuxMasterDetailMobileHelperService(options) {
|
|
98
|
-
return (0, schematics_1.chain)([
|
|
99
|
-
(0, util_1.messageInfoRule)(`LuxMasterDetailMobileHelperService wird entfernt...`),
|
|
100
|
-
(tree, _context) => {
|
|
101
|
-
(0, typescript_1.removeImport)(tree, (options.path ? options.path : '') + '/src/app/app.component.spec.ts', '@ihk-gfi/lux-components', 'LuxMasterDetailMobileHelperService', true);
|
|
102
|
-
(0, typescript_1.removeProvider)(tree, (options.path ? options.path : '') + '/src/app/app.component.spec.ts', 'LuxMasterDetailMobileHelperService', true);
|
|
103
|
-
},
|
|
104
|
-
(0, util_1.messageSuccessRule)(`LuxMasterDetailMobileHelperService wurde entfernt.`)
|
|
105
|
-
]);
|
|
106
|
-
}
|
|
107
|
-
function copyAppFiles(options) {
|
|
108
|
-
return (0, schematics_1.chain)([
|
|
109
|
-
(0, util_1.messageInfoRule)(`Dateien werden kopiert...`),
|
|
110
|
-
(0, files_1.moveFilesToDirectory)(options, '/files/src', '/src'),
|
|
111
|
-
(0, util_1.messageSuccessRule)(`Dateien wurden kopiert.`)
|
|
112
|
-
]);
|
|
113
|
-
}
|
package/updates/15.1.0/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.update150100 = void 0;
|
|
4
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
-
const chalk = require("chalk");
|
|
6
|
-
const index_1 = require("../../update-dependencies/index");
|
|
7
|
-
const util_1 = require("../../utility/util");
|
|
8
|
-
function update150100(_options, runNpmInstall = true) {
|
|
9
|
-
return (_tree, _context) => {
|
|
10
|
-
return (0, schematics_1.chain)([
|
|
11
|
-
(0, util_1.messageInfoRule)(`Die LUX-Components werden auf die Version 15.1.0 aktualisiert...`),
|
|
12
|
-
(0, util_1.messageInfoRule)(`Die Datei "package.json" wird angepasst...`),
|
|
13
|
-
(0, index_1.updateDep)('@ihk-gfi/lux-components', '15.1.0', false),
|
|
14
|
-
(0, index_1.updateDep)('@ihk-gfi/lux-components-theme', '15.1.0', false),
|
|
15
|
-
(0, util_1.messageSuccessRule)(`Die LUX-Components wurden auf die Version 15.1.0 aktualisiert.`),
|
|
16
|
-
(0, util_1.finish)(runNpmInstall, `${chalk.yellowBright('Fertig!')}`)
|
|
17
|
-
]);
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
exports.update150100 = update150100;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "luxUpdate150100Schema",
|
|
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
|
-
}
|
package/updates/15.2.0/index.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.update150200 = void 0;
|
|
4
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
-
const chalk = require("chalk");
|
|
6
|
-
const index_1 = require("../../update-dependencies/index");
|
|
7
|
-
const util_1 = require("../../utility/util");
|
|
8
|
-
function update150200(_options, runNpmInstall = true) {
|
|
9
|
-
return (_tree, _context) => {
|
|
10
|
-
return (0, schematics_1.chain)([
|
|
11
|
-
(0, util_1.messageInfoRule)(`Die LUX-Components werden auf die Version 15.2.0 aktualisiert...`),
|
|
12
|
-
(0, util_1.messageInfoRule)(`Die Datei "package.json" wird angepasst...`),
|
|
13
|
-
(0, index_1.updateDep)('@ihk-gfi/lux-components', '15.2.0', false),
|
|
14
|
-
(0, index_1.updateDep)('@ihk-gfi/lux-components-theme', '15.2.0', false),
|
|
15
|
-
(0, index_1.updateDep)('@ihk-gfi/lux-components-icons-and-fonts', '1.8.0', false),
|
|
16
|
-
(0, util_1.messageSuccessRule)(`Die LUX-Components wurden auf die Version 15.2.0 aktualisiert.`),
|
|
17
|
-
(0, util_1.finish)(runNpmInstall, `${chalk.yellowBright('Fertig!')}`)
|
|
18
|
-
]);
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
exports.update150200 = update150200;
|