@node-projects/web-component-designer-stylesheetservice-css-parser 0.1.4 → 0.1.5
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.
|
@@ -84,17 +84,10 @@ export class CssParserStylesheetService extends AbstractStylesheetService {
|
|
|
84
84
|
}
|
|
85
85
|
updateDeclarationValueWithoutUndo(declaration, value, important) {
|
|
86
86
|
declaration.ast.value = important ? value + ' !important' : value;
|
|
87
|
+
if (declaration.ast.rawValue)
|
|
88
|
+
delete declaration.ast.rawValue;
|
|
87
89
|
let ss = this._allStylesheets.get(declaration.parent.stylesheetName);
|
|
88
90
|
this.updateStylesheet(ss);
|
|
89
|
-
/*
|
|
90
|
-
declaration.ast.value = important ? value + ' !important' : value;
|
|
91
|
-
let ss = declaration.ast;
|
|
92
|
-
while (ss?.parent)
|
|
93
|
-
ss = ss?.parent;
|
|
94
|
-
let obj = { ast: ss, stylesheet: declaration.stylesheet };
|
|
95
|
-
this._allStylesheets.set(declaration.parent.stylesheetName, obj)
|
|
96
|
-
this.updateStylesheet(obj);
|
|
97
|
-
*/
|
|
98
91
|
}
|
|
99
92
|
insertDeclarationIntoRule(rule, property, value, important) {
|
|
100
93
|
rule.ast.declarations.push({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"description": "web-component-designer addon: Stylesheet Parser Service using @node-projects/css-parser",
|
|
3
3
|
"name": "@node-projects/web-component-designer-stylesheetservice-css-parser",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/service/stylesheetservice/CssParserStylesheetService.js",
|
|
7
7
|
"author": "jochen.kuehner@gmx.de",
|