@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
|
@@ -23,11 +23,11 @@ import TruncatedContentTooltip from "./../truncated-content-tooltip";
|
|
|
23
23
|
import PropertiesButtons from "./../properties-buttons";
|
|
24
24
|
import * as PropertyUtils from "./../../util/property-utils";
|
|
25
25
|
|
|
26
|
-
import { Button } from "carbon
|
|
26
|
+
import { Button } from "@carbon/react";
|
|
27
27
|
|
|
28
28
|
import { MESSAGE_KEYS, DATA_TYPE, SORT_DIRECTION, ROW_SELECTION } from "./../../constants/constants";
|
|
29
29
|
import Icon from "./../../../icons/icon.jsx";
|
|
30
|
-
import {
|
|
30
|
+
import { Reset } from "@carbon/react/icons";
|
|
31
31
|
|
|
32
32
|
import { has, isEmpty, sortBy, isEqual } from "lodash";
|
|
33
33
|
|
|
@@ -315,6 +315,7 @@ export default class FieldPicker extends React.Component {
|
|
|
315
315
|
_genResetButton() {
|
|
316
316
|
const resetLabel = PropertyUtils.formatMessage(this.props.controller.getReactIntl(),
|
|
317
317
|
MESSAGE_KEYS.FIELDPICKER_RESETBUTTON_LABEL);
|
|
318
|
+
const Reset24 = React.forwardRef((props, ref) => <Reset ref={ref} size={24} {...props} />);
|
|
318
319
|
const defaultSelections = this.props.currentFields;
|
|
319
320
|
const selectedFields = this.state.selectedFields;
|
|
320
321
|
const isSelectionEqual = defaultSelections.length === selectedFields.length && defaultSelections.every((field) => selectedFields.indexOf(field) > -1);
|
|
@@ -325,7 +326,7 @@ export default class FieldPicker extends React.Component {
|
|
|
325
326
|
onClick={this.handleReset}
|
|
326
327
|
renderIcon={Reset24}
|
|
327
328
|
iconDescription={resetLabel}
|
|
328
|
-
size="
|
|
329
|
+
size="sm"
|
|
329
330
|
kind="ghost"
|
|
330
331
|
>
|
|
331
332
|
<span>{resetLabel}</span>
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
margin: $spacing-01;
|
|
70
70
|
|
|
71
71
|
&[disabled] {
|
|
72
|
-
fill: $disabled
|
|
72
|
+
fill: $button-disabled;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
}
|
|
@@ -110,9 +110,9 @@
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
// This is for field-picker in tearsheet, containerType="Tearsheet"
|
|
113
|
-
.properties-tearsheet-panel.
|
|
113
|
+
.properties-tearsheet-panel.cds--modal {
|
|
114
114
|
.properties-fp-table {
|
|
115
|
-
border-top: 1px solid $
|
|
115
|
+
border-top: 1px solid $layer-accent-01;
|
|
116
116
|
padding: $spacing-05;
|
|
117
117
|
|
|
118
118
|
.properties-fp-top-row {
|
|
@@ -20,7 +20,7 @@ import React from "react";
|
|
|
20
20
|
import { injectIntl } from "react-intl";
|
|
21
21
|
import ReactDOM from "react-dom";
|
|
22
22
|
import PropTypes from "prop-types";
|
|
23
|
-
import { Search } from "carbon
|
|
23
|
+
import { Search, Layer } from "@carbon/react";
|
|
24
24
|
import VirtualizedTable from "./../virtualized-table/virtualized-table.jsx";
|
|
25
25
|
import { REM_ROW_HEIGHT, REM_HEADER_HEIGHT, ONE_REM_HEIGHT, SORT_DIRECTION, STATES, ROW_HEIGHT, ROW_SELECTION } from "./../../constants/constants";
|
|
26
26
|
import ReactResizeDetector from "react-resize-detector";
|
|
@@ -494,15 +494,16 @@ class FlexibleTable extends React.Component {
|
|
|
494
494
|
|
|
495
495
|
searchBar = (
|
|
496
496
|
<div className={classNames("properties-ft-search-container", { "disabled": disabled })}>
|
|
497
|
-
<
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
497
|
+
<Layer level={this.props.light ? 1 : 0}>
|
|
498
|
+
<Search
|
|
499
|
+
className="properties-ft-search-text"
|
|
500
|
+
placeholder={placeHolder}
|
|
501
|
+
onChange={this.handleFilterChange}
|
|
502
|
+
disabled={disabled}
|
|
503
|
+
size="sm"
|
|
504
|
+
labelText={searchBarLabel}
|
|
505
|
+
/>
|
|
506
|
+
</Layer>
|
|
506
507
|
</div>
|
|
507
508
|
);
|
|
508
509
|
}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
|
|
16
17
|
$flexible-table-header-row-height: $spacing-07;
|
|
17
18
|
$row-left-padding: $spacing-02;
|
|
18
19
|
|
|
@@ -27,7 +28,7 @@ $row-left-padding: $spacing-02;
|
|
|
27
28
|
|
|
28
29
|
.properties-ft-search-text {
|
|
29
30
|
svg {
|
|
30
|
-
fill: $icon-
|
|
31
|
+
fill: $icon-primary;
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
34
|
&.disabled {
|
|
@@ -50,10 +51,10 @@ $row-left-padding: $spacing-02;
|
|
|
50
51
|
position: relative;
|
|
51
52
|
overflow: hidden;
|
|
52
53
|
&.error {
|
|
53
|
-
border: 1px solid $support-
|
|
54
|
+
border: 1px solid $support-error;
|
|
54
55
|
}
|
|
55
56
|
&.warning {
|
|
56
|
-
border: 1px solid $support-
|
|
57
|
+
border: 1px solid $support-warning;
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
|
|
@@ -64,7 +65,7 @@ $row-left-padding: $spacing-02;
|
|
|
64
65
|
width: 100%;
|
|
65
66
|
overflow-y: auto;
|
|
66
67
|
overflow-x: hidden;
|
|
67
|
-
background-color: $
|
|
68
|
+
background-color: $layer-01;
|
|
68
69
|
display: flex; // address scrollbar with mouse issue
|
|
69
70
|
flex-direction: column; // address scrollbar with mouse issue
|
|
70
71
|
}
|
|
@@ -72,7 +73,7 @@ $row-left-padding: $spacing-02;
|
|
|
72
73
|
.properties-ft-container-absolute {
|
|
73
74
|
height: 100%;
|
|
74
75
|
width: 100%;
|
|
75
|
-
background-color: $
|
|
76
|
+
background-color: $layer-01;
|
|
76
77
|
.properties-ft-container {
|
|
77
78
|
height: 100%;
|
|
78
79
|
}
|
|
@@ -126,17 +127,17 @@ $row-left-padding: $spacing-02;
|
|
|
126
127
|
justify-content: center;
|
|
127
128
|
align-items: center;
|
|
128
129
|
padding: 0 $spacing-05;
|
|
129
|
-
@include
|
|
130
|
+
@include type-style("body-long-01");
|
|
130
131
|
}
|
|
131
132
|
|
|
132
133
|
.properties-light-enabled {
|
|
133
134
|
.properties-ft-empty-table {
|
|
134
|
-
background-color: $
|
|
135
|
+
background-color: $background;
|
|
135
136
|
}
|
|
136
137
|
}
|
|
137
138
|
|
|
138
139
|
.properties-light-disabled {
|
|
139
140
|
.properties-ft-empty-table {
|
|
140
|
-
background-color: $
|
|
141
|
+
background-color: $layer-01;
|
|
141
142
|
}
|
|
142
143
|
}
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
import React from "react";
|
|
18
18
|
import PropTypes from "prop-types";
|
|
19
19
|
import { connect } from "react-redux";
|
|
20
|
-
import { Button } from "carbon
|
|
20
|
+
import { Button } from "@carbon/react";
|
|
21
21
|
import { formatMessage } from "./../../util/property-utils";
|
|
22
|
-
import {
|
|
22
|
+
import { ArrowUp, ArrowDown, UpToTop, DownToBottom } from "@carbon/react/icons";
|
|
23
23
|
import classNames from "classnames";
|
|
24
24
|
import EmptyTable from "./../empty-table";
|
|
25
25
|
import { MESSAGE_KEYS } from "./../../constants/constants";
|
|
@@ -105,6 +105,8 @@ class MoveableTableRows extends React.Component {
|
|
|
105
105
|
|
|
106
106
|
const topLabel = formatMessage(this.props.controller.getReactIntl(), MESSAGE_KEYS.MOVEABLE_TABLE_BUTTON_TOP_DESCRIPTION);
|
|
107
107
|
const upLabel = formatMessage(this.props.controller.getReactIntl(), MESSAGE_KEYS.MOVEABLE_TABLE_BUTTON_UP_DESCRIPTION);
|
|
108
|
+
const UpToTop24 = React.forwardRef((props, ref) => <UpToTop ref={ref} size={24} {...props} />);
|
|
109
|
+
const ArrowUp24 = React.forwardRef((props, ref) => <ArrowUp ref={ref} size={24} {...props} />);
|
|
108
110
|
const topImages = (
|
|
109
111
|
<div key="topImages">
|
|
110
112
|
<Button
|
|
@@ -115,6 +117,7 @@ class MoveableTableRows extends React.Component {
|
|
|
115
117
|
renderIcon={UpToTop24}
|
|
116
118
|
iconDescription={topLabel}
|
|
117
119
|
tooltipPosition="left"
|
|
120
|
+
size="sm"
|
|
118
121
|
hasIconOnly
|
|
119
122
|
/>
|
|
120
123
|
<Button
|
|
@@ -125,12 +128,15 @@ class MoveableTableRows extends React.Component {
|
|
|
125
128
|
renderIcon={ArrowUp24}
|
|
126
129
|
iconDescription={upLabel}
|
|
127
130
|
tooltipPosition="left"
|
|
131
|
+
size="sm"
|
|
128
132
|
hasIconOnly
|
|
129
133
|
/>
|
|
130
134
|
</div>
|
|
131
135
|
);
|
|
132
136
|
const bottomLabel = formatMessage(this.props.controller.getReactIntl(), MESSAGE_KEYS.MOVEABLE_TABLE_BUTTON_DOWN_DESCRIPTION);
|
|
133
137
|
const downLabel = formatMessage(this.props.controller.getReactIntl(), MESSAGE_KEYS.MOVEABLE_TABLE_BUTTON_BOTTOM_DESCRIPTION);
|
|
138
|
+
const ArrowDown24 = React.forwardRef((props, ref) => <ArrowDown ref={ref} size={24} {...props} />);
|
|
139
|
+
const DownToBottom24 = React.forwardRef((props, ref) => <DownToBottom ref={ref} size={24} {...props} />);
|
|
134
140
|
const bottomImages = (
|
|
135
141
|
<div key="bottomImages">
|
|
136
142
|
<Button
|
|
@@ -141,6 +147,7 @@ class MoveableTableRows extends React.Component {
|
|
|
141
147
|
renderIcon={ArrowDown24}
|
|
142
148
|
iconDescription={bottomLabel}
|
|
143
149
|
tooltipPosition="left"
|
|
150
|
+
size="sm"
|
|
144
151
|
hasIconOnly
|
|
145
152
|
/>
|
|
146
153
|
<Button
|
|
@@ -151,6 +158,7 @@ class MoveableTableRows extends React.Component {
|
|
|
151
158
|
renderIcon={DownToBottom24}
|
|
152
159
|
iconDescription={downLabel}
|
|
153
160
|
tooltipPosition="left"
|
|
161
|
+
size="sm"
|
|
154
162
|
hasIconOnly
|
|
155
163
|
/>
|
|
156
164
|
</div>
|
|
@@ -24,15 +24,12 @@
|
|
|
24
24
|
justify-content: center;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
.table-row-move-button.
|
|
28
|
-
|
|
29
|
-
min-height: 24px;
|
|
30
|
-
margin-bottom: 8px;
|
|
27
|
+
.table-row-move-button.cds--btn--ghost {
|
|
28
|
+
width: calc(#{$spacing-05} + #{$spacing-01});
|
|
31
29
|
|
|
32
30
|
> svg {
|
|
33
|
-
height:
|
|
34
|
-
width:
|
|
35
|
-
margin-left: 0;
|
|
31
|
+
height: $spacing-05;
|
|
32
|
+
width: $spacing-05;
|
|
36
33
|
}
|
|
37
34
|
}
|
|
38
35
|
|
|
@@ -46,7 +43,6 @@
|
|
|
46
43
|
.properties-mr-table-content {
|
|
47
44
|
width: 100%;
|
|
48
45
|
display: flex;
|
|
49
|
-
border-bottom: 0;
|
|
50
46
|
&.disabled {
|
|
51
47
|
pointer-events: none;
|
|
52
48
|
opacity: 0.5;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import React, { Component } from "react";
|
|
18
18
|
import { injectIntl } from "react-intl";
|
|
19
19
|
import PropTypes from "prop-types";
|
|
20
|
-
import { Button } from "carbon
|
|
20
|
+
import { Button, ButtonSet } from "@carbon/react";
|
|
21
21
|
import classNames from "classnames";
|
|
22
22
|
import defaultMessages from "../../../../locales/common-properties/locales/en.json";
|
|
23
23
|
|
|
@@ -39,7 +39,7 @@ class PropertiesButtons extends Component {
|
|
|
39
39
|
data-id="properties-cancel-button"
|
|
40
40
|
className="properties-cancel-button"
|
|
41
41
|
type="button"
|
|
42
|
-
size="
|
|
42
|
+
size="xl"
|
|
43
43
|
kind="secondary"
|
|
44
44
|
onClick={this.props.cancelHandler}
|
|
45
45
|
>
|
|
@@ -54,7 +54,7 @@ class PropertiesButtons extends Component {
|
|
|
54
54
|
data-id="properties-apply-button"
|
|
55
55
|
className="properties-apply-button"
|
|
56
56
|
type="button"
|
|
57
|
-
size="
|
|
57
|
+
size="xl"
|
|
58
58
|
onClick={this.props.okHandler}
|
|
59
59
|
disabled={!this.props.applyButtonEnabled}
|
|
60
60
|
>
|
|
@@ -65,13 +65,12 @@ class PropertiesButtons extends Component {
|
|
|
65
65
|
|
|
66
66
|
const propertiesModalButtons = this.props.okHandler || this.props.cancelHandler
|
|
67
67
|
? (
|
|
68
|
-
<
|
|
69
|
-
|
|
70
|
-
!this.props.showPropertiesButtons) })}
|
|
68
|
+
<ButtonSet className={classNames("properties-modal-buttons", { "hide": (typeof (this.props.showPropertiesButtons) !== "undefined" &&
|
|
69
|
+
!this.props.showPropertiesButtons) })}
|
|
71
70
|
>
|
|
72
71
|
{rejectButton}
|
|
73
72
|
{applyButton}
|
|
74
|
-
</
|
|
73
|
+
</ButtonSet>
|
|
75
74
|
)
|
|
76
75
|
: null;
|
|
77
76
|
|
|
@@ -15,13 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
.properties-modal-buttons {
|
|
18
|
-
justify-content: flex-end;
|
|
19
|
-
display: flex;
|
|
20
|
-
height: $spacing-10;
|
|
21
|
-
bottom: 0;
|
|
22
|
-
position: absolute;
|
|
23
18
|
width: 100%;
|
|
24
|
-
left: 0;
|
|
25
19
|
&.hide {
|
|
26
20
|
display: none;
|
|
27
21
|
}
|
|
@@ -29,6 +23,13 @@
|
|
|
29
23
|
.properties-apply-button, .properties-cancel-button {
|
|
30
24
|
width: 50%;
|
|
31
25
|
max-width: unset;
|
|
32
|
-
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.properties-tearsheet-panel, .properties-fp-table {
|
|
30
|
+
.properties-modal-buttons {
|
|
31
|
+
position: absolute;
|
|
32
|
+
bottom: 0;
|
|
33
|
+
left: 0;
|
|
33
34
|
}
|
|
34
35
|
}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import React, { Component } from "react";
|
|
18
18
|
import PropTypes from "prop-types";
|
|
19
|
-
import { Modal } from "carbon
|
|
19
|
+
import { Modal } from "@carbon/react";
|
|
20
20
|
import classNames from "classnames";
|
|
21
21
|
import { Portal } from "react-portal";
|
|
22
22
|
import { Size } from "./../../constants/form-constants";
|
|
@@ -15,18 +15,18 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
.properties-modal {
|
|
18
|
-
.
|
|
18
|
+
.cds--modal-close {
|
|
19
19
|
display: none;
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.cds--modal-container {
|
|
22
22
|
padding: 0;
|
|
23
23
|
}
|
|
24
|
-
.
|
|
24
|
+
.cds--modal-content {
|
|
25
25
|
margin-bottom: $spacing-05;
|
|
26
26
|
padding: 0;
|
|
27
27
|
}
|
|
28
28
|
&.noButtons {
|
|
29
|
-
.
|
|
29
|
+
.cds--modal-footer {
|
|
30
30
|
opacity: 0;
|
|
31
31
|
pointer-events: none;
|
|
32
32
|
display: none;
|
|
@@ -20,11 +20,11 @@ import { connect } from "react-redux";
|
|
|
20
20
|
import { setTitle } from "./../../actions";
|
|
21
21
|
import Isvg from "react-inlinesvg";
|
|
22
22
|
import { get } from "lodash";
|
|
23
|
-
import { TextInput, Button } from "carbon
|
|
23
|
+
import { TextInput, Button } from "@carbon/react";
|
|
24
24
|
import { MESSAGE_KEYS, CONDITION_MESSAGE_TYPE } from "./../../constants/constants";
|
|
25
25
|
import * as PropertyUtils from "./../../util/property-utils";
|
|
26
26
|
import classNames from "classnames";
|
|
27
|
-
import {
|
|
27
|
+
import { Help, Edit, Close } from "@carbon/react/icons";
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
class TitleEditor extends Component {
|
|
@@ -111,8 +111,8 @@ class TitleEditor extends Component {
|
|
|
111
111
|
onClick={this.editTitleClickHandler}
|
|
112
112
|
tooltipPosition="bottom"
|
|
113
113
|
tooltipAlignment="end"
|
|
114
|
-
renderIcon={
|
|
115
|
-
size="
|
|
114
|
+
renderIcon={Edit}
|
|
115
|
+
size="sm"
|
|
116
116
|
iconDescription={propertiesTitleEditButtonLabel}
|
|
117
117
|
hasIconOnly
|
|
118
118
|
/>);
|
|
@@ -124,8 +124,8 @@ class TitleEditor extends Component {
|
|
|
124
124
|
data-id="help"
|
|
125
125
|
onClick={this.helpClickHandler}
|
|
126
126
|
tooltipPosition="bottom"
|
|
127
|
-
renderIcon={
|
|
128
|
-
size="
|
|
127
|
+
renderIcon={Help}
|
|
128
|
+
size="sm"
|
|
129
129
|
iconDescription={helpButtonLabel}
|
|
130
130
|
hasIconOnly
|
|
131
131
|
/>)
|
|
@@ -135,11 +135,11 @@ class TitleEditor extends Component {
|
|
|
135
135
|
? (<div className="properties-close-button">
|
|
136
136
|
<Button
|
|
137
137
|
kind="ghost"
|
|
138
|
-
size="
|
|
138
|
+
size="sm"
|
|
139
139
|
data-id="close"
|
|
140
140
|
onClick={this.props.closeHandler}
|
|
141
141
|
tooltipPosition="left"
|
|
142
|
-
renderIcon={
|
|
142
|
+
renderIcon={Close}
|
|
143
143
|
iconDescription={closeButtonLabel}
|
|
144
144
|
hasIconOnly
|
|
145
145
|
/>
|
|
@@ -186,7 +186,7 @@ class TitleEditor extends Component {
|
|
|
186
186
|
ref={this.textInputRef}
|
|
187
187
|
value={this.props.title}
|
|
188
188
|
onChange={this.handleTitleChange}
|
|
189
|
-
|
|
189
|
+
onKeyDown={(e) => this._handleKeyPress(e)}
|
|
190
190
|
readOnly={this.props.labelEditable === false} // shows a non editable icon
|
|
191
191
|
labelText={this.labelText}
|
|
192
192
|
hideLabel
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
.properties-title-editor {
|
|
18
|
+
font-size: 0;
|
|
18
19
|
padding: $spacing-05 0;
|
|
19
|
-
border-bottom: 1px $
|
|
20
|
+
border-bottom: 1px $layer-accent-01 solid;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
.properties-title-right-flyout-tabs-view {
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
margin-right: $spacing-03;
|
|
35
36
|
}
|
|
36
37
|
.properties-title-heading-label {
|
|
37
|
-
@include
|
|
38
|
+
@include type-style("label-01");
|
|
38
39
|
}
|
|
39
40
|
.properties-title-editor-btn.help {
|
|
40
41
|
&.help {
|
|
@@ -52,13 +53,13 @@
|
|
|
52
53
|
&.properties-title-editor-with-help {
|
|
53
54
|
width: calc(100% - #{$spacing-07} - #{$spacing-03}); // subtract the size of the help button and 8px to align with Close icon when applyOnBlur is set
|
|
54
55
|
}
|
|
55
|
-
.
|
|
56
|
+
.cds--form-item.cds--text-input-wrapper {
|
|
56
57
|
// allow edit icon to be at the end of text input
|
|
57
58
|
width: 100%;
|
|
58
59
|
|
|
59
60
|
input { //override styling from carbon
|
|
60
|
-
@include
|
|
61
|
-
color: $text-
|
|
61
|
+
@include type-style("productive-heading-02");
|
|
62
|
+
color: $text-primary;
|
|
62
63
|
min-width: unset;
|
|
63
64
|
background: unset;
|
|
64
65
|
text-overflow: ellipsis;
|
|
@@ -68,17 +69,16 @@
|
|
|
68
69
|
cursor: default;
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
|
-
.
|
|
72
|
+
.cds--form-requirement {
|
|
72
73
|
margin: $spacing-02 0 0 $spacing-05; // 4px top padding for error/warning message
|
|
73
74
|
}
|
|
74
|
-
.
|
|
75
|
-
border-bottom: 1px solid $
|
|
75
|
+
.cds--text-input__field-wrapper--warning input {
|
|
76
|
+
border-bottom: 1px solid $border-strong-01;
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
// Edit button should be inside the title input box
|
|
80
81
|
.properties-title-editor-btn {
|
|
81
|
-
position: absolute;
|
|
82
82
|
right: $spacing-01;
|
|
83
83
|
}
|
|
84
84
|
}
|
package/src/common-properties/components/truncated-content-tooltip/truncated-content-tooltip.jsx
CHANGED
|
@@ -18,7 +18,7 @@ import React from "react";
|
|
|
18
18
|
import PropTypes from "prop-types";
|
|
19
19
|
import Tooltip from "./../../../tooltip/tooltip.jsx";
|
|
20
20
|
import { has } from "lodash";
|
|
21
|
-
import { Checkbox } from "carbon
|
|
21
|
+
import { Checkbox } from "@carbon/react";
|
|
22
22
|
|
|
23
23
|
// Reusable component to show tooltip if the content is truncated
|
|
24
24
|
export default class TruncatedContentTooltip extends React.Component {
|
|
@@ -20,25 +20,25 @@
|
|
|
20
20
|
.icon {
|
|
21
21
|
margin: 0 $spacing-01;
|
|
22
22
|
.properties-validation-icon-warning {
|
|
23
|
-
fill: $support-
|
|
23
|
+
fill: $support-warning;
|
|
24
24
|
[data-icon-path="inner-path"] { // exclamation mark
|
|
25
|
-
fill: $
|
|
25
|
+
fill: $layer-selected-inverse;
|
|
26
26
|
opacity: 1;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
.properties-validation-icon-error {
|
|
30
|
-
fill: $support-
|
|
30
|
+
fill: $support-error;
|
|
31
31
|
}
|
|
32
32
|
.properties-validation-icon-info {
|
|
33
|
-
fill: $support-
|
|
33
|
+
fill: $support-info;
|
|
34
34
|
}
|
|
35
35
|
.properties-validation-icon-success {
|
|
36
|
-
fill: $support-
|
|
36
|
+
fill: $support-success;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
span {
|
|
40
|
-
@include
|
|
41
|
-
color: $text-
|
|
40
|
+
@include type-style("caption-01");
|
|
41
|
+
color: $text-primary;
|
|
42
42
|
}
|
|
43
43
|
&.error {
|
|
44
44
|
span {
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
import { Column, Table, AutoSizer } from "react-virtualized";
|
|
18
18
|
import Draggable from "react-draggable";
|
|
19
|
-
import { Checkbox, Loading } from "carbon
|
|
20
|
-
import {
|
|
19
|
+
import { Checkbox, Loading } from "@carbon/react";
|
|
20
|
+
import { ArrowUp, ArrowDown, ArrowsVertical, Information } from "@carbon/react/icons";
|
|
21
21
|
import Tooltip from "./../../../tooltip/tooltip.jsx";
|
|
22
22
|
import TruncatedContentTooltip from "./../truncated-content-tooltip";
|
|
23
23
|
import { SORT_DIRECTION, STATES, ROW_SELECTION, MINIMUM_COLUMN_WIDTH, MINIMUM_COLUMN_WIDTH_WITHOUT_LABEL } from "./../../constants/constants";
|
|
@@ -87,7 +87,7 @@ class VirtualizedTable extends React.Component {
|
|
|
87
87
|
|
|
88
88
|
// This is also triggered when clicking on a checkbox
|
|
89
89
|
onRowClick(evt, rowData, index) {
|
|
90
|
-
if (evt.target.className === "
|
|
90
|
+
if (evt.target.className === "cds--select-option") {
|
|
91
91
|
evt.stopPropagation(); // stop propagation when selecting dropdown select options within table rows
|
|
92
92
|
} else {
|
|
93
93
|
// Set selections
|
|
@@ -173,8 +173,8 @@ class VirtualizedTable extends React.Component {
|
|
|
173
173
|
return isLastColumn;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
selectAll(
|
|
177
|
-
this.props.setAllRowsSelected(
|
|
176
|
+
selectAll(evt, { checked, id }) {
|
|
177
|
+
this.props.setAllRowsSelected(checked);
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
// Callback responsible for rendering a cell's contents.
|
|
@@ -230,13 +230,13 @@ class VirtualizedTable extends React.Component {
|
|
|
230
230
|
let type = null;
|
|
231
231
|
switch (this.props.sortColumns[dataKey]) {
|
|
232
232
|
case SORT_DIRECTION.ASC:
|
|
233
|
-
type = <
|
|
233
|
+
type = <ArrowUp disabled={this.props.tableState === STATES.DISABLED} />;
|
|
234
234
|
break;
|
|
235
235
|
case SORT_DIRECTION.DESC:
|
|
236
|
-
type = <
|
|
236
|
+
type = <ArrowDown disabled={this.props.tableState === STATES.DISABLED} />;
|
|
237
237
|
break;
|
|
238
238
|
default:
|
|
239
|
-
type = <
|
|
239
|
+
type = <ArrowsVertical disabled={this.props.tableState === STATES.DISABLED} />;
|
|
240
240
|
}
|
|
241
241
|
sortIcon = (<span className="properties-ft-column-sort-icon">
|
|
242
242
|
{type}
|
|
@@ -253,7 +253,7 @@ class VirtualizedTable extends React.Component {
|
|
|
253
253
|
className="properties-tooltips"
|
|
254
254
|
showToolTipOnClick
|
|
255
255
|
>
|
|
256
|
-
<
|
|
256
|
+
<Information className="properties-vt-info-icon" />
|
|
257
257
|
</Tooltip>
|
|
258
258
|
</div>);
|
|
259
259
|
|