sequential-workflow-designer 0.37.1 → 0.37.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 +14 -8
- package/lib/cjs/index.cjs +14 -8
- package/lib/esm/index.js +14 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -106,10 +106,10 @@ Add the below code to your head section in HTML document.
|
|
|
106
106
|
```html
|
|
107
107
|
<head>
|
|
108
108
|
...
|
|
109
|
-
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.37.
|
|
110
|
-
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.37.
|
|
111
|
-
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.37.
|
|
112
|
-
<script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.37.
|
|
109
|
+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.37.2/css/designer.css" rel="stylesheet" />
|
|
110
|
+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.37.2/css/designer-light.css" rel="stylesheet" />
|
|
111
|
+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.37.2/css/designer-dark.css" rel="stylesheet" />
|
|
112
|
+
<script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.37.2/dist/index.umd.js"></script>
|
|
113
113
|
</head>
|
|
114
114
|
```
|
|
115
115
|
|
package/dist/index.umd.js
CHANGED
|
@@ -1685,12 +1685,15 @@
|
|
|
1685
1685
|
return regionView.getClientPosition();
|
|
1686
1686
|
},
|
|
1687
1687
|
resolveClick(click) {
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
if (
|
|
1691
|
-
return
|
|
1688
|
+
const result = regionView.resolveClick(click);
|
|
1689
|
+
if (result === true) {
|
|
1690
|
+
if (cfg.isRegionClickable) {
|
|
1691
|
+
return true;
|
|
1692
1692
|
}
|
|
1693
1693
|
}
|
|
1694
|
+
else if (result !== null) {
|
|
1695
|
+
return result;
|
|
1696
|
+
}
|
|
1694
1697
|
return labelView.g.contains(click.element) || (inputView && inputView.g.contains(click.element)) ? true : null;
|
|
1695
1698
|
},
|
|
1696
1699
|
setIsDragging(isDragging) {
|
|
@@ -1870,12 +1873,15 @@
|
|
|
1870
1873
|
return regionView.getClientPosition();
|
|
1871
1874
|
},
|
|
1872
1875
|
resolveClick(click) {
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
if (
|
|
1876
|
-
return
|
|
1876
|
+
const result = regionView.resolveClick(click);
|
|
1877
|
+
if (result === true) {
|
|
1878
|
+
if (cfg.isRegionClickable) {
|
|
1879
|
+
return true;
|
|
1877
1880
|
}
|
|
1878
1881
|
}
|
|
1882
|
+
else if (result !== null) {
|
|
1883
|
+
return result;
|
|
1884
|
+
}
|
|
1879
1885
|
return labelViews.some(v => v.g.contains(click.element) || (inputView && inputView.g.contains(click.element))) ? true : null;
|
|
1880
1886
|
},
|
|
1881
1887
|
setIsDragging(isDragging) {
|
package/lib/cjs/index.cjs
CHANGED
|
@@ -1500,12 +1500,15 @@ const createContainerStepComponentViewFactory = (cfg) => (parentElement, stepCon
|
|
|
1500
1500
|
return regionView.getClientPosition();
|
|
1501
1501
|
},
|
|
1502
1502
|
resolveClick(click) {
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
if (
|
|
1506
|
-
return
|
|
1503
|
+
const result = regionView.resolveClick(click);
|
|
1504
|
+
if (result === true) {
|
|
1505
|
+
if (cfg.isRegionClickable) {
|
|
1506
|
+
return true;
|
|
1507
1507
|
}
|
|
1508
1508
|
}
|
|
1509
|
+
else if (result !== null) {
|
|
1510
|
+
return result;
|
|
1511
|
+
}
|
|
1509
1512
|
return labelView.g.contains(click.element) || (inputView && inputView.g.contains(click.element)) ? true : null;
|
|
1510
1513
|
},
|
|
1511
1514
|
setIsDragging(isDragging) {
|
|
@@ -1685,12 +1688,15 @@ function createView(g, width, height, joinX, viewContext, sequenceComponents, la
|
|
|
1685
1688
|
return regionView.getClientPosition();
|
|
1686
1689
|
},
|
|
1687
1690
|
resolveClick(click) {
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
if (
|
|
1691
|
-
return
|
|
1691
|
+
const result = regionView.resolveClick(click);
|
|
1692
|
+
if (result === true) {
|
|
1693
|
+
if (cfg.isRegionClickable) {
|
|
1694
|
+
return true;
|
|
1692
1695
|
}
|
|
1693
1696
|
}
|
|
1697
|
+
else if (result !== null) {
|
|
1698
|
+
return result;
|
|
1699
|
+
}
|
|
1694
1700
|
return labelViews.some(v => v.g.contains(click.element) || (inputView && inputView.g.contains(click.element))) ? true : null;
|
|
1695
1701
|
},
|
|
1696
1702
|
setIsDragging(isDragging) {
|
package/lib/esm/index.js
CHANGED
|
@@ -1499,12 +1499,15 @@ const createContainerStepComponentViewFactory = (cfg) => (parentElement, stepCon
|
|
|
1499
1499
|
return regionView.getClientPosition();
|
|
1500
1500
|
},
|
|
1501
1501
|
resolveClick(click) {
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
if (
|
|
1505
|
-
return
|
|
1502
|
+
const result = regionView.resolveClick(click);
|
|
1503
|
+
if (result === true) {
|
|
1504
|
+
if (cfg.isRegionClickable) {
|
|
1505
|
+
return true;
|
|
1506
1506
|
}
|
|
1507
1507
|
}
|
|
1508
|
+
else if (result !== null) {
|
|
1509
|
+
return result;
|
|
1510
|
+
}
|
|
1508
1511
|
return labelView.g.contains(click.element) || (inputView && inputView.g.contains(click.element)) ? true : null;
|
|
1509
1512
|
},
|
|
1510
1513
|
setIsDragging(isDragging) {
|
|
@@ -1684,12 +1687,15 @@ function createView(g, width, height, joinX, viewContext, sequenceComponents, la
|
|
|
1684
1687
|
return regionView.getClientPosition();
|
|
1685
1688
|
},
|
|
1686
1689
|
resolveClick(click) {
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
if (
|
|
1690
|
-
return
|
|
1690
|
+
const result = regionView.resolveClick(click);
|
|
1691
|
+
if (result === true) {
|
|
1692
|
+
if (cfg.isRegionClickable) {
|
|
1693
|
+
return true;
|
|
1691
1694
|
}
|
|
1692
1695
|
}
|
|
1696
|
+
else if (result !== null) {
|
|
1697
|
+
return result;
|
|
1698
|
+
}
|
|
1693
1699
|
return labelViews.some(v => v.g.contains(click.element) || (inputView && inputView.g.contains(click.element))) ? true : null;
|
|
1694
1700
|
},
|
|
1695
1701
|
setIsDragging(isDragging) {
|
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.37.
|
|
4
|
+
"version": "0.37.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/esm/index.js",
|
|
7
7
|
"types": "./lib/index.d.ts",
|