carbon-react 8.1.3 → 8.1.6
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/change_log/v8_1_4/position_date_picker.yml +1 -0
- package/change_log/v8_1_5/fix_path.yml +1 -0
- package/lib/__experimental__/components/input/input-presentation.component.js +35 -29
- package/lib/__experimental__/components/input/input.component.js +36 -28
- package/lib/__experimental__/components/input-decorator-bridge/input-decorator-bridge.component.js +45 -35
- package/lib/__experimental__/components/select/index.js +4 -4
- package/lib/__experimental__/components/select/option.component.js +6 -4
- package/lib/__experimental__/components/select/select-list.component.js +39 -35
- package/lib/__experimental__/components/select/select.component.js +45 -39
- package/lib/__experimental__/components/select-async/index.js +4 -4
- package/lib/__experimental__/components/select-async/select-async.component.js +53 -37
- package/lib/__experimental__/components/textbox/textbox.component.js +6 -4
- package/lib/__spec_helper__/index.js +1 -1
- package/lib/components/action-toolbar/action-toolbar.js +43 -37
- package/lib/components/alert/alert.js +35 -29
- package/lib/components/alert/alert.stories.js +4 -4
- package/lib/components/animated-menu-button/animated-menu-button.js +36 -32
- package/lib/components/animated-menu-button/animated-menu-button.stories.js +16 -24
- package/lib/components/app-wrapper/app-wrapper.js +29 -25
- package/lib/components/app-wrapper/app-wrapper.stories.js +1 -1
- package/lib/components/button/button.js +30 -26
- package/lib/components/button/button.stories.js +1 -1
- package/lib/components/button-toggle/button-toggle.js +52 -46
- package/lib/components/button-toggle/button-toggle.stories.js +23 -15
- package/lib/components/button-toggle-group/button-toggle-group.js +54 -48
- package/lib/components/button-toggle-group/button-toggle-group.stories.js +4 -4
- package/lib/components/carousel/carousel.js +48 -42
- package/lib/components/carousel/slide/slide.js +4 -4
- package/lib/components/checkbox/checkbox.js +68 -72
- package/lib/components/configurable-items/configurable-item-row/configurable-item-row.js +37 -33
- package/lib/components/configurable-items/configurable-items.js +38 -34
- package/lib/components/confirm/confirm.js +60 -54
- package/lib/components/content/content.js +31 -25
- package/lib/components/create/create.js +32 -24
- package/lib/components/date/date.js +216 -194
- package/lib/components/date/navbar/navbar.js +5 -5
- package/lib/components/date-range/date-range.js +97 -93
- package/lib/components/decimal/decimal.js +62 -56
- package/lib/components/detail/detail.js +51 -47
- package/lib/components/dialog/dialog.js +80 -72
- package/lib/components/dialog-full-screen/dialog-full-screen.js +53 -47
- package/lib/components/dialog-full-screen/full-screen-heading/full-screen-heading.js +9 -7
- package/lib/components/drag-and-drop/custom-drag-layer/custom-drag-layer.js +28 -24
- package/lib/components/drag-and-drop/drag-and-drop.js +6 -6
- package/lib/components/drag-and-drop/draggable-context/draggable-context.js +40 -37
- package/lib/components/drag-and-drop/with-drag/with-drag.js +26 -22
- package/lib/components/drag-and-drop/with-drop/with-drop.js +26 -20
- package/lib/components/dropdown/dropdown.js +146 -143
- package/lib/components/dropdown-filter/dropdown-filter.js +94 -88
- package/lib/components/dropdown-filter-ajax/dropdown-filter-ajax.js +54 -50
- package/lib/components/fieldset/fieldset.js +50 -42
- package/lib/components/filter/filter.js +43 -46
- package/lib/components/flash/flash.js +72 -64
- package/lib/components/form/cancel-button/cancel-button.js +11 -11
- package/lib/components/form/form-summary/form-summary.js +7 -7
- package/lib/components/form/form.js +68 -69
- package/lib/components/form/save-button/save-button.js +11 -11
- package/lib/components/grouped-character/grouped-character.js +49 -43
- package/lib/components/heading/heading.js +65 -59
- package/lib/components/help/help.js +46 -40
- package/lib/components/i18n/i18n.js +30 -22
- package/lib/components/icon/icon.js +55 -51
- package/lib/components/inline-inputs/inline-inputs.js +6 -6
- package/lib/components/link/link.js +45 -37
- package/lib/components/menu/menu-item/menu-item.js +55 -49
- package/lib/components/menu/menu.js +47 -41
- package/lib/components/menu/submenu-block/submenu-block.js +43 -37
- package/lib/components/menu-list/menu-list-item/menu-list-item.js +29 -25
- package/lib/components/menu-list/menu-list.js +49 -43
- package/lib/components/message/message.js +47 -41
- package/lib/components/modal/modal.js +77 -71
- package/lib/components/mount-in-app/mount-in-app.js +32 -26
- package/lib/components/multi-action-button/multi-action-button.js +52 -46
- package/lib/components/multi-step-wizard/multi-step-wizard.js +60 -54
- package/lib/components/multi-step-wizard/step/step.js +68 -69
- package/lib/components/navigation-bar/navigation-bar.js +44 -38
- package/lib/components/number/number.js +58 -52
- package/lib/components/pager/pager.js +75 -71
- package/lib/components/pages/page/page.js +6 -6
- package/lib/components/pages/pages.js +4 -4
- package/lib/components/pill/pill.js +33 -27
- package/lib/components/pod/pod.js +84 -80
- package/lib/components/portal/portal.js +34 -26
- package/lib/components/portrait/portrait.js +52 -48
- package/lib/components/preview/preview.js +4 -4
- package/lib/components/profile/profile.js +51 -45
- package/lib/components/radio-button/radio-button.js +51 -45
- package/lib/components/rainbow/rainbow.js +44 -38
- package/lib/components/row/column/column.js +1 -1
- package/lib/components/row/row.js +47 -41
- package/lib/components/scrollable-list/as-scrollable-list-item.wrapper.js +8 -8
- package/lib/components/scrollable-list/scrollable-list-item.component.js +27 -35
- package/lib/components/scrollable-list/scrollable-list.component.js +53 -37
- package/lib/components/scrollable-list/scrollable-list.style.js +5 -13
- package/lib/components/scrollable-list/test-utils.js +38 -28
- package/lib/components/settings-row/settings-row.js +49 -43
- package/lib/components/show-edit-pod/show-edit-pod.js +67 -63
- package/lib/components/sidebar/sidebar-header/sidebar-header.js +43 -37
- package/lib/components/sidebar/sidebar.js +54 -48
- package/lib/components/simple-color-picker/color-option/color-option.js +47 -41
- package/lib/components/simple-color-picker/simple-color-picker.js +53 -47
- package/lib/components/spinner/spinner.js +43 -37
- package/lib/components/split-button/split-button.js +69 -69
- package/lib/components/step-sequence/step-sequence-item/step-sequence-item.js +15 -13
- package/lib/components/step-sequence/step-sequence.js +4 -4
- package/lib/components/switch/switch.js +23 -21
- package/lib/components/table/draggable-table-cell/draggable-table-cell.js +4 -4
- package/lib/components/table/table-cell/table-cell.js +45 -39
- package/lib/components/table/table-header/table-header.js +107 -110
- package/lib/components/table/table-row/table-row.js +62 -58
- package/lib/components/table/table-subheader/table-subheader.js +32 -26
- package/lib/components/table/table.js +166 -169
- package/lib/components/table-ajax/table-ajax.js +67 -70
- package/lib/components/tabs/tab/tab.js +48 -44
- package/lib/components/tabs/tabs.js +73 -67
- package/lib/components/textarea/textarea.js +52 -49
- package/lib/components/textbox/textbox.js +49 -43
- package/lib/components/toast/toast.js +56 -50
- package/lib/components/tooltip/tooltip.js +47 -41
- package/lib/patterns/configurable-items/configurable-items-content/configurable-items-content.js +35 -29
- package/lib/patterns/configurable-items/configurable-items.js +55 -51
- package/lib/patterns/configurable-items/store/store.js +35 -27
- package/lib/style/index.js +1 -1
- package/lib/style/palette/index.js +4 -2
- package/lib/style/themes/base/index.js +7 -7
- package/lib/style/themes/test-utils.js +19 -21
- package/lib/style/utils/add-hex-symbols.js +4 -2
- package/lib/style/utils/at-opacity.js +10 -8
- package/lib/style/utils/merge-deep.js +15 -15
- package/lib/style/utils/mix.js +32 -20
- package/lib/utils/decorators/input/input.js +46 -42
- package/lib/utils/decorators/input-icon/input-icon.js +37 -33
- package/lib/utils/decorators/input-label/input-label.js +37 -31
- package/lib/utils/decorators/input-validation/input-validation.js +40 -36
- package/lib/utils/decorators/should-component-update/should-component-update.js +29 -23
- package/lib/utils/decorators/tooltip-decorator/tooltip-decorator.js +38 -34
- package/lib/utils/ether/ether.js +16 -14
- package/lib/utils/filter-children/filter-children.util.js +10 -8
- package/lib/utils/handlers/base-registry/base-registry.js +12 -13
- package/lib/utils/helpers/browser/browser.js +15 -13
- package/lib/utils/helpers/date/date.js +4 -2
- package/lib/utils/helpers/element-resize/element-resize.js +6 -4
- package/lib/utils/helpers/events/events.js +2 -2
- package/lib/utils/helpers/guid/guid.js +6 -6
- package/lib/utils/helpers/i18n/i18n.js +11 -9
- package/lib/utils/helpers/immutable/immutable.js +13 -13
- package/lib/utils/helpers/options-helper/options-helper.js +2 -1
- package/lib/utils/helpers/prop-types/prop-types.js +2 -2
- package/lib/utils/helpers/scrollable-parent/scrollable-parent.js +2 -0
- package/lib/utils/helpers/serialize/serialize.js +12 -12
- package/lib/utils/helpers/tags/tags-specs/tags-specs.js +6 -4
- package/lib/utils/helpers/to-array/to-array.js +8 -6
- package/lib/utils/router/router.js +2 -2
- package/lib/utils/service/service.js +34 -34
- package/lib/utils/validations/blank/blank.js +6 -2
- package/lib/utils/validations/date/date.js +6 -2
- package/lib/utils/validations/date-range/date-range.js +6 -2
- package/lib/utils/validations/date-within-range/date-within-range.js +6 -2
- package/lib/utils/validations/email/email.js +6 -2
- package/lib/utils/validations/exclusion/exclusion.js +6 -2
- package/lib/utils/validations/inclusion/inclusion.js +6 -2
- package/lib/utils/validations/length/length.js +6 -2
- package/lib/utils/validations/numeral/numeral-type/numeral-type.js +8 -2
- package/lib/utils/validations/numeral/numeral.js +6 -2
- package/lib/utils/validations/presence/presence.js +12 -4
- package/lib/utils/validations/regex/regex.js +8 -2
- package/lib/utils/validations/validator/validator.js +14 -14
- package/package.json +13 -13
- package/release_notes/v8_1_4.html.md +5 -0
- package/release_notes/v8_1_5.html.md +5 -0
|
@@ -1,32 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
|
-
require("core-js/modules/es.
|
|
5
|
+
require("core-js/modules/es.object.get-prototype-of.js");
|
|
6
6
|
|
|
7
|
-
require("core-js/modules/es.
|
|
7
|
+
require("core-js/modules/es.object.to-string.js");
|
|
8
8
|
|
|
9
|
-
require("core-js/modules/es.
|
|
9
|
+
require("core-js/modules/es.reflect.construct.js");
|
|
10
10
|
|
|
11
|
-
require("core-js/modules/es.
|
|
11
|
+
require("core-js/modules/es.symbol.js");
|
|
12
12
|
|
|
13
|
-
require("core-js/modules/es.
|
|
13
|
+
require("core-js/modules/es.symbol.description.js");
|
|
14
14
|
|
|
15
|
-
require("core-js/modules/es.
|
|
15
|
+
require("core-js/modules/es.symbol.iterator.js");
|
|
16
16
|
|
|
17
|
-
require("core-js/modules/es.
|
|
17
|
+
require("core-js/modules/es.array.iterator.js");
|
|
18
18
|
|
|
19
|
-
require("core-js/modules/es.
|
|
19
|
+
require("core-js/modules/es.string.iterator.js");
|
|
20
20
|
|
|
21
|
-
require("core-js/modules/
|
|
22
|
-
|
|
23
|
-
require("core-js/modules/web.dom-collections.iterator");
|
|
21
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
24
22
|
|
|
25
23
|
Object.defineProperty(exports, "__esModule", {
|
|
26
24
|
value: true
|
|
27
25
|
});
|
|
28
26
|
exports.default = void 0;
|
|
29
27
|
|
|
28
|
+
require("core-js/modules/es.array.concat.js");
|
|
29
|
+
|
|
30
|
+
require("core-js/modules/es.object.assign.js");
|
|
31
|
+
|
|
32
|
+
require("core-js/modules/es.function.name.js");
|
|
33
|
+
|
|
30
34
|
var _react = _interopRequireDefault(require("react"));
|
|
31
35
|
|
|
32
36
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
@@ -45,29 +49,31 @@ var _ether = require("../../utils/ether");
|
|
|
45
49
|
|
|
46
50
|
require("./checkbox.scss");
|
|
47
51
|
|
|
48
|
-
var _class
|
|
52
|
+
var _class;
|
|
49
53
|
|
|
50
54
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
51
55
|
|
|
52
|
-
function
|
|
53
|
-
|
|
54
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
56
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
55
57
|
|
|
56
58
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
57
59
|
|
|
58
60
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
59
61
|
|
|
60
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
62
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
61
63
|
|
|
62
|
-
function
|
|
64
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
63
65
|
|
|
64
|
-
function
|
|
66
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
67
|
+
|
|
68
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
69
|
+
|
|
70
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
65
71
|
|
|
66
72
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
67
73
|
|
|
68
|
-
function
|
|
74
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
69
75
|
|
|
70
|
-
function
|
|
76
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
71
77
|
|
|
72
78
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
73
79
|
|
|
@@ -88,14 +94,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
88
94
|
* @constructor
|
|
89
95
|
* @decorators {Input,InputLabel,InputValidation}
|
|
90
96
|
*/
|
|
91
|
-
var Checkbox = (0, _input.default)((0, _inputLabel.default)((0, _inputValidation.default)((
|
|
92
|
-
/*#__PURE__*/
|
|
93
|
-
function (_React$Component) {
|
|
97
|
+
var Checkbox = (0, _input.default)((0, _inputLabel.default)((0, _inputValidation.default)((_class = /*#__PURE__*/function (_React$Component) {
|
|
94
98
|
_inherits(Checkbox, _React$Component);
|
|
95
99
|
|
|
96
|
-
|
|
97
|
-
var _getPrototypeOf2;
|
|
100
|
+
var _super = _createSuper(Checkbox);
|
|
98
101
|
|
|
102
|
+
function Checkbox() {
|
|
99
103
|
var _this;
|
|
100
104
|
|
|
101
105
|
_classCallCheck(this, Checkbox);
|
|
@@ -104,7 +108,7 @@ function (_React$Component) {
|
|
|
104
108
|
args[_key] = arguments[_key];
|
|
105
109
|
}
|
|
106
110
|
|
|
107
|
-
_this =
|
|
111
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
108
112
|
|
|
109
113
|
_defineProperty(_assertThisInitialized(_this), "handleOnChange", function (ev) {
|
|
110
114
|
// we handle the change event manually here, as we pass the checked param
|
|
@@ -120,45 +124,15 @@ function (_React$Component) {
|
|
|
120
124
|
}
|
|
121
125
|
|
|
122
126
|
_createClass(Checkbox, [{
|
|
123
|
-
key: "render",
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Renders the component with props.
|
|
127
|
-
*
|
|
128
|
-
* @method render
|
|
129
|
-
* @return {Object} JSX
|
|
130
|
-
*/
|
|
131
|
-
value: function render() {
|
|
132
|
-
var labelRight,
|
|
133
|
-
labelLeft,
|
|
134
|
-
fieldHelpLeft,
|
|
135
|
-
fieldHelpRight = this.fieldHelpHTML;
|
|
136
|
-
|
|
137
|
-
if (this.props.reverse) {
|
|
138
|
-
labelLeft = this.labelHTML;
|
|
139
|
-
|
|
140
|
-
if (this.props.fieldHelpInline) {
|
|
141
|
-
fieldHelpLeft = this.fieldHelpHTML;
|
|
142
|
-
fieldHelpRight = null;
|
|
143
|
-
}
|
|
144
|
-
} else {
|
|
145
|
-
labelRight = this.labelHTML;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
return _react.default.createElement("div", _extends({
|
|
149
|
-
className: this.mainClasses
|
|
150
|
-
}, (0, _tags.default)('checkbox', this.props)), labelLeft, fieldHelpLeft, _react.default.createElement("input", this.hiddenInputProps), this.inputHTML, labelRight, fieldHelpRight, this.validationHTML);
|
|
151
|
-
}
|
|
152
|
-
}, {
|
|
153
127
|
key: "mainClasses",
|
|
154
|
-
|
|
128
|
+
get:
|
|
155
129
|
/**
|
|
156
130
|
* Uses the mainClasses method provided by the decorator to add additional classes.
|
|
157
131
|
*
|
|
158
132
|
* @method mainClasses
|
|
159
133
|
* @return {String} Main className
|
|
160
134
|
*/
|
|
161
|
-
|
|
135
|
+
function get() {
|
|
162
136
|
return 'carbon-checkbox';
|
|
163
137
|
}
|
|
164
138
|
/**
|
|
@@ -225,25 +199,25 @@ function (_React$Component) {
|
|
|
225
199
|
}, {
|
|
226
200
|
key: "checkboxSprite",
|
|
227
201
|
get: function get() {
|
|
228
|
-
return _react.default.createElement("svg", {
|
|
202
|
+
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
229
203
|
width: "15",
|
|
230
204
|
height: "15",
|
|
231
205
|
viewBox: "0 0 15 15"
|
|
232
|
-
}, _react.default.createElement("rect", {
|
|
206
|
+
}, /*#__PURE__*/_react.default.createElement("rect", {
|
|
233
207
|
className: "checkbox-outline",
|
|
234
208
|
fill: "#AFAFAF",
|
|
235
209
|
x: "0",
|
|
236
210
|
y: "0",
|
|
237
211
|
width: "15",
|
|
238
212
|
height: "15"
|
|
239
|
-
}), _react.default.createElement("rect", {
|
|
213
|
+
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
240
214
|
className: "checkbox-fill",
|
|
241
215
|
fill: "#FFFFFF",
|
|
242
216
|
x: "1",
|
|
243
217
|
y: "1",
|
|
244
218
|
width: "13",
|
|
245
219
|
height: "13"
|
|
246
|
-
}), _react.default.createElement("path", {
|
|
220
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
247
221
|
d: 'M5.06079081,11.805307 L2.2548404,9.4508351 C1.95287351,9.19745479 1.91372172,' + '8.74748731 2.16708208,8.44554418 L3.08395978,7.35285189 C3.3376225,7.05054844 3.78738919,' + '7.01144632 4.08921714,7.26471004 L6.46118447,9.25502694 L11.4959248,3.25485701 C11.7492184,' + '2.95299356 12.1993451,2.91365198 12.5012882,3.16701234 L13.5939805,4.08389004 C13.896284,' + '4.33755276 13.9353536,4.78735811 13.6820499,5.08923375 L8.30934217,11.4921775 C8.28333213,' + '11.5485068 8.24949267,11.6023543 8.20769039,11.6521724 L7.2908127,12.7448647 C7.12011041,' + '12.9482997 6.86060017,13.032541 6.61713008,12.9887006 C6.48855215,12.9709764 6.36324771,' + '12.9179844 6.25647356,12.8283903 L5.16378128,11.9115126 C5.12512704,11.8790778 5.09077658,' + '11.8434362 5.06079081,11.805307 L5.06079081,11.805307 Z',
|
|
248
222
|
className: "checkbox-check",
|
|
249
223
|
fill: "#FFFFFF"
|
|
@@ -276,6 +250,36 @@ function (_React$Component) {
|
|
|
276
250
|
'carbon-checkbox__help-text--inline': this.props.fieldHelpInline
|
|
277
251
|
});
|
|
278
252
|
}
|
|
253
|
+
/**
|
|
254
|
+
* Renders the component with props.
|
|
255
|
+
*
|
|
256
|
+
* @method render
|
|
257
|
+
* @return {Object} JSX
|
|
258
|
+
*/
|
|
259
|
+
|
|
260
|
+
}, {
|
|
261
|
+
key: "render",
|
|
262
|
+
value: function render() {
|
|
263
|
+
var labelRight,
|
|
264
|
+
labelLeft,
|
|
265
|
+
fieldHelpLeft,
|
|
266
|
+
fieldHelpRight = this.fieldHelpHTML;
|
|
267
|
+
|
|
268
|
+
if (this.props.reverse) {
|
|
269
|
+
labelLeft = this.labelHTML;
|
|
270
|
+
|
|
271
|
+
if (this.props.fieldHelpInline) {
|
|
272
|
+
fieldHelpLeft = this.fieldHelpHTML;
|
|
273
|
+
fieldHelpRight = null;
|
|
274
|
+
}
|
|
275
|
+
} else {
|
|
276
|
+
labelRight = this.labelHTML;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
return /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
280
|
+
className: this.mainClasses
|
|
281
|
+
}, (0, _tags.default)('checkbox', this.props)), labelLeft, fieldHelpLeft, /*#__PURE__*/_react.default.createElement("input", this.hiddenInputProps), this.inputHTML, labelRight, fieldHelpRight, this.validationHTML);
|
|
282
|
+
}
|
|
279
283
|
}]);
|
|
280
284
|
|
|
281
285
|
return Checkbox;
|
|
@@ -322,14 +326,6 @@ function (_React$Component) {
|
|
|
322
326
|
value: _propTypes.default.bool
|
|
323
327
|
}), _defineProperty(_class, "defaultProps", {
|
|
324
328
|
reverse: false
|
|
325
|
-
|
|
326
|
-
* Sets the value of the checkbox [true | false]
|
|
327
|
-
*
|
|
328
|
-
* @method handleOnChange
|
|
329
|
-
* @param {Object} ev event
|
|
330
|
-
* @return {void}
|
|
331
|
-
*/
|
|
332
|
-
|
|
333
|
-
}), _temp))));
|
|
329
|
+
}), _class))));
|
|
334
330
|
var _default = Checkbox;
|
|
335
331
|
exports.default = _default;
|
|
@@ -1,32 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
|
-
require("core-js/modules/es.
|
|
5
|
+
require("core-js/modules/es.object.get-prototype-of.js");
|
|
6
6
|
|
|
7
|
-
require("core-js/modules/es.
|
|
7
|
+
require("core-js/modules/es.object.to-string.js");
|
|
8
8
|
|
|
9
|
-
require("core-js/modules/es.
|
|
9
|
+
require("core-js/modules/es.reflect.construct.js");
|
|
10
10
|
|
|
11
|
-
require("core-js/modules/es.
|
|
11
|
+
require("core-js/modules/es.object.assign.js");
|
|
12
12
|
|
|
13
|
-
require("core-js/modules/es.
|
|
13
|
+
require("core-js/modules/es.symbol.js");
|
|
14
14
|
|
|
15
|
-
require("core-js/modules/es.
|
|
15
|
+
require("core-js/modules/es.symbol.description.js");
|
|
16
16
|
|
|
17
|
-
require("core-js/modules/es.
|
|
17
|
+
require("core-js/modules/es.symbol.iterator.js");
|
|
18
18
|
|
|
19
|
-
require("core-js/modules/es.
|
|
19
|
+
require("core-js/modules/es.array.iterator.js");
|
|
20
20
|
|
|
21
|
-
require("core-js/modules/es.string.iterator");
|
|
21
|
+
require("core-js/modules/es.string.iterator.js");
|
|
22
22
|
|
|
23
|
-
require("core-js/modules/web.dom-collections.iterator");
|
|
23
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
24
24
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", {
|
|
26
26
|
value: true
|
|
27
27
|
});
|
|
28
28
|
exports.default = void 0;
|
|
29
29
|
|
|
30
|
+
require("core-js/modules/es.array.concat.js");
|
|
31
|
+
|
|
32
|
+
require("core-js/modules/es.function.name.js");
|
|
33
|
+
|
|
30
34
|
var _react = _interopRequireDefault(require("react"));
|
|
31
35
|
|
|
32
36
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
@@ -45,36 +49,36 @@ require("./configurable-item-row.scss");
|
|
|
45
49
|
|
|
46
50
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
47
51
|
|
|
48
|
-
function
|
|
49
|
-
|
|
50
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
52
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
51
53
|
|
|
52
54
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
53
55
|
|
|
54
56
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
55
57
|
|
|
56
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
58
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
59
|
+
|
|
60
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
57
61
|
|
|
58
|
-
function
|
|
62
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
59
63
|
|
|
60
|
-
function
|
|
64
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
65
|
+
|
|
66
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
61
67
|
|
|
62
68
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
63
69
|
|
|
64
|
-
function
|
|
70
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
65
71
|
|
|
66
|
-
function
|
|
72
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
67
73
|
|
|
68
74
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
69
75
|
|
|
70
|
-
var ConfigurableItemRow =
|
|
71
|
-
/*#__PURE__*/
|
|
72
|
-
function (_React$Component) {
|
|
76
|
+
var ConfigurableItemRow = /*#__PURE__*/function (_React$Component) {
|
|
73
77
|
_inherits(ConfigurableItemRow, _React$Component);
|
|
74
78
|
|
|
75
|
-
|
|
76
|
-
var _getPrototypeOf2;
|
|
79
|
+
var _super = _createSuper(ConfigurableItemRow);
|
|
77
80
|
|
|
81
|
+
function ConfigurableItemRow() {
|
|
78
82
|
var _this;
|
|
79
83
|
|
|
80
84
|
_classCallCheck(this, ConfigurableItemRow);
|
|
@@ -83,7 +87,7 @@ function (_React$Component) {
|
|
|
83
87
|
args[_key] = arguments[_key];
|
|
84
88
|
}
|
|
85
89
|
|
|
86
|
-
_this =
|
|
90
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
87
91
|
|
|
88
92
|
_defineProperty(_assertThisInitialized(_this), "classes", function (dragAndDropActiveIndex, index) {
|
|
89
93
|
return (0, _classnames.default)('configurable-item-row', _this.props.className, {
|
|
@@ -99,12 +103,12 @@ function (_React$Component) {
|
|
|
99
103
|
locked = _this$props.locked,
|
|
100
104
|
name = _this$props.name,
|
|
101
105
|
onChange = _this$props.onChange;
|
|
102
|
-
return _react.default.createElement("li", {
|
|
106
|
+
return /*#__PURE__*/_react.default.createElement("li", {
|
|
103
107
|
className: _this.classes(_this.context.dragAndDropActiveIndex, rowIndex),
|
|
104
108
|
ref: function ref(node) {
|
|
105
109
|
_this._listItem = node;
|
|
106
110
|
}
|
|
107
|
-
}, _react.default.createElement("div", {
|
|
111
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
108
112
|
className: "configurable-item-row__content-wrapper"
|
|
109
113
|
}, _this.icon(), _this.checkbox(enabled, locked, name, onChange)));
|
|
110
114
|
});
|
|
@@ -115,7 +119,7 @@ function (_React$Component) {
|
|
|
115
119
|
_createClass(ConfigurableItemRow, [{
|
|
116
120
|
key: "checkbox",
|
|
117
121
|
value: function checkbox(enabled, locked, name, onChange) {
|
|
118
|
-
return _react.default.createElement(_checkbox.default, {
|
|
122
|
+
return /*#__PURE__*/_react.default.createElement(_checkbox.default, {
|
|
119
123
|
value: enabled,
|
|
120
124
|
disabled: locked,
|
|
121
125
|
label: name,
|
|
@@ -125,7 +129,7 @@ function (_React$Component) {
|
|
|
125
129
|
}, {
|
|
126
130
|
key: "iconHTML",
|
|
127
131
|
value: function iconHTML() {
|
|
128
|
-
return _react.default.createElement("div", null, _react.default.createElement(_icon.default, {
|
|
132
|
+
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_icon.default, {
|
|
129
133
|
className: "configurable-item-row__icon",
|
|
130
134
|
type: "drag_vertical"
|
|
131
135
|
}));
|
|
@@ -135,7 +139,7 @@ function (_React$Component) {
|
|
|
135
139
|
value: function icon() {
|
|
136
140
|
var _this2 = this;
|
|
137
141
|
|
|
138
|
-
return _react.default.createElement(_dragAndDrop.WithDrag, {
|
|
142
|
+
return /*#__PURE__*/_react.default.createElement(_dragAndDrop.WithDrag, {
|
|
139
143
|
draggableNode: function draggableNode() {
|
|
140
144
|
return _this2._listItem;
|
|
141
145
|
}
|
|
@@ -143,14 +147,14 @@ function (_React$Component) {
|
|
|
143
147
|
}
|
|
144
148
|
}, {
|
|
145
149
|
key: "dragged",
|
|
146
|
-
|
|
150
|
+
value:
|
|
147
151
|
/**
|
|
148
152
|
* Determines if the item has been dragged.
|
|
149
153
|
*
|
|
150
154
|
* @method dragged
|
|
151
155
|
* @return {Boolean}
|
|
152
156
|
*/
|
|
153
|
-
|
|
157
|
+
function dragged(dragAndDropActiveIndex, index) {
|
|
154
158
|
return this.draggingIsOccurring(dragAndDropActiveIndex) && dragAndDropActiveIndex === index;
|
|
155
159
|
}
|
|
156
160
|
/**
|
|
@@ -168,7 +172,7 @@ function (_React$Component) {
|
|
|
168
172
|
}, {
|
|
169
173
|
key: "render",
|
|
170
174
|
value: function render() {
|
|
171
|
-
return _react.default.createElement(_dragAndDrop.WithDrop, _extends({
|
|
175
|
+
return /*#__PURE__*/_react.default.createElement(_dragAndDrop.WithDrop, _extends({
|
|
172
176
|
index: this.props.rowIndex
|
|
173
177
|
}, (0, _tags.default)('configurable-item-row', this.props)), this.listItemHTML());
|
|
174
178
|
}
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
4
|
|
|
5
|
-
require("core-js/modules/es.
|
|
5
|
+
require("core-js/modules/es.object.get-prototype-of.js");
|
|
6
6
|
|
|
7
|
-
require("core-js/modules/es.
|
|
7
|
+
require("core-js/modules/es.object.to-string.js");
|
|
8
8
|
|
|
9
|
-
require("core-js/modules/es.
|
|
9
|
+
require("core-js/modules/es.reflect.construct.js");
|
|
10
10
|
|
|
11
|
-
require("core-js/modules/es.
|
|
11
|
+
require("core-js/modules/es.object.assign.js");
|
|
12
12
|
|
|
13
|
-
require("core-js/modules/es.
|
|
13
|
+
require("core-js/modules/es.symbol.js");
|
|
14
14
|
|
|
15
|
-
require("core-js/modules/es.
|
|
15
|
+
require("core-js/modules/es.symbol.description.js");
|
|
16
16
|
|
|
17
|
-
require("core-js/modules/es.
|
|
17
|
+
require("core-js/modules/es.symbol.iterator.js");
|
|
18
18
|
|
|
19
|
-
require("core-js/modules/es.
|
|
19
|
+
require("core-js/modules/es.array.iterator.js");
|
|
20
20
|
|
|
21
|
-
require("core-js/modules/
|
|
21
|
+
require("core-js/modules/es.string.iterator.js");
|
|
22
|
+
|
|
23
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
22
24
|
|
|
23
25
|
Object.defineProperty(exports, "__esModule", {
|
|
24
26
|
value: true
|
|
@@ -31,6 +33,8 @@ Object.defineProperty(exports, "ConfigurableItemRow", {
|
|
|
31
33
|
});
|
|
32
34
|
exports.ConfigurableItems = void 0;
|
|
33
35
|
|
|
36
|
+
require("core-js/modules/es.array.concat.js");
|
|
37
|
+
|
|
34
38
|
var _react = _interopRequireDefault(require("react"));
|
|
35
39
|
|
|
36
40
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
@@ -53,36 +57,36 @@ require("./configurable-items.scss");
|
|
|
53
57
|
|
|
54
58
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
55
59
|
|
|
56
|
-
function
|
|
57
|
-
|
|
58
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
60
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
59
61
|
|
|
60
62
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
61
63
|
|
|
62
64
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
63
65
|
|
|
64
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
66
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
67
|
+
|
|
68
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
69
|
+
|
|
70
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
65
71
|
|
|
66
|
-
function
|
|
72
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
67
73
|
|
|
68
|
-
function
|
|
74
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
69
75
|
|
|
70
76
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
71
77
|
|
|
72
|
-
function
|
|
78
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
73
79
|
|
|
74
|
-
function
|
|
80
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
75
81
|
|
|
76
82
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
77
83
|
|
|
78
|
-
var ConfigurableItems =
|
|
79
|
-
/*#__PURE__*/
|
|
80
|
-
function (_React$Component) {
|
|
84
|
+
var ConfigurableItems = /*#__PURE__*/function (_React$Component) {
|
|
81
85
|
_inherits(ConfigurableItems, _React$Component);
|
|
82
86
|
|
|
83
|
-
|
|
84
|
-
var _getPrototypeOf2;
|
|
87
|
+
var _super = _createSuper(ConfigurableItems);
|
|
85
88
|
|
|
89
|
+
function ConfigurableItems() {
|
|
86
90
|
var _this;
|
|
87
91
|
|
|
88
92
|
_classCallCheck(this, ConfigurableItems);
|
|
@@ -91,7 +95,7 @@ function (_React$Component) {
|
|
|
91
95
|
args[_key] = arguments[_key];
|
|
92
96
|
}
|
|
93
97
|
|
|
94
|
-
_this =
|
|
98
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
95
99
|
|
|
96
100
|
_defineProperty(_assertThisInitialized(_this), "onReset", function (event) {
|
|
97
101
|
event.preventDefault();
|
|
@@ -104,7 +108,7 @@ function (_React$Component) {
|
|
|
104
108
|
return null;
|
|
105
109
|
}
|
|
106
110
|
|
|
107
|
-
return _react.default.createElement(_button.default, {
|
|
111
|
+
return /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
108
112
|
onClick: _this.onReset,
|
|
109
113
|
className: "carbon-button--reset"
|
|
110
114
|
}, _i18nJs.default.t('actions.reset', {
|
|
@@ -113,7 +117,7 @@ function (_React$Component) {
|
|
|
113
117
|
});
|
|
114
118
|
|
|
115
119
|
_defineProperty(_assertThisInitialized(_this), "rows", function () {
|
|
116
|
-
return _react.default.createElement("ol", {
|
|
120
|
+
return /*#__PURE__*/_react.default.createElement("ol", {
|
|
117
121
|
className: "carbon-configurable-items__items-wrapper"
|
|
118
122
|
}, _this.props.children);
|
|
119
123
|
});
|
|
@@ -122,23 +126,23 @@ function (_React$Component) {
|
|
|
122
126
|
}
|
|
123
127
|
|
|
124
128
|
_createClass(ConfigurableItems, [{
|
|
129
|
+
key: "classes",
|
|
130
|
+
get: function get() {
|
|
131
|
+
return (0, _classnames.default)('carbon-configurable-items', this.props.className);
|
|
132
|
+
}
|
|
133
|
+
}, {
|
|
125
134
|
key: "render",
|
|
126
135
|
value: function render() {
|
|
127
|
-
return _react.default.createElement("div", _extends({
|
|
136
|
+
return /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
128
137
|
className: this.classes
|
|
129
|
-
}, (0, _tags.default)('configurable-items', this.props)), _react.default.createElement(_dragAndDrop.DraggableContext, {
|
|
138
|
+
}, (0, _tags.default)('configurable-items', this.props)), /*#__PURE__*/_react.default.createElement(_dragAndDrop.DraggableContext, {
|
|
130
139
|
onDrag: this.props.onDrag
|
|
131
|
-
}, _react.default.createElement(_form.default, {
|
|
140
|
+
}, /*#__PURE__*/_react.default.createElement(_form.default, {
|
|
132
141
|
leftAlignedActions: this.additionalActions(),
|
|
133
142
|
onSubmit: this.props.onSave,
|
|
134
143
|
onCancel: this.props.onCancel
|
|
135
144
|
}, this.rows())));
|
|
136
145
|
}
|
|
137
|
-
}, {
|
|
138
|
-
key: "classes",
|
|
139
|
-
get: function get() {
|
|
140
|
-
return (0, _classnames.default)('carbon-configurable-items', this.props.className);
|
|
141
|
-
}
|
|
142
146
|
}]);
|
|
143
147
|
|
|
144
148
|
return ConfigurableItems;
|