sequential-workflow-designer 0.27.0 → 0.27.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/README.md +4 -4
- package/dist/index.umd.js +9 -4
- package/lib/cjs/index.cjs +9 -4
- package/lib/esm/index.js +9 -4
- package/lib/index.d.ts +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -104,10 +104,10 @@ Add the below code to your head section in HTML document.
|
|
|
104
104
|
```html
|
|
105
105
|
<head>
|
|
106
106
|
...
|
|
107
|
-
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.27.
|
|
108
|
-
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.27.
|
|
109
|
-
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.27.
|
|
110
|
-
<script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.27.
|
|
107
|
+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.27.2/css/designer.css" rel="stylesheet">
|
|
108
|
+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.27.2/css/designer-light.css" rel="stylesheet">
|
|
109
|
+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.27.2/css/designer-dark.css" rel="stylesheet">
|
|
110
|
+
<script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.27.2/dist/index.umd.js"></script>
|
|
111
111
|
```
|
|
112
112
|
|
|
113
113
|
Call the designer by:
|
package/dist/index.umd.js
CHANGED
|
@@ -216,8 +216,11 @@
|
|
|
216
216
|
isDragDisabled() {
|
|
217
217
|
return this.state.isDragDisabled;
|
|
218
218
|
}
|
|
219
|
+
setIsDragDisabled(isDragDisabled) {
|
|
220
|
+
this.state.setIsDragDisabled(isDragDisabled);
|
|
221
|
+
}
|
|
219
222
|
toggleIsDragDisabled() {
|
|
220
|
-
this.
|
|
223
|
+
this.setIsDragDisabled(!this.isDragDisabled());
|
|
221
224
|
}
|
|
222
225
|
isUndoRedoSupported() {
|
|
223
226
|
return !!this.historyController;
|
|
@@ -2953,9 +2956,11 @@
|
|
|
2953
2956
|
this.onIsDraggingChanged.forward(isDragging);
|
|
2954
2957
|
}
|
|
2955
2958
|
}
|
|
2956
|
-
|
|
2957
|
-
this.isDragDisabled
|
|
2958
|
-
|
|
2959
|
+
setIsDragDisabled(isDragDisabled) {
|
|
2960
|
+
if (this.isDragDisabled !== isDragDisabled) {
|
|
2961
|
+
this.isDragDisabled = isDragDisabled;
|
|
2962
|
+
this.onIsDragDisabledChanged.forward(isDragDisabled);
|
|
2963
|
+
}
|
|
2959
2964
|
}
|
|
2960
2965
|
setIsToolboxCollapsed(isCollapsed) {
|
|
2961
2966
|
if (this.isToolboxCollapsed !== isCollapsed) {
|
package/lib/cjs/index.cjs
CHANGED
|
@@ -214,8 +214,11 @@ class ControlBarApi {
|
|
|
214
214
|
isDragDisabled() {
|
|
215
215
|
return this.state.isDragDisabled;
|
|
216
216
|
}
|
|
217
|
+
setIsDragDisabled(isDragDisabled) {
|
|
218
|
+
this.state.setIsDragDisabled(isDragDisabled);
|
|
219
|
+
}
|
|
217
220
|
toggleIsDragDisabled() {
|
|
218
|
-
this.
|
|
221
|
+
this.setIsDragDisabled(!this.isDragDisabled());
|
|
219
222
|
}
|
|
220
223
|
isUndoRedoSupported() {
|
|
221
224
|
return !!this.historyController;
|
|
@@ -2768,9 +2771,11 @@ class DesignerState {
|
|
|
2768
2771
|
this.onIsDraggingChanged.forward(isDragging);
|
|
2769
2772
|
}
|
|
2770
2773
|
}
|
|
2771
|
-
|
|
2772
|
-
this.isDragDisabled
|
|
2773
|
-
|
|
2774
|
+
setIsDragDisabled(isDragDisabled) {
|
|
2775
|
+
if (this.isDragDisabled !== isDragDisabled) {
|
|
2776
|
+
this.isDragDisabled = isDragDisabled;
|
|
2777
|
+
this.onIsDragDisabledChanged.forward(isDragDisabled);
|
|
2778
|
+
}
|
|
2774
2779
|
}
|
|
2775
2780
|
setIsToolboxCollapsed(isCollapsed) {
|
|
2776
2781
|
if (this.isToolboxCollapsed !== isCollapsed) {
|
package/lib/esm/index.js
CHANGED
|
@@ -213,8 +213,11 @@ class ControlBarApi {
|
|
|
213
213
|
isDragDisabled() {
|
|
214
214
|
return this.state.isDragDisabled;
|
|
215
215
|
}
|
|
216
|
+
setIsDragDisabled(isDragDisabled) {
|
|
217
|
+
this.state.setIsDragDisabled(isDragDisabled);
|
|
218
|
+
}
|
|
216
219
|
toggleIsDragDisabled() {
|
|
217
|
-
this.
|
|
220
|
+
this.setIsDragDisabled(!this.isDragDisabled());
|
|
218
221
|
}
|
|
219
222
|
isUndoRedoSupported() {
|
|
220
223
|
return !!this.historyController;
|
|
@@ -2767,9 +2770,11 @@ class DesignerState {
|
|
|
2767
2770
|
this.onIsDraggingChanged.forward(isDragging);
|
|
2768
2771
|
}
|
|
2769
2772
|
}
|
|
2770
|
-
|
|
2771
|
-
this.isDragDisabled
|
|
2772
|
-
|
|
2773
|
+
setIsDragDisabled(isDragDisabled) {
|
|
2774
|
+
if (this.isDragDisabled !== isDragDisabled) {
|
|
2775
|
+
this.isDragDisabled = isDragDisabled;
|
|
2776
|
+
this.onIsDragDisabledChanged.forward(isDragDisabled);
|
|
2777
|
+
}
|
|
2773
2778
|
}
|
|
2774
2779
|
setIsToolboxCollapsed(isCollapsed) {
|
|
2775
2780
|
if (this.isToolboxCollapsed !== isCollapsed) {
|
package/lib/index.d.ts
CHANGED
|
@@ -129,7 +129,7 @@ declare class DesignerState {
|
|
|
129
129
|
setViewport(viewport: Viewport): void;
|
|
130
130
|
setIsReadonly(isReadonly: boolean): void;
|
|
131
131
|
setIsDragging(isDragging: boolean): void;
|
|
132
|
-
|
|
132
|
+
setIsDragDisabled(isDragDisabled: boolean): void;
|
|
133
133
|
setIsToolboxCollapsed(isCollapsed: boolean): void;
|
|
134
134
|
setIsEditorCollapsed(isCollapsed: boolean): void;
|
|
135
135
|
}
|
|
@@ -1166,6 +1166,7 @@ declare class ControlBarApi {
|
|
|
1166
1166
|
private constructor();
|
|
1167
1167
|
readonly onStateChanged: SimpleEvent<unknown>;
|
|
1168
1168
|
isDragDisabled(): boolean;
|
|
1169
|
+
setIsDragDisabled(isDragDisabled: boolean): void;
|
|
1169
1170
|
toggleIsDragDisabled(): void;
|
|
1170
1171
|
isUndoRedoSupported(): boolean;
|
|
1171
1172
|
tryUndo(): boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sequential-workflow-designer",
|
|
3
3
|
"description": "Customizable no-code component for building flow-based programming applications.",
|
|
4
|
-
"version": "0.27.
|
|
4
|
+
"version": "0.27.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/esm/index.js",
|
|
7
7
|
"types": "./lib/index.d.ts",
|