Skip to content

Commit 9b30613

Browse files
authored
0.27.0. (#173)
1 parent 3fbba96 commit 9b30613

27 files changed

+164
-73
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.27.0
2+
3+
This version adds the ability to configure the border style of the toolbox, control bar, and context menu using SASS mixins. It also updates the internal configuration structure for the container and switch step components.
4+
15
# 0.26.1
26

37
This version fixes the bug with scaling in the pinch-to-zoom feature. Additionally, this version improves the rendering of lines that join steps.

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.26.1/css/designer.css" rel="stylesheet">
108-
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.26.1/css/designer-light.css" rel="stylesheet">
109-
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.26.1/css/designer-dark.css" rel="stylesheet">
110-
<script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.26.1/dist/index.umd.js"></script>
107+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.27.0/css/designer.css" rel="stylesheet">
108+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.27.0/css/designer-light.css" rel="stylesheet">
109+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.27.0/css/designer-dark.css" rel="stylesheet">
110+
<script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.27.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.26.1",
4+
"version": "0.27.0",
55
"author": {
66
"name": "NoCode JS",
77
"url": "https://nocode-js.com/"
@@ -15,7 +15,7 @@
1515
"peerDependencies": {
1616
"@angular/common": "12 - 18",
1717
"@angular/core": "12 - 18",
18-
"sequential-workflow-designer": "^0.26.1"
18+
"sequential-workflow-designer": "^0.27.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.26.1",
30-
"sequential-workflow-designer-angular": "^0.26.1",
29+
"sequential-workflow-designer": "^0.27.0",
30+
"sequential-workflow-designer-angular": "^0.27.0",
3131
"tslib": "^2.3.0",
3232
"zone.js": "~0.14.6"
3333
},

demos/angular-app/yarn.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6744,17 +6744,17 @@ send@0.18.0:
67446744
range-parser "~1.2.1"
67456745
statuses "2.0.1"
67466746

6747-
sequential-workflow-designer-angular@^0.26.1:
6748-
version "0.26.1"
6749-
resolved "https://registry.yarnpkg.com/sequential-workflow-designer-angular/-/sequential-workflow-designer-angular-0.26.1.tgz#a7958048852b1fad66e2dde71a7cc6c740f8ccdc"
6750-
integrity sha512-eggkWg0FIxhAC4Awuee3ysTcSQUerRj14+G802QpzIFblYqgElK0TQBEjRgEjRnjoljaZIf4RipMQhFIIQZS7w==
6747+
sequential-workflow-designer-angular@^0.27.0:
6748+
version "0.27.0"
6749+
resolved "https://registry.yarnpkg.com/sequential-workflow-designer-angular/-/sequential-workflow-designer-angular-0.27.0.tgz#0c95ba93550c8c26043aa087f9207a1331dea2cd"
6750+
integrity sha512-g4UqxOkSiHC3bOIQusueiK30j/zXjkzdEtfgD/5Wdt6kKHftYrViABRXhoeobjMvwBY9H0q4HqF2nSFi2cd9ng==
67516751
dependencies:
67526752
tslib "^2.3.0"
67536753

6754-
sequential-workflow-designer@^0.26.1:
6755-
version "0.26.1"
6756-
resolved "https://registry.yarnpkg.com/sequential-workflow-designer/-/sequential-workflow-designer-0.26.1.tgz#5a3fc4e992f76c46bc746547cf040fef8768dc29"
6757-
integrity sha512-R3zqYzZrj3wJ7zPgn9+7bvtNTB2kaTP31wW9MJD3ZgOUrTfvfpz+voIwKhknT9t4/cL7YH+TJF//QkwSp6BUlw==
6754+
sequential-workflow-designer@^0.27.0:
6755+
version "0.27.0"
6756+
resolved "https://registry.yarnpkg.com/sequential-workflow-designer/-/sequential-workflow-designer-0.27.0.tgz#157666cca79d993d5c52a127774d62d3a7e001df"
6757+
integrity sha512-wWpIIO3DQzm8iViNZQdjTfoj+0iD17Qncvqpkto+oXPAmrIRB3gf346aqlA03ze7H3F+FsL/elFGQl4bzxSVDw==
67586758
dependencies:
67596759
sequential-workflow-model "^0.2.0"
67606760

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.26.1",
10-
"sequential-workflow-designer-react": "^0.26.1"
9+
"sequential-workflow-designer": "^0.27.0",
10+
"sequential-workflow-designer-react": "^0.27.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.26.1",
20-
"sequential-workflow-designer-svelte": "^0.26.1"
19+
"sequential-workflow-designer": "^0.27.0",
20+
"sequential-workflow-designer-svelte": "^0.27.0"
2121
},
2222
"devDependencies": {
2323
"@sveltejs/adapter-static": "^2.0.3",

designer/package.json

Lines changed: 1 addition & 1 deletion
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.26.1",
4+
"version": "0.27.0",
55
"type": "module",
66
"main": "./lib/esm/index.js",
77
"types": "./lib/index.d.ts",

designer/sass/designer-theme.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
$panelBackgroundColor: #fff,
44
$panelBoxShadow: (0 0 8px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.15)),
55
$panelBorderRadius: 10px,
6+
$panelBorder: none,
67
$headerTextColor: #000,
78
$filterBackground: #fff,
89
$filterTextColor: #000,
@@ -17,6 +18,7 @@
1718
.sqd-toolbox {
1819
background: $panelBackgroundColor;
1920
box-shadow: $panelBoxShadow;
21+
border: $panelBorder;
2022
border-radius: $panelBorderRadius;
2123
}
2224
.sqd-toolbox-header-title {
@@ -75,6 +77,7 @@
7577
$panelBackgroundColor: #fff,
7678
$panelBoxShadow: (0 0 8px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.15)),
7779
$panelBorderRadius: 10px,
80+
$panelBorder: none,
7881
$buttonBackground: #fff,
7982
$buttonBackgroundHovered: #fff,
8083
$buttonBorder: (1px solid #c3c3c3),
@@ -87,6 +90,7 @@
8790
.sqd-control-bar {
8891
background: $panelBackgroundColor;
8992
box-shadow: $panelBoxShadow;
93+
border: $panelBorder;
9094
border-radius: $panelBorderRadius;
9195
}
9296
.sqd-control-bar-button {
@@ -131,6 +135,7 @@
131135
$panelBackgroundColor: #fff,
132136
$panelBoxShadow: (0 0 8px rgba(0, 0, 0, 0.2)),
133137
$panelBorderRadius: 4px,
138+
$panelBorder: none,
134139
$groupTextColor: #888,
135140
$itemTextColor: #000,
136141
$itemBackgroundColorHovered: #eee,
@@ -139,6 +144,7 @@
139144
.sqd-theme-#{$theme}.sqd-context-menu {
140145
background: $panelBackgroundColor;
141146
box-shadow: $panelBoxShadow;
147+
border: $panelBorder;
142148
border-radius: $panelBorderRadius;
143149
}
144150
.sqd-theme-#{$theme} .sqd-context-menu-group {

designer/src/designer-extension.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
export interface DesignerExtension {
2222
steps?: StepExtension[];
2323
stepComponentViewWrapper?: StepComponentViewWrapperExtension;
24+
stepBadgesDecorator?: StepBadgesDecoratorExtension;
2425
clickBehaviorWrapperExtension?: ClickBehaviorWrapperExtension;
2526
badges?: BadgeExtension[];
2627
uiComponents?: UiComponentExtension[];
@@ -91,6 +92,16 @@ export interface StepComponentViewWrapperExtension {
9192
wrap(view: StepComponentView, stepContext: StepContext): StepComponentView;
9293
}
9394

95+
// StepBadgesDecoratorExtension
96+
97+
export interface StepBadgesDecoratorExtension {
98+
create(g: SVGGElement, view: StepComponentView, badges: (Badge | null)[]): BadgesDecorator;
99+
}
100+
101+
export interface BadgesDecorator {
102+
update(): void;
103+
}
104+
94105
// ClickBehaviorWrapperExtension
95106

96107
export interface ClickBehaviorWrapperExtension {

0 commit comments

Comments
 (0)