pgo-ui 1.1.37 → 1.1.38
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-D1cVQaJz.js +4 -0
- package/dist/{index-D3B3wyao.js → index-Qx2M4Zz2.js} +9 -7
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
- 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-D1cVQaJz.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;
|
|
@@ -21875,7 +21875,8 @@ const kD = /* @__PURE__ */ gt(gD, [["render", wD]]), SD = ["aria-disabled", "onK
|
|
|
21875
21875
|
// Props that might be passed but not used (to avoid warnings)
|
|
21876
21876
|
items: { type: Array, default: () => [] },
|
|
21877
21877
|
itemText: { type: String, default: "text" },
|
|
21878
|
-
itemValue: { type: String, default: "value" }
|
|
21878
|
+
itemValue: { type: String, default: "value" },
|
|
21879
|
+
fieldKey: { type: String, default: "" }
|
|
21879
21880
|
},
|
|
21880
21881
|
emits: [
|
|
21881
21882
|
"update:modelValue",
|
|
@@ -21935,7 +21936,8 @@ const kD = /* @__PURE__ */ gt(gD, [["render", wD]]), SD = ["aria-disabled", "onK
|
|
|
21935
21936
|
dir: i.value,
|
|
21936
21937
|
lang: o.value,
|
|
21937
21938
|
width: n.width,
|
|
21938
|
-
rules: n.rules
|
|
21939
|
+
rules: n.rules,
|
|
21940
|
+
"field-key": n.fieldKey
|
|
21939
21941
|
}, Rt({
|
|
21940
21942
|
control: $(({ attrs: C, events: S }) => [
|
|
21941
21943
|
y("input", $e({
|
|
@@ -21979,10 +21981,10 @@ const kD = /* @__PURE__ */ gt(gD, [["render", wD]]), SD = ["aria-disabled", "onK
|
|
|
21979
21981
|
]),
|
|
21980
21982
|
key: "0"
|
|
21981
21983
|
} : 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"])
|
|
21984
|
+
]), 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
21985
|
], 2));
|
|
21984
21986
|
}
|
|
21985
|
-
}, ks = /* @__PURE__ */ gt(mP, [["__scopeId", "data-v-
|
|
21987
|
+
}, ks = /* @__PURE__ */ gt(mP, [["__scopeId", "data-v-510ccf6a"]]), Va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21986
21988
|
__proto__: null,
|
|
21987
21989
|
default: ks
|
|
21988
21990
|
}, 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-Qx2M4Zz2.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
export {
|
|
4
4
|
o as AppBar,
|