sequential-workflow-designer 0.13.8
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/LICENSE +9 -0
- package/README.md +221 -0
- package/css/designer-dark.css +148 -0
- package/css/designer-light.css +148 -0
- package/css/designer.css +260 -0
- package/dist/index.umd.js +4289 -0
- package/lib/cjs/index.cjs +4116 -0
- package/lib/esm/index.js +4067 -0
- package/lib/index.d.ts +1121 -0
- package/package.json +91 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 N4NO.com
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
# Sequential Workflow Designer
|
|
4
|
+
|
|
5
|
+
[](https://actions-badge.atrox.dev/b4rtaz/sequential-workflow-designer/goto?ref=main) [](/LICENSE) [](https://npmjs.org/package/sequential-workflow-designer)
|
|
6
|
+
|
|
7
|
+
Sequential workflow designer with 0 external dependencies for web. It's written in pure TypeScript and uses SVG for rendering. This designer is not associated with any workflow engine. It's full generic. You may create any kind application by this, from graphical programming languages to workflow builders.
|
|
8
|
+
|
|
9
|
+
Features:
|
|
10
|
+
|
|
11
|
+
* 0 external dependencies,
|
|
12
|
+
* full generic & configurable,
|
|
13
|
+
* light/dark themes,
|
|
14
|
+
* works on modern browsers,
|
|
15
|
+
* works on mobile,
|
|
16
|
+
* the definition is stored as JSON,
|
|
17
|
+
* has support for [React](./react/) and [Angular](./angular/designer/).
|
|
18
|
+
|
|
19
|
+
📝 Check the [documentation](https://nocode-js.com/docs/category/sequential-workflow-designer) for more details.
|
|
20
|
+
|
|
21
|
+
🤩 Don't miss [the pro version](https://github.com/nocode-js/sequential-workflow-designer-pro-demo).
|
|
22
|
+
|
|
23
|
+
## 👀 Examples
|
|
24
|
+
|
|
25
|
+
* [⏩ Live Testing](https://nocode-js.github.io/sequential-workflow-designer/examples/live-testing.html)
|
|
26
|
+
* [❎ Fullscreen](https://nocode-js.github.io/sequential-workflow-designer/examples/fullscreen.html)
|
|
27
|
+
* [🌅 Image Filter](https://nocode-js.github.io/sequential-workflow-designer/examples/image-filter.html)
|
|
28
|
+
* [🔴 Particles](https://nocode-js.github.io/sequential-workflow-designer/examples/particles.html)
|
|
29
|
+
* [⛅ Light Dark](https://nocode-js.github.io/sequential-workflow-designer/examples/light-dark.html)
|
|
30
|
+
* [🤖 Code Generator](https://nocode-js.github.io/sequential-workflow-designer/examples/code-generator.html)
|
|
31
|
+
* [📐 Simple Flow](https://nocode-js.github.io/sequential-workflow-designer/examples/simple-flow.html)
|
|
32
|
+
* [🌻 Rendering Test](https://nocode-js.github.io/sequential-workflow-designer/examples/rendering-test.html)
|
|
33
|
+
* [🚄 Stress Test](https://nocode-js.github.io/sequential-workflow-designer/examples/stress-test.html)
|
|
34
|
+
* [🚪 Editing Restrictions](https://nocode-js.github.io/sequential-workflow-designer/examples/editing-restrictions.html)
|
|
35
|
+
* [📜 Scrollable Page](https://nocode-js.github.io/sequential-workflow-designer/examples/scrollable-page.html)
|
|
36
|
+
* [React Demo](https://nocode-js.github.io/sequential-workflow-designer/react-app/)
|
|
37
|
+
* [Angular Demo](https://nocode-js.github.io/sequential-workflow-designer/angular-app/)
|
|
38
|
+
|
|
39
|
+
Pro:
|
|
40
|
+
|
|
41
|
+
* [🤩 Pro Components](https://nocode-js.github.io/sequential-workflow-designer-pro-demo/demos/webpack-pro-app/public/pro-components.html)
|
|
42
|
+
* [👈 Goto](https://nocode-js.github.io/sequential-workflow-designer-pro-demo/demos/webpack-pro-app/public/goto.html)
|
|
43
|
+
* [📁 Folders](https://nocode-js.github.io/sequential-workflow-designer-pro-demo/demos/webpack-pro-app/public/folders.html)
|
|
44
|
+
* [⭕ Wheel Mode](https://nocode-js.github.io/sequential-workflow-designer-pro-demo/demos/webpack-pro-app/public/wheel-mode.html)
|
|
45
|
+
* [💠 Grid](https://nocode-js.github.io/sequential-workflow-designer-pro-demo/demos/webpack-pro-app/public/grid.html)
|
|
46
|
+
* [🐭 Minimal Root Component](https://nocode-js.github.io/sequential-workflow-designer-pro-demo/demos/webpack-pro-app/public/minimal-root-component.html)
|
|
47
|
+
* [🦁 External UI Components](https://nocode-js.github.io/sequential-workflow-designer-pro-demo/demos/webpack-pro-app/public/external-ui-components.html)
|
|
48
|
+
* [👋 Custom Dragged Component](https://nocode-js.github.io/sequential-workflow-designer-pro-demo/demos/webpack-pro-app/public/custom-dragged-component.html)
|
|
49
|
+
* [🔰 Badges](https://nocode-js.github.io/sequential-workflow-designer-pro-demo/demos/webpack-pro-app/public/badges.html)
|
|
50
|
+
* [🎩 Custom Viewport](https://nocode-js.github.io/sequential-workflow-designer-pro-demo/demos/webpack-pro-app/public/custom-viewport.html)
|
|
51
|
+
* [🛎 Clickable Placeholder](https://nocode-js.github.io/sequential-workflow-designer-pro-demo/demos/webpack-pro-app/public/clickable-placeholder.html)
|
|
52
|
+
|
|
53
|
+
## 👩💻 Integrations
|
|
54
|
+
|
|
55
|
+
* [⛽ Sequential Workflow Editor](https://github.com/nocode-js/sequential-workflow-editor) - Powerful step editor builder. Don't write step editors manually, build them.
|
|
56
|
+
* [🚚 Sequential Workflow Machine](https://github.com/nocode-js/sequential-workflow-machine) - Workflow engine for browser and NodeJS apps, powered by the xstate library.
|
|
57
|
+
|
|
58
|
+
## 🚀 Installation
|
|
59
|
+
|
|
60
|
+
To use the designer you should add JS/TS files and CSS files to your project.
|
|
61
|
+
|
|
62
|
+
### NPM
|
|
63
|
+
|
|
64
|
+
Install this package by [NPM](https://www.npmjs.com/) command:
|
|
65
|
+
|
|
66
|
+
`npm i sequential-workflow-designer`
|
|
67
|
+
|
|
68
|
+
To import the package:
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
import { Designer } from 'sequential-workflow-designer';
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
If you use [css-loader](https://webpack.js.org/loaders/css-loader/) or similar, you can add CSS files to your bundle:
|
|
75
|
+
|
|
76
|
+
```ts
|
|
77
|
+
import 'sequential-workflow-designer/css/designer.css';
|
|
78
|
+
import 'sequential-workflow-designer/css/designer-light.css';
|
|
79
|
+
import 'sequential-workflow-designer/css/designer-dark.css';
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
To create the designer write the below code:
|
|
83
|
+
|
|
84
|
+
```ts
|
|
85
|
+
// ...
|
|
86
|
+
Designer.create(placeholder, definition, configuration);
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### CDN
|
|
90
|
+
|
|
91
|
+
Add the below code to your head section in HTML document.
|
|
92
|
+
|
|
93
|
+
```html
|
|
94
|
+
<head>
|
|
95
|
+
...
|
|
96
|
+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.13.8/css/designer.css" rel="stylesheet">
|
|
97
|
+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.13.8/css/designer-light.css" rel="stylesheet">
|
|
98
|
+
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.13.8/css/designer-dark.css" rel="stylesheet">
|
|
99
|
+
<script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.13.8/dist/index.umd.js"></script>
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Call the designer by:
|
|
103
|
+
|
|
104
|
+
```js
|
|
105
|
+
sequentialWorkflowDesigner.Designer.create(placeholder, definition, configuration);
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## 🎬 Usage
|
|
109
|
+
|
|
110
|
+
Check [examples](/examples) directory.
|
|
111
|
+
|
|
112
|
+
```ts
|
|
113
|
+
import { Designer } from 'sequential-workflow-designer';
|
|
114
|
+
|
|
115
|
+
const placeholder = document.getElementById('placeholder');
|
|
116
|
+
|
|
117
|
+
const definition = {
|
|
118
|
+
properties: {
|
|
119
|
+
'myProperty': 'my-value',
|
|
120
|
+
// global properties...
|
|
121
|
+
},
|
|
122
|
+
sequence: [
|
|
123
|
+
// root steps...
|
|
124
|
+
]
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
const configuration = {
|
|
128
|
+
theme: 'light', // optional, default: 'light'
|
|
129
|
+
isReadonly: false, // optional, default: false
|
|
130
|
+
undoStackSize: 10, // optional, default: 0 - disabled, 1+ - enabled
|
|
131
|
+
|
|
132
|
+
steps: {
|
|
133
|
+
// all properties in this section are optional
|
|
134
|
+
|
|
135
|
+
iconUrlProvider: (componentType, type) => {
|
|
136
|
+
return `icon-${componentType}-${type}.svg`;
|
|
137
|
+
},
|
|
138
|
+
|
|
139
|
+
isDraggable: (step, parentSequence) => {
|
|
140
|
+
return step.name !== 'y';
|
|
141
|
+
},
|
|
142
|
+
isDeletable: (step, parentSequence) => {
|
|
143
|
+
return step.properties['isDeletable'];
|
|
144
|
+
},
|
|
145
|
+
canInsertStep: (step, targetSequence, targetIndex) => {
|
|
146
|
+
return targetSequence.length < 5;
|
|
147
|
+
},
|
|
148
|
+
canMoveStep: (sourceSequence, step, targetSequence, targetIndex) => {
|
|
149
|
+
return !step.properties['isLocked'];
|
|
150
|
+
},
|
|
151
|
+
canDeleteStep: (step, parentSequence) => {
|
|
152
|
+
return step.name !== 'x';
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
|
|
156
|
+
validator: {
|
|
157
|
+
// all validators are optional
|
|
158
|
+
|
|
159
|
+
step: (step, parentSequence, definition) => {
|
|
160
|
+
return /^[a-z]+$/.test(step.name);
|
|
161
|
+
},
|
|
162
|
+
root: (definition) => {
|
|
163
|
+
return definition.properties['memory'] > 256;
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
|
|
167
|
+
toolbox: {
|
|
168
|
+
isCollapsed: false,
|
|
169
|
+
groups: [
|
|
170
|
+
{
|
|
171
|
+
name: 'Files',
|
|
172
|
+
steps: [
|
|
173
|
+
// steps for the toolbox's group
|
|
174
|
+
]
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
name: 'Notification',
|
|
178
|
+
steps: [
|
|
179
|
+
// steps for the toolbox's group
|
|
180
|
+
]
|
|
181
|
+
}
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
|
|
185
|
+
editors: {
|
|
186
|
+
isCollapsed: false,
|
|
187
|
+
globalEditorProvider: (definition, globalContext) => {
|
|
188
|
+
const editor = document.createElement('div');
|
|
189
|
+
// ...
|
|
190
|
+
return editor;
|
|
191
|
+
},
|
|
192
|
+
stepEditorProvider: (step, stepContext, definition) => {
|
|
193
|
+
const editor = document.createElement('div');
|
|
194
|
+
// ...
|
|
195
|
+
return editor;
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
|
|
199
|
+
controlBar: true,
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
const designer = Designer.create(placeholder, definition, configuration);
|
|
203
|
+
designer.onDefinitionChanged.subscribe((newDefinition) => {
|
|
204
|
+
// ...
|
|
205
|
+
});
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
You can hide default UI components by setting the corresponding configuration property to `false`.
|
|
209
|
+
|
|
210
|
+
```ts
|
|
211
|
+
const configuration = {
|
|
212
|
+
toolbox: false,
|
|
213
|
+
editors: false,
|
|
214
|
+
controlBar: false,
|
|
215
|
+
// ...
|
|
216
|
+
}
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
## 💡 License
|
|
220
|
+
|
|
221
|
+
This project is released under the MIT license.
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
|
|
2
|
+
/********* dark *********/
|
|
3
|
+
|
|
4
|
+
.sqd-theme-dark.sqd-designer {
|
|
5
|
+
background: #1F1F1F;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* dark > .sqd-toolbox */
|
|
9
|
+
|
|
10
|
+
.sqd-theme-dark .sqd-toolbox {
|
|
11
|
+
background: #3F3F3F;
|
|
12
|
+
}
|
|
13
|
+
.sqd-theme-dark .sqd-toolbox-header-title {
|
|
14
|
+
color: #FFF;
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
.sqd-theme-dark .sqd-toolbox-filter {
|
|
18
|
+
border: 0;
|
|
19
|
+
background: #242424;
|
|
20
|
+
color: #FFF;
|
|
21
|
+
}
|
|
22
|
+
.sqd-theme-dark .sqd-toolbox-group-title {
|
|
23
|
+
background: #242424;
|
|
24
|
+
color: #FFF;
|
|
25
|
+
}
|
|
26
|
+
.sqd-theme-dark .sqd-toolbox-item {
|
|
27
|
+
border: none;
|
|
28
|
+
background: #C6C6C6;
|
|
29
|
+
}
|
|
30
|
+
.sqd-theme-dark .sqd-toolbox-item:hover {
|
|
31
|
+
background: #D3D3D3;
|
|
32
|
+
}
|
|
33
|
+
.sqd-theme-dark .sqd-toolbox-item-icon.sqd-no-icon {
|
|
34
|
+
background: #C6C6C6;
|
|
35
|
+
}
|
|
36
|
+
.sqd-theme-dark .sqd-control-bar-button.sqd-delete .sqd-icon-path {
|
|
37
|
+
fill: #E01A24;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* dark > .sqd-control-bar */
|
|
41
|
+
|
|
42
|
+
.sqd-theme-dark .sqd-control-bar {
|
|
43
|
+
background: #3F3F3F;
|
|
44
|
+
}
|
|
45
|
+
.sqd-theme-dark .sqd-control-bar-button {
|
|
46
|
+
background: #C6C6C6;
|
|
47
|
+
}
|
|
48
|
+
.sqd-theme-dark .sqd-control-bar-button:hover {
|
|
49
|
+
background: #D3D3D3;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* dark > .sqd-workspace */
|
|
53
|
+
|
|
54
|
+
.sqd-theme-dark .sqd-grid-path {
|
|
55
|
+
stroke: #2A2A2A;
|
|
56
|
+
}
|
|
57
|
+
.sqd-theme-dark .sqd-join {
|
|
58
|
+
stroke: #707070;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* dark > .sqd-smart-editor */
|
|
62
|
+
|
|
63
|
+
.sqd-theme-dark .sqd-smart-editor {
|
|
64
|
+
background: #3F3F3F;
|
|
65
|
+
}
|
|
66
|
+
.sqd-theme-dark .sqd-smart-editor-toggle {
|
|
67
|
+
background: #6F6F6F;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* dark > .sqd-step-task */
|
|
71
|
+
|
|
72
|
+
.sqd-theme-dark .sqd-step-task-rect {
|
|
73
|
+
fill: #C6C6C6;
|
|
74
|
+
stroke: none;
|
|
75
|
+
filter: drop-shadow(0 1.5px 1.5px rgba(0, 0, 0, .15));
|
|
76
|
+
}
|
|
77
|
+
.sqd-theme-dark .sqd-step-task-rect.sqd-selected {
|
|
78
|
+
stroke: #FFF;
|
|
79
|
+
}
|
|
80
|
+
.sqd-theme-dark .sqd-step-task-text {
|
|
81
|
+
fill: #000;
|
|
82
|
+
}
|
|
83
|
+
.sqd-theme-dark .sqd-step-task-empty-icon {
|
|
84
|
+
fill: #C6C6C6;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* dark > .sqd-input + .sqd-output */
|
|
88
|
+
|
|
89
|
+
.sqd-theme-dark .sqd-input {
|
|
90
|
+
fill: #C6C6C6;
|
|
91
|
+
stroke: #707070;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.sqd-theme-dark .sqd-output {
|
|
95
|
+
fill: #707070;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* dark > .sqd-region */
|
|
99
|
+
|
|
100
|
+
.sqd-theme-dark .sqd-region {
|
|
101
|
+
stroke: #434343;
|
|
102
|
+
}
|
|
103
|
+
.sqd-theme-dark .sqd-region.sqd-selected {
|
|
104
|
+
stroke: #FFF;
|
|
105
|
+
}
|
|
106
|
+
.sqd-theme-dark .sqd-label-primary .sqd-label-rect {
|
|
107
|
+
fill: #2411DB;
|
|
108
|
+
}
|
|
109
|
+
.sqd-theme-dark .sqd-label-secondary .sqd-label-rect {
|
|
110
|
+
fill: #0E0E0E;
|
|
111
|
+
}
|
|
112
|
+
.sqd-theme-dark .sqd-label-text {
|
|
113
|
+
fill: #FFF;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* dark > .sqd-root-start-stop */
|
|
117
|
+
|
|
118
|
+
.sqd-theme-dark .sqd-root-start-stop-circle {
|
|
119
|
+
fill: #2C18DF;
|
|
120
|
+
}
|
|
121
|
+
.sqd-theme-dark .sqd-root-start-stop-icon {
|
|
122
|
+
fill: #FFF;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* dark > .sqd-placeholder */
|
|
126
|
+
|
|
127
|
+
.sqd-theme-dark .sqd-placeholder .sqd-placeholder-rect {
|
|
128
|
+
fill: #0E0E0E;
|
|
129
|
+
stroke: #6A6A6A;
|
|
130
|
+
}
|
|
131
|
+
.sqd-theme-dark .sqd-placeholder-icon-path {
|
|
132
|
+
fill: #FFF;
|
|
133
|
+
}
|
|
134
|
+
.sqd-theme-dark .sqd-placeholder.sqd-hover .sqd-placeholder-rect {
|
|
135
|
+
fill: #ED4800;
|
|
136
|
+
}
|
|
137
|
+
.sqd-theme-dark .sqd-placeholder.sqd-hover .sqd-placeholder-icon-path {
|
|
138
|
+
fill: #FFF;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* dark > .sqd-validation-error */
|
|
142
|
+
|
|
143
|
+
.sqd-theme-dark .sqd-validation-error {
|
|
144
|
+
fill: #FFA200;
|
|
145
|
+
}
|
|
146
|
+
.sqd-theme-dark .sqd-validation-error-icon-path {
|
|
147
|
+
fill: #000;
|
|
148
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
|
|
2
|
+
/********* light *********/
|
|
3
|
+
|
|
4
|
+
.sqd-theme-light.sqd-designer {
|
|
5
|
+
background: #F9F9F9;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* light > .sqd-toolbox */
|
|
9
|
+
|
|
10
|
+
.sqd-theme-light .sqd-toolbox {
|
|
11
|
+
background: #FFF;
|
|
12
|
+
box-shadow: 0 0 8px rgba(0, 0, 0, .15), 0 2px 4px rgba(0, 0, 0, .15);
|
|
13
|
+
}
|
|
14
|
+
.sqd-theme-light .sqd-toolbox-filter {
|
|
15
|
+
border: 1px solid #C3C3C3;
|
|
16
|
+
}
|
|
17
|
+
.sqd-theme-light .sqd-toolbox-filter:focus {
|
|
18
|
+
border-color: #939393;
|
|
19
|
+
}
|
|
20
|
+
.sqd-theme-light .sqd-toolbox-group-title {
|
|
21
|
+
background: #E5E5E5;
|
|
22
|
+
}
|
|
23
|
+
.sqd-theme-light .sqd-toolbox-item {
|
|
24
|
+
border: 1px solid #C3C3C3;
|
|
25
|
+
box-shadow: 0 2px 2px rgba(0, 0, 0, .15);
|
|
26
|
+
}
|
|
27
|
+
.sqd-theme-light .sqd-toolbox-item:hover {
|
|
28
|
+
border: 1px solid #939393;
|
|
29
|
+
}
|
|
30
|
+
.sqd-theme-light .sqd-toolbox-item-icon.sqd-no-icon {
|
|
31
|
+
background: #C6C6C6;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* light > .sqd-control-bar */
|
|
35
|
+
|
|
36
|
+
.sqd-theme-light .sqd-control-bar {
|
|
37
|
+
background: #FFF;
|
|
38
|
+
box-shadow: 0 0 8px rgba(0, 0, 0, .15), 0 2px 4px rgba(0, 0, 0, .15);
|
|
39
|
+
}
|
|
40
|
+
.sqd-theme-light .sqd-control-bar-button {
|
|
41
|
+
border: 1px solid #C3C3C3;
|
|
42
|
+
}
|
|
43
|
+
.sqd-theme-light .sqd-control-bar-button:hover {
|
|
44
|
+
border-color: #939393;
|
|
45
|
+
}
|
|
46
|
+
.sqd-theme-light .sqd-control-bar-button.sqd-delete .sqd-icon-path {
|
|
47
|
+
fill: #E01A24;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* light > .sqd-workspace */
|
|
51
|
+
|
|
52
|
+
.sqd-theme-light .sqd-grid-path {
|
|
53
|
+
stroke: #E3E3E3;
|
|
54
|
+
}
|
|
55
|
+
.sqd-theme-light .sqd-join {
|
|
56
|
+
stroke: #000;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* light > .sqd-smart-editor */
|
|
60
|
+
|
|
61
|
+
.sqd-theme-light .sqd-smart-editor {
|
|
62
|
+
background: #FFF;
|
|
63
|
+
box-shadow: 0 0 8px rgba(0, 0, 0, .15);
|
|
64
|
+
}
|
|
65
|
+
.sqd-theme-light .sqd-smart-editor-toggle {
|
|
66
|
+
background: #FFF;
|
|
67
|
+
box-shadow: 0 0 8px rgba(0, 0, 0, .15);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* light > .sqd-step-task */
|
|
71
|
+
|
|
72
|
+
.sqd-theme-light .sqd-step-task-rect {
|
|
73
|
+
fill: #FFF;
|
|
74
|
+
stroke: #C3C3C3;
|
|
75
|
+
filter: drop-shadow(0 1.5px 1.5px rgba(0, 0, 0, .15));
|
|
76
|
+
}
|
|
77
|
+
.sqd-theme-light .sqd-step-task-rect.sqd-selected {
|
|
78
|
+
stroke: #ED4800;
|
|
79
|
+
}
|
|
80
|
+
.sqd-theme-light .sqd-step-task-text {
|
|
81
|
+
fill: #000;
|
|
82
|
+
}
|
|
83
|
+
.sqd-theme-light .sqd-step-task-empty-icon {
|
|
84
|
+
fill: #C6C6C6;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* light > .sqd-input + .sqd-output */
|
|
88
|
+
|
|
89
|
+
.sqd-theme-light .sqd-input {
|
|
90
|
+
fill: #FFF;
|
|
91
|
+
stroke: #000;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.sqd-theme-light .sqd-output {
|
|
95
|
+
fill: #000;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* light > .sqd-region */
|
|
99
|
+
|
|
100
|
+
.sqd-theme-light .sqd-region {
|
|
101
|
+
stroke: #CECECE;
|
|
102
|
+
}
|
|
103
|
+
.sqd-theme-light .sqd-region.sqd-selected {
|
|
104
|
+
stroke: #ED4800;
|
|
105
|
+
}
|
|
106
|
+
.sqd-theme-light .sqd-label-primary .sqd-label-rect {
|
|
107
|
+
fill: #2411DB;
|
|
108
|
+
}
|
|
109
|
+
.sqd-theme-light .sqd-label-secondary .sqd-label-rect {
|
|
110
|
+
fill: #000;
|
|
111
|
+
}
|
|
112
|
+
.sqd-theme-light .sqd-label-text {
|
|
113
|
+
fill: #FFF;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* light > .sqd-root-start-stop */
|
|
117
|
+
|
|
118
|
+
.sqd-theme-light .sqd-root-start-stop-circle {
|
|
119
|
+
fill: #2C18DF;
|
|
120
|
+
}
|
|
121
|
+
.sqd-theme-light .sqd-root-start-stop-icon {
|
|
122
|
+
fill: #FFF;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* light > .sqd-placeholder */
|
|
126
|
+
|
|
127
|
+
.sqd-theme-light .sqd-placeholder .sqd-placeholder-rect {
|
|
128
|
+
fill: #D8D8D8;
|
|
129
|
+
stroke: #6A6A6A;
|
|
130
|
+
}
|
|
131
|
+
.sqd-theme-light .sqd-placeholder-icon-path {
|
|
132
|
+
fill: #2B2B2B;
|
|
133
|
+
}
|
|
134
|
+
.sqd-theme-light .sqd-placeholder.sqd-hover .sqd-placeholder-rect {
|
|
135
|
+
fill: #ED4800;
|
|
136
|
+
}
|
|
137
|
+
.sqd-theme-light .sqd-placeholder.sqd-hover .sqd-placeholder-icon-path {
|
|
138
|
+
fill: #FFF;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* light > .sqd-validation-error */
|
|
142
|
+
|
|
143
|
+
.sqd-theme-light .sqd-validation-error {
|
|
144
|
+
fill: #FFA200;
|
|
145
|
+
}
|
|
146
|
+
.sqd-theme-light .sqd-validation-error-icon-path {
|
|
147
|
+
fill: #000;
|
|
148
|
+
}
|