ps-toolkit-ui 1.11.73 → 1.11.74

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.
@@ -2138,6 +2138,29 @@
2138
2138
  }
2139
2139
  return l;
2140
2140
  };
2141
+ InputClass.prototype.getSelectedRows = function (rows) {
2142
+ var e_5, _b;
2143
+ if (rows === void 0) { rows = this.rows; }
2144
+ var l = [];
2145
+ try {
2146
+ for (var rows_1 = __values(rows), rows_1_1 = rows_1.next(); !rows_1_1.done; rows_1_1 = rows_1.next()) {
2147
+ var f = rows_1_1.value;
2148
+ if (f.selected && (!this.onlyChild || f.children.length === 0)) {
2149
+ l.push(f);
2150
+ }
2151
+ var rs = this.getSelectedRows(f.children);
2152
+ l = l.concat(rs);
2153
+ }
2154
+ }
2155
+ catch (e_5_1) { e_5 = { error: e_5_1 }; }
2156
+ finally {
2157
+ try {
2158
+ if (rows_1_1 && !rows_1_1.done && (_b = rows_1.return)) _b.call(rows_1);
2159
+ }
2160
+ finally { if (e_5) throw e_5.error; }
2161
+ }
2162
+ return l;
2163
+ };
2141
2164
  return InputClass;
2142
2165
  }());
2143
2166
  var OptionClass = /** @class */ (function () {
@@ -2188,7 +2211,7 @@
2188
2211
  this.rows = rows;
2189
2212
  }
2190
2213
  AccordionClass.prototype.check = function () {
2191
- var e_5, _b;
2214
+ var e_6, _b;
2192
2215
  try {
2193
2216
  for (var _c = __values(this.rows), _d = _c.next(); !_d.done; _d = _c.next()) {
2194
2217
  var row = _d.value;
@@ -2198,12 +2221,12 @@
2198
2221
  }
2199
2222
  }
2200
2223
  }
2201
- catch (e_5_1) { e_5 = { error: e_5_1 }; }
2224
+ catch (e_6_1) { e_6 = { error: e_6_1 }; }
2202
2225
  finally {
2203
2226
  try {
2204
2227
  if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
2205
2228
  }
2206
- finally { if (e_5) throw e_5.error; }
2229
+ finally { if (e_6) throw e_6.error; }
2207
2230
  }
2208
2231
  return true;
2209
2232
  };