sequential-workflow-designer-svelte 0.29.2 → 0.30.1
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.
|
@@ -16,6 +16,7 @@ export let preferenceStorage = void 0;
|
|
|
16
16
|
export let undoStackSize = void 0;
|
|
17
17
|
export let undoStack = void 0;
|
|
18
18
|
export let validator = void 0;
|
|
19
|
+
export let placeholder = void 0;
|
|
19
20
|
export let definitionWalker = void 0;
|
|
20
21
|
export let extensions = void 0;
|
|
21
22
|
export let i18n = void 0;
|
|
@@ -30,18 +31,18 @@ export let isReadonly = false;
|
|
|
30
31
|
export let selectedStepId = null;
|
|
31
32
|
let isFirstChange = true;
|
|
32
33
|
let designer = null;
|
|
33
|
-
let
|
|
34
|
+
let root;
|
|
34
35
|
function init() {
|
|
35
36
|
const editors = (stepEditor || nativeStepEditor) && (rootEditor || nativeRootEditor) ? {
|
|
36
37
|
isCollapsed: isEditorCollapsed,
|
|
37
38
|
stepEditorProvider: (step, context, def, isReadonly2) => {
|
|
38
39
|
if (stepEditor) {
|
|
39
|
-
const
|
|
40
|
+
const root2 = document.createElement("div");
|
|
40
41
|
new stepEditor({
|
|
41
|
-
target:
|
|
42
|
+
target: root2,
|
|
42
43
|
props: { step, context, definition: def, isReadonly: isReadonly2 }
|
|
43
44
|
});
|
|
44
|
-
return
|
|
45
|
+
return root2;
|
|
45
46
|
}
|
|
46
47
|
if (nativeStepEditor) {
|
|
47
48
|
return nativeStepEditor(step, context, def, isReadonly2);
|
|
@@ -50,12 +51,12 @@ function init() {
|
|
|
50
51
|
},
|
|
51
52
|
rootEditorProvider: (def, context, isReadonly2) => {
|
|
52
53
|
if (rootEditor) {
|
|
53
|
-
const
|
|
54
|
+
const root2 = document.createElement("div");
|
|
54
55
|
new rootEditor({
|
|
55
|
-
target:
|
|
56
|
+
target: root2,
|
|
56
57
|
props: { definition: def, context, isReadonly: isReadonly2 }
|
|
57
58
|
});
|
|
58
|
-
return
|
|
59
|
+
return root2;
|
|
59
60
|
}
|
|
60
61
|
if (nativeRootEditor) {
|
|
61
62
|
return nativeRootEditor(def, context, isReadonly2);
|
|
@@ -67,7 +68,7 @@ function init() {
|
|
|
67
68
|
...toolbox,
|
|
68
69
|
isCollapsed: isToolboxCollapsed
|
|
69
70
|
} : false;
|
|
70
|
-
const d = Designer.create(
|
|
71
|
+
const d = Designer.create(root, definition, {
|
|
71
72
|
steps,
|
|
72
73
|
controlBar,
|
|
73
74
|
toolbox: _toolbox,
|
|
@@ -79,6 +80,7 @@ function init() {
|
|
|
79
80
|
undoStackSize,
|
|
80
81
|
undoStack,
|
|
81
82
|
validator,
|
|
83
|
+
placeholder,
|
|
82
84
|
definitionWalker,
|
|
83
85
|
extensions,
|
|
84
86
|
isReadonly,
|
|
@@ -144,4 +146,4 @@ onDestroy(() => {
|
|
|
144
146
|
});
|
|
145
147
|
</script>
|
|
146
148
|
|
|
147
|
-
<div bind:this={
|
|
149
|
+
<div bind:this={root} class="sqd-designer-svelte" />
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
-
import { DefinitionWalker, type Definition, type StepsConfiguration, type ToolboxConfiguration, type UndoStack, type ValidatorConfiguration, type UidGenerator, type DesignerExtension, type CustomActionHandler, type StepEditorProvider, type RootEditorProvider, type KeyboardConfiguration, type I18n, type PreferenceStorage } from 'sequential-workflow-designer';
|
|
2
|
+
import { DefinitionWalker, type Definition, type StepsConfiguration, type ToolboxConfiguration, type UndoStack, type ValidatorConfiguration, type PlaceholderConfiguration, type UidGenerator, type DesignerExtension, type CustomActionHandler, type StepEditorProvider, type RootEditorProvider, type KeyboardConfiguration, type I18n, type PreferenceStorage } from 'sequential-workflow-designer';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
5
|
definition: Definition;
|
|
@@ -14,6 +14,7 @@ declare const __propDef: {
|
|
|
14
14
|
undoStackSize?: number | undefined;
|
|
15
15
|
undoStack?: UndoStack | undefined;
|
|
16
16
|
validator?: ValidatorConfiguration | undefined;
|
|
17
|
+
placeholder?: PlaceholderConfiguration | undefined;
|
|
17
18
|
definitionWalker?: DefinitionWalker | undefined;
|
|
18
19
|
extensions?: DesignerExtension[] | undefined;
|
|
19
20
|
i18n?: I18n | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sequential-workflow-designer-svelte",
|
|
3
3
|
"description": "Svelte wrapper for Sequential Workflow Designer component.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.30.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"prepare": "cp ../LICENSE LICENSE",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
],
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"svelte": "^4.0.0",
|
|
31
|
-
"sequential-workflow-designer": "^0.
|
|
31
|
+
"sequential-workflow-designer": "^0.30.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"sequential-workflow-designer": "^0.
|
|
34
|
+
"sequential-workflow-designer": "^0.30.1",
|
|
35
35
|
"@sveltejs/adapter-static": "^2.0.3",
|
|
36
36
|
"@sveltejs/kit": "^1.20.4",
|
|
37
37
|
"@sveltejs/package": "^2.0.0",
|