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,34 +1,38 @@
|
|
|
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.reflect.get.js");
|
|
12
12
|
|
|
13
|
-
require("core-js/modules/es.
|
|
13
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
14
14
|
|
|
15
|
-
require("core-js/modules/es.
|
|
15
|
+
require("core-js/modules/es.symbol.js");
|
|
16
16
|
|
|
17
|
-
require("core-js/modules/es.
|
|
17
|
+
require("core-js/modules/es.symbol.description.js");
|
|
18
18
|
|
|
19
|
-
require("core-js/modules/es.
|
|
19
|
+
require("core-js/modules/es.symbol.iterator.js");
|
|
20
20
|
|
|
21
|
-
require("core-js/modules/es.
|
|
21
|
+
require("core-js/modules/es.array.iterator.js");
|
|
22
22
|
|
|
23
|
-
require("core-js/modules/es.string.iterator");
|
|
23
|
+
require("core-js/modules/es.string.iterator.js");
|
|
24
24
|
|
|
25
|
-
require("core-js/modules/web.dom-collections.iterator");
|
|
25
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
26
26
|
|
|
27
27
|
Object.defineProperty(exports, "__esModule", {
|
|
28
28
|
value: true
|
|
29
29
|
});
|
|
30
30
|
exports.default = void 0;
|
|
31
31
|
|
|
32
|
+
require("core-js/modules/es.array.concat.js");
|
|
33
|
+
|
|
34
|
+
require("core-js/modules/es.function.name.js");
|
|
35
|
+
|
|
32
36
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
33
37
|
|
|
34
38
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
@@ -47,27 +51,29 @@ var _portal = _interopRequireDefault(require("../../../components/portal"));
|
|
|
47
51
|
|
|
48
52
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
49
53
|
|
|
50
|
-
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
51
|
-
|
|
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; }
|
|
57
59
|
|
|
58
|
-
function
|
|
60
|
+
function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
|
|
59
61
|
|
|
60
|
-
function
|
|
62
|
+
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
|
|
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); }; }
|
|
65
69
|
|
|
66
|
-
function
|
|
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); }
|
|
67
71
|
|
|
68
|
-
function
|
|
72
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
73
|
+
|
|
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
|
|
|
@@ -108,14 +114,12 @@ var window = _browser.default.getWindow();
|
|
|
108
114
|
|
|
109
115
|
|
|
110
116
|
var InputValidation = function InputValidation(ComposedComponent) {
|
|
111
|
-
var Component =
|
|
112
|
-
/*#__PURE__*/
|
|
113
|
-
function (_ComposedComponent) {
|
|
117
|
+
var Component = /*#__PURE__*/function (_ComposedComponent) {
|
|
114
118
|
_inherits(Component, _ComposedComponent);
|
|
115
119
|
|
|
116
|
-
|
|
117
|
-
var _getPrototypeOf2;
|
|
120
|
+
var _super = _createSuper(Component);
|
|
118
121
|
|
|
122
|
+
function Component() {
|
|
119
123
|
var _this;
|
|
120
124
|
|
|
121
125
|
_classCallCheck(this, Component);
|
|
@@ -124,7 +128,7 @@ var InputValidation = function InputValidation(ComposedComponent) {
|
|
|
124
128
|
args[_key] = arguments[_key];
|
|
125
129
|
}
|
|
126
130
|
|
|
127
|
-
_this =
|
|
131
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
128
132
|
|
|
129
133
|
_defineProperty(_assertThisInitialized(_this), "positionMessage", function () {
|
|
130
134
|
if (!_this.state.valid || _this.state.warning || _this.state.info) {
|
|
@@ -505,14 +509,14 @@ var InputValidation = function InputValidation(ComposedComponent) {
|
|
|
505
509
|
|
|
506
510
|
_createClass(Component, [{
|
|
507
511
|
key: "componentWillReceiveProps",
|
|
508
|
-
|
|
512
|
+
value:
|
|
509
513
|
/**
|
|
510
514
|
* A lifecycle method for when the component has re-rendered.
|
|
511
515
|
*
|
|
512
516
|
* @method componentWillReceiveProps
|
|
513
517
|
* @return {void}
|
|
514
518
|
*/
|
|
515
|
-
|
|
519
|
+
function componentWillReceiveProps(nextProps) {
|
|
516
520
|
// call the components super method if it exists
|
|
517
521
|
if (_get(_getPrototypeOf(Component.prototype), "componentWillReceiveProps", this)) {
|
|
518
522
|
_get(_getPrototypeOf(Component.prototype), "componentWillReceiveProps", this).call(this, nextProps);
|
|
@@ -611,14 +615,14 @@ var InputValidation = function InputValidation(ComposedComponent) {
|
|
|
611
615
|
|
|
612
616
|
}, {
|
|
613
617
|
key: "isAttachedToForm",
|
|
614
|
-
|
|
618
|
+
get:
|
|
615
619
|
/**
|
|
616
620
|
* Determines if the input is attached to a form.
|
|
617
621
|
*
|
|
618
622
|
* @method isAttachedToForm
|
|
619
623
|
* @return {Boolean}
|
|
620
624
|
*/
|
|
621
|
-
|
|
625
|
+
function get() {
|
|
622
626
|
return this.context.form && this.context.form.inputs[this._guid];
|
|
623
627
|
}
|
|
624
628
|
/**
|
|
@@ -659,19 +663,19 @@ var InputValidation = function InputValidation(ComposedComponent) {
|
|
|
659
663
|
iconStyle = _defineProperty({}, "".concat(this.props.align), "".concat(100 - this.props.labelWidth, "%"));
|
|
660
664
|
}
|
|
661
665
|
|
|
662
|
-
var errorMessage = (this.state.messageLocked || this.state.messageShown) && _react.default.createElement(_portal.default, {
|
|
666
|
+
var errorMessage = (this.state.messageLocked || this.state.messageShown) && /*#__PURE__*/_react.default.createElement(_portal.default, {
|
|
663
667
|
key: "1",
|
|
664
668
|
onReposition: this.positionMessage
|
|
665
|
-
}, _react.default.createElement("div", {
|
|
669
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
666
670
|
className: "common-input__message-wrapper"
|
|
667
|
-
}, _react.default.createElement("div", {
|
|
671
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
668
672
|
ref: function ref(validationMessage) {
|
|
669
673
|
_this2.validationMessage = validationMessage;
|
|
670
674
|
},
|
|
671
675
|
className: messageClasses
|
|
672
676
|
}, this.state.errorMessage || this.state.warningMessage || this.state.infoMessage)));
|
|
673
677
|
|
|
674
|
-
return [_react.default.createElement(_icon.default, {
|
|
678
|
+
return [/*#__PURE__*/_react.default.createElement(_icon.default, {
|
|
675
679
|
key: "0",
|
|
676
680
|
ref: function ref(validationIcon) {
|
|
677
681
|
_this2.validationIcon = validationIcon;
|
|
@@ -1,49 +1,55 @@
|
|
|
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.to-string.js");
|
|
6
6
|
|
|
7
|
-
require("core-js/modules/es.
|
|
7
|
+
require("core-js/modules/es.reflect.construct.js");
|
|
8
8
|
|
|
9
|
-
require("core-js/modules/es.
|
|
9
|
+
require("core-js/modules/es.symbol.js");
|
|
10
10
|
|
|
11
|
-
require("core-js/modules/es.
|
|
11
|
+
require("core-js/modules/es.symbol.description.js");
|
|
12
12
|
|
|
13
|
-
require("core-js/modules/es.
|
|
13
|
+
require("core-js/modules/es.symbol.iterator.js");
|
|
14
14
|
|
|
15
|
-
require("core-js/modules/es.
|
|
15
|
+
require("core-js/modules/es.array.iterator.js");
|
|
16
16
|
|
|
17
|
-
require("core-js/modules/es.string.iterator");
|
|
17
|
+
require("core-js/modules/es.string.iterator.js");
|
|
18
18
|
|
|
19
|
-
require("core-js/modules/web.dom-collections.iterator");
|
|
19
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
20
20
|
|
|
21
21
|
Object.defineProperty(exports, "__esModule", {
|
|
22
22
|
value: true
|
|
23
23
|
});
|
|
24
24
|
exports.default = void 0;
|
|
25
25
|
|
|
26
|
+
require("core-js/modules/es.function.name.js");
|
|
27
|
+
|
|
28
|
+
require("core-js/modules/es.object.get-prototype-of.js");
|
|
29
|
+
|
|
26
30
|
var _shouldComponentUpdate = _interopRequireDefault(require("../../helpers/should-component-update"));
|
|
27
31
|
|
|
28
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
33
|
|
|
30
|
-
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
31
|
-
|
|
32
34
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
33
35
|
|
|
34
36
|
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); } }
|
|
35
37
|
|
|
36
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
38
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
37
39
|
|
|
38
|
-
function
|
|
40
|
+
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); }
|
|
39
41
|
|
|
40
|
-
function
|
|
42
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
41
43
|
|
|
42
|
-
function
|
|
44
|
+
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); }; }
|
|
43
45
|
|
|
44
|
-
function
|
|
46
|
+
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); }
|
|
45
47
|
|
|
46
|
-
function
|
|
48
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
49
|
+
|
|
50
|
+
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; } }
|
|
51
|
+
|
|
52
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
47
53
|
|
|
48
54
|
/**
|
|
49
55
|
* ShouldComponentUpdate Decorator.
|
|
@@ -72,20 +78,20 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
72
78
|
* @return {Object} Decorated Component
|
|
73
79
|
*/
|
|
74
80
|
var ShouldComponentUpdate = function ShouldComponentUpdate(ComposedComponent) {
|
|
75
|
-
var Component =
|
|
76
|
-
/*#__PURE__*/
|
|
77
|
-
function (_ComposedComponent) {
|
|
81
|
+
var Component = /*#__PURE__*/function (_ComposedComponent) {
|
|
78
82
|
_inherits(Component, _ComposedComponent);
|
|
79
83
|
|
|
84
|
+
var _super = _createSuper(Component);
|
|
85
|
+
|
|
80
86
|
function Component() {
|
|
81
87
|
_classCallCheck(this, Component);
|
|
82
88
|
|
|
83
|
-
return
|
|
89
|
+
return _super.apply(this, arguments);
|
|
84
90
|
}
|
|
85
91
|
|
|
86
92
|
_createClass(Component, [{
|
|
87
93
|
key: "shouldComponentUpdate",
|
|
88
|
-
|
|
94
|
+
value:
|
|
89
95
|
/**
|
|
90
96
|
* Lifecycle hook to calculate if the component should re-render
|
|
91
97
|
*
|
|
@@ -94,7 +100,7 @@ var ShouldComponentUpdate = function ShouldComponentUpdate(ComposedComponent) {
|
|
|
94
100
|
* @param nextState - The next state for component
|
|
95
101
|
* @return {Boolean}
|
|
96
102
|
*/
|
|
97
|
-
|
|
103
|
+
function shouldComponentUpdate(nextProps, nextState) {
|
|
98
104
|
return (0, _shouldComponentUpdate.default)(this, nextProps, nextState);
|
|
99
105
|
}
|
|
100
106
|
}]);
|
|
@@ -1,34 +1,38 @@
|
|
|
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.reflect.get.js");
|
|
12
12
|
|
|
13
|
-
require("core-js/modules/es.
|
|
13
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
14
14
|
|
|
15
|
-
require("core-js/modules/es.
|
|
15
|
+
require("core-js/modules/es.symbol.js");
|
|
16
16
|
|
|
17
|
-
require("core-js/modules/es.
|
|
17
|
+
require("core-js/modules/es.symbol.description.js");
|
|
18
18
|
|
|
19
|
-
require("core-js/modules/es.
|
|
19
|
+
require("core-js/modules/es.symbol.iterator.js");
|
|
20
20
|
|
|
21
|
-
require("core-js/modules/es.
|
|
21
|
+
require("core-js/modules/es.array.iterator.js");
|
|
22
22
|
|
|
23
|
-
require("core-js/modules/es.string.iterator");
|
|
23
|
+
require("core-js/modules/es.string.iterator.js");
|
|
24
24
|
|
|
25
|
-
require("core-js/modules/web.dom-collections.iterator");
|
|
25
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
26
26
|
|
|
27
27
|
Object.defineProperty(exports, "__esModule", {
|
|
28
28
|
value: true
|
|
29
29
|
});
|
|
30
30
|
exports.default = void 0;
|
|
31
31
|
|
|
32
|
+
require("core-js/modules/es.array.concat.js");
|
|
33
|
+
|
|
34
|
+
require("core-js/modules/es.function.name.js");
|
|
35
|
+
|
|
32
36
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
33
37
|
|
|
34
38
|
var _react = _interopRequireDefault(require("react"));
|
|
@@ -47,27 +51,29 @@ var _ether = require("../../ether");
|
|
|
47
51
|
|
|
48
52
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
49
53
|
|
|
50
|
-
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
51
|
-
|
|
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; }
|
|
57
59
|
|
|
58
|
-
function
|
|
60
|
+
function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
|
|
59
61
|
|
|
60
|
-
function
|
|
62
|
+
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
|
|
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); }; }
|
|
65
69
|
|
|
66
|
-
function
|
|
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); }
|
|
67
71
|
|
|
68
|
-
function
|
|
72
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
73
|
+
|
|
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
|
|
|
@@ -145,14 +151,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
145
151
|
* @return {Object} Decorated Component
|
|
146
152
|
*/
|
|
147
153
|
var TooltipDecorator = function TooltipDecorator(ComposedComponent) {
|
|
148
|
-
var Component =
|
|
149
|
-
/*#__PURE__*/
|
|
150
|
-
function (_ComposedComponent) {
|
|
154
|
+
var Component = /*#__PURE__*/function (_ComposedComponent) {
|
|
151
155
|
_inherits(Component, _ComposedComponent);
|
|
152
156
|
|
|
153
|
-
|
|
154
|
-
var _getPrototypeOf2;
|
|
157
|
+
var _super = _createSuper(Component);
|
|
155
158
|
|
|
159
|
+
function Component() {
|
|
156
160
|
var _this;
|
|
157
161
|
|
|
158
162
|
_classCallCheck(this, Component);
|
|
@@ -161,7 +165,7 @@ var TooltipDecorator = function TooltipDecorator(ComposedComponent) {
|
|
|
161
165
|
args[_key] = arguments[_key];
|
|
162
166
|
}
|
|
163
167
|
|
|
164
|
-
_this =
|
|
168
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
165
169
|
|
|
166
170
|
_defineProperty(_assertThisInitialized(_this), "_showTooltipTimeout", null);
|
|
167
171
|
|
|
@@ -292,12 +296,12 @@ var TooltipDecorator = function TooltipDecorator(ComposedComponent) {
|
|
|
292
296
|
|
|
293
297
|
_createClass(Component, [{
|
|
294
298
|
key: "componentWillUpdate",
|
|
295
|
-
|
|
299
|
+
value:
|
|
296
300
|
/**
|
|
297
301
|
* @method componentWillUpdate
|
|
298
302
|
* @return {Void}
|
|
299
303
|
*/
|
|
300
|
-
|
|
304
|
+
function componentWillUpdate(nextProps, nextState) {
|
|
301
305
|
if (_get(_getPrototypeOf(Component.prototype), "componentWillUpdate", this)) {
|
|
302
306
|
_get(_getPrototypeOf(Component.prototype), "componentWillUpdate", this).call(this, nextProps, nextState);
|
|
303
307
|
}
|
|
@@ -344,14 +348,14 @@ var TooltipDecorator = function TooltipDecorator(ComposedComponent) {
|
|
|
344
348
|
}
|
|
345
349
|
}, {
|
|
346
350
|
key: "componentProps",
|
|
347
|
-
|
|
351
|
+
get:
|
|
348
352
|
/**
|
|
349
353
|
* Additional Props for decorated component
|
|
350
354
|
*
|
|
351
355
|
* @method componentProps
|
|
352
356
|
* @return {Object} props
|
|
353
357
|
*/
|
|
354
|
-
|
|
358
|
+
function get() {
|
|
355
359
|
var props = _get(_getPrototypeOf(Component.prototype), "componentProps", this) || {};
|
|
356
360
|
|
|
357
361
|
if (this.props.tooltipMessage) {
|
|
@@ -376,9 +380,9 @@ var TooltipDecorator = function TooltipDecorator(ComposedComponent) {
|
|
|
376
380
|
get: function get() {
|
|
377
381
|
var _this2 = this;
|
|
378
382
|
|
|
379
|
-
return this.props.tooltipMessage && this.state.isVisible && _react.default.createElement(_portal.default, {
|
|
383
|
+
return this.props.tooltipMessage && this.state.isVisible && /*#__PURE__*/_react.default.createElement(_portal.default, {
|
|
380
384
|
key: "tooltip"
|
|
381
|
-
}, _react.default.createElement(_tooltip.default, {
|
|
385
|
+
}, /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
382
386
|
align: this.props.tooltipAlign,
|
|
383
387
|
"data-element": "tooltip",
|
|
384
388
|
isVisible: this.state.isVisible,
|
package/lib/utils/ether/ether.js
CHANGED
|
@@ -1,20 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("core-js/modules/es.array.
|
|
3
|
+
require("core-js/modules/es.array.includes.js");
|
|
4
4
|
|
|
5
|
-
require("core-js/modules/es.
|
|
6
|
-
|
|
7
|
-
require("core-js/modules/es.array.join");
|
|
8
|
-
|
|
9
|
-
require("core-js/modules/es.object.keys");
|
|
10
|
-
|
|
11
|
-
require("core-js/modules/es.object.to-string");
|
|
12
|
-
|
|
13
|
-
require("core-js/modules/es.regexp.to-string");
|
|
14
|
-
|
|
15
|
-
require("core-js/modules/es.string.includes");
|
|
16
|
-
|
|
17
|
-
require("core-js/modules/es.string.match");
|
|
5
|
+
require("core-js/modules/es.string.includes.js");
|
|
18
6
|
|
|
19
7
|
Object.defineProperty(exports, "__esModule", {
|
|
20
8
|
value: true
|
|
@@ -25,6 +13,20 @@ exports.insertAt = insertAt;
|
|
|
25
13
|
exports.styleElement = styleElement;
|
|
26
14
|
exports.validProps = validProps;
|
|
27
15
|
|
|
16
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
17
|
+
|
|
18
|
+
require("core-js/modules/es.string.match.js");
|
|
19
|
+
|
|
20
|
+
require("core-js/modules/es.array.join.js");
|
|
21
|
+
|
|
22
|
+
require("core-js/modules/es.array.concat.js");
|
|
23
|
+
|
|
24
|
+
require("core-js/modules/es.object.to-string.js");
|
|
25
|
+
|
|
26
|
+
require("core-js/modules/es.regexp.to-string.js");
|
|
27
|
+
|
|
28
|
+
require("core-js/modules/es.object.keys.js");
|
|
29
|
+
|
|
28
30
|
var _lodash = require("lodash");
|
|
29
31
|
|
|
30
32
|
/**
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("core-js/modules/es.array.filter");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.array.includes");
|
|
6
|
-
|
|
7
|
-
require("core-js/modules/es.array.map");
|
|
8
|
-
|
|
9
|
-
require("core-js/modules/es.string.includes");
|
|
10
|
-
|
|
11
3
|
Object.defineProperty(exports, "__esModule", {
|
|
12
4
|
value: true
|
|
13
5
|
});
|
|
14
6
|
exports.default = void 0;
|
|
15
7
|
|
|
8
|
+
require("core-js/modules/es.array.includes.js");
|
|
9
|
+
|
|
10
|
+
require("core-js/modules/es.string.includes.js");
|
|
11
|
+
|
|
12
|
+
require("core-js/modules/es.array.filter.js");
|
|
13
|
+
|
|
14
|
+
require("core-js/modules/es.object.to-string.js");
|
|
15
|
+
|
|
16
|
+
require("core-js/modules/es.array.map.js");
|
|
17
|
+
|
|
16
18
|
var _react = _interopRequireDefault(require("react"));
|
|
17
19
|
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("core-js/modules/es.object.keys");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/web.dom-collections.for-each");
|
|
6
|
-
|
|
7
3
|
Object.defineProperty(exports, "__esModule", {
|
|
8
4
|
value: true
|
|
9
5
|
});
|
|
10
6
|
exports.default = void 0;
|
|
11
7
|
|
|
8
|
+
require("core-js/modules/es.object.to-string.js");
|
|
9
|
+
|
|
10
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
11
|
+
|
|
12
|
+
require("core-js/modules/es.object.keys.js");
|
|
13
|
+
|
|
14
|
+
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); } }
|
|
15
|
+
|
|
16
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
|
+
|
|
12
18
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
19
|
|
|
14
20
|
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; }
|
|
@@ -30,7 +36,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
30
36
|
* @class BaseRegistry
|
|
31
37
|
* @constructor
|
|
32
38
|
*/
|
|
33
|
-
var BaseRegistry = function BaseRegistry() {
|
|
39
|
+
var BaseRegistry = /*#__PURE__*/_createClass(function BaseRegistry() {
|
|
34
40
|
var _this = this;
|
|
35
41
|
|
|
36
42
|
_classCallCheck(this, BaseRegistry);
|
|
@@ -39,13 +45,6 @@ var BaseRegistry = function BaseRegistry() {
|
|
|
39
45
|
call: function call(data) {
|
|
40
46
|
return data;
|
|
41
47
|
}
|
|
42
|
-
/**
|
|
43
|
-
* Property to store any registered handlers.
|
|
44
|
-
*
|
|
45
|
-
* @property handlers
|
|
46
|
-
* @type {Object}
|
|
47
|
-
*/
|
|
48
|
-
|
|
49
48
|
});
|
|
50
49
|
|
|
51
50
|
_defineProperty(this, "handlers", {});
|
|
@@ -79,7 +78,7 @@ var BaseRegistry = function BaseRegistry() {
|
|
|
79
78
|
|
|
80
79
|
return handlers;
|
|
81
80
|
});
|
|
82
|
-
};
|
|
81
|
+
});
|
|
83
82
|
|
|
84
83
|
var _default = BaseRegistry;
|
|
85
84
|
exports.default = _default;
|