@dynamicforms/vuetify-inputs 0.1.9 → 0.1.10

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.
@@ -10,7 +10,7 @@ var ue = (t, e, l) => e in t ? Me(t, e, { enumerable: !0, configurable: !0, writ
10
10
  Ge.call(e, l) && ue(t, l, e[l]);
11
11
  return t;
12
12
  }, H = (t, e) => je(t, ze(e));
13
- var Y = (t, e, l) => ue(t, typeof e != "symbol" ? e + "" : e, l);
13
+ var Z = (t, e, l) => ue(t, typeof e != "symbol" ? e + "" : e, l);
14
14
  var ne = (t, e, l) => new Promise((r, n) => {
15
15
  var a = (c) => {
16
16
  try {
@@ -28,13 +28,13 @@ var ne = (t, e, l) => new Promise((r, n) => {
28
28
  u((l = l.apply(t, e)).next());
29
29
  });
30
30
  import * as we from "vue";
31
- import { defineComponent as F, mergeModels as Ve, useModel as We, ref as S, watch as q, onMounted as Se, markRaw as Xe, onBeforeUnmount as Ne, createBlock as k, openBlock as h, resolveDynamicComponent as ee, version as qe, computed as _, createElementBlock as E, Fragment as $e, renderList as Ee, normalizeClass as re, toDisplayString as te, unref as o, mergeProps as R, withCtx as y, createTextVNode as be, resolveComponent as x, createCommentVNode as $, createVNode as A, createSlots as Ze, renderSlot as Ye, isRef as G, withModifiers as Qe, mergeDefaults as z, createElementVNode as le, normalizeStyle as he, toRefs as se, withKeys as ke, useCssVars as Je, normalizeProps as Ue, guardReactiveProps as Fe, nextTick as et } from "vue";
31
+ import { defineComponent as F, mergeModels as Ve, useModel as We, ref as S, watch as J, onMounted as Se, markRaw as Xe, onBeforeUnmount as Ne, createBlock as k, openBlock as h, resolveDynamicComponent as ee, version as qe, computed as _, createElementBlock as E, Fragment as $e, renderList as Ee, normalizeClass as re, toDisplayString as te, unref as o, mergeProps as R, withCtx as y, createTextVNode as be, resolveComponent as x, createCommentVNode as $, createVNode as A, createSlots as Ze, renderSlot as Ye, isRef as G, withModifiers as Qe, mergeDefaults as z, createElementVNode as le, normalizeStyle as he, toRefs as se, withKeys as ke, useCssVars as Je, normalizeProps as Ue, guardReactiveProps as Fe, nextTick as et } from "vue";
32
32
  import { debounce as tt, isEmpty as lt, isObjectLike as ot, isString as pe, isBoolean as Te, clone as nt, toNumber as Ce, isNaN as Ie, isArray as Be, castArray as Le, first as Pe } from "lodash-es";
33
33
  import fe from "vue-ionicon";
34
34
  import { useDisplay as at } from "vuetify";
35
35
  import xe, { ValidationErrorRenderContent as rt, DisplayMode as M, ExecuteAction as it, Action as ce } from "@dynamicforms/vue-forms";
36
36
  import st from "vue-markdown-render";
37
- import { format as Q, parse as ut } from "date-fns";
37
+ import { format as Y, parse as ut } from "date-fns";
38
38
  import { AccessibilityHelp as ct, Alignment as dt, AutoImage as mt, AutoLink as pt, Autosave as ft, BalloonToolbar as vt, BlockQuote as bt, Bold as ht, CloudServices as gt, Essentials as yt, GeneralHtmlSupport as _t, Heading as wt, HorizontalLine as Vt, ImageBlock as kt, ImageCaption as Tt, ImageInline as Ct, ImageInsertViaUrl as It, ImageResize as Bt, ImageStyle as xt, ImageToolbar as At, ImageUpload as Dt, Indent as St, IndentBlock as Nt, Italic as $t, Link as Et, List as Ut, Autoformat as Ft, MediaEmbed as Lt, Paragraph as Pt, PasteFromMarkdownExperimental as Rt, PasteFromOffice as Ot, SelectAll as Ht, Style as Mt, Table as jt, TableCellProperties as zt, TableColumnResize as Kt, TableProperties as Gt, TableToolbar as Wt, Undo as Xt, TextTransformation as qt, Base64UploadAdapter as Zt, ClassicEditor as Yt } from "ckeditor5";
39
39
  import { VAutocomplete as Qt } from "vuetify/components/VAutocomplete";
40
40
  import { VBtn as Jt } from "vuetify/components/VBtn";
@@ -216,9 +216,9 @@ const de = "Lock from Vue integration (@ckeditor/ckeditor5-vue)", Al = 300, Dl =
216
216
  e({
217
217
  instance: u,
218
218
  lastEditorData: c
219
- }), q(r, (i) => {
219
+ }), J(r, (i) => {
220
220
  u.value && i !== c.value && u.value.data.set(i);
221
- }), q(() => n.disabled, (i) => {
221
+ }), J(() => n.disabled, (i) => {
222
222
  i ? u.value.enableReadOnlyMode(de) : u.value.disableReadOnlyMode(de);
223
223
  });
224
224
  function v() {
@@ -443,7 +443,7 @@ Object.freeze(O);
443
443
  const De = ["xl", "lg", "md", "sm", "xs"];
444
444
  class ie {
445
445
  constructor(e, l) {
446
- Y(this, "_value");
446
+ Z(this, "_value");
447
447
  if (this._value = {}, !e) return;
448
448
  let r = ie.cleanBreakpoint(e);
449
449
  !(r != null && r.label) && l && (r ? r.label || (r.label = l) : r = { label: l }), r && (this._value = r), De.forEach((n) => {
@@ -473,9 +473,9 @@ class ie {
473
473
  }
474
474
  class ae {
475
475
  constructor(e, l) {
476
- Y(this, "name");
477
- Y(this, "displayStyle");
478
- Y(this, "formAction");
476
+ Z(this, "name");
477
+ Z(this, "displayStyle");
478
+ Z(this, "formAction");
479
479
  if (e.name == null) throw new Error(`Action name must not be empty ${e}`);
480
480
  const r = !pe(e.label) || e.label.length === 0 ? void 0 : e.label, n = !pe(e.icon) || e.icon.length === 0 ? void 0 : e.icon;
481
481
  this.name = e.name, this.displayStyle = new ie(e.displayStyle, r), this.formAction = l, this.formAction.icon = n, this.formAction.label = r;
@@ -636,13 +636,9 @@ const Fl = {
636
636
  get() {
637
637
  return a.value;
638
638
  },
639
- set(s) {
639
+ set() {
640
640
  }
641
- // eslint-disable-line @typescript-eslint/no-unused-vars
642
641
  });
643
- q(a, (s) => {
644
- s ? a.value = !0 : l.allowNull && s == null ? a.value = null : a.value = !1;
645
- }, { immediate: !0 });
646
642
  function v() {
647
643
  const s = nt(a.value);
648
644
  s === !0 ? a.value = l.allowNull ? null : !1 : a.value = s === !1;
@@ -765,7 +761,7 @@ const Fl = {
765
761
  set(b) {
766
762
  b ? v.value = "date" : v.value = "";
767
763
  }
768
- }), i = (b) => `${Q(b, "yyyy-MM-dd")}T${Q(b, "HH:mm")}:00`, m = S(null);
764
+ }), i = (b) => `${Y(b, "yyyy-MM-dd")}T${Y(b, "HH:mm")}:00`, m = S(null);
769
765
  function p(b, d) {
770
766
  if (b == null)
771
767
  m.value = null;
@@ -779,10 +775,10 @@ const Fl = {
779
775
  else {
780
776
  m.value == null && (m.value = i(/* @__PURE__ */ new Date()));
781
777
  const T = m.value.split(/[TZ]/g), P = b.split(/[TZ]/g);
782
- T[d] = P[d], m.value = i(/* @__PURE__ */ new Date(`${T[0]}T${T[1].split(".")[0]}`)), o(f) === "date" ? n.value = T[0] : o(f) === "time" ? n.value = T[1] : n.value = o(m) + Q(/* @__PURE__ */ new Date(), "XXX");
778
+ T[d] = P[d], m.value = i(/* @__PURE__ */ new Date(`${T[0]}T${T[1].split(".")[0]}`)), o(f) === "date" ? n.value = T[0] : o(f) === "time" ? n.value = T[1] : n.value = o(m) + Y(/* @__PURE__ */ new Date(), "XXX");
783
779
  }
784
780
  }
785
- q(n, (b) => p(b, -1), { immediate: !0 });
781
+ J(n, (b) => p(b, -1), { immediate: !0 });
786
782
  const g = _({
787
783
  get() {
788
784
  const b = o(m);
@@ -804,7 +800,7 @@ const Fl = {
804
800
  }), L = _({
805
801
  get() {
806
802
  const b = o(g);
807
- return b == null ? "" : Q(b, o(u));
803
+ return b == null ? "" : Y(b, o(u));
808
804
  },
809
805
  set(b) {
810
806
  try {
@@ -817,7 +813,7 @@ const Fl = {
817
813
  }), B = _({
818
814
  get() {
819
815
  const b = o(g);
820
- return b == null ? "" : Q(b, o(c));
816
+ return b == null ? "" : Y(b, o(c));
821
817
  },
822
818
  set(b) {
823
819
  const d = b.match(/(\d+):(\d+)\s?([a-zA-Z]+)?/);
@@ -828,7 +824,7 @@ const Fl = {
828
824
  }
829
825
  });
830
826
  return (b, d) => {
831
- const T = x("v-text-field"), P = x("v-date-picker"), Z = x("v-confirm-edit"), I = x("v-time-picker"), C = x("v-menu");
827
+ const T = x("v-text-field"), P = x("v-date-picker"), q = x("v-confirm-edit"), I = x("v-time-picker"), C = x("v-menu");
832
828
  return h(), k(o(ge), R(l, {
833
829
  clearable: "",
834
830
  "onClick:clear": d[13] || (d[13] = (V) => n.value = null)
@@ -876,7 +872,7 @@ const Fl = {
876
872
  ])
877
873
  ]),
878
874
  default: y(() => [
879
- v.value === "date" ? (h(), k(Z, {
875
+ v.value === "date" ? (h(), k(q, {
880
876
  key: 0,
881
877
  modelValue: g.value,
882
878
  "onUpdate:modelValue": d[6] || (d[6] = (V) => g.value = V),
@@ -900,7 +896,7 @@ const Fl = {
900
896
  ]),
901
897
  _: 1
902
898
  }, 8, ["modelValue"])) : $("", !0),
903
- v.value === "time" ? (h(), k(Z, {
899
+ v.value === "time" ? (h(), k(q, {
904
900
  key: 1,
905
901
  modelValue: w.value,
906
902
  "onUpdate:modelValue": d[9] || (d[9] = (V) => w.value = V),
@@ -957,7 +953,7 @@ const Fl = {
957
953
  n.value && l.comms.touch(n.value);
958
954
  }, 60 * 1e3);
959
955
  }
960
- Ne(() => m()), q(n, (B) => {
956
+ Ne(() => m()), J(n, (B) => {
961
957
  B ? p() : m();
962
958
  });
963
959
  function g() {
@@ -1285,7 +1281,7 @@ const Fl = {
1285
1281
  function eo(t) {
1286
1282
  return t.map((e) => ({ value: e.id, title: e.text, icon: e.icon }));
1287
1283
  }
1288
- function J(t, e) {
1284
+ function Q(t, e) {
1289
1285
  var l;
1290
1286
  return t == null || Be(t) && t.length === 0 ? null : e ? Le(t) : Be(t) ? (l = Pe(t)) != null ? l : null : t;
1291
1287
  }
@@ -1296,7 +1292,7 @@ function ve(t, e) {
1296
1292
  }
1297
1293
  function me(t, e, l, r, n) {
1298
1294
  var f;
1299
- const a = J(t, l);
1295
+ const a = Q(t, l);
1300
1296
  if (a == null) {
1301
1297
  e.value = l ? [] : null;
1302
1298
  return;
@@ -1348,20 +1344,20 @@ const to = {
1348
1344
  function b(I) {
1349
1345
  s("update:modelValueDisplay", ve(w.value, I));
1350
1346
  }
1351
- q(g, (I) => {
1347
+ J(g, (I) => {
1352
1348
  p.value.readonly || et(() => {
1353
- const C = J(I, n.value);
1349
+ const C = Q(I, n.value);
1354
1350
  b(C), m.value = C;
1355
1351
  });
1356
1352
  }, { deep: !0 });
1357
1353
  function d() {
1358
1354
  if (p.value.readonly || a.value) return;
1359
- const I = J(g.value, n.value);
1355
+ const I = Q(g.value, n.value);
1360
1356
  me(I, g, n.value, !1, w.value), m.value = I;
1361
1357
  }
1362
1358
  function T(I) {
1363
1359
  let C;
1364
- n.value && Array.isArray(g.value) ? C = J(g.value.filter((V) => V !== I), n.value) : C = null, me(C, g, n.value, !1, w.value), m.value = C;
1360
+ n.value && Array.isArray(g.value) ? C = Q(g.value.filter((V) => V !== I), n.value) : C = null, me(C, g, n.value, !1, w.value), m.value = C;
1365
1361
  }
1366
1362
  function P(I, C) {
1367
1363
  return ne(this, null, function* () {
@@ -1375,12 +1371,12 @@ const to = {
1375
1371
  }
1376
1372
  });
1377
1373
  }
1378
- function Z() {
1374
+ function q() {
1379
1375
  let I = m.value;
1380
- !f.value && I == null && B.value.length && (I = B.value[0].value), I = J(I, n.value), me(I, g, n.value, a.value, w.value), b(I), m.value = I;
1376
+ !f.value && I == null && B.value.length && (I = B.value[0].value), I = Q(I, n.value), me(I, g, n.value, a.value, w.value), b(I), m.value = I;
1381
1377
  }
1382
- return Z(), l.fetchChoices !== void 0 && P(void 0, m.value).then(() => {
1383
- Z();
1378
+ return q(), l.fetchChoices !== void 0 && P(void 0, m.value).then(() => {
1379
+ q();
1384
1380
  }), (I, C) => {
1385
1381
  const V = x("v-chip"), U = x("v-list-item");
1386
1382
  return o(c) !== o(M).SUPPRESS ? (h(), k(ee(o(a) ? "v-combobox" : "v-autocomplete"), R({