@elyra/canvas 12.44.0 → 13.0.0-alpha.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/build.sh +2 -2
- package/dist/bucket-2-b54707f5.js +2 -0
- package/dist/bucket-2-b54707f5.js.map +1 -0
- package/dist/bucket-2-ead0e85a.js +2 -0
- package/dist/bucket-2-ead0e85a.js.map +1 -0
- package/dist/bucket-8-cc1980eb.js +8 -0
- package/dist/bucket-8-cc1980eb.js.map +1 -0
- package/dist/bucket-8-de8062b8.js +7 -0
- package/dist/bucket-8-de8062b8.js.map +1 -0
- package/dist/common-canvas-2ec9a216.js +2 -0
- package/dist/common-canvas-2ec9a216.js.map +1 -0
- package/dist/common-canvas-b1ee91b9.js +2 -0
- package/dist/common-canvas-b1ee91b9.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-bdb253ac.js +2 -0
- package/dist/common-properties-bdb253ac.js.map +1 -0
- package/dist/common-properties-bf161ba9.js +2 -0
- package/dist/common-properties-bf161ba9.js.map +1 -0
- package/dist/context-menu-wrapper-0eab6957.js +2 -0
- package/dist/context-menu-wrapper-0eab6957.js.map +1 -0
- package/dist/context-menu-wrapper-3d3215a1.js +2 -0
- package/dist/context-menu-wrapper-3d3215a1.js.map +1 -0
- package/dist/flexible-table-9c20861b.js +2 -0
- package/dist/flexible-table-9c20861b.js.map +1 -0
- package/dist/flexible-table-e7485a71.js +2 -0
- package/dist/flexible-table-e7485a71.js.map +1 -0
- package/dist/icon-0c141070.js +2 -0
- package/dist/icon-0c141070.js.map +1 -0
- package/dist/icon-594ca22f.js +2 -0
- package/dist/icon-594ca22f.js.map +1 -0
- package/dist/iconPropTypes-4cbeb95d-2c6ff14c.js +2 -0
- package/dist/iconPropTypes-4cbeb95d-2c6ff14c.js.map +1 -0
- package/dist/iconPropTypes-4cbeb95d-a0eae58e.js +2 -0
- package/dist/iconPropTypes-4cbeb95d-a0eae58e.js.map +1 -0
- package/dist/index-663171c6.js +2 -0
- package/dist/index-663171c6.js.map +1 -0
- package/dist/index-cbac5c62.js +2 -0
- package/dist/index-cbac5c62.js.map +1 -0
- 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-61e2a68d.js +2 -0
- package/dist/toolbar-61e2a68d.js.map +1 -0
- package/dist/toolbar-a8104255.js +2 -0
- package/dist/toolbar-a8104255.js.map +1 -0
- package/locales/common-properties/locales/en.json +4 -1
- package/locales/common-properties/locales/eo.json +4 -1
- package/package.json +16 -23
- package/src/carbon.scss +22 -0
- package/src/color-picker/color-picker.scss +1 -3
- package/src/common-canvas/cc-contents.jsx +4 -4
- package/src/common-canvas/cc-state-tag.jsx +3 -3
- package/src/common-canvas/cc-text-toolbar.jsx +11 -11
- package/src/common-canvas/common-canvas.scss +26 -27
- package/src/common-canvas/svg-canvas-d3.scss +64 -64
- package/src/common-canvas/svg-canvas-utils-external.js +12 -6
- package/src/common-canvas/svg-canvas-utils-textarea.js +1 -1
- package/src/common-properties/actions/button/button.jsx +2 -2
- package/src/common-properties/actions/button/button.scss +0 -3
- package/src/common-properties/actions/image/image.scss +0 -3
- package/src/common-properties/components/control-item/control-item.scss +8 -8
- package/src/common-properties/components/editor-form/editor-form.jsx +22 -13
- package/src/common-properties/components/editor-form/editor-form.scss +16 -22
- package/src/common-properties/components/empty-table/empty-table.jsx +4 -4
- package/src/common-properties/components/empty-table/empty-table.scss +1 -1
- package/src/common-properties/components/field-picker/field-picker.jsx +4 -3
- package/src/common-properties/components/field-picker/field-picker.scss +3 -3
- package/src/common-properties/components/flexible-table/flexible-table.jsx +11 -10
- package/src/common-properties/components/flexible-table/flexible-table.scss +9 -8
- package/src/common-properties/components/moveable-table-rows/moveable-table-rows.jsx +10 -2
- package/src/common-properties/components/moveable-table-rows/moveable-table-rows.scss +4 -8
- package/src/common-properties/components/properties-buttons/properties-buttons.jsx +6 -7
- package/src/common-properties/components/properties-buttons/properties-buttons.scss +8 -7
- package/src/common-properties/components/properties-modal/properties-modal.jsx +1 -1
- package/src/common-properties/components/properties-modal/properties-modal.scss +4 -4
- package/src/common-properties/components/title-editor/title-editor.jsx +9 -9
- package/src/common-properties/components/title-editor/title-editor.scss +9 -9
- package/src/common-properties/components/truncated-content-tooltip/truncated-content-tooltip.jsx +1 -1
- package/src/common-properties/components/validation-message/validation-message.scss +7 -7
- package/src/common-properties/components/virtualized-table/virtualized-table.jsx +9 -9
- package/src/common-properties/components/virtualized-table/virtualized-table.scss +23 -25
- package/src/common-properties/components/wide-flyout/wide-flyout.scss +5 -5
- package/src/common-properties/constants/constants.js +5 -3
- package/src/common-properties/controls/abstract-table.jsx +9 -9
- package/src/common-properties/controls/abstract-table.scss +4 -4
- package/src/common-properties/controls/checkbox/checkbox.jsx +15 -15
- package/src/common-properties/controls/checkbox/checkbox.scss +3 -5
- package/src/common-properties/controls/checkboxset/checkboxset.jsx +4 -4
- package/src/common-properties/controls/checkboxset/checkboxset.scss +3 -2
- package/src/common-properties/controls/datefield/datefield.jsx +14 -13
- package/src/common-properties/controls/datepicker/datepicker.jsx +23 -22
- package/src/common-properties/controls/datepicker/datepicker.scss +1 -10
- package/src/common-properties/controls/datepicker-range/datepicker-range.jsx +35 -34
- package/src/common-properties/controls/datepicker-range/datepicker-range.scss +1 -1
- package/src/common-properties/controls/dropdown/dropdown.jsx +49 -40
- package/src/common-properties/controls/dropdown/dropdown.scss +9 -14
- package/src/common-properties/controls/expression/expression-builder/expression-builder.scss +3 -3
- package/src/common-properties/controls/expression/expression-builder/expression-select-field-function.jsx +5 -5
- package/src/common-properties/controls/expression/expression-builder/expression-select-operator.jsx +2 -2
- package/src/common-properties/controls/expression/expression-toggle/expression-toggle.jsx +8 -7
- package/src/common-properties/controls/expression/expression-toggle/expression-toggle.scss +1 -1
- package/src/common-properties/controls/expression/expression.jsx +4 -3
- package/src/common-properties/controls/expression/expression.scss +16 -17
- package/src/common-properties/controls/multiselect/multiselect.jsx +32 -26
- package/src/common-properties/controls/multiselect/multiselect.scss +1 -1
- package/src/common-properties/controls/numberfield/numberfield.jsx +24 -22
- package/src/common-properties/controls/numberfield/numberfield.scss +7 -14
- package/src/common-properties/controls/passwordfield/passwordfield.jsx +17 -16
- package/src/common-properties/controls/radioset/radioset.jsx +3 -3
- package/src/common-properties/controls/radioset/radioset.scss +2 -2
- package/src/common-properties/controls/slider/slider.jsx +21 -17
- package/src/common-properties/controls/slider/slider.scss +10 -6
- package/src/common-properties/controls/someofselect/someofselect.scss +3 -3
- package/src/common-properties/controls/textarea/textarea.jsx +26 -22
- package/src/common-properties/controls/textarea/textarea.scss +0 -5
- package/src/common-properties/controls/textfield/textfield.jsx +17 -14
- package/src/common-properties/controls/textfield/textfield.scss +3 -7
- package/src/common-properties/controls/timefield/timefield.jsx +14 -13
- package/src/common-properties/controls/toggle/toggle.jsx +11 -2
- package/src/common-properties/controls/toggle/toggle.scss +2 -4
- package/src/common-properties/controls/toggletext/toggletext.jsx +4 -4
- package/src/common-properties/controls/toggletext/toggletext.scss +11 -4
- package/src/common-properties/index.scss +2 -2
- package/src/common-properties/panels/control/control.scss +2 -2
- package/src/common-properties/panels/sub-panel/button.jsx +2 -2
- package/src/common-properties/panels/sub-panel/cell.jsx +3 -4
- package/src/common-properties/panels/sub-panel/sub-panel.scss +2 -2
- package/src/common-properties/panels/subtabs/subtabs.jsx +22 -13
- package/src/common-properties/panels/subtabs/subtabs.scss +28 -27
- package/src/common-properties/panels/summary/summary.jsx +4 -4
- package/src/common-properties/panels/summary/summary.scss +5 -5
- package/src/common-properties/panels/tearsheet/tearsheet.jsx +1 -1
- package/src/common-properties/panels/tearsheet/tearsheet.scss +17 -17
- package/src/common-properties/panels/text-panel/text-panel.scss +4 -4
- package/src/common-properties/panels/twisty/twisty.jsx +1 -1
- package/src/common-properties/panels/twisty/twisty.scss +5 -2
- package/src/common-properties/properties-main/properties-main.jsx +1 -1
- package/src/common-properties/properties-main/properties-main.scss +8 -8
- package/src/context-menu/common-context-menu.jsx +2 -2
- package/src/context-menu/context-menu.scss +5 -6
- package/src/icons/icon.jsx +33 -33
- package/src/icons/icon.scss +10 -10
- package/src/index.scss +2 -4
- package/src/notification-panel/notification-panel.jsx +5 -5
- package/src/notification-panel/notification-panel.scss +31 -31
- package/src/palette/palette-dialog-topbar.jsx +4 -4
- package/src/palette/palette-flyout-content-category.jsx +3 -3
- package/src/palette/palette-flyout-content-search.jsx +2 -2
- package/src/palette/palette-flyout-content.jsx +1 -1
- package/src/palette/palette.scss +45 -43
- package/src/themes/light.scss +7 -3
- package/src/toolbar/toolbar-action-item.jsx +1 -1
- package/src/toolbar/toolbar-button-item.jsx +31 -31
- package/src/toolbar/toolbar-overflow-item.jsx +3 -3
- package/src/toolbar/toolbar-sub-menu-item.jsx +4 -1
- package/src/toolbar/toolbar.scss +41 -39
- package/src/tooltip/tooltip.jsx +1 -1
- package/src/tooltip/tooltip.scss +15 -15
- package/stats.html +1 -1
- package/dist/_baseIteratee-148093b7.js +0 -7
- package/dist/_baseIteratee-148093b7.js.map +0 -1
- package/dist/_baseIteratee-2b75d27c.js +0 -8
- package/dist/_baseIteratee-2b75d27c.js.map +0 -1
- package/dist/common-canvas-6ed21ab6.js +0 -2
- package/dist/common-canvas-6ed21ab6.js.map +0 -1
- package/dist/common-canvas-8abf016c.js +0 -2
- package/dist/common-canvas-8abf016c.js.map +0 -1
- package/dist/common-properties-88377242.js +0 -2
- package/dist/common-properties-88377242.js.map +0 -1
- package/dist/common-properties-b295acc8.js +0 -2
- package/dist/common-properties-b295acc8.js.map +0 -1
- package/dist/context-menu-wrapper-949393c7.js +0 -2
- package/dist/context-menu-wrapper-949393c7.js.map +0 -1
- package/dist/context-menu-wrapper-f62dfcdb.js +0 -2
- package/dist/context-menu-wrapper-f62dfcdb.js.map +0 -1
- package/dist/flexible-table-c6a8b402.js +0 -2
- package/dist/flexible-table-c6a8b402.js.map +0 -1
- package/dist/flexible-table-f7b294a0.js +0 -2
- package/dist/flexible-table-f7b294a0.js.map +0 -1
- package/dist/icon-56b27c4f.js +0 -2
- package/dist/icon-56b27c4f.js.map +0 -1
- package/dist/icon-8ec2f0ec.js +0 -2
- package/dist/icon-8ec2f0ec.js.map +0 -1
- package/dist/index-01cbacf9.js +0 -2
- package/dist/index-01cbacf9.js.map +0 -1
- package/dist/index-79543d41.js +0 -2
- package/dist/index-79543d41.js.map +0 -1
- package/dist/toolbar-235dfb9d.js +0 -2
- package/dist/toolbar-235dfb9d.js.map +0 -1
- package/dist/toolbar-6607e35c.js +0 -2
- package/dist/toolbar-6607e35c.js.map +0 -1
|
@@ -106,5 +106,8 @@
|
|
|
106
106
|
"virtualizedTable.row.checkbox.label": "Select row {row_index} from {table_label}",
|
|
107
107
|
"properties.empty.table.text": "To begin, click \"{button_label}\"",
|
|
108
108
|
"label.indicator.required": "(required)",
|
|
109
|
-
"label.indicator.optional": "(optional)"
|
|
109
|
+
"label.indicator.optional": "(optional)",
|
|
110
|
+
"slider.numberInput.label": "Slider number input",
|
|
111
|
+
"editorForm.tabList.label": "Primary Tabs",
|
|
112
|
+
"subTabs.tabList.label": "Tab List"
|
|
110
113
|
}
|
|
@@ -105,5 +105,8 @@
|
|
|
105
105
|
"virtualizedTable.row.checkbox.label": "[Esperanto~Select row {row_index} from {table_label}~~~~~~~~~~eo]",
|
|
106
106
|
"properties.empty.table.text": "[Esperanto~To begin, click \"{button_label}\"~~~~~eo]",
|
|
107
107
|
"label.indicator.required": "[Esperanto~(required)~~~~~~eo]",
|
|
108
|
-
"label.indicator.optional": "[Esperanto~(optional)~~~~~~eo]"
|
|
108
|
+
"label.indicator.optional": "[Esperanto~(optional)~~~~~~eo]",
|
|
109
|
+
"slider.numberInput.label": "[Esperanto~Slider number input~~~~~eo]",
|
|
110
|
+
"editorForm.tabList.label": "[Esperanto~Primary Tabs~~~~eo]",
|
|
111
|
+
"subTabs.tabList.label": "[Esperanto~Tab List~~~~eo]"
|
|
109
112
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elyra/canvas",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0-alpha.0",
|
|
4
4
|
"description": "Elyra common-canvas",
|
|
5
5
|
"main": "dist/common-canvas.js",
|
|
6
6
|
"module": "dist/common-canvas.es.js",
|
|
7
|
-
"homepage": "https://
|
|
7
|
+
"homepage": "https://elyra-ai.github.io/canvas/",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "https://github.com/elyra-ai/canvas/tree/main/canvas_modules/common-canvas"
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"markdown-it": "^13.0.1",
|
|
44
44
|
"prop-types": "^15.7.2",
|
|
45
45
|
"react-draggable": "^4.4.4",
|
|
46
|
-
"react-inlinesvg": "^
|
|
46
|
+
"react-inlinesvg": "^4.1.3",
|
|
47
47
|
"react-portal": "^4.2.1",
|
|
48
48
|
"react-resize-detector": "^9.1.0",
|
|
49
49
|
"react-virtualized": "^9.22.2",
|
|
50
|
-
"redux": "^
|
|
50
|
+
"redux": "^5.0.1",
|
|
51
51
|
"seedrandom": "^3.0.5",
|
|
52
52
|
"uuid": "^8.3.0"
|
|
53
53
|
},
|
|
@@ -58,8 +58,7 @@
|
|
|
58
58
|
"@babel/plugin-transform-runtime": "7.11.5",
|
|
59
59
|
"@babel/preset-env": "7.11.5",
|
|
60
60
|
"@babel/preset-react": "7.10.4",
|
|
61
|
-
"@carbon/
|
|
62
|
-
"@carbon/themes": "10.48.0",
|
|
61
|
+
"@carbon/react": "^1.52.0",
|
|
63
62
|
"@rollup/plugin-babel": "5.3.0",
|
|
64
63
|
"@rollup/plugin-commonjs": "21.0.1",
|
|
65
64
|
"@rollup/plugin-json": "4.1.0",
|
|
@@ -69,14 +68,10 @@
|
|
|
69
68
|
"babel-jest": "26.3.0",
|
|
70
69
|
"babel-plugin-lodash": "3.3.4",
|
|
71
70
|
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
|
|
72
|
-
"carbon-components": "10.50.0",
|
|
73
|
-
"carbon-components-react": "7.50.0",
|
|
74
|
-
"carbon-icons": "7.0.7",
|
|
75
71
|
"chai": "4.2.0",
|
|
76
|
-
"
|
|
72
|
+
"classnames": "2.5.1",
|
|
77
73
|
"deep-freeze": "0.0.1",
|
|
78
74
|
"enzyme": "3.11.0",
|
|
79
|
-
"enzyme-adapter-react-16": "1.15.5",
|
|
80
75
|
"eslint": "^7.32.0",
|
|
81
76
|
"eslint-config-canvas": "file:../eslint-config-canvas",
|
|
82
77
|
"eslint-plugin-import": "2.25.3",
|
|
@@ -92,29 +87,27 @@
|
|
|
92
87
|
"jest": "26.4.2",
|
|
93
88
|
"jest-fetch-mock": "3.0.3",
|
|
94
89
|
"jest-localstorage-mock": "2.4.3",
|
|
95
|
-
"react": "
|
|
96
|
-
"react-dom": "
|
|
97
|
-
"react-intl": "
|
|
98
|
-
"react-redux": "7.2.
|
|
99
|
-
"react-test-renderer": "
|
|
90
|
+
"react": "18.2.0",
|
|
91
|
+
"react-dom": "18.2.0",
|
|
92
|
+
"react-intl": "6.6.2",
|
|
93
|
+
"react-redux": "7.2.8",
|
|
94
|
+
"react-test-renderer": "18.2.0",
|
|
100
95
|
"reactable": "1.1.0",
|
|
101
96
|
"rollup": "2.60.1",
|
|
102
97
|
"rollup-plugin-auto-external": "2.0.0",
|
|
103
98
|
"rollup-plugin-scss": "3.0.0",
|
|
104
99
|
"rollup-plugin-terser": "7.0.2",
|
|
105
100
|
"rollup-plugin-visualizer": "5.5.2",
|
|
106
|
-
"sass": "1.
|
|
101
|
+
"sass": "1.71.1",
|
|
107
102
|
"sinon": "9.0.3",
|
|
108
|
-
"stylelint": "13.13.1"
|
|
103
|
+
"stylelint": "13.13.1",
|
|
104
|
+
"url": "0.11.3"
|
|
109
105
|
},
|
|
110
106
|
"peerDependencies": {
|
|
111
|
-
"@carbon/
|
|
112
|
-
"carbon-components": "^10.50.0",
|
|
113
|
-
"carbon-components-react": "^7.50.0",
|
|
114
|
-
"carbon-icons": "^7.0.7",
|
|
107
|
+
"@carbon/react": "^1.51.0",
|
|
115
108
|
"react": "^16.0.0 || ^17.0.0 || ^18.0.0",
|
|
116
109
|
"react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0",
|
|
117
|
-
"react-intl": "^5.0.0",
|
|
110
|
+
"react-intl": "^5.0.0 || ^6.0.0",
|
|
118
111
|
"react-redux": "^7.0.0"
|
|
119
112
|
},
|
|
120
113
|
"jest": {
|
package/src/carbon.scss
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Elyra Authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
@forward "@carbon/react/scss/colors";
|
|
18
|
+
@forward "@carbon/react/scss/type";
|
|
19
|
+
@forward "@carbon/react/scss/spacing";
|
|
20
|
+
@forward "@carbon/react/scss/theme";
|
|
21
|
+
@forward "@carbon/react/scss/motion";
|
|
22
|
+
@forward "@carbon/react/scss/components/button/tokens";
|
|
@@ -14,8 +14,6 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
@import "carbon-components/scss/globals/scss/_vars";
|
|
18
|
-
|
|
19
17
|
.color-picker {
|
|
20
18
|
width: 156px;
|
|
21
19
|
height: 55px;
|
|
@@ -28,7 +26,7 @@
|
|
|
28
26
|
margin: 5px 0 0 5px;
|
|
29
27
|
cursor: pointer;
|
|
30
28
|
&.white-0 {
|
|
31
|
-
background-color: $
|
|
29
|
+
background-color: $layer-01; // In dark-mode, white-0 will be interpreted as black.
|
|
32
30
|
border: 1px solid $gray-50;
|
|
33
31
|
}
|
|
34
32
|
&.yellow-20 { background-color: $yellow-20; }
|
|
@@ -27,8 +27,8 @@ import CommonCanvasContextToolbar from "./cc-context-toolbar.jsx";
|
|
|
27
27
|
import CommonCanvasTextToolbar from "./cc-text-toolbar.jsx";
|
|
28
28
|
import CommonCanvasStateTag from "./cc-state-tag.jsx";
|
|
29
29
|
import CanvasUtils from "./common-canvas-utils.js";
|
|
30
|
-
import { Button } from "carbon
|
|
31
|
-
import {
|
|
30
|
+
import { Button } from "@carbon/react";
|
|
31
|
+
import { FlowData, ArrowLeft } from "@carbon/react/icons";
|
|
32
32
|
import { DND_DATA_TEXT, STATE_TAG_LOCKED, STATE_TAG_READ_ONLY } from "./constants/canvas-constants";
|
|
33
33
|
import Logger from "../logging/canvas-logger.js";
|
|
34
34
|
import SVGCanvasD3 from "./svg-canvas-d3.js";
|
|
@@ -336,7 +336,7 @@ class CanvasContents extends React.Component {
|
|
|
336
336
|
} else {
|
|
337
337
|
emptyCanvas = (
|
|
338
338
|
<div className="empty-canvas">
|
|
339
|
-
<div className="empty-canvas-image"><
|
|
339
|
+
<div className="empty-canvas-image"><FlowData /></div>
|
|
340
340
|
<span className="empty-canvas-text1">{this.getLabel("canvas.flowIsEmpty")}</span>
|
|
341
341
|
<span className="empty-canvas-text2">{this.getLabel("canvas.addNodeToStart")}</span>
|
|
342
342
|
</div>);
|
|
@@ -359,7 +359,7 @@ class CanvasContents extends React.Component {
|
|
|
359
359
|
size={"md"}
|
|
360
360
|
>
|
|
361
361
|
<div className={"return-to-previous-content"}>
|
|
362
|
-
<
|
|
362
|
+
<ArrowLeft />
|
|
363
363
|
<span>{label}</span>
|
|
364
364
|
</div>
|
|
365
365
|
</Button>
|
|
@@ -19,7 +19,7 @@ import PropTypes from "prop-types";
|
|
|
19
19
|
import Logger from "../logging/canvas-logger.js";
|
|
20
20
|
import defaultMessages from "../../locales/common-canvas/locales/en.json";
|
|
21
21
|
import { injectIntl } from "react-intl";
|
|
22
|
-
import {
|
|
22
|
+
import { Locked, EditOff } from "@carbon/react/icons";
|
|
23
23
|
import { STATE_TAG_LOCKED, STATE_TAG_READ_ONLY, TIP_TYPE_STATE_TAG }
|
|
24
24
|
from "../common-canvas/constants/canvas-constants.js";
|
|
25
25
|
|
|
@@ -78,11 +78,11 @@ class CommonCanvasStateTag extends React.Component {
|
|
|
78
78
|
|
|
79
79
|
if (this.props.stateTagType === STATE_TAG_LOCKED) {
|
|
80
80
|
const label = this.getLabel("canvas.stateTagLocked");
|
|
81
|
-
stateTag = this.getStateTag(label, (<
|
|
81
|
+
stateTag = this.getStateTag(label, (<Locked />));
|
|
82
82
|
|
|
83
83
|
} else if (this.props.stateTagType === STATE_TAG_READ_ONLY) {
|
|
84
84
|
const label = this.getLabel("canvas.stateTagReadOnly");
|
|
85
|
-
stateTag = this.getStateTag(label, (<
|
|
85
|
+
stateTag = this.getStateTag(label, (<EditOff />));
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
return stateTag;
|
|
@@ -23,8 +23,8 @@ import defaultToolbarMessages from "../../locales/toolbar/locales/en.json";
|
|
|
23
23
|
import Toolbar from "../toolbar/toolbar.jsx";
|
|
24
24
|
import CanvasUtils from "../common-canvas/common-canvas-utils.js";
|
|
25
25
|
import Logger from "../logging/canvas-logger.js";
|
|
26
|
-
import {
|
|
27
|
-
|
|
26
|
+
import { Code, Link, ListBulleted, ListNumbered, TextIndentMore,
|
|
27
|
+
TextBold, TextItalic, TextScale, TextStrikethrough } from "@carbon/react/icons";
|
|
28
28
|
|
|
29
29
|
class CommonCanvasTextToolbar extends React.Component {
|
|
30
30
|
constructor(props) {
|
|
@@ -70,20 +70,20 @@ class CommonCanvasTextToolbar extends React.Component {
|
|
|
70
70
|
|
|
71
71
|
return {
|
|
72
72
|
leftBar: [
|
|
73
|
-
{ action: "headerStyle", tooltip: headerLabel, enable: true, subMenu: headerOptions, closeSubAreaOnClick: true, iconEnabled: (<
|
|
73
|
+
{ action: "headerStyle", tooltip: headerLabel, enable: true, subMenu: headerOptions, closeSubAreaOnClick: true, iconEnabled: (<TextScale size={32} />) },
|
|
74
74
|
{ divider: true },
|
|
75
|
-
{ action: "bold", label: boldLabel, enable: true, iconEnabled: (<
|
|
76
|
-
{ action: "italics", label: italicsLabel, enable: true, iconEnabled: (<
|
|
77
|
-
{ action: "strikethrough", label: strikethroughLabel, enable: true, iconEnabled: (<
|
|
75
|
+
{ action: "bold", label: boldLabel, enable: true, iconEnabled: (<TextBold size={32} />) },
|
|
76
|
+
{ action: "italics", label: italicsLabel, enable: true, iconEnabled: (<TextItalic size={32} />) },
|
|
77
|
+
{ action: "strikethrough", label: strikethroughLabel, enable: true, iconEnabled: (<TextStrikethrough size={32} />) },
|
|
78
78
|
{ divider: true },
|
|
79
|
-
{ action: "code", label: codeLabel, enable: true, iconEnabled: (<
|
|
79
|
+
{ action: "code", label: codeLabel, enable: true, iconEnabled: (<Code size={32} />) },
|
|
80
80
|
{ divider: true },
|
|
81
|
-
{ action: "link", label: linkLabel, enable: true, iconEnabled: (<
|
|
81
|
+
{ action: "link", label: linkLabel, enable: true, iconEnabled: (<Link size={32} />) },
|
|
82
82
|
{ divider: true },
|
|
83
|
-
{ action: "quote", label: quoteLabel, enable: true, iconEnabled: (<
|
|
83
|
+
{ action: "quote", label: quoteLabel, enable: true, iconEnabled: (<TextIndentMore size={32} />) },
|
|
84
84
|
{ divider: true },
|
|
85
|
-
{ action: "numberedList", label: numberedListLabel, enable: true, iconEnabled: (<
|
|
86
|
-
{ action: "bulletedList", label: bulletedListLabel, enable: true, iconEnabled: (<
|
|
85
|
+
{ action: "numberedList", label: numberedListLabel, enable: true, iconEnabled: (<ListNumbered size={32} />) },
|
|
86
|
+
{ action: "bulletedList", label: bulletedListLabel, enable: true, iconEnabled: (<ListBulleted size={32} />) }
|
|
87
87
|
]
|
|
88
88
|
};
|
|
89
89
|
}
|
|
@@ -14,10 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
@import "carbon-components/scss/globals/scss/_vars";
|
|
18
17
|
$toolbar-button-height: 41px; // Allow one extra pixel for the toolbar border
|
|
19
18
|
$panel-border-width: 1px;
|
|
20
|
-
$panel-border-color: $
|
|
19
|
+
$panel-border-color: $border-subtle-01;
|
|
21
20
|
|
|
22
21
|
/* Default layout for common-canvas components where the canvas appears below
|
|
23
22
|
* the toolbar and right-side flyout appears to the right of the toolbar and
|
|
@@ -63,7 +62,7 @@ $panel-border-color: $ui-03;
|
|
|
63
62
|
height: 100%;
|
|
64
63
|
position: relative;
|
|
65
64
|
user-select: none; /* Prevent elements from being selectable */
|
|
66
|
-
background-color: $
|
|
65
|
+
background-color: $layer-01;
|
|
67
66
|
}
|
|
68
67
|
|
|
69
68
|
.bottom-panel {
|
|
@@ -80,15 +79,15 @@ $panel-border-color: $ui-03;
|
|
|
80
79
|
cursor: row-resize;
|
|
81
80
|
flex: 0 0 2px;
|
|
82
81
|
border-top-width: 1px;
|
|
83
|
-
background: $
|
|
82
|
+
background: $layer-01;
|
|
84
83
|
transition: all 0.2s ease-in;
|
|
85
84
|
&:hover {
|
|
86
|
-
background: $
|
|
85
|
+
background: $button-tertiary;
|
|
87
86
|
}
|
|
88
87
|
}
|
|
89
88
|
|
|
90
89
|
.bottom-panel-contents {
|
|
91
|
-
background-color: $
|
|
90
|
+
background-color: $layer-01;
|
|
92
91
|
width: 100%;
|
|
93
92
|
user-select: none;
|
|
94
93
|
height: 100%;
|
|
@@ -101,13 +100,13 @@ $panel-border-color: $ui-03;
|
|
|
101
100
|
}
|
|
102
101
|
|
|
103
102
|
.common-canvas-toolbar {
|
|
104
|
-
border-bottom: $toolbar-divider-width solid $
|
|
103
|
+
border-bottom: $toolbar-divider-width solid $border-strong-01;
|
|
105
104
|
}
|
|
106
105
|
|
|
107
106
|
.text-toolbar {
|
|
108
107
|
.toolbar-div {
|
|
109
108
|
animation: raise-toolbar 0.3s linear;
|
|
110
|
-
border: 1px solid $
|
|
109
|
+
border: 1px solid $border-strong-01;
|
|
111
110
|
}
|
|
112
111
|
}
|
|
113
112
|
|
|
@@ -119,7 +118,7 @@ $panel-border-color: $ui-03;
|
|
|
119
118
|
.toolbar-overflow-item {
|
|
120
119
|
button:focus {
|
|
121
120
|
border-color: transparent;
|
|
122
|
-
box-shadow: inset 2px 2px $
|
|
121
|
+
box-shadow: inset 2px 2px $button-tertiary, inset -6px -2px $button-tertiary;
|
|
123
122
|
}
|
|
124
123
|
// Set padding so overflow icon appears in the center (horizontally). This
|
|
125
124
|
// offsets the 5px which are set in the code to make the overflow icon
|
|
@@ -212,7 +211,7 @@ $panel-border-color: $ui-03;
|
|
|
212
211
|
}
|
|
213
212
|
|
|
214
213
|
.empty-canvas-image {
|
|
215
|
-
color: $text-
|
|
214
|
+
color: $text-placeholder; // Picked up by fill attribute in the icon.
|
|
216
215
|
opacity: 0.75;
|
|
217
216
|
display: block;
|
|
218
217
|
text-align: center;
|
|
@@ -223,17 +222,17 @@ $panel-border-color: $ui-03;
|
|
|
223
222
|
}
|
|
224
223
|
|
|
225
224
|
.empty-canvas-text1 {
|
|
226
|
-
@include
|
|
225
|
+
@include type-style("productive-heading-03");
|
|
227
226
|
padding-top: $spacing-02;
|
|
228
|
-
color: $text-
|
|
227
|
+
color: $text-secondary;
|
|
229
228
|
display: block;
|
|
230
229
|
text-align: center;
|
|
231
230
|
}
|
|
232
231
|
|
|
233
232
|
.empty-canvas-text2 {
|
|
234
|
-
@include
|
|
233
|
+
@include type-style("body-short-02");
|
|
235
234
|
padding-top: $spacing-03;
|
|
236
|
-
color: $text-
|
|
235
|
+
color: $text-secondary;
|
|
237
236
|
display: block;
|
|
238
237
|
text-align: center;
|
|
239
238
|
}
|
|
@@ -244,15 +243,15 @@ $panel-border-color: $ui-03;
|
|
|
244
243
|
position: absolute;
|
|
245
244
|
left: 15px;
|
|
246
245
|
top: 15px;
|
|
247
|
-
background-color: $
|
|
246
|
+
background-color: $background;
|
|
248
247
|
& button {
|
|
249
|
-
background-color: $
|
|
248
|
+
background-color: $background;
|
|
250
249
|
padding-right: 20px;
|
|
251
250
|
}
|
|
252
251
|
& button:hover,
|
|
253
252
|
& button:focus {
|
|
254
|
-
background-color: $
|
|
255
|
-
color: $
|
|
253
|
+
background-color: $layer-accent-01;
|
|
254
|
+
color: $button-primary;
|
|
256
255
|
}
|
|
257
256
|
& .return-to-previous-content {
|
|
258
257
|
display: flex;
|
|
@@ -280,7 +279,7 @@ $panel-border-color: $ui-03;
|
|
|
280
279
|
cursor: default;
|
|
281
280
|
transform: translate(-50%, -50%);
|
|
282
281
|
pointer-events: all;
|
|
283
|
-
background-color: $
|
|
282
|
+
background-color: $background;
|
|
284
283
|
opacity: 0.75;
|
|
285
284
|
}
|
|
286
285
|
|
|
@@ -290,29 +289,29 @@ $panel-border-color: $ui-03;
|
|
|
290
289
|
left: 30px;
|
|
291
290
|
right: 30px;
|
|
292
291
|
bottom: 30px;
|
|
293
|
-
border-color: $
|
|
292
|
+
border-color: $border-strong-01;
|
|
294
293
|
border-style: dashed;
|
|
295
294
|
border-width: 2px;
|
|
296
295
|
}
|
|
297
296
|
|
|
298
297
|
.toolbar-item.notificationCounterIcon {
|
|
299
298
|
&.error .toolbar-icon .dot {
|
|
300
|
-
fill: $support-
|
|
299
|
+
fill: $support-error;
|
|
301
300
|
}
|
|
302
301
|
&.warning .toolbar-icon .dot {
|
|
303
|
-
fill: $support-
|
|
302
|
+
fill: $support-warning;
|
|
304
303
|
}
|
|
305
304
|
&.success .toolbar-icon .dot {
|
|
306
|
-
fill: $support-
|
|
305
|
+
fill: $support-success;
|
|
307
306
|
}
|
|
308
307
|
&.info .toolbar-icon .dot {
|
|
309
|
-
fill: $support-
|
|
308
|
+
fill: $support-info;
|
|
310
309
|
}
|
|
311
310
|
}
|
|
312
311
|
|
|
313
312
|
.state-tag {
|
|
314
|
-
@include
|
|
315
|
-
color: $inverse
|
|
313
|
+
@include type-style("productive-heading-01");
|
|
314
|
+
color: $text-inverse;
|
|
316
315
|
background-color: $background-inverse;
|
|
317
316
|
width: fit-content;
|
|
318
317
|
height: 40px;
|
|
@@ -325,7 +324,7 @@ $panel-border-color: $ui-03;
|
|
|
325
324
|
user-select: none; /* Prevent elements from being selectable */
|
|
326
325
|
|
|
327
326
|
svg {
|
|
328
|
-
color: $inverse
|
|
327
|
+
color: $text-inverse;
|
|
329
328
|
position: relative;
|
|
330
329
|
top: 3px;
|
|
331
330
|
margin-left: 14px;
|