New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@eclipse-glsp-examples/workflow-glsp

Package Overview
Dependencies
Maintainers
5
Versions
293
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eclipse-glsp-examples/workflow-glsp - npm Package Compare versions

Comparing version 0.9.0-next.495d850a to 0.9.0-next.4e7da984

scripts/download.ts

8

lib/di.config.d.ts

@@ -16,7 +16,7 @@ /********************************************************************************

********************************************************************************/
import "../css/diagram.css";
import "balloon-css/balloon.min.css";
import "sprotty/css/edit-label.css";
import { Container } from "inversify";
import '../css/diagram.css';
import 'balloon-css/balloon.min.css';
import 'sprotty/css/edit-label.css';
import { Container } from 'inversify';
export default function createContainer(widgetId: string): Container;
//# sourceMappingURL=di.config.d.ts.map

@@ -56,7 +56,6 @@ "use strict";

var container = new inversify_1.Container();
container.load(client_1.validationModule, client_1.defaultModule, client_1.glspMouseToolModule, client_1.defaultGLSPModule, client_1.glspSelectModule, client_1.boundsModule, client_1.viewportModule, client_1.toolsModule, client_1.glspHoverModule, client_1.fadeModule, client_1.exportModule, client_1.expandModule, client_1.openModule, client_1.buttonModule, client_1.modelSourceModule, client_1.labelEditUiModule, client_1.glspEditLabelModule, workflowDiagramModule, client_1.toolFeedbackModule, client_1.modelHintsModule, client_1.glspContextMenuModule, client_1.glspServerCopyPasteModule, client_1.modelSourceWatcherModule, client_1.glspCommandPaletteModule, client_1.paletteModule, client_1.routingModule, client_1.glspDecorationModule, client_1.edgeLayoutModule, client_1.zorderModule, client_1.layoutCommandsModule, di_config_1.directTaskEditor, client_1.navigationModule, client_1.markerNavigatorModule);
container.load(client_1.validationModule, client_1.defaultModule, client_1.glspMouseToolModule, client_1.defaultGLSPModule, client_1.glspSelectModule, client_1.boundsModule, client_1.glspViewportModule, client_1.toolsModule, client_1.glspHoverModule, client_1.fadeModule, client_1.exportModule, client_1.expandModule, client_1.openModule, client_1.buttonModule, client_1.modelSourceModule, client_1.labelEditUiModule, client_1.glspEditLabelModule, workflowDiagramModule, client_1.toolFeedbackModule, client_1.modelHintsModule, client_1.glspContextMenuModule, client_1.glspServerCopyPasteModule, client_1.modelSourceWatcherModule, client_1.glspCommandPaletteModule, client_1.paletteModule, client_1.routingModule, client_1.glspDecorationModule, client_1.edgeLayoutModule, client_1.zorderModule, client_1.layoutCommandsModule, di_config_1.directTaskEditor, client_1.navigationModule, client_1.markerNavigatorModule);
client_1.overrideViewerOptions(container, {
baseDiv: widgetId,
hiddenDiv: widgetId + "_hidden",
needsClientLayout: true
hiddenDiv: widgetId + '_hidden'
});

@@ -63,0 +62,0 @@ return container;

@@ -16,4 +16,4 @@ /********************************************************************************

********************************************************************************/
import { ContainerModule } from "inversify";
import { ContainerModule } from 'inversify';
export declare const directTaskEditor: ContainerModule;
//# sourceMappingURL=di.config.d.ts.map

@@ -16,5 +16,5 @@ /********************************************************************************

********************************************************************************/
import { AbstractUIExtension, Action, AutoCompleteWidget, EditorContextService, GLSPActionDispatcher, ILogger, LabeledAction, SModelRoot, ValidationStatus, ViewerOptions } from "@eclipse-glsp/client";
import { DOMHelper } from "sprotty/lib/base/views/dom-helper";
import { TaskNode } from "../model";
import { AbstractUIExtension, Action, AutoCompleteWidget, EditorContextService, GLSPActionDispatcher, ILogger, LabeledAction, SModelRoot, ValidationStatus, ViewerOptions } from '@eclipse-glsp/client';
import { DOMHelper } from 'sprotty/lib/base/views/dom-helper';
import { TaskNode } from '../model';
export declare class ApplyTaskEditOperation implements Action {

@@ -21,0 +21,0 @@ readonly taskId: string;

@@ -125,4 +125,8 @@ "use strict";

TaskEditor_1 = TaskEditor;
TaskEditor.prototype.id = function () { return TaskEditor_1.ID; };
TaskEditor.prototype.containerClass = function () { return 'command-palette'; };
TaskEditor.prototype.id = function () {
return TaskEditor_1.ID;
};
TaskEditor.prototype.containerClass = function () {
return 'command-palette';
};
TaskEditor.prototype.initializeContents = function (containerElement) {

@@ -129,0 +133,0 @@ var _this = this;

@@ -16,7 +16,7 @@ /********************************************************************************

********************************************************************************/
import createWorkflowDiagramContainer from "./di.config";
export * from "./model";
export * from "./workflow-views";
export * from "./direct-task-editing/direct-task-editor";
import createWorkflowDiagramContainer from './di.config';
export * from './model';
export * from './workflow-views';
export * from './direct-task-editing/direct-task-editor';
export { createWorkflowDiagramContainer };
//# sourceMappingURL=index.d.ts.map

@@ -16,3 +16,3 @@ /********************************************************************************

********************************************************************************/
import { DiamondNode, LayoutContainer, Nameable, RectangularNode, SEdge, SModelElement, SShapeElement, WithEditableLabel } from "@eclipse-glsp/client";
import { DiamondNode, EditableLabel, LayoutContainer, Nameable, RectangularNode, SChildElement, SEdge, SModelElement, SShapeElement, WithEditableLabel } from '@eclipse-glsp/client';
export declare class TaskNode extends RectangularNode implements Nameable, WithEditableLabel {

@@ -24,3 +24,3 @@ static readonly DEFAULT_FEATURES: symbol[];

reference?: string;
get editableLabel(): (import("@eclipse-glsp/client").SChildElement & import("@eclipse-glsp/client").EditableLabel) | undefined;
get editableLabel(): (SChildElement & EditableLabel) | undefined;
}

@@ -27,0 +27,0 @@ export declare function isTaskNode(element: SModelElement): element is TaskNode;

@@ -37,3 +37,3 @@ "use strict";

var _this = _super !== null && _super.apply(this, arguments) || this;
_this.name = "";
_this.name = '';
return _this;

@@ -87,2 +87,3 @@ }

exports.ActivityNode = ActivityNode;
// eslint-disable-next-line no-redeclare
(function (ActivityNode) {

@@ -97,3 +98,3 @@ var Type;

Type.FORK = 'forkNode';
Type.UNDEFINED = "undefined";
Type.UNDEFINED = 'undefined';
})(Type = ActivityNode.Type || (ActivityNode.Type = {}));

@@ -100,0 +101,0 @@ })(ActivityNode = exports.ActivityNode || (exports.ActivityNode = {}));

@@ -16,5 +16,5 @@ /********************************************************************************

********************************************************************************/
import { IView, Point, PolylineEdgeView, RectangularNodeView, RenderingContext, SEdge, SShapeElement } from "@eclipse-glsp/client";
import { VNode } from "snabbdom/vnode";
import { ActivityNode, Icon, TaskNode, WeightedEdge } from "./model";
import { IView, Point, PolylineEdgeView, RectangularNodeView, RenderingContext, SEdge, SShapeElement } from '@eclipse-glsp/client';
import { VNode } from 'snabbdom/vnode';
import { ActivityNode, Icon, TaskNode, WeightedEdge } from './model';
export declare class TaskNodeView extends RectangularNodeView {

@@ -21,0 +21,0 @@ render(node: TaskNode, context: RenderingContext): VNode;

@@ -41,2 +41,3 @@ "use strict";

var snabbdom = require("snabbdom-jsx");
// eslint-disable-next-line @typescript-eslint/no-unused-vars
var JSX = { createElement: snabbdom.svg };

@@ -106,4 +107,5 @@ var TaskNodeView = /** @class */ (function (_super) {

var route = router.route(edge);
if (route.length === 0)
return this.renderDanglingEdge("Cannot compute route", edge, context);
if (route.length === 0) {
return this.renderDanglingEdge('Cannot compute route', edge, context);
}
return JSX.createElement("g", { "class-sprotty-edge": true, "class-weighted": true, "class-low": edge.probability === 'low', "class-medium": edge.probability === 'medium', "class-high": edge.probability === 'high', "class-mouseover": edge.hoverFeedback },

@@ -110,0 +112,0 @@ this.renderLine(edge, route, context),

{
"name": "@eclipse-glsp-examples/workflow-glsp",
"version": "0.9.0-next.495d850a",
"version": "0.9.0-next.4e7da984",
"description": "GLSP diagrams for the Workflow DSL",

@@ -31,8 +31,8 @@ "license": "(EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0)",

"dependencies": {
"@eclipse-glsp/client": "0.9.0-next.495d850a",
"@eclipse-glsp/client": "0.9.0-next.4e7da984",
"balloon-css": "^0.5.0"
},
"devDependencies": {
"mvn-artifact-download": "5.1.0",
"rimraf": "^2.6.1",
"tslint": "^5.5.0",
"typescript": "^3.9.2"

@@ -44,3 +44,3 @@ },

"build": "tsc && yarn run lint",
"lint": "tslint -c ../../configs/tslint.json --project ./tsconfig.json",
"lint": "eslint -c ./.eslintrc.js --ext .ts,.tsx ./src",
"watch": "tsc -w"

@@ -52,3 +52,4 @@ },

"build",
"css"
"css",
"scripts"
],

@@ -55,0 +56,0 @@ "main": "lib/index",

@@ -16,5 +16,5 @@ /********************************************************************************

********************************************************************************/
import "../css/diagram.css";
import "balloon-css/balloon.min.css";
import "sprotty/css/edit-label.css";
import '../css/diagram.css';
import 'balloon-css/balloon.min.css';
import 'sprotty/css/edit-label.css';

@@ -46,2 +46,3 @@ import {

glspServerCopyPasteModule,
glspViewportModule,
GridSnapper,

@@ -79,10 +80,9 @@ HtmlRoot,

validationModule,
viewportModule,
zorderModule
} from "@eclipse-glsp/client";
import { Container, ContainerModule } from "inversify";
} from '@eclipse-glsp/client';
import { Container, ContainerModule } from 'inversify';
import { directTaskEditor } from "./direct-task-editing/di.config";
import { ActivityNode, Icon, TaskNode, WeightedEdge } from "./model";
import { ForkOrJoinNodeView, IconView, TaskNodeView, WeightedEdgeView, WorkflowEdgeView } from "./workflow-views";
import { directTaskEditor } from './direct-task-editing/di.config';
import { ActivityNode, Icon, TaskNode, WeightedEdge } from './model';
import { ForkOrJoinNodeView, IconView, TaskNodeView, WeightedEdgeView, WorkflowEdgeView } from './workflow-views';

@@ -121,3 +121,3 @@ const workflowDiagramModule = new ContainerModule((bind, unbind, isBound, rebind) => {

container.load(validationModule, defaultModule, glspMouseToolModule, defaultGLSPModule, glspSelectModule, boundsModule, viewportModule, toolsModule,
container.load(validationModule, defaultModule, glspMouseToolModule, defaultGLSPModule, glspSelectModule, boundsModule, glspViewportModule, toolsModule,
glspHoverModule, fadeModule, exportModule, expandModule, openModule, buttonModule, modelSourceModule, labelEditUiModule, glspEditLabelModule,

@@ -130,4 +130,3 @@ workflowDiagramModule, toolFeedbackModule, modelHintsModule, glspContextMenuModule, glspServerCopyPasteModule, modelSourceWatcherModule,

baseDiv: widgetId,
hiddenDiv: widgetId + "_hidden",
needsClientLayout: true
hiddenDiv: widgetId + '_hidden'
});

@@ -134,0 +133,0 @@

@@ -16,6 +16,6 @@ /********************************************************************************

********************************************************************************/
import { ContainerModule } from "inversify";
import { TYPES } from "sprotty";
import { ContainerModule } from 'inversify';
import { TYPES } from 'sprotty';
import { TaskEditor } from "./direct-task-editor";
import { TaskEditor } from './direct-task-editor';

@@ -22,0 +22,0 @@ export const directTaskEditor = new ContainerModule((bind, _unbind, isBound) => {

@@ -35,8 +35,8 @@ /********************************************************************************

ViewerOptions
} from "@eclipse-glsp/client";
import { inject, injectable } from "inversify";
import { TYPES } from "sprotty/lib";
import { DOMHelper } from "sprotty/lib/base/views/dom-helper";
} from '@eclipse-glsp/client';
import { inject, injectable } from 'inversify';
import { TYPES } from 'sprotty/lib';
import { DOMHelper } from 'sprotty/lib/base/views/dom-helper';
import { isTaskNode, TaskNode } from "../model";
import { isTaskNode, TaskNode } from '../model';

@@ -78,4 +78,8 @@ export class ApplyTaskEditOperation implements Action {

id() { return TaskEditor.ID; }
containerClass() { return 'command-palette'; }
id(): string {
return TaskEditor.ID;
}
containerClass(): string {
return 'command-palette';
}

@@ -98,3 +102,3 @@ protected initializeContents(containerElement: HTMLElement): void {

show(root: Readonly<SModelRoot>, ...contextElementIds: string[]) {
show(root: Readonly<SModelRoot>, ...contextElementIds: string[]): void {
super.show(root, ...contextElementIds);

@@ -104,3 +108,3 @@ this.autoSuggestion.open(root);

protected onBeforeShow(containerElement: HTMLElement, root: Readonly<SModelRoot>, ...contextElementIds: string[]) {
protected onBeforeShow(containerElement: HTMLElement, root: Readonly<SModelRoot>, ...contextElementIds: string[]): void {
this.task = getTask(contextElementIds, root)[0];

@@ -111,3 +115,3 @@ this.autoSuggestion.inputField.value = '';

protected setPosition(containerElement: HTMLElement) {
protected setPosition(containerElement: HTMLElement): void {
let x = 0;

@@ -144,7 +148,7 @@ let y = 0;

protected executeFromSuggestion(input: LabeledAction | Action[] | Action) {
protected executeFromSuggestion(input: LabeledAction | Action[] | Action): void {
this.actionDispatcher.dispatchAll(toActionArray(input));
}
protected executeFromTextOnlyInput(input: string) {
protected executeFromTextOnlyInput(input: string): void {
const action = new ApplyTaskEditOperation(this.task.id, input);

@@ -154,3 +158,3 @@ this.actionDispatcher.dispatch(action);

hide() {
hide(): void {
this.autoSuggestion.dispose();

@@ -157,0 +161,0 @@ super.hide();

@@ -16,8 +16,8 @@ /********************************************************************************

********************************************************************************/
import createWorkflowDiagramContainer from "./di.config";
import createWorkflowDiagramContainer from './di.config';
export * from "./model";
export * from "./workflow-views";
export * from "./direct-task-editing/direct-task-editor";
export * from './model';
export * from './workflow-views';
export * from './direct-task-editing/direct-task-editor';
export { createWorkflowDiagramContainer };

@@ -21,2 +21,3 @@ /********************************************************************************

DiamondNode,
EditableLabel,
fadeFeature,

@@ -33,2 +34,3 @@ hoverFeedbackFeature,

RectangularNode,
SChildElement,
SEdge,

@@ -40,9 +42,8 @@ selectFeature,

withEditLabelFeature
} from "@eclipse-glsp/client";
} from '@eclipse-glsp/client';
export class TaskNode extends RectangularNode implements Nameable, WithEditableLabel {
static readonly DEFAULT_FEATURES = [connectableFeature, deletableFeature, selectFeature, boundsFeature,
moveFeature, layoutContainerFeature, fadeFeature, hoverFeedbackFeature, popupFeature, nameFeature, withEditLabelFeature];
name: string = "";
name = '';
duration?: number;

@@ -52,3 +53,3 @@ taskType?: string;

get editableLabel() {
get editableLabel(): (SChildElement & EditableLabel) | undefined {
const headerComp = this.children.find(element => element.type === 'comp:header');

@@ -73,3 +74,2 @@ if (headerComp) {

export class ActivityNode extends DiamondNode {

@@ -84,2 +84,3 @@ nodeType: string = ActivityNode.Type.UNDEFINED;

// eslint-disable-next-line no-redeclare
export namespace ActivityNode {

@@ -93,3 +94,3 @@ export namespace Type {

export const FORK = 'forkNode';
export const UNDEFINED = "undefined";
export const UNDEFINED = 'undefined';
}

@@ -102,3 +103,3 @@ }

layout: string;
layoutOptions?: { [key: string]: string | number | boolean; };
layoutOptions?: { [key: string]: string | number | boolean };
size = {

@@ -105,0 +106,0 @@ width: 32,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc