cx 24.9.4 → 24.10.1

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 (73) hide show
  1. package/dist/charts.css +19 -16
  2. package/dist/charts.js +129 -94
  3. package/dist/data.js +29 -26
  4. package/dist/manifest.js +718 -718
  5. package/dist/svg.js +56 -59
  6. package/dist/ui.js +52 -51
  7. package/dist/widgets.js +44 -40
  8. package/package.json +32 -32
  9. package/src/charts/Legend.js +49 -33
  10. package/src/charts/Legend.scss +40 -42
  11. package/src/charts/LegendEntry.js +120 -121
  12. package/src/charts/LegendEntry.scss +27 -31
  13. package/src/charts/PieChart.d.ts +92 -89
  14. package/src/charts/PieChart.js +529 -527
  15. package/src/charts/PieLabel.js +71 -71
  16. package/src/charts/axis/NumericAxis.js +347 -347
  17. package/src/charts/axis/Stack.js +55 -55
  18. package/src/charts/helpers/PointReducer.js +43 -43
  19. package/src/charts/helpers/SnapPointFinder.js +69 -69
  20. package/src/data/Binding.spec.js +69 -69
  21. package/src/data/Expression.js +221 -221
  22. package/src/data/Expression.spec.js +184 -184
  23. package/src/data/StringTemplate.spec.js +105 -105
  24. package/src/data/getAccessor.spec.js +11 -11
  25. package/src/index.scss +6 -6
  26. package/src/svg/Text.d.ts +40 -40
  27. package/src/ui/Culture.d.ts +55 -55
  28. package/src/ui/Culture.js +139 -139
  29. package/src/ui/FocusManager.js +171 -171
  30. package/src/ui/Instance.d.ts +72 -72
  31. package/src/ui/VDOM.d.ts +12 -12
  32. package/src/ui/app/startAppLoop.js +58 -58
  33. package/src/ui/index.d.ts +42 -42
  34. package/src/ui/layout/LabelsTopLayout.js +134 -134
  35. package/src/util/Console.d.ts +4 -4
  36. package/src/util/index.d.ts +51 -51
  37. package/src/util/index.js +54 -54
  38. package/src/util/isValidIdentifierName.d.ts +1 -1
  39. package/src/util/isValidIdentifierName.js +5 -5
  40. package/src/util/isValidIdentifierName.spec.js +33 -33
  41. package/src/util/scss/add-rules.scss +38 -38
  42. package/src/widgets/CxCredit.scss +37 -37
  43. package/src/widgets/HighlightedSearchText.js +36 -36
  44. package/src/widgets/HighlightedSearchText.scss +18 -18
  45. package/src/widgets/List.scss +91 -91
  46. package/src/widgets/drag-drop/DropZone.js +214 -214
  47. package/src/widgets/form/Calendar.scss +196 -196
  48. package/src/widgets/form/ColorField.js +397 -397
  49. package/src/widgets/form/ColorPicker.scss +283 -283
  50. package/src/widgets/form/DateTimeField.js +573 -573
  51. package/src/widgets/form/LookupField.d.ts +179 -179
  52. package/src/widgets/form/MonthField.js +516 -516
  53. package/src/widgets/form/MonthPicker.scss +118 -118
  54. package/src/widgets/form/NumberField.js +459 -459
  55. package/src/widgets/form/NumberField.scss +61 -61
  56. package/src/widgets/form/Select.scss +99 -99
  57. package/src/widgets/form/Slider.scss +118 -118
  58. package/src/widgets/form/Switch.scss +140 -140
  59. package/src/widgets/form/TextArea.scss +43 -43
  60. package/src/widgets/form/TextField.js +290 -290
  61. package/src/widgets/form/TextField.scss +55 -55
  62. package/src/widgets/form/UploadButton.d.ts +34 -34
  63. package/src/widgets/form/variables.scss +353 -353
  64. package/src/widgets/grid/TreeNode.scss +88 -88
  65. package/src/widgets/grid/variables.scss +88 -88
  66. package/src/widgets/nav/Menu.scss +74 -74
  67. package/src/widgets/overlay/Dropdown.js +612 -612
  68. package/src/widgets/overlay/FlyweightTooltipTracker.js +39 -39
  69. package/src/widgets/overlay/Tooltip.js +300 -300
  70. package/src/widgets/overlay/Window.js +196 -196
  71. package/src/widgets/overlay/captureMouse.js +124 -124
  72. package/src/widgets/overlay/variables.scss +83 -83
  73. package/src/widgets/variables.scss +144 -144
package/dist/charts.css CHANGED
@@ -80,27 +80,30 @@
80
80
  }
81
81
 
82
82
  .cxb-legend {
83
- text-align: center;
83
+ display: flex;
84
+ justify-content: center;
85
+ align-items: flex-start;
86
+ flex-wrap: wrap;
87
+ gap: 5px 10px;
88
+ }
89
+
90
+ .cxb-legend.cxs-vertical {
91
+ flex-direction: column;
84
92
  }
85
93
 
86
94
  .cxe-legend-entry {
87
- display: inline-block;
88
- padding: 5px 5px 5px 30px;
95
+ display: flex;
96
+ align-items: center;
97
+ padding: 5px;
98
+ gap: 5px;
89
99
  font-size: smaller;
90
100
  position: relative;
91
- margin: 5px;
92
101
  box-sizing: border-box;
93
102
  cursor: pointer;
94
103
  }
95
- .cxb-legend.cxs-vertical .cxe-legend-entry {
96
- display: block;
97
- text-align: left;
98
- }
99
104
 
100
105
  .cxe-legend-svg {
101
- position: absolute;
102
- left: 5px;
103
- top: 50%;
106
+ flex-shrink: 0;
104
107
  }
105
108
 
106
109
  .cxe-legend-shape {
@@ -108,17 +111,17 @@
108
111
  }
109
112
 
110
113
  .cxb-legendentry {
111
- display: inline-block;
112
- padding: 5px 0 5px 30px;
114
+ display: inline-flex;
115
+ align-items: center;
116
+ padding: 5px;
117
+ gap: 5px;
113
118
  position: relative;
114
119
  box-sizing: border-box;
115
120
  cursor: pointer;
116
121
  }
117
122
 
118
123
  .cxe-legendentry-svg {
119
- position: absolute;
120
- left: 5px;
121
- top: 50%;
124
+ flex-shrink: 0;
122
125
  }
123
126
 
124
127
  .cxe-legendentry-shape {
package/dist/charts.js CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  shallowEquals,
18
18
  debug,
19
19
  isDefined,
20
- stopPropagation,
20
+ isNonEmptyArray,
21
21
  closest,
22
22
  getTopLevelBoundingClientRect,
23
23
  Format,
@@ -37,31 +37,34 @@ import {
37
37
  } from "cx/widgets";
38
38
 
39
39
  function _extends() {
40
- return (
41
- (_extends = Object.assign
42
- ? Object.assign.bind()
43
- : function (n) {
44
- for (var e = 1; e < arguments.length; e++) {
45
- var t = arguments[e];
46
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
40
+ _extends = Object.assign
41
+ ? Object.assign.bind()
42
+ : function (target) {
43
+ for (var i = 1; i < arguments.length; i++) {
44
+ var source = arguments[i];
45
+ for (var key in source) {
46
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
47
+ target[key] = source[key];
48
+ }
47
49
  }
48
- return n;
49
- }),
50
- _extends.apply(null, arguments)
51
- );
50
+ }
51
+ return target;
52
+ };
53
+ return _extends.apply(this, arguments);
52
54
  }
53
- function _inheritsLoose(t, o) {
54
- (t.prototype = Object.create(o.prototype)), (t.prototype.constructor = t), _setPrototypeOf(t, o);
55
+ function _inheritsLoose(subClass, superClass) {
56
+ subClass.prototype = Object.create(superClass.prototype);
57
+ subClass.prototype.constructor = subClass;
58
+ _setPrototypeOf(subClass, superClass);
55
59
  }
56
- function _setPrototypeOf(t, e) {
57
- return (
58
- (_setPrototypeOf = Object.setPrototypeOf
59
- ? Object.setPrototypeOf.bind()
60
- : function (t, e) {
61
- return (t.__proto__ = e), t;
62
- }),
63
- _setPrototypeOf(t, e)
64
- );
60
+ function _setPrototypeOf(o, p) {
61
+ _setPrototypeOf = Object.setPrototypeOf
62
+ ? Object.setPrototypeOf.bind()
63
+ : function _setPrototypeOf(o, p) {
64
+ o.__proto__ = p;
65
+ return o;
66
+ };
67
+ return _setPrototypeOf(o, p);
65
68
  }
66
69
 
67
70
  var Rect = /*#__PURE__*/ (function () {
@@ -848,6 +851,7 @@ var PieSlice = /*#__PURE__*/ (function (_Container) {
848
851
  legend: undefined,
849
852
  hoverId: undefined,
850
853
  br: undefined,
854
+ legendDisplayText: undefined,
851
855
  },
852
856
  ]),
853
857
  );
@@ -927,6 +931,7 @@ var PieSlice = /*#__PURE__*/ (function (_Container) {
927
931
  hoverId: data.hoverId,
928
932
  hoverChannel: this.hoverChannel,
929
933
  hoverSync: instance.hoverSync,
934
+ displayText: data.legendDisplayText,
930
935
  onClick: function onClick(e) {
931
936
  _this2.onLegendClick(e, instance);
932
937
  },
@@ -1654,13 +1659,6 @@ var Legend = /*#__PURE__*/ (function (_HtmlElement) {
1654
1659
  }
1655
1660
  _inheritsLoose(Legend, _HtmlElement);
1656
1661
  var _proto = Legend.prototype;
1657
- _proto.prepareData = function prepareData(context, instance) {
1658
- var data = instance.data;
1659
- data.stateMods = Object.assign(data.stateMods || {}, {
1660
- vertical: this.vertical,
1661
- });
1662
- _HtmlElement.prototype.prepareData.call(this, context, instance);
1663
- };
1664
1662
  _proto.declareData = function declareData() {
1665
1663
  var _HtmlElement$prototyp;
1666
1664
  (_HtmlElement$prototyp = _HtmlElement.prototype.declareData).call.apply(
@@ -1668,15 +1666,34 @@ var Legend = /*#__PURE__*/ (function (_HtmlElement) {
1668
1666
  [this].concat(Array.prototype.slice.call(arguments), [
1669
1667
  {
1670
1668
  shape: undefined,
1669
+ entryStyle: {
1670
+ structured: true,
1671
+ },
1672
+ entryClass: {
1673
+ structured: true,
1674
+ },
1671
1675
  },
1672
1676
  ]),
1673
1677
  );
1674
1678
  };
1679
+ _proto.init = function init() {
1680
+ this.entryStyle = parseStyle(this.entryStyle);
1681
+ _HtmlElement.prototype.init.call(this);
1682
+ };
1683
+ _proto.prepareData = function prepareData(context, instance) {
1684
+ var data = instance.data;
1685
+ data.stateMods = Object.assign(data.stateMods || {}, {
1686
+ vertical: this.vertical,
1687
+ });
1688
+ _HtmlElement.prototype.prepareData.call(this, context, instance);
1689
+ };
1675
1690
  _proto.isValidHtmlAttribute = function isValidHtmlAttribute(attrName) {
1676
1691
  switch (attrName) {
1677
1692
  case "shapeSize":
1678
1693
  case "svgSize":
1679
1694
  case "shape":
1695
+ case "entryStyle":
1696
+ case "entryClass":
1680
1697
  return false;
1681
1698
  default:
1682
1699
  return _HtmlElement.prototype.isValidHtmlAttribute.call(this, attrName);
@@ -1708,42 +1725,48 @@ var Legend = /*#__PURE__*/ (function (_HtmlElement) {
1708
1725
  var CSS = this.CSS;
1709
1726
  var entries = instance.legends[this.name] && instance.legends[this.name].entries,
1710
1727
  list;
1711
- if (isArray(entries) && entries.length > 0) {
1712
- list = /*#__PURE__*/ jsx(
1713
- "div",
1714
- {
1715
- className: CSS.element(this.baseClass, "wrap"),
1716
- children: entries.map(function (e, i) {
1717
- return withHoverSync(i, e.hoverSync, e.hoverChannel, e.hoverId, function (_ref) {
1718
- var onMouseMove = _ref.onMouseMove,
1719
- onMouseLeave = _ref.onMouseLeave,
1720
- hover = _ref.hover;
1721
- return /*#__PURE__*/ jsxs(
1722
- "div",
1723
- {
1724
- className: CSS.element(_this.baseClass, "entry", {
1725
- "color-root": true,
1726
- hover: hover,
1727
- disabled: e.disabled,
1728
- selected: e.selected,
1729
- }),
1730
- onClick: e.onClick,
1731
- onMouseMove: onMouseMove,
1732
- onMouseLeave: onMouseLeave,
1733
- children: [_this.renderShape(e, instance.data.shape), e.name],
1734
- },
1735
- i,
1736
- );
1737
- });
1738
- }),
1739
- },
1740
- "wrap",
1741
- );
1728
+ var _instance$data = instance.data,
1729
+ entryClass = _instance$data.entryClass,
1730
+ entryStyle = _instance$data.entryStyle,
1731
+ shape = _instance$data.shape;
1732
+ if (isNonEmptyArray(entries)) {
1733
+ list = entries.map(function (e, i) {
1734
+ return withHoverSync(i, e.hoverSync, e.hoverChannel, e.hoverId, function (_ref) {
1735
+ var onMouseMove = _ref.onMouseMove,
1736
+ onMouseLeave = _ref.onMouseLeave,
1737
+ hover = _ref.hover;
1738
+ return /*#__PURE__*/ jsxs(
1739
+ "div",
1740
+ {
1741
+ className: CSS.expand(
1742
+ CSS.element(_this.baseClass, "entry", {
1743
+ "color-root": true,
1744
+ hover: hover,
1745
+ disabled: e.disabled,
1746
+ selected: e.selected,
1747
+ }),
1748
+ entryClass,
1749
+ ),
1750
+ style: entryStyle,
1751
+ onClick: e.onClick,
1752
+ onMouseMove: onMouseMove,
1753
+ onMouseLeave: onMouseLeave,
1754
+ children: [
1755
+ _this.renderShape(e, shape),
1756
+ /*#__PURE__*/ jsx("div", {
1757
+ children: e.displayText || e.name,
1758
+ }),
1759
+ ],
1760
+ },
1761
+ i,
1762
+ );
1763
+ });
1764
+ });
1742
1765
  }
1743
1766
  return [list, _HtmlElement.prototype.renderChildren.call(this, context, instance)];
1744
1767
  };
1745
1768
  _proto.renderShape = function renderShape(entry, legendEntriesShape) {
1746
- var _this$CSS$element;
1769
+ var _this$CSS$element, _style$fill, _style$stroke;
1747
1770
  var className = this.CSS.element(
1748
1771
  this.baseClass,
1749
1772
  "shape",
@@ -1753,15 +1776,19 @@ var Legend = /*#__PURE__*/ (function (_HtmlElement) {
1753
1776
  _this$CSS$element),
1754
1777
  );
1755
1778
  var shape = getShape(legendEntriesShape || entry.shape || "square");
1779
+
1780
+ // if the entry has a custom fill or stroke set, use it for both values
1781
+ var style = _extends({}, entry.style);
1782
+ style.fill = (_style$fill = style.fill) != null ? _style$fill : style.stroke;
1783
+ style.stroke = (_style$stroke = style.stroke) != null ? _style$stroke : style.fill;
1756
1784
  return /*#__PURE__*/ jsx("svg", {
1757
1785
  className: this.CSS.element(this.baseClass, "svg"),
1758
1786
  style: {
1759
1787
  width: this.svgSize + "px",
1760
1788
  height: this.svgSize + "px",
1761
- marginTop: -this.svgSize / 2 + "px",
1762
1789
  },
1763
1790
  children: shape(this.svgSize / 2, this.svgSize / 2, entry.shapeSize || this.shapeSize, {
1764
- style: entry.style,
1791
+ style: style,
1765
1792
  className: className,
1766
1793
  }),
1767
1794
  });
@@ -1799,21 +1826,21 @@ Legend.Scope = /*#__PURE__*/ (function (_PureContainer) {
1799
1826
  })(PureContainer);
1800
1827
  var LegendScope = Legend.Scope;
1801
1828
 
1802
- var LegendEntry = /*#__PURE__*/ (function (_HtmlElement) {
1829
+ var LegendEntry = /*#__PURE__*/ (function (_Container) {
1803
1830
  function LegendEntry() {
1804
- return _HtmlElement.apply(this, arguments) || this;
1831
+ return _Container.apply(this, arguments) || this;
1805
1832
  }
1806
- _inheritsLoose(LegendEntry, _HtmlElement);
1833
+ _inheritsLoose(LegendEntry, _Container);
1807
1834
  var _proto = LegendEntry.prototype;
1808
1835
  _proto.init = function init() {
1809
1836
  this.selection = Selection.create(this.selection);
1810
- _HtmlElement.prototype.init.call(this);
1837
+ _Container.prototype.init.call(this);
1811
1838
  };
1812
1839
  _proto.declareData = function declareData() {
1813
- var _HtmlElement$prototyp;
1840
+ var _Container$prototype$;
1814
1841
  var selection = this.selection.configureWidget(this);
1815
- (_HtmlElement$prototyp = _HtmlElement.prototype.declareData).call.apply(
1816
- _HtmlElement$prototyp,
1842
+ (_Container$prototype$ = _Container.prototype.declareData).call.apply(
1843
+ _Container$prototype$,
1817
1844
  [this].concat(Array.prototype.slice.call(arguments), [
1818
1845
  selection,
1819
1846
  {
@@ -1827,6 +1854,7 @@ var LegendEntry = /*#__PURE__*/ (function (_HtmlElement) {
1827
1854
  size: undefined,
1828
1855
  rx: undefined,
1829
1856
  ry: undefined,
1857
+ text: undefined,
1830
1858
  },
1831
1859
  ]),
1832
1860
  );
@@ -1834,13 +1862,13 @@ var LegendEntry = /*#__PURE__*/ (function (_HtmlElement) {
1834
1862
  _proto.prepareData = function prepareData(context, instance) {
1835
1863
  var data = instance.data;
1836
1864
  if (data.name && !data.colorName) data.colorName = data.name;
1837
- _HtmlElement.prototype.prepareData.call(this, context, instance);
1865
+ _Container.prototype.prepareData.call(this, context, instance);
1838
1866
  };
1839
1867
  _proto.explore = function explore(context, instance) {
1840
1868
  var data = instance.data;
1841
1869
  instance.colorMap = data.colorMap && context.getColorMap && context.getColorMap(data.colorMap);
1842
1870
  if (instance.colorMap && data.colorName) instance.colorMap.acknowledge(data.colorName);
1843
- _HtmlElement.prototype.explore.call(this, context, instance);
1871
+ _Container.prototype.explore.call(this, context, instance);
1844
1872
  };
1845
1873
  _proto.prepare = function prepare(context, instance) {
1846
1874
  var data = instance.data,
@@ -1850,23 +1878,6 @@ var LegendEntry = /*#__PURE__*/ (function (_HtmlElement) {
1850
1878
  if (instance.cache("colorIndex", data.colorIndex)) instance.markShouldUpdate(context);
1851
1879
  }
1852
1880
  };
1853
- _proto.attachProps = function attachProps(context, instance, props) {
1854
- var _this = this;
1855
- var shape = this.renderShape(instance);
1856
- props.children = [shape, props.children];
1857
- props.onMouseDown = stopPropagation;
1858
- props.onClick = function (e) {
1859
- _this.handleClick(e, instance);
1860
- };
1861
- delete props.active;
1862
- delete props.selection;
1863
- delete props.colorMap;
1864
- delete props.colorIndex;
1865
- delete props.shape;
1866
- delete props.name;
1867
- delete props.selected;
1868
- delete props.svgSize;
1869
- };
1870
1881
  _proto.handleClick = function handleClick(e, instance) {
1871
1882
  if (this.onClick && instance.invoke("onClick", e, instance) === false) return;
1872
1883
  e.stopPropagation();
@@ -1874,8 +1885,27 @@ var LegendEntry = /*#__PURE__*/ (function (_HtmlElement) {
1874
1885
  if (any || this.legendAction == "toggle") if (instance.set("active", !instance.data.active)) return;
1875
1886
  if ((any || this.legendAction == "select") && !this.selection.isDummy) this.selection.selectInstance(instance);
1876
1887
  };
1888
+ _proto.render = function render(context, instance, key) {
1889
+ var data = instance.data;
1890
+ var content = !isUndefined(this.text) ? data.text : this.renderChildren(context, instance);
1891
+ return /*#__PURE__*/ jsxs(
1892
+ "div",
1893
+ {
1894
+ className: data.classNames,
1895
+ style: data.style,
1896
+ children: [
1897
+ this.renderShape(instance),
1898
+ content != null &&
1899
+ /*#__PURE__*/ jsx("div", {
1900
+ children: content,
1901
+ }),
1902
+ ],
1903
+ },
1904
+ key,
1905
+ );
1906
+ };
1877
1907
  _proto.renderShape = function renderShape(instance) {
1878
- var _this$CSS$element;
1908
+ var _this$CSS$element, _style$fill, _style$stroke;
1879
1909
  var entry = instance.data;
1880
1910
  var className = this.CSS.element(
1881
1911
  this.baseClass,
@@ -1889,6 +1919,11 @@ var LegendEntry = /*#__PURE__*/ (function (_HtmlElement) {
1889
1919
  _this$CSS$element),
1890
1920
  );
1891
1921
  var shape = getShape(entry.shape || "square");
1922
+
1923
+ // if the entry has a custom fill or stroke set, use it for both values
1924
+ var style = _extends({}, entry.style);
1925
+ style.fill = (_style$fill = style.fill) != null ? _style$fill : style.stroke;
1926
+ style.stroke = (_style$stroke = style.stroke) != null ? _style$stroke : style.fill;
1892
1927
  return /*#__PURE__*/ jsx(
1893
1928
  "svg",
1894
1929
  {
@@ -1896,10 +1931,9 @@ var LegendEntry = /*#__PURE__*/ (function (_HtmlElement) {
1896
1931
  style: {
1897
1932
  width: this.svgSize + "px",
1898
1933
  height: this.svgSize + "px",
1899
- marginTop: -this.svgSize / 2 + "px",
1900
1934
  },
1901
1935
  children: shape(this.svgSize / 2, this.svgSize / 2, entry.size, {
1902
- style: entry.style,
1936
+ style: style,
1903
1937
  className: className,
1904
1938
  rx: entry.rx,
1905
1939
  ry: entry.ry,
@@ -1909,12 +1943,13 @@ var LegendEntry = /*#__PURE__*/ (function (_HtmlElement) {
1909
1943
  );
1910
1944
  };
1911
1945
  return LegendEntry;
1912
- })(HtmlElement);
1946
+ })(Container);
1913
1947
  LegendEntry.prototype.baseClass = "legendentry";
1914
1948
  LegendEntry.prototype.shape = "square";
1915
1949
  LegendEntry.prototype.legendAction = "auto";
1916
1950
  LegendEntry.prototype.size = 18;
1917
1951
  LegendEntry.prototype.svgSize = 20;
1952
+ LegendEntry.prototype.styled = true;
1918
1953
  Widget.alias("legend-entry", LegendEntry);
1919
1954
 
1920
1955
  var ColorMap = /*#__PURE__*/ (function (_Widget) {
package/dist/data.js CHANGED
@@ -118,23 +118,6 @@ function _construct(t, e, r) {
118
118
  var p = new (t.bind.apply(t, o))();
119
119
  return p;
120
120
  }
121
- function _extends() {
122
- return (
123
- (_extends = Object.assign
124
- ? Object.assign.bind()
125
- : function (n) {
126
- for (var e = 1; e < arguments.length; e++) {
127
- var t = arguments[e];
128
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
129
- }
130
- return n;
131
- }),
132
- _extends.apply(null, arguments)
133
- );
134
- }
135
- function _inheritsLoose(t, o) {
136
- (t.prototype = Object.create(o.prototype)), (t.prototype.constructor = t), _setPrototypeOf(t, o);
137
- }
138
121
  function _isNativeReflectConstruct() {
139
122
  try {
140
123
  var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
@@ -143,15 +126,35 @@ function _isNativeReflectConstruct() {
143
126
  return !!t;
144
127
  })();
145
128
  }
146
- function _setPrototypeOf(t, e) {
147
- return (
148
- (_setPrototypeOf = Object.setPrototypeOf
149
- ? Object.setPrototypeOf.bind()
150
- : function (t, e) {
151
- return (t.__proto__ = e), t;
152
- }),
153
- _setPrototypeOf(t, e)
154
- );
129
+ function _extends() {
130
+ _extends = Object.assign
131
+ ? Object.assign.bind()
132
+ : function (target) {
133
+ for (var i = 1; i < arguments.length; i++) {
134
+ var source = arguments[i];
135
+ for (var key in source) {
136
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
137
+ target[key] = source[key];
138
+ }
139
+ }
140
+ }
141
+ return target;
142
+ };
143
+ return _extends.apply(this, arguments);
144
+ }
145
+ function _inheritsLoose(subClass, superClass) {
146
+ subClass.prototype = Object.create(superClass.prototype);
147
+ subClass.prototype.constructor = subClass;
148
+ _setPrototypeOf(subClass, superClass);
149
+ }
150
+ function _setPrototypeOf(o, p) {
151
+ _setPrototypeOf = Object.setPrototypeOf
152
+ ? Object.setPrototypeOf.bind()
153
+ : function _setPrototypeOf(o, p) {
154
+ o.__proto__ = p;
155
+ return o;
156
+ };
157
+ return _setPrototypeOf(o, p);
155
158
  }
156
159
 
157
160
  function computable() {