@crystaldesign/grid 25.10.0 → 25.11.0-beta.10

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 (2) hide show
  1. package/build/esm/index.js +20 -0
  2. package/package.json +5 -5
@@ -3372,6 +3372,9 @@ function addColumns(allColumns, _ref) {
3372
3372
  return [editColumn].concat(_toConsumableArray(allColumns));
3373
3373
  }
3374
3374
 
3375
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
3376
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
3377
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
3375
3378
  function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3376
3379
  function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3377
3380
  function useHightlight (hooks) {
@@ -3384,6 +3387,23 @@ function getCellProps(props, meta) {
3384
3387
  props.style = _objectSpread$3(_objectSpread$3({}, props.style), hightlight.style);
3385
3388
  } else if (typeof hightlight == 'function') {
3386
3389
  props.style = _objectSpread$3(_objectSpread$3({}, props.style), hightlight(meta.cell));
3390
+ } else if (Array.isArray(hightlight)) {
3391
+ var _iterator = _createForOfIteratorHelper(hightlight),
3392
+ _step;
3393
+ try {
3394
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
3395
+ var _h$match, _h$match2, _h$match3;
3396
+ var h = _step.value;
3397
+ if (_typeof(h) == 'object' && h !== null && h !== void 0 && (_h$match = h.match) !== null && _h$match !== void 0 && _h$match.accessor && (h !== null && h !== void 0 && (_h$match2 = h.match) !== null && _h$match2 !== void 0 && _h$match2.value && meta.cell.row.original[h.match.accessor] == h.match.value || h !== null && h !== void 0 && (_h$match3 = h.match) !== null && _h$match3 !== void 0 && _h$match3.values && h.match.values.includes(meta.cell.row.original[h.match.accessor]))) {
3398
+ props.style = _objectSpread$3(_objectSpread$3({}, props.style), h.style);
3399
+ break;
3400
+ }
3401
+ }
3402
+ } catch (err) {
3403
+ _iterator.e(err);
3404
+ } finally {
3405
+ _iterator.f();
3406
+ }
3387
3407
  }
3388
3408
  return props;
3389
3409
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/grid",
3
- "version": "25.10.0",
3
+ "version": "25.11.0-beta.10",
4
4
  "license": "COMMERCIAL",
5
5
  "devDependencies": {
6
6
  "@mui/x-date-pickers": "^7.22.0",
@@ -12,9 +12,9 @@
12
12
  "react-dom": "18.3.1"
13
13
  },
14
14
  "dependencies": {
15
- "@crystaldesign/content-box": "25.10.0",
16
- "@crystaldesign/rtf-editor": "25.10.0",
17
- "@crystaldesign/searchfield": "25.10.0",
15
+ "@crystaldesign/content-box": "25.11.0-beta.10",
16
+ "@crystaldesign/rtf-editor": "25.11.0-beta.10",
17
+ "@crystaldesign/searchfield": "25.11.0-beta.10",
18
18
  "@hello-pangea/dnd": "^18.0.1",
19
19
  "@mui/icons-material": "^6.1.5",
20
20
  "@mui/lab": "^6.0.0-beta.13",
@@ -40,5 +40,5 @@
40
40
  },
41
41
  "module": "build/esm/index.js",
42
42
  "types": "./build/types/grid/src/index.d.ts",
43
- "gitHead": "e3d750e3ecfd456c5566f5c1de38ab3863211cc6"
43
+ "gitHead": "e39e8ae856a4f4e4c04c6ef7a3597e0a2e611c92"
44
44
  }