Skip to content

Commit 585c570

Browse files
authored
0.29.0. (#184)
1 parent f215166 commit 585c570

19 files changed

+351
-160
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.29.0
2+
3+
This version adds support for 0 branches to the switch step. The switch step can now have 0 branches.
4+
15
# 0.28.0
26

37
This update modifies the custom context menu in the pro version. The context menu items provider now retrieves the parent sequence of the selected workspace root sequence. If the root sequence is a folder sequence, the parent sequence is the folder sequence.

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ Add the below code to your head section in HTML document.
104104
```html
105105
<head>
106106
...
107-
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.28.0/css/designer.css" rel="stylesheet">
108-
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.28.0/css/designer-light.css" rel="stylesheet">
109-
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.28.0/css/designer-dark.css" rel="stylesheet">
110-
<script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.28.0/dist/index.umd.js"></script>
107+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.29.0/css/designer.css" rel="stylesheet">
108+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.29.0/css/designer-light.css" rel="stylesheet">
109+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.29.0/css/designer-dark.css" rel="stylesheet">
110+
<script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.29.0/dist/index.umd.js"></script>
111111
```
112112

113113
Call the designer by:

angular/designer/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "sequential-workflow-designer-angular",
33
"description": "Angular wrapper for Sequential Workflow Designer component.",
4-
"version": "0.28.0",
4+
"version": "0.29.0",
55
"author": {
66
"name": "NoCode JS",
77
"url": "https://nocode-js.com/"
@@ -15,7 +15,7 @@
1515
"peerDependencies": {
1616
"@angular/common": "12 - 19",
1717
"@angular/core": "12 - 19",
18-
"sequential-workflow-designer": "^0.28.0"
18+
"sequential-workflow-designer": "^0.29.0"
1919
},
2020
"dependencies": {
2121
"tslib": "^2.3.0"

demos/angular-app/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"@angular/platform-browser-dynamic": "^17.3.9",
2727
"@angular/router": "^17.3.9",
2828
"rxjs": "~7.8.0",
29-
"sequential-workflow-designer": "^0.28.0",
30-
"sequential-workflow-designer-angular": "^0.28.0",
29+
"sequential-workflow-designer": "^0.29.0",
30+
"sequential-workflow-designer-angular": "^0.29.0",
3131
"tslib": "^2.3.0",
3232
"zone.js": "~0.14.6"
3333
},

demos/angular-app/yarn.lock

+8-8
Original file line numberDiff line numberDiff line change
@@ -6744,17 +6744,17 @@ [email protected]:
67446744
range-parser "~1.2.1"
67456745
statuses "2.0.1"
67466746

6747-
sequential-workflow-designer-angular@^0.28.0:
6748-
version "0.28.0"
6749-
resolved "https://registry.yarnpkg.com/sequential-workflow-designer-angular/-/sequential-workflow-designer-angular-0.28.0.tgz#6748b69c5b626424e9d2f1a47686daa825ce7981"
6750-
integrity sha512-bSTGD3kh+7BCIPAMvDWipuUaoUv3G0RmdZiaQM7cE1f9P27HNQQueOr1nVRJmUbClE/2gW9+96n8VEpTtZ59xQ==
6747+
sequential-workflow-designer-angular@^0.29.0:
6748+
version "0.29.0"
6749+
resolved "https://registry.yarnpkg.com/sequential-workflow-designer-angular/-/sequential-workflow-designer-angular-0.29.0.tgz#2b52f82bc3da761b5a72331807fdcb52ecbac5be"
6750+
integrity sha512-g8YPuh1BZ4sn02bN54Lf9Yih/jqk30dfmSExW9uI1n38yeaTxjcisn9mBFYIcY2lUjaTqT3QQIgc2YinP1qm4A==
67516751
dependencies:
67526752
tslib "^2.3.0"
67536753

6754-
sequential-workflow-designer@^0.28.0:
6755-
version "0.28.0"
6756-
resolved "https://registry.yarnpkg.com/sequential-workflow-designer/-/sequential-workflow-designer-0.28.0.tgz#b6fd72abf9ec00eab2b8633fe34f7f456b32dbf4"
6757-
integrity sha512-GEUERe8giyx/D9hsA+YG+LjescdLPBLs+yydHQ5UnGtXzl8784eUmPqqdGg/AnzsoEB5G+LIcgShoFMLVBYq+A==
6754+
sequential-workflow-designer@^0.29.0:
6755+
version "0.29.0"
6756+
resolved "https://registry.yarnpkg.com/sequential-workflow-designer/-/sequential-workflow-designer-0.29.0.tgz#9bba6761632f8f859a438bac3c35e1cdb9dbc1dc"
6757+
integrity sha512-Uio286V90YojN/0PKn0ZV8dMMHsVjTQbrk6RfKvhyWWvlhRIL5vHDnwybn4uEWUv/Tr2uBOpzkXO5ZFVZcNiuQ==
67586758
dependencies:
67596759
sequential-workflow-model "^0.2.0"
67606760

demos/react-app/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"dependencies": {
77
"react": "^18.2.0",
88
"react-dom": "^18.2.0",
9-
"sequential-workflow-designer": "^0.28.0",
10-
"sequential-workflow-designer-react": "^0.28.0"
9+
"sequential-workflow-designer": "^0.29.0",
10+
"sequential-workflow-designer-react": "^0.29.0"
1111
},
1212
"devDependencies": {
1313
"@types/jest": "^29.2.5",

demos/svelte-app/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"eslint": "eslint ./src --ext .ts"
1717
},
1818
"dependencies": {
19-
"sequential-workflow-designer": "^0.28.0",
20-
"sequential-workflow-designer-svelte": "^0.28.0"
19+
"sequential-workflow-designer": "^0.29.0",
20+
"sequential-workflow-designer-svelte": "^0.29.0"
2121
},
2222
"devDependencies": {
2323
"@sveltejs/adapter-static": "^2.0.3",

designer/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "sequential-workflow-designer",
33
"description": "Customizable no-code component for building flow-based programming applications.",
4-
"version": "0.28.0",
4+
"version": "0.29.0",
55
"type": "module",
66
"main": "./lib/esm/index.js",
77
"types": "./lib/index.d.ts",
@@ -78,7 +78,7 @@
7878
"sequential-workflow-model": "^0.2.0"
7979
},
8080
"devDependencies": {
81-
"@rollup/plugin-node-resolve": "^15.0.1",
81+
"@rollup/plugin-node-resolve": "^16.0.1",
8282
"@types/jasmine": "^4.3.1",
8383
"@typescript-eslint/eslint-plugin": "^5.47.0",
8484
"@typescript-eslint/parser": "^5.47.0",
@@ -90,9 +90,9 @@
9090
"karma-typescript": "^5.5.3",
9191
"karma-typescript-es6-transform": "^5.5.3",
9292
"prettier": "^3.2.5",
93-
"rollup": "^3.18.0",
94-
"rollup-plugin-dts": "^5.2.0",
95-
"rollup-plugin-typescript2": "^0.34.1",
93+
"rollup": "^4.40.0",
94+
"rollup-plugin-dts": "^6.2.1",
95+
"rollup-plugin-typescript2": "^0.36.0",
9696
"typescript": "^4.9.5",
9797
"sass": "^1.66.1"
9898
},

designer/src/workspace/common-views/input-view.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ export class InputView {
4949
return new InputView(circle);
5050
}
5151

52-
private constructor(private readonly root: SVGElement) {}
52+
private constructor(public readonly g: SVGElement) {}
5353

5454
public setIsHidden(isHidden: boolean) {
55-
Dom.attrs(this.root, {
55+
Dom.attrs(this.g, {
5656
visibility: isHidden ? 'hidden' : 'visible'
5757
});
5858
}

designer/src/workspace/switch-step/switch-step-component-view-configuration.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { LabelViewConfiguration } from '../common-views/label-view-configuration';
22

33
export interface SwitchStepComponentViewConfiguration {
4-
minContainerWidth: number;
4+
minBranchWidth: number;
55
paddingX: number;
66
/**
77
* The distance between the top of the container and the center point of the input.
@@ -12,6 +12,10 @@ export interface SwitchStepComponentViewConfiguration {
1212
*/
1313
paddingTop2: number;
1414
connectionHeight: number;
15+
/**
16+
* The distance between the end of the label and the bottom of the container when there are no branches.
17+
*/
18+
noBranchPaddingBottom: number;
1519
inputSize: number;
1620
inputIconSize: number;
1721
autoHideInputOnDrag: boolean;

designer/src/workspace/switch-step/switch-step-component-view.spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@ describe('SwitchStepComponentView', () => {
3939
radius: 10
4040
};
4141
const factory = createSwitchStepComponentViewFactory({
42-
minContainerWidth: 40,
42+
minBranchWidth: 40,
4343
paddingX: 20,
4444
paddingTop1: 0,
4545
paddingTop2: 20,
4646
connectionHeight: 16,
47+
noBranchPaddingBottom: 24,
4748
inputSize: 18,
4849
inputIconSize: 14,
4950
inputRadius: 4,

0 commit comments

Comments
 (0)