@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,7 +17,7 @@
|
|
|
17
17
|
import React from "react";
|
|
18
18
|
import PropTypes from "prop-types";
|
|
19
19
|
import { connect } from "react-redux";
|
|
20
|
-
import {
|
|
20
|
+
import { TextInput, Layer } from "@carbon/react";
|
|
21
21
|
import ValidationMessage from "./../../components/validation-message";
|
|
22
22
|
import * as ControlUtils from "./../../util/control-utils";
|
|
23
23
|
import { STATES, MESSAGE_KEYS } from "./../../constants/constants.js";
|
|
@@ -49,21 +49,22 @@ class PasswordControl extends React.Component {
|
|
|
49
49
|
const validationProps = ControlUtils.getValidationProps(this.props.messageInfo, this.props.tableControl);
|
|
50
50
|
return (
|
|
51
51
|
<div className={className} data-id={ControlUtils.getDataId(this.props.propertyId)}>
|
|
52
|
-
<
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
52
|
+
<Layer level={this.props.controller.getLight() && this.props.control.light ? 1 : 0}>
|
|
53
|
+
<TextInput.PasswordInput
|
|
54
|
+
{...validationProps}
|
|
55
|
+
autoComplete="off"
|
|
56
|
+
id={this.id}
|
|
57
|
+
disabled={this.props.state === STATES.DISABLED}
|
|
58
|
+
placeholder={this.props.control.additionalText}
|
|
59
|
+
onChange={this.handleChange.bind(this)}
|
|
60
|
+
value={value}
|
|
61
|
+
labelText={this.props.controlItem}
|
|
62
|
+
hideLabel={this.props.tableControl}
|
|
63
|
+
tooltipAlignment="end"
|
|
64
|
+
showPasswordLabel={showPasswordLabel}
|
|
65
|
+
hidePasswordLabel={hidePasswordLabel}
|
|
66
|
+
/>
|
|
67
|
+
</Layer>
|
|
67
68
|
<ValidationMessage inTable={this.props.tableControl} tableOnly state={this.props.state} messageInfo={this.props.messageInfo} />
|
|
68
69
|
</div>);
|
|
69
70
|
}
|
|
@@ -21,12 +21,12 @@ import { isEqual } from "lodash";
|
|
|
21
21
|
import * as ControlUtils from "./../../util/control-utils";
|
|
22
22
|
import * as ConditionsUtils from "./../../ui-conditions/conditions-utils.js";
|
|
23
23
|
import ValidationMessage from "./../../components/validation-message";
|
|
24
|
-
import { RadioButton } from "carbon
|
|
24
|
+
import { RadioButton } from "@carbon/react";
|
|
25
25
|
import classNames from "classnames";
|
|
26
26
|
import { STATES, UPDATE_TYPE } from "./../../constants/constants.js";
|
|
27
27
|
import { ORIENTATIONS } from "./../../constants/form-constants.js";
|
|
28
28
|
import { v4 as uuid4 } from "uuid";
|
|
29
|
-
import {
|
|
29
|
+
import { Information } from "@carbon/react/icons";
|
|
30
30
|
import Tooltip from "./../../../tooltip/tooltip.jsx";
|
|
31
31
|
import { isEmpty } from "lodash";
|
|
32
32
|
|
|
@@ -186,7 +186,7 @@ class RadiosetControl extends React.Component {
|
|
|
186
186
|
showToolTipOnClick
|
|
187
187
|
disable={hidden || disabled}
|
|
188
188
|
>
|
|
189
|
-
<
|
|
189
|
+
<Information disabled={disabled} className="properties-control-description-icon-info" />
|
|
190
190
|
</Tooltip>
|
|
191
191
|
);
|
|
192
192
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
&.hide {
|
|
19
19
|
display: none;
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.cds--form-item {
|
|
22
22
|
margin-bottom: $spacing-02;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
align-items: center;
|
|
45
45
|
flex-wrap: wrap;
|
|
46
46
|
overflow: hidden;
|
|
47
|
-
.
|
|
47
|
+
.cds--radio-button-wrapper{
|
|
48
48
|
margin-right: 0; // We removed the space between radio & tooltip to position it correctly
|
|
49
49
|
}
|
|
50
50
|
.properties-radioset-tooltip {
|
|
@@ -16,19 +16,21 @@
|
|
|
16
16
|
|
|
17
17
|
import React from "react";
|
|
18
18
|
import PropTypes from "prop-types";
|
|
19
|
-
import { Slider } from "carbon
|
|
19
|
+
import { Slider, Layer } from "@carbon/react";
|
|
20
20
|
import { connect } from "react-redux";
|
|
21
21
|
import classNames from "classnames";
|
|
22
22
|
import { v4 as uuid4 } from "uuid";
|
|
23
23
|
|
|
24
24
|
import * as ControlUtils from "../../util/control-utils";
|
|
25
25
|
import ValidationMessage from "../../components/validation-message";
|
|
26
|
-
import { STATES } from "../../constants/constants";
|
|
26
|
+
import { STATES, MESSAGE_KEYS } from "../../constants/constants";
|
|
27
|
+
import { formatMessage } from "./../../util/property-utils";
|
|
27
28
|
|
|
28
29
|
|
|
29
30
|
class SliderControl extends React.Component {
|
|
30
31
|
constructor(props) {
|
|
31
32
|
super(props);
|
|
33
|
+
this.reactIntl = props.controller.getReactIntl();
|
|
32
34
|
this.handleChange = this.handleChange.bind(this);
|
|
33
35
|
this.uuid = uuid4();
|
|
34
36
|
}
|
|
@@ -48,21 +50,23 @@ class SliderControl extends React.Component {
|
|
|
48
50
|
<div className={classNames("properties-slider ", { "hide": this.props.state === STATES.HIDDEN },
|
|
49
51
|
this.props.messageInfo ? this.props.messageInfo.type : null)} data-id={ControlUtils.getDataId(this.props.propertyId)}
|
|
50
52
|
>
|
|
51
|
-
<
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
53
|
+
<Layer level={this.props.controller.getLight() && this.props.control.light ? 1 : 0}>
|
|
54
|
+
<Slider
|
|
55
|
+
value={this.props.value !== null && typeof this.props.value !== "undefined" ? this.props.value : minValue}
|
|
56
|
+
min={minValue}
|
|
57
|
+
max={maxValue}
|
|
58
|
+
minLabel={minLabel}
|
|
59
|
+
maxLabel={maxLabel}
|
|
60
|
+
step={step}
|
|
61
|
+
labelText={this.props.controlItem}
|
|
62
|
+
onChange={this.handleChange}
|
|
63
|
+
disabled={this.props.state === STATES.DISABLED}
|
|
64
|
+
ariaLabelInput={formatMessage(this.reactIntl, MESSAGE_KEYS.SLIDER_NUMBER_INPUT_LABEL)}
|
|
65
|
+
formatLabel={
|
|
66
|
+
(val, label) => label || val
|
|
67
|
+
}
|
|
68
|
+
/>
|
|
69
|
+
</Layer>
|
|
66
70
|
<ValidationMessage state={this.props.state} messageInfo={this.props.messageInfo} inTable={this.props.tableControl} />
|
|
67
71
|
</div>
|
|
68
72
|
);
|
|
@@ -15,29 +15,33 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
.properties-slider {
|
|
18
|
-
.
|
|
18
|
+
.cds--slider-container {
|
|
19
19
|
min-width: 100%;
|
|
20
20
|
|
|
21
|
-
.
|
|
21
|
+
.cds--slider {
|
|
22
22
|
min-width: unset; // Default Carbon Component Slider has a fixed min-width of 12.5rem so unset it to make it responsive
|
|
23
23
|
}
|
|
24
|
+
|
|
25
|
+
.cds--slider-text-input {
|
|
26
|
+
text-align: center;
|
|
27
|
+
}
|
|
24
28
|
}
|
|
25
29
|
&.error {
|
|
26
|
-
.
|
|
30
|
+
.cds--text-input--invalid, .cds--text-input {
|
|
27
31
|
outline: unset;
|
|
28
32
|
outline-offset: unset;
|
|
29
33
|
}
|
|
30
34
|
input[type="number"]:not([disabled]) {
|
|
31
|
-
border: 2px solid $support-
|
|
35
|
+
border: 2px solid $support-error;
|
|
32
36
|
}
|
|
33
37
|
}
|
|
34
38
|
&.warning {
|
|
35
|
-
.
|
|
39
|
+
.cds--text-input--invalid, .cds--text-input {
|
|
36
40
|
outline: unset;
|
|
37
41
|
outline-offset: unset;
|
|
38
42
|
}
|
|
39
43
|
input[type="number"]:not([disabled]) {
|
|
40
|
-
border: 2px solid $support-
|
|
44
|
+
border: 2px solid $support-warning;
|
|
41
45
|
}
|
|
42
46
|
}
|
|
43
47
|
|
|
@@ -19,19 +19,19 @@
|
|
|
19
19
|
border-bottom: 0;
|
|
20
20
|
}
|
|
21
21
|
.properties-ft-container-absolute-noheader tr:not(.disabled):hover {
|
|
22
|
-
border: 1px solid $
|
|
22
|
+
border: 1px solid $button-primary;
|
|
23
23
|
}
|
|
24
24
|
&.hide {
|
|
25
25
|
display: none;
|
|
26
26
|
}
|
|
27
27
|
&.error {
|
|
28
28
|
.properties-ft-container-absolute-noheader {
|
|
29
|
-
border: 1px solid $support-
|
|
29
|
+
border: 1px solid $support-error;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
&.warning {
|
|
33
33
|
.properties-ft-container-absolute-noheader {
|
|
34
|
-
border: 1px solid $support-
|
|
34
|
+
border: 1px solid $support-warning;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
.properties-vt-row-checkbox {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import React from "react";
|
|
18
18
|
import PropTypes from "prop-types";
|
|
19
19
|
import { connect } from "react-redux";
|
|
20
|
-
import { TextArea } from "carbon
|
|
20
|
+
import { TextArea, Layer } from "@carbon/react";
|
|
21
21
|
import ValidationMessage from "./../../components/validation-message";
|
|
22
22
|
import * as ControlUtils from "./../../util/control-utils";
|
|
23
23
|
import { formatMessage } from "./../../util/property-utils";
|
|
@@ -71,30 +71,34 @@ class TextareaControl extends React.Component {
|
|
|
71
71
|
};
|
|
72
72
|
validationProps = ControlUtils.getValidationProps(errorMessage, this.props.tableControl);
|
|
73
73
|
textArea = (<div>
|
|
74
|
-
<
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
74
|
+
<Layer level={this.props.controller.getLight() && this.props.control.light ? 1 : 0}>
|
|
75
|
+
<TextArea
|
|
76
|
+
{...validationProps}
|
|
77
|
+
id={this.id}
|
|
78
|
+
disabled
|
|
79
|
+
placeholder={this.props.control.additionalText}
|
|
80
|
+
value={value}
|
|
81
|
+
labelText={this.props.controlItem}
|
|
82
|
+
hideLabel={this.props.tableControl}
|
|
83
|
+
/>
|
|
84
|
+
</Layer>
|
|
84
85
|
<ValidationMessage inTable={this.props.tableControl} tableOnly={!showValidationMessage} state={""} messageInfo={errorMessage} />
|
|
85
86
|
</div>);
|
|
86
87
|
} else {
|
|
87
|
-
textArea = (
|
|
88
|
-
{
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
88
|
+
textArea = (
|
|
89
|
+
<Layer level={this.props.controller.getLight() && this.props.control.light ? 1 : 0}>
|
|
90
|
+
<TextArea
|
|
91
|
+
{...validationProps}
|
|
92
|
+
id={this.id}
|
|
93
|
+
disabled={this.props.state === STATES.DISABLED}
|
|
94
|
+
placeholder={this.props.control.additionalText}
|
|
95
|
+
onChange={this.handleChange.bind(this)}
|
|
96
|
+
value={value}
|
|
97
|
+
labelText={this.props.controlItem}
|
|
98
|
+
hideLabel={this.props.tableControl}
|
|
99
|
+
/>
|
|
100
|
+
</Layer>
|
|
101
|
+
);
|
|
98
102
|
}
|
|
99
103
|
|
|
100
104
|
let display = textArea;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import React from "react";
|
|
18
18
|
import PropTypes from "prop-types";
|
|
19
19
|
import { connect } from "react-redux";
|
|
20
|
-
import { TextInput } from "carbon
|
|
20
|
+
import { TextInput, Layer } from "@carbon/react";
|
|
21
21
|
import ReadonlyControl from "./../readonly";
|
|
22
22
|
import ValidationMessage from "./../../components/validation-message";
|
|
23
23
|
import * as ControlUtils from "./../../util/control-utils";
|
|
@@ -95,19 +95,22 @@ class TextfieldControl extends React.Component {
|
|
|
95
95
|
</div>);
|
|
96
96
|
} else {
|
|
97
97
|
const validationProps = ControlUtils.getValidationProps(this.props.messageInfo, this.props.tableControl);
|
|
98
|
-
textInput = (
|
|
99
|
-
{
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
98
|
+
textInput = (
|
|
99
|
+
<Layer level={this.props.controller.getLight() && this.props.control.light ? 1 : 0}>
|
|
100
|
+
<TextInput
|
|
101
|
+
{...validationProps}
|
|
102
|
+
autoComplete={this.props.tableControl === true ? "off" : "on"}
|
|
103
|
+
id={this.id}
|
|
104
|
+
disabled={ this.props.state === STATES.DISABLED}
|
|
105
|
+
placeholder={this.props.control.additionalText}
|
|
106
|
+
onChange={this.handleChange.bind(this)}
|
|
107
|
+
value={value}
|
|
108
|
+
labelText={this.props.controlItem}
|
|
109
|
+
hideLabel={this.props.tableControl}
|
|
110
|
+
ref={(ref) => (this.textInputRef = ref)}
|
|
111
|
+
/>
|
|
112
|
+
</Layer>
|
|
113
|
+
);
|
|
111
114
|
}
|
|
112
115
|
|
|
113
116
|
let display = textInput;
|
|
@@ -20,10 +20,6 @@ $textinput-bottom-padding: 5px;
|
|
|
20
20
|
&.hide {
|
|
21
21
|
display: none;
|
|
22
22
|
}
|
|
23
|
-
.bx--form-item { // carbon overrides
|
|
24
|
-
margin-right: 0;
|
|
25
|
-
margin-bottom: 0;
|
|
26
|
-
}
|
|
27
23
|
input {
|
|
28
24
|
min-width: unset;
|
|
29
25
|
}
|
|
@@ -48,17 +44,17 @@ $textinput-bottom-padding: 5px;
|
|
|
48
44
|
}
|
|
49
45
|
&.error {
|
|
50
46
|
input:not([disabled]) {
|
|
51
|
-
box-shadow: 0 2px 0 0 $support-
|
|
47
|
+
box-shadow: 0 2px 0 0 $support-error;
|
|
52
48
|
}
|
|
53
49
|
}
|
|
54
50
|
&.warning {
|
|
55
51
|
input:not([disabled]) {
|
|
56
|
-
box-shadow: 0 2px 0 0 $support-
|
|
52
|
+
box-shadow: 0 2px 0 0 $support-warning;
|
|
57
53
|
}
|
|
58
54
|
}
|
|
59
55
|
}
|
|
60
56
|
input:disabled:hover {
|
|
61
|
-
box-shadow: 0 2px 0 0 $text-
|
|
57
|
+
box-shadow: 0 2px 0 0 $text-secondary;
|
|
62
58
|
}
|
|
63
59
|
|
|
64
60
|
// Readonly control for error handling in table cells
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import React from "react";
|
|
18
18
|
import PropTypes from "prop-types";
|
|
19
19
|
import { connect } from "react-redux";
|
|
20
|
-
import { TextInput } from "carbon
|
|
20
|
+
import { TextInput, Layer } from "@carbon/react";
|
|
21
21
|
import { parse, format, isValid } from "date-fns";
|
|
22
22
|
import classNames from "classnames";
|
|
23
23
|
|
|
@@ -71,18 +71,19 @@ class TimefieldControl extends React.Component {
|
|
|
71
71
|
const validationProps = ControlUtils.getValidationProps(this.props.messageInfo, this.props.tableControl);
|
|
72
72
|
return (
|
|
73
73
|
<div className={className} data-id={ControlUtils.getDataId(this.props.propertyId)}>
|
|
74
|
-
<
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
74
|
+
<Layer level={this.props.controller.getLight() && this.props.control.light ? 1 : 0}>
|
|
75
|
+
<TextInput
|
|
76
|
+
{...validationProps}
|
|
77
|
+
autoComplete="off"
|
|
78
|
+
id={this.id}
|
|
79
|
+
disabled={this.props.state === STATES.DISABLED}
|
|
80
|
+
placeholder={this.props.control.additionalText}
|
|
81
|
+
onChange={this.handleChange.bind(this)}
|
|
82
|
+
value={this.value}
|
|
83
|
+
labelText={this.props.controlItem}
|
|
84
|
+
hideLabel={this.props.tableControl}
|
|
85
|
+
/>
|
|
86
|
+
</Layer>
|
|
86
87
|
<ValidationMessage inTable={this.props.tableControl} tableOnly state={this.props.state} messageInfo={this.props.messageInfo} />
|
|
87
88
|
</div>
|
|
88
89
|
);
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import React from "react";
|
|
18
18
|
import PropTypes from "prop-types";
|
|
19
19
|
import { connect } from "react-redux";
|
|
20
|
-
import { Toggle } from "carbon
|
|
20
|
+
import { Toggle } from "@carbon/react";
|
|
21
21
|
import ValidationMessage from "./../../components/validation-message";
|
|
22
22
|
import * as ControlUtils from "./../../util/control-utils";
|
|
23
23
|
import { STATES, MESSAGE_KEYS } from "./../../constants/constants.js";
|
|
@@ -54,11 +54,20 @@ class ToggleControl extends React.Component {
|
|
|
54
54
|
labelB={labelOn}
|
|
55
55
|
labelA={labelOff}
|
|
56
56
|
onToggle={this.handleChange.bind(this)}
|
|
57
|
-
|
|
57
|
+
aria-labelledby={`${this.props.propertyId?.name}-toggle-label`}
|
|
58
58
|
/>);
|
|
59
59
|
const className = classNames("properties-toggle", { "hide": this.props.state === STATES.HIDDEN }, this.props.messageInfo ? this.props.messageInfo.type : null);
|
|
60
60
|
return (
|
|
61
61
|
<div className={className} data-id={ControlUtils.getDataId(this.props.propertyId)}>
|
|
62
|
+
{
|
|
63
|
+
this.props.tableControl
|
|
64
|
+
? null
|
|
65
|
+
: (
|
|
66
|
+
<div id={`${this.props.propertyId?.name}-toggle-label`} className="properties-toggle-label">
|
|
67
|
+
{this.props.tableControl ? null : this.props.controlItem}
|
|
68
|
+
</div>
|
|
69
|
+
)
|
|
70
|
+
}
|
|
62
71
|
{toggleControl}
|
|
63
72
|
<ValidationMessage inTable={this.props.tableControl} state={this.props.state} messageInfo={this.props.messageInfo} />
|
|
64
73
|
</div>
|
|
@@ -19,8 +19,6 @@
|
|
|
19
19
|
padding-bottom: 0;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
.properties-
|
|
23
|
-
|
|
24
|
-
margin-bottom: $spacing-05;
|
|
25
|
-
}
|
|
22
|
+
.properties-toggle-label {
|
|
23
|
+
margin-bottom: $spacing-05;
|
|
26
24
|
}
|
|
@@ -17,7 +17,7 @@
|
|
|
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 ValidationMessage from "./../../components/validation-message";
|
|
22
22
|
import * as ControlUtils from "./../../util/control-utils";
|
|
23
23
|
import { formatMessage } from "./../../util/property-utils";
|
|
@@ -52,10 +52,10 @@ class ToggletextControl extends React.Component {
|
|
|
52
52
|
const imgSource = this.iconsMap[this.props.value];
|
|
53
53
|
if (typeof imgSource === "string" && imgSource.slice(imgSource.length - 4) === ".svg") {
|
|
54
54
|
// svg image
|
|
55
|
-
icon = <Isvg className="
|
|
55
|
+
icon = <Isvg className="cds--btn__icon" src={imgSource} />;
|
|
56
56
|
} else {
|
|
57
57
|
icon = (<img
|
|
58
|
-
className="
|
|
58
|
+
className="cds--btn__icon"
|
|
59
59
|
src={imgSource}
|
|
60
60
|
alt=""
|
|
61
61
|
/>);
|
|
@@ -75,7 +75,7 @@ class ToggletextControl extends React.Component {
|
|
|
75
75
|
button = (
|
|
76
76
|
<Button
|
|
77
77
|
kind={buttonType}
|
|
78
|
-
size="
|
|
78
|
+
size="sm"
|
|
79
79
|
onClick={this.onClick.bind(this)}
|
|
80
80
|
renderIcon={this.renderIcon.bind(this)}
|
|
81
81
|
iconDescription={formatMessage(this.reactIntl, MESSAGE_KEYS.TOGGLETEXT_ICON_DESCRIPTION, { toggletext_label: this.props.value })}
|
|
@@ -21,19 +21,26 @@
|
|
|
21
21
|
}
|
|
22
22
|
&.error {
|
|
23
23
|
button {
|
|
24
|
-
border-bottom: 2px solid $support-
|
|
24
|
+
border-bottom: 2px solid $support-error;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
&.warning {
|
|
28
28
|
button {
|
|
29
|
-
border-bottom: 2px solid $support-
|
|
29
|
+
border-bottom: 2px solid $support-warning;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
// toggle control in table needs to fit within column
|
|
35
35
|
.properties-table-cell-control {
|
|
36
|
-
.properties-toggletext
|
|
37
|
-
|
|
36
|
+
.properties-toggletext {
|
|
37
|
+
button {
|
|
38
|
+
padding: 0 $spacing-02;
|
|
39
|
+
align-items: center;
|
|
40
|
+
}
|
|
41
|
+
.cds--btn--ghost:not([disabled]) svg {
|
|
42
|
+
fill: currentColor;
|
|
43
|
+
}
|
|
44
|
+
|
|
38
45
|
}
|
|
39
46
|
}
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.properties-error-content {
|
|
41
|
-
@include
|
|
41
|
+
@include type-style("label-02");
|
|
42
42
|
padding: 0 $spacing-06;
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
align-items: left;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
.
|
|
50
|
+
.cds--tabs .cds--tabs__nav-item.properties-hidden-container,
|
|
51
51
|
.properties-hidden-container {
|
|
52
52
|
display: none;
|
|
53
53
|
}
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
|
|
42
42
|
.properties-control-nested-panel {
|
|
43
43
|
padding: 0 0 0 $spacing-05; // Ensure nested panels have a padding
|
|
44
|
-
border-left: 1px solid $
|
|
44
|
+
border-left: 1px solid $border-strong-01;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.properties-control-nested-panel .properties-control-nested-panel {
|
|
48
|
-
border-left: 1px solid $
|
|
48
|
+
border-left: 1px solid $layer-accent-01;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
// Set the height of the very first panel to be full width inside a tearsheet
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import logger from "./../../../../utils/logger";
|
|
18
18
|
import React from "react";
|
|
19
19
|
import PropTypes from "prop-types";
|
|
20
|
-
import { Button } from "carbon
|
|
20
|
+
import { Button } from "@carbon/react";
|
|
21
21
|
import { formatMessage } from "./../../util/property-utils";
|
|
22
22
|
import { MESSAGE_KEYS } from "./../../constants/constants";
|
|
23
23
|
|
|
@@ -47,7 +47,7 @@ export default class SubPanelButton extends React.Component {
|
|
|
47
47
|
const button = (<Button
|
|
48
48
|
className="properties-subpanel-button"
|
|
49
49
|
type="button"
|
|
50
|
-
|
|
50
|
+
size="sm"
|
|
51
51
|
kind="secondary"
|
|
52
52
|
onClick={this.showSubPanel}
|
|
53
53
|
>
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
import React from "react";
|
|
18
18
|
import PropTypes from "prop-types";
|
|
19
|
-
import { Button } from "carbon
|
|
20
|
-
import {
|
|
19
|
+
import { Button } from "@carbon/react";
|
|
20
|
+
import { Settings } from "@carbon/react/icons";
|
|
21
21
|
import { formatMessage } from "./../../util/property-utils";
|
|
22
22
|
import Tooltip from "./../../../tooltip/tooltip.jsx";
|
|
23
23
|
import { cloneDeep } from "lodash";
|
|
@@ -59,7 +59,6 @@ export default class SubPanelCell extends React.Component {
|
|
|
59
59
|
const applyLabel = formatMessage(this.props.controller.getReactIntl(), MESSAGE_KEYS.APPLYBUTTON_LABEL);
|
|
60
60
|
const rejectLabel = formatMessage(this.props.controller.getReactIntl(), MESSAGE_KEYS.REJECTBUTTON_LABEL);
|
|
61
61
|
return (
|
|
62
|
-
|
|
63
62
|
<SubPanelInvoker ref={ (ref) => (this.subPanelInvoker = ref) }
|
|
64
63
|
rightFlyout={this.props.rightFlyout}
|
|
65
64
|
applyLabel={applyLabel}
|
|
@@ -75,7 +74,7 @@ export default class SubPanelCell extends React.Component {
|
|
|
75
74
|
<Button
|
|
76
75
|
className="properties-subpanel-button"
|
|
77
76
|
kind="ghost"
|
|
78
|
-
renderIcon={
|
|
77
|
+
renderIcon={Settings}
|
|
79
78
|
onClick={this.showSubPanel}
|
|
80
79
|
disabled={disabled}
|
|
81
80
|
iconDescription={subPanelToolTip}
|
|
@@ -20,12 +20,12 @@ button.properties-subpanel-button {
|
|
|
20
20
|
height: 2rem;
|
|
21
21
|
width: 2rem;
|
|
22
22
|
display: flex;
|
|
23
|
-
|
|
23
|
+
align-items: center;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.properties-subpanel-modal-in-tearsheet {
|
|
27
27
|
.properties-light-disabled {
|
|
28
|
-
background-color: $
|
|
28
|
+
background-color: $layer-01;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.properties-modal-children {
|