@kosdev-code/kos-ui-sdk 0.1.0-dev.5638 → 0.1.0-dev.5644

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/index.js CHANGED
@@ -9156,10 +9156,10 @@ const Mg = (t, e) => {
9156
9156
  });
9157
9157
  }, _g = (t, e) => {
9158
9158
  Z(() => {
9159
- t.changes.forEach((s) => {
9160
- const r = s.attr;
9161
- let n = s.currentValue, o = s.previousValue;
9162
- typeof n == "string" && bc(n) && (n = n.toLowerCase() == "true", o = (o == null ? void 0 : o.toLowerCase()) == "true"), typeof n == "string" && Oo(n) && (n = Number(n), o = Number(o)), e.props[r] = n, e.prevProps[r] = o;
9159
+ [...t.changes, ...t.scopedChanges].forEach((r) => {
9160
+ const n = r.attr;
9161
+ let o = r.currentValue, i = r.previousValue;
9162
+ typeof o == "string" && bc(o) && (o = o.toLowerCase() == "true", i = (i == null ? void 0 : i.toLowerCase()) == "true"), typeof o == "string" && Oo(o) && (o = Number(o), i = Number(i)), e.props[n] = o, e.prevProps[n] = i;
9163
9163
  });
9164
9164
  });
9165
9165
  }, Tg = (t) => Object.fromEntries(t.props.entries), I_ = (t) => (e) => (s) => t.build(e, s);
@@ -13051,13 +13051,13 @@ fn.addRelatedModel(Mr);
13051
13051
  fn.addRelatedModel(Bo);
13052
13052
  fn.addRelatedModel(Ar);
13053
13053
  const Jy = (t) => t.rank !== void 0, eb = (t) => t.visibleRole !== void 0, tb = (t) => t.color !== void 0, sb = (t) => {
13054
- const e = t.info;
13054
+ const e = t.info ?? {};
13055
13055
  return Jy(e) ? e.rank : 0;
13056
13056
  }, rb = (t) => {
13057
- const e = t.info;
13057
+ const e = t.info ?? {};
13058
13058
  return tb(e) ? e.color : "orange";
13059
13059
  }, nb = (t) => {
13060
- const e = t.info;
13060
+ const e = t.info ?? {};
13061
13061
  return eb(e) ? e.visibleRole : "TECHNICIAN";
13062
13062
  }, { URL: pn } = we(), { getAll: ob, postModel: ul } = pe.build({
13063
13063
  basePath: `${pn}/api/kos/troubles`