@dynamicforms/vuetify-inputs 0.1.11 → 0.1.12

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.
@@ -11,7 +11,7 @@ var ue = (t, e, l) => e in t ? Me(t, e, { enumerable: !0, configurable: !0, writ
11
11
  return t;
12
12
  }, H = (t, e) => je(t, ze(e));
13
13
  var Z = (t, e, l) => ue(t, typeof e != "symbol" ? e + "" : e, l);
14
- var oe = (t, e, l) => new Promise((r, n) => {
14
+ var ne = (t, e, l) => new Promise((r, n) => {
15
15
  var a = (c) => {
16
16
  try {
17
17
  u(l.next(c));
@@ -28,7 +28,7 @@ var oe = (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 J, onMounted as Se, markRaw as Xe, onBeforeUnmount as Ne, createBlock as V, openBlock as h, resolveDynamicComponent as ee, version as qe, computed as _, createElementBlock as E, Fragment as $e, renderList as Ee, normalizeClass as ae, toDisplayString as te, unref as o, mergeProps as P, 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 ie, 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 V, 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 P, 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";
@@ -332,7 +332,7 @@ const Nl = { class: "custom-error-display text-error" }, $l = { key: 0 }, El = /
332
332
  var a;
333
333
  return h(), E("div", {
334
334
  key: n,
335
- class: ae({ "first-error": n === 0, "last-error": n === e.errors.length - 1 })
335
+ class: re({ "first-error": n === 0, "last-error": n === e.errors.length - 1 })
336
336
  }, [
337
337
  r.componentName === "template" ? (h(), E("div", $l, te(r.componentBody), 1)) : r.componentName === "vue-markdown" ? (h(), V(o(st), {
338
338
  key: 1,
@@ -350,12 +350,12 @@ const Nl = { class: "custom-error-display text-error" }, $l = { key: 0 }, El = /
350
350
  }), 128))
351
351
  ]));
352
352
  }
353
- }), se = (t, e) => {
353
+ }), oe = (t, e) => {
354
354
  const l = t.__vccOpts || t;
355
355
  for (const [r, n] of e)
356
356
  l[r] = n;
357
357
  return l;
358
- }, W = /* @__PURE__ */ se(El, [["__scopeId", "data-v-b274d086"]]), Ul = {
358
+ }, W = /* @__PURE__ */ oe(El, [["__scopeId", "data-v-b274d086"]]), Ul = {
359
359
  key: 0,
360
360
  for: "#following-v-input"
361
361
  }, ge = /* @__PURE__ */ F({
@@ -380,7 +380,7 @@ const Nl = { class: "custom-error-display text-error" }, $l = { key: 0 }, El = /
380
380
  const s = x("v-icon"), m = x("v-input");
381
381
  return o(f) !== o(M).SUPPRESS ? (h(), E("div", {
382
382
  key: 0,
383
- class: ae([
383
+ class: re([
384
384
  v.cssClass,
385
385
  {
386
386
  "d-none": o(f) === o(M).HIDDEN,
@@ -441,13 +441,13 @@ const Ae = 0;
441
441
  })(R || (R = {}));
442
442
  Object.freeze(R);
443
443
  const De = ["xl", "lg", "md", "sm", "xs"];
444
- class re {
444
+ class ie {
445
445
  constructor(e, l) {
446
446
  Z(this, "_value");
447
447
  if (this._value = {}, !e) return;
448
- let r = re.cleanBreakpoint(e);
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) => {
450
- const a = re.cleanBreakpoint(e[n]);
450
+ const a = ie.cleanBreakpoint(e[n]);
451
451
  a && (this._value[n] = a);
452
452
  });
453
453
  }
@@ -471,14 +471,14 @@ class re {
471
471
  return e.renderAs !== void 0 && (l.renderAs = R.fromAny(e.renderAs)), pe(e.label) && (l.label = e.label), Te(e.showLabel) && (l.showLabel = e.showLabel), Te(e.showIcon) && (l.showIcon = e.showIcon), Object.keys(l).length ? l : null;
472
472
  }
473
473
  }
474
- class ne {
474
+ class ae {
475
475
  constructor(e, l) {
476
476
  Z(this, "name");
477
477
  Z(this, "displayStyle");
478
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
- this.name = e.name, this.displayStyle = new re(e.displayStyle, r), this.formAction = l, this.formAction.icon = n, this.formAction.label = r;
481
+ this.name = e.name, this.displayStyle = new ie(e.displayStyle, r), this.formAction = l, this.formAction.icon = n, this.formAction.label = r;
482
482
  }
483
483
  get label() {
484
484
  var e;
@@ -510,7 +510,7 @@ class ne {
510
510
  return l;
511
511
  }
512
512
  static closeAction(e, l) {
513
- return new ne(
513
+ return new ae(
514
514
  N({
515
515
  name: "close",
516
516
  label: "Close",
@@ -522,7 +522,7 @@ class ne {
522
522
  );
523
523
  }
524
524
  static yesAction(e, l) {
525
- return new ne(
525
+ return new ae(
526
526
  N({
527
527
  name: "yes",
528
528
  label: "Yes",
@@ -534,7 +534,7 @@ class ne {
534
534
  );
535
535
  }
536
536
  static noAction(e, l) {
537
- return new ne(
537
+ return new ae(
538
538
  N({
539
539
  name: "no",
540
540
  label: "No",
@@ -587,7 +587,7 @@ const Fl = {
587
587
  const m = x("v-btn");
588
588
  return o(l).length > 0 ? (h(), E("div", {
589
589
  key: 0,
590
- class: ae(["text-end", {
590
+ class: re(["text-end", {
591
591
  "button-group": i.showAsGroup === "grouped" || i.showAsGroup === "grouped-no-borders",
592
592
  "with-border": i.showAsGroup === "grouped"
593
593
  }])
@@ -596,7 +596,7 @@ const Fl = {
596
596
  key: g,
597
597
  variant: c(p) === o(R).BUTTON ? "tonal" : "text",
598
598
  elevation: 0,
599
- class: ae(g !== -1 ? "" : "ms-3"),
599
+ class: re(g !== -1 ? "" : "ms-3"),
600
600
  size: i.buttonSize,
601
601
  onClick: Qe((I) => p.formAction.execute(I), ["stop"])
602
602
  }, {
@@ -614,7 +614,7 @@ const Fl = {
614
614
  ], 2)) : $("", !0);
615
615
  };
616
616
  }
617
- }), Rl = /* @__PURE__ */ se(Pl, [["__scopeId", "data-v-eb616f46"]]), Ol = /* @__PURE__ */ F({
617
+ }), Rl = /* @__PURE__ */ oe(Pl, [["__scopeId", "data-v-eb616f46"]]), Ol = /* @__PURE__ */ F({
618
618
  __name: "df-checkbox",
619
619
  props: /* @__PURE__ */ z({
620
620
  allowNull: { type: Boolean },
@@ -748,7 +748,7 @@ const Fl = {
748
748
  })),
749
749
  emits: ["update:modelValue", "click:clear"],
750
750
  setup(t, { emit: e }) {
751
- const l = t, r = e, { value: n, vuetifyBindings: a } = j(l, r), { inputType: f, displayFormatDate: u, displayFormatTime: c } = ie(l), v = S(""), i = _({
751
+ const l = t, r = e, { value: n, vuetifyBindings: a } = j(l, r), { inputType: f, displayFormatDate: u, displayFormatTime: c } = se(l), v = S(""), i = _({
752
752
  get() {
753
753
  return o(v) !== "";
754
754
  },
@@ -951,12 +951,12 @@ const Fl = {
951
951
  B ? p() : m();
952
952
  });
953
953
  function g() {
954
- return oe(this, null, function* () {
954
+ return ne(this, null, function* () {
955
955
  n.value && (yield l.comms.delete(n.value)), n.value = null, c.value = 0, v.value = Math.round(Math.random() * 1e3), u.value = null, i.value = null, m();
956
956
  });
957
957
  }
958
958
  function I(B) {
959
- return oe(this, null, function* () {
959
+ return ne(this, null, function* () {
960
960
  c.value = -1, u.value = B, new FormData().append("file", B, B.name);
961
961
  try {
962
962
  n.value = yield l.comms.upload(
@@ -1038,7 +1038,7 @@ const Fl = {
1038
1038
  })),
1039
1039
  emits: ["update:modelValue", "click:clear"],
1040
1040
  setup(t, { emit: e }) {
1041
- const l = t, r = e, { errors: n, value: a, vuetifyBindings: f } = j(l, r), { inputType: u, max: c, min: v, precision: i, step: s } = ie(l), m = _(() => u.value === "number"), p = _(() => m.value ? { min: v.value, max: c.value, precision: i.value, step: s.value } : {});
1041
+ const l = t, r = e, { errors: n, value: a, vuetifyBindings: f } = j(l, r), { inputType: u, max: c, min: v, precision: i, step: s } = se(l), m = _(() => u.value === "number"), p = _(() => m.value ? { min: v.value, max: c.value, precision: i.value, step: s.value } : {});
1042
1042
  return (g, I) => {
1043
1043
  const O = x("v-text-field"), B = x("v-number-input");
1044
1044
  return h(), E("div", Gl, [
@@ -1071,7 +1071,7 @@ const Fl = {
1071
1071
  ]);
1072
1072
  };
1073
1073
  }
1074
- }), Xl = /* @__PURE__ */ se(Wl, [["__scopeId", "data-v-7ce40eb2"]]), ql = { class: "editor-container" }, Zl = { class: "editor-container__editor" }, Yl = { ref: "editorElement" }, Ql = /* @__PURE__ */ F({
1074
+ }), Xl = /* @__PURE__ */ oe(Wl, [["__scopeId", "data-v-7ce40eb2"]]), ql = { class: "editor-container" }, Zl = { class: "editor-container__editor" }, Yl = { ref: "editorElement" }, Ql = /* @__PURE__ */ F({
1075
1075
  __name: "ck-editor-custom",
1076
1076
  props: {
1077
1077
  modelValue: { default: "" },
@@ -1334,7 +1334,7 @@ const to = {
1334
1334
  })),
1335
1335
  emits: ["update:modelValueDisplay", "update:modelValue", "click:clear"],
1336
1336
  setup(t, { emit: e }) {
1337
- const l = t, { choices: r } = l, { multiple: n, allowTags: a, allowNull: f, cssClass: u, visibility: c } = ie(l), v = S(!1), i = e, { errors: s, value: m, vuetifyBindings: p } = j(l, i), g = S(null), I = S(r || []), O = S(!1), B = _(() => eo(I.value));
1337
+ const l = t, { choices: r } = l, { multiple: n, allowTags: a, allowNull: f, cssClass: u, visibility: c } = se(l), v = S(!1), i = e, { errors: s, value: m, vuetifyBindings: p } = j(l, i), g = S(null), I = S(r || []), O = S(!1), B = _(() => eo(I.value));
1338
1338
  function b(C) {
1339
1339
  i("update:modelValueDisplay", ve(I.value, C));
1340
1340
  }
@@ -1354,7 +1354,7 @@ const to = {
1354
1354
  n.value && Array.isArray(g.value) ? T = Q(g.value.filter((w) => w !== C), n.value) : T = null, me(T, g, n.value, !1, I.value), m.value = T;
1355
1355
  }
1356
1356
  function L(C, T) {
1357
- return oe(this, null, function* () {
1357
+ return ne(this, null, function* () {
1358
1358
  if (!(r || l.fetchChoices === void 0)) {
1359
1359
  O.value = !0;
1360
1360
  try {
@@ -1419,7 +1419,7 @@ const to = {
1419
1419
  return [
1420
1420
  (X = D.raw) != null && X.icon ? (h(), E("span", to, [
1421
1421
  A(o(fe), {
1422
- class: "df-select-action-icon d-inline-block",
1422
+ class: "action-icon d-inline-block",
1423
1423
  name: D.raw.icon
1424
1424
  }, null, 8, ["name"])
1425
1425
  ])) : $("", !0)
@@ -1438,7 +1438,7 @@ const to = {
1438
1438
  return [
1439
1439
  (ye = X.raw) != null && ye.icon ? (h(), E("span", lo, [
1440
1440
  A(o(fe), {
1441
- class: "df-select-action-icon",
1441
+ class: "action-icon d-inline-block",
1442
1442
  name: X.raw.icon
1443
1443
  }, null, 8, ["name"])
1444
1444
  ])) : $("", !0)
@@ -1454,7 +1454,7 @@ const to = {
1454
1454
  }, 16, ["modelValue", "class", "items", "label", "closable-chips", "clearable", "multiple", "loading", "aria-describedby"])) : $("", !0);
1455
1455
  };
1456
1456
  }
1457
- }), no = { class: "container" }, ao = /* @__PURE__ */ F({
1457
+ }), no = /* @__PURE__ */ oe(oo, [["__scopeId", "data-v-2d1b6f78"]]), ao = { class: "container" }, ro = /* @__PURE__ */ F({
1458
1458
  __name: "df-text-area",
1459
1459
  props: /* @__PURE__ */ z({
1460
1460
  rows: {},
@@ -1476,10 +1476,10 @@ const to = {
1476
1476
  })),
1477
1477
  emits: ["update:modelValue", "click:clear"],
1478
1478
  setup(t, { emit: e }) {
1479
- const l = t, r = e, { errors: n, value: a, vuetifyBindings: f } = j(l, r), { cssClass: u, visibility: c } = ie(l);
1479
+ const l = t, r = e, { errors: n, value: a, vuetifyBindings: f } = j(l, r), { cssClass: u, visibility: c } = se(l);
1480
1480
  return (v, i) => {
1481
1481
  const s = x("v-textarea");
1482
- return h(), E("div", no, [
1482
+ return h(), E("div", ao, [
1483
1483
  o(c) !== o(M).SUPPRESS ? (h(), V(s, P({
1484
1484
  key: 0,
1485
1485
  modelValue: o(a),
@@ -1504,7 +1504,7 @@ const to = {
1504
1504
  ]);
1505
1505
  };
1506
1506
  }
1507
- }), ro = /* @__PURE__ */ se(ao, [["__scopeId", "data-v-2dc106f6"]]), io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1507
+ }), io = /* @__PURE__ */ oe(ro, [["__scopeId", "data-v-2dc106f6"]]), so = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1508
1508
  __proto__: null,
1509
1509
  DfActions: Rl,
1510
1510
  DfCheckbox: Ol,
@@ -1513,9 +1513,9 @@ const to = {
1513
1513
  DfFile: Kl,
1514
1514
  DfInput: Xl,
1515
1515
  DfRtfEditor: Jl,
1516
- DfSelect: oo,
1517
- DfTextArea: ro
1518
- }, Symbol.toStringTag, { value: "Module" })), so = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1516
+ DfSelect: no,
1517
+ DfTextArea: io
1518
+ }, Symbol.toStringTag, { value: "Module" })), uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1519
1519
  __proto__: null,
1520
1520
  VAutocomplete: Qt,
1521
1521
  VBtn: Jt,
@@ -1539,14 +1539,14 @@ const to = {
1539
1539
  VTextField: gl,
1540
1540
  VTextarea: hl,
1541
1541
  VTimePicker: yl
1542
- }, Symbol.toStringTag, { value: "Module" })), Oo = {
1542
+ }, Symbol.toStringTag, { value: "Module" })), Ho = {
1543
1543
  install: (t, e) => {
1544
1544
  var l, r;
1545
- t.use(Sl), (l = e == null ? void 0 : e.registerComponents) != null && l && Object.entries(io).map(([n, a]) => t.component(n, a)), (r = e == null ? void 0 : e.registerVuetifyComponents) != null && r && Object.entries(so).map(([n, a]) => t.component(n, a));
1545
+ t.use(Sl), (l = e == null ? void 0 : e.registerComponents) != null && l && Object.entries(so).map(([n, a]) => t.component(n, a)), (r = e == null ? void 0 : e.registerVuetifyComponents) != null && r && Object.entries(uo).map(([n, a]) => t.component(n, a));
1546
1546
  }
1547
1547
  };
1548
1548
  export {
1549
- ne as Action,
1549
+ ae as Action,
1550
1550
  R as ActionDisplayStyle,
1551
1551
  Rl as DfActions,
1552
1552
  Ol as DfCheckbox,
@@ -1555,12 +1555,12 @@ export {
1555
1555
  Kl as DfFile,
1556
1556
  Xl as DfInput,
1557
1557
  Jl as DfRtfEditor,
1558
- oo as DfSelect,
1559
- ro as DfTextArea,
1560
- Oo as DynamicFormsInputs,
1558
+ no as DfSelect,
1559
+ io as DfTextArea,
1560
+ Ho as DynamicFormsInputs,
1561
1561
  W as ErrorsWidget,
1562
1562
  ge as InputBase,
1563
- so as VuetifyComponents,
1563
+ uo as VuetifyComponents,
1564
1564
  K as defaultBaseProps,
1565
1565
  Ae as defaultDisplayStyle,
1566
1566
  j as useInputBase