pgo-ui 1.0.85 → 1.0.87
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-C-GY_I1d.js +4 -0
- package/dist/{index-BRjTEybm.js → index-BW_iEyMC.js} +17 -17
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/pgo-ui.css +1 -1
- package/package.json +1 -1
- package/src/components/pgo/forms/DynamicForm.vue +2 -2
- package/src/components/pgo/inputs/DatePicker.vue +1 -1
- package/src/components/pgo/inputs/InputSearch.vue +1 -1
- package/src/components/pgo/inputs/NumberField.vue +1 -1
- package/src/components/pgo/inputs/Select.vue +1 -1
- package/src/components/pgo/inputs/TextField.vue +1 -1
- package/src/components/pgo/inputs/Textarea.vue +1 -1
- package/src/pgo-components/lib/componentConfig.js +1 -1
- package/src/pgo-components/pages/ListView.vue +1 -1
- package/dist/Radio-B44Pvi6x.js +0 -4
|
@@ -898,7 +898,7 @@ const Dc = {
|
|
|
898
898
|
language: n
|
|
899
899
|
};
|
|
900
900
|
}, { language: $p } = ys(), ns = {
|
|
901
|
-
xs: "vts-text-
|
|
901
|
+
xs: "vts-text-body-2 vts-pl-2 vts-pr-2 vts-pt-1 vts-pb-1",
|
|
902
902
|
sm: "vts-text-body-2 vts-pl-3 vts-pr-3 vts-pt-2 vts-pb-2",
|
|
903
903
|
md: "vts-text-body-1 vts-pl-4 vts-pr-4 vts-pt-2 vts-pb-2",
|
|
904
904
|
lg: "vts-text-body-1 vts-pl-5 vts-pr-5 vts-pt-3 vts-pb-3",
|
|
@@ -6479,7 +6479,7 @@ const S1 = ["dir"], C1 = { class: "flex items-center w-full gap-2 overflow-hidde
|
|
|
6479
6479
|
o("update:modelValue", c.multiple ? [] : ""), o("clear"), s.value?.focus();
|
|
6480
6480
|
}, oe = P(() => [
|
|
6481
6481
|
"bg-transparent outline-none border-none min-w-0 text-sm",
|
|
6482
|
-
"placeholder:text-gray-
|
|
6482
|
+
"placeholder:text-gray-300",
|
|
6483
6483
|
"focus:outline-none",
|
|
6484
6484
|
c.multiple ? "flex-1 min-w-[60px]" : "flex-1",
|
|
6485
6485
|
c.searchable ? "" : "no-caret invisible w-px",
|
|
@@ -6789,7 +6789,7 @@ const S1 = ["dir"], C1 = { class: "flex items-center w-full gap-2 overflow-hidde
|
|
|
6789
6789
|
[S(w1), q]
|
|
6790
6790
|
]);
|
|
6791
6791
|
}
|
|
6792
|
-
}, kr = /* @__PURE__ */ it(ix, [["__scopeId", "data-v-
|
|
6792
|
+
}, kr = /* @__PURE__ */ it(ix, [["__scopeId", "data-v-2d304fd2"]]), Md = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6793
6793
|
__proto__: null,
|
|
6794
6794
|
default: kr
|
|
6795
6795
|
}, Symbol.toStringTag, { value: "Module" })), ux = {
|
|
@@ -17576,7 +17576,7 @@ const Yo = [
|
|
|
17576
17576
|
disabled: t.disabled,
|
|
17577
17577
|
class: j([
|
|
17578
17578
|
"w-full bg-transparent outline-none border-none",
|
|
17579
|
-
"placeholder:text-gray-
|
|
17579
|
+
"placeholder:text-gray-300",
|
|
17580
17580
|
"focus:outline-none",
|
|
17581
17581
|
"cursor-text"
|
|
17582
17582
|
]),
|
|
@@ -17638,7 +17638,7 @@ const Yo = [
|
|
|
17638
17638
|
]))
|
|
17639
17639
|
], 2));
|
|
17640
17640
|
}
|
|
17641
|
-
}, Wd = /* @__PURE__ */ it(LA, [["__scopeId", "data-v-
|
|
17641
|
+
}, Wd = /* @__PURE__ */ it(LA, [["__scopeId", "data-v-c900c01f"]]), pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
17642
17642
|
__proto__: null,
|
|
17643
17643
|
default: Wd
|
|
17644
17644
|
}, Symbol.toStringTag, { value: "Module" })), NA = ["onClick"], VA = {
|
|
@@ -18085,7 +18085,7 @@ return (${te});`)();
|
|
|
18085
18085
|
}
|
|
18086
18086
|
}, F = P(() => {
|
|
18087
18087
|
const q = {}, J = new Set(h.form.fields.map((z) => z.inputType?.toLowerCase()));
|
|
18088
|
-
return (J.has("search") || J.has("inputsearch")) && (q.search = rt(() => Promise.resolve().then(() => Df)), q.searchbox = rt(() => Promise.resolve().then(() => Df))), J.has("select") && (q.select = rt(() => Promise.resolve().then(() => Md))), J.has("textarea") && (q.textarea = rt(() => Promise.resolve().then(() => bh))), (J.has("textfield") || J.has("text") || J.has("string")) && (q.textfield = rt(() => Promise.resolve().then(() => vo)), q.text = rt(() => Promise.resolve().then(() => vo)), q.string = rt(() => Promise.resolve().then(() => vo))), (J.has("datepicker") || J.has("date")) && (q.datepicker = rt(() => Promise.resolve().then(() => pa)), q.date = rt(() => Promise.resolve().then(() => pa))), J.has("chipgroup") && (q.chipgroup = rt(() => Promise.resolve().then(() => Mm))), J.has("checkbox") && (q.checkbox = rt(() => Promise.resolve().then(() => R1))), J.has("radio") && (q.radio = rt(() => import("./Radio-
|
|
18088
|
+
return (J.has("search") || J.has("inputsearch")) && (q.search = rt(() => Promise.resolve().then(() => Df)), q.searchbox = rt(() => Promise.resolve().then(() => Df))), J.has("select") && (q.select = rt(() => Promise.resolve().then(() => Md))), J.has("textarea") && (q.textarea = rt(() => Promise.resolve().then(() => bh))), (J.has("textfield") || J.has("text") || J.has("string")) && (q.textfield = rt(() => Promise.resolve().then(() => vo)), q.text = rt(() => Promise.resolve().then(() => vo)), q.string = rt(() => Promise.resolve().then(() => vo))), (J.has("datepicker") || J.has("date")) && (q.datepicker = rt(() => Promise.resolve().then(() => pa)), q.date = rt(() => Promise.resolve().then(() => pa))), J.has("chipgroup") && (q.chipgroup = rt(() => Promise.resolve().then(() => Mm))), J.has("checkbox") && (q.checkbox = rt(() => Promise.resolve().then(() => R1))), J.has("radio") && (q.radio = rt(() => import("./Radio-C-GY_I1d.js"))), (J.has("numberfield") || J.has("number")) && (q.numberfield = rt(() => Promise.resolve().then(() => ma)), q.number = rt(() => Promise.resolve().then(() => ma))), (J.has("file") || J.has("filefield")) && (q.file = rt(() => Promise.resolve().then(() => Af)), q.filefield = rt(() => Promise.resolve().then(() => Af))), (J.has("label") || J.has("labelfield")) && (q.label = rt(() => Promise.resolve().then(() => Tf)), q.labelfield = rt(() => Promise.resolve().then(() => Tf))), q;
|
|
18089
18089
|
}), oe = (q) => {
|
|
18090
18090
|
const J = q?.toLowerCase() || "textfield";
|
|
18091
18091
|
return F.value[J] || F.value.textfield;
|
|
@@ -18176,7 +18176,7 @@ return (${te});`)();
|
|
|
18176
18176
|
if (q === "draft" && !D) {
|
|
18177
18177
|
z.status = "draft";
|
|
18178
18178
|
const I = h.form?.createLink || h.form?.crudLink;
|
|
18179
|
-
te = await m.post(I, z), a.value = (te?.data?.uuid || te?.uuid) ?? (te?.data?.id || te?.id),
|
|
18179
|
+
te = await m.post(I, z), a.value = (te?.data?.uuid || te?.uuid) ?? (te?.data?.id || te?.id), s.value = te?.data?.id || te?.id, k.value = "edit", await Ee(), v?.show({ message: te?.data?.message || "Draft saved", variant: "success" }), c("submit:success", te?.message);
|
|
18180
18180
|
} else if (q === "update") {
|
|
18181
18181
|
z.status = "draft", z.id = D;
|
|
18182
18182
|
const I = h.form?.updateLink || h.form?.crudLink;
|
|
@@ -18224,7 +18224,7 @@ return (${te});`)();
|
|
|
18224
18224
|
const D = await m.get(`${z}`);
|
|
18225
18225
|
if (D) {
|
|
18226
18226
|
const te = D;
|
|
18227
|
-
if (x.value = D || D.data || {},
|
|
18227
|
+
if (x.value = D || D.data || {}, s.value = D?.data?.id || D?.id, h.form.fields.forEach((I) => {
|
|
18228
18228
|
if (!I || !I.key) return;
|
|
18229
18229
|
const $ = I.key;
|
|
18230
18230
|
if ($.includes(".")) {
|
|
@@ -20299,7 +20299,7 @@ const mT = /* @__PURE__ */ it(lT, [["render", pT]]), hT = ["aria-disabled", "onK
|
|
|
20299
20299
|
setup(t, { expose: e, emit: n }) {
|
|
20300
20300
|
const r = t, o = n, a = Le("parentDir", ""), s = Le("parentLang", ""), l = P(() => r.dir || a), i = P(() => r.lang || s), u = E(null), d = E(null), p = E(!1), f = P(() => r.id || `input-${Math.random().toString(36).substr(2, 9)}`), c = P(() => [
|
|
20301
20301
|
"w-full bg-transparent outline-none border-none",
|
|
20302
|
-
"placeholder:text-gray-
|
|
20302
|
+
"placeholder:text-gray-300",
|
|
20303
20303
|
"focus:outline-none"
|
|
20304
20304
|
]), h = P(() => r.modelValue === null || r.modelValue === void 0 || r.modelValue === "" ? "" : String(r.modelValue)), m = (T) => {
|
|
20305
20305
|
if (T === "") return "";
|
|
@@ -20430,7 +20430,7 @@ const mT = /* @__PURE__ */ it(lT, [["render", pT]]), hT = ["aria-disabled", "onK
|
|
|
20430
20430
|
]), 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"])
|
|
20431
20431
|
], 2));
|
|
20432
20432
|
}
|
|
20433
|
-
}), Nn = /* @__PURE__ */ it(gE, [["__scopeId", "data-v-
|
|
20433
|
+
}), Nn = /* @__PURE__ */ it(gE, [["__scopeId", "data-v-e3da199f"]]), ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20434
20434
|
__proto__: null,
|
|
20435
20435
|
default: Nn
|
|
20436
20436
|
}, Symbol.toStringTag, { value: "Module" })), VV = /* @__PURE__ */ Xe({
|
|
@@ -20737,7 +20737,7 @@ const mT = /* @__PURE__ */ it(lT, [["render", pT]]), hT = ["aria-disabled", "onK
|
|
|
20737
20737
|
let f = null;
|
|
20738
20738
|
const c = P(() => r.id || `search-${Math.random().toString(36).substr(2, 9)}`), h = P(() => [
|
|
20739
20739
|
"w-full bg-transparent outline-none border-none",
|
|
20740
|
-
"placeholder:text-gray-
|
|
20740
|
+
"placeholder:text-gray-300",
|
|
20741
20741
|
"focus:outline-none"
|
|
20742
20742
|
]), m = (A) => {
|
|
20743
20743
|
const B = A.target.value;
|
|
@@ -20834,7 +20834,7 @@ const mT = /* @__PURE__ */ it(lT, [["render", pT]]), hT = ["aria-disabled", "onK
|
|
|
20834
20834
|
]), 1032, ["model-value", "label", "hint", "persistent-hint", "disabled", "readonly", "required", "field-key", "error", "error-messages", "clearable", "size", "id", "prepend", "append", "is-open", "bg", "border", "text-color", "rounded", "dir", "lang", "width", "rules"])
|
|
20835
20835
|
], 2));
|
|
20836
20836
|
}
|
|
20837
|
-
}, xt = /* @__PURE__ */ it(SE, [["__scopeId", "data-v-
|
|
20837
|
+
}, xt = /* @__PURE__ */ it(SE, [["__scopeId", "data-v-dc93afa5"]]), Ef = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20838
20838
|
__proto__: null,
|
|
20839
20839
|
default: xt
|
|
20840
20840
|
}, Symbol.toStringTag, { value: "Module" })), CE = {
|
|
@@ -21484,7 +21484,7 @@ const mT = /* @__PURE__ */ it(lT, [["render", pT]]), hT = ["aria-disabled", "onK
|
|
|
21484
21484
|
setup(t, { expose: e, emit: n }) {
|
|
21485
21485
|
const r = t, o = Le("parentDir", ""), a = Le("parentLang", ""), s = P(() => r.dir || o), l = P(() => r.lang || a), i = n, u = E(null), d = E(null), p = E(!1), f = P(() => r.id || `input-${Math.random().toString(36).substr(2, 9)}`), c = P(() => [
|
|
21486
21486
|
"w-full bg-transparent outline-none border-none",
|
|
21487
|
-
"placeholder:text-gray-
|
|
21487
|
+
"placeholder:text-gray-300",
|
|
21488
21488
|
"focus:outline-none"
|
|
21489
21489
|
]), h = (C) => {
|
|
21490
21490
|
const A = C.target.value;
|
|
@@ -21563,7 +21563,7 @@ const mT = /* @__PURE__ */ it(lT, [["render", pT]]), hT = ["aria-disabled", "onK
|
|
|
21563
21563
|
]), 1040, ["model-value", "error", "clearable", "id", "is-open", "dir", "lang", "rules"])
|
|
21564
21564
|
], 2));
|
|
21565
21565
|
}
|
|
21566
|
-
}, nn = /* @__PURE__ */ it(sM, [["__scopeId", "data-v-
|
|
21566
|
+
}, nn = /* @__PURE__ */ it(sM, [["__scopeId", "data-v-44dc91fe"]]), bh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21567
21567
|
__proto__: null,
|
|
21568
21568
|
default: nn
|
|
21569
21569
|
}, Symbol.toStringTag, { value: "Module" })), lM = ["type", "value", "placeholder"], iM = {
|
|
@@ -21618,7 +21618,7 @@ const mT = /* @__PURE__ */ it(lT, [["render", pT]]), hT = ["aria-disabled", "onK
|
|
|
21618
21618
|
setup(t, { expose: e, emit: n }) {
|
|
21619
21619
|
const r = t, o = Le("parentDir", ""), a = Le("parentLang", ""), s = P(() => r.dir || o), l = P(() => r.lang || a), i = n, u = E(null), d = E(null), p = E(!1), f = P(() => r.id || `input-${Math.random().toString(36).substr(2, 9)}`), c = P(() => [
|
|
21620
21620
|
"w-full bg-transparent outline-none border-none",
|
|
21621
|
-
"placeholder:text-gray-
|
|
21621
|
+
"placeholder:text-gray-300",
|
|
21622
21622
|
"focus:outline-none"
|
|
21623
21623
|
]), h = (C) => {
|
|
21624
21624
|
const A = C.target.value;
|
|
@@ -21710,7 +21710,7 @@ const mT = /* @__PURE__ */ it(lT, [["render", pT]]), hT = ["aria-disabled", "onK
|
|
|
21710
21710
|
]), 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"])
|
|
21711
21711
|
], 2));
|
|
21712
21712
|
}
|
|
21713
|
-
}, un = /* @__PURE__ */ it(iM, [["__scopeId", "data-v-
|
|
21713
|
+
}, un = /* @__PURE__ */ it(iM, [["__scopeId", "data-v-cdb07d53"]]), vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21714
21714
|
__proto__: null,
|
|
21715
21715
|
default: un
|
|
21716
21716
|
}, Symbol.toStringTag, { value: "Module" })), uM = {
|
|
@@ -22938,7 +22938,7 @@ const Of = {
|
|
|
22938
22938
|
}
|
|
22939
22939
|
s.push({ path: me });
|
|
22940
22940
|
} else
|
|
22941
|
-
ye(i.items?.componentSettings?.
|
|
22941
|
+
ye(i.items?.componentSettings?.record), k.value = !0, C.value = Y?.uuid ?? Y?.id ?? null;
|
|
22942
22942
|
}, I = (Y) => {
|
|
22943
22943
|
G(i.items?.componentSettings?.form), x.value = !0, B.value = Y?.uuid ?? Y?.id ?? null, A.value = "edit";
|
|
22944
22944
|
}, $ = (Y) => {
|
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 S, k as b, D as w, l as C, m as u, n as x, o as D, p as h, E as B, q as g, r as P, s as f, t as I, u as M, v as R, w as v, L as y, x as A, y as N, M as V, z as k, N as L, F as E, G, H, I as O, J as U, S as j, K as q, O as z, P as J, T as K, Q, R 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 Sa, ae as ba, af as wa } 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 S, k as b, D as w, l as C, m as u, n as x, o as D, p as h, E as B, q as g, r as P, s as f, t as I, u as M, v as R, w as v, L as y, x as A, y as N, M as V, z as k, N as L, F as E, G, H, I as O, J as U, S as j, K as q, O as z, P as J, T as K, Q, R 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 Sa, ae as ba, af as wa } from "./index-BW_iEyMC.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
export {
|
|
4
4
|
o as AppBar,
|