File tree Expand file tree Collapse file tree 12 files changed +34
-24
lines changed Expand file tree Collapse file tree 12 files changed +34
-24
lines changed Original file line number Diff line number Diff line change 1+ # 0.27.2
2+
3+ Added a new method to the internal control bar api.
4+
15# 0.27.1
26
37Added support for Angular 19.
Original file line number Diff line number Diff 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.27.1 /css/designer.css" rel =" stylesheet" >
108- <link href =" https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.27.1 /css/designer-light.css" rel =" stylesheet" >
109- <link href =" https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.27.1 /css/designer-dark.css" rel =" stylesheet" >
110- <script src =" https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.27.1 /dist/index.umd.js" ></script >
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 >
111111```
112112
113113Call the designer by:
Original file line number Diff line number Diff line change 11{
22 "name" : " sequential-workflow-designer-angular" ,
33 "description" : " Angular wrapper for Sequential Workflow Designer component." ,
4- "version" : " 0.27.1 " ,
4+ "version" : " 0.27.2 " ,
55 "author" : {
66 "name" : " NoCode JS" ,
77 "url" : " https://nocode-js.com/"
1515 "peerDependencies" : {
1616 "@angular/common" : " 12 - 19" ,
1717 "@angular/core" : " 12 - 19" ,
18- "sequential-workflow-designer" : " ^0.27.1 "
18+ "sequential-workflow-designer" : " ^0.27.2 "
1919 },
2020 "dependencies" : {
2121 "tslib" : " ^2.3.0"
Original file line number Diff line number Diff line change 2626 "@angular/platform-browser-dynamic" : " ^17.3.9" ,
2727 "@angular/router" : " ^17.3.9" ,
2828 "rxjs" : " ~7.8.0" ,
29- "sequential-workflow-designer" : " ^0.27.1 " ,
30- "sequential-workflow-designer-angular" : " ^0.27.1 " ,
29+ "sequential-workflow-designer" : " ^0.27.2 " ,
30+ "sequential-workflow-designer-angular" : " ^0.27.2 " ,
3131 "tslib" : " ^2.3.0" ,
3232 "zone.js" : " ~0.14.6"
3333 },
Original file line number Diff line number Diff line change 66 "dependencies" : {
77 "react" : " ^18.2.0" ,
88 "react-dom" : " ^18.2.0" ,
9- "sequential-workflow-designer" : " ^0.27.1 " ,
10- "sequential-workflow-designer-react" : " ^0.27.1 "
9+ "sequential-workflow-designer" : " ^0.27.2 " ,
10+ "sequential-workflow-designer-react" : " ^0.27.2 "
1111 },
1212 "devDependencies" : {
1313 "@types/jest" : " ^29.2.5" ,
Original file line number Diff line number Diff line change 1616 "eslint" : " eslint ./src --ext .ts"
1717 },
1818 "dependencies" : {
19- "sequential-workflow-designer" : " ^0.27.1 " ,
20- "sequential-workflow-designer-svelte" : " ^0.27.1 "
19+ "sequential-workflow-designer" : " ^0.27.2 " ,
20+ "sequential-workflow-designer-svelte" : " ^0.27.2 "
2121 },
2222 "devDependencies" : {
2323 "@sveltejs/adapter-static" : " ^2.0.3" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " sequential-workflow-designer" ,
33 "description" : " Customizable no-code component for building flow-based programming applications." ,
4- "version" : " 0.27.1 " ,
4+ "version" : " 0.27.2 " ,
55 "type" : " module" ,
66 "main" : " ./lib/esm/index.js" ,
77 "types" : " ./lib/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -33,8 +33,12 @@ export class ControlBarApi {
3333 return this . state . isDragDisabled ;
3434 }
3535
36+ public setIsDragDisabled ( isDragDisabled : boolean ) {
37+ this . state . setIsDragDisabled ( isDragDisabled ) ;
38+ }
39+
3640 public toggleIsDragDisabled ( ) {
37- this . state . toggleIsDragDisabled ( ) ;
41+ this . setIsDragDisabled ( ! this . isDragDisabled ( ) ) ;
3842 }
3943
4044 public isUndoRedoSupported ( ) : boolean {
Original file line number Diff line number Diff line change @@ -85,9 +85,11 @@ export class DesignerState {
8585 }
8686 }
8787
88- public toggleIsDragDisabled ( ) {
89- this . isDragDisabled = ! this . isDragDisabled ;
90- this . onIsDragDisabledChanged . forward ( this . isDragDisabled ) ;
88+ public setIsDragDisabled ( isDragDisabled : boolean ) {
89+ if ( this . isDragDisabled !== isDragDisabled ) {
90+ this . isDragDisabled = isDragDisabled ;
91+ this . onIsDragDisabledChanged . forward ( isDragDisabled ) ;
92+ }
9193 }
9294
9395 public setIsToolboxCollapsed ( isCollapsed : boolean ) {
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ function embedStylesheet(url) {
1313 document . write ( `<link href="${ url } " rel="stylesheet">` ) ;
1414}
1515
16- const baseUrl = isTestEnv ( ) ? '../designer' : '//cdn.jsdelivr.net/npm/sequential-workflow-designer@0.27.1 ' ;
16+ const baseUrl = isTestEnv ( ) ? '../designer' : '//cdn.jsdelivr.net/npm/sequential-workflow-designer@0.27.2 ' ;
1717
1818embedScript ( `${ baseUrl } /dist/index.umd.js` ) ;
1919embedStylesheet ( `${ baseUrl } /css/designer.css` ) ;
You can’t perform that action at this time.
0 commit comments