@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
|
@@ -17,10 +17,11 @@
|
|
|
17
17
|
import React from "react";
|
|
18
18
|
import PropTypes from "prop-types";
|
|
19
19
|
import classNames from "classnames";
|
|
20
|
-
import { Tabs, Tab } from "carbon
|
|
20
|
+
import { Tabs, Tab, TabList, TabPanel, TabPanels } from "@carbon/react";
|
|
21
21
|
import { getDataId } from "./../../util/control-utils";
|
|
22
|
-
import { STATES } from "./../../constants/constants.js";
|
|
22
|
+
import { STATES, MESSAGE_KEYS } from "./../../constants/constants.js";
|
|
23
23
|
import { v4 as uuid4 } from "uuid";
|
|
24
|
+
import { formatMessage } from "./../../util/property-utils";
|
|
24
25
|
|
|
25
26
|
class Subtabs extends React.Component {
|
|
26
27
|
constructor(props) {
|
|
@@ -36,10 +37,12 @@ class Subtabs extends React.Component {
|
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
render() {
|
|
39
|
-
const
|
|
40
|
+
const subTabLists = [];
|
|
41
|
+
const subTabPanels = [];
|
|
40
42
|
let activeTab = 0;
|
|
41
43
|
let tabIdx = 0;
|
|
42
44
|
const className = this.props.className ? this.props.className : "";
|
|
45
|
+
const tabListAriaLabel = formatMessage(this.props.controller.getReactIntl(), MESSAGE_KEYS.SUBTABS_TABLIST_LABEL);
|
|
43
46
|
for (let i = 0; i < this.props.tabs.length; i++) {
|
|
44
47
|
const tab = this.props.tabs[i];
|
|
45
48
|
// TODO this might not work once we don't rerender on each change
|
|
@@ -50,21 +53,23 @@ class Subtabs extends React.Component {
|
|
|
50
53
|
activeTab = tabIdx;
|
|
51
54
|
}
|
|
52
55
|
|
|
53
|
-
|
|
56
|
+
subTabLists.push(
|
|
54
57
|
<Tab
|
|
55
|
-
id={`subtabs.tab.${i}-${this.uuid}`}
|
|
56
|
-
key={`subtabs.tab.${i}-${this.uuid}`}
|
|
57
58
|
disabled={panelState === STATES.DISABLED}
|
|
58
59
|
className={classNames("properties-subtab", { "properties-leftnav-subtab-item": this.props.leftnav })}
|
|
59
|
-
tabIndex={tabIdx}
|
|
60
|
-
label={tab.text}
|
|
61
60
|
title={tab.text}
|
|
62
61
|
onClick={this.onClick.bind(this, tab.group)}
|
|
63
62
|
data-id={getDataId({ name: tab.group })}
|
|
64
63
|
>
|
|
65
|
-
{
|
|
64
|
+
{tab.text}
|
|
66
65
|
</Tab>
|
|
67
66
|
);
|
|
67
|
+
|
|
68
|
+
subTabPanels.push(
|
|
69
|
+
<TabPanel className="properties-subtab-panel">
|
|
70
|
+
{subPanelItems}
|
|
71
|
+
</TabPanel>
|
|
72
|
+
);
|
|
68
73
|
tabIdx++;
|
|
69
74
|
}
|
|
70
75
|
}
|
|
@@ -78,12 +83,16 @@ class Subtabs extends React.Component {
|
|
|
78
83
|
className
|
|
79
84
|
)}
|
|
80
85
|
>
|
|
81
|
-
<Tabs
|
|
82
|
-
|
|
86
|
+
<Tabs
|
|
87
|
+
selectedIndex={activeTab}
|
|
83
88
|
light={this.props.controller.getLight()}
|
|
84
|
-
tabContentClassName="properties-subtab-panel"
|
|
85
89
|
>
|
|
86
|
-
{
|
|
90
|
+
<TabList className={classNames("properties-subtabs", { "properties-leftnav-subtabs": this.props.leftnav })} aria-label={tabListAriaLabel}>
|
|
91
|
+
{subTabLists}
|
|
92
|
+
</TabList>
|
|
93
|
+
<TabPanels>
|
|
94
|
+
{subTabPanels}
|
|
95
|
+
</TabPanels>
|
|
87
96
|
</Tabs>
|
|
88
97
|
</div>
|
|
89
98
|
);
|
|
@@ -15,7 +15,11 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
.properties-sub-tab-container {
|
|
18
|
-
.
|
|
18
|
+
.cds--tab--list {
|
|
19
|
+
width: inherit;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.cds--tab-content {
|
|
19
23
|
// override carbon padding
|
|
20
24
|
padding-left: 0;
|
|
21
25
|
padding-right: 0;
|
|
@@ -28,57 +32,54 @@ $selected-tab-width: 3px;
|
|
|
28
32
|
|
|
29
33
|
.properties-leftnav-container {
|
|
30
34
|
display: flex;
|
|
31
|
-
border-top: px solid $
|
|
35
|
+
border-top: px solid $layer-accent-01;
|
|
32
36
|
height: calc(100% + #{$parent-padding}); // Include padding from parent
|
|
33
37
|
margin-top: -$spacing-05;
|
|
34
38
|
margin-left: -$spacing-05;
|
|
35
39
|
margin-bottom: calc(-1 * #{$parent-padding});
|
|
36
40
|
|
|
41
|
+
// TODO: Height of this class will be fixed in issue https://github.ibm.com/NGP-TWC/wdp-abstract-canvas/issues/3699
|
|
37
42
|
.properties-leftnav-subtabs {
|
|
38
43
|
width: 282px;
|
|
39
|
-
background-color: $
|
|
40
|
-
border-right: 1px solid $
|
|
44
|
+
background-color: $layer-01;
|
|
45
|
+
border-right: 1px solid $layer-accent-01;
|
|
41
46
|
padding-top: $spacing-02;
|
|
42
47
|
height: 100%;
|
|
43
48
|
|
|
44
|
-
|
|
49
|
+
.cds--tab--list {
|
|
45
50
|
flex-direction: column;
|
|
46
51
|
width: 282px;
|
|
52
|
+
height: fit-content;
|
|
47
53
|
}
|
|
48
54
|
|
|
49
|
-
|
|
50
|
-
border-left: $selected-tab-width solid $interactive-04;
|
|
51
|
-
border-bottom: 0;
|
|
52
|
-
background-color: $selected-ui;
|
|
53
|
-
|
|
55
|
+
button.properties-leftnav-subtab-item {
|
|
54
56
|
&:hover {
|
|
55
|
-
|
|
57
|
+
border-bottom: 0;
|
|
56
58
|
}
|
|
57
59
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
60
|
+
border-left: $selected-tab-width solid transparent;
|
|
61
|
+
border-bottom: 0;
|
|
62
|
+
transition: none; // Prevent border/outline from flickering
|
|
62
63
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
border-bottom: 0;
|
|
66
|
-
}
|
|
67
|
-
button {
|
|
68
|
-
border-left: $selected-tab-width solid transparent;
|
|
64
|
+
&:focus, &:active {
|
|
65
|
+
outline: 0;
|
|
69
66
|
border-bottom: 0;
|
|
70
67
|
transition: none; // Prevent border/outline from flickering
|
|
68
|
+
}
|
|
69
|
+
}
|
|
71
70
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
71
|
+
button.cds--tabs__nav-item--selected {
|
|
72
|
+
border-left: $selected-tab-width solid $border-interactive;
|
|
73
|
+
border-bottom: 0;
|
|
74
|
+
background-color: $layer-selected-01;
|
|
75
|
+
|
|
76
|
+
&:hover {
|
|
77
|
+
background-color: $layer-hover-01;
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
80
|
}
|
|
80
81
|
|
|
81
|
-
div.
|
|
82
|
+
div.cds--tab-content {
|
|
82
83
|
width: 100%;
|
|
83
84
|
padding: $spacing-05; // Override padding set by subtab
|
|
84
85
|
}
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
import React from "react";
|
|
19
19
|
import PropTypes from "prop-types";
|
|
20
20
|
import { connect } from "react-redux";
|
|
21
|
-
import { Button } from "carbon
|
|
22
|
-
import {
|
|
21
|
+
import { Button } from "@carbon/react";
|
|
22
|
+
import { Add } from "@carbon/react/icons";
|
|
23
23
|
import WideFlyout from "./../../components/wide-flyout";
|
|
24
24
|
import Icon from "./../../../icons/icon.jsx";
|
|
25
25
|
|
|
@@ -281,9 +281,9 @@ class SummaryPanel extends React.Component {
|
|
|
281
281
|
<Button
|
|
282
282
|
className="properties-summary-link-button"
|
|
283
283
|
onClick={this.handleLinkClicked}
|
|
284
|
-
size="
|
|
284
|
+
size="sm"
|
|
285
285
|
kind="ghost"
|
|
286
|
-
renderIcon={
|
|
286
|
+
renderIcon={Add}
|
|
287
287
|
>
|
|
288
288
|
{this.props.panel.label}
|
|
289
289
|
</Button>
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.properties-summary-values {
|
|
36
|
-
border-top: 1px solid $
|
|
36
|
+
border-top: 1px solid $layer-accent-01;
|
|
37
37
|
padding: $spacing-05 0;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.properties-summary-table {
|
|
41
|
-
@include
|
|
42
|
-
color: $text-
|
|
41
|
+
@include type-style("body-short-01");
|
|
42
|
+
color: $text-primary;
|
|
43
43
|
max-height: 270px;
|
|
44
44
|
width: 100%;
|
|
45
45
|
display: flex;
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.properties-summary-label {
|
|
54
|
-
@include
|
|
55
|
-
color: $text-
|
|
54
|
+
@include type-style("productive-heading-01");
|
|
55
|
+
color: $text-primary;
|
|
56
56
|
margin-bottom: $spacing-05;
|
|
57
57
|
}
|
|
58
58
|
|
|
@@ -19,7 +19,7 @@ import PropTypes from "prop-types";
|
|
|
19
19
|
import { injectIntl } from "react-intl";
|
|
20
20
|
import classNames from "classnames";
|
|
21
21
|
import { formatMessage } from "./../../util/property-utils";
|
|
22
|
-
import { ComposedModal, ModalHeader, ModalBody } from "carbon
|
|
22
|
+
import { ComposedModal, ModalHeader, ModalBody } from "@carbon/react";
|
|
23
23
|
import { Portal } from "react-portal";
|
|
24
24
|
import { MESSAGE_KEYS } from "./../../constants/constants";
|
|
25
25
|
import PropertiesButtons from "../../components/properties-buttons";
|
|
@@ -16,63 +16,63 @@
|
|
|
16
16
|
|
|
17
17
|
$properties-buttons-height: $spacing-10;
|
|
18
18
|
|
|
19
|
-
.properties-tearsheet-panel.properties-tearsheet-stacked.
|
|
20
|
-
.
|
|
19
|
+
.properties-tearsheet-panel.properties-tearsheet-stacked.cds--modal {
|
|
20
|
+
.cds--modal-container {
|
|
21
21
|
max-height: calc(100% - 104px);
|
|
22
22
|
width: calc(100% - 96px);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.properties-tearsheet-panel.
|
|
26
|
+
.properties-tearsheet-panel.cds--modal {
|
|
27
27
|
align-items: flex-end;
|
|
28
28
|
&.is-visible {
|
|
29
|
-
.
|
|
29
|
+
.cds--modal-container {
|
|
30
30
|
transform: translate3d(0, 0, 0);
|
|
31
31
|
transition: transform 240ms cubic-bezier(0, 0, 0.3, 1);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.cds--modal-container {
|
|
35
35
|
max-height: calc(100% - 88px);
|
|
36
36
|
height: 100%;
|
|
37
37
|
width: calc(100% - 128px);
|
|
38
38
|
transform: translate3d(0, 500px, 0);
|
|
39
39
|
transition: transform 240ms cubic-bezier(0, 0, 0.3, 1);
|
|
40
|
-
background-color: $
|
|
40
|
+
background-color: $background;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
// Start:: These styles are to display only parameters in a Tearsheet
|
|
44
44
|
.properties-tearsheet-header {
|
|
45
45
|
padding: $spacing-06 $spacing-07;
|
|
46
|
-
border-bottom: 1px solid $
|
|
46
|
+
border-bottom: 1px solid $layer-accent-01;
|
|
47
47
|
margin-bottom: 0;
|
|
48
48
|
h3 {
|
|
49
|
-
@include
|
|
49
|
+
@include type-style("productive-heading-04");
|
|
50
50
|
}
|
|
51
51
|
p {
|
|
52
52
|
margin-top: $spacing-03;
|
|
53
|
-
@include
|
|
53
|
+
@include type-style("body-short-01");
|
|
54
54
|
}
|
|
55
|
-
background-color: $
|
|
55
|
+
background-color: $layer-01;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
.properties-tearsheet-body {
|
|
59
59
|
padding: $spacing-06 $spacing-07;
|
|
60
60
|
margin-bottom: 0;
|
|
61
|
-
.
|
|
62
|
-
background-color: $
|
|
61
|
+
.cds--multi-select, .cds--dropdown, .cds--number input[type=number], .cds--text-input, .cds--text-area, .cds--date-picker__input { // override carbon's modal
|
|
62
|
+
background-color: $layer-01;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
// End:: These styles are to display only parameters in a Tearsheet
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
// These styles are to display editor-form in a Tearsheet
|
|
69
|
-
.properties-tearsheet-panel.
|
|
69
|
+
.properties-tearsheet-panel.cds--modal {
|
|
70
70
|
.properties-tearsheet-header.with-tabs {
|
|
71
71
|
border-bottom: 0;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
.properties-tearsheet-header.hide-close-button {
|
|
75
|
-
button.
|
|
75
|
+
button.cds--modal-close {
|
|
76
76
|
display: none;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
@@ -86,8 +86,8 @@ $properties-buttons-height: $spacing-10;
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
.properties-primaryTabs {
|
|
89
|
-
background-color: $
|
|
90
|
-
border-bottom: 1px solid $
|
|
89
|
+
background-color: $layer-01;
|
|
90
|
+
border-bottom: 1px solid $layer-accent-01;
|
|
91
91
|
margin-bottom: $spacing-05;
|
|
92
92
|
padding-left: $spacing-05;
|
|
93
93
|
}
|
|
@@ -96,7 +96,7 @@ $properties-buttons-height: $spacing-10;
|
|
|
96
96
|
|
|
97
97
|
.properties-tearsheet-body.with-buttons {
|
|
98
98
|
height: calc(100% - #{$properties-buttons-height});
|
|
99
|
-
border-bottom: 1px solid $
|
|
99
|
+
border-bottom: 1px solid $layer-accent-01;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
.properties-tearsheet-body.with-tabs {
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
|
|
17
17
|
.properties-text-panel {
|
|
18
18
|
.panel-label {
|
|
19
|
-
@include
|
|
20
|
-
color: $text-
|
|
19
|
+
@include type-style("productive-heading-01");
|
|
20
|
+
color: $text-primary;
|
|
21
21
|
padding-bottom: $spacing-03;
|
|
22
22
|
}
|
|
23
23
|
.panel-description {
|
|
24
|
-
@include
|
|
25
|
-
color: $text-
|
|
24
|
+
@include type-style("body-short-01");
|
|
25
|
+
color: $text-primary;
|
|
26
26
|
padding-bottom: $spacing-05;
|
|
27
27
|
}
|
|
28
28
|
.tooltip-container {
|
|
@@ -18,7 +18,7 @@ import React from "react";
|
|
|
18
18
|
import PropTypes from "prop-types";
|
|
19
19
|
import { connect } from "react-redux";
|
|
20
20
|
import classNames from "classnames";
|
|
21
|
-
import { Accordion, AccordionItem } from "carbon
|
|
21
|
+
import { Accordion, AccordionItem } from "@carbon/react";
|
|
22
22
|
import * as ControlUtils from "./../../util/control-utils";
|
|
23
23
|
import { STATES } from "./../../constants/constants.js";
|
|
24
24
|
|
|
@@ -18,14 +18,17 @@
|
|
|
18
18
|
&.hide {
|
|
19
19
|
display: none;
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.cds--accordion__item {
|
|
22
22
|
border-top: 0;
|
|
23
23
|
margin: 0 -1rem; // Remove 16px outer padding for accordion title and content
|
|
24
24
|
}
|
|
25
|
-
.
|
|
25
|
+
.cds--accordion__item--active .cds--accordion__content {
|
|
26
26
|
// 24px padding between accordion title and content (issue #3106)
|
|
27
27
|
padding: $spacing-06 $spacing-05 $spacing-05;
|
|
28
28
|
}
|
|
29
|
+
.cds--accordion__wrapper {
|
|
30
|
+
padding: 0;
|
|
31
|
+
}
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
.properties-twisty-panel + .properties-control-panel {
|
|
@@ -30,7 +30,7 @@ import { Size } from "./../constants/form-constants";
|
|
|
30
30
|
import { validateParameterDefAgainstSchema } from "../schema-validator/properties-schema-validator.js";
|
|
31
31
|
import { has, isEqual, omit, pick, cloneDeep } from "lodash";
|
|
32
32
|
import Icon from "./../../icons/icon.jsx";
|
|
33
|
-
import { Button } from "carbon
|
|
33
|
+
import { Button } from "@carbon/react";
|
|
34
34
|
import { Provider } from "react-redux";
|
|
35
35
|
import logger from "../../../utils/logger";
|
|
36
36
|
import TitleEditor from "./../components/title-editor";
|
|
@@ -23,7 +23,7 @@ $properties-modal-buttons-height: $spacing-10;
|
|
|
23
23
|
width: 0;
|
|
24
24
|
height: 100%;
|
|
25
25
|
overflow: hidden;
|
|
26
|
-
border-left: 1px solid $
|
|
26
|
+
border-left: 1px solid $layer-accent-01;
|
|
27
27
|
outline: none;
|
|
28
28
|
&.properties-small {
|
|
29
29
|
width: $common-properties-small-flyout-width;
|
|
@@ -44,7 +44,7 @@ $properties-modal-buttons-height: $spacing-10;
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
.properties-btn-resize {
|
|
47
|
-
transition: visibility $duration
|
|
47
|
+
transition: visibility $duration-moderate-01, opacity $duration-moderate-01;
|
|
48
48
|
opacity: 0;
|
|
49
49
|
visibility: hidden;
|
|
50
50
|
position: absolute;
|
|
@@ -53,15 +53,15 @@ $properties-modal-buttons-height: $spacing-10;
|
|
|
53
53
|
z-index: 1; // needs to sit on top of common-properties div
|
|
54
54
|
min-height: 24px;
|
|
55
55
|
min-width: 24px;
|
|
56
|
-
background-color: $
|
|
57
|
-
border: 1px $
|
|
56
|
+
background-color: $layer-01;
|
|
57
|
+
border: 1px $border-strong-01 solid;
|
|
58
58
|
padding: 2px;
|
|
59
59
|
justify-content: center;
|
|
60
60
|
&:hover {
|
|
61
|
-
background-color: $
|
|
61
|
+
background-color: $layer-accent-01;
|
|
62
62
|
}
|
|
63
63
|
svg {
|
|
64
|
-
fill: $icon-
|
|
64
|
+
fill: $icon-primary;
|
|
65
65
|
width: 16px;
|
|
66
66
|
height: 16px;
|
|
67
67
|
}
|
|
@@ -86,9 +86,9 @@ $properties-modal-buttons-height: $spacing-10;
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
.properties-light-enabled {
|
|
89
|
-
background-color: $
|
|
89
|
+
background-color: $layer-01; // Override theme background-color when light option is true
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.properties-light-disabled {
|
|
93
|
-
background-color: $
|
|
93
|
+
background-color: $background;
|
|
94
94
|
}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
import React from "react";
|
|
19
19
|
import PropTypes from "prop-types";
|
|
20
|
-
import {
|
|
20
|
+
import { ChevronRight } from "@carbon/react/icons";
|
|
21
21
|
import ColorPicker from "../color-picker";
|
|
22
22
|
|
|
23
23
|
// context-menu sizing
|
|
@@ -206,7 +206,7 @@ class CommonContextMenu extends React.Component {
|
|
|
206
206
|
const subMenuPosStyle = this.buildSubMenuPosStyle(runningYPos, menuPos, subMenuSize, canvasRect, rtl);
|
|
207
207
|
const menuItem = menuDefinition[index];
|
|
208
208
|
|
|
209
|
-
const icon = (<
|
|
209
|
+
const icon = (<ChevronRight />);
|
|
210
210
|
const menuItemContent = <div>{menuItem.label}{icon} </div>;
|
|
211
211
|
const menuItemClass = "context-menu-item " + (disabled ? " disabled" : "");
|
|
212
212
|
const subMenuClass = "context-menu-popover context-menu-submenu" +
|
|
@@ -15,12 +15,11 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
/* Context Menu styles - used by react-contextmenu module */
|
|
18
|
-
@import "carbon-components/scss/globals/scss/typography";
|
|
19
18
|
|
|
20
19
|
.context-menu-popover {
|
|
21
20
|
cursor: pointer;
|
|
22
21
|
min-width: 160px;
|
|
23
|
-
background-color: $
|
|
22
|
+
background-color: $layer-01;
|
|
24
23
|
-webkit-background-clip: padding-box;
|
|
25
24
|
background-clip: padding-box;
|
|
26
25
|
border: 0;
|
|
@@ -47,7 +46,7 @@
|
|
|
47
46
|
height: 30px;
|
|
48
47
|
padding: 0 1em;
|
|
49
48
|
clear: both;
|
|
50
|
-
color: $text-
|
|
49
|
+
color: $text-primary;
|
|
51
50
|
text-align: inherit;
|
|
52
51
|
white-space: nowrap;
|
|
53
52
|
background: 0 0;
|
|
@@ -64,7 +63,7 @@
|
|
|
64
63
|
&:active,
|
|
65
64
|
&:focus,
|
|
66
65
|
&:hover {
|
|
67
|
-
background: $hover-
|
|
66
|
+
background: $layer-hover-01;
|
|
68
67
|
text-decoration: none;
|
|
69
68
|
border: 0;
|
|
70
69
|
outline: none; /* Suppress Chrome's blue active border */
|
|
@@ -72,7 +71,7 @@
|
|
|
72
71
|
|
|
73
72
|
/* Style for the chevron '>' in menu item that opens a submenu. */
|
|
74
73
|
& svg {
|
|
75
|
-
color: $text-
|
|
74
|
+
color: $text-primary;
|
|
76
75
|
position: absolute;
|
|
77
76
|
right: 12px;
|
|
78
77
|
}
|
|
@@ -82,6 +81,6 @@
|
|
|
82
81
|
height: 1px;
|
|
83
82
|
display: block;
|
|
84
83
|
overflow: hidden;
|
|
85
|
-
background-color: $
|
|
84
|
+
background-color: $layer-accent-01;
|
|
86
85
|
padding: 0;
|
|
87
86
|
}
|
package/src/icons/icon.jsx
CHANGED
|
@@ -23,15 +23,15 @@ import Double from "./../../assets/images/double.svg";
|
|
|
23
23
|
import Integer from "./../../assets/images/integer.svg";
|
|
24
24
|
import StringIcon from "./../../assets/images/string.svg";
|
|
25
25
|
|
|
26
|
-
import {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
import { WarningFilled, ErrorFilled, CheckmarkFilled, InformationFilled, Information,
|
|
27
|
+
ChevronDown, ChevronUp, ChevronLeft, ChevronRight,
|
|
28
|
+
AddAlt,
|
|
29
|
+
Settings,
|
|
30
|
+
Search,
|
|
31
|
+
Warning,
|
|
32
|
+
Edit,
|
|
33
|
+
CircleDash, RulerAlt, ListNumbered, ListBulleted, Flag, ChartVennDiagram,
|
|
34
|
+
Calendar, Time, EventSchedule } from "@carbon/react/icons";
|
|
35
35
|
|
|
36
36
|
import { ERROR, WARNING, INFO, SUCCESS, CANVAS_CARBON_ICONS, CONTEXT_MENU_CARBON_ICONS } from "../common-canvas/constants/canvas-constants";
|
|
37
37
|
import { CONDITION_MESSAGE_TYPE, CARBON_ICONS, DATA_TYPE } from "../common-properties/constants/constants";
|
|
@@ -54,61 +54,61 @@ export default class Icon extends React.Component {
|
|
|
54
54
|
switch (type) {
|
|
55
55
|
case (ERROR):
|
|
56
56
|
case (CONDITION_MESSAGE_TYPE.ERROR):
|
|
57
|
-
return <
|
|
57
|
+
return <ErrorFilled className={classNames("canvas-state-icon-error", className)} disabled={this.props.disabled} />;
|
|
58
58
|
case (WARNING):
|
|
59
59
|
case (CONDITION_MESSAGE_TYPE.WARNING):
|
|
60
|
-
return <
|
|
60
|
+
return <WarningFilled className={classNames("canvas-state-icon-warning", className)} disabled={this.props.disabled} />;
|
|
61
61
|
case (SUCCESS):
|
|
62
62
|
case (CONDITION_MESSAGE_TYPE.SUCCESS):
|
|
63
|
-
return <
|
|
63
|
+
return <CheckmarkFilled className={classNames("canvas-state-icon-success", className)} disabled={this.props.disabled} />;
|
|
64
64
|
case (CONDITION_MESSAGE_TYPE.INFO):
|
|
65
|
-
return <
|
|
65
|
+
return <InformationFilled className={classNames("canvas-state-icon-info", className)} disabled={this.props.disabled} />;
|
|
66
66
|
|
|
67
67
|
case (INFO):
|
|
68
68
|
case (CARBON_ICONS.INFORMATION):
|
|
69
|
-
return <
|
|
69
|
+
return <Information className={classNames("canvas-state-icon-information-hollow", className)} disabled={this.props.disabled} />;
|
|
70
70
|
case (CARBON_ICONS.CHEVRONARROWS.UP):
|
|
71
|
-
return <
|
|
71
|
+
return <ChevronUp className={className} disabled={this.props.disabled} />;
|
|
72
72
|
case (CARBON_ICONS.CHEVRONARROWS.DOWN):
|
|
73
|
-
return <
|
|
73
|
+
return <ChevronDown className={className} disabled={this.props.disabled} />;
|
|
74
74
|
case (CARBON_ICONS.CHEVRONARROWS.LEFT):
|
|
75
|
-
return <
|
|
75
|
+
return <ChevronLeft className={className} disabled={this.props.disabled} />;
|
|
76
76
|
case (CARBON_ICONS.CHEVRONARROWS.RIGHT):
|
|
77
|
-
return <
|
|
77
|
+
return <ChevronRight className={className} disabled={this.props.disabled} />;
|
|
78
78
|
case (CARBON_ICONS.ADD):
|
|
79
|
-
return <
|
|
79
|
+
return <AddAlt className={className} disabled={this.props.disabled} />;
|
|
80
80
|
case (CARBON_ICONS.SETTINGS):
|
|
81
|
-
return <
|
|
81
|
+
return <Settings className={className} disabled={this.props.disabled} />;
|
|
82
82
|
case (CARBON_ICONS.EDIT):
|
|
83
|
-
return <
|
|
83
|
+
return <Edit className={className} disabled={this.props.disabled} />;
|
|
84
84
|
|
|
85
85
|
case (CANVAS_CARBON_ICONS.SEARCH):
|
|
86
|
-
return <
|
|
86
|
+
return <Search className={className} disabled={this.props.disabled} />;
|
|
87
87
|
case (CANVAS_CARBON_ICONS.WARNING_UNFILLED):
|
|
88
|
-
return <
|
|
88
|
+
return <Warning className={className} disabled={this.props.disabled} />;
|
|
89
89
|
|
|
90
90
|
case (CONTEXT_MENU_CARBON_ICONS.CHEVRONARROWS.RIGHT):
|
|
91
|
-
return <
|
|
91
|
+
return <ChevronRight className={className} disabled={this.props.disabled} />;
|
|
92
92
|
|
|
93
93
|
case (CARBON_ICONS.MEASUREMENTS.EMPTY):
|
|
94
|
-
return <
|
|
94
|
+
return <CircleDash className={className} disabled={this.props.disabled} />;
|
|
95
95
|
case (CARBON_ICONS.MEASUREMENTS.SCALE):
|
|
96
|
-
return <
|
|
96
|
+
return <RulerAlt className={className} disabled={this.props.disabled} />;
|
|
97
97
|
case (CARBON_ICONS.MEASUREMENTS.ORDINAL):
|
|
98
|
-
return <
|
|
98
|
+
return <ListNumbered className={className} disabled={this.props.disabled} />;
|
|
99
99
|
case (CARBON_ICONS.MEASUREMENTS.NOMINAL):
|
|
100
|
-
return <
|
|
100
|
+
return <ListBulleted className={className} disabled={this.props.disabled} />;
|
|
101
101
|
case (CARBON_ICONS.MEASUREMENTS.FLAG):
|
|
102
|
-
return <
|
|
102
|
+
return <Flag className={className} disabled={this.props.disabled} />;
|
|
103
103
|
case (CARBON_ICONS.MEASUREMENTS.DISCRETE):
|
|
104
|
-
return <
|
|
104
|
+
return <ChartVennDiagram className={className} disabled={this.props.disabled} />;
|
|
105
105
|
|
|
106
106
|
case (DATA_TYPE.DATE):
|
|
107
|
-
return <
|
|
107
|
+
return <Calendar className={className} disabled={this.props.disabled} />;
|
|
108
108
|
case (DATA_TYPE.TIME):
|
|
109
|
-
return <
|
|
109
|
+
return <Time className={className} disabled={this.props.disabled} />;
|
|
110
110
|
case (DATA_TYPE.TIMESTAMP):
|
|
111
|
-
return <
|
|
111
|
+
return <EventSchedule className={className} disabled={this.props.disabled} />;
|
|
112
112
|
|
|
113
113
|
default: return null;
|
|
114
114
|
}
|