igniteui-angular 15.0.1 → 15.0.2
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/esm2020/lib/grids/filtering/base/grid-filtering-row.component.mjs +3 -3
- package/fesm2015/igniteui-angular.mjs +2 -2
- package/fesm2015/igniteui-angular.mjs.map +1 -1
- package/fesm2020/igniteui-angular.mjs +2 -2
- package/fesm2020/igniteui-angular.mjs.map +1 -1
- package/migrations/update-15_0_0/index.js +33 -0
- package/package.json +1 -1
|
@@ -15,4 +15,37 @@ exports.default = () => (host, context) => __awaiter(void 0, void 0, void 0, fun
|
|
|
15
15
|
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
16
16
|
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
17
17
|
update.applyChanges();
|
|
18
|
+
// replace CSS custom properties prefix from --igx to --ig and grays to gray
|
|
19
|
+
const CUSTOM_CSS_PROPERTIES = [
|
|
20
|
+
'--igx-primary-',
|
|
21
|
+
'--igx-secondary-',
|
|
22
|
+
'--igx-grays-',
|
|
23
|
+
'--igx-surface-',
|
|
24
|
+
'--igx-info-',
|
|
25
|
+
'--igx-success-',
|
|
26
|
+
'--igx-warn-',
|
|
27
|
+
'--igx-error-',
|
|
28
|
+
'--igx-radius-factor',
|
|
29
|
+
'--igx-elevation',
|
|
30
|
+
'--igx-font-family',
|
|
31
|
+
'--igx-h(\\d)-',
|
|
32
|
+
'--igx-subtitle-(\\d)-',
|
|
33
|
+
'--igx-body-(\\d)-',
|
|
34
|
+
'--igx-button-',
|
|
35
|
+
'--igx-caption-',
|
|
36
|
+
'--igx-overline-'
|
|
37
|
+
];
|
|
38
|
+
for (const entryPath of update.sassFiles) {
|
|
39
|
+
let content = host.read(entryPath).toString();
|
|
40
|
+
CUSTOM_CSS_PROPERTIES.forEach(cssProperty => {
|
|
41
|
+
const regex = new RegExp(cssProperty, 'g');
|
|
42
|
+
if (regex.test(content)) {
|
|
43
|
+
let newCssProperty = cssProperty.replace(/igx/g, 'ig');
|
|
44
|
+
newCssProperty = newCssProperty.replace(/grays/g, 'gray');
|
|
45
|
+
newCssProperty = newCssProperty.replace('(\\d)', '$1');
|
|
46
|
+
content = content.replace(regex, newCssProperty);
|
|
47
|
+
host.overwrite(entryPath, content);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
18
51
|
});
|
package/package.json
CHANGED