@a2simcode/ui 0.0.287 → 0.0.288

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.
@@ -6994,7 +6994,7 @@ var og = /* @__PURE__ */ xe({
6994
6994
  if (!b.value) return;
6995
6995
  y(), A = ht(), ag();
6996
6996
  const $ = ja(), Y = bn();
6997
- O && O.length >= 0 ? $.records = Jn(j(O)) : Y.length > 0 ? $.records = Jn(j(Y)) : ($.records = Jn(j(o.records)), B($.records)), m = new tt.ListTable(b.value, $), m._getAppContext = () => a?.appContext;
6997
+ O && O.length >= 0 ? $.records = Jn(j(O)) : Y.length > 0 ? $.records = Jn(j(Y)) : ($.records = Jn(j(o.records)), B([...$.records])), m = new tt.ListTable(b.value, $), m._getAppContext = () => a?.appContext;
6998
6998
  const ee = a?.provides;
6999
6999
  m._getProvides = () => ee, o.loadChildren && m.on(tt.ListTable.EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE, async (K) => {
7000
7000
  if (K.hierarchyState === tt.TYPES.HierarchyState.expand && K.originData?.children === !0) {
@@ -7186,13 +7186,15 @@ var og = /* @__PURE__ */ xe({
7186
7186
  i("rowChange", O), m.renderWithRecreateCells();
7187
7187
  }, gn = (O) => {
7188
7188
  if (!m) return;
7189
- const $ = ie();
7190
- if ($.length > 0) {
7191
- on($);
7192
- return;
7189
+ if (!O) {
7190
+ const Y = ie();
7191
+ if (Y.length > 0) {
7192
+ on(Y);
7193
+ return;
7194
+ }
7193
7195
  }
7194
- const Y = ja();
7195
- Y.records = O || m.records, m.updateOption(Y, {
7196
+ const $ = ja();
7197
+ $.records = O || m.records, m.updateOption($, {
7196
7198
  clearColWidthCache: !1,
7197
7199
  clearRowHeightCache: !1
7198
7200
  }), o.heightMode === "auto" && (x.value = m.getAllRowsHeight()), R.value = 0;
@@ -7251,7 +7253,7 @@ var og = /* @__PURE__ */ xe({
7251
7253
  type: "warning"
7252
7254
  }).then(() => {
7253
7255
  const $ = m.records, Y = new Set(O.map((K) => K._i)), ee = $.filter((K) => !Y.has(K._i));
7254
- gn(ee), B(ee), O.forEach((K) => {
7256
+ m.stateManager?.checkedState?.clear?.(), m.setCellCheckboxState?.(0, 0, !1), gn(ee), B([...ee]), O.forEach((K) => {
7255
7257
  i("change", {
7256
7258
  id: o.id,
7257
7259
  value: K,