ywana-core8 0.0.850 → 0.0.852

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/dist/index.cjs CHANGED
@@ -128,15 +128,15 @@ var HTTPClient = function HTTPClient(domain, securityCtx) {
128
128
  var token = securityCtx ? securityCtx.token() : null;
129
129
  return fetchAsync('POST', domain + URL, body, token, headers);
130
130
  },
131
- PUT: function PUT(URL, body) {
131
+ PUT: function PUT(URL, body, headers) {
132
132
  var token = securityCtx ? securityCtx.token() : null;
133
133
  return fetchAsync('PUT', domain + URL, body, token, headers);
134
134
  },
135
- PATCH: function PATCH(URL, body) {
135
+ PATCH: function PATCH(URL, body, headers) {
136
136
  var token = securityCtx ? securityCtx.token() : null;
137
137
  return fetchAsync('PATCH', domain + URL, body, token, headers);
138
138
  },
139
- DELETE: function DELETE(URL) {
139
+ DELETE: function DELETE(URL, headers) {
140
140
  var token = securityCtx ? securityCtx.token() : null;
141
141
  return fetchAsync('DELETE', domain + URL, undefined, token, headers);
142
142
  }
@@ -1703,7 +1703,10 @@ var DataTable = function DataTable(props) {
1703
1703
  label = _ref.label,
1704
1704
  type = _ref.type,
1705
1705
  item = _ref.item,
1706
- sortable = _ref.sortable;
1706
+ sortable = _ref.sortable,
1707
+ _ref$resizable = _ref.resizable,
1708
+ resizable = _ref$resizable === void 0 ? false : _ref$resizable;
1709
+ var resizableStyle = resizable ? "resizable-column" : "";
1707
1710
  var _ref2 = type === TYPES$1.ENTITY ? [1, Object.values(item).filter(function (v) {
1708
1711
  return v.column === true;
1709
1712
  }).length] : [2, 1],
@@ -1711,6 +1714,7 @@ var DataTable = function DataTable(props) {
1711
1714
  colspan = _ref2[1];
1712
1715
  return /*#__PURE__*/React__default["default"].createElement("th", {
1713
1716
  key: id,
1717
+ className: resizableStyle,
1714
1718
  rowSpan: rowspan,
1715
1719
  colSpan: colspan
1716
1720
  }, /*#__PURE__*/React__default["default"].createElement("div", null, id === "checked" && onCheckAll ? /*#__PURE__*/React__default["default"].createElement(CheckBox, {