@elyra/canvas 12.41.0 → 12.43.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/dist/{_baseIteratee-05ccf6a8.js → _baseIteratee-148093b7.js} +3 -3
- package/dist/{_baseIteratee-05ccf6a8.js.map → _baseIteratee-148093b7.js.map} +1 -1
- package/dist/{canvas-constants-079172c0.js → canvas-constants-acb99f64.js} +2 -2
- package/dist/{canvas-constants-079172c0.js.map → canvas-constants-acb99f64.js.map} +1 -1
- package/dist/canvas-controller-6726b9ac.js +2 -0
- package/dist/canvas-controller-6726b9ac.js.map +1 -0
- package/dist/canvas-controller-6c6bc68f.js +2 -0
- package/dist/canvas-controller-6c6bc68f.js.map +1 -0
- package/dist/common-canvas-9374ef35.js +2 -0
- package/dist/common-canvas-9374ef35.js.map +1 -0
- package/dist/common-canvas-a6435bdb.js +2 -0
- package/dist/common-canvas-a6435bdb.js.map +1 -0
- package/dist/common-canvas.es.js +1 -1
- package/dist/common-canvas.es.js.map +1 -1
- package/dist/common-canvas.js +1 -1
- package/dist/common-canvas.js.map +1 -1
- package/dist/common-properties-08707efe.js +2 -0
- package/dist/common-properties-08707efe.js.map +1 -0
- package/dist/common-properties-acd55e94.js +2 -0
- package/dist/common-properties-acd55e94.js.map +1 -0
- package/dist/context-menu-wrapper-271eb2df.js +2 -0
- package/dist/context-menu-wrapper-271eb2df.js.map +1 -0
- package/dist/context-menu-wrapper-e4a7ab4d.js +2 -0
- package/dist/context-menu-wrapper-e4a7ab4d.js.map +1 -0
- package/dist/{datarecord-metadata-v3-schema-59505bc5.js → datarecord-metadata-v3-schema-03427296.js} +2 -2
- package/dist/{datarecord-metadata-v3-schema-59505bc5.js.map → datarecord-metadata-v3-schema-03427296.js.map} +1 -1
- package/dist/{flexible-table-63ffd573.js → flexible-table-107ca2fd.js} +1 -1
- package/dist/{flexible-table-63ffd573.js.map → flexible-table-107ca2fd.js.map} +1 -1
- package/dist/{flexible-table-43e2d052.js → flexible-table-5cc1ad6b.js} +2 -2
- package/dist/{flexible-table-43e2d052.js.map → flexible-table-5cc1ad6b.js.map} +1 -1
- package/dist/{icon-0390f1fe.js → icon-2caf035c.js} +2 -2
- package/dist/{icon-0390f1fe.js.map → icon-2caf035c.js.map} +1 -1
- package/dist/{index-57503b50.js → index-5dac3da8.js} +2 -2
- package/dist/{index-57503b50.js.map → index-5dac3da8.js.map} +1 -1
- package/dist/{index-1cd54914.js → index-fee06179.js} +2 -2
- package/dist/{index-1cd54914.js.map → index-fee06179.js.map} +1 -1
- package/dist/{isArrayLikeObject-36898fcb.js → isArrayLikeObject-7a30aa4b.js} +2 -2
- package/dist/{isArrayLikeObject-36898fcb.js.map → isArrayLikeObject-7a30aa4b.js.map} +1 -1
- package/dist/lib/canvas-controller.es.js +1 -1
- package/dist/lib/canvas-controller.js +1 -1
- package/dist/lib/canvas.es.js +1 -1
- package/dist/lib/canvas.js +1 -1
- package/dist/lib/context-menu.es.js +1 -1
- package/dist/lib/context-menu.js +1 -1
- package/dist/lib/properties/clem.es.js +2 -0
- package/dist/lib/properties/clem.es.js.map +1 -0
- package/dist/lib/properties/clem.js +2 -0
- package/dist/lib/properties/clem.js.map +1 -0
- package/dist/lib/properties/field-picker.es.js +1 -1
- package/dist/lib/properties/field-picker.js +1 -1
- package/dist/lib/properties/flexible-table.es.js +1 -1
- package/dist/lib/properties/flexible-table.js +1 -1
- package/dist/lib/properties/getPythonHints.es.js +2 -0
- package/dist/lib/properties/getPythonHints.es.js.map +1 -0
- package/dist/lib/properties/getPythonHints.js +2 -0
- package/dist/lib/properties/getPythonHints.js.map +1 -0
- package/dist/lib/properties.es.js +1 -1
- package/dist/lib/properties.js +1 -1
- package/dist/lib/tooltip.es.js +1 -1
- package/dist/lib/tooltip.es.js.map +1 -1
- package/dist/lib/tooltip.js +1 -1
- package/dist/lib/tooltip.js.map +1 -1
- package/dist/styles/common-canvas.min.css +1 -1
- package/dist/styles/common-canvas.min.css.map +1 -1
- package/dist/toolbar-ccc1d600.js +2 -0
- package/dist/toolbar-ccc1d600.js.map +1 -0
- package/dist/toolbar-e4445bf8.js +2 -0
- package/dist/toolbar-e4445bf8.js.map +1 -0
- package/package.json +12 -4
- package/rollup.config.js +2 -0
- package/src/color-picker/color-picker.jsx +96 -17
- package/src/command-actions/arrangeLayoutAction.js +7 -6
- package/src/command-actions/attachNodeToLinksAction.js +4 -4
- package/src/command-actions/collapseSuperNodeInPlaceAction.js +5 -5
- package/src/command-actions/colorSelectedObjectsAction.js +4 -4
- package/src/command-actions/commonPropertiesAction.js +1 -1
- package/src/command-actions/convertSuperNodeExternalToLocalAction.js +4 -4
- package/src/command-actions/convertSuperNodeLocalToExternalAction.js +4 -4
- package/src/command-actions/createAutoNodeAction.js +14 -5
- package/src/command-actions/createCommentAction.js +4 -10
- package/src/command-actions/createCommentLinkAction.js +4 -4
- package/src/command-actions/createNodeAction.js +13 -4
- package/src/command-actions/createNodeAttachLinksAction.js +4 -4
- package/src/command-actions/createNodeLinkAction.js +13 -4
- package/src/command-actions/createNodeLinkDetachedAction.js +4 -4
- package/src/command-actions/createNodeOnLinkAction.js +4 -4
- package/src/command-actions/createSuperNodeAction.js +7 -7
- package/src/command-actions/deconstructSuperNodeAction.js +5 -5
- package/src/command-actions/deleteLinkAction.js +4 -4
- package/src/command-actions/deleteObjectsAction.js +15 -6
- package/src/command-actions/disconnectObjectsAction.js +13 -4
- package/src/command-actions/displayPreviousPipelineAction.js +4 -4
- package/src/command-actions/displaySubPipelineAction.js +4 -4
- package/src/command-actions/editCommentAction.js +4 -4
- package/src/command-actions/editDecorationLabelAction.js +4 -4
- package/src/command-actions/expandSuperNodeInPlaceAction.js +5 -5
- package/src/command-actions/insertNodeIntoLinkAction.js +4 -4
- package/src/command-actions/moveObjectsAction.js +4 -4
- package/src/command-actions/pasteAction.js +16 -7
- package/src/command-actions/saveToPaletteAction.js +4 -4
- package/src/command-actions/setLinksStyleAction.js +4 -4
- package/src/command-actions/setNodeLabelAction.js +4 -4
- package/src/command-actions/setObjectsStyleAction.js +4 -4
- package/src/command-actions/sizeAndPositionObjectsAction.js +4 -4
- package/src/command-actions/updateLinkAction.js +4 -4
- package/src/common-canvas/canvas-controller-menu-utils.js +1 -1
- package/src/common-canvas/canvas-controller.js +116 -62
- package/src/common-canvas/cc-central-items.jsx +1 -5
- package/src/common-canvas/cc-context-toolbar.jsx +9 -13
- package/src/common-canvas/cc-toolbar.jsx +28 -9
- package/src/common-canvas/common-canvas.scss +3 -3
- package/src/common-canvas/svg-canvas-d3.scss +3 -2
- package/src/common-canvas/svg-canvas-renderer.js +50 -23
- package/src/common-canvas/svg-canvas-utils-drag-det-link.js +8 -1
- package/src/common-canvas/svg-canvas-utils-drag-new-link.js +1 -1
- package/src/common-properties/components/field-picker/field-picker.jsx +4 -0
- package/src/common-properties/components/table-buttons/table-buttons.scss +0 -1
- package/src/common-properties/controls/checkbox/checkbox.scss +0 -1
- package/src/common-properties/controls/expression/expression-builder/expression-builder.jsx +32 -26
- package/src/common-properties/controls/expression/expression.jsx +143 -116
- package/src/common-properties/controls/expression/expression.scss +43 -45
- package/src/common-properties/controls/expression/languages/CLEM-hint.js +86 -159
- package/src/common-properties/controls/expression/languages/python-hint.js +41 -104
- package/src/common-properties/controls/expression/languages/r-hint.js +61 -128
- package/src/common-properties/index.js +4 -2
- package/src/common-properties/properties-controller.js +5 -0
- package/src/context-menu/common-context-menu.jsx +4 -1
- package/src/index.js +14 -4
- package/src/notification-panel/notification-panel.jsx +82 -56
- package/src/notification-panel/notification-panel.scss +42 -40
- package/src/object-model/object-model.js +19 -5
- package/src/object-model/redux/canvas-store.js +4 -3
- package/src/object-model/redux/reducers/canvasinfo.js +7 -11
- package/src/object-model/redux/reducers/canvastoolbar.js +5 -6
- package/src/palette/palette-dialog-topbar.jsx +27 -38
- package/src/palette/palette-flyout-content-category.jsx +25 -6
- package/src/palette/palette.scss +8 -40
- package/src/toolbar/{toolbar-utils.js → index.js} +3 -18
- package/src/toolbar/toolbar-action-item.jsx +122 -316
- package/src/toolbar/toolbar-button-item.jsx +381 -0
- package/src/toolbar/toolbar-divider-item.jsx +4 -5
- package/src/toolbar/toolbar-overflow-item.jsx +85 -37
- package/src/toolbar/toolbar-sub-menu-item.jsx +236 -0
- package/src/toolbar/toolbar-sub-menu.jsx +252 -0
- package/src/toolbar/toolbar-sub-panel.jsx +94 -0
- package/src/toolbar/toolbar-sub-utils.js +86 -0
- package/src/toolbar/toolbar.jsx +386 -148
- package/src/toolbar/toolbar.scss +63 -56
- package/src/tooltip/tooltip.jsx +65 -12
- package/stats.html +1 -1
- package/assets/images/palette/close_32.svg +0 -1
- package/assets/images/palette/palette_close.svg +0 -4
- package/assets/images/palette/palette_grid_deselected.svg +0 -2
- package/assets/images/palette/palette_grid_hover.svg +0 -2
- package/assets/images/palette/palette_grid_selected.svg +0 -2
- package/assets/images/palette/palette_list_deselected.svg +0 -1
- package/assets/images/palette/palette_list_hover.svg +0 -1
- package/assets/images/palette/palette_list_selected.svg +0 -1
- package/assets/images/palette/palette_open.svg +0 -4
- package/assets/images/zoom_to_fit.svg +0 -8
- package/dist/canvas-controller-1e71b405.js +0 -2
- package/dist/canvas-controller-1e71b405.js.map +0 -1
- package/dist/canvas-controller-4bed5320.js +0 -2
- package/dist/canvas-controller-4bed5320.js.map +0 -1
- package/dist/common-canvas-097c5169.js +0 -2
- package/dist/common-canvas-097c5169.js.map +0 -1
- package/dist/common-canvas-e13c0858.js +0 -2
- package/dist/common-canvas-e13c0858.js.map +0 -1
- package/dist/common-properties-706cef87.js +0 -2
- package/dist/common-properties-706cef87.js.map +0 -1
- package/dist/common-properties-9bd69b61.js +0 -2
- package/dist/common-properties-9bd69b61.js.map +0 -1
- package/dist/context-menu-wrapper-3a7fdec8.js +0 -2
- package/dist/context-menu-wrapper-3a7fdec8.js.map +0 -1
- package/dist/context-menu-wrapper-fc85d853.js +0 -2
- package/dist/context-menu-wrapper-fc85d853.js.map +0 -1
- package/dist/toolbar-918ab52e.js +0 -2
- package/dist/toolbar-918ab52e.js.map +0 -1
- package/dist/toolbar-fdb750f9.js +0 -2
- package/dist/toolbar-fdb750f9.js.map +0 -1
- package/src/palette/palette-dialog-topbar-three-way-icon.jsx +0 -82
- package/src/toolbar/toolbar-action-sub-area.jsx +0 -126
- package/src/toolbar/toolbar-overflow-menu.jsx +0 -77
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2024 Elyra Authors
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -18,11 +18,11 @@ import Action from "../command-stack/action.js";
|
|
|
18
18
|
import CanvasUtils from "../common-canvas/common-canvas-utils.js";
|
|
19
19
|
|
|
20
20
|
export default class AttachNodeToLinksAction extends Action {
|
|
21
|
-
constructor(data,
|
|
21
|
+
constructor(data, canvasController) {
|
|
22
22
|
super(data);
|
|
23
23
|
this.data = data;
|
|
24
|
-
this.
|
|
25
|
-
this.
|
|
24
|
+
this.labelUtil = canvasController.labelUtil;
|
|
25
|
+
this.objectModel = canvasController.objectModel;
|
|
26
26
|
this.apiPipeline = this.objectModel.getAPIPipeline(data.pipelineId);
|
|
27
27
|
this.node = data.node;
|
|
28
28
|
this.linksToUpdateInfo = CanvasUtils.getDetachedLinksToUpdate(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2024 Elyra Authors
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -17,17 +17,17 @@ import Action from "../command-stack/action.js";
|
|
|
17
17
|
import CanvasUtils from "../common-canvas/common-canvas-utils";
|
|
18
18
|
|
|
19
19
|
export default class CollapseSuperNodeInPlaceAction extends Action {
|
|
20
|
-
constructor(data,
|
|
20
|
+
constructor(data, canvasController) {
|
|
21
21
|
super(data);
|
|
22
22
|
this.data = data;
|
|
23
|
-
this.
|
|
24
|
-
this.
|
|
23
|
+
this.labelUtil = canvasController.labelUtil;
|
|
24
|
+
this.objectModel = canvasController.objectModel;
|
|
25
25
|
this.apiPipeline = this.objectModel.getAPIPipeline(data.pipelineId);
|
|
26
26
|
this.oldObjectPositions = [];
|
|
27
27
|
this.newObjectPositions = [];
|
|
28
28
|
this.oldLinkPositions = [];
|
|
29
29
|
this.newLinkPositions = [];
|
|
30
|
-
this.enableMoveNodesOnSupernodeResize = enableMoveNodesOnSupernodeResize;
|
|
30
|
+
this.enableMoveNodesOnSupernodeResize = canvasController.getCanvasConfig().enableMoveNodesOnSupernodeResize;
|
|
31
31
|
this.apiPipeline = this.objectModel.getAPIPipeline(data.pipelineId);
|
|
32
32
|
|
|
33
33
|
if (this.enableMoveNodesOnSupernodeResize) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2024 Elyra Authors
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -17,11 +17,11 @@ import Action from "../command-stack/action.js";
|
|
|
17
17
|
import CanvasUtils from "../common-canvas/common-canvas-utils.js";
|
|
18
18
|
|
|
19
19
|
export default class ColorSelectedObjectsAction extends Action {
|
|
20
|
-
constructor(data,
|
|
20
|
+
constructor(data, canvasController) {
|
|
21
21
|
super(data);
|
|
22
22
|
this.data = data;
|
|
23
|
-
this.
|
|
24
|
-
this.
|
|
23
|
+
this.labelUtil = canvasController.labelUtil;
|
|
24
|
+
this.objectModel = canvasController.objectModel;
|
|
25
25
|
this.apiPipeline = this.objectModel.getAPIPipeline(data.pipelineId);
|
|
26
26
|
this.oldIds = this.data.selectedObjects.map((o) => o.id); // Copy the IDs
|
|
27
27
|
this.oldColors = this.getOldColors();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2024 Elyra Authors
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -19,11 +19,11 @@ import { USE_DEFAULT_ICON, USE_DEFAULT_EXT_ICON }
|
|
|
19
19
|
from "../common-canvas/constants/canvas-constants.js";
|
|
20
20
|
|
|
21
21
|
export default class ConvertSuperNodeExternalToLocal extends Action {
|
|
22
|
-
constructor(data,
|
|
22
|
+
constructor(data, canvasController) {
|
|
23
23
|
super(data);
|
|
24
24
|
this.data = data;
|
|
25
|
-
this.
|
|
26
|
-
this.
|
|
25
|
+
this.labelUtil = canvasController.labelUtil;
|
|
26
|
+
this.objectModel = canvasController.objectModel;
|
|
27
27
|
this.apiPipeline = this.objectModel.getAPIPipeline(data.pipelineId);
|
|
28
28
|
|
|
29
29
|
// To do a complete conversion of the supernode's contents to local, we need
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2024 Elyra Authors
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -19,11 +19,11 @@ import { USE_DEFAULT_ICON, USE_DEFAULT_EXT_ICON }
|
|
|
19
19
|
from "../common-canvas/constants/canvas-constants.js";
|
|
20
20
|
|
|
21
21
|
export default class ConvertSuperNodeLocalToExternal extends Action {
|
|
22
|
-
constructor(data,
|
|
22
|
+
constructor(data, canvasController) {
|
|
23
23
|
super(data);
|
|
24
24
|
this.data = data;
|
|
25
|
-
this.
|
|
26
|
-
this.
|
|
25
|
+
this.labelUtil = canvasController.labelUtil;
|
|
26
|
+
this.objectModel = canvasController.objectModel;
|
|
27
27
|
this.apiPipeline = this.objectModel.getAPIPipeline(data.pipelineId);
|
|
28
28
|
|
|
29
29
|
this.oldSupernode = this.apiPipeline.getNode(this.data.targetObject.id);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2024 Elyra Authors
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -13,17 +13,26 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
/***************************************************************************/
|
|
18
|
+
/* WARNING: */
|
|
19
|
+
/* This class is exported from Common Canvas. This means host apps can */
|
|
20
|
+
/* extend the class and add to, or alter, this class's member variables. */
|
|
21
|
+
/* So, if the names of any internal this.xxxx variables are changed that */
|
|
22
|
+
/* needs to be communicated clearly through the release notes, Slack, etc. */
|
|
23
|
+
/***************************************************************************/
|
|
17
24
|
|
|
18
25
|
import Action from "../command-stack/action.js";
|
|
19
26
|
|
|
20
27
|
export default class CreateAutoNodeAction extends Action {
|
|
21
|
-
constructor(data,
|
|
28
|
+
constructor(data, canvasController) {
|
|
22
29
|
super(data);
|
|
23
30
|
this.data = data;
|
|
24
|
-
this.labelUtil = labelUtil;
|
|
25
|
-
this.objectModel = objectModel;
|
|
31
|
+
this.labelUtil = canvasController.labelUtil;
|
|
32
|
+
this.objectModel = canvasController.objectModel;
|
|
26
33
|
this.apiPipeline = this.objectModel.getAPIPipeline(data.pipelineId);
|
|
34
|
+
|
|
35
|
+
const autoLinkOnlyFromSelNodes = canvasController.getCanvasConfig().enableAutoLinkOnlyFromSelNodes;
|
|
27
36
|
this.srcNode = this.apiPipeline.getAutoSourceNode(autoLinkOnlyFromSelNodes);
|
|
28
37
|
this.newNode = this.apiPipeline.createAutoNode(data, this.srcNode);
|
|
29
38
|
this.newLink = null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2024 Elyra Authors
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -16,19 +16,13 @@
|
|
|
16
16
|
import Action from "../command-stack/action.js";
|
|
17
17
|
|
|
18
18
|
export default class CreateCommentAction extends Action {
|
|
19
|
-
constructor(data,
|
|
19
|
+
constructor(data, canvasController) {
|
|
20
20
|
super(data);
|
|
21
21
|
this.data = data;
|
|
22
|
-
this.
|
|
23
|
-
this.
|
|
22
|
+
this.labelUtil = canvasController.labelUtil;
|
|
23
|
+
this.objectModel = canvasController.objectModel;
|
|
24
24
|
this.apiPipeline = this.objectModel.getAPIPipeline(data.pipelineId);
|
|
25
25
|
|
|
26
|
-
// If we are provided with a comment position then use it in preference
|
|
27
|
-
// to the actual mouse position when creating the comment.
|
|
28
|
-
if (comPos) {
|
|
29
|
-
this.data.mousePos = comPos;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
26
|
this.comment = this.apiPipeline.createComment(data);
|
|
33
27
|
}
|
|
34
28
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2024 Elyra Authors
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
import Action from "../command-stack/action.js";
|
|
17
17
|
|
|
18
18
|
export default class CreateCommentLinkAction extends Action {
|
|
19
|
-
constructor(data,
|
|
19
|
+
constructor(data, canvasController) {
|
|
20
20
|
super(data);
|
|
21
21
|
this.data = data;
|
|
22
|
-
this.
|
|
23
|
-
this.
|
|
22
|
+
this.labelUtil = canvasController.labelUtil;
|
|
23
|
+
this.objectModel = canvasController.objectModel;
|
|
24
24
|
this.apiPipeline = this.objectModel.getAPIPipeline(data.pipelineId);
|
|
25
25
|
this.linkCommentList = this.apiPipeline.createCommentLinks(data);
|
|
26
26
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2024 Elyra Authors
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -13,14 +13,23 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
|
|
17
|
+
/***************************************************************************/
|
|
18
|
+
/* WARNING: */
|
|
19
|
+
/* This class is exported from Common Canvas. This means host apps can */
|
|
20
|
+
/* extend the class and add to, or alter, this class's member variables. */
|
|
21
|
+
/* So, if the names of any internal this.xxxx variables are changed that */
|
|
22
|
+
/* needs to be communicated clearly through the release notes, Slack, etc. */
|
|
23
|
+
/***************************************************************************/
|
|
24
|
+
|
|
16
25
|
import Action from "../command-stack/action.js";
|
|
17
26
|
|
|
18
27
|
export default class CreateNodeAction extends Action {
|
|
19
|
-
constructor(data,
|
|
28
|
+
constructor(data, canvasController) {
|
|
20
29
|
super(data);
|
|
21
30
|
this.data = data;
|
|
22
|
-
this.
|
|
23
|
-
this.
|
|
31
|
+
this.labelUtil = canvasController.labelUtil;
|
|
32
|
+
this.objectModel = canvasController.objectModel;
|
|
24
33
|
this.apiPipeline = this.objectModel.getAPIPipeline(data.pipelineId);
|
|
25
34
|
this.newNode = this.apiPipeline.createNode(data);
|
|
26
35
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2024 Elyra Authors
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -17,11 +17,11 @@ import Action from "../command-stack/action.js";
|
|
|
17
17
|
import CanvasUtils from "../common-canvas/common-canvas-utils.js";
|
|
18
18
|
|
|
19
19
|
export default class CreateNodeAttachLinksAction extends Action {
|
|
20
|
-
constructor(data,
|
|
20
|
+
constructor(data, canvasController) {
|
|
21
21
|
super(data);
|
|
22
22
|
this.data = data;
|
|
23
|
-
this.
|
|
24
|
-
this.
|
|
23
|
+
this.labelUtil = canvasController.labelUtil;
|
|
24
|
+
this.objectModel = canvasController.objectModel;
|
|
25
25
|
this.apiPipeline = this.objectModel.getAPIPipeline(data.pipelineId);
|
|
26
26
|
this.newNode = this.apiPipeline.createNode(data);
|
|
27
27
|
this.linksToUpdateInfo = CanvasUtils.getDetachedLinksToUpdate(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2024 Elyra Authors
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -13,14 +13,23 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
|
|
17
|
+
/***************************************************************************/
|
|
18
|
+
/* WARNING: */
|
|
19
|
+
/* This class is exported from Common Canvas. This means host apps can */
|
|
20
|
+
/* extend the class and add to, or alter, this class's member variables. */
|
|
21
|
+
/* So, if the names of any internal this.xxxx variables are changed that */
|
|
22
|
+
/* needs to be communicated clearly through the release notes, Slack, etc. */
|
|
23
|
+
/***************************************************************************/
|
|
24
|
+
|
|
16
25
|
import Action from "../command-stack/action.js";
|
|
17
26
|
|
|
18
27
|
export default class CreateNodeLinkAction extends Action {
|
|
19
|
-
constructor(data,
|
|
28
|
+
constructor(data, canvasController) {
|
|
20
29
|
super(data);
|
|
21
30
|
this.data = data;
|
|
22
|
-
this.
|
|
23
|
-
this.
|
|
31
|
+
this.labelUtil = canvasController.labelUtil;
|
|
32
|
+
this.objectModel = canvasController.objectModel;
|
|
24
33
|
this.apiPipeline = this.objectModel.getAPIPipeline(data.pipelineId);
|
|
25
34
|
this.actionLabel = this.createActionLabel();
|
|
26
35
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2024 Elyra Authors
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
import Action from "../command-stack/action.js";
|
|
17
17
|
|
|
18
18
|
export default class CreateNodeLinkDetachedAction extends Action {
|
|
19
|
-
constructor(data,
|
|
19
|
+
constructor(data, canvasController) {
|
|
20
20
|
super(data);
|
|
21
21
|
this.data = data;
|
|
22
|
-
this.
|
|
23
|
-
this.
|
|
22
|
+
this.labelUtil = canvasController.labelUtil;
|
|
23
|
+
this.objectModel = canvasController.objectModel;
|
|
24
24
|
this.apiPipeline = this.objectModel.getAPIPipeline(data.pipelineId);
|
|
25
25
|
this.detachedLink = this.apiPipeline.createNodeLinkDetached(data);
|
|
26
26
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2024 Elyra Authors
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
import Action from "../command-stack/action.js";
|
|
17
17
|
|
|
18
18
|
export default class CreateNodeOnLinkAction extends Action {
|
|
19
|
-
constructor(data,
|
|
19
|
+
constructor(data, canvasController) {
|
|
20
20
|
super(data);
|
|
21
21
|
this.data = data;
|
|
22
|
-
this.
|
|
23
|
-
this.
|
|
22
|
+
this.labelUtil = canvasController.labelUtil;
|
|
23
|
+
this.objectModel = canvasController.objectModel;
|
|
24
24
|
this.apiPipeline = this.objectModel.getAPIPipeline(data.pipelineId);
|
|
25
25
|
this.newNode = this.apiPipeline.createNode(data);
|
|
26
26
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2024 Elyra Authors
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -23,12 +23,12 @@ import { ASSOCIATION_LINK, COMMENT_LINK, NODE_LINK,
|
|
|
23
23
|
const BOUNDING_RECT_PADDING = 80;
|
|
24
24
|
|
|
25
25
|
export default class CreateSuperNodeAction extends Action {
|
|
26
|
-
constructor(data,
|
|
26
|
+
constructor(data, canvasController) {
|
|
27
27
|
super(data);
|
|
28
|
-
this.labelUtil = labelUtil;
|
|
28
|
+
this.labelUtil = canvasController.labelUtil;
|
|
29
|
+
this.objectModel = canvasController.objectModel;
|
|
29
30
|
this.data = data;
|
|
30
|
-
this.useCardFromOriginalPorts =
|
|
31
|
-
this.objectModel = objectModel;
|
|
31
|
+
this.useCardFromOriginalPorts = canvasController.getCanvasConfig().enableUseCardFromOriginalPorts;
|
|
32
32
|
this.apiPipeline = this.objectModel.getAPIPipeline(data.pipelineId);
|
|
33
33
|
|
|
34
34
|
this.subflowNodes = this.objectModel.getSelectedNodes();
|
|
@@ -317,7 +317,7 @@ export default class CreateSuperNodeAction extends Action {
|
|
|
317
317
|
return Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
-
// Returns an array of data objects
|
|
320
|
+
// Returns an array of data objects used for binding the input links. That,
|
|
321
321
|
// is for each input link a binding input data object is created that contains
|
|
322
322
|
// the link and a new port that can be added to the supernode. The port will
|
|
323
323
|
// have a unique ID within the scope of the input ports for the supernode.
|
|
@@ -357,7 +357,7 @@ export default class CreateSuperNodeAction extends Action {
|
|
|
357
357
|
return bindingInputData;
|
|
358
358
|
}
|
|
359
359
|
|
|
360
|
-
// Returns an array of data objects
|
|
360
|
+
// Returns an array of data objects used for binding the output links. That,
|
|
361
361
|
// is for each output link a binding input data object is created that contains
|
|
362
362
|
// the link and a new port that can be added to the supernode. The port will
|
|
363
363
|
// have a unique ID within the scope of the output ports for the supernode.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2024 Elyra Authors
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -20,13 +20,13 @@ import { NODE_LINK }
|
|
|
20
20
|
from "../common-canvas/constants/canvas-constants.js";
|
|
21
21
|
|
|
22
22
|
export default class DeconstructSuperNodeAction extends Action {
|
|
23
|
-
constructor(data,
|
|
23
|
+
constructor(data, canvasController) {
|
|
24
24
|
super(data);
|
|
25
25
|
this.data = data;
|
|
26
|
-
this.
|
|
27
|
-
this.
|
|
26
|
+
this.labelUtil = canvasController.labelUtil;
|
|
27
|
+
this.objectModel = canvasController.objectModel;
|
|
28
28
|
this.apiPipeline = this.objectModel.getAPIPipeline(data.pipelineId);
|
|
29
|
-
this.enableMoveNodesOnSupernodeResize = enableMoveNodesOnSupernodeResize;
|
|
29
|
+
this.enableMoveNodesOnSupernodeResize = canvasController.getCanvasConfig().enableMoveNodesOnSupernodeResize;
|
|
30
30
|
this.supernode = this.data.targetObject;
|
|
31
31
|
this.oldObjectPositions = [];
|
|
32
32
|
this.newObjectPositions = [];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2024 Elyra Authors
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
import Action from "../command-stack/action.js";
|
|
17
17
|
|
|
18
18
|
export default class DeleteLinkAction extends Action {
|
|
19
|
-
constructor(data,
|
|
19
|
+
constructor(data, canvasController) {
|
|
20
20
|
super(data);
|
|
21
21
|
this.data = data;
|
|
22
22
|
this.linkInfo = [];
|
|
23
|
-
this.
|
|
24
|
-
this.
|
|
23
|
+
this.labelUtil = canvasController.labelUtil;
|
|
24
|
+
this.objectModel = canvasController.objectModel;
|
|
25
25
|
this.apiPipeline = this.objectModel.getAPIPipeline(data.pipelineId);
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2024 Elyra Authors
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -13,16 +13,25 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
|
|
17
|
+
/***************************************************************************/
|
|
18
|
+
/* WARNING: */
|
|
19
|
+
/* This class is exported from Common Canvas. This means host apps can */
|
|
20
|
+
/* extend the class and add to, or alter, this class's member variables. */
|
|
21
|
+
/* So, if the names of any internal this.xxxx variables are changed that */
|
|
22
|
+
/* needs to be communicated clearly through the release notes, Slack, etc. */
|
|
23
|
+
/***************************************************************************/
|
|
24
|
+
|
|
16
25
|
import CanvasUtils from "../common-canvas/common-canvas-utils.js";
|
|
17
26
|
import Action from "../command-stack/action.js";
|
|
18
27
|
|
|
19
28
|
export default class DeleteObjectsAction extends Action {
|
|
20
|
-
constructor(data,
|
|
29
|
+
constructor(data, canvasController) {
|
|
21
30
|
super(data);
|
|
22
31
|
this.data = data;
|
|
23
|
-
this.
|
|
24
|
-
this.
|
|
25
|
-
this.areDetachableLinksSupported =
|
|
32
|
+
this.labelUtil = canvasController.labelUtil;
|
|
33
|
+
this.objectModel = canvasController.objectModel;
|
|
34
|
+
this.areDetachableLinksSupported = canvasController.areDetachableLinksInUse();
|
|
26
35
|
this.objectsInfo = [];
|
|
27
36
|
this.apiPipeline = this.objectModel.getAPIPipeline(data.pipelineId);
|
|
28
37
|
this.nodesToDelete = this.objectModel.getSelectedNodes();
|
|
@@ -38,7 +47,7 @@ export default class DeleteObjectsAction extends Action {
|
|
|
38
47
|
// have their source and target IDs removed (as appropriate based on
|
|
39
48
|
// whether the source and/or taget object is being deleted) which will
|
|
40
49
|
// indicate that the node is either partailly or fully detached.
|
|
41
|
-
if (areDetachableLinksSupported) {
|
|
50
|
+
if (this.areDetachableLinksSupported) {
|
|
42
51
|
this.linksToDelete = this.getConnectedLinksToDelete(this.linksToDelete, "nodeLink");
|
|
43
52
|
this.linksToUpdateInfo = this.getLinksToUpdateInfo();
|
|
44
53
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2024 Elyra Authors
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -13,14 +13,23 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
|
|
17
|
+
/***************************************************************************/
|
|
18
|
+
/* WARNING: */
|
|
19
|
+
/* This class is exported from Common Canvas. This means host apps can */
|
|
20
|
+
/* extend the class and add to, or alter, this class's member variables. */
|
|
21
|
+
/* So, if the names of any internal this.xxxx variables are changed that */
|
|
22
|
+
/* needs to be communicated clearly through the release notes, Slack, etc. */
|
|
23
|
+
/***************************************************************************/
|
|
24
|
+
|
|
16
25
|
import Action from "../command-stack/action.js";
|
|
17
26
|
|
|
18
27
|
export default class DisconnectObjectsAction extends Action {
|
|
19
|
-
constructor(data,
|
|
28
|
+
constructor(data, canvasController) {
|
|
20
29
|
super(data);
|
|
21
30
|
this.data = data;
|
|
22
|
-
this.
|
|
23
|
-
this.
|
|
31
|
+
this.labelUtil = canvasController.labelUtil;
|
|
32
|
+
this.objectModel = canvasController.objectModel;
|
|
24
33
|
this.apiPipeline = this.objectModel.getAPIPipeline(data.pipelineId);
|
|
25
34
|
this.links = [];
|
|
26
35
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2024 Elyra Authors
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
import Action from "../command-stack/action.js";
|
|
17
17
|
|
|
18
18
|
export default class DisplayPreviousPipeline extends Action {
|
|
19
|
-
constructor(data,
|
|
19
|
+
constructor(data, canvasController) {
|
|
20
20
|
super(data);
|
|
21
21
|
this.data = data;
|
|
22
|
-
this.
|
|
23
|
-
this.
|
|
22
|
+
this.labelUtil = canvasController.labelUtil;
|
|
23
|
+
this.objectModel = canvasController.objectModel;
|
|
24
24
|
this.oldBreadcrumbs = this.objectModel.getBreadcrumbs();
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2024 Elyra Authors
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
import Action from "../command-stack/action.js";
|
|
17
17
|
|
|
18
18
|
export default class DisplaySubPipeline extends Action {
|
|
19
|
-
constructor(data,
|
|
19
|
+
constructor(data, canvasController) {
|
|
20
20
|
super(data);
|
|
21
21
|
this.data = data;
|
|
22
|
-
this.
|
|
23
|
-
this.
|
|
22
|
+
this.labelUtil = canvasController.labelUtil;
|
|
23
|
+
this.objectModel = canvasController.objectModel;
|
|
24
24
|
this.oldBreadcrumbs = this.objectModel.getBreadcrumbs();
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2024 Elyra Authors
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
import Action from "../command-stack/action.js";
|
|
17
17
|
|
|
18
18
|
export default class EditCommentAction extends Action {
|
|
19
|
-
constructor(data,
|
|
19
|
+
constructor(data, canvasController) {
|
|
20
20
|
super(data);
|
|
21
21
|
this.data = data;
|
|
22
|
-
this.
|
|
23
|
-
this.
|
|
22
|
+
this.labelUtil = canvasController.labelUtil;
|
|
23
|
+
this.objectModel = canvasController.objectModel;
|
|
24
24
|
this.apiPipeline = this.objectModel.getAPIPipeline(data.pipelineId);
|
|
25
25
|
this.previousComment = this.apiPipeline.getComment(this.data.id);
|
|
26
26
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2024 Elyra Authors
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -17,11 +17,11 @@ import Action from "../command-stack/action.js";
|
|
|
17
17
|
import { DEC_LINK, DEC_NODE } from "../common-canvas/constants/canvas-constants";
|
|
18
18
|
|
|
19
19
|
export default class EditDecorationLabelAction extends Action {
|
|
20
|
-
constructor(data,
|
|
20
|
+
constructor(data, canvasController) {
|
|
21
21
|
super(data);
|
|
22
22
|
this.data = data;
|
|
23
|
-
this.
|
|
24
|
-
this.
|
|
23
|
+
this.labelUtil = canvasController.labelUtil;
|
|
24
|
+
this.objectModel = canvasController.objectModel;
|
|
25
25
|
this.apiPipeline = this.objectModel.getAPIPipeline(this.data.pipelineId);
|
|
26
26
|
if (this.data.objType === DEC_LINK) {
|
|
27
27
|
this.previousDecorations = this.apiPipeline.getLinkDecorations(this.data.objId) || [];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2024 Elyra Authors
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
@@ -18,16 +18,16 @@ import Action from "../command-stack/action.js";
|
|
|
18
18
|
import CanvasUtils from "../common-canvas/common-canvas-utils";
|
|
19
19
|
|
|
20
20
|
export default class expandSuperNodeInPlaceAction extends Action {
|
|
21
|
-
constructor(data,
|
|
21
|
+
constructor(data, canvasController) {
|
|
22
22
|
super(data);
|
|
23
23
|
this.data = data;
|
|
24
|
-
this.
|
|
25
|
-
this.
|
|
24
|
+
this.labelUtil = canvasController.labelUtil;
|
|
25
|
+
this.objectModel = canvasController.objectModel;
|
|
26
26
|
this.oldObjectPositions = [];
|
|
27
27
|
this.newObjectPositions = [];
|
|
28
28
|
this.oldLinkPositions = [];
|
|
29
29
|
this.newLinkPositions = [];
|
|
30
|
-
this.enableMoveNodesOnSupernodeResize = enableMoveNodesOnSupernodeResize;
|
|
30
|
+
this.enableMoveNodesOnSupernodeResize = canvasController.getCanvasConfig().enableMoveNodesOnSupernodeResize;
|
|
31
31
|
this.apiPipeline = this.objectModel.getAPIPipeline(data.pipelineId);
|
|
32
32
|
this.supernode = this.apiPipeline.getNode(this.data.id);
|
|
33
33
|
|