-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
49 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,49 @@ | ||
import { I18n, UidGenerator } from 'sequential-workflow-editor-model'; | ||
import { DefinitionWalker } from 'sequential-workflow-model'; | ||
import { DefinitionWalker, Step } from 'sequential-workflow-model'; | ||
import { EditorExtension } from './editor-extension'; | ||
import { ToolboxGroup } from './external-types'; | ||
|
||
export interface EditorProviderConfiguration { | ||
/** | ||
* A generator of unique identifiers. | ||
*/ | ||
uidGenerator: UidGenerator; | ||
|
||
/** | ||
* The definition walker. If it's not set the editor uses the default definition walker from the `sequential-workflow-model` package. | ||
*/ | ||
definitionWalker?: DefinitionWalker; | ||
|
||
/** | ||
* The translation service for the editor. | ||
*/ | ||
i18n?: I18n; | ||
|
||
/** | ||
* Determines whether the header of the editor is hidden. | ||
*/ | ||
isHeaderHidden?: boolean; | ||
extensions?: EditorExtension[]; | ||
|
||
/** | ||
* Sorter for the toolbox groups. By default, the groups are sorted alphabetically. | ||
*/ | ||
toolboxSorter?: EditorToolboxSorter; | ||
|
||
/** | ||
* Extensions for the editor. | ||
*/ | ||
extensions?: EditorExtension[]; | ||
} | ||
|
||
export interface ToolboxGroup { | ||
/** | ||
* The name of the group. | ||
*/ | ||
name: string; | ||
|
||
/** | ||
* The steps in the group. | ||
*/ | ||
steps: Step[]; | ||
} | ||
|
||
export type EditorToolboxSorter = (groups: ToolboxGroup[]) => void; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters