@yuneta/gobj-js 7.7.2 → 7.7.3

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.
@@ -1712,9 +1712,9 @@ function wr(e, t, n) {
1712
1712
  e && !Yn(e) && fn("GObj bad instanceof");
1713
1713
  let r = {};
1714
1714
  if (xn(n) || (t = nr(e, t, n)), Pn(t)) r = t;
1715
- else if (Un(t)) for (let e = 0; e < t.length; e++) {
1716
- let n = t[e], l = sr(n, "id", null, !1);
1717
- xn(l) || (r[l] = n);
1715
+ else if (Un(t)) for (let n = 0; n < t.length; n++) {
1716
+ let l = t[n], i = sr(e, l, "id", "", 0);
1717
+ xn(i) || (r[i] = l);
1718
1718
  }
1719
1719
  else fn(`${Xe(e)} kwid_new_dict: data type unknown`);
1720
1720
  return r;
@@ -2255,7 +2255,8 @@ function Dl(e) {
2255
2255
  is_hidden: !1,
2256
2256
  default_value: e.default,
2257
2257
  placeholder: e.placeholder,
2258
- fillspace: e.fillspace || 4
2258
+ fillspace: e.fillspace || 4,
2259
+ fkey: e.fkey || null
2259
2260
  };
2260
2261
  if (!e.flag) return t;
2261
2262
  for (let n = 0; n < e.flag.length; n++) {
@@ -2295,7 +2296,8 @@ function Rl(e, t) {
2295
2296
  is_writable: !1,
2296
2297
  is_hidden: !1,
2297
2298
  default_value: void 0,
2298
- placeholder: void 0
2299
+ placeholder: void 0,
2300
+ fkey: null
2299
2301
  };
2300
2302
  if (Cn(t)) {
2301
2303
  let e = t.split(".");
@@ -2321,7 +2323,8 @@ function Rl(e, t) {
2321
2323
  function jl(e, t) {
2322
2324
  let n = {};
2323
2325
  return t || (t = {}), Object.entries(e).forEach(([e, r]) => {
2324
- n[e] = _r(null, t, e, _r(r, "default"));
2326
+ let l;
2327
+ Pn(r) && (l = r.default), n[e] = _r(null, t, e, l);
2325
2328
  }), n;
2326
2329
  }
2327
2330
  var $l = [