@effect-app/vue-components 4.0.0-beta.157 → 4.0.0-beta.159
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/types/components/OmegaForm/OmegaArray.vue.d.ts +1 -1
- package/dist/types/components/OmegaForm/OmegaAutoGen.vue.d.ts +1 -1
- package/dist/types/components/OmegaForm/OmegaErrorsInternal.vue.d.ts +1 -1
- package/dist/types/components/OmegaForm/OmegaFormInput.vue.d.ts +1 -1
- package/dist/types/components/OmegaForm/OmegaInput.vue.d.ts +1 -1
- package/dist/types/components/OmegaForm/OmegaInternalInput.vue.d.ts +2 -1
- package/dist/types/components/OmegaForm/OmegaWrapper.vue.d.ts +1 -1
- package/dist/types/components/OmegaForm/createUseFormWithCustomInput.d.ts +2 -2
- package/dist/types/components/OmegaForm/errors.d.ts +33 -0
- package/dist/types/components/OmegaForm/getOmegaStore.d.ts +1 -1
- package/dist/types/components/OmegaForm/hocs.d.ts +3 -0
- package/dist/types/components/OmegaForm/index.d.ts +13 -3
- package/dist/types/components/OmegaForm/inputs.d.ts +4 -0
- package/dist/types/components/OmegaForm/meta/checks.d.ts +4 -0
- package/dist/types/components/OmegaForm/meta/createMeta.d.ts +32 -0
- package/dist/types/components/OmegaForm/meta/defaults.d.ts +2 -0
- package/dist/types/components/OmegaForm/meta/redacted.d.ts +2 -0
- package/dist/types/components/OmegaForm/meta/types.d.ts +56 -0
- package/dist/types/components/OmegaForm/meta/walker.d.ts +18 -0
- package/dist/types/components/OmegaForm/persistency.d.ts +58 -0
- package/dist/types/components/OmegaForm/submit.d.ts +60 -0
- package/dist/types/components/OmegaForm/types.d.ts +281 -0
- package/dist/types/components/OmegaForm/useOmegaForm.d.ts +6 -212
- package/dist/types/components/OmegaForm/validation/localized.d.ts +10 -0
- package/dist/vue-components.es.js +24 -16
- package/dist/vue-components10.es.js +4 -4
- package/dist/vue-components11.es.js +19 -12
- package/dist/vue-components12.es.js +22 -444
- package/dist/vue-components13.es.js +126 -3
- package/dist/vue-components14.es.js +61 -34
- package/dist/vue-components15.es.js +57 -24
- package/dist/vue-components16.es.js +20 -26
- package/dist/vue-components17.es.js +4 -6
- package/dist/vue-components18.es.js +78 -16
- package/dist/vue-components19.es.js +86 -30
- package/dist/vue-components20.es.js +72 -17
- package/dist/vue-components21.es.js +10 -19
- package/dist/vue-components22.es.js +54 -28
- package/dist/vue-components23.es.js +4 -6
- package/dist/vue-components24.es.js +43 -8
- package/dist/vue-components25.es.js +4 -37
- package/dist/vue-components26.es.js +83 -24
- package/dist/vue-components28.es.js +6 -22
- package/dist/vue-components29.es.js +8 -20
- package/dist/vue-components3.es.js +2 -2
- package/dist/vue-components30.es.js +267 -7
- package/dist/vue-components32.es.js +7 -4
- package/dist/vue-components33.es.js +71 -27
- package/dist/vue-components34.es.js +4 -4
- package/dist/vue-components35.es.js +50 -27
- package/dist/vue-components36.es.js +4 -5
- package/dist/vue-components37.es.js +23 -17
- package/dist/vue-components38.es.js +4 -55
- package/dist/vue-components39.es.js +57 -3
- package/dist/vue-components40.es.js +4 -43
- package/dist/vue-components41.es.js +11 -4
- package/dist/vue-components42.es.js +17 -79
- package/dist/vue-components44.es.js +8 -7
- package/dist/vue-components45.es.js +3 -8
- package/dist/vue-components46.es.js +36 -267
- package/dist/vue-components47.es.js +27 -0
- package/dist/vue-components48.es.js +27 -7
- package/dist/vue-components49.es.js +6 -79
- package/dist/vue-components50.es.js +17 -4
- package/dist/vue-components51.es.js +32 -69
- package/dist/vue-components52.es.js +17 -4
- package/dist/vue-components53.es.js +19 -22
- package/dist/vue-components54.es.js +29 -4
- package/dist/vue-components55.es.js +6 -58
- package/dist/vue-components56.es.js +8 -4
- package/dist/vue-components57.es.js +37 -11
- package/dist/vue-components58.es.js +24 -21
- package/dist/{vue-components27.es.js → vue-components59.es.js} +2 -2
- package/dist/vue-components6.es.js +11 -11
- package/dist/vue-components60.es.js +23 -8
- package/dist/vue-components61.es.js +18 -232
- package/dist/vue-components62.es.js +7 -31
- package/dist/vue-components63.es.js +19 -8
- package/dist/vue-components64.es.js +4 -35
- package/dist/vue-components65.es.js +29 -0
- package/dist/vue-components66.es.js +5 -0
- package/dist/vue-components67.es.js +29 -0
- package/dist/vue-components68.es.js +6 -0
- package/dist/vue-components69.es.js +18 -0
- package/dist/vue-components7.es.js +11 -26
- package/dist/vue-components70.es.js +40 -0
- package/dist/vue-components71.es.js +81 -0
- package/dist/vue-components72.es.js +33 -0
- package/dist/vue-components73.es.js +19 -0
- package/dist/vue-components74.es.js +48 -0
- package/dist/vue-components8.es.js +33 -45
- package/dist/vue-components9.es.js +46 -4
- package/package.json +7 -7
- package/src/components/CommandButton.vue +3 -1
- package/src/components/OmegaForm/OmegaArray.vue +1 -1
- package/src/components/OmegaForm/OmegaAutoGen.vue +2 -1
- package/src/components/OmegaForm/OmegaErrorsInternal.vue +1 -1
- package/src/components/OmegaForm/OmegaFormInput.vue +1 -1
- package/src/components/OmegaForm/OmegaInput.vue +6 -68
- package/src/components/OmegaForm/OmegaInputVuetify.vue +1 -1
- package/src/components/OmegaForm/OmegaInternalInput.vue +5 -11
- package/src/components/OmegaForm/OmegaTaggedUnion.vue +2 -1
- package/src/components/OmegaForm/OmegaWrapper.vue +1 -1
- package/src/components/OmegaForm/blockDialog.ts +10 -1
- package/src/components/OmegaForm/createUseFormWithCustomInput.ts +2 -1
- package/src/components/OmegaForm/errors.ts +136 -0
- package/src/components/OmegaForm/getOmegaStore.ts +1 -1
- package/src/components/OmegaForm/hocs.ts +19 -0
- package/src/components/OmegaForm/index.ts +16 -4
- package/src/components/OmegaForm/inputs.ts +22 -0
- package/src/components/OmegaForm/meta/checks.ts +81 -0
- package/src/components/OmegaForm/meta/createMeta.ts +138 -0
- package/src/components/OmegaForm/meta/defaults.ts +132 -0
- package/src/components/OmegaForm/meta/redacted.ts +66 -0
- package/src/components/OmegaForm/meta/types.ts +78 -0
- package/src/components/OmegaForm/meta/walker.ts +247 -0
- package/src/components/OmegaForm/persistency.ts +247 -0
- package/src/components/OmegaForm/submit.ts +128 -0
- package/src/components/OmegaForm/types.ts +751 -0
- package/src/components/OmegaForm/useOmegaForm.ts +49 -913
- package/src/components/OmegaForm/validation/localized.ts +202 -0
- package/dist/types/components/OmegaForm/OmegaFormStuff.d.ts +0 -173
- package/dist/vue-components31.es.js +0 -19
- package/src/components/OmegaForm/OmegaFormStuff.ts +0 -1422
|
@@ -1,30 +1,56 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { Fragment as e, computed as t, createBlock as n, createElementBlock as r, defineComponent as i, guardReactiveProps as a, mergeProps as o, normalizeProps as s, onMounted as c, openBlock as l, provide as u, renderList as d, renderSlot as f, resolveDynamicComponent as p, withCtx as m } from "vue";
|
|
2
|
+
//#region src/components/OmegaForm/OmegaArray.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var h = /* @__PURE__ */ i({
|
|
4
|
+
inheritAttrs: !1,
|
|
5
|
+
__name: "OmegaArray",
|
|
6
|
+
props: {
|
|
7
|
+
form: {},
|
|
8
|
+
inputClass: {},
|
|
9
|
+
name: {},
|
|
10
|
+
defaultItems: {},
|
|
11
|
+
items: {}
|
|
12
|
+
},
|
|
13
|
+
setup(i) {
|
|
14
|
+
let h = i, g = h.form.useStore((e) => e.values), _ = t(() => {
|
|
15
|
+
let e = h.name.replace(/\[/g, ".").replace(/\]/g, "");
|
|
16
|
+
try {
|
|
17
|
+
return e.split(".").reduce((e, t) => e && e[t], g.value);
|
|
18
|
+
} catch (e) {
|
|
19
|
+
return console.error(e), [];
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
return c(async () => {
|
|
23
|
+
h.defaultItems && !_.value && h.form.setFieldValue(h.name, h.defaultItems);
|
|
24
|
+
}), u("getMetaFromArray", t(() => (e) => {
|
|
25
|
+
let t = e.replace(/\[\d+\]/g, "");
|
|
26
|
+
return h.form.meta[t];
|
|
27
|
+
})), (t, c) => (l(), n(p(i.form.Field), { name: i.name }, {
|
|
28
|
+
default: m(({ field: c, state: u }) => [
|
|
29
|
+
f(t.$slots, "pre-array", s(a({
|
|
30
|
+
field: c,
|
|
31
|
+
state: u
|
|
32
|
+
}))),
|
|
33
|
+
(l(!0), r(e, null, d(_.value, (e, r) => (l(), n(p(i.form.Field), {
|
|
34
|
+
key: `${i.name}[${Number(r)}]`,
|
|
35
|
+
name: `${i.name}[${Number(r)}]`
|
|
36
|
+
}, {
|
|
37
|
+
default: m(({ field: e, state: n }) => [f(t.$slots, "default", o({ ref_for: !0 }, {
|
|
38
|
+
subField: e,
|
|
39
|
+
subState: n,
|
|
40
|
+
index: Number(r),
|
|
41
|
+
field: c
|
|
42
|
+
}))]),
|
|
43
|
+
_: 2
|
|
44
|
+
}, 1032, ["name"]))), 128)),
|
|
45
|
+
f(t.$slots, "post-array", s(a({
|
|
46
|
+
field: c,
|
|
47
|
+
state: u
|
|
48
|
+
}))),
|
|
49
|
+
f(t.$slots, "field", s(a({ field: c })))
|
|
50
|
+
]),
|
|
51
|
+
_: 3
|
|
52
|
+
}, 8, ["name"]));
|
|
9
53
|
}
|
|
10
|
-
|
|
11
|
-
return t(a, e, r.instance());
|
|
12
|
-
}
|
|
13
|
-
active() {
|
|
14
|
-
return this._getContextManager().active();
|
|
15
|
-
}
|
|
16
|
-
with(e, t, n, ...r) {
|
|
17
|
-
return this._getContextManager().with(e, t, n, ...r);
|
|
18
|
-
}
|
|
19
|
-
bind(e, t) {
|
|
20
|
-
return this._getContextManager().bind(e, t);
|
|
21
|
-
}
|
|
22
|
-
_getContextManager() {
|
|
23
|
-
return e(a) || o;
|
|
24
|
-
}
|
|
25
|
-
disable() {
|
|
26
|
-
this._getContextManager().disable(), n(a, r.instance());
|
|
27
|
-
}
|
|
28
|
-
};
|
|
54
|
+
});
|
|
29
55
|
//#endregion
|
|
30
|
-
export {
|
|
56
|
+
export { h as default };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
e[e.NONE = 0] = "NONE", e[e.SAMPLED = 1] = "SAMPLED";
|
|
5
|
-
})(e ||= {});
|
|
1
|
+
import e from "./vue-components22.es.js";
|
|
2
|
+
//#region src/components/OmegaForm/OmegaArray.vue
|
|
3
|
+
var t = e;
|
|
6
4
|
//#endregion
|
|
7
|
-
export {
|
|
5
|
+
export { t as default };
|
|
@@ -1,9 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
1
|
+
import { Fragment as e, computed as t, createElementBlock as n, createVNode as r, defineComponent as i, mergeProps as a, openBlock as o, renderList as s, renderSlot as c, unref as l } from "vue";
|
|
2
|
+
import { Order as u } from "effect-app";
|
|
3
|
+
//#region src/components/OmegaForm/OmegaAutoGen.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var d = /* @__PURE__ */ i({
|
|
5
|
+
__name: "OmegaAutoGen",
|
|
6
|
+
props: {
|
|
7
|
+
form: {},
|
|
8
|
+
pick: {},
|
|
9
|
+
omit: {},
|
|
10
|
+
labelMap: { type: Function },
|
|
11
|
+
filterMap: { type: Function },
|
|
12
|
+
order: {},
|
|
13
|
+
sort: {}
|
|
14
|
+
},
|
|
15
|
+
setup(i) {
|
|
16
|
+
let d = (e) => (t) => Object.fromEntries(Object.entries(t).map(([t, n]) => [t, e(n, t)])), f = (e) => (t) => Object.fromEntries(Object.entries(t).filter(([t, n]) => e(n, t))), p = (e) => (t) => Object.entries(t).reduce((t, [n, r]) => {
|
|
17
|
+
let i = e(r, n);
|
|
18
|
+
return i !== !1 && (t[n] = i), t;
|
|
19
|
+
}, {}), m = i, h = (e, t) => {
|
|
20
|
+
let n = t?.indexOf(e) ?? -1;
|
|
21
|
+
return n === -1 ? 2 ** 53 - 1 : n;
|
|
22
|
+
}, g = u.mapInput(u.Number, (e) => h(e.name, m.order || [])), _ = t(() => {
|
|
23
|
+
let e = f((e, t) => !!e && (m.pick ? m.pick.includes(t) && !m.omit?.includes(t) : !m.omit?.includes(t)))(m.form.meta), t = d((e, t) => ({
|
|
24
|
+
name: t,
|
|
25
|
+
label: m.labelMap?.(t) || t,
|
|
26
|
+
...e
|
|
27
|
+
}))(e), n = m.filterMap ? p((e) => {
|
|
28
|
+
let t = m.filterMap?.(e.name, e);
|
|
29
|
+
return t === void 0 || t === !0 ? e : t;
|
|
30
|
+
})(t) : t, r = [...Object.values(n)].sort(g);
|
|
31
|
+
return m.sort ? r.sort(m.sort) : r;
|
|
32
|
+
});
|
|
33
|
+
return (t, u) => (o(!0), n(e, null, s(_.value, ({ name: e, label: n, ...o }) => c(t.$slots, "default", { child: {
|
|
34
|
+
name: e,
|
|
35
|
+
label: n,
|
|
36
|
+
...o
|
|
37
|
+
} }, () => [r(l(i.form).Input, a({
|
|
38
|
+
name: e,
|
|
39
|
+
label: n
|
|
40
|
+
}, { ref_for: !0 }, o), null, 16, ["name", "label"])])), 256));
|
|
41
|
+
}
|
|
42
|
+
});
|
|
8
43
|
//#endregion
|
|
9
|
-
export {
|
|
44
|
+
export { d as default };
|
|
@@ -1,38 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
//#region
|
|
3
|
-
var t =
|
|
4
|
-
constructor(t = e) {
|
|
5
|
-
this._spanContext = t;
|
|
6
|
-
}
|
|
7
|
-
spanContext() {
|
|
8
|
-
return this._spanContext;
|
|
9
|
-
}
|
|
10
|
-
setAttribute(e, t) {
|
|
11
|
-
return this;
|
|
12
|
-
}
|
|
13
|
-
setAttributes(e) {
|
|
14
|
-
return this;
|
|
15
|
-
}
|
|
16
|
-
addEvent(e, t) {
|
|
17
|
-
return this;
|
|
18
|
-
}
|
|
19
|
-
addLink(e) {
|
|
20
|
-
return this;
|
|
21
|
-
}
|
|
22
|
-
addLinks(e) {
|
|
23
|
-
return this;
|
|
24
|
-
}
|
|
25
|
-
setStatus(e) {
|
|
26
|
-
return this;
|
|
27
|
-
}
|
|
28
|
-
updateName(e) {
|
|
29
|
-
return this;
|
|
30
|
-
}
|
|
31
|
-
end(e) {}
|
|
32
|
-
isRecording() {
|
|
33
|
-
return !1;
|
|
34
|
-
}
|
|
35
|
-
recordException(e, t) {}
|
|
36
|
-
};
|
|
1
|
+
import e from "./vue-components24.es.js";
|
|
2
|
+
//#region src/components/OmegaForm/OmegaAutoGen.vue
|
|
3
|
+
var t = e;
|
|
37
4
|
//#endregion
|
|
38
|
-
export { t as
|
|
5
|
+
export { t as default };
|
|
@@ -1,25 +1,84 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
1
|
+
import { useIntl as e } from "./vue-components6.es.js";
|
|
2
|
+
import { Fragment as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, defineComponent as l, getCurrentInstance as u, guardReactiveProps as d, normalizeClass as f, normalizeProps as p, openBlock as m, renderList as h, renderSlot as g, resolveDynamicComponent as _, toDisplayString as v, unref as y, withCtx as b } from "vue";
|
|
3
|
+
//#region src/components/OmegaForm/OmegaErrorsInternal.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var x = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "error-alert"
|
|
7
|
+
}, S = { class: "container" }, C = {
|
|
8
|
+
key: 0,
|
|
9
|
+
viewBox: "0 0 24 24",
|
|
10
|
+
fill: "none",
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
12
|
+
}, w = { class: "text-h6" }, T = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "error-list"
|
|
15
|
+
}, E = ["for"], D = { key: 1 }, O = /* @__PURE__ */ l({
|
|
16
|
+
__name: "OmegaErrorsInternal",
|
|
17
|
+
props: {
|
|
18
|
+
generalErrors: {},
|
|
19
|
+
errors: {},
|
|
20
|
+
hideErrorDetails: { type: Boolean }
|
|
21
|
+
},
|
|
22
|
+
setup(l) {
|
|
23
|
+
let O = u()?.appContext.components.VAlert, k = l, { trans: A } = e(), j = r(() => k.generalErrors ? k.generalErrors.filter((e) => !!e).flatMap((e) => Object.values(e).filter((e) => !!e).flatMap((e) => e.filter((e) => !!e?.message).map((e) => e.message))) : []);
|
|
24
|
+
return (e, r) => (m(), i(n, null, {
|
|
25
|
+
default: b(() => [l.errors.length || j.value.length ? (m(), o("div", x, [g(e.$slots, "default", p(d({
|
|
26
|
+
errors: l.errors,
|
|
27
|
+
showedGeneralErrors: j.value
|
|
28
|
+
})), () => [(m(), i(_(y(O) ? "v-alert" : "div"), {
|
|
29
|
+
class: f([y(O) ? "mb-4" : "error-alert-content", "mb-4"]),
|
|
30
|
+
type: "error",
|
|
31
|
+
variant: "tonal",
|
|
32
|
+
role: "alert",
|
|
33
|
+
"aria-live": "polite"
|
|
34
|
+
}, {
|
|
35
|
+
default: b(() => [s("div", S, [g(e.$slots, "icon", {}, () => [y(O) ? a("", !0) : (m(), o("svg", C, [...r[0] ||= [
|
|
36
|
+
s("path", {
|
|
37
|
+
d: "M16 2H8L2 8V16L8 22H16L22 16V8L16 2Z",
|
|
38
|
+
stroke: "currentColor",
|
|
39
|
+
"stroke-width": "2",
|
|
40
|
+
"stroke-linecap": "round",
|
|
41
|
+
"stroke-linejoin": "round"
|
|
42
|
+
}, null, -1),
|
|
43
|
+
s("path", {
|
|
44
|
+
d: "M12 8V12",
|
|
45
|
+
stroke: "currentColor",
|
|
46
|
+
"stroke-width": "2",
|
|
47
|
+
"stroke-linecap": "round",
|
|
48
|
+
"stroke-linejoin": "round"
|
|
49
|
+
}, null, -1),
|
|
50
|
+
s("path", {
|
|
51
|
+
d: "M12 16.0195V16",
|
|
52
|
+
stroke: "currentColor",
|
|
53
|
+
"stroke-width": "2",
|
|
54
|
+
"stroke-linecap": "round",
|
|
55
|
+
"stroke-linejoin": "round"
|
|
56
|
+
}, null, -1)
|
|
57
|
+
]]))], !0), s("div", null, [s("div", w, v(y(A)("form.includes_error")) + ": ", 1), l.errors.length ? (m(), o("ul", T, [(m(!0), o(t, null, h(l.errors, (e) => (m(), o("li", {
|
|
58
|
+
key: e.inputId,
|
|
59
|
+
class: "error-item"
|
|
60
|
+
}, [s("div", null, [
|
|
61
|
+
s("label", {
|
|
62
|
+
for: e.inputId,
|
|
63
|
+
class: "error-link"
|
|
64
|
+
}, v(e.label), 9, E),
|
|
65
|
+
r[1] ||= c(" " + v(" ") + " ", -1),
|
|
66
|
+
l.hideErrorDetails ? a("", !0) : (m(), o("div", {
|
|
67
|
+
key: 0,
|
|
68
|
+
class: f(["error-message", e.errors.length < 2 && "single-error"])
|
|
69
|
+
}, [(m(), i(_(e.errors.length > 1 ? "ul" : "div"), { class: "error-list" }, {
|
|
70
|
+
default: b(() => [(m(!0), o(t, null, h(e.errors, (t) => (m(), i(_(e.errors.length > 1 ? "li" : "span"), { key: t }, {
|
|
71
|
+
default: b(() => [c(v(t), 1)]),
|
|
72
|
+
_: 2
|
|
73
|
+
}, 1024))), 128))]),
|
|
74
|
+
_: 2
|
|
75
|
+
}, 1024))], 2))
|
|
76
|
+
])]))), 128))])) : (m(), o("span", D, v(j.value[0]), 1))])])]),
|
|
77
|
+
_: 3
|
|
78
|
+
}, 8, ["class"]))], !0)])) : a("", !0)]),
|
|
79
|
+
_: 3
|
|
80
|
+
}));
|
|
81
|
+
}
|
|
82
|
+
});
|
|
24
83
|
//#endregion
|
|
25
|
-
export {
|
|
84
|
+
export { O as default };
|
|
@@ -1,24 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var a = e.getInstance(), o = class {
|
|
7
|
-
startSpan(e, r, o = a.active()) {
|
|
8
|
-
if (r?.root) return new t();
|
|
9
|
-
let c = o && n(o);
|
|
10
|
-
return s(c) && i(c) ? new t(c) : new t();
|
|
11
|
-
}
|
|
12
|
-
startActiveSpan(e, t, n, i) {
|
|
13
|
-
let o, s, c;
|
|
14
|
-
if (arguments.length < 2) return;
|
|
15
|
-
arguments.length === 2 ? c = t : arguments.length === 3 ? (o = t, c = n) : (o = t, s = n, c = i);
|
|
16
|
-
let l = s ?? a.active(), u = this.startSpan(e, o, l), d = r(l, u);
|
|
17
|
-
return a.with(d, c, void 0, u);
|
|
18
|
-
}
|
|
1
|
+
//#region \0plugin-vue:export-helper
|
|
2
|
+
var e = (e, t) => {
|
|
3
|
+
let n = e.__vccOpts || e;
|
|
4
|
+
for (let [e, r] of t) n[e] = r;
|
|
5
|
+
return n;
|
|
19
6
|
};
|
|
20
|
-
function s(e) {
|
|
21
|
-
return typeof e == "object" && !!e && "spanId" in e && typeof e.spanId == "string" && "traceId" in e && typeof e.traceId == "string" && "traceFlags" in e && typeof e.traceFlags == "number";
|
|
22
|
-
}
|
|
23
7
|
//#endregion
|
|
24
|
-
export {
|
|
8
|
+
export { e as default };
|
|
@@ -1,21 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return this._getTracer().startSpan(e, t, n);
|
|
9
|
-
}
|
|
10
|
-
startActiveSpan(e, t, n, r) {
|
|
11
|
-
let i = this._getTracer();
|
|
12
|
-
return Reflect.apply(i.startActiveSpan, i, arguments);
|
|
13
|
-
}
|
|
14
|
-
_getTracer() {
|
|
15
|
-
if (this._delegate) return this._delegate;
|
|
16
|
-
let e = this._provider.getDelegateTracer(this.name, this.version, this.options);
|
|
17
|
-
return e ? (this._delegate = e, this._delegate) : t;
|
|
18
|
-
}
|
|
19
|
-
};
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);if(e.appendChild(document.createTextNode(`.v-enter-from[data-v-5278f8d3],.v-leave-to[data-v-5278f8d3]{opacity:0;grid-template-rows:0fr;max-height:0}.v-enter-active[data-v-5278f8d3],.v-leave-active[data-v-5278f8d3]{transition:all .15s;display:grid}.v-enter-to[data-v-5278f8d3],.v-leave-from[data-v-5278f8d3]{opacity:1;grid-template-rows:1fr;max-height:50vh}.error-alert[data-v-5278f8d3]{transition-behavior:allow-discrete;min-height:0;display:grid;overflow:hidden}.error-alert>[data-v-5278f8d3]{min-height:0}.error-list[data-v-5278f8d3]{list-style-position:inside}.error-list [data-v-5278f8d3]::marker{margin:0;padding:0}.error-alert-content[data-v-5278f8d3]{background-color:var(--error-background,#fff5f5);color:var(--error-color,#c92a2a);padding:1em}.error-link[data-v-5278f8d3]{color:var(--error-color,#c92a2a);cursor:pointer;font-weight:700;position:relative}.error-link[data-v-5278f8d3]:after{content:"";background:rgba(from var(--error-color,#c92a2a) r g b / .5);height:1px;position:absolute;bottom:0;left:0;right:0}.text-h6[data-v-5278f8d3]{font-size:1.25em;font-weight:700}.error-message[data-v-5278f8d3]{font-style:italic}.error-item[data-v-5278f8d3]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-5278f8d3]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-5278f8d3]{gap:1.5em;display:flex}.container svg[data-v-5278f8d3]{width:3em}.container .single-error[data-v-5278f8d3]{display:inline-block}`)),document.head.appendChild(e),window.customElements){let e=window.customElements.define;window.customElements.define=function(t,n){let r=n.prototype.connectedCallback;return n.prototype.connectedCallback=function(){if(r&&r.call(this),this.shadowRoot){let e=document.createElement(`style`);e.appendChild(document.createTextNode(`.v-enter-from[data-v-5278f8d3],.v-leave-to[data-v-5278f8d3]{opacity:0;grid-template-rows:0fr;max-height:0}.v-enter-active[data-v-5278f8d3],.v-leave-active[data-v-5278f8d3]{transition:all .15s;display:grid}.v-enter-to[data-v-5278f8d3],.v-leave-from[data-v-5278f8d3]{opacity:1;grid-template-rows:1fr;max-height:50vh}.error-alert[data-v-5278f8d3]{transition-behavior:allow-discrete;min-height:0;display:grid;overflow:hidden}.error-alert>[data-v-5278f8d3]{min-height:0}.error-list[data-v-5278f8d3]{list-style-position:inside}.error-list [data-v-5278f8d3]::marker{margin:0;padding:0}.error-alert-content[data-v-5278f8d3]{background-color:var(--error-background,#fff5f5);color:var(--error-color,#c92a2a);padding:1em}.error-link[data-v-5278f8d3]{color:var(--error-color,#c92a2a);cursor:pointer;font-weight:700;position:relative}.error-link[data-v-5278f8d3]:after{content:"";background:rgba(from var(--error-color,#c92a2a) r g b / .5);height:1px;position:absolute;bottom:0;left:0;right:0}.text-h6[data-v-5278f8d3]{font-size:1.25em;font-weight:700}.error-message[data-v-5278f8d3]{font-style:italic}.error-item[data-v-5278f8d3]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-5278f8d3]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-5278f8d3]{gap:1.5em;display:flex}.container svg[data-v-5278f8d3]{width:3em}.container .single-error[data-v-5278f8d3]{display:inline-block}`)),this.shadowRoot.appendChild(e)}},e.call(window.customElements,t,n)}}}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
|
|
2
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);if(e.appendChild(document.createTextNode(`.v-enter-from[data-v-5278f8d3],.v-leave-to[data-v-5278f8d3]{opacity:0;grid-template-rows:0fr;max-height:0}.v-enter-active[data-v-5278f8d3],.v-leave-active[data-v-5278f8d3]{transition:all .15s;display:grid}.v-enter-to[data-v-5278f8d3],.v-leave-from[data-v-5278f8d3]{opacity:1;grid-template-rows:1fr;max-height:50vh}.error-alert[data-v-5278f8d3]{transition-behavior:allow-discrete;min-height:0;display:grid;overflow:hidden}.error-alert>[data-v-5278f8d3]{min-height:0}.error-list[data-v-5278f8d3]{list-style-position:inside}.error-list [data-v-5278f8d3]::marker{margin:0;padding:0}.error-alert-content[data-v-5278f8d3]{background-color:var(--error-background,#fff5f5);color:var(--error-color,#c92a2a);padding:1em}.error-link[data-v-5278f8d3]{color:var(--error-color,#c92a2a);cursor:pointer;font-weight:700;position:relative}.error-link[data-v-5278f8d3]:after{content:"";background:rgba(from var(--error-color,#c92a2a) r g b / .5);height:1px;position:absolute;bottom:0;left:0;right:0}.text-h6[data-v-5278f8d3]{font-size:1.25em;font-weight:700}.error-message[data-v-5278f8d3]{font-style:italic}.error-item[data-v-5278f8d3]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-5278f8d3]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-5278f8d3]{gap:1.5em;display:flex}.container svg[data-v-5278f8d3]{width:3em}.container .single-error[data-v-5278f8d3]{display:inline-block}`)),document.head.appendChild(e),window.customElements){let e=window.customElements.define;window.customElements.define=function(t,n){let r=n.prototype.connectedCallback;return n.prototype.connectedCallback=function(){if(r&&r.call(this),this.shadowRoot){let e=document.createElement(`style`);e.appendChild(document.createTextNode(`.v-enter-from[data-v-5278f8d3],.v-leave-to[data-v-5278f8d3]{opacity:0;grid-template-rows:0fr;max-height:0}.v-enter-active[data-v-5278f8d3],.v-leave-active[data-v-5278f8d3]{transition:all .15s;display:grid}.v-enter-to[data-v-5278f8d3],.v-leave-from[data-v-5278f8d3]{opacity:1;grid-template-rows:1fr;max-height:50vh}.error-alert[data-v-5278f8d3]{transition-behavior:allow-discrete;min-height:0;display:grid;overflow:hidden}.error-alert>[data-v-5278f8d3]{min-height:0}.error-list[data-v-5278f8d3]{list-style-position:inside}.error-list [data-v-5278f8d3]::marker{margin:0;padding:0}.error-alert-content[data-v-5278f8d3]{background-color:var(--error-background,#fff5f5);color:var(--error-color,#c92a2a);padding:1em}.error-link[data-v-5278f8d3]{color:var(--error-color,#c92a2a);cursor:pointer;font-weight:700;position:relative}.error-link[data-v-5278f8d3]:after{content:"";background:rgba(from var(--error-color,#c92a2a) r g b / .5);height:1px;position:absolute;bottom:0;left:0;right:0}.text-h6[data-v-5278f8d3]{font-size:1.25em;font-weight:700}.error-message[data-v-5278f8d3]{font-style:italic}.error-item[data-v-5278f8d3]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-5278f8d3]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-5278f8d3]{gap:1.5em;display:flex}.container svg[data-v-5278f8d3]{width:3em}.container .single-error[data-v-5278f8d3]{display:inline-block}`)),this.shadowRoot.appendChild(e)}},e.call(window.customElements,t,n)}}}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
|
|
3
|
+
import e from "./vue-components26.es.js";
|
|
4
|
+
|
|
5
|
+
import t from "./vue-components28.es.js";
|
|
6
|
+
//#region src/components/OmegaForm/OmegaErrorsInternal.vue
|
|
7
|
+
var n = /* @__PURE__ */ t(e, [["__scopeId", "data-v-5278f8d3"]]);
|
|
20
8
|
//#endregion
|
|
21
|
-
export { n as
|
|
9
|
+
export { n as default };
|
|
@@ -11,8 +11,8 @@ var d = /* @__PURE__ */ i({
|
|
|
11
11
|
setup(i) {
|
|
12
12
|
let d = i, f = e(() => d.command.blocked || d.disabled), p = () => {
|
|
13
13
|
if (f.value) return;
|
|
14
|
-
let e = "input" in d && d.input ? d.input : void 0;
|
|
15
|
-
|
|
14
|
+
let e = "input" in d && d.input ? d.input : void 0, t = d.command.handle;
|
|
15
|
+
t(e);
|
|
16
16
|
};
|
|
17
17
|
return (e, d) => {
|
|
18
18
|
let m = c("v-btn");
|
|
@@ -1,9 +1,269 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { getInputType as e } from "./vue-components11.es.js";
|
|
2
|
+
import { Fragment as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createSlots as a, defineComponent as o, guardReactiveProps as s, mergeProps as c, normalizeProps as l, openBlock as u, renderList as d, renderSlot as f, resolveComponent as p, resolveDynamicComponent as m, unref as h, withCtx as g } from "vue";
|
|
3
|
+
//#region src/components/OmegaForm/OmegaInputVuetify.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var _ = /* @__PURE__ */ o({
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
__name: "OmegaInputVuetify",
|
|
7
|
+
props: {
|
|
8
|
+
inputProps: {},
|
|
9
|
+
field: {},
|
|
10
|
+
state: {}
|
|
11
|
+
},
|
|
12
|
+
emits: ["focus", "blur"],
|
|
13
|
+
setup(o) {
|
|
14
|
+
return (_, v) => {
|
|
15
|
+
let y = p("v-text-field"), b = p("v-textarea"), x = p("v-radio"), S = p("v-radio-group"), C = p("v-select"), w = p("v-autocomplete");
|
|
16
|
+
return u(), i("div", {
|
|
17
|
+
class: "omega-input",
|
|
18
|
+
onFocusout: v[4] ||= (e) => {
|
|
19
|
+
_.$emit("blur", e), o.field.handleBlur();
|
|
20
|
+
},
|
|
21
|
+
onFocusin: v[5] ||= (e) => _.$emit("focus", e)
|
|
22
|
+
}, [
|
|
23
|
+
o.inputProps.type === "boolean" || o.inputProps.type === "switch" ? (u(), n(m(o.inputProps.type === "boolean" ? "v-checkbox" : "v-switch"), c({
|
|
24
|
+
key: 0,
|
|
25
|
+
id: o.inputProps.id,
|
|
26
|
+
name: o.field.name,
|
|
27
|
+
label: o.inputProps.label,
|
|
28
|
+
"error-messages": o.inputProps.errorMessages,
|
|
29
|
+
error: o.inputProps.error,
|
|
30
|
+
ripple: ""
|
|
31
|
+
}, _.$attrs, {
|
|
32
|
+
"model-value": o.state.value,
|
|
33
|
+
onChange: v[0] ||= (e) => o.field.handleChange(e.target.checked)
|
|
34
|
+
}), a({ _: 2 }, [_.$slots.label ? {
|
|
35
|
+
name: "label",
|
|
36
|
+
fn: g(() => [f(_.$slots, "label", l(s({
|
|
37
|
+
required: o.inputProps.required,
|
|
38
|
+
id: o.inputProps.id,
|
|
39
|
+
label: o.inputProps.label
|
|
40
|
+
})))]),
|
|
41
|
+
key: "0"
|
|
42
|
+
} : void 0]), 1040, [
|
|
43
|
+
"id",
|
|
44
|
+
"name",
|
|
45
|
+
"label",
|
|
46
|
+
"error-messages",
|
|
47
|
+
"error",
|
|
48
|
+
"model-value"
|
|
49
|
+
])) : r("", !0),
|
|
50
|
+
o.inputProps.type === "email" || o.inputProps.type === "string" || o.inputProps.type === "password" || o.inputProps.type === "date" ? (u(), n(y, c({
|
|
51
|
+
key: 1,
|
|
52
|
+
id: o.inputProps.id,
|
|
53
|
+
required: o.inputProps.required,
|
|
54
|
+
"min-length": o.inputProps.minLength,
|
|
55
|
+
"max-length": o.inputProps.maxLength,
|
|
56
|
+
type: h(e)(o.inputProps.type),
|
|
57
|
+
name: o.field.name,
|
|
58
|
+
label: o.inputProps.label,
|
|
59
|
+
"error-messages": o.inputProps.errorMessages,
|
|
60
|
+
error: o.inputProps.error
|
|
61
|
+
}, _.$attrs, {
|
|
62
|
+
"model-value": o.state.value,
|
|
63
|
+
"onUpdate:modelValue": o.field.handleChange
|
|
64
|
+
}), a({ _: 2 }, [_.$slots.label ? {
|
|
65
|
+
name: "label",
|
|
66
|
+
fn: g(() => [f(_.$slots, "label", l(s({
|
|
67
|
+
required: o.inputProps.required,
|
|
68
|
+
id: o.inputProps.id,
|
|
69
|
+
label: o.inputProps.label
|
|
70
|
+
})))]),
|
|
71
|
+
key: "0"
|
|
72
|
+
} : void 0]), 1040, [
|
|
73
|
+
"id",
|
|
74
|
+
"required",
|
|
75
|
+
"min-length",
|
|
76
|
+
"max-length",
|
|
77
|
+
"type",
|
|
78
|
+
"name",
|
|
79
|
+
"label",
|
|
80
|
+
"error-messages",
|
|
81
|
+
"error",
|
|
82
|
+
"model-value",
|
|
83
|
+
"onUpdate:modelValue"
|
|
84
|
+
])) : r("", !0),
|
|
85
|
+
o.inputProps.type === "text" ? (u(), n(b, c({
|
|
86
|
+
key: 2,
|
|
87
|
+
id: o.inputProps.id,
|
|
88
|
+
required: o.inputProps.required,
|
|
89
|
+
"min-length": o.inputProps.minLength,
|
|
90
|
+
"max-length": o.inputProps.maxLength,
|
|
91
|
+
name: o.field.name,
|
|
92
|
+
label: o.inputProps.label,
|
|
93
|
+
"error-messages": o.inputProps.errorMessages,
|
|
94
|
+
error: o.inputProps.error
|
|
95
|
+
}, _.$attrs, {
|
|
96
|
+
"model-value": o.state.value,
|
|
97
|
+
"onUpdate:modelValue": o.field.handleChange
|
|
98
|
+
}), a({ _: 2 }, [_.$slots.label ? {
|
|
99
|
+
name: "label",
|
|
100
|
+
fn: g(() => [f(_.$slots, "label", l(s({
|
|
101
|
+
required: o.inputProps.required,
|
|
102
|
+
id: o.inputProps.id,
|
|
103
|
+
label: o.inputProps.label
|
|
104
|
+
})))]),
|
|
105
|
+
key: "0"
|
|
106
|
+
} : void 0]), 1040, [
|
|
107
|
+
"id",
|
|
108
|
+
"required",
|
|
109
|
+
"min-length",
|
|
110
|
+
"max-length",
|
|
111
|
+
"name",
|
|
112
|
+
"label",
|
|
113
|
+
"error-messages",
|
|
114
|
+
"error",
|
|
115
|
+
"model-value",
|
|
116
|
+
"onUpdate:modelValue"
|
|
117
|
+
])) : r("", !0),
|
|
118
|
+
o.inputProps.type === "number" || o.inputProps.type === "range" ? (u(), n(m(o.inputProps.type === "range" ? "v-slider" : "v-text-field"), c({
|
|
119
|
+
key: 3,
|
|
120
|
+
id: o.inputProps.id,
|
|
121
|
+
required: o.inputProps.required,
|
|
122
|
+
min: o.inputProps.min,
|
|
123
|
+
max: o.inputProps.max,
|
|
124
|
+
type: o.inputProps.type,
|
|
125
|
+
name: o.field.name,
|
|
126
|
+
label: o.inputProps.label,
|
|
127
|
+
"error-messages": o.inputProps.errorMessages,
|
|
128
|
+
error: o.inputProps.error
|
|
129
|
+
}, _.$attrs, {
|
|
130
|
+
"model-value": o.state.value,
|
|
131
|
+
"onUpdate:modelValue": v[1] ||= (e) => {
|
|
132
|
+
e || e === 0 ? o.field.handleChange(Number(e)) : o.field.handleChange(void 0);
|
|
133
|
+
}
|
|
134
|
+
}), a({ _: 2 }, [_.$slots.label ? {
|
|
135
|
+
name: "label",
|
|
136
|
+
fn: g(() => [f(_.$slots, "label", l(s({
|
|
137
|
+
required: o.inputProps.required,
|
|
138
|
+
id: o.inputProps.id,
|
|
139
|
+
label: o.inputProps.label
|
|
140
|
+
})))]),
|
|
141
|
+
key: "0"
|
|
142
|
+
} : void 0]), 1040, [
|
|
143
|
+
"id",
|
|
144
|
+
"required",
|
|
145
|
+
"min",
|
|
146
|
+
"max",
|
|
147
|
+
"type",
|
|
148
|
+
"name",
|
|
149
|
+
"label",
|
|
150
|
+
"error-messages",
|
|
151
|
+
"error",
|
|
152
|
+
"model-value"
|
|
153
|
+
])) : r("", !0),
|
|
154
|
+
o.inputProps.type === "radio" ? (u(), n(S, c({
|
|
155
|
+
key: 4,
|
|
156
|
+
id: o.inputProps.id,
|
|
157
|
+
name: o.field.name,
|
|
158
|
+
label: o.inputProps.label,
|
|
159
|
+
"error-messages": o.inputProps.errorMessages,
|
|
160
|
+
error: o.inputProps.error
|
|
161
|
+
}, _.$attrs, {
|
|
162
|
+
"model-value": o.state.value,
|
|
163
|
+
"onUpdate:modelValue": o.field.handleChange
|
|
164
|
+
}), a({
|
|
165
|
+
default: g(() => [(u(!0), i(t, null, d(o.inputProps.options, (e) => (u(), n(x, {
|
|
166
|
+
key: e.value,
|
|
167
|
+
label: e.title,
|
|
168
|
+
value: e.value
|
|
169
|
+
}, null, 8, ["label", "value"]))), 128))]),
|
|
170
|
+
_: 2
|
|
171
|
+
}, [_.$slots.label ? {
|
|
172
|
+
name: "label",
|
|
173
|
+
fn: g(() => [f(_.$slots, "label", l(s({
|
|
174
|
+
required: o.inputProps.required,
|
|
175
|
+
id: o.inputProps.id,
|
|
176
|
+
label: o.inputProps.label
|
|
177
|
+
})))]),
|
|
178
|
+
key: "0"
|
|
179
|
+
} : void 0]), 1040, [
|
|
180
|
+
"id",
|
|
181
|
+
"name",
|
|
182
|
+
"label",
|
|
183
|
+
"error-messages",
|
|
184
|
+
"error",
|
|
185
|
+
"model-value",
|
|
186
|
+
"onUpdate:modelValue"
|
|
187
|
+
])) : r("", !0),
|
|
188
|
+
o.inputProps.type === "select" || o.inputProps.type === "multiple" ? (u(), n(C, c({
|
|
189
|
+
key: 5,
|
|
190
|
+
id: o.inputProps.id,
|
|
191
|
+
clearable: o.inputProps.type === "select",
|
|
192
|
+
required: o.inputProps.required,
|
|
193
|
+
multiple: o.inputProps.type === "multiple",
|
|
194
|
+
chips: o.inputProps.type === "multiple",
|
|
195
|
+
name: o.field.name,
|
|
196
|
+
label: o.inputProps.label,
|
|
197
|
+
items: o.inputProps.options,
|
|
198
|
+
"error-messages": o.inputProps.errorMessages,
|
|
199
|
+
error: o.inputProps.error
|
|
200
|
+
}, _.$attrs, {
|
|
201
|
+
"model-value": o.state.value,
|
|
202
|
+
onClear: v[2] ||= (e) => o.field.handleChange(void 0),
|
|
203
|
+
"onUpdate:modelValue": o.field.handleChange
|
|
204
|
+
}), a({ _: 2 }, [_.$slots.label ? {
|
|
205
|
+
name: "label",
|
|
206
|
+
fn: g(() => [f(_.$slots, "label", l(s({
|
|
207
|
+
required: o.inputProps.required,
|
|
208
|
+
id: o.inputProps.id,
|
|
209
|
+
label: o.inputProps.label
|
|
210
|
+
})))]),
|
|
211
|
+
key: "0"
|
|
212
|
+
} : void 0]), 1040, [
|
|
213
|
+
"id",
|
|
214
|
+
"clearable",
|
|
215
|
+
"required",
|
|
216
|
+
"multiple",
|
|
217
|
+
"chips",
|
|
218
|
+
"name",
|
|
219
|
+
"label",
|
|
220
|
+
"items",
|
|
221
|
+
"error-messages",
|
|
222
|
+
"error",
|
|
223
|
+
"model-value",
|
|
224
|
+
"onUpdate:modelValue"
|
|
225
|
+
])) : r("", !0),
|
|
226
|
+
o.inputProps.type === "autocomplete" || o.inputProps.type === "autocompletemultiple" ? (u(), n(w, c({
|
|
227
|
+
key: 6,
|
|
228
|
+
id: o.inputProps.id,
|
|
229
|
+
clearable: o.inputProps.type === "autocomplete",
|
|
230
|
+
multiple: o.inputProps.type === "autocompletemultiple",
|
|
231
|
+
required: o.inputProps.required,
|
|
232
|
+
name: o.field.name,
|
|
233
|
+
label: o.inputProps.label,
|
|
234
|
+
items: o.inputProps.options,
|
|
235
|
+
"error-messages": o.inputProps.errorMessages,
|
|
236
|
+
error: o.inputProps.error,
|
|
237
|
+
chips: o.inputProps.type === "autocompletemultiple"
|
|
238
|
+
}, _.$attrs, {
|
|
239
|
+
"model-value": o.state.value,
|
|
240
|
+
onClear: v[3] ||= (e) => o.field.handleChange(void 0),
|
|
241
|
+
"onUpdate:modelValue": o.field.handleChange
|
|
242
|
+
}), a({ _: 2 }, [_.$slots.label ? {
|
|
243
|
+
name: "label",
|
|
244
|
+
fn: g(() => [f(_.$slots, "label", l(s({
|
|
245
|
+
required: o.inputProps.required,
|
|
246
|
+
id: o.inputProps.id,
|
|
247
|
+
label: o.inputProps.label
|
|
248
|
+
})))]),
|
|
249
|
+
key: "0"
|
|
250
|
+
} : void 0]), 1040, [
|
|
251
|
+
"id",
|
|
252
|
+
"clearable",
|
|
253
|
+
"multiple",
|
|
254
|
+
"required",
|
|
255
|
+
"name",
|
|
256
|
+
"label",
|
|
257
|
+
"items",
|
|
258
|
+
"error-messages",
|
|
259
|
+
"error",
|
|
260
|
+
"chips",
|
|
261
|
+
"model-value",
|
|
262
|
+
"onUpdate:modelValue"
|
|
263
|
+
])) : r("", !0)
|
|
264
|
+
], 32);
|
|
265
|
+
};
|
|
6
266
|
}
|
|
7
|
-
};
|
|
267
|
+
});
|
|
8
268
|
//#endregion
|
|
9
|
-
export {
|
|
269
|
+
export { _ as default };
|