sequential-workflow-designer 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.
- package/README.md +6 -4
- package/css/designer-dark.css +10 -0
- package/css/designer-light.css +10 -0
- package/css/designer-soft.css +10 -0
- package/dist/index.umd.js +347 -135
- package/lib/cjs/index.cjs +347 -135
- package/lib/esm/index.js +346 -136
- package/lib/index.d.ts +79 -35
- package/package.json +1 -1
- package/sass/designer-dark.scss +6 -0
- package/sass/designer-light.scss +1 -0
- package/sass/designer-soft.scss +1 -0
- package/sass/designer-theme.scss +26 -0
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Definition, Step, Sequence, ComponentType, DefinitionWalker, StepWithParentSequence, StepOrName } from 'sequential-workflow-model';
|
|
1
|
+
import { Definition, Step, Sequence, ComponentType, DefinitionWalker, StepWithParentSequence, BranchedStep, StepOrName } from 'sequential-workflow-model';
|
|
2
2
|
export * from 'sequential-workflow-model';
|
|
3
3
|
|
|
4
4
|
declare class Icons {
|
|
@@ -178,7 +178,7 @@ interface ComponentView {
|
|
|
178
178
|
joinX: number;
|
|
179
179
|
}
|
|
180
180
|
interface StepComponentView extends ComponentView {
|
|
181
|
-
|
|
181
|
+
components: Component[] | null;
|
|
182
182
|
placeholders: Placeholder[] | null;
|
|
183
183
|
hasOutput: boolean;
|
|
184
184
|
haveCollapsedChildren?: boolean;
|
|
@@ -250,7 +250,7 @@ interface Placeholder {
|
|
|
250
250
|
resolveClick(click: ClickDetails): ClickCommand | null;
|
|
251
251
|
}
|
|
252
252
|
declare enum PlaceholderDirection {
|
|
253
|
-
|
|
253
|
+
gap = 0,
|
|
254
254
|
in = 1,
|
|
255
255
|
out = 2
|
|
256
256
|
}
|
|
@@ -281,6 +281,14 @@ declare class StepComponentFactory {
|
|
|
281
281
|
create(parentElement: SVGElement, stepContext: StepContext, componentContext: ComponentContext): StepComponent;
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
+
declare class PlaceholderController {
|
|
285
|
+
private readonly configuration;
|
|
286
|
+
static create(configuration: PlaceholderConfiguration | undefined): PlaceholderController;
|
|
287
|
+
private constructor();
|
|
288
|
+
readonly canCreate: (sequence: Sequence, index: number) => boolean;
|
|
289
|
+
readonly canShow: (sequence: Sequence, index: number, draggingStepComponentType: string, draggingStepType: string) => boolean;
|
|
290
|
+
}
|
|
291
|
+
|
|
284
292
|
declare class ComponentContext {
|
|
285
293
|
readonly shadowRoot: ShadowRoot | undefined;
|
|
286
294
|
readonly validator: DefinitionValidator;
|
|
@@ -291,7 +299,7 @@ declare class ComponentContext {
|
|
|
291
299
|
readonly services: Services;
|
|
292
300
|
readonly preferenceStorage: PreferenceStorage;
|
|
293
301
|
readonly i18n: I18n;
|
|
294
|
-
static create(configuration: DesignerConfiguration, state: DesignerState, stepExtensionResolver: StepExtensionResolver, definitionWalker: DefinitionWalker, preferenceStorage: PreferenceStorage,
|
|
302
|
+
static create(configuration: DesignerConfiguration, state: DesignerState, stepExtensionResolver: StepExtensionResolver, placeholderController: PlaceholderController, definitionWalker: DefinitionWalker, preferenceStorage: PreferenceStorage, i18n: I18n, services: Services): ComponentContext;
|
|
295
303
|
private constructor();
|
|
296
304
|
}
|
|
297
305
|
|
|
@@ -361,6 +369,7 @@ declare class DesignerContext {
|
|
|
361
369
|
readonly componentContext: ComponentContext;
|
|
362
370
|
readonly definitionWalker: DefinitionWalker;
|
|
363
371
|
readonly i18n: I18n;
|
|
372
|
+
readonly uidGenerator: UidGenerator;
|
|
364
373
|
readonly stateModifier: StateModifier;
|
|
365
374
|
readonly layoutController: LayoutController;
|
|
366
375
|
readonly workspaceController: WorkspaceControllerWrapper;
|
|
@@ -369,7 +378,7 @@ declare class DesignerContext {
|
|
|
369
378
|
readonly customActionController: CustomActionController;
|
|
370
379
|
readonly historyController: HistoryController | undefined;
|
|
371
380
|
static create(placeholder: HTMLElement, startDefinition: Definition, configuration: DesignerConfiguration, services: Services): DesignerContext;
|
|
372
|
-
constructor(theme: string, state: DesignerState, configuration: DesignerConfiguration, services: Services, componentContext: ComponentContext, definitionWalker: DefinitionWalker, i18n: I18n, stateModifier: StateModifier, layoutController: LayoutController, workspaceController: WorkspaceControllerWrapper, placeholderController: PlaceholderController, behaviorController: BehaviorController, customActionController: CustomActionController, historyController: HistoryController | undefined);
|
|
381
|
+
constructor(theme: string, state: DesignerState, configuration: DesignerConfiguration, services: Services, componentContext: ComponentContext, definitionWalker: DefinitionWalker, i18n: I18n, uidGenerator: UidGenerator, stateModifier: StateModifier, layoutController: LayoutController, workspaceController: WorkspaceControllerWrapper, placeholderController: PlaceholderController, behaviorController: BehaviorController, customActionController: CustomActionController, historyController: HistoryController | undefined);
|
|
373
382
|
setWorkspaceController(controller: WorkspaceController): void;
|
|
374
383
|
}
|
|
375
384
|
|
|
@@ -424,10 +433,10 @@ declare class PathBarApi {
|
|
|
424
433
|
}
|
|
425
434
|
|
|
426
435
|
declare class ToolboxDataProvider {
|
|
427
|
-
private readonly iconProvider;
|
|
428
436
|
private readonly i18n;
|
|
437
|
+
private readonly iconProvider;
|
|
429
438
|
private readonly configuration;
|
|
430
|
-
constructor(
|
|
439
|
+
constructor(i18n: I18n, iconProvider: IconProvider, configuration: ToolboxConfiguration | false);
|
|
431
440
|
getAllGroups(): ToolboxGroupData[];
|
|
432
441
|
private readonly createItemData;
|
|
433
442
|
applyFilter(allGroups: ToolboxGroupData[], filter: string | undefined): ToolboxGroupData[];
|
|
@@ -450,7 +459,7 @@ declare class ToolboxApi {
|
|
|
450
459
|
private readonly behaviorController;
|
|
451
460
|
private readonly toolboxDataProvider;
|
|
452
461
|
private readonly uidGenerator;
|
|
453
|
-
constructor(state: DesignerState, designerContext: DesignerContext, behaviorController: BehaviorController, toolboxDataProvider: ToolboxDataProvider, uidGenerator: UidGenerator
|
|
462
|
+
constructor(state: DesignerState, designerContext: DesignerContext, behaviorController: BehaviorController, toolboxDataProvider: ToolboxDataProvider, uidGenerator: UidGenerator);
|
|
454
463
|
isCollapsed(): boolean;
|
|
455
464
|
toggleIsCollapsed(): void;
|
|
456
465
|
subscribeIsCollapsed(listener: SimpleEventListener<boolean>): void;
|
|
@@ -617,12 +626,14 @@ interface StartStopRootComponentViewConfiguration {
|
|
|
617
626
|
defaultIconSize: number;
|
|
618
627
|
folderIconSize: number;
|
|
619
628
|
folderIconD: string;
|
|
620
|
-
|
|
629
|
+
start: {
|
|
630
|
+
iconD: string;
|
|
631
|
+
} | null;
|
|
621
632
|
stopIconD: string;
|
|
622
633
|
}
|
|
623
634
|
|
|
624
635
|
interface StartStopRootComponentExtensionConfiguration {
|
|
625
|
-
view
|
|
636
|
+
view?: Partial<StartStopRootComponentViewConfiguration>;
|
|
626
637
|
}
|
|
627
638
|
|
|
628
639
|
declare class StartStopRootComponentExtension implements RootComponentExtension {
|
|
@@ -653,6 +664,23 @@ interface LineGridConfiguration {
|
|
|
653
664
|
gridSizeY: number;
|
|
654
665
|
}
|
|
655
666
|
|
|
667
|
+
interface LaunchPadStepComponentViewConfiguration {
|
|
668
|
+
isRegionEnabled: boolean;
|
|
669
|
+
paddingY: number;
|
|
670
|
+
connectionHeight: number;
|
|
671
|
+
emptyPaddingX: number;
|
|
672
|
+
emptyPaddingY: number;
|
|
673
|
+
emptyInputSize: number;
|
|
674
|
+
emptyOutputSize: number;
|
|
675
|
+
emptyIconSize: number;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
declare const createLaunchPadStepComponentViewFactory: (isInterruptedIfEmpty: boolean, cfg: LaunchPadStepComponentViewConfiguration) => StepComponentViewFactory;
|
|
679
|
+
|
|
680
|
+
interface LaunchPadStepExtensionConfiguration {
|
|
681
|
+
view?: LaunchPadStepComponentViewConfiguration;
|
|
682
|
+
}
|
|
683
|
+
|
|
656
684
|
interface SwitchStepComponentViewConfiguration {
|
|
657
685
|
minBranchWidth: number;
|
|
658
686
|
paddingX: number;
|
|
@@ -677,12 +705,19 @@ interface SwitchStepComponentViewConfiguration {
|
|
|
677
705
|
branchNameLabel: LabelViewConfiguration;
|
|
678
706
|
}
|
|
679
707
|
|
|
680
|
-
|
|
681
|
-
|
|
708
|
+
type BranchNamesResolver = (step: BranchedStep) => string[];
|
|
682
709
|
interface SwitchStepExtensionConfiguration {
|
|
683
|
-
view
|
|
710
|
+
view?: SwitchStepComponentViewConfiguration;
|
|
711
|
+
/**
|
|
712
|
+
* A function that takes a `BranchedStep` and returns an array of branch names.
|
|
713
|
+
* If not provided, the default is: `Object.keys(step.branches)`.
|
|
714
|
+
* You can use this to provide custom ordering or filtering of branch names.
|
|
715
|
+
*/
|
|
716
|
+
branchNamesResolver?: BranchNamesResolver;
|
|
684
717
|
}
|
|
685
718
|
|
|
719
|
+
declare const createSwitchStepComponentViewFactory: (cfg: SwitchStepComponentViewConfiguration, branchNameResolver: BranchNamesResolver | undefined) => StepComponentViewFactory;
|
|
720
|
+
|
|
686
721
|
interface TaskStepComponentViewConfiguration {
|
|
687
722
|
paddingLeft: number;
|
|
688
723
|
paddingRight: number;
|
|
@@ -745,13 +780,6 @@ declare class DefaultViewportControllerExtension implements ViewportControllerEx
|
|
|
745
780
|
create(api: WorkspaceApi): DefaultViewportController;
|
|
746
781
|
}
|
|
747
782
|
|
|
748
|
-
interface RectPlaceholderConfiguration {
|
|
749
|
-
gapWidth: number;
|
|
750
|
-
gapHeight: number;
|
|
751
|
-
radius: number;
|
|
752
|
-
iconSize: number;
|
|
753
|
-
}
|
|
754
|
-
|
|
755
783
|
declare class RectPlaceholderView implements PlaceholderView {
|
|
756
784
|
readonly rect: SVGElement;
|
|
757
785
|
readonly g: SVGGElement;
|
|
@@ -765,7 +793,7 @@ declare class RectPlaceholder implements Placeholder {
|
|
|
765
793
|
readonly view: RectPlaceholderView;
|
|
766
794
|
readonly parentSequence: Sequence;
|
|
767
795
|
readonly index: number;
|
|
768
|
-
static create(parent: SVGElement, size: Vector, direction: PlaceholderDirection, sequence: Sequence, index: number,
|
|
796
|
+
static create(parent: SVGElement, size: Vector, direction: PlaceholderDirection, sequence: Sequence, index: number, radius: number, iconSize: number): RectPlaceholder;
|
|
769
797
|
constructor(view: RectPlaceholderView, parentSequence: Sequence, index: number);
|
|
770
798
|
getClientRect(): DOMRect;
|
|
771
799
|
setIsHover(isHover: boolean): void;
|
|
@@ -773,6 +801,13 @@ declare class RectPlaceholder implements Placeholder {
|
|
|
773
801
|
resolveClick(): null;
|
|
774
802
|
}
|
|
775
803
|
|
|
804
|
+
interface RectPlaceholderConfiguration {
|
|
805
|
+
gapWidth: number;
|
|
806
|
+
gapHeight: number;
|
|
807
|
+
radius: number;
|
|
808
|
+
iconSize: number;
|
|
809
|
+
}
|
|
810
|
+
|
|
776
811
|
declare class DefaultRegionView implements RegionView {
|
|
777
812
|
private readonly lines;
|
|
778
813
|
private readonly width;
|
|
@@ -798,7 +833,6 @@ interface DesignerExtension {
|
|
|
798
833
|
draggedComponent?: DraggedComponentExtension;
|
|
799
834
|
wheelController?: WheelControllerExtension;
|
|
800
835
|
viewportController?: ViewportControllerExtension;
|
|
801
|
-
placeholderController?: PlaceholderControllerExtension;
|
|
802
836
|
placeholder?: PlaceholderExtension;
|
|
803
837
|
regionComponentView?: RegionComponentViewExtension;
|
|
804
838
|
grid?: GridExtension;
|
|
@@ -816,7 +850,10 @@ interface StepComponentViewContext {
|
|
|
816
850
|
i18n: I18n;
|
|
817
851
|
getStepName(): string;
|
|
818
852
|
getStepIconUrl(): string | null;
|
|
853
|
+
createStepComponent(parentElement: SVGElement, parentSequence: Sequence, step: Step, position: number): StepComponent;
|
|
819
854
|
createSequenceComponent(parentElement: SVGElement, sequence: Sequence): SequenceComponent;
|
|
855
|
+
getPlaceholderGapSize(orientation: PlaceholderGapOrientation): Vector;
|
|
856
|
+
createPlaceholderForGap(parentElement: SVGElement, sequence: Sequence, index: number, orientation: PlaceholderGapOrientation): Placeholder;
|
|
820
857
|
createPlaceholderForArea(parentElement: SVGElement, size: Vector, direction: PlaceholderDirection, sequence: Sequence, index: number): Placeholder;
|
|
821
858
|
createRegionComponentView(parentElement: SVGElement, componentClassName: string, contentFactory: RegionComponentViewContentFactory): StepComponentView;
|
|
822
859
|
getPreference(key: string): string | null;
|
|
@@ -909,16 +946,13 @@ interface ContextMenuItem {
|
|
|
909
946
|
readonly order: number;
|
|
910
947
|
readonly callback?: () => void;
|
|
911
948
|
}
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
interface PlaceholderController {
|
|
916
|
-
canCreate(sequence: Sequence, index: number): boolean;
|
|
917
|
-
canShow?: (sequence: Sequence, index: number, draggingStepComponentType: ComponentType, draggingStepType: string) => boolean;
|
|
949
|
+
declare enum PlaceholderGapOrientation {
|
|
950
|
+
along = 0,
|
|
951
|
+
perpendicular = 1
|
|
918
952
|
}
|
|
919
953
|
interface PlaceholderExtension {
|
|
920
|
-
|
|
921
|
-
createForGap(parentElement: SVGElement, sequence: Sequence, index: number): Placeholder;
|
|
954
|
+
getGapSize(orientation: PlaceholderGapOrientation): Vector;
|
|
955
|
+
createForGap(parentElement: SVGElement, sequence: Sequence, index: number, orientation: PlaceholderGapOrientation): Placeholder;
|
|
922
956
|
createForArea(parentElement: SVGElement, size: Vector, direction: PlaceholderDirection, sequence: Sequence, index: number): Placeholder;
|
|
923
957
|
}
|
|
924
958
|
interface ViewportControllerExtension {
|
|
@@ -982,6 +1016,10 @@ interface DesignerConfiguration<TDefinition extends Definition = Definition> {
|
|
|
982
1016
|
* @description The common configuration of the steps.
|
|
983
1017
|
*/
|
|
984
1018
|
steps: StepsConfiguration;
|
|
1019
|
+
/**
|
|
1020
|
+
* @description The configuration of the placeholders.
|
|
1021
|
+
*/
|
|
1022
|
+
placeholder?: PlaceholderConfiguration;
|
|
985
1023
|
/**
|
|
986
1024
|
* @description The configuration of the toolbox. If not set, the toolbox will be hidden.
|
|
987
1025
|
*/
|
|
@@ -1100,6 +1138,10 @@ interface StepsConfiguration {
|
|
|
1100
1138
|
iconUrlProvider?: StepIconUrlProvider;
|
|
1101
1139
|
}
|
|
1102
1140
|
type StepIconUrlProvider = (componentType: ComponentType, type: string) => string | null;
|
|
1141
|
+
interface PlaceholderConfiguration {
|
|
1142
|
+
canCreate?: (sequence: Sequence, index: number) => boolean;
|
|
1143
|
+
canShow?: (sequence: Sequence, index: number, draggingStepComponentType: ComponentType, draggingStepType: string) => boolean;
|
|
1144
|
+
}
|
|
1103
1145
|
interface ValidatorConfiguration {
|
|
1104
1146
|
step?: StepValidator;
|
|
1105
1147
|
root?: RootValidator;
|
|
@@ -1149,14 +1191,15 @@ declare enum DefinitionChangeType {
|
|
|
1149
1191
|
|
|
1150
1192
|
declare class StateModifier {
|
|
1151
1193
|
private readonly definitionWalker;
|
|
1194
|
+
private readonly uidGenerator;
|
|
1152
1195
|
private readonly state;
|
|
1153
1196
|
private readonly configuration;
|
|
1154
1197
|
private readonly dependencies;
|
|
1155
|
-
static create(definitionWalker: DefinitionWalker, state: DesignerState, configuration:
|
|
1156
|
-
constructor(definitionWalker: DefinitionWalker, state: DesignerState, configuration:
|
|
1198
|
+
static create(definitionWalker: DefinitionWalker, uidGenerator: UidGenerator, state: DesignerState, configuration: StepsConfiguration): StateModifier;
|
|
1199
|
+
constructor(definitionWalker: DefinitionWalker, uidGenerator: UidGenerator, state: DesignerState, configuration: StepsConfiguration, dependencies: StateModifierDependency[]);
|
|
1157
1200
|
addDependency(dependency: StateModifierDependency): void;
|
|
1158
1201
|
isSelectable(step: Step, parentSequence: Sequence): boolean;
|
|
1159
|
-
trySelectStep(step: Step, parentSequence: Sequence):
|
|
1202
|
+
trySelectStep(step: Step, parentSequence: Sequence): boolean;
|
|
1160
1203
|
trySelectStepById(stepId: string): void;
|
|
1161
1204
|
isDeletable(stepId: string): boolean;
|
|
1162
1205
|
tryDelete(stepId: string): boolean;
|
|
@@ -1225,6 +1268,7 @@ interface StepsDesignerExtensionConfiguration {
|
|
|
1225
1268
|
container?: ContainerStepExtensionConfiguration;
|
|
1226
1269
|
switch?: SwitchStepExtensionConfiguration;
|
|
1227
1270
|
task?: TaskStepExtensionConfiguration;
|
|
1271
|
+
launchPad?: LaunchPadStepExtensionConfiguration;
|
|
1228
1272
|
}
|
|
1229
1273
|
declare class StepsDesignerExtension implements DesignerExtension {
|
|
1230
1274
|
readonly steps: StepExtension<Step>[];
|
|
@@ -1378,5 +1422,5 @@ declare class Designer<TDefinition extends Definition = Definition> {
|
|
|
1378
1422
|
private getHistoryController;
|
|
1379
1423
|
}
|
|
1380
1424
|
|
|
1381
|
-
export { Badges, CenteredViewportCalculator, ClassicWheelControllerExtension, ClickCommandType, ComponentContext, ComponentDom, ControlBarApi, CustomActionController, DefaultRegionComponentViewExtension, DefaultRegionView, DefaultSequenceComponent, DefaultSequenceComponentView, DefaultViewportController, DefaultViewportControllerDesignerExtension, DefaultViewportControllerExtension, DefinitionChangeType, Designer, DesignerApi, DesignerContext, DesignerState, Dom, Editor, EditorApi, Icons, InputView, JoinView, KeyboardAction, LabelView, LineGridDesignerExtension, ObjectCloner, OutputView, PathBarApi, PlaceholderDirection, RectPlaceholder, RectPlaceholderView, SelectStepBehaviorEndToken, ServicesResolver, SimpleEvent, StartStopRootComponentDesignerExtension, StartStopRootComponentExtension, StepComponent, StepExtensionResolver, StepsDesignerExtension, TYPE, ToolboxApi, Uid, ValidationErrorBadgeExtension, Vector, ViewportApi, WorkspaceApi, createContainerStepComponentViewFactory, createSwitchStepComponentViewFactory, createTaskStepComponentViewFactory, getAbsolutePosition, race };
|
|
1382
|
-
export type { Attributes, Badge, BadgeExtension, BadgeView, BadgesDecorator, BadgesResult, BaseClickCommand, Behavior, BehaviorEndToken, ClickBehaviorWrapper, ClickBehaviorWrapperExtension, ClickCommand, ClickDetails, Component, ComponentView, ContainerStepComponentViewConfiguration, ContainerStepExtensionConfiguration, ContextMenuExtension, ContextMenuItem, ContextMenuItemsProvider, CustomAction, CustomActionHandler, CustomActionHandlerContext, Daemon, DaemonExtension, DefaultViewportControllerConfiguration, DefaultViewportControllerExtensionConfiguration, DefinitionChangedEvent, DesignerConfiguration, DesignerExtension, DraggedComponent, DraggedComponentExtension, EditorsConfiguration, FoundPlaceholders, Grid, GridExtension, I18n, KeyboardConfiguration, LineGridConfiguration, NextScale, OpenFolderClickCommand, Placeholder,
|
|
1425
|
+
export { Badges, CenteredViewportCalculator, ClassicWheelControllerExtension, ClickCommandType, ComponentContext, ComponentDom, ControlBarApi, CustomActionController, DefaultRegionComponentViewExtension, DefaultRegionView, DefaultSequenceComponent, DefaultSequenceComponentView, DefaultViewportController, DefaultViewportControllerDesignerExtension, DefaultViewportControllerExtension, DefinitionChangeType, Designer, DesignerApi, DesignerContext, DesignerState, Dom, Editor, EditorApi, Icons, InputView, JoinView, KeyboardAction, LabelView, LineGridDesignerExtension, ObjectCloner, OutputView, PathBarApi, PlaceholderController, PlaceholderDirection, PlaceholderGapOrientation, RectPlaceholder, RectPlaceholderView, SelectStepBehaviorEndToken, ServicesResolver, SimpleEvent, StartStopRootComponentDesignerExtension, StartStopRootComponentExtension, StepComponent, StepExtensionResolver, StepsDesignerExtension, TYPE, ToolboxApi, Uid, ValidationErrorBadgeExtension, Vector, ViewportApi, WorkspaceApi, createContainerStepComponentViewFactory, createLaunchPadStepComponentViewFactory, createSwitchStepComponentViewFactory, createTaskStepComponentViewFactory, getAbsolutePosition, race };
|
|
1426
|
+
export type { Attributes, Badge, BadgeExtension, BadgeView, BadgesDecorator, BadgesResult, BaseClickCommand, Behavior, BehaviorEndToken, BranchNamesResolver, ClickBehaviorWrapper, ClickBehaviorWrapperExtension, ClickCommand, ClickDetails, Component, ComponentView, ContainerStepComponentViewConfiguration, ContainerStepExtensionConfiguration, ContextMenuExtension, ContextMenuItem, ContextMenuItemsProvider, CustomAction, CustomActionHandler, CustomActionHandlerContext, Daemon, DaemonExtension, DefaultViewportControllerConfiguration, DefaultViewportControllerExtensionConfiguration, DefinitionChangedEvent, DesignerConfiguration, DesignerExtension, DraggedComponent, DraggedComponentExtension, EditorsConfiguration, FoundPlaceholders, Grid, GridExtension, I18n, KeyboardConfiguration, LaunchPadStepComponentViewConfiguration, LaunchPadStepExtensionConfiguration, LineGridConfiguration, NextScale, OpenFolderClickCommand, Placeholder, PlaceholderConfiguration, PlaceholderExtension, PlaceholderView, PreferenceStorage, RectPlaceholderConfiguration, RegionComponentViewContentFactory, RegionComponentViewExtension, RegionView, RegionViewFactory, RerenderStepClickCommand, RootComponentExtension, RootEditorContext, RootEditorProvider, RootValidator, SelectStepClickCommand, SelectedStepIdProvider, SequenceComponent, SequenceComponentExtension, SequenceContext, SequencePlaceIndicator, Services, SimpleEventListener, StartStopRootComponentExtensionConfiguration, StartStopRootComponentViewConfiguration, StateModifierDependency, StepBadgesDecoratorExtension, StepComponentView, StepComponentViewContext, StepComponentViewFactory, StepComponentViewWrapperExtension, StepContext, StepDefinition, StepDescriptionProvider, StepEditorContext, StepEditorProvider, StepExtension, StepIconUrlProvider, StepLabelProvider, StepValidator, StepsConfiguration, StepsDesignerExtensionConfiguration, SwitchStepComponentViewConfiguration, SwitchStepExtensionConfiguration, TaskStepComponentViewConfiguration, TaskStepExtensionConfiguration, ToolboxConfiguration, ToolboxGroupConfiguration, TriggerCustomActionClickCommand, UiComponent, UiComponentExtension, UidGenerator, UndoStack, UndoStackItem, ValidationErrorBadgeExtensionConfiguration, ValidationErrorBadgeViewConfiguration, ValidatorConfiguration, Viewport, ViewportController, ViewportControllerExtension, WheelController, WheelControllerExtension, WorkspaceRootSequence };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sequential-workflow-designer",
|
|
3
3
|
"description": "Customizable no-code component for building flow-based programming applications.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.30.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/esm/index.js",
|
|
7
7
|
"types": "./lib/index.d.ts",
|
package/sass/designer-dark.scss
CHANGED
|
@@ -65,4 +65,10 @@
|
|
|
65
65
|
$outputFillColor: #707070
|
|
66
66
|
);
|
|
67
67
|
@include sqd-theme-switch-step-component('dark', $inputStrokeColor: #707070, $inputFillColor: #c6c6c6);
|
|
68
|
+
@include sqd-theme-launch-pad-step-component(
|
|
69
|
+
'dark',
|
|
70
|
+
$emptyInputStrokeColor: #707070,
|
|
71
|
+
$emptyInputFillColor: #c6c6c6,
|
|
72
|
+
$emptyOutputFillColor: #707070
|
|
73
|
+
);
|
|
68
74
|
@include sqd-theme-container-step-component('dark', $inputStrokeColor: #707070, $inputFillColor: #c6c6c6);
|
package/sass/designer-light.scss
CHANGED
package/sass/designer-soft.scss
CHANGED
|
@@ -44,4 +44,5 @@ $joinColor: #2a2a2a;
|
|
|
44
44
|
$labelSecondaryFillColor: #e9e9e9,
|
|
45
45
|
$inputStrokeColor: $joinColor
|
|
46
46
|
);
|
|
47
|
+
@include sqd-theme-launch-pad-step-component('soft', $emptyInputStrokeColor: $joinColor, $emptyOutputFillColor: $joinColor);
|
|
47
48
|
@include sqd-theme-container-step-component('soft', $labelFillColor: #3747dd, $inputStrokeColor: $joinColor);
|
package/sass/designer-theme.scss
CHANGED
|
@@ -354,6 +354,32 @@
|
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
|
|
357
|
+
@mixin sqd-theme-launch-pad-step-component(
|
|
358
|
+
$theme,
|
|
359
|
+
$stepType: '',
|
|
360
|
+
$emptyInputStrokeWidth: 2,
|
|
361
|
+
$emptyInputStrokeColor: #000,
|
|
362
|
+
$emptyInputFillColor: #fff,
|
|
363
|
+
$emptyOutputFillColor: #000,
|
|
364
|
+
$emptyOutputStrokeWidth: 0,
|
|
365
|
+
$emptyOutputStrokeColor: #000
|
|
366
|
+
) {
|
|
367
|
+
.sqd-theme-#{$theme} .sqd-step-launch-pad#{if($stepType != '', '.sqd-type-' + $stepType, '')} {
|
|
368
|
+
& > g > {
|
|
369
|
+
@include _sqd-input(
|
|
370
|
+
$inputFillColor: $emptyInputFillColor,
|
|
371
|
+
$inputStrokeWidth: $emptyInputStrokeWidth,
|
|
372
|
+
$inputStrokeColor: $emptyInputStrokeColor
|
|
373
|
+
);
|
|
374
|
+
@include _sqd-output(
|
|
375
|
+
$outputFillColor: $emptyOutputFillColor,
|
|
376
|
+
$outputStrokeWidth: $emptyOutputStrokeWidth,
|
|
377
|
+
$outputStrokeColor: $emptyOutputStrokeColor
|
|
378
|
+
);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
357
383
|
@mixin sqd-theme-container-step-component(
|
|
358
384
|
$theme,
|
|
359
385
|
$stepType: '',
|