sequential-workflow-designer
Advanced tools
Comparing version 0.25.0 to 0.26.0
@@ -74,4 +74,7 @@ import { Definition, Step, Sequence, ComponentType, DefinitionWalker, StepOrName } from 'sequential-workflow-model'; | ||
onMove(delta: Vector): Behavior | void; | ||
onEnd(interrupt: boolean, element: Element | null): void; | ||
onEnd(interrupt: boolean, element: Element | null, previousEndToken: BehaviorEndToken | null): BehaviorEndToken | void; | ||
} | ||
interface BehaviorEndToken { | ||
type: string; | ||
} | ||
@@ -82,3 +85,4 @@ declare class BehaviorController { | ||
static create(shadowRoot: ShadowRoot | undefined): BehaviorController; | ||
private state?; | ||
private previousEndToken; | ||
private state; | ||
private constructor(); | ||
@@ -465,2 +469,15 @@ start(startPosition: Vector, behavior: Behavior): void; | ||
declare class ViewportApi { | ||
private readonly state; | ||
private readonly workspaceController; | ||
private readonly viewportController; | ||
private readonly animator; | ||
constructor(state: DesignerState, workspaceController: WorkspaceControllerWrapper, viewportController: ViewportController); | ||
limitScale(scale: number): number; | ||
resetViewport(): void; | ||
zoom(direction: boolean): void; | ||
moveViewportToStep(stepId: string): void; | ||
handleWheelEvent(e: WheelEvent): void; | ||
} | ||
declare class WorkspaceApi { | ||
@@ -470,7 +487,7 @@ private readonly state; | ||
constructor(state: DesignerState, workspaceController: WorkspaceControllerWrapper); | ||
getViewport(): Viewport; | ||
setViewport(viewport: Viewport): void; | ||
getCanvasPosition(): Vector; | ||
getCanvasSize(): Vector; | ||
getRootComponentSize(): Vector; | ||
getViewport(): Viewport; | ||
setViewport(viewport: Viewport): void; | ||
updateRootComponent(): void; | ||
@@ -481,15 +498,2 @@ updateBadges(): void; | ||
declare class ViewportApi { | ||
private readonly workspaceController; | ||
private readonly viewportController; | ||
private readonly api; | ||
private readonly animator; | ||
constructor(workspaceController: WorkspaceControllerWrapper, viewportController: ViewportController, api: WorkspaceApi); | ||
limitScale(scale: number): number; | ||
resetViewport(): void; | ||
zoom(direction: boolean): void; | ||
moveViewportToStep(stepId: string): void; | ||
handleWheelEvent(e: WheelEvent): void; | ||
} | ||
declare class DesignerApi { | ||
@@ -509,2 +513,11 @@ readonly shadowRoot: ShadowRoot | undefined; | ||
declare const TYPE = "selectStep"; | ||
declare class SelectStepBehaviorEndToken implements BehaviorEndToken { | ||
readonly stepId: string; | ||
readonly time: number; | ||
static is(token: BehaviorEndToken | null): token is SelectStepBehaviorEndToken; | ||
readonly type = "selectStep"; | ||
constructor(stepId: string, time: number); | ||
} | ||
declare class Badges { | ||
@@ -766,2 +779,3 @@ private readonly g; | ||
stepComponentViewWrapper?: StepComponentViewWrapperExtension; | ||
clickBehaviorWrapperExtension?: ClickBehaviorWrapperExtension; | ||
badges?: BadgeExtension[]; | ||
@@ -815,2 +829,8 @@ uiComponents?: UiComponentExtension[]; | ||
} | ||
interface ClickBehaviorWrapperExtension { | ||
create(customActionController: CustomActionController): ClickBehaviorWrapper; | ||
} | ||
interface ClickBehaviorWrapper { | ||
wrap(behavior: Behavior, commandOrNull: ClickCommand | null): Behavior; | ||
} | ||
interface BadgeExtension { | ||
@@ -1136,9 +1156,5 @@ id: string; | ||
private readonly stateModifier; | ||
private readonly viewportApi; | ||
static create(state: DesignerState, historyController: HistoryController | undefined, stateModifier: StateModifier, viewportApi: ViewportApi): ControlBarApi; | ||
static create(state: DesignerState, historyController: HistoryController | undefined, stateModifier: StateModifier): ControlBarApi; | ||
private constructor(); | ||
readonly onStateChanged: SimpleEvent<unknown>; | ||
resetViewport(): void; | ||
zoomIn(): void; | ||
zoomOut(): void; | ||
isDragDisabled(): boolean; | ||
@@ -1155,2 +1171,46 @@ toggleIsDragDisabled(): void; | ||
declare class DefaultViewportControllerDesignerExtension implements DesignerExtension { | ||
readonly viewportController: ViewportControllerExtension; | ||
static create(configuration: DefaultViewportControllerExtensionConfiguration): DesignerExtension; | ||
private constructor(); | ||
} | ||
declare class LineGrid implements Grid { | ||
readonly size: Vector; | ||
readonly element: SVGPathElement; | ||
static create(size: Vector): LineGrid; | ||
private constructor(); | ||
setScale(_: number, scaledSize: Vector): void; | ||
} | ||
declare class LineGridExtension implements GridExtension { | ||
private readonly configuration; | ||
static create(configuration?: LineGridConfiguration): LineGridExtension; | ||
private constructor(); | ||
create(): LineGrid; | ||
} | ||
declare class LineGridDesignerExtension implements DesignerExtension { | ||
readonly grid: LineGridExtension; | ||
static create(configuration?: LineGridConfiguration): DesignerExtension; | ||
private constructor(); | ||
} | ||
declare class StartStopRootComponentDesignerExtension implements DesignerExtension { | ||
readonly rootComponent: RootComponentExtension; | ||
static create(configuration: StartStopRootComponentExtensionConfiguration): DesignerExtension; | ||
private constructor(); | ||
} | ||
interface StepsDesignerExtensionConfiguration { | ||
container?: ContainerStepExtensionConfiguration; | ||
switch?: SwitchStepExtensionConfiguration; | ||
task?: TaskStepExtensionConfiguration; | ||
} | ||
declare class StepsDesignerExtension implements DesignerExtension { | ||
readonly steps: StepExtension<Step>[]; | ||
static create(configuration: StepsDesignerExtensionConfiguration): StepsDesignerExtension; | ||
protected constructor(steps: StepExtension<Step>[]); | ||
} | ||
declare class Editor { | ||
@@ -1302,34 +1362,2 @@ private readonly view; | ||
declare class LineGrid implements Grid { | ||
readonly size: Vector; | ||
readonly element: SVGPathElement; | ||
static create(size: Vector): LineGrid; | ||
private constructor(); | ||
setScale(_: number, scaledSize: Vector): void; | ||
} | ||
declare class LineGridExtension implements GridExtension { | ||
private readonly configuration; | ||
static create(configuration?: LineGridConfiguration): LineGridExtension; | ||
private constructor(); | ||
create(): LineGrid; | ||
} | ||
declare class LineGridDesignerExtension implements DesignerExtension { | ||
readonly grid: LineGridExtension; | ||
static create(configuration?: LineGridConfiguration): DesignerExtension; | ||
private constructor(); | ||
} | ||
interface StepsDesignerExtensionConfiguration { | ||
container?: ContainerStepExtensionConfiguration; | ||
switch?: SwitchStepExtensionConfiguration; | ||
task?: TaskStepExtensionConfiguration; | ||
} | ||
declare class StepsDesignerExtension implements DesignerExtension { | ||
readonly steps: StepExtension<Step>[]; | ||
static create(configuration: StepsDesignerExtensionConfiguration): StepsDesignerExtension; | ||
protected constructor(steps: StepExtension<Step>[]); | ||
} | ||
export { Attributes, Badge, BadgeExtension, BadgeView, Badges, BadgesResult, BaseClickCommand, CenteredViewportCalculator, ClassicWheelControllerExtension, ClickCommand, ClickCommandType, ClickDetails, Component, ComponentContext, ComponentDom, ComponentView, ContainerStepComponentViewConfiguration, ContainerStepExtensionConfiguration, ContextMenuExtension, ContextMenuItem, ContextMenuItemsProvider, ControlBarApi, CustomAction, CustomActionController, CustomActionHandler, CustomActionHandlerContext, Daemon, DaemonExtension, DefaultRegionComponentViewExtension, DefaultRegionView, DefaultSequenceComponent, DefaultSequenceComponentView, DefaultViewportController, DefaultViewportControllerConfiguration, DefaultViewportControllerExtension, DefaultViewportControllerExtensionConfiguration, DefinitionChangeType, DefinitionChangedEvent, Designer, DesignerApi, DesignerConfiguration, DesignerContext, DesignerExtension, DesignerState, Dom, DraggedComponent, DraggedComponentExtension, Editor, EditorApi, EditorsConfiguration, FoundPlaceholders, Grid, GridExtension, I18n, Icons, InputView, JoinView, KeyboardAction, KeyboardConfiguration, LabelView, LineGridConfiguration, LineGridDesignerExtension, NextScale, ObjectCloner, OpenFolderClickCommand, OutputView, PathBarApi, Placeholder, PlaceholderController, PlaceholderControllerExtension, PlaceholderDirection, PlaceholderExtension, PlaceholderView, PreferenceStorage, RectPlaceholder, RectPlaceholderConfiguration, RectPlaceholderView, RegionComponentViewContentFactory, RegionComponentViewExtension, RegionView, RegionViewFactory, RerenderStepClickCommand, RootComponentExtension, RootEditorContext, RootEditorProvider, RootValidator, SelectStepClickCommand, SelectedStepIdProvider, SequenceComponent, SequenceComponentExtension, SequenceContext, SequencePlaceIndicator, Services, ServicesResolver, SimpleEvent, SimpleEventListener, StartStopRootComponentExtension, StartStopRootComponentExtensionConfiguration, StartStopRootComponentViewConfiguration, StateModifierDependency, StepComponent, StepComponentView, StepComponentViewContext, StepComponentViewFactory, StepComponentViewWrapperExtension, StepContext, StepDefinition, StepDescriptionProvider, StepEditorContext, StepEditorProvider, StepExtension, StepExtensionResolver, StepIconUrlProvider, StepLabelProvider, StepValidator, StepsConfiguration, StepsDesignerExtension, StepsDesignerExtensionConfiguration, SwitchStepComponentViewConfiguration, SwitchStepExtensionConfiguration, TaskStepComponentViewConfiguration, TaskStepExtensionConfiguration, ToolboxApi, ToolboxConfiguration, ToolboxGroupConfiguration, TriggerCustomActionClickCommand, UiComponent, UiComponentExtension, Uid, UidGenerator, UndoStack, UndoStackItem, ValidationErrorBadgeExtension, ValidationErrorBadgeExtensionConfiguration, ValidationErrorBadgeViewConfiguration, ValidatorConfiguration, Vector, Viewport, ViewportApi, ViewportController, ViewportControllerExtension, WheelController, WheelControllerExtension, WorkspaceApi, createContainerStepComponentViewFactory, createSwitchStepComponentViewFactory, createTaskStepComponentViewFactory, getAbsolutePosition, race }; | ||
export { Attributes, Badge, BadgeExtension, BadgeView, Badges, BadgesResult, BaseClickCommand, Behavior, BehaviorEndToken, CenteredViewportCalculator, ClassicWheelControllerExtension, ClickBehaviorWrapper, ClickBehaviorWrapperExtension, ClickCommand, ClickCommandType, ClickDetails, Component, ComponentContext, ComponentDom, ComponentView, ContainerStepComponentViewConfiguration, ContainerStepExtensionConfiguration, ContextMenuExtension, ContextMenuItem, ContextMenuItemsProvider, ControlBarApi, CustomAction, CustomActionController, CustomActionHandler, CustomActionHandlerContext, Daemon, DaemonExtension, DefaultRegionComponentViewExtension, DefaultRegionView, DefaultSequenceComponent, DefaultSequenceComponentView, DefaultViewportController, DefaultViewportControllerConfiguration, DefaultViewportControllerDesignerExtension, DefaultViewportControllerExtension, DefaultViewportControllerExtensionConfiguration, DefinitionChangeType, DefinitionChangedEvent, Designer, DesignerApi, DesignerConfiguration, DesignerContext, DesignerExtension, DesignerState, Dom, DraggedComponent, DraggedComponentExtension, Editor, EditorApi, EditorsConfiguration, FoundPlaceholders, Grid, GridExtension, I18n, Icons, InputView, JoinView, KeyboardAction, KeyboardConfiguration, LabelView, LineGridConfiguration, LineGridDesignerExtension, NextScale, ObjectCloner, OpenFolderClickCommand, OutputView, PathBarApi, Placeholder, PlaceholderController, PlaceholderControllerExtension, PlaceholderDirection, PlaceholderExtension, PlaceholderView, PreferenceStorage, RectPlaceholder, RectPlaceholderConfiguration, RectPlaceholderView, RegionComponentViewContentFactory, RegionComponentViewExtension, RegionView, RegionViewFactory, RerenderStepClickCommand, RootComponentExtension, RootEditorContext, RootEditorProvider, RootValidator, SelectStepBehaviorEndToken, SelectStepClickCommand, SelectedStepIdProvider, SequenceComponent, SequenceComponentExtension, SequenceContext, SequencePlaceIndicator, Services, ServicesResolver, SimpleEvent, SimpleEventListener, StartStopRootComponentDesignerExtension, StartStopRootComponentExtension, StartStopRootComponentExtensionConfiguration, StartStopRootComponentViewConfiguration, StateModifierDependency, StepComponent, StepComponentView, StepComponentViewContext, StepComponentViewFactory, StepComponentViewWrapperExtension, StepContext, StepDefinition, StepDescriptionProvider, StepEditorContext, StepEditorProvider, StepExtension, StepExtensionResolver, StepIconUrlProvider, StepLabelProvider, StepValidator, StepsConfiguration, StepsDesignerExtension, StepsDesignerExtensionConfiguration, SwitchStepComponentViewConfiguration, SwitchStepExtensionConfiguration, TYPE, TaskStepComponentViewConfiguration, TaskStepExtensionConfiguration, ToolboxApi, ToolboxConfiguration, ToolboxGroupConfiguration, TriggerCustomActionClickCommand, UiComponent, UiComponentExtension, Uid, UidGenerator, UndoStack, UndoStackItem, ValidationErrorBadgeExtension, ValidationErrorBadgeExtensionConfiguration, ValidationErrorBadgeViewConfiguration, ValidatorConfiguration, Vector, Viewport, ViewportApi, ViewportController, ViewportControllerExtension, WheelController, WheelControllerExtension, WorkspaceApi, createContainerStepComponentViewFactory, createSwitchStepComponentViewFactory, createTaskStepComponentViewFactory, getAbsolutePosition, race }; |
{ | ||
"name": "sequential-workflow-designer", | ||
"description": "Customizable no-code component for building flow-based programming applications.", | ||
"version": "0.25.0", | ||
"version": "0.26.0", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "main": "./lib/esm/index.js", |
@@ -58,2 +58,3 @@ ![Sequential Workflow Designer](.github/cover.png) | ||
* [🎩 Custom Viewport](https://nocode-js.com/examples/sequential-workflow-designer-pro/webpack-pro-app/public/custom-viewport.html) | ||
* [👊 Double Click](https://nocode-js.com/examples/sequential-workflow-designer-pro/webpack-pro-app/public/double-click.html) | ||
* [🛎 Clickable Placeholder](https://nocode-js.com/examples/sequential-workflow-designer-pro/webpack-pro-app/public/clickable-placeholder.html) | ||
@@ -107,6 +108,6 @@ * [📮 Conditional Placeholders](https://nocode-js.com/examples/sequential-workflow-designer-pro/webpack-pro-app/public/conditional-placeholders.html) | ||
... | ||
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.25.0/css/designer.css" rel="stylesheet"> | ||
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.25.0/css/designer-light.css" rel="stylesheet"> | ||
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.25.0/css/designer-dark.css" rel="stylesheet"> | ||
<script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.25.0/dist/index.umd.js"></script> | ||
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.26.0/css/designer.css" rel="stylesheet"> | ||
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.26.0/css/designer-light.css" rel="stylesheet"> | ||
<link href="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.26.0/css/designer-dark.css" rel="stylesheet"> | ||
<script src="https://cdn.jsdelivr.net/npm/sequential-workflow-designer@0.26.0/dist/index.umd.js"></script> | ||
``` | ||
@@ -113,0 +114,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
680035
16417
238