@record-evolution/widget-form 1.0.16 → 1.0.18

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.
@@ -8,7 +8,7 @@ import "@material/web/textfield/outlined-text-field.js";
8
8
  import "@material/web/checkbox/checkbox.js";
9
9
  import "@material/web/select/outlined-select.js";
10
10
  import "@material/web/select/select-option.js";
11
- const N = globalThis, W = N.ShadowRoot && (N.ShadyCSS === void 0 || N.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, K = /* @__PURE__ */ Symbol(), Y = /* @__PURE__ */ new WeakMap();
11
+ const H = globalThis, W = H.ShadowRoot && (H.ShadyCSS === void 0 || H.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, K = /* @__PURE__ */ Symbol(), Y = /* @__PURE__ */ new WeakMap();
12
12
  let dt = class {
13
13
  constructor(t, s, i) {
14
14
  if (this._$cssResult$ = !0, i !== K) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
@@ -28,16 +28,16 @@ let dt = class {
28
28
  }
29
29
  };
30
30
  const yt = (e) => new dt(typeof e == "string" ? e : e + "", void 0, K), vt = (e, ...t) => {
31
- const s = e.length === 1 ? e[0] : t.reduce(((i, r, o) => i + ((n) => {
32
- if (n._$cssResult$ === !0) return n.cssText;
33
- if (typeof n == "number") return n;
34
- throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
35
- })(r) + e[o + 1]), e[0]);
31
+ const s = e.length === 1 ? e[0] : t.reduce(((i, r, n) => i + ((o) => {
32
+ if (o._$cssResult$ === !0) return o.cssText;
33
+ if (typeof o == "number") return o;
34
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
35
+ })(r) + e[n + 1]), e[0]);
36
36
  return new dt(s, e, K);
37
37
  }, At = (e, t) => {
38
38
  if (W) e.adoptedStyleSheets = t.map(((s) => s instanceof CSSStyleSheet ? s : s.styleSheet));
39
39
  else for (const s of t) {
40
- const i = document.createElement("style"), r = N.litNonce;
40
+ const i = document.createElement("style"), r = H.litNonce;
41
41
  r !== void 0 && i.setAttribute("nonce", r), i.textContent = s.cssText, e.appendChild(i);
42
42
  }
43
43
  }, tt = W ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
@@ -45,7 +45,7 @@ const yt = (e) => new dt(typeof e == "string" ? e : e + "", void 0, K), vt = (e,
45
45
  for (const i of t.cssRules) s += i.cssText;
46
46
  return yt(s);
47
47
  })(e) : e;
48
- const { is: xt, defineProperty: wt, getOwnPropertyDescriptor: St, getOwnPropertyNames: Et, getOwnPropertySymbols: Ct, getPrototypeOf: Pt } = Object, j = globalThis, et = j.trustedTypes, Dt = et ? et.emptyScript : "", Ot = j.reactiveElementPolyfillSupport, T = (e, t) => e, F = { toAttribute(e, t) {
48
+ const { is: xt, defineProperty: wt, getOwnPropertyDescriptor: Et, getOwnPropertyNames: St, getOwnPropertySymbols: Ct, getPrototypeOf: Pt } = Object, R = globalThis, et = R.trustedTypes, Dt = et ? et.emptyScript : "", Ot = R.reactiveElementPolyfillSupport, T = (e, t) => e, V = { toAttribute(e, t) {
49
49
  switch (t) {
50
50
  case Boolean:
51
51
  e = e ? Dt : null;
@@ -73,9 +73,9 @@ const { is: xt, defineProperty: wt, getOwnPropertyDescriptor: St, getOwnProperty
73
73
  }
74
74
  }
75
75
  return s;
76
- } }, Z = (e, t) => !xt(e, t), st = { attribute: !0, type: String, converter: F, reflect: !1, useDefault: !1, hasChanged: Z };
77
- Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), j.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
78
- let E = class extends HTMLElement {
76
+ } }, Z = (e, t) => !xt(e, t), st = { attribute: !0, type: String, converter: V, reflect: !1, useDefault: !1, hasChanged: Z };
77
+ Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), R.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
78
+ let S = class extends HTMLElement {
79
79
  static addInitializer(t) {
80
80
  this._$Ei(), (this.l ??= []).push(t);
81
81
  }
@@ -89,14 +89,14 @@ let E = class extends HTMLElement {
89
89
  }
90
90
  }
91
91
  static getPropertyDescriptor(t, s, i) {
92
- const { get: r, set: o } = St(this.prototype, t) ?? { get() {
92
+ const { get: r, set: n } = Et(this.prototype, t) ?? { get() {
93
93
  return this[s];
94
- }, set(n) {
95
- this[s] = n;
94
+ }, set(o) {
95
+ this[s] = o;
96
96
  } };
97
- return { get: r, set(n) {
97
+ return { get: r, set(o) {
98
98
  const h = r?.call(this);
99
- o?.call(this, n), this.requestUpdate(t, h, i);
99
+ n?.call(this, o), this.requestUpdate(t, h, i);
100
100
  }, configurable: !0, enumerable: !0 };
101
101
  }
102
102
  static getPropertyOptions(t) {
@@ -110,7 +110,7 @@ let E = class extends HTMLElement {
110
110
  static finalize() {
111
111
  if (this.hasOwnProperty(T("finalized"))) return;
112
112
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(T("properties"))) {
113
- const s = this.properties, i = [...Et(s), ...Ct(s)];
113
+ const s = this.properties, i = [...St(s), ...Ct(s)];
114
114
  for (const r of i) this.createProperty(r, s[r]);
115
115
  }
116
116
  const t = this[Symbol.metadata];
@@ -172,27 +172,27 @@ let E = class extends HTMLElement {
172
172
  _$ET(t, s) {
173
173
  const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
174
174
  if (r !== void 0 && i.reflect === !0) {
175
- const o = (i.converter?.toAttribute !== void 0 ? i.converter : F).toAttribute(s, i.type);
176
- this._$Em = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
175
+ const n = (i.converter?.toAttribute !== void 0 ? i.converter : V).toAttribute(s, i.type);
176
+ this._$Em = t, n == null ? this.removeAttribute(r) : this.setAttribute(r, n), this._$Em = null;
177
177
  }
178
178
  }
179
179
  _$AK(t, s) {
180
180
  const i = this.constructor, r = i._$Eh.get(t);
181
181
  if (r !== void 0 && this._$Em !== r) {
182
- const o = i.getPropertyOptions(r), n = typeof o.converter == "function" ? { fromAttribute: o.converter } : o.converter?.fromAttribute !== void 0 ? o.converter : F;
183
- this._$Em = r, this[r] = n.fromAttribute(s, o.type) ?? this._$Ej?.get(r) ?? null, this._$Em = null;
182
+ const n = i.getPropertyOptions(r), o = typeof n.converter == "function" ? { fromAttribute: n.converter } : n.converter?.fromAttribute !== void 0 ? n.converter : V;
183
+ this._$Em = r, this[r] = o.fromAttribute(s, n.type) ?? this._$Ej?.get(r) ?? null, this._$Em = null;
184
184
  }
185
185
  }
186
186
  requestUpdate(t, s, i) {
187
187
  if (t !== void 0) {
188
- const r = this.constructor, o = this[t];
189
- if (i ??= r.getPropertyOptions(t), !((i.hasChanged ?? Z)(o, s) || i.useDefault && i.reflect && o === this._$Ej?.get(t) && !this.hasAttribute(r._$Eu(t, i)))) return;
188
+ const r = this.constructor, n = this[t];
189
+ if (i ??= r.getPropertyOptions(t), !((i.hasChanged ?? Z)(n, s) || i.useDefault && i.reflect && n === this._$Ej?.get(t) && !this.hasAttribute(r._$Eu(t, i)))) return;
190
190
  this.C(t, s, i);
191
191
  }
192
192
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
193
193
  }
194
- C(t, s, { useDefault: i, reflect: r, wrapped: o }, n) {
195
- i && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t) && (this._$Ej.set(t, n ?? s ?? this[t]), o !== !0 || n !== void 0) || (this._$AL.has(t) || (this.hasUpdated || i || (s = void 0), this._$AL.set(t, s)), r === !0 && this._$Em !== t && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t));
194
+ C(t, s, { useDefault: i, reflect: r, wrapped: n }, o) {
195
+ i && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t) && (this._$Ej.set(t, o ?? s ?? this[t]), n !== !0 || o !== void 0) || (this._$AL.has(t) || (this.hasUpdated || i || (s = void 0), this._$AL.set(t, s)), r === !0 && this._$Em !== t && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t));
196
196
  }
197
197
  async _$EP() {
198
198
  this.isUpdatePending = !0;
@@ -211,13 +211,13 @@ let E = class extends HTMLElement {
211
211
  if (!this.isUpdatePending) return;
212
212
  if (!this.hasUpdated) {
213
213
  if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
214
- for (const [r, o] of this._$Ep) this[r] = o;
214
+ for (const [r, n] of this._$Ep) this[r] = n;
215
215
  this._$Ep = void 0;
216
216
  }
217
217
  const i = this.constructor.elementProperties;
218
- if (i.size > 0) for (const [r, o] of i) {
219
- const { wrapped: n } = o, h = this[r];
220
- n !== !0 || this._$AL.has(r) || h === void 0 || this.C(r, void 0, o, h);
218
+ if (i.size > 0) for (const [r, n] of i) {
219
+ const { wrapped: o } = n, h = this[r];
220
+ o !== !0 || this._$AL.has(r) || h === void 0 || this.C(r, void 0, n, h);
221
221
  }
222
222
  }
223
223
  let t = !1;
@@ -254,56 +254,56 @@ let E = class extends HTMLElement {
254
254
  firstUpdated(t) {
255
255
  }
256
256
  };
257
- E.elementStyles = [], E.shadowRootOptions = { mode: "open" }, E[T("elementProperties")] = /* @__PURE__ */ new Map(), E[T("finalized")] = /* @__PURE__ */ new Map(), Ot?.({ ReactiveElement: E }), (j.reactiveElementVersions ??= []).push("2.1.0");
258
- const J = globalThis, V = J.trustedTypes, it = V ? V.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, pt = "$lit$", y = `lit$${Math.random().toFixed(9).slice(2)}$`, mt = "?" + y, Tt = `<${mt}>`, w = document, k = () => w.createComment(""), M = (e) => e === null || typeof e != "object" && typeof e != "function", Q = Array.isArray, Ut = (e) => Q(e) || typeof e?.[Symbol.iterator] == "function", I = `[
257
+ S.elementStyles = [], S.shadowRootOptions = { mode: "open" }, S[T("elementProperties")] = /* @__PURE__ */ new Map(), S[T("finalized")] = /* @__PURE__ */ new Map(), Ot?.({ ReactiveElement: S }), (R.reactiveElementVersions ??= []).push("2.1.0");
258
+ const J = globalThis, N = J.trustedTypes, it = N ? N.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, pt = "$lit$", y = `lit$${Math.random().toFixed(9).slice(2)}$`, mt = "?" + y, Tt = `<${mt}>`, w = document, k = () => w.createComment(""), M = (e) => e === null || typeof e != "object" && typeof e != "function", Q = Array.isArray, Ut = (e) => Q(e) || typeof e?.[Symbol.iterator] == "function", I = `[
259
259
  \f\r]`, D = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, rt = /-->/g, ot = />/g, v = RegExp(`>|${I}(?:([^\\s"'>=/]+)(${I}*=${I}*(?:[^
260
- \f\r"'\`<>=]|("|')|))|$)`, "g"), nt = /'/g, lt = /"/g, $t = /^(?:script|style|textarea|title)$/i, kt = (e) => (t, ...s) => ({ _$litType$: e, strings: t, values: s }), f = kt(1), S = /* @__PURE__ */ Symbol.for("lit-noChange"), p = /* @__PURE__ */ Symbol.for("lit-nothing"), at = /* @__PURE__ */ new WeakMap(), x = w.createTreeWalker(w, 129);
260
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), nt = /'/g, lt = /"/g, $t = /^(?:script|style|textarea|title)$/i, kt = (e) => (t, ...s) => ({ _$litType$: e, strings: t, values: s }), f = kt(1), E = /* @__PURE__ */ Symbol.for("lit-noChange"), m = /* @__PURE__ */ Symbol.for("lit-nothing"), at = /* @__PURE__ */ new WeakMap(), x = w.createTreeWalker(w, 129);
261
261
  function ft(e, t) {
262
262
  if (!Q(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
263
263
  return it !== void 0 ? it.createHTML(t) : t;
264
264
  }
265
265
  const Mt = (e, t) => {
266
266
  const s = e.length - 1, i = [];
267
- let r, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = D;
267
+ let r, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = D;
268
268
  for (let h = 0; h < s; h++) {
269
269
  const l = e[h];
270
- let c, m, a = -1, d = 0;
271
- for (; d < l.length && (n.lastIndex = d, m = n.exec(l), m !== null); ) d = n.lastIndex, n === D ? m[1] === "!--" ? n = rt : m[1] !== void 0 ? n = ot : m[2] !== void 0 ? ($t.test(m[2]) && (r = RegExp("</" + m[2], "g")), n = v) : m[3] !== void 0 && (n = v) : n === v ? m[0] === ">" ? (n = r ?? D, a = -1) : m[1] === void 0 ? a = -2 : (a = n.lastIndex - m[2].length, c = m[1], n = m[3] === void 0 ? v : m[3] === '"' ? lt : nt) : n === lt || n === nt ? n = v : n === rt || n === ot ? n = D : (n = v, r = void 0);
272
- const u = n === v && e[h + 1].startsWith("/>") ? " " : "";
273
- o += n === D ? l + Tt : a >= 0 ? (i.push(c), l.slice(0, a) + pt + l.slice(a) + y + u) : l + y + (a === -2 ? h : u);
270
+ let c, p, a = -1, d = 0;
271
+ for (; d < l.length && (o.lastIndex = d, p = o.exec(l), p !== null); ) d = o.lastIndex, o === D ? p[1] === "!--" ? o = rt : p[1] !== void 0 ? o = ot : p[2] !== void 0 ? ($t.test(p[2]) && (r = RegExp("</" + p[2], "g")), o = v) : p[3] !== void 0 && (o = v) : o === v ? p[0] === ">" ? (o = r ?? D, a = -1) : p[1] === void 0 ? a = -2 : (a = o.lastIndex - p[2].length, c = p[1], o = p[3] === void 0 ? v : p[3] === '"' ? lt : nt) : o === lt || o === nt ? o = v : o === rt || o === ot ? o = D : (o = v, r = void 0);
272
+ const u = o === v && e[h + 1].startsWith("/>") ? " " : "";
273
+ n += o === D ? l + Tt : a >= 0 ? (i.push(c), l.slice(0, a) + pt + l.slice(a) + y + u) : l + y + (a === -2 ? h : u);
274
274
  }
275
- return [ft(e, o + (e[s] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
275
+ return [ft(e, n + (e[s] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
276
276
  };
277
- class H {
277
+ class F {
278
278
  constructor({ strings: t, _$litType$: s }, i) {
279
279
  let r;
280
280
  this.parts = [];
281
- let o = 0, n = 0;
282
- const h = t.length - 1, l = this.parts, [c, m] = Mt(t, s);
283
- if (this.el = H.createElement(c, i), x.currentNode = this.el.content, s === 2 || s === 3) {
281
+ let n = 0, o = 0;
282
+ const h = t.length - 1, l = this.parts, [c, p] = Mt(t, s);
283
+ if (this.el = F.createElement(c, i), x.currentNode = this.el.content, s === 2 || s === 3) {
284
284
  const a = this.el.content.firstChild;
285
285
  a.replaceWith(...a.childNodes);
286
286
  }
287
287
  for (; (r = x.nextNode()) !== null && l.length < h; ) {
288
288
  if (r.nodeType === 1) {
289
289
  if (r.hasAttributes()) for (const a of r.getAttributeNames()) if (a.endsWith(pt)) {
290
- const d = m[n++], u = r.getAttribute(a).split(y), $ = /([.?@])?(.*)/.exec(d);
291
- l.push({ type: 1, index: o, name: $[2], strings: u, ctor: $[1] === "." ? Rt : $[1] === "?" ? Nt : $[1] === "@" ? Ft : B }), r.removeAttribute(a);
292
- } else a.startsWith(y) && (l.push({ type: 6, index: o }), r.removeAttribute(a));
290
+ const d = p[o++], u = r.getAttribute(a).split(y), $ = /([.?@])?(.*)/.exec(d);
291
+ l.push({ type: 1, index: n, name: $[2], strings: u, ctor: $[1] === "." ? Ht : $[1] === "?" ? Vt : $[1] === "@" ? Nt : j }), r.removeAttribute(a);
292
+ } else a.startsWith(y) && (l.push({ type: 6, index: n }), r.removeAttribute(a));
293
293
  if ($t.test(r.tagName)) {
294
294
  const a = r.textContent.split(y), d = a.length - 1;
295
295
  if (d > 0) {
296
- r.textContent = V ? V.emptyScript : "";
297
- for (let u = 0; u < d; u++) r.append(a[u], k()), x.nextNode(), l.push({ type: 2, index: ++o });
296
+ r.textContent = N ? N.emptyScript : "";
297
+ for (let u = 0; u < d; u++) r.append(a[u], k()), x.nextNode(), l.push({ type: 2, index: ++n });
298
298
  r.append(a[d], k());
299
299
  }
300
300
  }
301
- } else if (r.nodeType === 8) if (r.data === mt) l.push({ type: 2, index: o });
301
+ } else if (r.nodeType === 8) if (r.data === mt) l.push({ type: 2, index: n });
302
302
  else {
303
303
  let a = -1;
304
- for (; (a = r.data.indexOf(y, a + 1)) !== -1; ) l.push({ type: 7, index: o }), a += y.length - 1;
304
+ for (; (a = r.data.indexOf(y, a + 1)) !== -1; ) l.push({ type: 7, index: n }), a += y.length - 1;
305
305
  }
306
- o++;
306
+ n++;
307
307
  }
308
308
  }
309
309
  static createElement(t, s) {
@@ -312,12 +312,12 @@ class H {
312
312
  }
313
313
  }
314
314
  function C(e, t, s = e, i) {
315
- if (t === S) return t;
315
+ if (t === E) return t;
316
316
  let r = i !== void 0 ? s._$Co?.[i] : s._$Cl;
317
- const o = M(t) ? void 0 : t._$litDirective$;
318
- return r?.constructor !== o && (r?._$AO?.(!1), o === void 0 ? r = void 0 : (r = new o(e), r._$AT(e, s, i)), i !== void 0 ? (s._$Co ??= [])[i] = r : s._$Cl = r), r !== void 0 && (t = C(e, r._$AS(e, t.values), r, i)), t;
317
+ const n = M(t) ? void 0 : t._$litDirective$;
318
+ return r?.constructor !== n && (r?._$AO?.(!1), n === void 0 ? r = void 0 : (r = new n(e), r._$AT(e, s, i)), i !== void 0 ? (s._$Co ??= [])[i] = r : s._$Cl = r), r !== void 0 && (t = C(e, r._$AS(e, t.values), r, i)), t;
319
319
  }
320
- let Ht = class {
320
+ let Ft = class {
321
321
  constructor(t, s) {
322
322
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = s;
323
323
  }
@@ -330,13 +330,13 @@ let Ht = class {
330
330
  u(t) {
331
331
  const { el: { content: s }, parts: i } = this._$AD, r = (t?.creationScope ?? w).importNode(s, !0);
332
332
  x.currentNode = r;
333
- let o = x.nextNode(), n = 0, h = 0, l = i[0];
333
+ let n = x.nextNode(), o = 0, h = 0, l = i[0];
334
334
  for (; l !== void 0; ) {
335
- if (n === l.index) {
335
+ if (o === l.index) {
336
336
  let c;
337
- l.type === 2 ? c = new P(o, o.nextSibling, this, t) : l.type === 1 ? c = new l.ctor(o, l.name, l.strings, this, t) : l.type === 6 && (c = new Vt(o, this, t)), this._$AV.push(c), l = i[++h];
337
+ l.type === 2 ? c = new P(n, n.nextSibling, this, t) : l.type === 1 ? c = new l.ctor(n, l.name, l.strings, this, t) : l.type === 6 && (c = new Rt(n, this, t)), this._$AV.push(c), l = i[++h];
338
338
  }
339
- n !== l?.index && (o = x.nextNode(), n++);
339
+ o !== l?.index && (n = x.nextNode(), o++);
340
340
  }
341
341
  return x.currentNode = w, r;
342
342
  }
@@ -350,7 +350,7 @@ class P {
350
350
  return this._$AM?._$AU ?? this._$Cv;
351
351
  }
352
352
  constructor(t, s, i, r) {
353
- this.type = 2, this._$AH = p, this._$AN = void 0, this._$AA = t, this._$AB = s, this._$AM = i, this.options = r, this._$Cv = r?.isConnected ?? !0;
353
+ this.type = 2, this._$AH = m, this._$AN = void 0, this._$AA = t, this._$AB = s, this._$AM = i, this.options = r, this._$Cv = r?.isConnected ?? !0;
354
354
  }
355
355
  get parentNode() {
356
356
  let t = this._$AA.parentNode;
@@ -364,7 +364,7 @@ class P {
364
364
  return this._$AB;
365
365
  }
366
366
  _$AI(t, s = this) {
367
- t = C(this, t, s), M(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== S && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ut(t) ? this.k(t) : this._(t);
367
+ t = C(this, t, s), M(t) ? t === m || t == null || t === "" ? (this._$AH !== m && this._$AR(), this._$AH = m) : t !== this._$AH && t !== E && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ut(t) ? this.k(t) : this._(t);
368
368
  }
369
369
  O(t) {
370
370
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -373,25 +373,25 @@ class P {
373
373
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
374
374
  }
375
375
  _(t) {
376
- this._$AH !== p && M(this._$AH) ? this._$AA.nextSibling.data = t : this.T(w.createTextNode(t)), this._$AH = t;
376
+ this._$AH !== m && M(this._$AH) ? this._$AA.nextSibling.data = t : this.T(w.createTextNode(t)), this._$AH = t;
377
377
  }
378
378
  $(t) {
379
- const { values: s, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = H.createElement(ft(i.h, i.h[0]), this.options)), i);
379
+ const { values: s, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = F.createElement(ft(i.h, i.h[0]), this.options)), i);
380
380
  if (this._$AH?._$AD === r) this._$AH.p(s);
381
381
  else {
382
- const o = new Ht(r, this), n = o.u(this.options);
383
- o.p(s), this.T(n), this._$AH = o;
382
+ const n = new Ft(r, this), o = n.u(this.options);
383
+ n.p(s), this.T(o), this._$AH = n;
384
384
  }
385
385
  }
386
386
  _$AC(t) {
387
387
  let s = at.get(t.strings);
388
- return s === void 0 && at.set(t.strings, s = new H(t)), s;
388
+ return s === void 0 && at.set(t.strings, s = new F(t)), s;
389
389
  }
390
390
  k(t) {
391
391
  Q(this._$AH) || (this._$AH = [], this._$AR());
392
392
  const s = this._$AH;
393
393
  let i, r = 0;
394
- for (const o of t) r === s.length ? s.push(i = new P(this.O(k()), this.O(k()), this, this.options)) : i = s[r], i._$AI(o), r++;
394
+ for (const n of t) r === s.length ? s.push(i = new P(this.O(k()), this.O(k()), this, this.options)) : i = s[r], i._$AI(n), r++;
395
395
  r < s.length && (this._$AR(i && i._$AB.nextSibling, r), s.length = r);
396
396
  }
397
397
  _$AR(t = this._$AA.nextSibling, s) {
@@ -404,61 +404,61 @@ class P {
404
404
  this._$AM === void 0 && (this._$Cv = t, this._$AP?.(t));
405
405
  }
406
406
  }
407
- class B {
407
+ class j {
408
408
  get tagName() {
409
409
  return this.element.tagName;
410
410
  }
411
411
  get _$AU() {
412
412
  return this._$AM._$AU;
413
413
  }
414
- constructor(t, s, i, r, o) {
415
- this.type = 1, this._$AH = p, this._$AN = void 0, this.element = t, this.name = s, this._$AM = r, this.options = o, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = p;
414
+ constructor(t, s, i, r, n) {
415
+ this.type = 1, this._$AH = m, this._$AN = void 0, this.element = t, this.name = s, this._$AM = r, this.options = n, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = m;
416
416
  }
417
417
  _$AI(t, s = this, i, r) {
418
- const o = this.strings;
419
- let n = !1;
420
- if (o === void 0) t = C(this, t, s, 0), n = !M(t) || t !== this._$AH && t !== S, n && (this._$AH = t);
418
+ const n = this.strings;
419
+ let o = !1;
420
+ if (n === void 0) t = C(this, t, s, 0), o = !M(t) || t !== this._$AH && t !== E, o && (this._$AH = t);
421
421
  else {
422
422
  const h = t;
423
423
  let l, c;
424
- for (t = o[0], l = 0; l < o.length - 1; l++) c = C(this, h[i + l], s, l), c === S && (c = this._$AH[l]), n ||= !M(c) || c !== this._$AH[l], c === p ? t = p : t !== p && (t += (c ?? "") + o[l + 1]), this._$AH[l] = c;
424
+ for (t = n[0], l = 0; l < n.length - 1; l++) c = C(this, h[i + l], s, l), c === E && (c = this._$AH[l]), o ||= !M(c) || c !== this._$AH[l], c === m ? t = m : t !== m && (t += (c ?? "") + n[l + 1]), this._$AH[l] = c;
425
425
  }
426
- n && !r && this.j(t);
426
+ o && !r && this.j(t);
427
427
  }
428
428
  j(t) {
429
- t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
429
+ t === m ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
430
430
  }
431
431
  }
432
- class Rt extends B {
432
+ class Ht extends j {
433
433
  constructor() {
434
434
  super(...arguments), this.type = 3;
435
435
  }
436
436
  j(t) {
437
- this.element[this.name] = t === p ? void 0 : t;
437
+ this.element[this.name] = t === m ? void 0 : t;
438
438
  }
439
439
  }
440
- class Nt extends B {
440
+ class Vt extends j {
441
441
  constructor() {
442
442
  super(...arguments), this.type = 4;
443
443
  }
444
444
  j(t) {
445
- this.element.toggleAttribute(this.name, !!t && t !== p);
445
+ this.element.toggleAttribute(this.name, !!t && t !== m);
446
446
  }
447
447
  }
448
- class Ft extends B {
449
- constructor(t, s, i, r, o) {
450
- super(t, s, i, r, o), this.type = 5;
448
+ class Nt extends j {
449
+ constructor(t, s, i, r, n) {
450
+ super(t, s, i, r, n), this.type = 5;
451
451
  }
452
452
  _$AI(t, s = this) {
453
- if ((t = C(this, t, s, 0) ?? p) === S) return;
454
- const i = this._$AH, r = t === p && i !== p || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== p && (i === p || r);
455
- r && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
453
+ if ((t = C(this, t, s, 0) ?? m) === E) return;
454
+ const i = this._$AH, r = t === m && i !== m || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== m && (i === m || r);
455
+ r && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
456
456
  }
457
457
  handleEvent(t) {
458
458
  typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
459
459
  }
460
460
  }
461
- class Vt {
461
+ class Rt {
462
462
  constructor(t, s, i) {
463
463
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = s, this.options = i;
464
464
  }
@@ -470,18 +470,18 @@ class Vt {
470
470
  }
471
471
  }
472
472
  const jt = { I: P }, Bt = J.litHtmlPolyfillSupport;
473
- Bt?.(H, P), (J.litHtmlVersions ??= []).push("3.3.0");
473
+ Bt?.(F, P), (J.litHtmlVersions ??= []).push("3.3.0");
474
474
  const qt = (e, t, s) => {
475
475
  const i = s?.renderBefore ?? t;
476
476
  let r = i._$litPart$;
477
477
  if (r === void 0) {
478
- const o = s?.renderBefore ?? null;
479
- i._$litPart$ = r = new P(t.insertBefore(k(), o), o, void 0, s ?? {});
478
+ const n = s?.renderBefore ?? null;
479
+ i._$litPart$ = r = new P(t.insertBefore(k(), n), n, void 0, s ?? {});
480
480
  }
481
481
  return r._$AI(e), r;
482
482
  };
483
483
  const G = globalThis;
484
- let U = class extends E {
484
+ let U = class extends S {
485
485
  constructor() {
486
486
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
487
487
  }
@@ -500,7 +500,7 @@ let U = class extends E {
500
500
  super.disconnectedCallback(), this._$Do?.setConnected(!1);
501
501
  }
502
502
  render() {
503
- return S;
503
+ return E;
504
504
  }
505
505
  };
506
506
  U._$litElement$ = !0, U.finalized = !0, G.litElementHydrateSupport?.({ LitElement: U });
@@ -527,17 +527,17 @@ let _t = class {
527
527
  const { I: Lt } = jt, ht = () => document.createComment(""), O = (e, t, s) => {
528
528
  const i = e._$AA.parentNode, r = t === void 0 ? e._$AB : t._$AA;
529
529
  if (s === void 0) {
530
- const o = i.insertBefore(ht(), r), n = i.insertBefore(ht(), r);
531
- s = new Lt(o, n, e, e.options);
530
+ const n = i.insertBefore(ht(), r), o = i.insertBefore(ht(), r);
531
+ s = new Lt(n, o, e, e.options);
532
532
  } else {
533
- const o = s._$AB.nextSibling, n = s._$AM, h = n !== e;
533
+ const n = s._$AB.nextSibling, o = s._$AM, h = o !== e;
534
534
  if (h) {
535
535
  let l;
536
- s._$AQ?.(e), s._$AM = e, s._$AP !== void 0 && (l = e._$AU) !== n._$AU && s._$AP(l);
536
+ s._$AQ?.(e), s._$AM = e, s._$AP !== void 0 && (l = e._$AU) !== o._$AU && s._$AP(l);
537
537
  }
538
- if (o !== r || h) {
538
+ if (n !== r || h) {
539
539
  let l = s._$AA;
540
- for (; l !== o; ) {
540
+ for (; l !== n; ) {
541
541
  const c = l.nextSibling;
542
542
  i.insertBefore(l, r), l = c;
543
543
  }
@@ -564,48 +564,48 @@ const ct = (e, t, s) => {
564
564
  dt(e, t, s) {
565
565
  let i;
566
566
  s === void 0 ? s = t : t !== void 0 && (i = t);
567
- const r = [], o = [];
568
- let n = 0;
569
- for (const h of e) r[n] = i ? i(h, n) : n, o[n] = s(h, n), n++;
570
- return { values: o, keys: r };
567
+ const r = [], n = [];
568
+ let o = 0;
569
+ for (const h of e) r[o] = i ? i(h, o) : o, n[o] = s(h, o), o++;
570
+ return { values: n, keys: r };
571
571
  }
572
572
  render(e, t, s) {
573
573
  return this.dt(e, t, s).values;
574
574
  }
575
575
  update(e, [t, s, i]) {
576
- const r = Kt(e), { values: o, keys: n } = this.dt(t, s, i);
577
- if (!Array.isArray(r)) return this.ut = n, o;
576
+ const r = Kt(e), { values: n, keys: o } = this.dt(t, s, i);
577
+ if (!Array.isArray(r)) return this.ut = o, n;
578
578
  const h = this.ut ??= [], l = [];
579
- let c, m, a = 0, d = r.length - 1, u = 0, $ = o.length - 1;
579
+ let c, p, a = 0, d = r.length - 1, u = 0, $ = n.length - 1;
580
580
  for (; a <= d && u <= $; ) if (r[a] === null) a++;
581
581
  else if (r[d] === null) d--;
582
- else if (h[a] === n[u]) l[u] = A(r[a], o[u]), a++, u++;
583
- else if (h[d] === n[$]) l[$] = A(r[d], o[$]), d--, $--;
584
- else if (h[a] === n[$]) l[$] = A(r[a], o[$]), O(e, l[$ + 1], r[a]), a++, $--;
585
- else if (h[d] === n[u]) l[u] = A(r[d], o[u]), O(e, r[a], r[d]), d--, u++;
586
- else if (c === void 0 && (c = ct(n, u, $), m = ct(h, a, d)), c.has(h[a])) if (c.has(h[d])) {
587
- const g = m.get(n[u]), z = g !== void 0 ? r[g] : null;
582
+ else if (h[a] === o[u]) l[u] = A(r[a], n[u]), a++, u++;
583
+ else if (h[d] === o[$]) l[$] = A(r[d], n[$]), d--, $--;
584
+ else if (h[a] === o[$]) l[$] = A(r[a], n[$]), O(e, l[$ + 1], r[a]), a++, $--;
585
+ else if (h[d] === o[u]) l[u] = A(r[d], n[u]), O(e, r[a], r[d]), d--, u++;
586
+ else if (c === void 0 && (c = ct(o, u, $), p = ct(h, a, d)), c.has(h[a])) if (c.has(h[d])) {
587
+ const _ = p.get(o[u]), z = _ !== void 0 ? r[_] : null;
588
588
  if (z === null) {
589
589
  const X = O(e, r[a]);
590
- A(X, o[u]), l[u] = X;
591
- } else l[u] = A(z, o[u]), O(e, r[a], z), r[g] = null;
590
+ A(X, n[u]), l[u] = X;
591
+ } else l[u] = A(z, n[u]), O(e, r[a], z), r[_] = null;
592
592
  u++;
593
593
  } else L(r[d]), d--;
594
594
  else L(r[a]), a++;
595
595
  for (; u <= $; ) {
596
- const g = O(e, l[$ + 1]);
597
- A(g, o[u]), l[u++] = g;
596
+ const _ = O(e, l[$ + 1]);
597
+ A(_, n[u]), l[u++] = _;
598
598
  }
599
599
  for (; a <= d; ) {
600
- const g = r[a++];
601
- g !== null && L(g);
600
+ const _ = r[a++];
601
+ _ !== null && L(_);
602
602
  }
603
- return this.ut = n, gt(e, l), S;
603
+ return this.ut = o, gt(e, l), E;
604
604
  }
605
605
  });
606
606
  const Zt = bt(class extends _t {
607
607
  constructor() {
608
- super(...arguments), this.key = p;
608
+ super(...arguments), this.key = m;
609
609
  }
610
610
  render(e, t) {
611
611
  return this.key = e, t;
@@ -619,53 +619,53 @@ const Jt = (e) => (t, s) => {
619
619
  customElements.define(e, t);
620
620
  })) : customElements.define(e, t);
621
621
  };
622
- const Qt = { attribute: !0, type: String, converter: F, reflect: !1, hasChanged: Z }, Gt = (e = Qt, t, s) => {
622
+ const Qt = { attribute: !0, type: String, converter: V, reflect: !1, hasChanged: Z }, Gt = (e = Qt, t, s) => {
623
623
  const { kind: i, metadata: r } = s;
624
- let o = globalThis.litPropertyMetadata.get(r);
625
- if (o === void 0 && globalThis.litPropertyMetadata.set(r, o = /* @__PURE__ */ new Map()), i === "setter" && ((e = Object.create(e)).wrapped = !0), o.set(s.name, e), i === "accessor") {
626
- const { name: n } = s;
624
+ let n = globalThis.litPropertyMetadata.get(r);
625
+ if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), i === "setter" && ((e = Object.create(e)).wrapped = !0), n.set(s.name, e), i === "accessor") {
626
+ const { name: o } = s;
627
627
  return { set(h) {
628
628
  const l = t.get.call(this);
629
- t.set.call(this, h), this.requestUpdate(n, l, e);
629
+ t.set.call(this, h), this.requestUpdate(o, l, e);
630
630
  }, init(h) {
631
- return h !== void 0 && this.C(n, void 0, e, h), h;
631
+ return h !== void 0 && this.C(o, void 0, e, h), h;
632
632
  } };
633
633
  }
634
634
  if (i === "setter") {
635
- const { name: n } = s;
635
+ const { name: o } = s;
636
636
  return function(h) {
637
- const l = this[n];
638
- t.call(this, h), this.requestUpdate(n, l, e);
637
+ const l = this[o];
638
+ t.call(this, h), this.requestUpdate(o, l, e);
639
639
  };
640
640
  }
641
641
  throw Error("Unsupported decorator location: " + i);
642
642
  };
643
- function q(e) {
644
- return (t, s) => typeof s == "object" ? Gt(e, t, s) : ((i, r, o) => {
645
- const n = r.hasOwnProperty(o);
646
- return r.constructor.createProperty(o, i), n ? Object.getOwnPropertyDescriptor(r, o) : void 0;
643
+ function B(e) {
644
+ return (t, s) => typeof s == "object" ? Gt(e, t, s) : ((i, r, n) => {
645
+ const o = r.hasOwnProperty(n);
646
+ return r.constructor.createProperty(n, i), o ? Object.getOwnPropertyDescriptor(r, n) : void 0;
647
647
  })(e, t, s);
648
648
  }
649
- function R(e) {
650
- return q({ ...e, state: !0, attribute: !1 });
649
+ function q(e) {
650
+ return B({ ...e, state: !0, attribute: !1 });
651
651
  }
652
652
  const Xt = (e, t, s) => (s.configurable = !0, s.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(e, t, s), s);
653
653
  function Yt(e, t) {
654
654
  return (s, i, r) => {
655
- const o = (n) => n.renderRoot?.querySelector(e) ?? null;
655
+ const n = (o) => o.renderRoot?.querySelector(e) ?? null;
656
656
  return Xt(s, i, { get() {
657
- return o(this);
657
+ return n(this);
658
658
  } });
659
659
  };
660
660
  }
661
- var te = Object.defineProperty, ee = Object.getOwnPropertyDescriptor, _ = (e, t, s, i) => {
662
- for (var r = i > 1 ? void 0 : i ? ee(t, s) : t, o = e.length - 1, n; o >= 0; o--)
663
- (n = e[o]) && (r = (i ? n(t, s, r) : n(r)) || r);
661
+ var te = Object.defineProperty, ee = Object.getOwnPropertyDescriptor, g = (e, t, s, i) => {
662
+ for (var r = i > 1 ? void 0 : i ? ee(t, s) : t, n = e.length - 1, o; n >= 0; n--)
663
+ (o = e[n]) && (r = (i ? o(t, s, r) : o(r)) || r);
664
664
  return i && r && te(t, s, r), r;
665
665
  };
666
666
  let b = class extends U {
667
667
  constructor() {
668
- super(...arguments), this.dialogOpen = !1, this.formKey = 0, this.version = "1.0.16";
668
+ super(...arguments), this.dialogOpen = !1, this.formKey = 0, this.version = "1.0.18";
669
669
  }
670
670
  update(e) {
671
671
  e.has("theme") && this.registerTheme(this.theme), super.update(e);
@@ -675,42 +675,50 @@ let b = class extends U {
675
675
  }
676
676
  registerTheme(e) {
677
677
  const t = getComputedStyle(this).getPropertyValue("--re-text-color").trim(), s = getComputedStyle(this).getPropertyValue("--re-tile-background-color").trim();
678
- this.themeBgColor = s || this.theme?.theme_object?.backgroundColor, this.themeTitleColor = t || this.theme?.theme_object?.title?.textStyle?.color, this.themeSubtitleColor = t || this.theme?.theme_object?.title?.subtextStyle?.color || this.themeTitleColor;
678
+ this.themeBgColor = s || this.theme?.theme_object?.backgroundColor, this.themeTitleColor = t || this.theme?.theme_object?.title?.textStyle?.color;
679
679
  }
680
680
  openFormDialog() {
681
681
  this.dialogOpen = !0;
682
682
  }
683
683
  handleFormSubmit(e) {
684
684
  e.preventDefault();
685
- const s = e.submitter?.getAttribute("value") ?? "submit", i = e.target, r = new FormData(i), o = this.inputData?.formFields?.map((n, h) => {
685
+ const s = e.submitter?.getAttribute("value") ?? "submit", i = e.target, r = new FormData(i), n = this.inputData?.formFields?.map((o, h) => {
686
686
  const l = `column-${h}`;
687
687
  let c;
688
- return n.type === "checkbox" ? c = r.has(l) ? "on" : "off" : c = r.get(l) ?? n.defaultValue ?? "", {
689
- swarm_app_databackend_key: n.targetColumn?.swarm_app_databackend_key,
690
- table_name: n.targetColumn?.tablename,
691
- column_name: n.targetColumn?.column,
692
- value: this.formatValue(c, n.type ?? "textfield")
688
+ if (o.hiddenField)
689
+ c = o.preFilledValue ?? o.defaultValue ?? "";
690
+ else if (o.type === "checkbox")
691
+ c = r.has(l) ? "on" : "off";
692
+ else {
693
+ const p = r.get(l);
694
+ c = p === null || p === "" ? o.defaultValue ?? "" : p;
695
+ }
696
+ return {
697
+ swarm_app_databackend_key: o.targetColumn?.swarm_app_databackend_key,
698
+ table_name: o.targetColumn?.tablename,
699
+ column_name: o.targetColumn?.column,
700
+ value: this.formatValue(c, o.type ?? "textfield")
693
701
  };
694
702
  });
695
- if (this.inputData?.deleteFlagColumn && o?.push({
703
+ if (this.inputData?.deleteFlagColumn && n?.push({
696
704
  swarm_app_databackend_key: this.inputData?.deleteFlagColumn?.swarm_app_databackend_key,
697
705
  table_name: this.inputData?.deleteFlagColumn?.tablename,
698
706
  column_name: this.inputData?.deleteFlagColumn?.column,
699
707
  value: s === "delete"
700
708
  }), this.dispatchEvent(
701
709
  new CustomEvent("data-submit", {
702
- detail: o,
710
+ detail: n,
703
711
  bubbles: !1,
704
712
  composed: !1
705
713
  })
706
714
  ), s === "delete") {
707
- const n = this.resolveRoute({
715
+ const o = this.resolveRoute({
708
716
  route: this.inputData?.deleteNavigationRoute,
709
717
  variables: this.inputData?.variables
710
718
  });
711
- n && this.dispatchEvent(
719
+ o && this.dispatchEvent(
712
720
  new CustomEvent("nav-submit", {
713
- detail: { path: String(n) },
721
+ detail: { path: String(o) },
714
722
  bubbles: !0,
715
723
  composed: !0
716
724
  })
@@ -720,10 +728,13 @@ let b = class extends U {
720
728
  }
721
729
  formatValue(e, t) {
722
730
  switch (t) {
723
- case "numberfield":
724
- return parseFloat(e);
731
+ case "numberfield": {
732
+ if (e === "" || e === null || e === void 0) return null;
733
+ const s = parseFloat(e);
734
+ return Number.isNaN(s) ? null : s;
735
+ }
725
736
  case "checkbox":
726
- return e === "on";
737
+ return e === "on" || e === "true";
727
738
  default:
728
739
  return e;
729
740
  }
@@ -739,7 +750,7 @@ let b = class extends U {
739
750
  .pattern="${e.validation ?? ""}"
740
751
  supporting-text=${e.description ?? ""}
741
752
  validation-message="${e.validationMessage ?? "Invalid input"}"
742
- ?required=${e.required && !e.defaultValue}
753
+ ?required=${e.required && !e.defaultValue && !e.preFilledValue}
743
754
  ></md-outlined-text-field>
744
755
  `;
745
756
  }
@@ -756,7 +767,7 @@ let b = class extends U {
756
767
  min=${e.min ?? ""}
757
768
  max=${e.max ?? ""}
758
769
  supporting-text=${e.description ?? ""}
759
- ?required=${e.required && !e.defaultValue}
770
+ ?required=${e.required && !e.defaultValue && !e.preFilledValue}
760
771
  ></md-outlined-text-field>
761
772
  `;
762
773
  }
@@ -766,9 +777,9 @@ let b = class extends U {
766
777
  <md-checkbox
767
778
  name="column-${t}"
768
779
  aria-label=${e.label ?? ""}
769
- ?checked=${(String(e.preFilledValue) ?? e.defaultValue) === "true"}
780
+ ?checked=${String(e.preFilledValue ?? e.defaultValue) === "true"}
770
781
  supporting-text=${e.description ?? ""}
771
- ?required=${e.required && !e.defaultValue}
782
+ ?required=${e.required && !e.defaultValue && !e.preFilledValue}
772
783
  ></md-checkbox>
773
784
  <label class="label"> ${e.label} </label>
774
785
  </div>
@@ -783,7 +794,7 @@ let b = class extends U {
783
794
  .value="${e.preFilledValue ?? ""}"
784
795
  .placeholder="${e.defaultValue ?? ""}"
785
796
  rows="3"
786
- ?required=${e.required && !e.defaultValue}
797
+ ?required=${e.required && !e.defaultValue && !e.preFilledValue}
787
798
  supporting-text=${e.description ?? ""}
788
799
  ></md-outlined-text-field>
789
800
  `;
@@ -795,7 +806,7 @@ let b = class extends U {
795
806
  <md-outlined-select
796
807
  name="column-${t}"
797
808
  supporting-text=${e.description ?? ""}
798
- ?required=${e.required && !e.defaultValue}
809
+ ?required=${e.required && !e.defaultValue && !e.preFilledValue}
799
810
  >
800
811
  ${ut(
801
812
  e.values ?? [],
@@ -822,7 +833,7 @@ let b = class extends U {
822
833
  type="datetime-local"
823
834
  .value="${e.preFilledValue ?? e.defaultValue ?? ""}"
824
835
  supporting-text=${e.description ?? ""}
825
- ?required=${e.required && !e.defaultValue}
836
+ ?required=${e.required && !e.defaultValue && !e.preFilledValue}
826
837
  ></md-outlined-text-field>
827
838
  `;
828
839
  }
@@ -830,7 +841,7 @@ let b = class extends U {
830
841
  this.formKey++;
831
842
  }
832
843
  resolveRoute(e) {
833
- let t = String(e?.route ?? "");
844
+ let t = e?.route ?? "";
834
845
  if (t) {
835
846
  if (e?.variables)
836
847
  for (const s of e.variables)
@@ -866,12 +877,12 @@ let b = class extends U {
866
877
  ${this.inputData?.formButton ? f`
867
878
  <md-fab
868
879
  aria-label="Add"
869
- style="margin-left: 16px; --md-fab-container-color: ${this.theme?.theme_object?.color[0] ?? "#9064f7"}"
880
+ style="margin-left: 16px; --md-fab-container-color: ${this.theme?.theme_object?.color?.[0] ?? "#9064f7"}"
870
881
  @click=${this.openFormDialog}
871
882
  >
872
883
  <md-icon slot="icon">add</md-icon>
873
884
  </md-fab>
874
- ` : p}
885
+ ` : m}
875
886
  <header>
876
887
  <h3 class="paging" ?active=${this.inputData?.title}>${this.inputData?.title}</h3>
877
888
  <p class="paging" ?active=${this.inputData?.subTitle}>${this.inputData?.subTitle}</p>
@@ -899,9 +910,9 @@ let b = class extends U {
899
910
  form="form"
900
911
  value="delete"
901
912
  type="submit"
902
- autofocus
903
913
  >Delete</md-filled-button
904
- >` : p}
914
+ >` : m}
915
+ <md-outlined-button @click=${this.resetForm}>Reset</md-outlined-button>
905
916
  <md-outlined-button @click=${this.cancelEdit}>Cancel</md-outlined-button>
906
917
  <md-filled-button form="form" value="submit" type="submit" autofocus
907
918
  >Submit</md-filled-button
@@ -917,9 +928,8 @@ let b = class extends U {
917
928
  form="form"
918
929
  value="delete"
919
930
  type="submit"
920
- autofocus
921
931
  >Delete</md-filled-button
922
- >` : p}
932
+ >` : m}
923
933
  <md-outlined-button @click=${this.resetForm}>Reset</md-outlined-button>
924
934
  <md-filled-button form="form" value="submit" type="submit" autofocus
925
935
  >Submit</md-filled-button
@@ -944,12 +954,7 @@ let b = class extends U {
944
954
  this.inputData?.formFields ?? [],
945
955
  (e, t) => t,
946
956
  (e, t) => {
947
- if (e.hiddenField)
948
- return f`<input
949
- type="hidden"
950
- name="column-${t}"
951
- .value="${e.preFilledValue ?? e.defaultValue ?? ""}"
952
- />`;
957
+ if (e.hiddenField) return m;
953
958
  switch (e.type) {
954
959
  case "textfield":
955
960
  return this.renderTextField(e, t);
@@ -1094,35 +1099,32 @@ b.styles = vt`
1094
1099
  --md-filled-button-pressed-label-text-color: #fff;
1095
1100
  }
1096
1101
  `;
1097
- _([
1098
- q({ type: Object })
1102
+ g([
1103
+ B({ type: Object })
1099
1104
  ], b.prototype, "inputData", 2);
1100
- _([
1101
- q({ type: Object })
1105
+ g([
1106
+ B({ type: Object })
1102
1107
  ], b.prototype, "theme", 2);
1103
- _([
1104
- q({ type: String })
1108
+ g([
1109
+ B({ type: String })
1105
1110
  ], b.prototype, "route", 2);
1106
- _([
1107
- R()
1111
+ g([
1112
+ q()
1108
1113
  ], b.prototype, "themeBgColor", 2);
1109
- _([
1110
- R()
1114
+ g([
1115
+ q()
1111
1116
  ], b.prototype, "themeTitleColor", 2);
1112
- _([
1113
- R()
1114
- ], b.prototype, "themeSubtitleColor", 2);
1115
- _([
1116
- R()
1117
+ g([
1118
+ q()
1117
1119
  ], b.prototype, "dialogOpen", 2);
1118
- _([
1120
+ g([
1119
1121
  Yt("md-dialog")
1120
1122
  ], b.prototype, "dialog", 2);
1121
- _([
1122
- R()
1123
+ g([
1124
+ q()
1123
1125
  ], b.prototype, "formKey", 2);
1124
- b = _([
1125
- Jt("widget-form-1.0.16")
1126
+ b = g([
1127
+ Jt("widget-form-1.0.18")
1126
1128
  ], b);
1127
1129
  export {
1128
1130
  b as WidgetForm