@node-projects/web-component-designer-visualization-addons 0.1.35 → 0.1.36
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.
|
@@ -15,6 +15,8 @@ Blockly.Blocks['query_selector_all'] = {
|
|
|
15
15
|
this.setColour(230);
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
+
//TODO helper for current & parent screen queryselector
|
|
19
|
+
//TODO also a query selector for screen directly
|
|
18
20
|
//@ts-ignore
|
|
19
21
|
Blockly.JavaScript.forBlock['query_selector_all'] = function (block, generator) {
|
|
20
22
|
var dropdown_source = block.getFieldValue('SOURCE');
|
|
@@ -109,6 +109,17 @@ export class ScriptSystem {
|
|
|
109
109
|
else if (command.target == 'css') {
|
|
110
110
|
e.style[name] = value;
|
|
111
111
|
}
|
|
112
|
+
else if (command.target == 'class') {
|
|
113
|
+
if (command.mode === 'toggle') {
|
|
114
|
+
e.classList.toggle(value);
|
|
115
|
+
}
|
|
116
|
+
else if (command.mode === 'remove') {
|
|
117
|
+
e.classList.remove(value);
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
e.classList.add(value);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
112
123
|
}
|
|
113
124
|
break;
|
|
114
125
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"description": "web-component-designer addon for visualizations",
|
|
3
3
|
"name": "@node-projects/web-component-designer-visualization-addons",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.36",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"author": "jochen.kuehner@gmx.de",
|