@elyra/canvas 12.41.0 → 12.42.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-13b58448.js} +2 -2
- package/dist/{canvas-constants-079172c0.js.map → canvas-constants-13b58448.js.map} +1 -1
- package/dist/canvas-controller-a53943e4.js +2 -0
- package/dist/canvas-controller-a53943e4.js.map +1 -0
- package/dist/canvas-controller-cb1d7420.js +2 -0
- package/dist/canvas-controller-cb1d7420.js.map +1 -0
- package/dist/common-canvas-42027a3f.js +2 -0
- package/dist/common-canvas-42027a3f.js.map +1 -0
- package/dist/common-canvas-f758ff42.js +2 -0
- package/dist/common-canvas-f758ff42.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-2e1b7ec7.js +2 -0
- package/dist/common-properties-2e1b7ec7.js.map +1 -0
- package/dist/common-properties-5e8870e3.js +2 -0
- package/dist/common-properties-5e8870e3.js.map +1 -0
- package/dist/context-menu-wrapper-49f9a1af.js +2 -0
- package/dist/context-menu-wrapper-49f9a1af.js.map +1 -0
- package/dist/context-menu-wrapper-5d6a399f.js +2 -0
- package/dist/context-menu-wrapper-5d6a399f.js.map +1 -0
- package/dist/{datarecord-metadata-v3-schema-59505bc5.js → datarecord-metadata-v3-schema-98ec66e9.js} +2 -2
- package/dist/{datarecord-metadata-v3-schema-59505bc5.js.map → datarecord-metadata-v3-schema-98ec66e9.js.map} +1 -1
- package/dist/{flexible-table-43e2d052.js → flexible-table-35e9922a.js} +2 -2
- package/dist/{flexible-table-43e2d052.js.map → flexible-table-35e9922a.js.map} +1 -1
- package/dist/{flexible-table-63ffd573.js → flexible-table-7c7de0f9.js} +1 -1
- package/dist/{flexible-table-63ffd573.js.map → flexible-table-7c7de0f9.js.map} +1 -1
- package/dist/{icon-0390f1fe.js → icon-9edff40c.js} +2 -2
- package/dist/{icon-0390f1fe.js.map → icon-9edff40c.js.map} +1 -1
- package/dist/{index-57503b50.js → index-94fec521.js} +2 -2
- package/dist/{index-57503b50.js.map → index-94fec521.js.map} +1 -1
- package/dist/{index-1cd54914.js → index-e2f8a935.js} +2 -2
- package/dist/{index-1cd54914.js.map → index-e2f8a935.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/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.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-6acda0a2.js +2 -0
- package/dist/toolbar-6acda0a2.js.map +1 -0
- package/dist/toolbar-d5647da2.js +2 -0
- package/dist/toolbar-d5647da2.js.map +1 -0
- package/package.json +12 -4
- package/src/color-picker/color-picker.jsx +92 -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 +78 -62
- package/src/common-canvas/cc-central-items.jsx +1 -1
- package/src/common-canvas/cc-context-toolbar.jsx +9 -13
- package/src/common-canvas/cc-toolbar.jsx +2 -0
- package/src/common-canvas/svg-canvas-renderer.js +6 -2
- 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/table-buttons/table-buttons.scss +0 -1
- package/src/common-properties/controls/expression/expression-builder/expression-builder.jsx +32 -26
- package/src/common-properties/controls/expression/expression.jsx +146 -117
- 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 +53 -104
- package/src/common-properties/controls/expression/languages/r-hint.js +55 -130
- package/src/common-properties/properties-controller.js +5 -0
- package/src/context-menu/common-context-menu.jsx +4 -1
- package/src/index.js +12 -2
- package/src/object-model/redux/canvas-store.js +4 -3
- package/src/toolbar/toolbar-action-item.jsx +90 -314
- package/src/toolbar/toolbar-button-item.jsx +354 -0
- package/src/toolbar/toolbar-divider-item.jsx +3 -4
- package/src/toolbar/toolbar-overflow-item.jsx +82 -36
- package/src/toolbar/toolbar-sub-menu-item.jsx +235 -0
- package/src/toolbar/toolbar-sub-menu.jsx +254 -0
- package/src/toolbar/toolbar-sub-panel.jsx +81 -0
- package/src/toolbar/toolbar-sub-utils.js +77 -0
- package/src/toolbar/toolbar.jsx +330 -146
- package/src/toolbar/toolbar.scss +22 -15
- package/src/tooltip/tooltip.jsx +9 -2
- package/stats.html +1 -1
- 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/toolbar/toolbar-action-sub-area.jsx +0 -126
- package/src/toolbar/toolbar-overflow-menu.jsx +0 -77
- package/src/toolbar/toolbar-utils.js +0 -33
|
@@ -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.
|
|
@@ -14,143 +14,68 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
function register(cm) {
|
|
19
|
-
CodeMirror = cm;
|
|
20
|
-
CodeMirror.registerHelper("hint", "r", rHint);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
function forEach(arr, f) {
|
|
24
|
-
for (var e = arr.length, i = 0; i < e; ++i) {
|
|
25
|
-
f(arr[i]);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function arrayContains(arr, item) {
|
|
30
|
-
if (!Array.prototype.indexOf) {
|
|
31
|
-
var i = arr.length;
|
|
32
|
-
while (i--) {
|
|
33
|
-
if (arr[i] === item) {
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
return false;
|
|
38
|
-
}
|
|
39
|
-
return arr.indexOf(item) !== -1;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function scriptHint(editor, _keywords, getToken) {
|
|
43
|
-
var cur = editor.getCursor();
|
|
44
|
-
var token = getToken(editor, cur);
|
|
45
|
-
var tprop = token;
|
|
46
|
-
var context;
|
|
47
|
-
// ignore irregular word tokens
|
|
48
|
-
if (!(/^[\w$_]*$/).test(token.string)) {
|
|
49
|
-
token = tprop = { start: cur.ch, end: cur.ch, string: "", state: token.state,
|
|
50
|
-
className: token.string === ":" ? "r-type" : null };
|
|
51
|
-
}
|
|
52
|
-
if (!context) {
|
|
53
|
-
context = [];
|
|
54
|
-
}
|
|
55
|
-
context.push(tprop);
|
|
56
|
-
|
|
57
|
-
var completionList = getCompletions(token, context);
|
|
58
|
-
completionList.sort();
|
|
59
|
-
|
|
60
|
-
return { list: completionList,
|
|
61
|
-
from: CodeMirror.Pos(cur.line, token.start),
|
|
62
|
-
to: CodeMirror.Pos(cur.line, token.end) };
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
function rHint(editor) {
|
|
66
|
-
return scriptHint(editor, rKeywordsL, function(e, cur) {
|
|
67
|
-
return e.getTokenAt(cur);
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
var rKeywords = "function|if|in|break|next|repeat|else|for" +
|
|
17
|
+
const keywords = "function|if|in|break|next|repeat|else|for" +
|
|
72
18
|
"|return|switch|while|try|tryCatch|stop|warning|require|library" +
|
|
73
19
|
"|attach|detach|source|setMethod|setGeneric|setGroupGeneric|setClass";
|
|
74
|
-
var rKeywordsL = rKeywords.split("|");
|
|
75
20
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
|
|
21
|
+
const rKeywords = keywords.split("|");
|
|
22
|
+
|
|
23
|
+
const builtIns = "zapsmall xzfile xtfrm xor writeLines writeChar writeBin write withVisible withRestarts within" +
|
|
24
|
+
" withCallingHandlers withAutoprint with while which weekdays warnings warning version Vectorize vector vapply" +
|
|
25
|
+
" validUTF8 validEnc utf8ToInt UseMethod url unz untracemem untrace unsplit unserialize unname unlockBinding unloadNamespace" +
|
|
26
|
+
" unlist unlink unique union undebug unclass typeof tryCatch try truncate trunc trimws trigamma" +
|
|
27
|
+
" transform tracingState tracemem traceback trace toupper toString topenv tolower textConnectionValue textConnection" +
|
|
28
|
+
" testPlatformEquivalence tempfile tempdir tcrossprod taskCallbackManager tapply tanpi tanh tan tabulate table T t system2 system" +
|
|
29
|
+
" switch sweep svd suspendInterrupts suppressWarnings suppressPackageStartupMessages suppressMessages summary sum" +
|
|
30
|
+
" substring substr substitute subset sub strwrap structure strtrim strtoi strsplit strrep strptime strftime" +
|
|
31
|
+
" stopifnot stop stdout stdin stderr startsWith standardGeneric srcref srcfilecopy srcfilealias srcfile sQuote sqrt sprintf split" +
|
|
32
|
+
" source sort solve socketSelect socketConnection sinpi sink sinh single sin simplify2array simpleWarning simpleMessage simpleError" +
|
|
33
|
+
" simpleCondition signif signalCondition sign shQuote showConnections setwd setTimeLimit setSessionTimeLimit setNamespaceInfo setHook" +
|
|
34
|
+
" setequal setdiff serialize sequence seq_len seq_along seq seek searchpaths search scan scale saveRDS save sapply sample rowSums" +
|
|
35
|
+
" rowsum rownames rowMeans row round RNGversion length lchoose lbeta lazyLoadDBfetch lazyLoadDBexec" +
|
|
36
|
+
" RNGkind rm rle rev returnValue return retracemem restartFormals restartDescription requireNamespace require replicate replace repeat" +
|
|
37
|
+
" rep_len rep removeTaskCallback remove regmatches registerS3methods registerS3method regexpr regexec Reduce Recall" +
|
|
38
|
+
" readRenviron readRDS readLines readline readChar readBin Re rcond rbind rawToChar rawToBits rawShift rawConnectionValue rawConnection" +
|
|
39
|
+
" raw rapply rank range R_system_version quote quit quarters qr q pushBackLength pushBack psigamma provideDimnames prod prmatrix print" +
|
|
40
|
+
" prettyNum pretty Position polyroot pmin pmax pmatch pipe pi pcre_config paste0 paste parseNamespaceFile parse" +
|
|
41
|
+
" packBits packageStartupMessage packageHasNamespace packageEvent package_version outer ordered order options open OlsonNames" +
|
|
42
|
+
" oldClass objects nzchar numeric_version numeric NROW nrow normalizePath norm noquote nlevels ngettext NextMethod next Negate NCOL ncol" +
|
|
43
|
+
" nchar nargs namespaceImportMethods namespaceImportFrom namespaceImportClasses namespaceImport namespaceExport" +
|
|
44
|
+
" months mode Mod missing min mget message merge memDecompress memCompress mean max matrix match mapply Map" +
|
|
45
|
+
" makeActiveBinding ls logical logb log2 log1p log10 log lockEnvironment lockBinding local loadNamespace loadingNamespaceInfo loadedNamespaces" +
|
|
46
|
+
" load list2env list license licence library libcurlVersion lgamma lfactorial levels LETTERS letters lengths" +
|
|
47
|
+
" lazyLoad lapply labels La_version La_library l10n_info kronecker kappa julian jitter isTRUE isSymmetric isSeekable isS4 isRestart isOpen" +
|
|
48
|
+
" ISOdatetime ISOdate isNamespaceLoaded isNamespace isIncomplete isFALSE isdebugged isBaseNamespace isatty" +
|
|
49
|
+
" invokeRestartInteractively invokeRestart invisible intToUtf8 intToBits intersect acosh acos abs abbreviate" +
|
|
50
|
+
" interactive interaction integer inherits importIntoEnv Im ifelse if identity identical icuSetCollate icuGetCollate iconvlist iconv I" +
|
|
51
|
+
" gzfile gzcon gsub grouping grepRaw grepl grep gregexpr globalenv gl getwd gettextf gettext getTaskCallbackNames getSrcLines getRversion" +
|
|
52
|
+
" getOption getNativeSymbolInfo getNamespaceVersion getNamespaceUsers getNamespaceName getNamespaceInfo getNamespaceImports getNamespaceExports" +
|
|
53
|
+
" getNamespace getLoadedDLLs getHook getExportedValue geterrmessage getElement getDLLRegisteredRoutines getConnection getCallingDLLe" +
|
|
54
|
+
" getCallingDLL getAllConnections get0 get gctorture2 gctorture gcinfo gc gamma function forwardsolve formatDL formatC format" +
|
|
55
|
+
" formals forceAndCall force for flush floor findRestart findPackageEnv findInterval Find Filter file fifo factorial factor F extSoftVersion" +
|
|
56
|
+
" expression expm1 exp exists evalq eval environmentName environmentIsLocked environment enquote endsWith Encoding" +
|
|
57
|
+
" encodeString enc2utf8 enc2native emptyenv eigen eapply dynGet duplicated dump droplevels drop dQuote dput double dontCheck dirname dir" +
|
|
58
|
+
" digamma difftime diff dget determinant detach det deparse delayedAssign asNamespace asinh asin" +
|
|
59
|
+
" debugonce debuggingState debug date cut curlGetHeaders cumsum cumprod cummin cummax Cstack_info crossprod cospi cosh cos contributors Conj" +
|
|
60
|
+
" conflicts conditionMessage conditionCall computeRestarts complex comment commandArgs colSums colnames colMeans col" +
|
|
61
|
+
" closeAllConnections close clearPushBack class choose chol2inv chol chkDots check_tzones chartr charToRaw charmatch character ceiling" +
|
|
62
|
+
" cbind cat casefold capabilities callCC call c bzfile by builtins browserText browserSetDebug browserCondition browser break bquote body" +
|
|
63
|
+
" bitwXor bitwShiftR bitwShiftL bitwOr bitwNot bitwAnd bindtextdomain bindingIsLocked bindingIsActive beta besselY besselK besselJ besselI" +
|
|
64
|
+
" basename baseenv backsolve autoloader autoload attributes attr attachNamespace attach atanh atan2 atan assign asS4 asS3" +
|
|
65
|
+
" arrayInd array args Arg apply append aperm anyNA anyDuplicated any allowInterrupts all alist agrepl agrep addTaskCallback addNA";
|
|
66
|
+
|
|
67
|
+
const rBuiltIns = builtIns.split(" ");
|
|
120
68
|
|
|
121
|
-
function
|
|
122
|
-
|
|
123
|
-
var start = token.string;
|
|
124
|
-
function maybeAdd(str) {
|
|
125
|
-
if (str.lastIndexOf(start, 0) === 0 && !arrayContains(found, str)) {
|
|
126
|
-
found.push(str);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
69
|
+
function getRHints() {
|
|
70
|
+
const rHints = [];
|
|
129
71
|
|
|
130
|
-
|
|
131
|
-
forEach(rBuiltInsL, maybeAdd);
|
|
132
|
-
forEach(rKeywordsL, maybeAdd);
|
|
133
|
-
}
|
|
72
|
+
rKeywords.forEach((keyword) => rHints.push({ label: keyword, type: "keyword" }));
|
|
134
73
|
|
|
135
|
-
|
|
136
|
-
var obj = context.pop();
|
|
137
|
-
var base = "";
|
|
74
|
+
rBuiltIns.forEach((builtIn) => rHints.push({ label: builtIn, type: "keyword" }));
|
|
138
75
|
|
|
139
|
-
|
|
140
|
-
base = obj.string;
|
|
141
|
-
} else if (obj.type === "variable-3") {
|
|
142
|
-
base = ":" + obj.string;
|
|
143
|
-
}
|
|
144
|
-
while (base !== null && context.length) {
|
|
145
|
-
base = base[context.pop().string];
|
|
146
|
-
}
|
|
147
|
-
if (base !== null) {
|
|
148
|
-
gatherCompletions(base);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
return found;
|
|
76
|
+
return rHints;
|
|
152
77
|
}
|
|
153
78
|
|
|
154
79
|
export {
|
|
155
|
-
|
|
80
|
+
getRHints
|
|
156
81
|
};
|
|
@@ -136,6 +136,11 @@ export default class PropertiesController {
|
|
|
136
136
|
return this.propertiesStore.getActiveTab();
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
+
// Set the top-level active tab using tabId
|
|
140
|
+
setTopLevelActiveGroupId(tabId) {
|
|
141
|
+
this.propertiesStore.setActiveTab(tabId);
|
|
142
|
+
}
|
|
143
|
+
|
|
139
144
|
isTearsheetContainer() {
|
|
140
145
|
return this.propertiesConfig.containerType === "Tearsheet";
|
|
141
146
|
}
|
|
@@ -183,8 +183,11 @@ class CommonContextMenu extends React.Component {
|
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
buildColorPickerPanel() {
|
|
186
|
+
const subPanelData = {
|
|
187
|
+
clickActionHandler: (c) => this.colorClicked(c)
|
|
188
|
+
};
|
|
186
189
|
return (
|
|
187
|
-
<ColorPicker
|
|
190
|
+
<ColorPicker subPanelData={subPanelData} closeSubPanel={() => null} />
|
|
188
191
|
);
|
|
189
192
|
}
|
|
190
193
|
|
package/src/index.js
CHANGED
|
@@ -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,6 +20,16 @@ import CommandStack from "./command-stack/command-stack";
|
|
|
20
20
|
import * as FlowValidation from "./flow-validation/validate-flow";
|
|
21
21
|
import ContextMenuWrapper from "./context-menu/context-menu-wrapper";
|
|
22
22
|
import ToolTip from "./tooltip/tooltip";
|
|
23
|
+
import ColorPicker from "./color-picker";
|
|
24
|
+
|
|
25
|
+
import CreateAutoNodeAction from "../src/command-actions/createAutoNodeAction";
|
|
26
|
+
import CreateNodeAction from "../src/command-actions/createNodeAction";
|
|
27
|
+
import CreateNodeLinkAction from "../src/command-actions/createNodeLinkAction";
|
|
28
|
+
import DeleteObjectsAction from "../src/command-actions/deleteObjectsAction";
|
|
29
|
+
import DisconnectObjectsAction from "../src/command-actions/disconnectObjectsAction";
|
|
30
|
+
import PasteAction from "../src/command-actions/pasteAction";
|
|
31
|
+
|
|
23
32
|
|
|
24
33
|
export { CommonCanvas, CanvasController, CommonProperties, PropertiesController, FieldPicker, FlexibleTable,
|
|
25
|
-
CommandStack, FlowValidation, ContextMenuWrapper, ToolTip
|
|
34
|
+
CommandStack, FlowValidation, ContextMenuWrapper, ToolTip, ColorPicker,
|
|
35
|
+
CreateAutoNodeAction, CreateNodeAction, CreateNodeLinkAction, DeleteObjectsAction, DisconnectObjectsAction, PasteAction };
|
|
@@ -77,12 +77,13 @@ export default class CanavasStore {
|
|
|
77
77
|
toppanel: { }
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
-
let enableDevTools = false;
|
|
81
80
|
if (typeof window !== "undefined") {
|
|
82
|
-
enableDevTools = window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__();
|
|
81
|
+
const enableDevTools = window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__();
|
|
82
|
+
this.store = createStore(combinedReducer, initialState, enableDevTools);
|
|
83
|
+
} else {
|
|
84
|
+
this.store = createStore(combinedReducer, initialState);
|
|
83
85
|
}
|
|
84
86
|
|
|
85
|
-
this.store = createStore(combinedReducer, initialState, enableDevTools);
|
|
86
87
|
this.dispatch = this.dispatch.bind(this);
|
|
87
88
|
}
|
|
88
89
|
|