pgo-ui 1.1.37 → 1.1.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Radio-CSy8R44u.js +4 -0
- package/dist/{index-D3B3wyao.js → index-B-iYhmuS.js} +10 -9
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
- package/src/components/pgo/forms/DynamicForm.vue +5 -4
- package/src/components/pgo/forms/Form.vue +5 -6
- package/src/components/pgo/inputs/TextField.vue +2 -0
- package/dist/Radio-no6EzWlW.js +0 -4
|
@@ -18179,13 +18179,13 @@ const gr = [
|
|
|
18179
18179
|
Object.keys(l).forEach((C) => delete l[C]), Object.entries(k).forEach(([C, S]) => {
|
|
18180
18180
|
l[C] = S;
|
|
18181
18181
|
for (const [T, E] of r.entries())
|
|
18182
|
-
E?.fieldKey === C && E?.setBackendError && (
|
|
18182
|
+
E?.fieldKey === C && E?.setBackendError && (d[T] = C, E.setBackendError(S));
|
|
18183
18183
|
}), x();
|
|
18184
18184
|
}, m = (k, C, S, T) => {
|
|
18185
18185
|
const E = r.get(k);
|
|
18186
18186
|
if (E?.rules && E.rules.length > 0 && (o[k] = !0, !C && S && S.length > 0 ? i[k] = S : delete i[k]), !T || T.length === 0) {
|
|
18187
18187
|
const D = d[k] || E?.fieldKey;
|
|
18188
|
-
D && delete l[D],
|
|
18188
|
+
D && delete l[D], delete l["__uid_" + k];
|
|
18189
18189
|
}
|
|
18190
18190
|
x();
|
|
18191
18191
|
}, b = I(() => {
|
|
@@ -18379,7 +18379,7 @@ const gr = [
|
|
|
18379
18379
|
}
|
|
18380
18380
|
}, re = I(() => {
|
|
18381
18381
|
const U = {}, X = new Set(g.form.fields.map((z) => z.inputType?.toLowerCase()));
|
|
18382
|
-
return (X.has("search") || X.has("inputsearch")) && (U.search = ct(() => Promise.resolve().then(() => Nh)), U.searchbox = ct(() => Promise.resolve().then(() => Nh))), X.has("select") && (U.select = ct(() => Promise.resolve().then(() => Ou))), X.has("textarea") && (U.textarea = ct(() => Promise.resolve().then(() => Um))), (X.has("textfield") || X.has("text") || X.has("string")) && (U.textfield = ct(() => Promise.resolve().then(() => Va)), U.text = ct(() => Promise.resolve().then(() => Va)), U.string = ct(() => Promise.resolve().then(() => Va))), (X.has("datepicker") || X.has("date")) && (U.datepicker = ct(() => Promise.resolve().then(() => Fr)), U.date = ct(() => Promise.resolve().then(() => Fr))), X.has("chipgroup") && (U.chipgroup = ct(() => Promise.resolve().then(() => em))), X.has("checkbox") && (U.checkbox = ct(() => Promise.resolve().then(() => N1))), X.has("radio") && (U.radio = ct(() => import("./Radio-
|
|
18382
|
+
return (X.has("search") || X.has("inputsearch")) && (U.search = ct(() => Promise.resolve().then(() => Nh)), U.searchbox = ct(() => Promise.resolve().then(() => Nh))), X.has("select") && (U.select = ct(() => Promise.resolve().then(() => Ou))), X.has("textarea") && (U.textarea = ct(() => Promise.resolve().then(() => Um))), (X.has("textfield") || X.has("text") || X.has("string")) && (U.textfield = ct(() => Promise.resolve().then(() => Va)), U.text = ct(() => Promise.resolve().then(() => Va)), U.string = ct(() => Promise.resolve().then(() => Va))), (X.has("datepicker") || X.has("date")) && (U.datepicker = ct(() => Promise.resolve().then(() => Fr)), U.date = ct(() => Promise.resolve().then(() => Fr))), X.has("chipgroup") && (U.chipgroup = ct(() => Promise.resolve().then(() => em))), X.has("checkbox") && (U.checkbox = ct(() => Promise.resolve().then(() => N1))), X.has("radio") && (U.radio = ct(() => import("./Radio-CSy8R44u.js"))), (X.has("numberfield") || X.has("number")) && (U.numberfield = ct(() => Promise.resolve().then(() => Hr)), U.number = ct(() => Promise.resolve().then(() => Hr))), (X.has("file") || X.has("filefield")) && (U.file = ct(() => Promise.resolve().then(() => Oh)), U.filefield = ct(() => Promise.resolve().then(() => Oh))), (X.has("label") || X.has("labelfield")) && (U.label = ct(() => Promise.resolve().then(() => Bh)), U.labelfield = ct(() => Promise.resolve().then(() => Bh))), U;
|
|
18383
18383
|
}), ce = (U) => {
|
|
18384
18384
|
const X = U?.toLowerCase() || "textfield";
|
|
18385
18385
|
return re.value[X] || re.value.textfield;
|
|
@@ -18445,7 +18445,7 @@ const gr = [
|
|
|
18445
18445
|
l.value = !0;
|
|
18446
18446
|
try {
|
|
18447
18447
|
const z = Te(b), te = r.value || g.editItemId;
|
|
18448
|
-
c.value === "draft" || c.value === "update" ? z.status = "draft" : z.status = "submitted"
|
|
18448
|
+
c.value === "draft" || c.value === "update" ? z.status = "draft" : z.status = "submitted";
|
|
18449
18449
|
let j = "", J = null;
|
|
18450
18450
|
if (c.value === "draft" && !te) {
|
|
18451
18451
|
const fe = g.form?.createLink || g.form?.crudLink;
|
|
@@ -18589,7 +18589,6 @@ const gr = [
|
|
|
18589
18589
|
}, null, 512)), [
|
|
18590
18590
|
[Un, b.id]
|
|
18591
18591
|
]) : K("", !0),
|
|
18592
|
-
Se(" " + se(a.value) + " ", 1),
|
|
18593
18592
|
n.form.groups ? (A(), M(ye, { key: 1 }, [
|
|
18594
18593
|
(A(!0), M(ye, null, Ae(n.form.groups, (te, j) => (A(), M(ye, { key: j }, [
|
|
18595
18594
|
V(te) ? (A(), M("div", KE, [
|
|
@@ -21875,7 +21874,8 @@ const kD = /* @__PURE__ */ gt(gD, [["render", wD]]), SD = ["aria-disabled", "onK
|
|
|
21875
21874
|
// Props that might be passed but not used (to avoid warnings)
|
|
21876
21875
|
items: { type: Array, default: () => [] },
|
|
21877
21876
|
itemText: { type: String, default: "text" },
|
|
21878
|
-
itemValue: { type: String, default: "value" }
|
|
21877
|
+
itemValue: { type: String, default: "value" },
|
|
21878
|
+
fieldKey: { type: String, default: "" }
|
|
21879
21879
|
},
|
|
21880
21880
|
emits: [
|
|
21881
21881
|
"update:modelValue",
|
|
@@ -21935,7 +21935,8 @@ const kD = /* @__PURE__ */ gt(gD, [["render", wD]]), SD = ["aria-disabled", "onK
|
|
|
21935
21935
|
dir: i.value,
|
|
21936
21936
|
lang: o.value,
|
|
21937
21937
|
width: n.width,
|
|
21938
|
-
rules: n.rules
|
|
21938
|
+
rules: n.rules,
|
|
21939
|
+
"field-key": n.fieldKey
|
|
21939
21940
|
}, Rt({
|
|
21940
21941
|
control: $(({ attrs: C, events: S }) => [
|
|
21941
21942
|
y("input", $e({
|
|
@@ -21979,10 +21980,10 @@ const kD = /* @__PURE__ */ gt(gD, [["render", wD]]), SD = ["aria-disabled", "onK
|
|
|
21979
21980
|
]),
|
|
21980
21981
|
key: "0"
|
|
21981
21982
|
} : void 0
|
|
21982
|
-
]), 1032, ["model-value", "label", "hint", "persistent-hint", "disabled", "readonly", "required", "error", "error-messages", "clearable", "size", "id", "prepend", "append", "is-open", "bg", "border", "text-color", "rounded", "dir", "lang", "width", "rules"])
|
|
21983
|
+
]), 1032, ["model-value", "label", "hint", "persistent-hint", "disabled", "readonly", "required", "error", "error-messages", "clearable", "size", "id", "prepend", "append", "is-open", "bg", "border", "text-color", "rounded", "dir", "lang", "width", "rules", "field-key"])
|
|
21983
21984
|
], 2));
|
|
21984
21985
|
}
|
|
21985
|
-
}, ks = /* @__PURE__ */ gt(mP, [["__scopeId", "data-v-
|
|
21986
|
+
}, ks = /* @__PURE__ */ gt(mP, [["__scopeId", "data-v-510ccf6a"]]), Va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21986
21987
|
__proto__: null,
|
|
21987
21988
|
default: ks
|
|
21988
21989
|
}, Symbol.toStringTag, { value: "Module" })), bP = {
|
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as o, A as t, B as r, b as i, c as n, d as l, e as c, C as d, f as p, g as m, h as F, i as T, j as C, k as S, D as b, l as h, m as u, n as w, o as D, p as x, q as g, E as B, r as P, s as f, t as I, u as M, v as R, w as v, x as y, L as A, y as L, z as N, F as V, M as k, G as E, N as G, H, I as O, J as U, K as j, O as q, S as z, P as J, Q as K, R as Q, T as W, U as X, V as Y, W as Z, X as $, Y as _, Z as aa, $ as ea, a0 as sa, a1 as oa, a2 as ta, a3 as ra, a4 as ia, a5 as na, a6 as la, a7 as ca, a8 as da, a9 as pa, aa as ma, ab as Fa, ac as Ta, ad as Ca, ae as Sa, af as ba, ag as ha, ah as ua } from "./index-
|
|
1
|
+
import { a as o, A as t, B as r, b as i, c as n, d as l, e as c, C as d, f as p, g as m, h as F, i as T, j as C, k as S, D as b, l as h, m as u, n as w, o as D, p as x, q as g, E as B, r as P, s as f, t as I, u as M, v as R, w as v, x as y, L as A, y as L, z as N, F as V, M as k, G as E, N as G, H, I as O, J as U, K as j, O as q, S as z, P as J, Q as K, R as Q, T as W, U as X, V as Y, W as Z, X as $, Y as _, Z as aa, $ as ea, a0 as sa, a1 as oa, a2 as ta, a3 as ra, a4 as ia, a5 as na, a6 as la, a7 as ca, a8 as da, a9 as pa, aa as ma, ab as Fa, ac as Ta, ad as Ca, ae as Sa, af as ba, ag as ha, ah as ua } from "./index-B-iYhmuS.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
export {
|
|
4
4
|
o as AppBar,
|