@dynamicforms/vuetify-inputs 0.7.3 → 0.7.4

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.
@@ -15,14 +15,14 @@ var ge = (e, t, n) => new Promise((a, l) => {
15
15
  var r = (i) => {
16
16
  try {
17
17
  f(n.next(i));
18
- } catch (d) {
19
- l(d);
18
+ } catch (c) {
19
+ l(c);
20
20
  }
21
21
  }, s = (i) => {
22
22
  try {
23
23
  f(n.throw(i));
24
- } catch (d) {
25
- l(d);
24
+ } catch (c) {
25
+ l(c);
26
26
  }
27
27
  }, f = (i) => i.done ? a(i.value) : Promise.resolve(i.value).then(r, s);
28
28
  f((n = n.apply(e, t)).next());
@@ -171,32 +171,32 @@ const xe = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Kn = 300, Xn =
171
171
  }), ue(() => l.disabled, (m) => {
172
172
  m ? f.value.enableReadOnlyMode(xe) : f.value.disableReadOnlyMode(xe);
173
173
  });
174
- function d() {
174
+ function c() {
175
175
  const m = window.CKEDITOR_VERSION;
176
176
  if (!m)
177
177
  return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');
178
178
  const [y] = m.split(".").map(Number);
179
179
  y >= 42 || m.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
180
180
  }
181
- function h(m) {
182
- const y = ft((c) => {
181
+ function v(m) {
182
+ const y = ft((d) => {
183
183
  if (l.disableTwoWayDataBinding)
184
184
  return;
185
185
  const j = i.value = m.data.get();
186
- r("update:modelValue", j, c, m), r("input", j, c, m);
186
+ r("update:modelValue", j, d, m), r("input", j, d, m);
187
187
  }, Kn, { leading: !0 });
188
- m.model.document.on("change:data", y), m.editing.view.document.on("focus", (c) => {
189
- r("focus", c, m);
190
- }), m.editing.view.document.on("blur", (c) => {
191
- r("blur", c, m);
188
+ m.model.document.on("change:data", y), m.editing.view.document.on("focus", (d) => {
189
+ r("focus", d, m);
190
+ }), m.editing.view.document.on("blur", (d) => {
191
+ r("blur", d, m);
192
192
  });
193
193
  }
194
- return d(), Ke(() => {
194
+ return c(), Ke(() => {
195
195
  const m = zn(
196
196
  Object.assign({}, l.config)
197
197
  );
198
198
  a.value && (m.initialData = a.value), l.editor.create(s.value, m).then((y) => {
199
- f.value = it(y), h(y), a.value !== m.initialData && y.data.set(a.value), l.disabled && y.enableReadOnlyMode(xe), r("ready", y);
199
+ f.value = it(y), v(y), a.value !== m.initialData && y.data.set(a.value), l.disabled && y.enableReadOnlyMode(xe), r("ready", y);
200
200
  }).catch((y) => {
201
201
  console.error(y);
202
202
  });
@@ -757,13 +757,13 @@ function pe(e) {
757
757
  // [TODO] -- I challenge you to fix the type
758
758
  po(f, (m) => m.test(s))
759
759
  );
760
- let d;
761
- d = e.valueCallback ? e.valueCallback(i) : i, d = n.valueCallback ? (
760
+ let c;
761
+ c = e.valueCallback ? e.valueCallback(i) : i, c = n.valueCallback ? (
762
762
  // [TODO] -- I challenge you to fix the type
763
- n.valueCallback(d)
764
- ) : d;
765
- const h = t.slice(s.length);
766
- return { value: d, rest: h };
763
+ n.valueCallback(c)
764
+ ) : c;
765
+ const v = t.slice(s.length);
766
+ return { value: c, rest: v };
767
767
  };
768
768
  }
769
769
  function po(e, t) {
@@ -998,8 +998,8 @@ function G(e, t) {
998
998
  get() {
999
999
  return e.control ? e.control.value : e.modelValue === void 0 ? a.value : e.modelValue;
1000
1000
  },
1001
- set(v) {
1002
- e.control && (e.control.value = v), e.modelValue === void 0 && (a.value = v), t("update:modelValue", v);
1001
+ set(h) {
1002
+ e.control && (e.control.value = h), e.modelValue === void 0 && (a.value = h), t("update:modelValue", h);
1003
1003
  }
1004
1004
  });
1005
1005
  if (e.control && !(e.control instanceof Re.FieldBase))
@@ -1008,24 +1008,24 @@ function G(e, t) {
1008
1008
  get() {
1009
1009
  return e.control.touched;
1010
1010
  },
1011
- set(v) {
1012
- e.control.touched = v;
1011
+ set(h) {
1012
+ e.control.touched = h;
1013
1013
  }
1014
1014
  }), s = e.control ? r : F(!1), f = b(() => e.control ? e.control.valid : !0), i = b(
1015
- () => e.control ? e.control.errors : (e.errors || []).map((v) => new wt(v))
1016
- ), d = b(() => s.value && i.value.length > 0 ? " " : void 0), h = b(() => s.value ? i.value : void 0), m = b(() => e.control ? e.control.enabled : e.enabled !== !1), y = b(
1015
+ () => e.control ? e.control.errors : (e.errors || []).map((h) => new wt(h))
1016
+ ), c = b(() => s.value && i.value.length > 0 ? " " : void 0), v = b(() => s.value ? i.value : void 0), m = b(() => e.control ? e.control.enabled : e.enabled !== !1), y = b(
1017
1017
  () => e.control ? e.control.visibility : e.visibility || Re.DisplayMode.FULL
1018
- ), c = b(
1018
+ ), d = b(
1019
1019
  () => oe(e.label || "") ? new So(e.label || "") : e.label
1020
1020
  ), j = b(() => e.placeholder || ""), T = b(() => e.helpText || ""), k = b(() => e.hint || ""), g = b(() => e.cssClass || ""), _ = b(
1021
1021
  () => {
1022
- var v, L, p;
1023
- return (p = (L = (v = e.density) != null ? v : Te("field-density", null)) != null ? L : n.defaultDensity) != null ? p : "default";
1022
+ var h, L, p;
1023
+ return (p = (L = (h = e.density) != null ? h : Te("field-density", null)) != null ? L : n.defaultDensity) != null ? p : "default";
1024
1024
  }
1025
1025
  ), M = b(() => _.value === "inline" ? "default" : _.value), N = b(
1026
1026
  () => {
1027
- var v, L, p;
1028
- return (p = (L = (v = e.variant) != null ? v : Te("field-variant", null)) != null ? L : n.defaultVariant) != null ? p : "underlined";
1027
+ var h, L, p;
1028
+ return (p = (L = (h = e.variant) != null ? h : Te("field-variant", null)) != null ? L : n.defaultVariant) != null ? p : "underlined";
1029
1029
  }
1030
1030
  );
1031
1031
  return {
@@ -1033,21 +1033,21 @@ function G(e, t) {
1033
1033
  valid: f,
1034
1034
  enabled: m,
1035
1035
  errors: i,
1036
- showErrors: h,
1036
+ showErrors: v,
1037
1037
  visibility: y,
1038
- label: c,
1038
+ label: d,
1039
1039
  touched: s,
1040
1040
  density: _.value,
1041
1041
  densityClass: b(() => `df-density-${_.value}`),
1042
1042
  vuetifyBindings: b(() => {
1043
- var v;
1043
+ var h;
1044
1044
  return S({
1045
- name: (v = e.control) == null ? void 0 : v.fieldName,
1045
+ name: (h = e.control) == null ? void 0 : h.fieldName,
1046
1046
  class: g.value,
1047
1047
  density: M.value,
1048
1048
  variant: N.value,
1049
- label: c.value.text,
1050
- errorMessages: d.value,
1049
+ label: d.value.text,
1050
+ errorMessages: c.value,
1051
1051
  // 'error-count': errors?.value.length || 0,
1052
1052
  readonly: !m.value,
1053
1053
  disabled: !m.value,
@@ -1063,7 +1063,7 @@ function G(e, t) {
1063
1063
  })
1064
1064
  };
1065
1065
  }
1066
- const Eo = { class: "d-flex w-100 df-style-resetting" }, Pe = /* @__PURE__ */ H({
1066
+ const Eo = { class: "d-flex w-100 df-style-resetting df-sub-field" }, Pe = /* @__PURE__ */ H({
1067
1067
  __name: "input-base",
1068
1068
  props: {
1069
1069
  control: {},
@@ -1084,20 +1084,20 @@ const Eo = { class: "d-flex w-100 df-style-resetting" }, Pe = /* @__PURE__ */ H(
1084
1084
  },
1085
1085
  emits: ["update:modelValue", "click:clear", "blur"],
1086
1086
  setup(e, { emit: t }) {
1087
- const n = e, a = t, { label: l, showErrors: r, touched: s, value: f, visibility: i, vuetifyBindings: d } = G(n, a), h = b(() => !!(o(n.clearable) && o(f))), m = F(!1);
1088
- function y(c) {
1089
- m.value = c, c || (s.value = !0, a("blur"));
1087
+ const n = e, a = t, { label: l, showErrors: r, touched: s, value: f, visibility: i, vuetifyBindings: c } = G(n, a), v = b(() => !!(o(n.clearable) && o(f))), m = F(!1);
1088
+ function y(d) {
1089
+ m.value = d, d || (s.value = !0, a("blur"));
1090
1090
  }
1091
- return (c, j) => {
1091
+ return (d, j) => {
1092
1092
  const T = A("v-field"), k = A("v-input");
1093
1093
  return o(i) !== o(X).SUPPRESS ? (V(), D(k, {
1094
1094
  key: 0,
1095
- name: o(d).name,
1096
- density: o(d).density,
1097
- hint: o(d).hint,
1098
- "persistent-hint": o(d).persistentHint,
1099
- "hide-details": o(d).hideDetails,
1100
- "error-messages": o(d).errorMessages,
1095
+ name: o(c).name,
1096
+ density: o(c).density,
1097
+ hint: o(c).hint,
1098
+ "persistent-hint": o(c).persistentHint,
1099
+ "hide-details": o(c).hideDetails,
1100
+ "error-messages": o(c).errorMessages,
1101
1101
  class: Y([
1102
1102
  e.cssClass,
1103
1103
  {
@@ -1114,13 +1114,13 @@ const Eo = { class: "d-flex w-100 df-style-resetting" }, Pe = /* @__PURE__ */ H(
1114
1114
  ]),
1115
1115
  default: w(() => [
1116
1116
  B(T, {
1117
- variant: o(d).variant,
1118
- density: o(d).density,
1119
- label: o(d).label,
1120
- disabled: o(d).disabled,
1121
- clearable: h.value,
1117
+ variant: o(c).variant,
1118
+ density: o(c).density,
1119
+ label: o(c).label,
1120
+ disabled: o(c).disabled,
1121
+ clearable: v.value,
1122
1122
  "persistent-clear": !0,
1123
- dirty: !!o(f),
1123
+ dirty: !!o(f) || !!o(c).placeholder,
1124
1124
  active: m.value,
1125
1125
  loading: e.loading,
1126
1126
  "onClick:clear": j[0] || (j[0] = (g) => a("click:clear")),
@@ -1134,18 +1134,18 @@ const Eo = { class: "d-flex w-100 df-style-resetting" }, Pe = /* @__PURE__ */ H(
1134
1134
  ]),
1135
1135
  default: w((g) => [
1136
1136
  le("div", Eo, [
1137
- se(c.$slots, "default", te(ne(g)))
1137
+ se(d.$slots, "default", te(ne(g)))
1138
1138
  ])
1139
1139
  ]),
1140
1140
  loader: w((g) => [
1141
- se(c.$slots, "loader", te(ne(g)))
1141
+ se(d.$slots, "loader", te(ne(g)))
1142
1142
  ]),
1143
1143
  _: 2
1144
1144
  }, [
1145
- c.$slots["prepend-inner"] ? {
1145
+ d.$slots["prepend-inner"] ? {
1146
1146
  name: "prepend-inner",
1147
1147
  fn: w((g) => [
1148
- se(c.$slots, "prepend-inner", te(ne(g)))
1148
+ se(d.$slots, "prepend-inner", te(ne(g)))
1149
1149
  ]),
1150
1150
  key: "0"
1151
1151
  } : void 0
@@ -1153,10 +1153,10 @@ const Eo = { class: "d-flex w-100 df-style-resetting" }, Pe = /* @__PURE__ */ H(
1153
1153
  ]),
1154
1154
  _: 2
1155
1155
  }, [
1156
- c.$slots.prepend ? {
1156
+ d.$slots.prepend ? {
1157
1157
  name: "prepend",
1158
1158
  fn: w((g) => [
1159
- se(c.$slots, "prepend", te(ne(g)))
1159
+ se(d.$slots, "prepend", te(ne(g)))
1160
1160
  ]),
1161
1161
  key: "0"
1162
1162
  } : void 0
@@ -1357,12 +1357,12 @@ const Mo = {
1357
1357
  "with-border": e.showAsGroup === "grouped"
1358
1358
  }])
1359
1359
  }, [
1360
- (V(!0), W(Ie, null, ct(l.value, (i, d) => (V(), D(f, {
1361
- key: d,
1360
+ (V(!0), W(Ie, null, ct(l.value, (i, c) => (V(), D(f, {
1361
+ key: c,
1362
1362
  variant: i.renderAs === o(z).BUTTON ? "tonal" : "text",
1363
1363
  elevation: 0,
1364
1364
  size: e.buttonSize,
1365
- onClick: dt((h) => i.action.execute(h), ["stop"])
1365
+ onClick: dt((v) => i.action.execute(v), ["stop"])
1366
1366
  }, {
1367
1367
  default: w(() => [
1368
1368
  i.icon ? (V(), D(o(be), {
@@ -1398,7 +1398,7 @@ const Mo = {
1398
1398
  }, O(S({}, Z), { allowNull: !1 })),
1399
1399
  emits: ["update:modelValue", "click:clear"],
1400
1400
  setup(e, { emit: t }) {
1401
- const n = e, a = t, { densityClass: l, label: r, showErrors: s, touched: f, value: i, vuetifyBindings: d } = G(n, a), h = b(() => n.allowNull && i.value == null), m = b({
1401
+ const n = e, a = t, { densityClass: l, label: r, showErrors: s, touched: f, value: i, vuetifyBindings: c } = G(n, a), v = b(() => n.allowNull && i.value == null), m = b({
1402
1402
  get() {
1403
1403
  return i.value;
1404
1404
  },
@@ -1406,20 +1406,20 @@ const Mo = {
1406
1406
  }
1407
1407
  });
1408
1408
  function y() {
1409
- const c = vt(i.value);
1410
- c === !0 ? i.value = n.allowNull ? null : !1 : i.value = c === !1;
1409
+ const d = vt(i.value);
1410
+ d === !0 ? i.value = n.allowNull ? null : !1 : i.value = d === !1;
1411
1411
  }
1412
- return (c, j) => {
1412
+ return (d, j) => {
1413
1413
  const T = A("v-checkbox");
1414
1414
  return V(), D(T, R({
1415
1415
  modelValue: m.value,
1416
1416
  "onUpdate:modelValue": j[0] || (j[0] = (k) => m.value = k),
1417
1417
  density: "compact",
1418
1418
  class: o(l),
1419
- indeterminate: h.value,
1419
+ indeterminate: v.value,
1420
1420
  "false-value": !1,
1421
1421
  "true-value": !0
1422
- }, o(d), {
1422
+ }, o(c), {
1423
1423
  onChange: y,
1424
1424
  onBlur: j[1] || (j[1] = (k) => f.value = !0)
1425
1425
  }), {
@@ -1461,20 +1461,20 @@ const Mo = {
1461
1461
  }, O(S({}, Z), { allowNull: !1 })),
1462
1462
  emits: ["update:modelValue", "click:clear"],
1463
1463
  setup(e, { emit: t }) {
1464
- const n = e, a = t, { densityClass: l, label: r, showErrors: s, touched: f, value: i, vuetifyBindings: d } = G(n, a), h = F(!1), m = b(() => [
1464
+ const n = e, a = t, { densityClass: l, label: r, showErrors: s, touched: f, value: i, vuetifyBindings: c } = G(n, a), v = F(!1), m = b(() => [
1465
1465
  (y) => n.control || !y && n.allowNull || /^#?([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$/.test(y) ? !0 : "Not a valid hex string."
1466
1466
  ]);
1467
- return (y, c) => {
1467
+ return (y, d) => {
1468
1468
  const j = A("v-color-picker"), T = A("v-menu"), k = A("v-text-field");
1469
1469
  return V(), D(k, R({
1470
1470
  modelValue: o(i),
1471
- "onUpdate:modelValue": c[2] || (c[2] = (g) => ae(i) ? i.value = g : null),
1471
+ "onUpdate:modelValue": d[2] || (d[2] = (g) => ae(i) ? i.value = g : null),
1472
1472
  class: o(l),
1473
1473
  clearable: e.allowNull,
1474
1474
  type: "text",
1475
1475
  rules: m.value
1476
- }, o(d), {
1477
- onBlur: c[3] || (c[3] = (g) => f.value = !0)
1476
+ }, o(c), {
1477
+ onBlur: d[3] || (d[3] = (g) => f.value = !0)
1478
1478
  }), {
1479
1479
  label: w((g) => [
1480
1480
  B(o(re), {
@@ -1495,15 +1495,15 @@ const Mo = {
1495
1495
  ]),
1496
1496
  default: w(() => [
1497
1497
  B(T, {
1498
- modelValue: h.value,
1499
- "onUpdate:modelValue": c[1] || (c[1] = (g) => h.value = g),
1498
+ modelValue: v.value,
1499
+ "onUpdate:modelValue": d[1] || (d[1] = (g) => v.value = g),
1500
1500
  "close-on-content-click": !1,
1501
1501
  activator: "parent"
1502
1502
  }, {
1503
1503
  default: w(() => [
1504
1504
  B(j, {
1505
1505
  modelValue: o(i),
1506
- "onUpdate:modelValue": c[0] || (c[0] = (g) => ae(i) ? i.value = g : null),
1506
+ "onUpdate:modelValue": d[0] || (d[0] = (g) => ae(i) ? i.value = g : null),
1507
1507
  mode: "hexa"
1508
1508
  }, null, 8, ["modelValue"])
1509
1509
  ]),
@@ -1548,26 +1548,26 @@ const Mo = {
1548
1548
  }), r = b(() => {
1549
1549
  var p, u;
1550
1550
  return (u = (p = l.value.options) == null ? void 0 : p.weekStartsOn) != null ? u : 1;
1551
- }), { densityClass: s, touched: f, value: i, vuetifyBindings: d } = G(n, a), { inputType: h, displayFormatDate: m, displayFormatTime: y } = Ce(n), c = F(""), j = b({
1551
+ }), { densityClass: s, touched: f, value: i, vuetifyBindings: c } = G(n, a), { inputType: v, displayFormatDate: m, displayFormatTime: y } = Ce(n), d = F(""), j = b({
1552
1552
  get() {
1553
- return o(c) === "date";
1553
+ return o(d) === "date";
1554
1554
  },
1555
1555
  set(p) {
1556
- c.value = p ? "date" : "";
1556
+ d.value = p ? "date" : "";
1557
1557
  }
1558
1558
  }), T = b({
1559
1559
  get() {
1560
- return o(c) === "time";
1560
+ return o(d) === "time";
1561
1561
  },
1562
1562
  set(p) {
1563
- c.value = p ? "time" : "";
1563
+ d.value = p ? "time" : "";
1564
1564
  }
1565
1565
  }), k = (p) => `${me(p, "yyyy-MM-dd")}T${me(p, "HH:mm")}:00`, g = F(null);
1566
1566
  function _(p, u) {
1567
1567
  if (p == null)
1568
1568
  g.value = null;
1569
1569
  else if (u === -1)
1570
- if (o(h) === "time")
1570
+ if (o(v) === "time")
1571
1571
  g.value = k(/* @__PURE__ */ new Date()), _(`T${p}`, 1);
1572
1572
  else {
1573
1573
  const $ = k(new Date(p));
@@ -1576,7 +1576,7 @@ const Mo = {
1576
1576
  else {
1577
1577
  g.value == null && (g.value = k(/* @__PURE__ */ new Date()));
1578
1578
  const $ = g.value.split(/[TZ]/g), K = p.split(/[TZ]/g);
1579
- $[u] = K[u], g.value = k(/* @__PURE__ */ new Date(`${$[0]}T${$[1].split(".")[0]}`)), o(h) === "date" ? i.value = $[0] : o(h) === "time" ? i.value = $[1] : i.value = o(g) + me(/* @__PURE__ */ new Date(), "XXX");
1579
+ $[u] = K[u], g.value = k(/* @__PURE__ */ new Date(`${$[0]}T${$[1].split(".")[0]}`)), o(v) === "date" ? i.value = $[0] : o(v) === "time" ? i.value = $[1] : i.value = o(g) + me(/* @__PURE__ */ new Date(), "XXX");
1580
1580
  }
1581
1581
  }
1582
1582
  ue(i, (p) => _(p, -1), { immediate: !0 });
@@ -1598,7 +1598,7 @@ const Mo = {
1598
1598
  set(p) {
1599
1599
  _(`T${p}`, 1);
1600
1600
  }
1601
- }), v = b({
1601
+ }), h = b({
1602
1602
  get() {
1603
1603
  const p = o(M);
1604
1604
  return p == null ? "" : me(p, o(m), { locale: l.value });
@@ -1634,23 +1634,30 @@ const Mo = {
1634
1634
  }), {
1635
1635
  default: w((I) => [
1636
1636
  le("div", {
1637
- class: Y(["d-flex w-100 ml-4 df-input-wrapper", e.density])
1637
+ class: Y([
1638
+ "d-flex",
1639
+ "w-100",
1640
+ ["plain", "underlined"].includes(o(c).variant) ? void 0 : "ml-4",
1641
+ "df-input-wrapper",
1642
+ e.density
1643
+ ])
1638
1644
  }, [
1639
- ["date", "datetime"].includes(o(h)) ? (V(), D(de, R({
1645
+ ["date", "datetime"].includes(o(v)) ? (V(), D(de, R({
1640
1646
  key: 0,
1641
- modelValue: v.value,
1642
- "onUpdate:modelValue": u[4] || (u[4] = (C) => v.value = C),
1647
+ modelValue: h.value,
1648
+ "onUpdate:modelValue": u[4] || (u[4] = (C) => h.value = C),
1643
1649
  style: { "flex-grow": "4" },
1644
1650
  density: "compact",
1645
1651
  variant: "plain",
1646
1652
  clearable: !1,
1647
1653
  "hide-details": !0,
1648
- readonly: o(d).readonly,
1649
- disabled: o(d).disabled,
1650
- name: `${o(d).name}-date`
1654
+ readonly: o(c).readonly,
1655
+ disabled: o(c).disabled,
1656
+ name: `${o(c).name}-date`,
1657
+ placeholder: o(c).placeholder
1651
1658
  }, e.passthroughAttrs, {
1652
- onClick: u[5] || (u[5] = (C) => c.value = "date"),
1653
- onKeydown: u[6] || (u[6] = Fe((C) => c.value = "date", ["space"])),
1659
+ onClick: u[5] || (u[5] = (C) => d.value = "date"),
1660
+ onKeydown: u[6] || (u[6] = Fe((C) => d.value = "date", ["space"])),
1654
1661
  onFocus: (C) => I.focus(),
1655
1662
  onBlur: (C) => I.blur()
1656
1663
  }), {
@@ -1665,8 +1672,8 @@ const Mo = {
1665
1672
  B(K, {
1666
1673
  modelValue: M.value,
1667
1674
  "onUpdate:modelValue": u[0] || (u[0] = (C) => M.value = C),
1668
- onCancel: u[1] || (u[1] = (C) => c.value = ""),
1669
- onSave: u[2] || (u[2] = (C) => c.value = "")
1675
+ onCancel: u[1] || (u[1] = (C) => d.value = ""),
1676
+ onSave: u[2] || (u[2] = (C) => d.value = "")
1670
1677
  }, {
1671
1678
  default: w(({ model: C, actions: J }) => [
1672
1679
  B($, {
@@ -1690,8 +1697,8 @@ const Mo = {
1690
1697
  }, 8, ["modelValue"])
1691
1698
  ]),
1692
1699
  _: 1
1693
- }, 16, ["modelValue", "readonly", "disabled", "name", "onFocus", "onBlur"])) : U("", !0),
1694
- ["time", "datetime"].includes(o(h)) ? (V(), D(de, R({
1700
+ }, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) : U("", !0),
1701
+ ["time", "datetime"].includes(o(v)) ? (V(), D(de, R({
1695
1702
  key: 1,
1696
1703
  modelValue: L.value,
1697
1704
  "onUpdate:modelValue": u[11] || (u[11] = (C) => L.value = C),
@@ -1700,12 +1707,13 @@ const Mo = {
1700
1707
  variant: "plain",
1701
1708
  clearable: !1,
1702
1709
  "hide-details": !0,
1703
- readonly: o(d).readonly,
1704
- disabled: o(d).disabled,
1705
- name: `${o(d).name}-time`
1710
+ readonly: o(c).readonly,
1711
+ disabled: o(c).disabled,
1712
+ name: `${o(c).name}-time`,
1713
+ placeholder: o(v) === "time" ? o(c).placeholder : void 0
1706
1714
  }, e.passthroughAttrs, {
1707
- onClick: u[12] || (u[12] = (C) => c.value = "time"),
1708
- onKeydown: u[13] || (u[13] = Fe((C) => c.value = "time", ["space"])),
1715
+ onClick: u[12] || (u[12] = (C) => d.value = "time"),
1716
+ onKeydown: u[13] || (u[13] = Fe((C) => d.value = "time", ["space"])),
1709
1717
  onFocus: (C) => I.focus(),
1710
1718
  onBlur: (C) => I.blur()
1711
1719
  }), {
@@ -1720,8 +1728,8 @@ const Mo = {
1720
1728
  B(K, {
1721
1729
  modelValue: N.value,
1722
1730
  "onUpdate:modelValue": u[7] || (u[7] = (C) => N.value = C),
1723
- onCancel: u[8] || (u[8] = (C) => c.value = ""),
1724
- onSave: u[9] || (u[9] = (C) => c.value = "")
1731
+ onCancel: u[8] || (u[8] = (C) => d.value = ""),
1732
+ onSave: u[9] || (u[9] = (C) => d.value = "")
1725
1733
  }, {
1726
1734
  default: w(({ model: C, actions: J }) => [
1727
1735
  B(x, {
@@ -1743,7 +1751,7 @@ const Mo = {
1743
1751
  }, 8, ["modelValue"])
1744
1752
  ]),
1745
1753
  _: 1
1746
- }, 16, ["modelValue", "readonly", "disabled", "name", "onFocus", "onBlur"])) : U("", !0)
1754
+ }, 16, ["modelValue", "readonly", "disabled", "name", "placeholder", "onFocus", "onBlur"])) : U("", !0)
1747
1755
  ], 2)
1748
1756
  ]),
1749
1757
  _: 1
@@ -1771,7 +1779,7 @@ const Mo = {
1771
1779
  }, Z),
1772
1780
  emits: ["update:modelValue", "click:clear"],
1773
1781
  setup(e, { emit: t }) {
1774
- const n = e, a = t, { densityClass: l, touched: r, value: s, vuetifyBindings: f } = G(n, a), i = F(null), d = F(null), h = F(0), m = F(Math.round(Math.random() * 1e3)), y = F(), c = b(() => d.value && h.value < 100), j = b(() => !y.value && s.value ? n.modelValue : "");
1782
+ const n = e, a = t, { densityClass: l, touched: r, value: s, vuetifyBindings: f } = G(n, a), i = F(null), c = F(null), v = F(0), m = F(Math.round(Math.random() * 1e3)), y = F(), d = b(() => c.value && v.value < 100), j = b(() => !y.value && s.value ? n.modelValue : "");
1775
1783
  function T() {
1776
1784
  i.value && window.clearInterval(i.value);
1777
1785
  }
@@ -1785,40 +1793,40 @@ const Mo = {
1785
1793
  });
1786
1794
  function g() {
1787
1795
  return ge(this, null, function* () {
1788
- s.value && (yield n.comms.delete(s.value)), s.value = null, h.value = 0, m.value = Math.round(Math.random() * 1e3), d.value = null, y.value = null, T();
1796
+ s.value && (yield n.comms.delete(s.value)), s.value = null, v.value = 0, m.value = Math.round(Math.random() * 1e3), c.value = null, y.value = null, T();
1789
1797
  });
1790
1798
  }
1791
1799
  function _(N) {
1792
1800
  return ge(this, null, function* () {
1793
- h.value = -1, d.value = N;
1801
+ v.value = -1, c.value = N;
1794
1802
  try {
1795
- s.value = yield n.comms.upload(N, (v, L) => {
1796
- h.value = Math.round(v * 100 / L);
1797
- }), h.value = 100, k();
1798
- } catch (v) {
1799
- throw h.value = 0, d.value = null, m.value = Math.round(Math.random() * 1e3), y.value = null, v;
1803
+ s.value = yield n.comms.upload(N, (h, L) => {
1804
+ v.value = Math.round(h * 100 / L);
1805
+ }), v.value = 100, k();
1806
+ } catch (h) {
1807
+ throw v.value = 0, c.value = null, m.value = Math.round(Math.random() * 1e3), y.value = null, h;
1800
1808
  }
1801
1809
  });
1802
1810
  }
1803
1811
  function M(N) {
1804
1812
  N && (Array.isArray(N) ? console.error("Uploading multiple files not supported right now") : _(N));
1805
1813
  }
1806
- return (N, v) => {
1814
+ return (N, h) => {
1807
1815
  const L = A("v-progress-linear"), p = A("v-file-input");
1808
- return V(), D(o(Pe), R(O(S({}, n), { loading: c.value }), {
1816
+ return V(), D(o(Pe), R(O(S({}, n), { loading: d.value }), {
1809
1817
  class: o(l),
1810
1818
  clearable: "",
1811
1819
  "onClick:clear": g,
1812
- onBlur: v[1] || (v[1] = (u) => r.value = !0)
1820
+ onBlur: h[1] || (h[1] = (u) => r.value = !0)
1813
1821
  }), {
1814
1822
  "prepend-inner": w(() => [
1815
1823
  B(o(be), { name: "mdi-paperclip" })
1816
1824
  ]),
1817
1825
  loader: w(() => [
1818
- d.value && h.value < 100 ? (V(), D(L, {
1826
+ c.value && v.value < 100 ? (V(), D(L, {
1819
1827
  key: 0,
1820
- "model-value": h.value,
1821
- indeterminate: h.value === -1
1828
+ "model-value": v.value,
1829
+ indeterminate: v.value === -1
1822
1830
  }, null, 8, ["model-value", "indeterminate"])) : U("", !0)
1823
1831
  ]),
1824
1832
  default: w((u) => [
@@ -1827,7 +1835,7 @@ const Mo = {
1827
1835
  }, [
1828
1836
  B(p, R({
1829
1837
  modelValue: y.value,
1830
- "onUpdate:modelValue": v[0] || (v[0] = ($) => y.value = $),
1838
+ "onUpdate:modelValue": h[0] || (h[0] = ($) => y.value = $),
1831
1839
  label: j.value,
1832
1840
  density: "compact",
1833
1841
  variant: "plain",
@@ -1837,7 +1845,7 @@ const Mo = {
1837
1845
  "hide-details": !0,
1838
1846
  "show-size": !0,
1839
1847
  multiple: !1,
1840
- style: d.value && h.value < 100 ? "visibility: hidden" : "",
1848
+ style: c.value && v.value < 100 ? "visibility: hidden" : "",
1841
1849
  clearable: !1
1842
1850
  }, e.passthroughAttrs, {
1843
1851
  "prepend-icon": "",
@@ -1882,8 +1890,8 @@ const Mo = {
1882
1890
  })),
1883
1891
  emits: ["update:modelValue", "click:clear"],
1884
1892
  setup(e, { emit: t }) {
1885
- const n = e, a = t, { densityClass: l, label: r, showErrors: s, touched: f, value: i, vuetifyBindings: d } = G(n, a), { inputType: h, max: m, min: y, precision: c, step: j } = Ce(n), T = b(() => h.value === "number"), k = b(
1886
- () => T.value ? { min: o(y), max: o(m), precision: o(c), step: o(j) } : {}
1893
+ const n = e, a = t, { densityClass: l, label: r, showErrors: s, touched: f, value: i, vuetifyBindings: c } = G(n, a), { inputType: v, max: m, min: y, precision: d, step: j } = Ce(n), T = b(() => v.value === "number"), k = b(
1894
+ () => T.value ? { min: o(y), max: o(m), precision: o(d), step: o(j) } : {}
1887
1895
  );
1888
1896
  return (g, _) => {
1889
1897
  const M = A("v-text-field"), N = A("v-number-input");
@@ -1893,19 +1901,19 @@ const Mo = {
1893
1901
  T.value ? (V(), D(N, R({
1894
1902
  key: 1,
1895
1903
  modelValue: o(i),
1896
- "onUpdate:modelValue": _[2] || (_[2] = (v) => ae(i) ? i.value = v : null),
1904
+ "onUpdate:modelValue": _[2] || (_[2] = (h) => ae(i) ? i.value = h : null),
1897
1905
  density: "compact",
1898
1906
  "control-variant": "stacked"
1899
- }, S(S({}, o(d)), k.value)), {
1900
- label: w((v) => [
1907
+ }, S(S({}, o(c)), k.value)), {
1908
+ label: w((h) => [
1901
1909
  B(o(re), {
1902
- data: v,
1910
+ data: h,
1903
1911
  label: o(r)
1904
1912
  }, null, 8, ["data", "label"])
1905
1913
  ]),
1906
- message: w(({ message: v }) => [
1914
+ message: w(({ message: h }) => [
1907
1915
  B(o(q), {
1908
- message: v,
1916
+ message: h,
1909
1917
  errors: o(s)
1910
1918
  }, null, 8, ["message", "errors"])
1911
1919
  ]),
@@ -1913,20 +1921,20 @@ const Mo = {
1913
1921
  }, 16, ["modelValue"])) : (V(), D(M, R({
1914
1922
  key: 0,
1915
1923
  modelValue: o(i),
1916
- "onUpdate:modelValue": _[0] || (_[0] = (v) => ae(i) ? i.value = v : null),
1917
- type: o(h)
1918
- }, o(d), {
1919
- onBlur: _[1] || (_[1] = (v) => f.value = !0)
1924
+ "onUpdate:modelValue": _[0] || (_[0] = (h) => ae(i) ? i.value = h : null),
1925
+ type: o(v)
1926
+ }, o(c), {
1927
+ onBlur: _[1] || (_[1] = (h) => f.value = !0)
1920
1928
  }), {
1921
- label: w((v) => [
1929
+ label: w((h) => [
1922
1930
  B(o(re), {
1923
- data: v,
1931
+ data: h,
1924
1932
  label: o(r)
1925
1933
  }, null, 8, ["data", "label"])
1926
1934
  ]),
1927
- message: w(({ message: v }) => [
1935
+ message: w(({ message: h }) => [
1928
1936
  B(o(q), {
1929
- message: v,
1937
+ message: h,
1930
1938
  errors: o(s)
1931
1939
  }, null, 8, ["message", "errors"])
1932
1940
  ]),
@@ -2028,7 +2036,7 @@ const Mo = {
2028
2036
  { model: "heading5", view: "h5", title: E.Heading5, class: "ck-heading_heading5" },
2029
2037
  { model: "heading6", view: "h6", title: E.Heading6, class: "ck-heading_heading6" }
2030
2038
  ]
2031
- }, d = {
2039
+ }, c = {
2032
2040
  language: ke.language,
2033
2041
  toolbar: s,
2034
2042
  plugins: f,
@@ -2081,21 +2089,21 @@ const Mo = {
2081
2089
  Ke(() => {
2082
2090
  l.value = !0;
2083
2091
  });
2084
- const h = (m) => {
2092
+ const v = (m) => {
2085
2093
  };
2086
- return t({ onEditorReady: h }), (m, y) => {
2087
- const c = A("ckeditor");
2094
+ return t({ onEditorReady: v }), (m, y) => {
2095
+ const d = A("ckeditor");
2088
2096
  return V(), W("div", Ko, [
2089
2097
  le("div", Xo, [
2090
2098
  le("div", Go, [
2091
- l.value ? (V(), D(c, {
2099
+ l.value ? (V(), D(d, {
2092
2100
  key: 0,
2093
2101
  "model-value": e.modelValue,
2094
2102
  editor: o(r),
2095
- config: d,
2103
+ config: c,
2096
2104
  disabled: e.disabled,
2097
2105
  style: Ge(`min-height: ${e.minHeight}`),
2098
- onReady: h,
2106
+ onReady: v,
2099
2107
  "onUpdate:modelValue": y[0] || (y[0] = (j) => a("update:modelValue", j))
2100
2108
  }, null, 8, ["model-value", "editor", "disabled", "style"])) : U("", !0)
2101
2109
  ], 512)
@@ -2128,18 +2136,18 @@ const Mo = {
2128
2136
  return (f, i) => (V(), D(o(Pe), R(n, {
2129
2137
  class: ["ck-editor-custom", o(l)]
2130
2138
  }), {
2131
- default: w((d) => [
2139
+ default: w((c) => [
2132
2140
  B(qo, R({
2133
2141
  ref: "$editor",
2134
2142
  modelValue: o(r),
2135
- "onUpdate:modelValue": i[0] || (i[0] = (h) => ae(r) ? r.value = h : null),
2143
+ "onUpdate:modelValue": i[0] || (i[0] = (v) => ae(r) ? r.value = v : null),
2136
2144
  class: { "mt-6": !!e.label },
2137
2145
  "min-height": e.minHeight,
2138
2146
  disabled: o(s).disabled,
2139
2147
  placeholder: "dfsjghdf"
2140
2148
  }, e.passthroughAttrs, {
2141
- onFocusin: (h) => d.focus(),
2142
- onFocusout: (h) => d.blur()
2149
+ onFocusin: (v) => c.focus(),
2150
+ onFocusout: (v) => c.blur()
2143
2151
  }), null, 16, ["modelValue", "class", "min-height", "disabled", "onFocusin", "onFocusout"])
2144
2152
  ]),
2145
2153
  _: 1
@@ -2208,17 +2216,17 @@ const Zo = {
2208
2216
  })),
2209
2217
  emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
2210
2218
  setup(e, { emit: t }) {
2211
- const n = e, { choices: a, multiple: l, allowTags: r, allowNull: s, cssClass: f, visibility: i } = Ce(n), d = t, {
2212
- densityClass: h,
2219
+ const n = e, { choices: a, multiple: l, allowTags: r, allowNull: s, cssClass: f, visibility: i } = Ce(n), c = t, {
2220
+ densityClass: v,
2213
2221
  label: m,
2214
2222
  showErrors: y,
2215
- touched: c,
2223
+ touched: d,
2216
2224
  value: j,
2217
2225
  vuetifyBindings: T
2218
- } = G(n, d), k = F(null), g = F(!1), _ = F([]), M = b(() => o(g) ? o(_) : o(a) || []), N = F(!1), v = b(() => Qo(M.value));
2219
- v.value && n.fetchChoices !== void 0 && console.warn("Both options and fetchChoices are set. Only one of them should be set.");
2226
+ } = G(n, c), k = F(null), g = F(!1), _ = F([]), M = b(() => o(g) ? o(_) : o(a) || []), N = F(!1), h = b(() => Qo(M.value));
2227
+ h.value && n.fetchChoices !== void 0 && console.warn("Both options and fetchChoices are set. Only one of them should be set.");
2220
2228
  function L(x) {
2221
- d("update:modelValueDisplay", Ve(M.value, x));
2229
+ c("update:modelValueDisplay", Ve(M.value, x));
2222
2230
  }
2223
2231
  let p = !1;
2224
2232
  function u(x) {
@@ -2275,7 +2283,7 @@ const Zo = {
2275
2283
  }
2276
2284
  function de() {
2277
2285
  let x = j.value;
2278
- !s.value && x == null && v.value.length && (x = v.value[0].value), x = ee(x, l.value), we(x, k, l.value, r.value, M.value), L(x), u(x);
2286
+ !s.value && x == null && h.value.length && (x = h.value[0].value), x = ee(x, l.value), we(x, k, l.value, r.value, M.value), L(x), u(x);
2279
2287
  }
2280
2288
  return de(), n.fetchChoices !== void 0 && ce(void 0, j.value).then(() => {
2281
2289
  de();
@@ -2287,13 +2295,13 @@ const Zo = {
2287
2295
  "onUpdate:modelValue": I[0] || (I[0] = (P) => k.value = P),
2288
2296
  class: [
2289
2297
  o(f),
2290
- o(h),
2298
+ o(v),
2291
2299
  {
2292
2300
  "d-none": o(i) === o(X).HIDDEN,
2293
2301
  invisible: o(i) === o(X).INVISIBLE
2294
2302
  }
2295
2303
  ],
2296
- items: v.value,
2304
+ items: h.value,
2297
2305
  "return-object": !1,
2298
2306
  chips: "",
2299
2307
  "auto-select-first": !0,
@@ -2308,7 +2316,7 @@ const Zo = {
2308
2316
  "onUpdate:search": I[1] || (I[1] = (P) => ce(P, void 0)),
2309
2317
  "onUpdate:modelValue": $,
2310
2318
  "onClick:clear": I[2] || (I[2] = (P) => k.value = null),
2311
- onBlur: I[3] || (I[3] = (P) => c.value = !0)
2319
+ onBlur: I[3] || (I[3] = (P) => d.value = !0)
2312
2320
  }), De({
2313
2321
  chip: w(({ item: P }) => [
2314
2322
  (V(), D(C, {
@@ -2410,8 +2418,8 @@ const Zo = {
2410
2418
  })),
2411
2419
  emits: ["update:modelValue", "click:clear"],
2412
2420
  setup(e, { emit: t }) {
2413
- const n = e, a = t, { densityClass: l, label: r, showErrors: s, touched: f, value: i, vuetifyBindings: d } = G(n, a), { cssClass: h, visibility: m } = Ce(n);
2414
- return (y, c) => {
2421
+ const n = e, a = t, { densityClass: l, label: r, showErrors: s, touched: f, value: i, vuetifyBindings: c } = G(n, a), { cssClass: v, visibility: m } = Ce(n);
2422
+ return (y, d) => {
2415
2423
  const j = A("v-textarea");
2416
2424
  return V(), W("div", {
2417
2425
  class: Y(["df-textarea-container", o(l)])
@@ -2419,9 +2427,9 @@ const Zo = {
2419
2427
  o(m) !== o(X).SUPPRESS ? (V(), D(j, R({
2420
2428
  key: 0,
2421
2429
  modelValue: o(i),
2422
- "onUpdate:modelValue": c[0] || (c[0] = (T) => ae(i) ? i.value = T : null),
2430
+ "onUpdate:modelValue": d[0] || (d[0] = (T) => ae(i) ? i.value = T : null),
2423
2431
  class: [
2424
- o(h),
2432
+ o(v),
2425
2433
  {
2426
2434
  "d-none": o(m) === o(X).HIDDEN,
2427
2435
  invisible: o(m) === o(X).INVISIBLE
@@ -2430,8 +2438,8 @@ const Zo = {
2430
2438
  rows: e.rows,
2431
2439
  "auto-grow": (e.maxRows || 0) > 0,
2432
2440
  "max-rows": e.maxRows
2433
- }, o(d), {
2434
- onBlur: c[1] || (c[1] = (T) => f.value = !0)
2441
+ }, o(c), {
2442
+ onBlur: d[1] || (d[1] = (T) => f.value = !0)
2435
2443
  }), {
2436
2444
  label: w((T) => [
2437
2445
  B(o(re), {