@effect-app/vue-components 4.0.0-beta.32 → 4.0.0-beta.321
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/README.md +13 -9
- package/dist/reset.css +39 -38
- package/dist/types/components/CommandButton.vue.d.ts +24 -5
- package/dist/types/components/Dialog.vue.d.ts +4 -2
- package/dist/types/components/FixedNuxtErrorBoundary.vue.d.ts +39 -0
- package/dist/types/components/OmegaForm/InputProps.d.ts +2 -1
- package/dist/types/components/OmegaForm/OmegaArray.vue.d.ts +1 -1
- package/dist/types/components/OmegaForm/OmegaAutoGen.vue.d.ts +2 -2
- package/dist/types/components/OmegaForm/OmegaErrorsInternal.vue.d.ts +2 -3
- 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/OmegaInputVuetify.vue.d.ts +12 -0
- package/dist/types/components/OmegaForm/OmegaInternalInput.vue.d.ts +7 -9
- package/dist/types/components/OmegaForm/OmegaTaggedUnion.vue.d.ts +2 -2
- package/dist/types/components/OmegaForm/OmegaTaggedUnionInternal.vue.d.ts +3 -3
- package/dist/types/components/OmegaForm/OmegaWrapper.vue.d.ts +1 -1
- package/dist/types/components/OmegaForm/createUseFormWithCustomInput.d.ts +4 -2
- package/dist/types/components/OmegaForm/decimalSeparatorInput.d.ts +13 -0
- 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 +14 -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 +33 -0
- package/dist/types/components/OmegaForm/meta/defaults.d.ts +21 -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 +312 -0
- package/dist/types/components/OmegaForm/useOmegaForm.d.ts +9 -213
- package/dist/types/components/OmegaForm/validation/localized.d.ts +10 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/index.d.ts +0 -1
- package/dist/types/utils/index.d.ts +8 -8
- package/dist/vue-components.es.js +30 -44
- package/dist/vue-components10.es.js +5 -0
- package/dist/vue-components11.es.js +56 -0
- package/dist/vue-components12.es.js +5 -0
- package/dist/vue-components13.es.js +20 -0
- package/dist/vue-components14.es.js +50 -0
- package/dist/vue-components15.es.js +128 -0
- package/dist/vue-components16.es.js +65 -0
- package/dist/vue-components17.es.js +114 -0
- package/dist/vue-components18.es.js +26 -0
- package/dist/vue-components19.es.js +5 -0
- package/dist/vue-components2.es.js +11 -0
- package/dist/vue-components20.es.js +80 -0
- package/dist/vue-components21.es.js +115 -0
- package/dist/vue-components22.es.js +74 -0
- package/dist/vue-components23.es.js +12 -0
- package/dist/vue-components24.es.js +54 -0
- package/dist/vue-components25.es.js +5 -0
- package/dist/vue-components26.es.js +44 -0
- package/dist/vue-components27.es.js +5 -0
- package/dist/vue-components28.es.js +84 -0
- package/dist/vue-components3.es.js +98 -0
- package/dist/vue-components30.es.js +8 -0
- package/dist/vue-components31.es.js +9 -0
- package/dist/vue-components32.es.js +15 -0
- package/dist/vue-components33.es.js +24 -0
- package/dist/vue-components34.es.js +344 -0
- package/dist/vue-components36.es.js +8 -0
- package/dist/vue-components37.es.js +74 -0
- package/dist/vue-components38.es.js +5 -0
- package/dist/vue-components39.es.js +64 -0
- package/dist/vue-components4.es.js +5 -0
- package/dist/vue-components40.es.js +5 -0
- package/dist/vue-components41.es.js +24 -0
- package/dist/vue-components42.es.js +5 -0
- package/dist/vue-components43.es.js +59 -0
- package/dist/vue-components44.es.js +5 -0
- package/dist/vue-components45.es.js +12 -0
- package/dist/vue-components46.es.js +22 -0
- package/dist/vue-components48.es.js +9 -0
- package/dist/vue-components49.es.js +4 -0
- package/dist/vue-components5.es.js +24 -0
- package/dist/vue-components50.es.js +38 -0
- package/dist/vue-components51.es.js +27 -0
- package/dist/vue-components52.es.js +28 -0
- package/dist/vue-components53.es.js +7 -0
- package/dist/vue-components54.es.js +18 -0
- package/dist/vue-components55.es.js +36 -0
- package/dist/vue-components56.es.js +18 -0
- package/dist/vue-components57.es.js +21 -0
- package/dist/vue-components58.es.js +30 -0
- package/dist/vue-components59.es.js +7 -0
- package/dist/vue-components6.es.js +13 -0
- package/dist/vue-components60.es.js +9 -0
- package/dist/vue-components61.es.js +38 -0
- package/dist/vue-components62.es.js +25 -0
- package/dist/vue-components63.es.js +128 -0
- package/dist/vue-components64.es.js +24 -0
- package/dist/vue-components65.es.js +21 -0
- package/dist/vue-components66.es.js +9 -0
- package/dist/vue-components67.es.js +19 -0
- package/dist/vue-components68.es.js +5 -0
- package/dist/vue-components69.es.js +29 -0
- package/dist/vue-components7.es.js +13 -0
- package/dist/vue-components70.es.js +5 -0
- package/dist/vue-components71.es.js +43 -0
- package/dist/vue-components72.es.js +101 -0
- package/dist/vue-components73.es.js +36 -0
- package/dist/vue-components74.es.js +19 -0
- package/dist/vue-components75.es.js +50 -0
- package/dist/vue-components8.es.js +35 -0
- package/dist/vue-components9.es.js +47 -0
- package/package.json +39 -33
- package/src/components/CommandButton.vue +96 -16
- package/src/components/Dialog.vue +0 -1
- package/src/components/FixedNuxtErrorBoundary.vue +112 -0
- package/src/components/OmegaForm/InputProps.ts +2 -1
- package/src/components/OmegaForm/OmegaArray.vue +9 -23
- package/src/components/OmegaForm/OmegaAutoGen.vue +3 -2
- package/src/components/OmegaForm/OmegaErrorsInternal.vue +20 -17
- package/src/components/OmegaForm/OmegaFormInput.vue +1 -1
- package/src/components/OmegaForm/OmegaInput.vue +29 -43
- package/src/components/OmegaForm/OmegaInputVuetify.vue +122 -16
- package/src/components/OmegaForm/OmegaInternalInput.vue +33 -13
- package/src/components/OmegaForm/OmegaTaggedUnion.vue +10 -3
- package/src/components/OmegaForm/OmegaTaggedUnionInternal.vue +6 -6
- package/src/components/OmegaForm/OmegaWrapper.vue +1 -1
- package/src/components/OmegaForm/blockDialog.ts +18 -6
- package/src/components/OmegaForm/createUseFormWithCustomInput.ts +16 -14
- package/src/components/OmegaForm/decimalSeparatorInput.ts +38 -0
- package/src/components/OmegaForm/errors.ts +139 -0
- package/src/components/OmegaForm/getOmegaStore.ts +1 -1
- package/src/components/OmegaForm/hocs.ts +19 -0
- package/src/components/OmegaForm/index.ts +17 -4
- package/src/components/OmegaForm/inputs.ts +22 -0
- package/src/components/OmegaForm/meta/checks.ts +107 -0
- package/src/components/OmegaForm/meta/createMeta.ts +140 -0
- package/src/components/OmegaForm/meta/defaults.ts +263 -0
- package/src/components/OmegaForm/meta/redacted.ts +71 -0
- package/src/components/OmegaForm/meta/types.ts +78 -0
- package/src/components/OmegaForm/meta/walker.ts +248 -0
- package/src/components/OmegaForm/persistency.ts +247 -0
- package/src/components/OmegaForm/submit.ts +131 -0
- package/src/components/OmegaForm/types.ts +801 -0
- package/src/components/OmegaForm/useOmegaForm.ts +103 -896
- package/src/components/OmegaForm/useRegisterField.ts +1 -1
- package/src/components/OmegaForm/validation/localized.ts +242 -0
- package/src/components/index.ts +1 -0
- package/src/index.ts +0 -1
- package/src/reset.css +39 -38
- package/src/utils/index.ts +11 -8
- package/dist/types/components/OmegaForm/OmegaFormStuff.d.ts +0 -159
- package/dist/types/constants/index.d.ts +0 -1
- package/dist/vue-components.es10.js +0 -239
- package/dist/vue-components.es11.js +0 -32
- package/dist/vue-components.es12.js +0 -503
- package/dist/vue-components.es13.js +0 -49
- package/dist/vue-components.es14.js +0 -4
- package/dist/vue-components.es15.js +0 -4
- package/dist/vue-components.es16.js +0 -6
- package/dist/vue-components.es17.js +0 -13
- package/dist/vue-components.es18.js +0 -57
- package/dist/vue-components.es19.js +0 -56
- package/dist/vue-components.es2.js +0 -30
- package/dist/vue-components.es20.js +0 -8
- package/dist/vue-components.es21.js +0 -8
- package/dist/vue-components.es22.js +0 -5
- package/dist/vue-components.es23.js +0 -5
- package/dist/vue-components.es24.js +0 -4
- package/dist/vue-components.es25.js +0 -4
- package/dist/vue-components.es26.js +0 -4
- package/dist/vue-components.es27.js +0 -4
- package/dist/vue-components.es28.js +0 -19
- package/dist/vue-components.es29.js +0 -13
- package/dist/vue-components.es3.js +0 -17
- package/dist/vue-components.es30.js +0 -31
- package/dist/vue-components.es31.js +0 -6
- package/dist/vue-components.es32.js +0 -4
- package/dist/vue-components.es33.js +0 -4
- package/dist/vue-components.es34.js +0 -113
- package/dist/vue-components.es36.js +0 -9
- package/dist/vue-components.es37.js +0 -34
- package/dist/vue-components.es39.js +0 -194
- package/dist/vue-components.es4.js +0 -52
- package/dist/vue-components.es41.js +0 -6
- package/dist/vue-components.es42.js +0 -25
- package/dist/vue-components.es43.js +0 -7
- package/dist/vue-components.es44.js +0 -23
- package/dist/vue-components.es45.js +0 -32
- package/dist/vue-components.es46.js +0 -24
- package/dist/vue-components.es47.js +0 -14
- package/dist/vue-components.es48.js +0 -7
- package/dist/vue-components.es49.js +0 -21
- package/dist/vue-components.es5.js +0 -52
- package/dist/vue-components.es50.js +0 -11
- package/dist/vue-components.es51.js +0 -33
- package/dist/vue-components.es52.js +0 -50
- package/dist/vue-components.es53.js +0 -28
- package/dist/vue-components.es54.js +0 -13
- package/dist/vue-components.es55.js +0 -67
- package/dist/vue-components.es56.js +0 -58
- package/dist/vue-components.es57.js +0 -19
- package/dist/vue-components.es58.js +0 -35
- package/dist/vue-components.es59.js +0 -31
- package/dist/vue-components.es6.js +0 -69
- package/dist/vue-components.es60.js +0 -44
- package/dist/vue-components.es61.js +0 -4
- package/dist/vue-components.es62.js +0 -46
- package/dist/vue-components.es63.js +0 -4
- package/dist/vue-components.es7.js +0 -83
- package/dist/vue-components.es8.js +0 -63
- package/dist/vue-components.es9.js +0 -21
- package/src/components/OmegaForm/OmegaFormStuff.ts +0 -1276
- package/src/constants/index.ts +0 -1
|
@@ -0,0 +1,84 @@
|
|
|
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.flatMap((e) => typeof e == "string" ? e ? [e] : [] : typeof e != "object" || !e ? [] : Object.values(e).filter((e) => Array.isArray(e)).flatMap((e) => e.flatMap((e) => typeof e == "object" && e && "message" in e && typeof e.message == "string" && e.message ? [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
|
+
});
|
|
83
|
+
//#endregion
|
|
84
|
+
export { O as default };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { computed as e, createBlock as t, createCommentVNode as n, createElementVNode as r, createSlots as i, createTextVNode as a, createVNode as o, defineComponent as s, mergeProps as c, openBlock as l, renderSlot as u, resolveComponent as d, toDisplayString as f, withCtx as p } from "vue";
|
|
2
|
+
import * as m from "effect-app/Option";
|
|
3
|
+
//#region src/components/CommandButton.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var h = { class: "ml-2" }, g = { class: "ml-2" }, _ = /*@__PURE__*/ s({
|
|
5
|
+
name: "CommandButton",
|
|
6
|
+
props: {
|
|
7
|
+
input: {},
|
|
8
|
+
optionalInput: {},
|
|
9
|
+
command: {},
|
|
10
|
+
empty: { type: Boolean },
|
|
11
|
+
disabled: {},
|
|
12
|
+
title: {},
|
|
13
|
+
mapProgress: { type: Function }
|
|
14
|
+
},
|
|
15
|
+
setup(s) {
|
|
16
|
+
let _ = s, v = e(() => "optionalInput" in _ && _.optionalInput !== void 0 ? m.isSome(_.optionalInput) ? {
|
|
17
|
+
_tag: "ready",
|
|
18
|
+
value: _.optionalInput.value
|
|
19
|
+
} : { _tag: "missing" } : "input" in _ && _.input !== void 0 ? {
|
|
20
|
+
_tag: "ready",
|
|
21
|
+
value: _.input
|
|
22
|
+
} : { _tag: "void" }), y = e(() => _.command.blocked || _.disabled || v.value._tag === "missing"), b = e(() => {
|
|
23
|
+
if (_.mapProgress) {
|
|
24
|
+
let e = _.command.result;
|
|
25
|
+
return e === void 0 ? void 0 : _.mapProgress(e);
|
|
26
|
+
}
|
|
27
|
+
return _.command.progress;
|
|
28
|
+
}), x = e(() => {
|
|
29
|
+
let e = b.value;
|
|
30
|
+
if (e !== void 0) return typeof e == "string" ? e : e.text;
|
|
31
|
+
}), S = e(() => {
|
|
32
|
+
let e = b.value;
|
|
33
|
+
return typeof e == "object" && e ? e.percentage : void 0;
|
|
34
|
+
}), C = () => {
|
|
35
|
+
if (y.value) return;
|
|
36
|
+
let e = v.value, t = _.command.handle;
|
|
37
|
+
e._tag === "ready" ? t(e.value) : e._tag === "void" && t(void 0);
|
|
38
|
+
};
|
|
39
|
+
return (e, m) => {
|
|
40
|
+
let _ = d("v-progress-circular"), v = d("v-btn");
|
|
41
|
+
return s.command.allowed && !s.empty ? (l(), t(v, c({ key: 0 }, e.$attrs, {
|
|
42
|
+
loading: s.command.waiting,
|
|
43
|
+
disabled: y.value,
|
|
44
|
+
"aria-disabled": y.value,
|
|
45
|
+
title: s.title ?? s.command.action,
|
|
46
|
+
class: { "v-btn--disabled": y.value },
|
|
47
|
+
onClick: C
|
|
48
|
+
}), i({
|
|
49
|
+
default: p(() => [u(e.$slots, "default", {
|
|
50
|
+
loading: s.command.waiting,
|
|
51
|
+
disabled: y.value,
|
|
52
|
+
label: s.command.label,
|
|
53
|
+
title: s.title ?? s.command.action
|
|
54
|
+
}, () => [a(f(s.command.label), 1)])]),
|
|
55
|
+
_: 2
|
|
56
|
+
}, [x.value === void 0 ? void 0 : {
|
|
57
|
+
name: "loader",
|
|
58
|
+
fn: p(() => [o(_, {
|
|
59
|
+
indeterminate: S.value === void 0,
|
|
60
|
+
"model-value": S.value,
|
|
61
|
+
size: "20",
|
|
62
|
+
width: "2"
|
|
63
|
+
}, null, 8, ["indeterminate", "model-value"]), r("span", h, f(x.value), 1)]),
|
|
64
|
+
key: "0"
|
|
65
|
+
}]), 1040, [
|
|
66
|
+
"loading",
|
|
67
|
+
"disabled",
|
|
68
|
+
"aria-disabled",
|
|
69
|
+
"title",
|
|
70
|
+
"class"
|
|
71
|
+
])) : s.command.allowed ? (l(), t(v, c({ key: 1 }, e.$attrs, {
|
|
72
|
+
loading: s.command.waiting,
|
|
73
|
+
disabled: y.value,
|
|
74
|
+
"aria-disabled": y.value,
|
|
75
|
+
title: s.title ?? s.command.action,
|
|
76
|
+
class: { "v-btn--disabled": y.value },
|
|
77
|
+
onClick: C
|
|
78
|
+
}), i({ _: 2 }, [x.value === void 0 ? void 0 : {
|
|
79
|
+
name: "loader",
|
|
80
|
+
fn: p(() => [o(_, {
|
|
81
|
+
indeterminate: S.value === void 0,
|
|
82
|
+
"model-value": S.value,
|
|
83
|
+
size: "20",
|
|
84
|
+
width: "2"
|
|
85
|
+
}, null, 8, ["indeterminate", "model-value"]), r("span", g, f(x.value), 1)]),
|
|
86
|
+
key: "0"
|
|
87
|
+
}]), 1040, [
|
|
88
|
+
"loading",
|
|
89
|
+
"disabled",
|
|
90
|
+
"aria-disabled",
|
|
91
|
+
"title",
|
|
92
|
+
"class"
|
|
93
|
+
])) : n("", !0);
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
//#endregion
|
|
98
|
+
export { _ as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);if(e.appendChild(document.createTextNode(`.v-enter-from[data-v-434aa1b4],.v-leave-to[data-v-434aa1b4]{opacity:0;grid-template-rows:0fr;max-height:0}.v-enter-active[data-v-434aa1b4],.v-leave-active[data-v-434aa1b4]{transition:all .15s;display:grid}.v-enter-to[data-v-434aa1b4],.v-leave-from[data-v-434aa1b4]{opacity:1;grid-template-rows:1fr;max-height:50vh}.error-alert[data-v-434aa1b4]{transition-behavior:allow-discrete;min-height:0;display:grid;overflow:hidden}.error-alert>[data-v-434aa1b4]{min-height:0}.error-list[data-v-434aa1b4]{list-style-position:inside}.error-list [data-v-434aa1b4]::marker{margin:0;padding:0}.error-alert-content[data-v-434aa1b4]{background-color:var(--error-background,#fff5f5);color:var(--error-color,#c92a2a);padding:1em}.error-link[data-v-434aa1b4]{color:var(--error-color,#c92a2a);cursor:pointer;font-weight:700;position:relative}.error-link[data-v-434aa1b4]: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-434aa1b4]{font-size:1.25em;font-weight:700}.error-message[data-v-434aa1b4]{font-style:italic}.error-item[data-v-434aa1b4]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-434aa1b4]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-434aa1b4]{gap:1.5em;display:flex}.container svg[data-v-434aa1b4]{width:3em}.container .single-error[data-v-434aa1b4]{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-434aa1b4],.v-leave-to[data-v-434aa1b4]{opacity:0;grid-template-rows:0fr;max-height:0}.v-enter-active[data-v-434aa1b4],.v-leave-active[data-v-434aa1b4]{transition:all .15s;display:grid}.v-enter-to[data-v-434aa1b4],.v-leave-from[data-v-434aa1b4]{opacity:1;grid-template-rows:1fr;max-height:50vh}.error-alert[data-v-434aa1b4]{transition-behavior:allow-discrete;min-height:0;display:grid;overflow:hidden}.error-alert>[data-v-434aa1b4]{min-height:0}.error-list[data-v-434aa1b4]{list-style-position:inside}.error-list [data-v-434aa1b4]::marker{margin:0;padding:0}.error-alert-content[data-v-434aa1b4]{background-color:var(--error-background,#fff5f5);color:var(--error-color,#c92a2a);padding:1em}.error-link[data-v-434aa1b4]{color:var(--error-color,#c92a2a);cursor:pointer;font-weight:700;position:relative}.error-link[data-v-434aa1b4]: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-434aa1b4]{font-size:1.25em;font-weight:700}.error-message[data-v-434aa1b4]{font-style:italic}.error-item[data-v-434aa1b4]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-434aa1b4]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-434aa1b4]{gap:1.5em;display:flex}.container svg[data-v-434aa1b4]{width:3em}.container .single-error[data-v-434aa1b4]{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-434aa1b4],.v-leave-to[data-v-434aa1b4]{opacity:0;grid-template-rows:0fr;max-height:0}.v-enter-active[data-v-434aa1b4],.v-leave-active[data-v-434aa1b4]{transition:all .15s;display:grid}.v-enter-to[data-v-434aa1b4],.v-leave-from[data-v-434aa1b4]{opacity:1;grid-template-rows:1fr;max-height:50vh}.error-alert[data-v-434aa1b4]{transition-behavior:allow-discrete;min-height:0;display:grid;overflow:hidden}.error-alert>[data-v-434aa1b4]{min-height:0}.error-list[data-v-434aa1b4]{list-style-position:inside}.error-list [data-v-434aa1b4]::marker{margin:0;padding:0}.error-alert-content[data-v-434aa1b4]{background-color:var(--error-background,#fff5f5);color:var(--error-color,#c92a2a);padding:1em}.error-link[data-v-434aa1b4]{color:var(--error-color,#c92a2a);cursor:pointer;font-weight:700;position:relative}.error-link[data-v-434aa1b4]: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-434aa1b4]{font-size:1.25em;font-weight:700}.error-message[data-v-434aa1b4]{font-style:italic}.error-item[data-v-434aa1b4]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-434aa1b4]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-434aa1b4]{gap:1.5em;display:flex}.container svg[data-v-434aa1b4]{width:3em}.container .single-error[data-v-434aa1b4]{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-434aa1b4],.v-leave-to[data-v-434aa1b4]{opacity:0;grid-template-rows:0fr;max-height:0}.v-enter-active[data-v-434aa1b4],.v-leave-active[data-v-434aa1b4]{transition:all .15s;display:grid}.v-enter-to[data-v-434aa1b4],.v-leave-from[data-v-434aa1b4]{opacity:1;grid-template-rows:1fr;max-height:50vh}.error-alert[data-v-434aa1b4]{transition-behavior:allow-discrete;min-height:0;display:grid;overflow:hidden}.error-alert>[data-v-434aa1b4]{min-height:0}.error-list[data-v-434aa1b4]{list-style-position:inside}.error-list [data-v-434aa1b4]::marker{margin:0;padding:0}.error-alert-content[data-v-434aa1b4]{background-color:var(--error-background,#fff5f5);color:var(--error-color,#c92a2a);padding:1em}.error-link[data-v-434aa1b4]{color:var(--error-color,#c92a2a);cursor:pointer;font-weight:700;position:relative}.error-link[data-v-434aa1b4]: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-434aa1b4]{font-size:1.25em;font-weight:700}.error-message[data-v-434aa1b4]{font-style:italic}.error-item[data-v-434aa1b4]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-434aa1b4]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-434aa1b4]{gap:1.5em;display:flex}.container svg[data-v-434aa1b4]{width:3em}.container .single-error[data-v-434aa1b4]{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-components28.es.js";
|
|
4
|
+
|
|
5
|
+
import t from "./vue-components30.es.js";
|
|
6
|
+
//#region src/components/OmegaForm/OmegaErrorsInternal.vue
|
|
7
|
+
var n = /*#__PURE__*/ t(e, [["__scopeId", "data-v-434aa1b4"]]);
|
|
8
|
+
//#endregion
|
|
9
|
+
export { n as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/components/OmegaForm/decimalSeparatorInput.ts
|
|
2
|
+
var e = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), t = (t, n) => {
|
|
3
|
+
if (!t.data) return;
|
|
4
|
+
let r = [".", ","].filter((e) => e !== n);
|
|
5
|
+
if (!r.some((e) => t.data.includes(e))) return;
|
|
6
|
+
let i = t.target;
|
|
7
|
+
t.preventDefault(), t.stopPropagation();
|
|
8
|
+
let a = r.reduce((e, t) => e.replaceAll(t, n), t.data), o = i.selectionStart ?? i.value.length, s = i.selectionEnd ?? i.value.length, c = i.value.slice(0, o) + a + i.value.slice(s);
|
|
9
|
+
if (!RegExp(`^-?\\d*${e(n)}?\\d*$`).test(c)) return;
|
|
10
|
+
i.value = c;
|
|
11
|
+
let l = o + a.length;
|
|
12
|
+
i.setSelectionRange(l, l), i.dispatchEvent(new Event("input", { bubbles: !0 }));
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { t as handleDecimalSeparatorBeforeinput };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/components/OmegaForm/types.ts
|
|
2
|
+
var e = [
|
|
3
|
+
"string",
|
|
4
|
+
"text",
|
|
5
|
+
"number",
|
|
6
|
+
"select",
|
|
7
|
+
"multiple",
|
|
8
|
+
"boolean",
|
|
9
|
+
"radio",
|
|
10
|
+
"autocomplete",
|
|
11
|
+
"autocompletemultiple",
|
|
12
|
+
"switch",
|
|
13
|
+
"range",
|
|
14
|
+
"password",
|
|
15
|
+
"email",
|
|
16
|
+
"date",
|
|
17
|
+
"tel",
|
|
18
|
+
"url",
|
|
19
|
+
"color",
|
|
20
|
+
"time",
|
|
21
|
+
"search"
|
|
22
|
+
];
|
|
23
|
+
//#endregion
|
|
24
|
+
export { e as typeOverrides };
|
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
import { getInputType as e } from "./vue-components13.es.js";
|
|
2
|
+
import { handleDecimalSeparatorBeforeinput as t } from "./vue-components32.es.js";
|
|
3
|
+
import { typeOverrides as n } from "./vue-components33.es.js";
|
|
4
|
+
import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createSlots as c, defineComponent as l, guardReactiveProps as u, mergeProps as d, normalizeProps as f, openBlock as p, renderList as m, renderSlot as h, resolveComponent as g, resolveDynamicComponent as _, unref as v, useAttrs as y, watchEffect as b, withCtx as x } from "vue";
|
|
5
|
+
import { useLocale as S } from "vuetify";
|
|
6
|
+
//#region src/components/OmegaForm/OmegaInputVuetify.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var C = /*@__PURE__*/ l({
|
|
8
|
+
inheritAttrs: !1,
|
|
9
|
+
__name: "OmegaInputVuetify",
|
|
10
|
+
props: {
|
|
11
|
+
inputProps: {},
|
|
12
|
+
field: {},
|
|
13
|
+
state: {}
|
|
14
|
+
},
|
|
15
|
+
emits: ["focus", "blur"],
|
|
16
|
+
setup(l) {
|
|
17
|
+
let C = l, w = y(), T = (() => {
|
|
18
|
+
try {
|
|
19
|
+
return S().decimalSeparator;
|
|
20
|
+
} catch {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
})(), E = i(() => (w["decimal-separator"] ?? w.decimalSeparator)?.[0] || T?.value || "."), D = (e) => t(e, E.value), O = i(() => !n.includes(C.inputProps.type));
|
|
24
|
+
return b(() => {
|
|
25
|
+
O.value && console.warn(`[OmegaForm] Unhandled input type "${C.inputProps.type}", falling back to a text input.`);
|
|
26
|
+
}), (t, n) => {
|
|
27
|
+
let i = g("v-text-field"), y = g("v-textarea"), b = g("v-number-input"), S = g("v-slider"), C = g("v-radio"), w = g("v-radio-group"), T = g("v-select"), E = g("v-autocomplete");
|
|
28
|
+
return p(), s("div", {
|
|
29
|
+
class: "omega-input",
|
|
30
|
+
onFocusout: n[9] ||= (e) => {
|
|
31
|
+
t.$emit("blur", e), l.field.handleBlur();
|
|
32
|
+
},
|
|
33
|
+
onFocusin: n[10] ||= (e) => t.$emit("focus", e)
|
|
34
|
+
}, [
|
|
35
|
+
l.inputProps.type === "boolean" || l.inputProps.type === "switch" ? (p(), a(_(l.inputProps.type === "boolean" ? "v-checkbox" : "v-switch"), d({
|
|
36
|
+
key: 0,
|
|
37
|
+
id: l.inputProps.id,
|
|
38
|
+
name: l.field.name,
|
|
39
|
+
label: l.inputProps.label,
|
|
40
|
+
"error-messages": l.inputProps.errorMessages,
|
|
41
|
+
error: l.inputProps.error,
|
|
42
|
+
ripple: ""
|
|
43
|
+
}, t.$attrs, {
|
|
44
|
+
"model-value": l.state.value,
|
|
45
|
+
onChange: n[0] ||= (e) => l.field.handleChange(e.target.checked)
|
|
46
|
+
}), c({ _: 2 }, [t.$slots.label ? {
|
|
47
|
+
name: "label",
|
|
48
|
+
fn: x(() => [h(t.$slots, "label", f(u({
|
|
49
|
+
required: l.inputProps.required,
|
|
50
|
+
id: l.inputProps.id,
|
|
51
|
+
label: l.inputProps.label
|
|
52
|
+
})))]),
|
|
53
|
+
key: "0"
|
|
54
|
+
} : void 0]), 1040, [
|
|
55
|
+
"id",
|
|
56
|
+
"name",
|
|
57
|
+
"label",
|
|
58
|
+
"error-messages",
|
|
59
|
+
"error",
|
|
60
|
+
"model-value"
|
|
61
|
+
])) : o("", !0),
|
|
62
|
+
l.inputProps.type === "email" || l.inputProps.type === "string" || l.inputProps.type === "password" || l.inputProps.type === "date" || l.inputProps.type === "tel" || l.inputProps.type === "url" || l.inputProps.type === "color" || l.inputProps.type === "time" || l.inputProps.type === "search" ? (p(), a(i, d({
|
|
63
|
+
key: 1,
|
|
64
|
+
id: l.inputProps.id,
|
|
65
|
+
required: l.inputProps.required,
|
|
66
|
+
"min-length": l.inputProps.minLength,
|
|
67
|
+
"max-length": l.inputProps.maxLength,
|
|
68
|
+
type: v(e)(l.inputProps.type),
|
|
69
|
+
name: l.field.name,
|
|
70
|
+
label: l.inputProps.label,
|
|
71
|
+
"error-messages": l.inputProps.errorMessages,
|
|
72
|
+
error: l.inputProps.error
|
|
73
|
+
}, t.$attrs, {
|
|
74
|
+
"model-value": l.state.value,
|
|
75
|
+
"onUpdate:modelValue": n[1] ||= (e) => l.field.handleChange(e)
|
|
76
|
+
}), c({ _: 2 }, [t.$slots.label ? {
|
|
77
|
+
name: "label",
|
|
78
|
+
fn: x(() => [h(t.$slots, "label", f(u({
|
|
79
|
+
required: l.inputProps.required,
|
|
80
|
+
id: l.inputProps.id,
|
|
81
|
+
label: l.inputProps.label
|
|
82
|
+
})))]),
|
|
83
|
+
key: "0"
|
|
84
|
+
} : void 0]), 1040, [
|
|
85
|
+
"id",
|
|
86
|
+
"required",
|
|
87
|
+
"min-length",
|
|
88
|
+
"max-length",
|
|
89
|
+
"type",
|
|
90
|
+
"name",
|
|
91
|
+
"label",
|
|
92
|
+
"error-messages",
|
|
93
|
+
"error",
|
|
94
|
+
"model-value"
|
|
95
|
+
])) : o("", !0),
|
|
96
|
+
l.inputProps.type === "text" ? (p(), a(y, d({
|
|
97
|
+
key: 2,
|
|
98
|
+
id: l.inputProps.id,
|
|
99
|
+
required: l.inputProps.required,
|
|
100
|
+
"min-length": l.inputProps.minLength,
|
|
101
|
+
"max-length": l.inputProps.maxLength,
|
|
102
|
+
name: l.field.name,
|
|
103
|
+
label: l.inputProps.label,
|
|
104
|
+
"error-messages": l.inputProps.errorMessages,
|
|
105
|
+
error: l.inputProps.error
|
|
106
|
+
}, t.$attrs, {
|
|
107
|
+
"model-value": l.state.value,
|
|
108
|
+
"onUpdate:modelValue": n[2] ||= (e) => l.field.handleChange(e)
|
|
109
|
+
}), c({ _: 2 }, [t.$slots.label ? {
|
|
110
|
+
name: "label",
|
|
111
|
+
fn: x(() => [h(t.$slots, "label", f(u({
|
|
112
|
+
required: l.inputProps.required,
|
|
113
|
+
id: l.inputProps.id,
|
|
114
|
+
label: l.inputProps.label
|
|
115
|
+
})))]),
|
|
116
|
+
key: "0"
|
|
117
|
+
} : void 0]), 1040, [
|
|
118
|
+
"id",
|
|
119
|
+
"required",
|
|
120
|
+
"min-length",
|
|
121
|
+
"max-length",
|
|
122
|
+
"name",
|
|
123
|
+
"label",
|
|
124
|
+
"error-messages",
|
|
125
|
+
"error",
|
|
126
|
+
"model-value"
|
|
127
|
+
])) : o("", !0),
|
|
128
|
+
l.inputProps.type === "number" ? (p(), a(b, d({
|
|
129
|
+
key: 3,
|
|
130
|
+
id: l.inputProps.id,
|
|
131
|
+
required: l.inputProps.required,
|
|
132
|
+
role: "spinbutton",
|
|
133
|
+
"aria-valuemin": typeof l.inputProps.min == "number" ? l.inputProps.min : void 0,
|
|
134
|
+
"aria-valuemax": typeof l.inputProps.max == "number" ? l.inputProps.max : void 0,
|
|
135
|
+
"aria-valuenow": typeof l.state.value == "number" ? l.state.value : void 0,
|
|
136
|
+
name: l.field.name,
|
|
137
|
+
label: l.inputProps.label,
|
|
138
|
+
"error-messages": l.inputProps.errorMessages,
|
|
139
|
+
error: l.inputProps.error,
|
|
140
|
+
precision: null,
|
|
141
|
+
"control-variant": "stacked"
|
|
142
|
+
}, t.$attrs, {
|
|
143
|
+
"model-value": l.state.value,
|
|
144
|
+
onBeforeinputCapture: D,
|
|
145
|
+
"onUpdate:modelValue": n[3] ||= (e) => l.field.handleChange(e ?? void 0)
|
|
146
|
+
}), c({ _: 2 }, [t.$slots.label ? {
|
|
147
|
+
name: "label",
|
|
148
|
+
fn: x(() => [h(t.$slots, "label", f(u({
|
|
149
|
+
required: l.inputProps.required,
|
|
150
|
+
id: l.inputProps.id,
|
|
151
|
+
label: l.inputProps.label
|
|
152
|
+
})))]),
|
|
153
|
+
key: "0"
|
|
154
|
+
} : void 0]), 1040, [
|
|
155
|
+
"id",
|
|
156
|
+
"required",
|
|
157
|
+
"aria-valuemin",
|
|
158
|
+
"aria-valuemax",
|
|
159
|
+
"aria-valuenow",
|
|
160
|
+
"name",
|
|
161
|
+
"label",
|
|
162
|
+
"error-messages",
|
|
163
|
+
"error",
|
|
164
|
+
"model-value"
|
|
165
|
+
])) : o("", !0),
|
|
166
|
+
l.inputProps.type === "range" ? (p(), a(S, d({
|
|
167
|
+
key: 4,
|
|
168
|
+
id: l.inputProps.id,
|
|
169
|
+
required: l.inputProps.required,
|
|
170
|
+
min: typeof l.inputProps.min == "number" ? l.inputProps.min : void 0,
|
|
171
|
+
max: typeof l.inputProps.max == "number" ? l.inputProps.max : void 0,
|
|
172
|
+
name: l.field.name,
|
|
173
|
+
label: l.inputProps.label,
|
|
174
|
+
"error-messages": l.inputProps.errorMessages,
|
|
175
|
+
error: l.inputProps.error
|
|
176
|
+
}, t.$attrs, {
|
|
177
|
+
"model-value": l.state.value,
|
|
178
|
+
"onUpdate:modelValue": n[4] ||= (e) => {
|
|
179
|
+
e || e === 0 ? l.field.handleChange(Number(e)) : l.field.handleChange(void 0);
|
|
180
|
+
}
|
|
181
|
+
}), c({ _: 2 }, [t.$slots.label ? {
|
|
182
|
+
name: "label",
|
|
183
|
+
fn: x(() => [h(t.$slots, "label", f(u({
|
|
184
|
+
required: l.inputProps.required,
|
|
185
|
+
id: l.inputProps.id,
|
|
186
|
+
label: l.inputProps.label
|
|
187
|
+
})))]),
|
|
188
|
+
key: "0"
|
|
189
|
+
} : void 0]), 1040, [
|
|
190
|
+
"id",
|
|
191
|
+
"required",
|
|
192
|
+
"min",
|
|
193
|
+
"max",
|
|
194
|
+
"name",
|
|
195
|
+
"label",
|
|
196
|
+
"error-messages",
|
|
197
|
+
"error",
|
|
198
|
+
"model-value"
|
|
199
|
+
])) : o("", !0),
|
|
200
|
+
l.inputProps.type === "radio" ? (p(), a(w, d({
|
|
201
|
+
key: 5,
|
|
202
|
+
id: l.inputProps.id,
|
|
203
|
+
name: l.field.name,
|
|
204
|
+
label: l.inputProps.label,
|
|
205
|
+
"error-messages": l.inputProps.errorMessages,
|
|
206
|
+
error: l.inputProps.error
|
|
207
|
+
}, t.$attrs, {
|
|
208
|
+
"model-value": l.state.value,
|
|
209
|
+
"onUpdate:modelValue": n[5] ||= (e) => l.field.handleChange(e)
|
|
210
|
+
}), c({
|
|
211
|
+
default: x(() => [(p(!0), s(r, null, m(l.inputProps.options, (e) => (p(), a(C, {
|
|
212
|
+
key: e.value,
|
|
213
|
+
label: e.title,
|
|
214
|
+
value: e.value
|
|
215
|
+
}, null, 8, ["label", "value"]))), 128))]),
|
|
216
|
+
_: 2
|
|
217
|
+
}, [t.$slots.label ? {
|
|
218
|
+
name: "label",
|
|
219
|
+
fn: x(() => [h(t.$slots, "label", f(u({
|
|
220
|
+
required: l.inputProps.required,
|
|
221
|
+
id: l.inputProps.id,
|
|
222
|
+
label: l.inputProps.label
|
|
223
|
+
})))]),
|
|
224
|
+
key: "0"
|
|
225
|
+
} : void 0]), 1040, [
|
|
226
|
+
"id",
|
|
227
|
+
"name",
|
|
228
|
+
"label",
|
|
229
|
+
"error-messages",
|
|
230
|
+
"error",
|
|
231
|
+
"model-value"
|
|
232
|
+
])) : o("", !0),
|
|
233
|
+
l.inputProps.type === "select" || l.inputProps.type === "multiple" ? (p(), a(T, d({
|
|
234
|
+
key: 6,
|
|
235
|
+
id: l.inputProps.id,
|
|
236
|
+
clearable: l.inputProps.type === "select",
|
|
237
|
+
required: l.inputProps.required,
|
|
238
|
+
multiple: l.inputProps.type === "multiple",
|
|
239
|
+
chips: l.inputProps.type === "multiple",
|
|
240
|
+
name: l.field.name,
|
|
241
|
+
label: l.inputProps.label,
|
|
242
|
+
items: l.inputProps.options,
|
|
243
|
+
"error-messages": l.inputProps.errorMessages,
|
|
244
|
+
error: l.inputProps.error
|
|
245
|
+
}, t.$attrs, {
|
|
246
|
+
"model-value": l.state.value,
|
|
247
|
+
onClear: n[6] ||= (e) => l.field.handleChange(void 0),
|
|
248
|
+
"onUpdate:modelValue": l.field.handleChange
|
|
249
|
+
}), c({ _: 2 }, [t.$slots.label ? {
|
|
250
|
+
name: "label",
|
|
251
|
+
fn: x(() => [h(t.$slots, "label", f(u({
|
|
252
|
+
required: l.inputProps.required,
|
|
253
|
+
id: l.inputProps.id,
|
|
254
|
+
label: l.inputProps.label
|
|
255
|
+
})))]),
|
|
256
|
+
key: "0"
|
|
257
|
+
} : void 0]), 1040, [
|
|
258
|
+
"id",
|
|
259
|
+
"clearable",
|
|
260
|
+
"required",
|
|
261
|
+
"multiple",
|
|
262
|
+
"chips",
|
|
263
|
+
"name",
|
|
264
|
+
"label",
|
|
265
|
+
"items",
|
|
266
|
+
"error-messages",
|
|
267
|
+
"error",
|
|
268
|
+
"model-value",
|
|
269
|
+
"onUpdate:modelValue"
|
|
270
|
+
])) : o("", !0),
|
|
271
|
+
l.inputProps.type === "autocomplete" || l.inputProps.type === "autocompletemultiple" ? (p(), a(E, d({
|
|
272
|
+
key: 7,
|
|
273
|
+
id: l.inputProps.id,
|
|
274
|
+
clearable: l.inputProps.type === "autocomplete",
|
|
275
|
+
multiple: l.inputProps.type === "autocompletemultiple",
|
|
276
|
+
required: l.inputProps.required,
|
|
277
|
+
name: l.field.name,
|
|
278
|
+
label: l.inputProps.label,
|
|
279
|
+
items: l.inputProps.options,
|
|
280
|
+
"error-messages": l.inputProps.errorMessages,
|
|
281
|
+
error: l.inputProps.error,
|
|
282
|
+
chips: l.inputProps.type === "autocompletemultiple"
|
|
283
|
+
}, t.$attrs, {
|
|
284
|
+
"model-value": l.state.value,
|
|
285
|
+
onClear: n[7] ||= (e) => l.field.handleChange(void 0),
|
|
286
|
+
"onUpdate:modelValue": l.field.handleChange
|
|
287
|
+
}), c({ _: 2 }, [t.$slots.label ? {
|
|
288
|
+
name: "label",
|
|
289
|
+
fn: x(() => [h(t.$slots, "label", f(u({
|
|
290
|
+
required: l.inputProps.required,
|
|
291
|
+
id: l.inputProps.id,
|
|
292
|
+
label: l.inputProps.label
|
|
293
|
+
})))]),
|
|
294
|
+
key: "0"
|
|
295
|
+
} : void 0]), 1040, [
|
|
296
|
+
"id",
|
|
297
|
+
"clearable",
|
|
298
|
+
"multiple",
|
|
299
|
+
"required",
|
|
300
|
+
"name",
|
|
301
|
+
"label",
|
|
302
|
+
"items",
|
|
303
|
+
"error-messages",
|
|
304
|
+
"error",
|
|
305
|
+
"chips",
|
|
306
|
+
"model-value",
|
|
307
|
+
"onUpdate:modelValue"
|
|
308
|
+
])) : o("", !0),
|
|
309
|
+
O.value ? (p(), a(i, d({
|
|
310
|
+
key: 8,
|
|
311
|
+
id: l.inputProps.id,
|
|
312
|
+
required: l.inputProps.required,
|
|
313
|
+
type: v(e)(l.inputProps.type),
|
|
314
|
+
name: l.field.name,
|
|
315
|
+
label: l.inputProps.label,
|
|
316
|
+
"error-messages": l.inputProps.errorMessages,
|
|
317
|
+
error: l.inputProps.error
|
|
318
|
+
}, t.$attrs, {
|
|
319
|
+
"model-value": l.state.value,
|
|
320
|
+
"onUpdate:modelValue": n[8] ||= (e) => l.field.handleChange(e)
|
|
321
|
+
}), c({ _: 2 }, [t.$slots.label ? {
|
|
322
|
+
name: "label",
|
|
323
|
+
fn: x(() => [h(t.$slots, "label", f(u({
|
|
324
|
+
required: l.inputProps.required,
|
|
325
|
+
id: l.inputProps.id,
|
|
326
|
+
label: l.inputProps.label
|
|
327
|
+
})))]),
|
|
328
|
+
key: "0"
|
|
329
|
+
} : void 0]), 1040, [
|
|
330
|
+
"id",
|
|
331
|
+
"required",
|
|
332
|
+
"type",
|
|
333
|
+
"name",
|
|
334
|
+
"label",
|
|
335
|
+
"error-messages",
|
|
336
|
+
"error",
|
|
337
|
+
"model-value"
|
|
338
|
+
])) : o("", !0)
|
|
339
|
+
], 32);
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
});
|
|
343
|
+
//#endregion
|
|
344
|
+
export { C as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);if(e.appendChild(document.createTextNode(`.omega-input .v-input__details:has(.v-messages:empty){grid-template-rows:0fr;transition:all .2s}.omega-input .v-messages:empty{min-height:0}.omega-input .v-input__details:has(.v-messages){grid-template-rows:1fr;min-height:0;transition:all .2s;display:grid;overflow:hidden}.omega-input .v-messages{transition:all .2s}.omega-input .v-messages>*{transition-duration:0s!important}.omega-input [role=alert]:has(.v-messages:empty){padding:0}.omega-input .v-btn{cursor:pointer;appearance:none;width:auto;box-shadow:none;min-width:auto;height:auto;padding:.5em .5em .5em 1em;display: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(`.omega-input .v-input__details:has(.v-messages:empty){grid-template-rows:0fr;transition:all .2s}.omega-input .v-messages:empty{min-height:0}.omega-input .v-input__details:has(.v-messages){grid-template-rows:1fr;min-height:0;transition:all .2s;display:grid;overflow:hidden}.omega-input .v-messages{transition:all .2s}.omega-input .v-messages>*{transition-duration:0s!important}.omega-input [role=alert]:has(.v-messages:empty){padding:0}.omega-input .v-btn{cursor:pointer;appearance:none;width:auto;box-shadow:none;min-width:auto;height:auto;padding:.5em .5em .5em 1em;display: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(`.omega-input .v-input__details:has(.v-messages:empty){grid-template-rows:0fr;transition:all .2s}.omega-input .v-messages:empty{min-height:0}.omega-input .v-input__details:has(.v-messages){grid-template-rows:1fr;min-height:0;transition:all .2s;display:grid;overflow:hidden}.omega-input .v-messages{transition:all .2s}.omega-input .v-messages>*{transition-duration:0s!important}.omega-input [role=alert]:has(.v-messages:empty){padding:0}.omega-input .v-btn{cursor:pointer;appearance:none;width:auto;box-shadow:none;min-width:auto;height:auto;padding:.5em .5em .5em 1em;display: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(`.omega-input .v-input__details:has(.v-messages:empty){grid-template-rows:0fr;transition:all .2s}.omega-input .v-messages:empty{min-height:0}.omega-input .v-input__details:has(.v-messages){grid-template-rows:1fr;min-height:0;transition:all .2s;display:grid;overflow:hidden}.omega-input .v-messages{transition:all .2s}.omega-input .v-messages>*{transition-duration:0s!important}.omega-input [role=alert]:has(.v-messages:empty){padding:0}.omega-input .v-btn{cursor:pointer;appearance:none;width:auto;box-shadow:none;min-width:auto;height:auto;padding:.5em .5em .5em 1em;display: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-components34.es.js";
|
|
4
|
+
|
|
5
|
+
//#region src/components/OmegaForm/OmegaInputVuetify.vue
|
|
6
|
+
var t = e;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { t as default };
|