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.
Files changed (170) hide show
  1. package/change_log/v8_1_4/position_date_picker.yml +1 -0
  2. package/change_log/v8_1_5/fix_path.yml +1 -0
  3. package/lib/__experimental__/components/input/input-presentation.component.js +35 -29
  4. package/lib/__experimental__/components/input/input.component.js +36 -28
  5. package/lib/__experimental__/components/input-decorator-bridge/input-decorator-bridge.component.js +45 -35
  6. package/lib/__experimental__/components/select/index.js +4 -4
  7. package/lib/__experimental__/components/select/option.component.js +6 -4
  8. package/lib/__experimental__/components/select/select-list.component.js +39 -35
  9. package/lib/__experimental__/components/select/select.component.js +45 -39
  10. package/lib/__experimental__/components/select-async/index.js +4 -4
  11. package/lib/__experimental__/components/select-async/select-async.component.js +53 -37
  12. package/lib/__experimental__/components/textbox/textbox.component.js +6 -4
  13. package/lib/__spec_helper__/index.js +1 -1
  14. package/lib/components/action-toolbar/action-toolbar.js +43 -37
  15. package/lib/components/alert/alert.js +35 -29
  16. package/lib/components/alert/alert.stories.js +4 -4
  17. package/lib/components/animated-menu-button/animated-menu-button.js +36 -32
  18. package/lib/components/animated-menu-button/animated-menu-button.stories.js +16 -24
  19. package/lib/components/app-wrapper/app-wrapper.js +29 -25
  20. package/lib/components/app-wrapper/app-wrapper.stories.js +1 -1
  21. package/lib/components/button/button.js +30 -26
  22. package/lib/components/button/button.stories.js +1 -1
  23. package/lib/components/button-toggle/button-toggle.js +52 -46
  24. package/lib/components/button-toggle/button-toggle.stories.js +23 -15
  25. package/lib/components/button-toggle-group/button-toggle-group.js +54 -48
  26. package/lib/components/button-toggle-group/button-toggle-group.stories.js +4 -4
  27. package/lib/components/carousel/carousel.js +48 -42
  28. package/lib/components/carousel/slide/slide.js +4 -4
  29. package/lib/components/checkbox/checkbox.js +68 -72
  30. package/lib/components/configurable-items/configurable-item-row/configurable-item-row.js +37 -33
  31. package/lib/components/configurable-items/configurable-items.js +38 -34
  32. package/lib/components/confirm/confirm.js +60 -54
  33. package/lib/components/content/content.js +31 -25
  34. package/lib/components/create/create.js +32 -24
  35. package/lib/components/date/date.js +216 -194
  36. package/lib/components/date/navbar/navbar.js +5 -5
  37. package/lib/components/date-range/date-range.js +97 -93
  38. package/lib/components/decimal/decimal.js +62 -56
  39. package/lib/components/detail/detail.js +51 -47
  40. package/lib/components/dialog/dialog.js +80 -72
  41. package/lib/components/dialog-full-screen/dialog-full-screen.js +53 -47
  42. package/lib/components/dialog-full-screen/full-screen-heading/full-screen-heading.js +9 -7
  43. package/lib/components/drag-and-drop/custom-drag-layer/custom-drag-layer.js +28 -24
  44. package/lib/components/drag-and-drop/drag-and-drop.js +6 -6
  45. package/lib/components/drag-and-drop/draggable-context/draggable-context.js +40 -37
  46. package/lib/components/drag-and-drop/with-drag/with-drag.js +26 -22
  47. package/lib/components/drag-and-drop/with-drop/with-drop.js +26 -20
  48. package/lib/components/dropdown/dropdown.js +146 -143
  49. package/lib/components/dropdown-filter/dropdown-filter.js +94 -88
  50. package/lib/components/dropdown-filter-ajax/dropdown-filter-ajax.js +54 -50
  51. package/lib/components/fieldset/fieldset.js +50 -42
  52. package/lib/components/filter/filter.js +43 -46
  53. package/lib/components/flash/flash.js +72 -64
  54. package/lib/components/form/cancel-button/cancel-button.js +11 -11
  55. package/lib/components/form/form-summary/form-summary.js +7 -7
  56. package/lib/components/form/form.js +68 -69
  57. package/lib/components/form/save-button/save-button.js +11 -11
  58. package/lib/components/grouped-character/grouped-character.js +49 -43
  59. package/lib/components/heading/heading.js +65 -59
  60. package/lib/components/help/help.js +46 -40
  61. package/lib/components/i18n/i18n.js +30 -22
  62. package/lib/components/icon/icon.js +55 -51
  63. package/lib/components/inline-inputs/inline-inputs.js +6 -6
  64. package/lib/components/link/link.js +45 -37
  65. package/lib/components/menu/menu-item/menu-item.js +55 -49
  66. package/lib/components/menu/menu.js +47 -41
  67. package/lib/components/menu/submenu-block/submenu-block.js +43 -37
  68. package/lib/components/menu-list/menu-list-item/menu-list-item.js +29 -25
  69. package/lib/components/menu-list/menu-list.js +49 -43
  70. package/lib/components/message/message.js +47 -41
  71. package/lib/components/modal/modal.js +77 -71
  72. package/lib/components/mount-in-app/mount-in-app.js +32 -26
  73. package/lib/components/multi-action-button/multi-action-button.js +52 -46
  74. package/lib/components/multi-step-wizard/multi-step-wizard.js +60 -54
  75. package/lib/components/multi-step-wizard/step/step.js +68 -69
  76. package/lib/components/navigation-bar/navigation-bar.js +44 -38
  77. package/lib/components/number/number.js +58 -52
  78. package/lib/components/pager/pager.js +75 -71
  79. package/lib/components/pages/page/page.js +6 -6
  80. package/lib/components/pages/pages.js +4 -4
  81. package/lib/components/pill/pill.js +33 -27
  82. package/lib/components/pod/pod.js +84 -80
  83. package/lib/components/portal/portal.js +34 -26
  84. package/lib/components/portrait/portrait.js +52 -48
  85. package/lib/components/preview/preview.js +4 -4
  86. package/lib/components/profile/profile.js +51 -45
  87. package/lib/components/radio-button/radio-button.js +51 -45
  88. package/lib/components/rainbow/rainbow.js +44 -38
  89. package/lib/components/row/column/column.js +1 -1
  90. package/lib/components/row/row.js +47 -41
  91. package/lib/components/scrollable-list/as-scrollable-list-item.wrapper.js +8 -8
  92. package/lib/components/scrollable-list/scrollable-list-item.component.js +27 -35
  93. package/lib/components/scrollable-list/scrollable-list.component.js +53 -37
  94. package/lib/components/scrollable-list/scrollable-list.style.js +5 -13
  95. package/lib/components/scrollable-list/test-utils.js +38 -28
  96. package/lib/components/settings-row/settings-row.js +49 -43
  97. package/lib/components/show-edit-pod/show-edit-pod.js +67 -63
  98. package/lib/components/sidebar/sidebar-header/sidebar-header.js +43 -37
  99. package/lib/components/sidebar/sidebar.js +54 -48
  100. package/lib/components/simple-color-picker/color-option/color-option.js +47 -41
  101. package/lib/components/simple-color-picker/simple-color-picker.js +53 -47
  102. package/lib/components/spinner/spinner.js +43 -37
  103. package/lib/components/split-button/split-button.js +69 -69
  104. package/lib/components/step-sequence/step-sequence-item/step-sequence-item.js +15 -13
  105. package/lib/components/step-sequence/step-sequence.js +4 -4
  106. package/lib/components/switch/switch.js +23 -21
  107. package/lib/components/table/draggable-table-cell/draggable-table-cell.js +4 -4
  108. package/lib/components/table/table-cell/table-cell.js +45 -39
  109. package/lib/components/table/table-header/table-header.js +107 -110
  110. package/lib/components/table/table-row/table-row.js +62 -58
  111. package/lib/components/table/table-subheader/table-subheader.js +32 -26
  112. package/lib/components/table/table.js +166 -169
  113. package/lib/components/table-ajax/table-ajax.js +67 -70
  114. package/lib/components/tabs/tab/tab.js +48 -44
  115. package/lib/components/tabs/tabs.js +73 -67
  116. package/lib/components/textarea/textarea.js +52 -49
  117. package/lib/components/textbox/textbox.js +49 -43
  118. package/lib/components/toast/toast.js +56 -50
  119. package/lib/components/tooltip/tooltip.js +47 -41
  120. package/lib/patterns/configurable-items/configurable-items-content/configurable-items-content.js +35 -29
  121. package/lib/patterns/configurable-items/configurable-items.js +55 -51
  122. package/lib/patterns/configurable-items/store/store.js +35 -27
  123. package/lib/style/index.js +1 -1
  124. package/lib/style/palette/index.js +4 -2
  125. package/lib/style/themes/base/index.js +7 -7
  126. package/lib/style/themes/test-utils.js +19 -21
  127. package/lib/style/utils/add-hex-symbols.js +4 -2
  128. package/lib/style/utils/at-opacity.js +10 -8
  129. package/lib/style/utils/merge-deep.js +15 -15
  130. package/lib/style/utils/mix.js +32 -20
  131. package/lib/utils/decorators/input/input.js +46 -42
  132. package/lib/utils/decorators/input-icon/input-icon.js +37 -33
  133. package/lib/utils/decorators/input-label/input-label.js +37 -31
  134. package/lib/utils/decorators/input-validation/input-validation.js +40 -36
  135. package/lib/utils/decorators/should-component-update/should-component-update.js +29 -23
  136. package/lib/utils/decorators/tooltip-decorator/tooltip-decorator.js +38 -34
  137. package/lib/utils/ether/ether.js +16 -14
  138. package/lib/utils/filter-children/filter-children.util.js +10 -8
  139. package/lib/utils/handlers/base-registry/base-registry.js +12 -13
  140. package/lib/utils/helpers/browser/browser.js +15 -13
  141. package/lib/utils/helpers/date/date.js +4 -2
  142. package/lib/utils/helpers/element-resize/element-resize.js +6 -4
  143. package/lib/utils/helpers/events/events.js +2 -2
  144. package/lib/utils/helpers/guid/guid.js +6 -6
  145. package/lib/utils/helpers/i18n/i18n.js +11 -9
  146. package/lib/utils/helpers/immutable/immutable.js +13 -13
  147. package/lib/utils/helpers/options-helper/options-helper.js +2 -1
  148. package/lib/utils/helpers/prop-types/prop-types.js +2 -2
  149. package/lib/utils/helpers/scrollable-parent/scrollable-parent.js +2 -0
  150. package/lib/utils/helpers/serialize/serialize.js +12 -12
  151. package/lib/utils/helpers/tags/tags-specs/tags-specs.js +6 -4
  152. package/lib/utils/helpers/to-array/to-array.js +8 -6
  153. package/lib/utils/router/router.js +2 -2
  154. package/lib/utils/service/service.js +34 -34
  155. package/lib/utils/validations/blank/blank.js +6 -2
  156. package/lib/utils/validations/date/date.js +6 -2
  157. package/lib/utils/validations/date-range/date-range.js +6 -2
  158. package/lib/utils/validations/date-within-range/date-within-range.js +6 -2
  159. package/lib/utils/validations/email/email.js +6 -2
  160. package/lib/utils/validations/exclusion/exclusion.js +6 -2
  161. package/lib/utils/validations/inclusion/inclusion.js +6 -2
  162. package/lib/utils/validations/length/length.js +6 -2
  163. package/lib/utils/validations/numeral/numeral-type/numeral-type.js +8 -2
  164. package/lib/utils/validations/numeral/numeral.js +6 -2
  165. package/lib/utils/validations/presence/presence.js +12 -4
  166. package/lib/utils/validations/regex/regex.js +8 -2
  167. package/lib/utils/validations/validator/validator.js +14 -14
  168. package/package.json +13 -13
  169. package/release_notes/v8_1_4.html.md +5 -0
  170. package/release_notes/v8_1_5.html.md +5 -0
@@ -1,40 +1,31 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/es.symbol");
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.symbol.description");
5
+ require("core-js/modules/es.object.get-prototype-of.js");
6
6
 
7
- require("core-js/modules/es.symbol.iterator");
7
+ require("core-js/modules/es.reflect.construct.js");
8
8
 
9
- require("core-js/modules/es.array.concat");
9
+ require("core-js/modules/es.reflect.get.js");
10
10
 
11
- require("core-js/modules/es.array.filter");
11
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
12
12
 
13
- require("core-js/modules/es.array.iterator");
13
+ require("core-js/modules/es.symbol.js");
14
14
 
15
- require("core-js/modules/es.number.constructor");
15
+ require("core-js/modules/es.symbol.description.js");
16
16
 
17
- require("core-js/modules/es.object.get-own-property-descriptor");
17
+ require("core-js/modules/es.symbol.iterator.js");
18
18
 
19
- require("core-js/modules/es.object.get-prototype-of");
19
+ require("core-js/modules/es.array.iterator.js");
20
20
 
21
- require("core-js/modules/es.object.to-string");
21
+ require("core-js/modules/es.string.iterator.js");
22
22
 
23
- require("core-js/modules/es.reflect.get");
24
-
25
- require("core-js/modules/es.string.iterator");
26
-
27
- require("core-js/modules/web.dom-collections.iterator");
23
+ require("core-js/modules/web.dom-collections.iterator.js");
28
24
 
29
25
  Object.defineProperty(exports, "__esModule", {
30
26
  value: true
31
27
  });
32
- Object.defineProperty(exports, "TableRow", {
33
- enumerable: true,
34
- get: function get() {
35
- return _table.TableRow;
36
- }
37
- });
28
+ exports.TableAjax = void 0;
38
29
  Object.defineProperty(exports, "TableCell", {
39
30
  enumerable: true,
40
31
  get: function get() {
@@ -47,13 +38,26 @@ Object.defineProperty(exports, "TableHeader", {
47
38
  return _table.TableHeader;
48
39
  }
49
40
  });
41
+ Object.defineProperty(exports, "TableRow", {
42
+ enumerable: true,
43
+ get: function get() {
44
+ return _table.TableRow;
45
+ }
46
+ });
50
47
  Object.defineProperty(exports, "TableSubheader", {
51
48
  enumerable: true,
52
49
  get: function get() {
53
50
  return _table.TableSubheader;
54
51
  }
55
52
  });
56
- exports.TableAjax = void 0;
53
+
54
+ require("core-js/modules/es.array.concat.js");
55
+
56
+ require("core-js/modules/es.number.constructor.js");
57
+
58
+ require("core-js/modules/es.array.filter.js");
59
+
60
+ require("core-js/modules/es.object.to-string.js");
57
61
 
58
62
  var _propTypes = _interopRequireDefault(require("prop-types"));
59
63
 
@@ -67,27 +71,29 @@ var _logger = _interopRequireDefault(require("../../utils/logger"));
67
71
 
68
72
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
69
73
 
70
- 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); }
71
-
72
74
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
73
75
 
74
76
  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); } }
75
77
 
76
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
78
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
77
79
 
78
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
80
+ 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); }
79
81
 
80
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
82
+ function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
81
83
 
82
- function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } 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(receiver); } return desc.value; }; } return _get(target, property, receiver || target); }
84
+ 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); }
83
85
 
84
- function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
86
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
85
87
 
86
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
88
+ 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); }; }
87
89
 
88
- 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 } }); if (superClass) _setPrototypeOf(subClass, superClass); }
90
+ 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); }
89
91
 
90
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
92
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
93
+
94
+ 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; } }
95
+
96
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
91
97
 
92
98
  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; }
93
99
 
@@ -110,14 +116,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
110
116
  * >
111
117
  *
112
118
  */
113
- var TableAjax =
114
- /*#__PURE__*/
115
- function (_Table) {
119
+ var TableAjax = /*#__PURE__*/function (_Table) {
116
120
  _inherits(TableAjax, _Table);
117
121
 
118
- function TableAjax() {
119
- var _getPrototypeOf2;
122
+ var _super = _createSuper(TableAjax);
120
123
 
124
+ function TableAjax() {
121
125
  var _this;
122
126
 
123
127
  _classCallCheck(this, TableAjax);
@@ -126,7 +130,7 @@ function (_Table) {
126
130
  args[_key] = arguments[_key];
127
131
  }
128
132
 
129
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(TableAjax)).call.apply(_getPrototypeOf2, [this].concat(args)));
133
+ _this = _super.call.apply(_super, [this].concat(args));
130
134
 
131
135
  _defineProperty(_assertThisInitialized(_this), "timeout", null);
132
136
 
@@ -338,7 +342,7 @@ function (_Table) {
338
342
 
339
343
  _createClass(TableAjax, [{
340
344
  key: "componentDidMount",
341
-
345
+ value:
342
346
  /**
343
347
  * Request initial data on mount
344
348
  * @override
@@ -346,7 +350,7 @@ function (_Table) {
346
350
  * @method componentDidMount
347
351
  * @return {Void}
348
352
  */
349
- value: function componentDidMount() {
353
+ function componentDidMount() {
350
354
  _get(_getPrototypeOf(TableAjax.prototype), "componentDidMount", this).call(this);
351
355
 
352
356
  this.emitOnChangeCallback('data', this.emitOptions(), 0);
@@ -404,26 +408,9 @@ function (_Table) {
404
408
  value: function componentWillUnmount() {
405
409
  this.stopTimeout();
406
410
  }
407
- }, {
408
- key: "setComponentTagsErrored",
409
- value: function setComponentTagsErrored() {
410
- this.setState({
411
- dataState: 'errored',
412
- ariaBusy: false
413
- });
414
- }
415
- /**
416
- * Formatted params for server request
417
- *
418
- * @method queryParams
419
- * @param {String} element changed element
420
- * @param {Object} options base and updated options
421
- * @return {Object} params for query
422
- */
423
-
424
411
  }, {
425
412
  key: "pageSize",
426
-
413
+ get:
427
414
  /**
428
415
  * Get pageSize for table
429
416
  * @override
@@ -431,7 +418,7 @@ function (_Table) {
431
418
  * @method pageSize
432
419
  * @return {String} table page size
433
420
  */
434
- get: function get() {
421
+ function get() {
435
422
  return this.state.pageSize;
436
423
  }
437
424
  /**
@@ -469,8 +456,25 @@ function (_Table) {
469
456
  */
470
457
 
471
458
  }, {
472
- key: "pagerProps",
459
+ key: "setComponentTagsErrored",
460
+ value: function setComponentTagsErrored() {
461
+ this.setState({
462
+ dataState: 'errored',
463
+ ariaBusy: false
464
+ });
465
+ }
466
+ /**
467
+ * Formatted params for server request
468
+ *
469
+ * @method queryParams
470
+ * @param {String} element changed element
471
+ * @param {Object} options base and updated options
472
+ * @return {Object} params for query
473
+ */
473
474
 
475
+ }, {
476
+ key: "pagerProps",
477
+ get:
474
478
  /**
475
479
  * Props to pass to pager component
476
480
  * @override
@@ -478,7 +482,7 @@ function (_Table) {
478
482
  * @method pagerProps
479
483
  * @return {Object} props
480
484
  */
481
- get: function get() {
485
+ function get() {
482
486
  return {
483
487
  currentPage: this.state.currentPage,
484
488
  pageSize: this.state.pageSize,
@@ -494,11 +498,11 @@ function (_Table) {
494
498
 
495
499
  }, {
496
500
  key: "dataComponent",
497
-
501
+ get:
498
502
  /**
499
503
  * The name used for the data-component attribute
500
504
  */
501
- get: function get() {
505
+ function get() {
502
506
  return 'table-ajax';
503
507
  }
504
508
  }]);
@@ -638,11 +642,4 @@ _defineProperty(TableAjax, "childContextTypes", {
638
642
  // the current sort order applied
639
643
  sortedColumn: _propTypes.default.string // the currently sorted column
640
644
 
641
- /**
642
- * Returns table object to child components.
643
- *
644
- * @method getChildContext
645
- * @return {void}
646
- */
647
-
648
645
  });
@@ -1,28 +1,32 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/es.symbol");
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.symbol.description");
5
+ require("core-js/modules/es.object.get-prototype-of.js");
6
6
 
7
- require("core-js/modules/es.symbol.iterator");
7
+ require("core-js/modules/es.object.to-string.js");
8
8
 
9
- require("core-js/modules/es.array.concat");
9
+ require("core-js/modules/es.reflect.construct.js");
10
10
 
11
- require("core-js/modules/es.array.iterator");
11
+ require("core-js/modules/es.symbol.js");
12
12
 
13
- require("core-js/modules/es.object.get-prototype-of");
13
+ require("core-js/modules/es.symbol.description.js");
14
14
 
15
- require("core-js/modules/es.object.to-string");
15
+ require("core-js/modules/es.symbol.iterator.js");
16
16
 
17
- require("core-js/modules/es.string.iterator");
17
+ require("core-js/modules/es.array.iterator.js");
18
18
 
19
- require("core-js/modules/web.dom-collections.iterator");
19
+ require("core-js/modules/es.string.iterator.js");
20
+
21
+ require("core-js/modules/web.dom-collections.iterator.js");
20
22
 
21
23
  Object.defineProperty(exports, "__esModule", {
22
24
  value: true
23
25
  });
24
26
  exports.default = void 0;
25
27
 
28
+ require("core-js/modules/es.array.concat.js");
29
+
26
30
  var _react = _interopRequireDefault(require("react"));
27
31
 
28
32
  var _propTypes = _interopRequireDefault(require("prop-types"));
@@ -31,23 +35,25 @@ var _classnames = _interopRequireDefault(require("classnames"));
31
35
 
32
36
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
33
37
 
34
- 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); }
35
-
36
38
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
37
39
 
38
40
  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); } }
39
41
 
40
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
42
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
43
+
44
+ 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); }
45
+
46
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
41
47
 
42
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
48
+ 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
49
 
44
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
50
+ 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
51
 
46
52
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
47
53
 
48
- 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 } }); if (superClass) _setPrototypeOf(subClass, superClass); }
54
+ 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; } }
49
55
 
50
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
56
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
51
57
 
52
58
  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; }
53
59
 
@@ -60,14 +66,12 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
60
66
  * @class Tab
61
67
  * @constructor
62
68
  */
63
- var Tab =
64
- /*#__PURE__*/
65
- function (_React$Component) {
69
+ var Tab = /*#__PURE__*/function (_React$Component) {
66
70
  _inherits(Tab, _React$Component);
67
71
 
68
- function Tab() {
69
- var _getPrototypeOf2;
72
+ var _super = _createSuper(Tab);
70
73
 
74
+ function Tab() {
71
75
  var _this;
72
76
 
73
77
  _classCallCheck(this, Tab);
@@ -76,7 +80,7 @@ function (_React$Component) {
76
80
  args[_key] = arguments[_key];
77
81
  }
78
82
 
79
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Tab)).call.apply(_getPrototypeOf2, [this].concat(args)));
83
+ _this = _super.call.apply(_super, [this].concat(args));
80
84
 
81
85
  _defineProperty(_assertThisInitialized(_this), "setValidity", function (valid) {
82
86
  _this.context.tabs.changeValidity(_this.props.tabId, valid);
@@ -91,7 +95,13 @@ function (_React$Component) {
91
95
 
92
96
  _createClass(Tab, [{
93
97
  key: "getChildContext",
94
- value: function getChildContext() {
98
+ value:
99
+ /**
100
+ * Returns tab object to context children.
101
+ *
102
+ * @method getChildContext
103
+ */
104
+ function getChildContext() {
95
105
  return {
96
106
  tab: {
97
107
  setValidity: this.setValidity,
@@ -105,21 +115,6 @@ function (_React$Component) {
105
115
  * @method mainClasses Main Class getter
106
116
  */
107
117
 
108
- }, {
109
- key: "render",
110
-
111
- /**
112
- * Renders the component.
113
- *
114
- * @method render
115
- */
116
- value: function render() {
117
- return _react.default.createElement("div", {
118
- "aria-labelledby": this.props['aria-labelledby'],
119
- className: this.mainClasses,
120
- role: this.props.role
121
- }, this.props.children);
122
- }
123
118
  }, {
124
119
  key: "mainClasses",
125
120
  get: function get() {
@@ -134,6 +129,21 @@ function (_React$Component) {
134
129
  * @param {Boolean} valid updates validity of this tab
135
130
  */
136
131
 
132
+ }, {
133
+ key: "render",
134
+ value:
135
+ /**
136
+ * Renders the component.
137
+ *
138
+ * @method render
139
+ */
140
+ function render() {
141
+ return /*#__PURE__*/_react.default.createElement("div", {
142
+ "aria-labelledby": this.props['aria-labelledby'],
143
+ className: this.mainClasses,
144
+ role: this.props.role
145
+ }, this.props.children);
146
+ }
137
147
  }]);
138
148
 
139
149
  return Tab;
@@ -221,12 +231,6 @@ _defineProperty(Tab, "childContextTypes", {
221
231
  * @type {Object}
222
232
  */
223
233
  tab: _propTypes.default.object
224
- /**
225
- * Returns tab object to context children.
226
- *
227
- * @method getChildContext
228
- */
229
-
230
234
  });
231
235
 
232
236
  var _default = Tab;