Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nocode-js/sequential-workflow-editor
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.9.2
Choose a base ref
...
head repository: nocode-js/sequential-workflow-editor
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Sep 25, 2023

  1. 0.9.3. (#22)

    b4rtaz authored Sep 25, 2023
    Copy the full SHA
    2f11515 View commit details

Commits on Oct 19, 2023

  1. 0.10.0. (#23)

    b4rtaz authored Oct 19, 2023
    Copy the full SHA
    0124d4e View commit details

Commits on Oct 29, 2023

  1. 0.11.0. (#26)

    b4rtaz authored Oct 29, 2023
    Copy the full SHA
    6c316c7 View commit details

Commits on Oct 31, 2023

  1. pro.

    b4rtaz committed Oct 31, 2023
    Copy the full SHA
    a3312c5 View commit details

Commits on Nov 9, 2023

  1. update swd to 0.17.0.

    b4rtaz committed Nov 9, 2023
    Copy the full SHA
    6764267 View commit details

Commits on Nov 13, 2023

  1. 0.11.1. (#27)

    b4rtaz authored Nov 13, 2023
    Copy the full SHA
    ee9035f View commit details

Commits on Nov 14, 2023

  1. 0.11.2. (#28)

    b4rtaz authored Nov 14, 2023
    Copy the full SHA
    eb4bb32 View commit details

Commits on Nov 15, 2023

  1. 0.11.3. (#29)

    b4rtaz authored Nov 15, 2023
    Copy the full SHA
    4ce6415 View commit details

Commits on Feb 22, 2024

  1. Copy the full SHA
    f16d19a View commit details
  2. Copy the full SHA
    763c566 View commit details
  3. Copy the full SHA
    e796e7d View commit details

Commits on Feb 24, 2024

  1. vanilla js demo.

    b4rtaz committed Feb 24, 2024
    Copy the full SHA
    833d439 View commit details

Commits on May 24, 2024

  1. 0.12.0. (#33)

    b4rtaz authored May 24, 2024
    Copy the full SHA
    44dc0f9 View commit details

Commits on Jun 6, 2024

  1. 0.12.1. (#35)

    b4rtaz authored Jun 6, 2024
    Copy the full SHA
    6397a30 View commit details

Commits on Jun 21, 2024

  1. 0.13.0. (#36)

    b4rtaz authored Jun 21, 2024
    Copy the full SHA
    bcd44e9 View commit details

Commits on Jun 27, 2024

  1. 0.13.1. (#38)

    b4rtaz authored Jun 27, 2024
    Copy the full SHA
    bd0f449 View commit details

Commits on Jun 28, 2024

  1. 0.13.2. (#39)

    b4rtaz authored Jun 28, 2024
    Copy the full SHA
    5193dc9 View commit details

Commits on Sep 11, 2024

  1. 0.14.0. (#42)

    b4rtaz authored Sep 11, 2024
    Copy the full SHA
    8c1ed07 View commit details

Commits on Oct 6, 2024

  1. 0.14.1. (#43)

    b4rtaz authored Oct 6, 2024
    Copy the full SHA
    2503075 View commit details
  2. 0.14.2. (#44)

    b4rtaz authored Oct 6, 2024
    Copy the full SHA
    95bcf12 View commit details

Commits on Oct 23, 2024

  1. 0.14.3. (#47)

    b4rtaz authored Oct 23, 2024
    Copy the full SHA
    885fdca View commit details

Commits on Oct 27, 2024

  1. 0.14.4. (#48)

    b4rtaz authored Oct 27, 2024
    Copy the full SHA
    40917b1 View commit details

Commits on Jan 10, 2025

  1. 0.14.5. (#50)

    b4rtaz authored Jan 10, 2025
    Copy the full SHA
    53c9d33 View commit details

Commits on Feb 5, 2025

  1. 0.14.6. (#51)

    b4rtaz authored Feb 5, 2025
    Copy the full SHA
    e0b309f View commit details
  2. fix ci.

    b4rtaz committed Feb 5, 2025
    Copy the full SHA
    9836556 View commit details

Commits on Feb 6, 2025

  1. 0.14.7. (#52)

    b4rtaz authored Feb 6, 2025
    Copy the full SHA
    36795f9 View commit details

Commits on Mar 8, 2025

  1. 0.14.8. (#54)

    b4rtaz authored Mar 8, 2025
    Copy the full SHA
    41b8bb9 View commit details
  2. changelog.

    b4rtaz committed Mar 8, 2025
    Copy the full SHA
    3b259de View commit details
Showing with 2,072 additions and 545 deletions.
  1. +2 −2 .github/workflows/deploy-examples.yml
  2. +101 −0 CHANGELOG.md
  3. +11 −1 README.md
  4. BIN demos/vanilla-js-app/assets/favicon.ico
  5. +21 −0 demos/vanilla-js-app/assets/lib.js
  6. +71 −0 demos/vanilla-js-app/assets/vanilla-js.js
  7. +17 −0 demos/vanilla-js-app/package.json
  8. +45 −0 demos/vanilla-js-app/vanilla-js.html
  9. +4 −4 demos/webpack-app/package.json
  10. +1 −1 demos/webpack-app/public/assets/editors.css
  11. +59 −0 demos/webpack-app/public/assets/i18n.css
  12. +1 −1 demos/webpack-app/public/assets/placement-restrictions.css
  13. +3 −0 demos/webpack-app/public/assets/playground.css
  14. +29 −0 demos/webpack-app/public/i18n.html
  15. +7 −1 demos/webpack-app/public/playground.html
  16. +7 −0 demos/webpack-app/src/editors/app.css
  17. +14 −6 demos/webpack-app/src/editors/app.ts
  18. +2 −0 demos/webpack-app/src/editors/model/any-variables-step-model.ts
  19. +2 −0 demos/webpack-app/src/editors/model/boolean-step-model.ts
  20. +10 −4 demos/webpack-app/src/editors/model/choice-step-model.ts
  21. +14 −1 demos/webpack-app/src/editors/model/dynamic-step-model.ts
  22. +4 −0 demos/webpack-app/src/editors/model/generated-string-step-model.ts
  23. +8 −5 demos/webpack-app/src/editors/model/string-step-model.ts
  24. +160 −0 demos/webpack-app/src/i18n/app.ts
  25. +77 −0 demos/webpack-app/src/i18n/definition-model.ts
  26. +1 −1 demos/webpack-app/src/placement-restrictions/app.ts
  27. +1 −1 demos/webpack-app/src/playground/app.ts
  28. +7 −1 demos/webpack-app/src/playground/machine/activities/set-string-value-activity.ts
  29. +15 −1 demos/webpack-app/src/playground/model/set-string-value-step-model.ts
  30. +14 −0 demos/webpack-app/src/playground/utilities/text-variable-parser.ts
  31. +3 −2 demos/webpack-app/webpack.config.js
  32. +58 −0 docs/I18N-KEYS.md
  33. +13 −2 editor/css/editor.css
  34. +9 −9 editor/package.json
  35. +3 −0 editor/rollup.config.mjs
  36. +11 −0 editor/src/components/button-component.spec.ts
  37. +24 −3 editor/src/components/button-component.ts
  38. +12 −5 editor/src/components/dynamic-list-component.spec.ts
  39. +15 −8 editor/src/components/dynamic-list-component.ts
  40. +13 −3 editor/src/components/input-component.ts
  41. +3 −1 editor/src/components/property-validation-error-component.ts
  42. +8 −0 editor/src/components/row-component.spec.ts
  43. +7 −1 editor/src/components/row-component.ts
  44. +38 −0 editor/src/components/validation-error-component.spec.ts
  45. +17 −1 editor/src/components/validation-error-component.ts
  46. +12 −0 editor/src/core/html.spec.ts
  47. +8 −0 editor/src/core/html.ts
  48. +40 −0 editor/src/core/sort-toolbox-groups.spec.ts
  49. +8 −0 editor/src/core/sort-toolbox-groups.ts
  50. +3 −0 editor/src/core/step-i18n-prefix.ts
  51. +7 −5 editor/src/editor-header.ts
  52. +41 −2 editor/src/editor-provider-configuration.ts
  53. +42 −16 editor/src/editor-provider.ts
  54. +5 −9 editor/src/editor.ts
  55. +0 −5 editor/src/external-types.ts
  56. +71 −12 editor/src/property-editor/property-editor.ts
  57. +4 −5 editor/src/value-editors/any-variables/any-variable-item-component.ts
  58. +2 −2 editor/src/value-editors/any-variables/any-variable-selector-component.ts
  59. +1 −1 editor/src/value-editors/any-variables/any-variables-value-editor.ts
  60. +1 −1 editor/src/value-editors/boolean/boolean-value-editor.ts
  61. +15 −3 editor/src/value-editors/choice/choice-value-editor.ts
  62. +25 −3 editor/src/value-editors/dynamic/dynamic-value-editor.ts
  63. +11 −0 editor/src/value-editors/hidden/hidden-value-editor.spec.ts
  64. +11 −0 editor/src/value-editors/hidden/hidden-value-editor.ts
  65. +1 −0 editor/src/value-editors/index.ts
  66. +9 −1 editor/src/value-editors/nullable-any-variable/nullable-any-variable-editor.ts
  67. +6 −1 editor/src/value-editors/nullable-variable/nullable-variable-value-editor.ts
  68. +6 −7 editor/src/value-editors/string-dictionary/string-dictionary-item-component.ts
  69. +2 −2 editor/src/value-editors/string-dictionary/string-dictionary-value-editor.ts
  70. +3 −0 editor/src/value-editors/string/index.ts
  71. +4 −0 editor/src/value-editors/string/string-value-editor-configuration.ts
  72. +19 −0 editor/src/value-editors/string/string-value-editor-extension.ts
  73. +26 −21 editor/src/value-editors/string/string-value-editor.ts
  74. +0 −18 editor/src/value-editors/value-editor-factory-resolver.spec.ts
  75. +5 −16 editor/src/value-editors/value-editor-factory-resolver.ts
  76. +4 −1 editor/src/value-editors/value-editor.ts
  77. +3 −4 editor/src/value-editors/variable-definitions/variable-definition-item-component.ts
  78. +2 −2 editor/src/value-editors/variable-definitions/variable-definitions-value-editor.ts
  79. +8 −6 model/package.json
  80. +21 −0 model/rollup.config.mjs
  81. +13 −6 model/src/activator/model-activator.ts
  82. +5 −1 model/src/builders/branched-step-model-builder.ts
  83. +4 −6 model/src/builders/property-model-builder.ts
  84. +9 −0 model/src/builders/root-model-builder.ts
  85. +4 −0 model/src/builders/sequential-step-model-builder.ts
  86. +18 −3 model/src/builders/step-model-builder.ts
  87. +6 −14 model/src/context/default-value-context.ts
  88. +7 −4 model/src/context/definition-context.ts
  89. +2 −0 model/src/context/index.ts
  90. +62 −0 model/src/context/property-context.ts
  91. +49 −0 model/src/context/scoped-property-context.ts
  92. +32 −38 model/src/context/value-context.ts
  93. +18 −8 model/src/context/variables-provider.ts
  94. +18 −0 model/src/i18n.spec.ts
  95. +12 −0 model/src/i18n.ts
  96. +1 −0 model/src/index.ts
  97. +8 −4 model/src/model.ts
  98. +3 −1 model/src/test-tools/value-context-stub.ts
  99. +5 −4 model/src/validator/definition-validator.spec.ts
  100. +12 −7 model/src/validator/definition-validator.ts
  101. +15 −20 model/src/validator/property-validator-context.ts
  102. +17 −14 model/src/validator/variable-name-validator.spec.ts
  103. +8 −4 model/src/validator/variable-name-validator.ts
  104. +10 −3 model/src/value-models/any-variables/any-variables-value-model.ts
  105. +1 −0 model/src/value-models/boolean/boolean-value-model-configuration.ts
  106. +1 −1 model/src/value-models/boolean/boolean-value-model-validator.spec.ts
  107. +1 −1 model/src/value-models/boolean/boolean-value-model-validator.ts
  108. +3 −1 model/src/value-models/boolean/boolean-value-model.spec.ts
  109. +1 −1 model/src/value-models/boolean/boolean-value-model.ts
  110. +4 −4 model/src/value-models/branches/branches-value-model-validator.spec.ts
  111. +6 −4 model/src/value-models/branches/branches-value-model-validator.ts
  112. +18 −0 model/src/value-models/choice/choice-value-model-configuration.ts
  113. +20 −0 model/src/value-models/choice/choice-value-model-validator.spec.ts
  114. +12 −0 model/src/value-models/choice/choice-value-model-validator.ts
  115. +11 −18 model/src/value-models/choice/choice-value-model.ts
  116. +1 −0 model/src/value-models/choice/index.ts
  117. +0 −84 model/src/value-models/depreciated.ts
  118. +2 −12 model/src/value-models/generated-string/generated-string-context.ts
  119. +7 −2 ...l/src/value-models/generated-string/{generated-string-model.ts → generated-string-value-model.ts}
  120. +1 −1 model/src/value-models/generated-string/index.ts
  121. +0 −1 model/src/value-models/index.ts
  122. +11 −4 model/src/value-models/nullable-any-variable/nullable-any-variable-value-model.ts
  123. +12 −4 model/src/value-models/nullable-variable-definition/nullable-variable-definition-value-model.ts
  124. +10 −3 model/src/value-models/nullable-variable/nullable-variable-value-model.ts
  125. +1 −0 model/src/value-models/number/number-value-model-configuration.ts
  126. +4 −4 model/src/value-models/number/number-value-model-validator.spec.ts
  127. +11 −3 model/src/value-models/number/number-value-model-validator.ts
  128. +1 −1 model/src/value-models/number/number-value-model.ts
  129. +2 −0 model/src/value-models/string-dictionary/string-dictionary-value-model-configuration.ts
  130. +5 −3 model/src/value-models/string-dictionary/string-dictionary-value-model-validator.ts
  131. +2 −1 model/src/value-models/string-dictionary/string-dictionary-value-model.ts
  132. +1 −0 model/src/value-models/string/string-value-model-configuration.ts
  133. +3 −3 model/src/value-models/string/string-value-model-validator.spec.ts
  134. +9 −3 model/src/value-models/string/string-value-model-validator.ts
  135. +1 −1 model/src/value-models/string/string-value-model.ts
  136. +4 −4 model/src/value-models/variable-definitions/variable-definitions-value-model.ts
  137. +1 −0 package.json
  138. +57 −0 scripts/generate-i18n-keys.cjs
  139. +142 −36 yarn.lock
4 changes: 2 additions & 2 deletions .github/workflows/deploy-examples.yml
Original file line number Diff line number Diff line change
@@ -33,9 +33,9 @@ jobs:
- name: Build
run: yarn build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: demos
- name: Deploy
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4
101 changes: 101 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,104 @@
## O.14.8

This PR adds support for the internationalization of options in the choice value model [#53](https://github.com/nocode-js/sequential-workflow-editor/issues/53).

## O.14.7

Added an `index` argument to the `itemComponentFactory` callback in the `dynamicListComponent` function.

## O.14.6

Added comments to describe the `BranchedStepModelBuilder`, `SequentialStepModelBuilder` and `RootModelBuilder` classes.

## O.14.5

Added comments to describe the `EditorProvider` class.

## 0.14.4

This version exposes the `ToolboxGroup` interface in the `sequential-workflow-editor` package [#46](https://github.com/nocode-js/sequential-workflow-editor/issues/46#issuecomment-2439817733).

## 0.14.3

This version provides the ability to sort the steps in the toolbox in a custom way. By default, the steps are sorted alphabetically.

```ts
EditorProvider.create(definitionModel, {
// ...
toolboxSorter(groups: ToolboxGroup[]) {
// ...
}
});
```

You can also hide certain steps from the toolbox by using the hidden method in the step builder.

```ts
createStepModel<MyStep>('myStep', 'task', step => {
step.toolbox(false);
});
```

## 0.14.2

This version adds the `formatPropertyValue` method to the `PropertyValidatorContext` class.

## 0.14.1

This version adds the `formatPropertyValue` method to: `PropertyContext`, `DefaultValueContext`, `ScopedPropertyContext` and `ValueContext` classes.

## 0.14.0

From now, the nullable any variable editor and the nullable variable editor display the expected variable types to select. This version also allows changes to the labels in the dropdown menu of the dynamic value editor.

## 0.13.2

This version adds missing translations for the `variableDefinitions` value editor.

## 0.13.1

This version adds missing translations for the `variableNameValidator` function [#37](https://github.com/nocode-js/sequential-workflow-editor/issues/37).

## 0.13.0

This version introduces several internal changes that allowed for the creation of a new type of editor in the pro version: the hidden dependent value editor.

## 0.12.1

This version normalizes translations.

## 0.12.0

This version introduces the localization feature. Now you can localize the editor to any language you want.

## 0.11.3

This version improves the behavior of the `Dynamic` value editor, when the sub editor contains a control visible in the property header.

## 0.11.2

This version adds a generic type to the `ChoiceValueModel` interface.

## 0.11.1

This version improves support for UMD bundles.

## 0.11.0

This version normalizes names of functions in `ValueContext` and `PropertyValidatorContext` classes.

The `CustomValidatorContext` class is deleted now, please use the `PropertyValidatorContext` class instead.

The `PropertyModelBuilder` class has deleted the `customValidator` function, please use the `validator` function instead.

## 0.10.0

This version deletes all deprecated `*ValueModel` functions. From now, use only `create*ValueModel` functions.

## 0.9.3

Added `hasVariable` and `hasVariables` methods to the `PropertyValidatorContext` class.

## 0.9.2

This version fixes a bug in the `ValueEditorFactoryResolver` class. Now, when an editor is not found, the resolver throws an error.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -8,11 +8,21 @@ Powerful workflow editor builder for sequential workflows. Written in TypeScript

📝 Check the [documentation](https://nocode-js.com/docs/category/sequential-workflow-editor) for more details.

🤩 Don't miss [the pro version](https://nocode-js.com/sequential-workflow-editor-pro/pricing).

## 👀 Examples

* [🛠 Playground](https://nocode-js.github.io/sequential-workflow-editor/webpack-app/public/playground.html)
* [📖 Editors](https://nocode-js.github.io/sequential-workflow-editor/webpack-app/public/editors.html)
* [🎯 Placement Restrictions](https://nocode-js.github.io/sequential-workflow-editor/webpack-app/public/placement-restrictions.html)
* [🚩 Internationalization](https://nocode-js.github.io/sequential-workflow-editor/webpack-app/public/i18n.html)
* [🚢 Vanilla JS](https://nocode-js.github.io/sequential-workflow-editor/vanilla-js-app/vanilla-js.html)

Pro:

* [📖 Pro Editors](https://nocode-js.com/examples/sequential-workflow-editor-pro/webpack-pro-app/public/editors.html)
* [📫 Template System](https://nocode-js.com/examples/sequential-workflow-editor-pro/webpack-pro-app/public/template-system.html)
* [🎱 Dynamic Variables](https://nocode-js.com/examples/sequential-workflow-editor-pro/webpack-pro-app/public/dynamic-variables.html)

## 🚀 Installation

@@ -109,7 +119,7 @@ import { Designer } from 'sequential-workflow-designer';

const designer = Designer.create(placeholder, startDefinition, {
editors: {
globalEditorProvider: editorProvider.createRootEditorProvider(),
rootEditorProvider: editorProvider.createRootEditorProvider(),
stepEditorProvider: editorProvider.createStepEditorProvider()
},
validator: {
Binary file added demos/vanilla-js-app/assets/favicon.ico
Binary file not shown.
21 changes: 21 additions & 0 deletions demos/vanilla-js-app/assets/lib.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/* global location, document */

function isTestEnv() {
const hostname = location.hostname.toLowerCase();
return hostname === 'localhost' || hostname === '127.0.0.1' || hostname.startsWith('192.168.');
}

function embedScript(url) {
document.write(`<script src="${url}"></script>`);
}

function embedStylesheet(url) {
document.write(`<link href="${url}" rel="stylesheet">`);
}

const modelBaseUrl = isTestEnv() ? '../../model' : '//cdn.jsdelivr.net/npm/sequential-workflow-editor-model@0.11.3';
const editorBaseUrl = isTestEnv() ? '../../editor' : '//cdn.jsdelivr.net/npm/sequential-workflow-editor@0.11.3';

embedScript(`${modelBaseUrl}/dist/index.umd.js`);
embedScript(`${editorBaseUrl}/dist/index.umd.js`);
embedStylesheet(`${editorBaseUrl}/css/editor.css`);
71 changes: 71 additions & 0 deletions demos/vanilla-js-app/assets/vanilla-js.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
/* global window, document, sequentialWorkflowEditorModel, sequentialWorkflowEditor, sequentialWorkflowDesigner */

const nextId = sequentialWorkflowDesigner.Uid.next;

const rootModel = sequentialWorkflowEditorModel.createRootModel(model => {
model.property('host').value(sequentialWorkflowEditorModel.createStringValueModel({}));
});

const sendEmailModel = sequentialWorkflowEditorModel.createStepModel('sendEmail', 'task', step => {
step.property('to').value(sequentialWorkflowEditorModel.createStringValueModel({}));
step.property('ssl').value(sequentialWorkflowEditorModel.createBooleanValueModel({}));
});

const sqlQueryModel = sequentialWorkflowEditorModel.createStepModel('sqlQuery', 'task', step => {
step.property('query').value(
sequentialWorkflowEditorModel.createStringValueModel({
defaultValue: 'SELECT * FROM table'
})
);
});

const definitionModel = sequentialWorkflowEditorModel.createDefinitionModel(model => {
model.valueTypes(['string']);
model.root(rootModel);
model.steps([sendEmailModel, sqlQueryModel]);
});

const editorProvider = sequentialWorkflowEditor.EditorProvider.create(definitionModel, {
uidGenerator: nextId
});

const startDefinition = {
properties: {
host: '127.0.0.1'
},
sequence: [
{
id: nextId(),
name: 'Send Email',
type: 'sendEmail',
componentType: 'task',
properties: {
to: 'test@example.com',
ssl: false
}
}
]
};

function load() {
const placeholder = document.getElementById('placeholder');

sequentialWorkflowDesigner.Designer.create(placeholder, startDefinition, {
toolbox: {
groups: editorProvider.getToolboxGroups(),
labelProvider: editorProvider.createStepLabelProvider()
},
controlBar: true,
steps: {},
editors: {
rootEditorProvider: editorProvider.createRootEditorProvider(),
stepEditorProvider: editorProvider.createStepEditorProvider()
},
validator: {
step: editorProvider.createStepValidator(),
root: editorProvider.createRootValidator()
}
});
}

window.addEventListener('load', load, false);
17 changes: 17 additions & 0 deletions demos/vanilla-js-app/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "vanilla-js-app-demo",
"author": "b4rtaz",
"license": "MIT",
"private": true,
"version": "1.0.0",
"scripts": {
"build": "echo Skipped",
"eslint": "echo Skipped",
"test:single": "echo Skipped",
"prettier": "prettier --check ./*.html ./assets/*.js",
"prettier:fix": "prettier --write ./*.html ./assets/*.js"
},
"devDependencies": {
"prettier": "^2.8.7"
}
}
45 changes: 45 additions & 0 deletions demos/vanilla-js-app/vanilla-js.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>🚢 Vanilla JS - Sequential Workflow Editor</title>
<link rel="icon" href="./assets/favicon.ico" />
<style>
body {
font: 14px/1.5 Arial, Tahoma, Serif;
}
a {
color: navy;
text-decoration: underline;
}
a:hover {
text-decoration: none;
}
#placeholder {
display: block;
border: 1px solid #ccc;
padding: 10px;
height: 50vh;
}
</style>

<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.21.2/css/designer.css" rel="stylesheet" />
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.21.2/css/designer-light.css" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.21.2/dist/index.umd.js"></script>

<script src="./assets/lib.js"></script>
<script src="./assets/vanilla-js.js"></script>
</head>
<body>
<h1>🚢 Vanilla JS - Sequential Workflow Editor</h1>

<p>
This demo shows basic usage of
<a href="https://github.com/nocode-js/sequential-workflow-editor" target="_blank">Sequential Workflow Editor</a>
with <a href="https://github.com/nocode-js/sequential-workflow-designer" target="_blank">Sequential Workflow Designer</a>
in a vanilla JavaScript application.
</p>

<div id="placeholder"></div>
</body>
</html>
8 changes: 4 additions & 4 deletions demos/webpack-app/package.json
Original file line number Diff line number Diff line change
@@ -16,16 +16,16 @@
"dependencies": {
"xstate": "^4.38.2",
"sequential-workflow-model": "^0.2.0",
"sequential-workflow-designer": "^0.16.0",
"sequential-workflow-designer": "^0.21.2",
"sequential-workflow-machine": "^0.4.0",
"sequential-workflow-editor-model": "^0.9.2",
"sequential-workflow-editor": "^0.9.2"
"sequential-workflow-editor-model": "^0.14.8",
"sequential-workflow-editor": "^0.14.8"
},
"devDependencies": {
"ts-loader": "^9.4.2",
"style-loader": "^3.3.1",
"css-loader": "^6.7.3",
"typescript": "^4.9.4",
"typescript": "^4.9.5",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1",
"prettier": "^2.8.7",
2 changes: 1 addition & 1 deletion demos/webpack-app/public/assets/editors.css
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ input,
textarea {
font: 14px/1.3em Arial, Verdana, sans-serif;
}
.sqd-global-editor {
.sqd-root-editor {
padding: 10px;
line-height: 1.3em;
box-sizing: border-box;
59 changes: 59 additions & 0 deletions demos/webpack-app/public/assets/i18n.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
html,
body {
margin: 0;
padding: 0;
width: 100vw;
height: 100vh;
overflow: hidden;
}
body {
display: flex;
flex-direction: column;
}
body,
input,
h1,
textarea {
font: 14px/1.3em Arial, Verdana, sans-serif;
}
.header {
width: 100%;
display: flex;
align-items: center;
background: #203fd2;
color: #fff;
}
.header h1 {
margin: 0;
padding: 0;
}
.header a {
color: #fff;
}
.header .column {
padding: 10px;
}
.header .column.flex-1 {
flex: 1;
}
.header .text-center {
text-align: center;
}
.header .column.text-end {
text-align: right;
}
@media only screen and (max-width: 700px) {
.header .column.hidden-mobile {
display: none;
}
}
a {
color: #000;
text-decoration: underline;
}
a:hover {
text-decoration: none;
}
#designer {
flex: 1;
}
Loading