ps-toolkit-ui 1.12.8 → 1.12.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.
@@ -1323,6 +1323,9 @@
1323
1323
  }
1324
1324
  return tn.join(' ');
1325
1325
  };
1326
+ HelperClass.groupBy = function (data, iteratee) {
1327
+ return _.groupBy(data, iteratee);
1328
+ };
1326
1329
  return HelperClass;
1327
1330
  }());
1328
1331
 
@@ -2183,6 +2186,29 @@
2183
2186
  }
2184
2187
  return l;
2185
2188
  };
2189
+ InputClass.prototype.getAllRows = function (rows) {
2190
+ var e_6, _b;
2191
+ if (rows === void 0) { rows = this.rows; }
2192
+ var l = [];
2193
+ try {
2194
+ for (var rows_2 = __values(rows), rows_2_1 = rows_2.next(); !rows_2_1.done; rows_2_1 = rows_2.next()) {
2195
+ var f = rows_2_1.value;
2196
+ if (!this.onlyChild || f.children.length === 0) {
2197
+ l.push(f);
2198
+ }
2199
+ var rs = this.getAllRows(f.children);
2200
+ l = l.concat(rs);
2201
+ }
2202
+ }
2203
+ catch (e_6_1) { e_6 = { error: e_6_1 }; }
2204
+ finally {
2205
+ try {
2206
+ if (rows_2_1 && !rows_2_1.done && (_b = rows_2.return)) _b.call(rows_2);
2207
+ }
2208
+ finally { if (e_6) throw e_6.error; }
2209
+ }
2210
+ return l;
2211
+ };
2186
2212
  return InputClass;
2187
2213
  }());
2188
2214
  var OptionClass = /** @class */ (function () {
@@ -2233,7 +2259,7 @@
2233
2259
  this.rows = rows;
2234
2260
  }
2235
2261
  AccordionClass.prototype.check = function () {
2236
- var e_6, _b;
2262
+ var e_7, _b;
2237
2263
  try {
2238
2264
  for (var _c = __values(this.rows), _d = _c.next(); !_d.done; _d = _c.next()) {
2239
2265
  var row = _d.value;
@@ -2243,12 +2269,12 @@
2243
2269
  }
2244
2270
  }
2245
2271
  }
2246
- catch (e_6_1) { e_6 = { error: e_6_1 }; }
2272
+ catch (e_7_1) { e_7 = { error: e_7_1 }; }
2247
2273
  finally {
2248
2274
  try {
2249
2275
  if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
2250
2276
  }
2251
- finally { if (e_6) throw e_6.error; }
2277
+ finally { if (e_7) throw e_7.error; }
2252
2278
  }
2253
2279
  return true;
2254
2280
  };