@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.
@@ -1657,7 +1657,8 @@
1657
1657
  is_hidden: !1,
1658
1658
  default_value: e.default,
1659
1659
  placeholder: e.placeholder,
1660
- fillspace: e.fillspace || 4
1660
+ fillspace: e.fillspace || 4,
1661
+ fkey: e.fkey || null
1661
1662
  };
1662
1663
  if (!e.flag) return t;
1663
1664
  for (let n = 0; n < e.flag.length; n++) {
@@ -2136,7 +2137,8 @@
2136
2137
  }, e.create_template_record = function(e, t) {
2137
2138
  let n = {};
2138
2139
  return t || (t = {}), Object.entries(e).forEach(([e, r]) => {
2139
- n[e] = hn(null, t, e, hn(r, "default"));
2140
+ let o;
2141
+ Qt(r) && (o = r.default), n[e] = hn(null, t, e, o);
2140
2142
  }), n;
2141
2143
  }, e.current_timestamp = Kn, e.data_type_t = E, e.db_list_persistent_attrs = function(e, t) {
2142
2144
  let n = On(Jn(e), null, !1), r = {};
@@ -2494,9 +2496,9 @@
2494
2496
  e && !nn(e) && Rt("GObj bad instanceof");
2495
2497
  let r = {};
2496
2498
  if (rn(n) || (t = cn(e, t, n)), Qt(t)) r = t;
2497
- else if (qt(t)) for (let e = 0; e < t.length; e++) {
2498
- let n = t[e], o = bn(n, "id", null, !1);
2499
- rn(o) || (r[o] = n);
2499
+ else if (qt(t)) for (let n = 0; n < t.length; n++) {
2500
+ let o = t[n], i = bn(e, o, "id", "", 0);
2501
+ rn(i) || (r[i] = o);
2500
2502
  }
2501
2503
  else Rt(`${we(e)} kwid_new_dict: data type unknown`);
2502
2504
  return r;
@@ -2718,7 +2720,8 @@
2718
2720
  is_writable: !1,
2719
2721
  is_hidden: !1,
2720
2722
  default_value: void 0,
2721
- placeholder: void 0
2723
+ placeholder: void 0,
2724
+ fkey: null
2722
2725
  };
2723
2726
  if (Ht(t)) {
2724
2727
  let e = t.split(".");