@opencitylabs/formio-custom-components 0.7.0 → 0.7.2

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/dist/index.js CHANGED
@@ -21,7 +21,7 @@ import A from "accessible-autocomplete/react";
21
21
  import j, { tileLayer as M } from "leaflet";
22
22
  import ce, { debounce as le } from "lodash";
23
23
  //#region \0rolldown/runtime.js
24
- var N = Object.create, P = Object.defineProperty, F = Object.getOwnPropertyDescriptor, ue = Object.getOwnPropertyNames, de = Object.getPrototypeOf, fe = Object.prototype.hasOwnProperty, I = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), pe = (e, t, n, r) => {
24
+ var N = Object.create, P = Object.defineProperty, F = Object.getOwnPropertyDescriptor, ue = Object.getOwnPropertyNames, de = Object.getPrototypeOf, fe = Object.prototype.hasOwnProperty, I = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), pe = (e, t, n, r) => {
25
25
  if (t && typeof t == "object" || typeof t == "function") for (var i = ue(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !fe.call(e, s) && s !== n && P(e, s, {
26
26
  get: ((e) => t[e]).bind(null, s),
27
27
  enumerable: !(r = F(t, s)) || r.enumerable
@@ -2690,7 +2690,7 @@ var Ze = {
2690
2690
  var t, n, r = [], i, a, o;
2691
2691
  if (!e._d) {
2692
2692
  for (i = Un(e), e._w && e._a[qe] == null && e._a[Ke] == null && Gn(e), e._dayOfYear != null && (o = Hn(e._a[Ge], i[Ge]), (e._dayOfYear > $e(o) || e._dayOfYear === 0) && (h(e)._overflowDayOfYear = !0), n = Tt(o, 0, e._dayOfYear), e._a[Ke] = n.getUTCMonth(), e._a[qe] = n.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t) e._a[t] = r[t] = i[t];
2693
- for (; t < 7; t++) e._a[t] = r[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
2693
+ for (; t < 7; t++) e._a[t] = r[t] = e._a[t] == null ? +(t === 2) : e._a[t];
2694
2694
  e._a[q] === 24 && e._a[Je] === 0 && e._a[Ye] === 0 && e._a[Xe] === 0 && (e._nextDay = !0, e._a[q] = 0), e._d = (e._useUTC ? Tt : wt).apply(null, r), a = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[q] = 24), e._w && e._w.d !== void 0 && e._w.d !== a && (h(e).weekdayMismatch = !0);
2695
2695
  }
2696
2696
  }
@@ -6272,7 +6272,7 @@ var zt = /* @__PURE__ */ I(((e, t) => {
6272
6272
  })), on = /* @__PURE__ */ I(((e, t) => {
6273
6273
  function n(e) {
6274
6274
  var t = this.has(e) && delete this.__data__[e];
6275
- return this.size -= t ? 1 : 0, t;
6275
+ return this.size -= +!!t, t;
6276
6276
  }
6277
6277
  t.exports = n;
6278
6278
  })), sn = /* @__PURE__ */ I(((e, t) => {
@@ -6297,7 +6297,7 @@ var zt = /* @__PURE__ */ I(((e, t) => {
6297
6297
  var n = rn(), r = "__lodash_hash_undefined__";
6298
6298
  function i(e, t) {
6299
6299
  var i = this.__data__;
6300
- return this.size += this.has(e) ? 0 : 1, i[e] = n && t === void 0 ? r : t, this;
6300
+ return this.size += +!this.has(e), i[e] = n && t === void 0 ? r : t, this;
6301
6301
  }
6302
6302
  t.exports = i;
6303
6303
  })), un = /* @__PURE__ */ I(((e, t) => {
@@ -6393,7 +6393,7 @@ var zt = /* @__PURE__ */ I(((e, t) => {
6393
6393
  var n = xn();
6394
6394
  function r(e) {
6395
6395
  var t = n(this, e).delete(e);
6396
- return this.size -= t ? 1 : 0, t;
6396
+ return this.size -= +!!t, t;
6397
6397
  }
6398
6398
  t.exports = r;
6399
6399
  })), Cn = /* @__PURE__ */ I(((e, t) => {
@@ -7926,10 +7926,17 @@ function fr(e) {
7926
7926
  static schema(...t) {
7927
7927
  return e.schema({ resetValueOn: "" }, ...t);
7928
7928
  }
7929
+ attach(e) {
7930
+ this._resetValueOnReady = !1;
7931
+ let t = super.attach(e);
7932
+ return setTimeout(() => {
7933
+ this._resetValueOnReady = !0;
7934
+ }, 0), t;
7935
+ }
7929
7936
  checkRefreshOn(e, t = {}) {
7930
7937
  super.checkRefreshOn(e, t);
7931
7938
  let { resetValueOn: n } = this.component;
7932
- !n || !e?.length || e.some((e) => n === "data" ? !0 : e.instance?.path === n || e.path === n) && this.setValue(this.emptyValue);
7939
+ !n || !e?.length || this._resetValueOnReady && e.some((e) => n === "data" ? !0 : e.instance?.path === n || e.path === n) && this.setValue(this.emptyValue);
7933
7940
  }
7934
7941
  };
7935
7942
  }