sequential-workflow-designer 0.29.2 → 0.30.0
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 +5 -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 +314 -101
- package/lib/cjs/index.cjs +314 -101
- package/lib/esm/index.js +313 -102
- package/lib/index.d.ts +68 -31
- 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
|
@@ -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;
|
|
@@ -745,13 +773,6 @@ declare class DefaultViewportControllerExtension implements ViewportControllerEx
|
|
|
745
773
|
create(api: WorkspaceApi): DefaultViewportController;
|
|
746
774
|
}
|
|
747
775
|
|
|
748
|
-
interface RectPlaceholderConfiguration {
|
|
749
|
-
gapWidth: number;
|
|
750
|
-
gapHeight: number;
|
|
751
|
-
radius: number;
|
|
752
|
-
iconSize: number;
|
|
753
|
-
}
|
|
754
|
-
|
|
755
776
|
declare class RectPlaceholderView implements PlaceholderView {
|
|
756
777
|
readonly rect: SVGElement;
|
|
757
778
|
readonly g: SVGGElement;
|
|
@@ -765,7 +786,7 @@ declare class RectPlaceholder implements Placeholder {
|
|
|
765
786
|
readonly view: RectPlaceholderView;
|
|
766
787
|
readonly parentSequence: Sequence;
|
|
767
788
|
readonly index: number;
|
|
768
|
-
static create(parent: SVGElement, size: Vector, direction: PlaceholderDirection, sequence: Sequence, index: number,
|
|
789
|
+
static create(parent: SVGElement, size: Vector, direction: PlaceholderDirection, sequence: Sequence, index: number, radius: number, iconSize: number): RectPlaceholder;
|
|
769
790
|
constructor(view: RectPlaceholderView, parentSequence: Sequence, index: number);
|
|
770
791
|
getClientRect(): DOMRect;
|
|
771
792
|
setIsHover(isHover: boolean): void;
|
|
@@ -773,6 +794,13 @@ declare class RectPlaceholder implements Placeholder {
|
|
|
773
794
|
resolveClick(): null;
|
|
774
795
|
}
|
|
775
796
|
|
|
797
|
+
interface RectPlaceholderConfiguration {
|
|
798
|
+
gapWidth: number;
|
|
799
|
+
gapHeight: number;
|
|
800
|
+
radius: number;
|
|
801
|
+
iconSize: number;
|
|
802
|
+
}
|
|
803
|
+
|
|
776
804
|
declare class DefaultRegionView implements RegionView {
|
|
777
805
|
private readonly lines;
|
|
778
806
|
private readonly width;
|
|
@@ -798,7 +826,6 @@ interface DesignerExtension {
|
|
|
798
826
|
draggedComponent?: DraggedComponentExtension;
|
|
799
827
|
wheelController?: WheelControllerExtension;
|
|
800
828
|
viewportController?: ViewportControllerExtension;
|
|
801
|
-
placeholderController?: PlaceholderControllerExtension;
|
|
802
829
|
placeholder?: PlaceholderExtension;
|
|
803
830
|
regionComponentView?: RegionComponentViewExtension;
|
|
804
831
|
grid?: GridExtension;
|
|
@@ -816,7 +843,10 @@ interface StepComponentViewContext {
|
|
|
816
843
|
i18n: I18n;
|
|
817
844
|
getStepName(): string;
|
|
818
845
|
getStepIconUrl(): string | null;
|
|
846
|
+
createStepComponent(parentElement: SVGElement, parentSequence: Sequence, step: Step, position: number): StepComponent;
|
|
819
847
|
createSequenceComponent(parentElement: SVGElement, sequence: Sequence): SequenceComponent;
|
|
848
|
+
getPlaceholderGapSize(orientation: PlaceholderGapOrientation): Vector;
|
|
849
|
+
createPlaceholderForGap(parentElement: SVGElement, sequence: Sequence, index: number, orientation: PlaceholderGapOrientation): Placeholder;
|
|
820
850
|
createPlaceholderForArea(parentElement: SVGElement, size: Vector, direction: PlaceholderDirection, sequence: Sequence, index: number): Placeholder;
|
|
821
851
|
createRegionComponentView(parentElement: SVGElement, componentClassName: string, contentFactory: RegionComponentViewContentFactory): StepComponentView;
|
|
822
852
|
getPreference(key: string): string | null;
|
|
@@ -909,16 +939,13 @@ interface ContextMenuItem {
|
|
|
909
939
|
readonly order: number;
|
|
910
940
|
readonly callback?: () => void;
|
|
911
941
|
}
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
interface PlaceholderController {
|
|
916
|
-
canCreate(sequence: Sequence, index: number): boolean;
|
|
917
|
-
canShow?: (sequence: Sequence, index: number, draggingStepComponentType: ComponentType, draggingStepType: string) => boolean;
|
|
942
|
+
declare enum PlaceholderGapOrientation {
|
|
943
|
+
along = 0,
|
|
944
|
+
perpendicular = 1
|
|
918
945
|
}
|
|
919
946
|
interface PlaceholderExtension {
|
|
920
|
-
|
|
921
|
-
createForGap(parentElement: SVGElement, sequence: Sequence, index: number): Placeholder;
|
|
947
|
+
getGapSize(orientation: PlaceholderGapOrientation): Vector;
|
|
948
|
+
createForGap(parentElement: SVGElement, sequence: Sequence, index: number, orientation: PlaceholderGapOrientation): Placeholder;
|
|
922
949
|
createForArea(parentElement: SVGElement, size: Vector, direction: PlaceholderDirection, sequence: Sequence, index: number): Placeholder;
|
|
923
950
|
}
|
|
924
951
|
interface ViewportControllerExtension {
|
|
@@ -982,6 +1009,10 @@ interface DesignerConfiguration<TDefinition extends Definition = Definition> {
|
|
|
982
1009
|
* @description The common configuration of the steps.
|
|
983
1010
|
*/
|
|
984
1011
|
steps: StepsConfiguration;
|
|
1012
|
+
/**
|
|
1013
|
+
* @description The configuration of the placeholders.
|
|
1014
|
+
*/
|
|
1015
|
+
placeholder?: PlaceholderConfiguration;
|
|
985
1016
|
/**
|
|
986
1017
|
* @description The configuration of the toolbox. If not set, the toolbox will be hidden.
|
|
987
1018
|
*/
|
|
@@ -1100,6 +1131,10 @@ interface StepsConfiguration {
|
|
|
1100
1131
|
iconUrlProvider?: StepIconUrlProvider;
|
|
1101
1132
|
}
|
|
1102
1133
|
type StepIconUrlProvider = (componentType: ComponentType, type: string) => string | null;
|
|
1134
|
+
interface PlaceholderConfiguration {
|
|
1135
|
+
canCreate?: (sequence: Sequence, index: number) => boolean;
|
|
1136
|
+
canShow?: (sequence: Sequence, index: number, draggingStepComponentType: ComponentType, draggingStepType: string) => boolean;
|
|
1137
|
+
}
|
|
1103
1138
|
interface ValidatorConfiguration {
|
|
1104
1139
|
step?: StepValidator;
|
|
1105
1140
|
root?: RootValidator;
|
|
@@ -1149,14 +1184,15 @@ declare enum DefinitionChangeType {
|
|
|
1149
1184
|
|
|
1150
1185
|
declare class StateModifier {
|
|
1151
1186
|
private readonly definitionWalker;
|
|
1187
|
+
private readonly uidGenerator;
|
|
1152
1188
|
private readonly state;
|
|
1153
1189
|
private readonly configuration;
|
|
1154
1190
|
private readonly dependencies;
|
|
1155
|
-
static create(definitionWalker: DefinitionWalker, state: DesignerState, configuration:
|
|
1156
|
-
constructor(definitionWalker: DefinitionWalker, state: DesignerState, configuration:
|
|
1191
|
+
static create(definitionWalker: DefinitionWalker, uidGenerator: UidGenerator, state: DesignerState, configuration: StepsConfiguration): StateModifier;
|
|
1192
|
+
constructor(definitionWalker: DefinitionWalker, uidGenerator: UidGenerator, state: DesignerState, configuration: StepsConfiguration, dependencies: StateModifierDependency[]);
|
|
1157
1193
|
addDependency(dependency: StateModifierDependency): void;
|
|
1158
1194
|
isSelectable(step: Step, parentSequence: Sequence): boolean;
|
|
1159
|
-
trySelectStep(step: Step, parentSequence: Sequence):
|
|
1195
|
+
trySelectStep(step: Step, parentSequence: Sequence): boolean;
|
|
1160
1196
|
trySelectStepById(stepId: string): void;
|
|
1161
1197
|
isDeletable(stepId: string): boolean;
|
|
1162
1198
|
tryDelete(stepId: string): boolean;
|
|
@@ -1225,6 +1261,7 @@ interface StepsDesignerExtensionConfiguration {
|
|
|
1225
1261
|
container?: ContainerStepExtensionConfiguration;
|
|
1226
1262
|
switch?: SwitchStepExtensionConfiguration;
|
|
1227
1263
|
task?: TaskStepExtensionConfiguration;
|
|
1264
|
+
launchPad?: LaunchPadStepExtensionConfiguration;
|
|
1228
1265
|
}
|
|
1229
1266
|
declare class StepsDesignerExtension implements DesignerExtension {
|
|
1230
1267
|
readonly steps: StepExtension<Step>[];
|
|
@@ -1378,5 +1415,5 @@ declare class Designer<TDefinition extends Definition = Definition> {
|
|
|
1378
1415
|
private getHistoryController;
|
|
1379
1416
|
}
|
|
1380
1417
|
|
|
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,
|
|
1418
|
+
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 };
|
|
1419
|
+
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, 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.0",
|
|
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: '',
|