Skip to content

Commit 3098bda

Browse files
committed
0.29.0.
1 parent f215166 commit 3098bda

File tree

18 files changed

+343
-152
lines changed

18 files changed

+343
-152
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
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

Lines changed: 4 additions & 4 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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/react-app/package.json

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 5 additions & 5 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 5 additions & 1 deletion
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

Lines changed: 2 additions & 1 deletion
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)