@effect-app/vue-components 4.0.0-beta.297 → 4.0.0-beta.299
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/FixedNuxtErrorBoundary.vue.d.ts +39 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/vue-components.es.js +19 -18
- package/dist/vue-components11.es.js +55 -19
- package/dist/vue-components12.es.js +4 -48
- package/dist/vue-components13.es.js +19 -127
- package/dist/vue-components14.es.js +46 -62
- package/dist/vue-components15.es.js +115 -101
- package/dist/vue-components16.es.js +63 -20
- package/dist/vue-components17.es.js +113 -4
- package/dist/vue-components18.es.js +20 -78
- package/dist/vue-components19.es.js +4 -92
- package/dist/vue-components20.es.js +75 -68
- package/dist/vue-components21.es.js +91 -10
- package/dist/vue-components22.es.js +72 -56
- package/dist/vue-components23.es.js +11 -4
- package/dist/vue-components24.es.js +49 -36
- package/dist/vue-components25.es.js +1 -1
- package/dist/vue-components26.es.js +39 -79
- package/dist/vue-components27.es.js +5 -0
- package/dist/vue-components28.es.js +83 -7
- package/dist/vue-components30.es.js +7 -23
- package/dist/vue-components31.es.js +8 -299
- package/dist/vue-components32.es.js +24 -0
- package/dist/vue-components33.es.js +299 -7
- package/dist/vue-components35.es.js +5 -2
- package/dist/vue-components36.es.js +61 -52
- package/dist/vue-components37.es.js +1 -1
- package/dist/vue-components38.es.js +58 -18
- package/dist/vue-components39.es.js +1 -1
- package/dist/vue-components40.es.js +18 -53
- package/dist/vue-components41.es.js +1 -1
- package/dist/vue-components42.es.js +58 -11
- package/dist/vue-components43.es.js +4 -21
- package/dist/vue-components44.es.js +12 -0
- package/dist/vue-components45.es.js +21 -8
- package/dist/vue-components47.es.js +8 -37
- package/dist/vue-components48.es.js +3 -26
- package/dist/vue-components49.es.js +34 -24
- package/dist/vue-components50.es.js +26 -6
- package/dist/vue-components51.es.js +25 -15
- package/dist/vue-components52.es.js +6 -35
- package/dist/vue-components53.es.js +16 -16
- package/dist/vue-components54.es.js +32 -17
- package/dist/vue-components55.es.js +16 -28
- package/dist/vue-components56.es.js +20 -6
- package/dist/vue-components57.es.js +28 -7
- package/dist/vue-components58.es.js +6 -37
- package/dist/vue-components59.es.js +8 -24
- package/dist/vue-components60.es.js +37 -127
- package/dist/vue-components61.es.js +22 -21
- package/dist/vue-components62.es.js +127 -20
- package/dist/vue-components63.es.js +21 -6
- package/dist/vue-components64.es.js +15 -13
- package/dist/vue-components65.es.js +8 -4
- package/dist/vue-components66.es.js +13 -23
- package/dist/vue-components67.es.js +3 -3
- package/dist/vue-components68.es.js +27 -41
- package/dist/vue-components69.es.js +4 -100
- package/dist/vue-components70.es.js +39 -32
- package/dist/vue-components71.es.js +100 -18
- package/dist/vue-components72.es.js +35 -47
- package/dist/vue-components73.es.js +19 -0
- package/dist/vue-components74.es.js +50 -0
- package/package.json +9 -3
- package/src/components/FixedNuxtErrorBoundary.vue +112 -0
- package/src/components/index.ts +1 -0
- package/dist/vue-components29.es.js +0 -9
- package/dist/vue-components34.es.js +0 -73
- package/dist/vue-components46.es.js +0 -4
|
@@ -1,8 +1,84 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
+
});
|
|
7
83
|
//#endregion
|
|
8
|
-
export {
|
|
84
|
+
export { O as default };
|
|
@@ -1,24 +1,8 @@
|
|
|
1
|
-
//#region
|
|
2
|
-
var e =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
];
|
|
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;
|
|
6
|
+
};
|
|
23
7
|
//#endregion
|
|
24
|
-
export { e as
|
|
8
|
+
export { e as default };
|
|
@@ -1,300 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
props: {
|
|
9
|
-
inputProps: {},
|
|
10
|
-
field: {},
|
|
11
|
-
state: {}
|
|
12
|
-
},
|
|
13
|
-
emits: ["focus", "blur"],
|
|
14
|
-
setup(c) {
|
|
15
|
-
let b = c, x = r(() => !t.includes(b.inputProps.type));
|
|
16
|
-
return v(() => {
|
|
17
|
-
x.value && console.warn(`[OmegaForm] Unhandled input type "${b.inputProps.type}", falling back to a text input.`);
|
|
18
|
-
}), (t, r) => {
|
|
19
|
-
let v = h("v-text-field"), b = h("v-textarea"), S = h("v-radio"), C = h("v-radio-group"), w = h("v-select"), T = h("v-autocomplete");
|
|
20
|
-
return f(), o("div", {
|
|
21
|
-
class: "omega-input",
|
|
22
|
-
onFocusout: r[8] ||= (e) => {
|
|
23
|
-
t.$emit("blur", e), c.field.handleBlur();
|
|
24
|
-
},
|
|
25
|
-
onFocusin: r[9] ||= (e) => t.$emit("focus", e)
|
|
26
|
-
}, [
|
|
27
|
-
c.inputProps.type === "boolean" || c.inputProps.type === "switch" ? (f(), i(g(c.inputProps.type === "boolean" ? "v-checkbox" : "v-switch"), u({
|
|
28
|
-
key: 0,
|
|
29
|
-
id: c.inputProps.id,
|
|
30
|
-
name: c.field.name,
|
|
31
|
-
label: c.inputProps.label,
|
|
32
|
-
"error-messages": c.inputProps.errorMessages,
|
|
33
|
-
error: c.inputProps.error,
|
|
34
|
-
ripple: ""
|
|
35
|
-
}, t.$attrs, {
|
|
36
|
-
"model-value": c.state.value,
|
|
37
|
-
onChange: r[0] ||= (e) => c.field.handleChange(e.target.checked)
|
|
38
|
-
}), s({ _: 2 }, [t.$slots.label ? {
|
|
39
|
-
name: "label",
|
|
40
|
-
fn: y(() => [m(t.$slots, "label", d(l({
|
|
41
|
-
required: c.inputProps.required,
|
|
42
|
-
id: c.inputProps.id,
|
|
43
|
-
label: c.inputProps.label
|
|
44
|
-
})))]),
|
|
45
|
-
key: "0"
|
|
46
|
-
} : void 0]), 1040, [
|
|
47
|
-
"id",
|
|
48
|
-
"name",
|
|
49
|
-
"label",
|
|
50
|
-
"error-messages",
|
|
51
|
-
"error",
|
|
52
|
-
"model-value"
|
|
53
|
-
])) : a("", !0),
|
|
54
|
-
c.inputProps.type === "email" || c.inputProps.type === "string" || c.inputProps.type === "password" || c.inputProps.type === "date" || c.inputProps.type === "tel" || c.inputProps.type === "url" || c.inputProps.type === "color" || c.inputProps.type === "time" || c.inputProps.type === "search" ? (f(), i(v, u({
|
|
55
|
-
key: 1,
|
|
56
|
-
id: c.inputProps.id,
|
|
57
|
-
required: c.inputProps.required,
|
|
58
|
-
"min-length": c.inputProps.minLength,
|
|
59
|
-
"max-length": c.inputProps.maxLength,
|
|
60
|
-
type: _(e)(c.inputProps.type),
|
|
61
|
-
name: c.field.name,
|
|
62
|
-
label: c.inputProps.label,
|
|
63
|
-
"error-messages": c.inputProps.errorMessages,
|
|
64
|
-
error: c.inputProps.error
|
|
65
|
-
}, t.$attrs, {
|
|
66
|
-
"model-value": c.state.value,
|
|
67
|
-
"onUpdate:modelValue": r[1] ||= (e) => c.field.handleChange(e)
|
|
68
|
-
}), s({ _: 2 }, [t.$slots.label ? {
|
|
69
|
-
name: "label",
|
|
70
|
-
fn: y(() => [m(t.$slots, "label", d(l({
|
|
71
|
-
required: c.inputProps.required,
|
|
72
|
-
id: c.inputProps.id,
|
|
73
|
-
label: c.inputProps.label
|
|
74
|
-
})))]),
|
|
75
|
-
key: "0"
|
|
76
|
-
} : void 0]), 1040, [
|
|
77
|
-
"id",
|
|
78
|
-
"required",
|
|
79
|
-
"min-length",
|
|
80
|
-
"max-length",
|
|
81
|
-
"type",
|
|
82
|
-
"name",
|
|
83
|
-
"label",
|
|
84
|
-
"error-messages",
|
|
85
|
-
"error",
|
|
86
|
-
"model-value"
|
|
87
|
-
])) : a("", !0),
|
|
88
|
-
c.inputProps.type === "text" ? (f(), i(b, u({
|
|
89
|
-
key: 2,
|
|
90
|
-
id: c.inputProps.id,
|
|
91
|
-
required: c.inputProps.required,
|
|
92
|
-
"min-length": c.inputProps.minLength,
|
|
93
|
-
"max-length": c.inputProps.maxLength,
|
|
94
|
-
name: c.field.name,
|
|
95
|
-
label: c.inputProps.label,
|
|
96
|
-
"error-messages": c.inputProps.errorMessages,
|
|
97
|
-
error: c.inputProps.error
|
|
98
|
-
}, t.$attrs, {
|
|
99
|
-
"model-value": c.state.value,
|
|
100
|
-
"onUpdate:modelValue": r[2] ||= (e) => c.field.handleChange(e)
|
|
101
|
-
}), s({ _: 2 }, [t.$slots.label ? {
|
|
102
|
-
name: "label",
|
|
103
|
-
fn: y(() => [m(t.$slots, "label", d(l({
|
|
104
|
-
required: c.inputProps.required,
|
|
105
|
-
id: c.inputProps.id,
|
|
106
|
-
label: c.inputProps.label
|
|
107
|
-
})))]),
|
|
108
|
-
key: "0"
|
|
109
|
-
} : void 0]), 1040, [
|
|
110
|
-
"id",
|
|
111
|
-
"required",
|
|
112
|
-
"min-length",
|
|
113
|
-
"max-length",
|
|
114
|
-
"name",
|
|
115
|
-
"label",
|
|
116
|
-
"error-messages",
|
|
117
|
-
"error",
|
|
118
|
-
"model-value"
|
|
119
|
-
])) : a("", !0),
|
|
120
|
-
c.inputProps.type === "number" || c.inputProps.type === "range" ? (f(), i(g(c.inputProps.type === "range" ? "v-slider" : "v-text-field"), u({
|
|
121
|
-
key: 3,
|
|
122
|
-
id: c.inputProps.id,
|
|
123
|
-
required: c.inputProps.required,
|
|
124
|
-
min: c.inputProps.min,
|
|
125
|
-
max: c.inputProps.max,
|
|
126
|
-
type: c.inputProps.type,
|
|
127
|
-
name: c.field.name,
|
|
128
|
-
label: c.inputProps.label,
|
|
129
|
-
"error-messages": c.inputProps.errorMessages,
|
|
130
|
-
error: c.inputProps.error
|
|
131
|
-
}, t.$attrs, {
|
|
132
|
-
"model-value": c.state.value,
|
|
133
|
-
"onUpdate:modelValue": r[3] ||= (e) => {
|
|
134
|
-
e || e === 0 ? c.field.handleChange(Number(e)) : c.field.handleChange(void 0);
|
|
135
|
-
}
|
|
136
|
-
}), s({ _: 2 }, [t.$slots.label ? {
|
|
137
|
-
name: "label",
|
|
138
|
-
fn: y(() => [m(t.$slots, "label", d(l({
|
|
139
|
-
required: c.inputProps.required,
|
|
140
|
-
id: c.inputProps.id,
|
|
141
|
-
label: c.inputProps.label
|
|
142
|
-
})))]),
|
|
143
|
-
key: "0"
|
|
144
|
-
} : void 0]), 1040, [
|
|
145
|
-
"id",
|
|
146
|
-
"required",
|
|
147
|
-
"min",
|
|
148
|
-
"max",
|
|
149
|
-
"type",
|
|
150
|
-
"name",
|
|
151
|
-
"label",
|
|
152
|
-
"error-messages",
|
|
153
|
-
"error",
|
|
154
|
-
"model-value"
|
|
155
|
-
])) : a("", !0),
|
|
156
|
-
c.inputProps.type === "radio" ? (f(), i(C, u({
|
|
157
|
-
key: 4,
|
|
158
|
-
id: c.inputProps.id,
|
|
159
|
-
name: c.field.name,
|
|
160
|
-
label: c.inputProps.label,
|
|
161
|
-
"error-messages": c.inputProps.errorMessages,
|
|
162
|
-
error: c.inputProps.error
|
|
163
|
-
}, t.$attrs, {
|
|
164
|
-
"model-value": c.state.value,
|
|
165
|
-
"onUpdate:modelValue": r[4] ||= (e) => c.field.handleChange(e)
|
|
166
|
-
}), s({
|
|
167
|
-
default: y(() => [(f(!0), o(n, null, p(c.inputProps.options, (e) => (f(), i(S, {
|
|
168
|
-
key: e.value,
|
|
169
|
-
label: e.title,
|
|
170
|
-
value: e.value
|
|
171
|
-
}, null, 8, ["label", "value"]))), 128))]),
|
|
172
|
-
_: 2
|
|
173
|
-
}, [t.$slots.label ? {
|
|
174
|
-
name: "label",
|
|
175
|
-
fn: y(() => [m(t.$slots, "label", d(l({
|
|
176
|
-
required: c.inputProps.required,
|
|
177
|
-
id: c.inputProps.id,
|
|
178
|
-
label: c.inputProps.label
|
|
179
|
-
})))]),
|
|
180
|
-
key: "0"
|
|
181
|
-
} : void 0]), 1040, [
|
|
182
|
-
"id",
|
|
183
|
-
"name",
|
|
184
|
-
"label",
|
|
185
|
-
"error-messages",
|
|
186
|
-
"error",
|
|
187
|
-
"model-value"
|
|
188
|
-
])) : a("", !0),
|
|
189
|
-
c.inputProps.type === "select" || c.inputProps.type === "multiple" ? (f(), i(w, u({
|
|
190
|
-
key: 5,
|
|
191
|
-
id: c.inputProps.id,
|
|
192
|
-
clearable: c.inputProps.type === "select",
|
|
193
|
-
required: c.inputProps.required,
|
|
194
|
-
multiple: c.inputProps.type === "multiple",
|
|
195
|
-
chips: c.inputProps.type === "multiple",
|
|
196
|
-
name: c.field.name,
|
|
197
|
-
label: c.inputProps.label,
|
|
198
|
-
items: c.inputProps.options,
|
|
199
|
-
"error-messages": c.inputProps.errorMessages,
|
|
200
|
-
error: c.inputProps.error
|
|
201
|
-
}, t.$attrs, {
|
|
202
|
-
"model-value": c.state.value,
|
|
203
|
-
onClear: r[5] ||= (e) => c.field.handleChange(void 0),
|
|
204
|
-
"onUpdate:modelValue": c.field.handleChange
|
|
205
|
-
}), s({ _: 2 }, [t.$slots.label ? {
|
|
206
|
-
name: "label",
|
|
207
|
-
fn: y(() => [m(t.$slots, "label", d(l({
|
|
208
|
-
required: c.inputProps.required,
|
|
209
|
-
id: c.inputProps.id,
|
|
210
|
-
label: c.inputProps.label
|
|
211
|
-
})))]),
|
|
212
|
-
key: "0"
|
|
213
|
-
} : void 0]), 1040, [
|
|
214
|
-
"id",
|
|
215
|
-
"clearable",
|
|
216
|
-
"required",
|
|
217
|
-
"multiple",
|
|
218
|
-
"chips",
|
|
219
|
-
"name",
|
|
220
|
-
"label",
|
|
221
|
-
"items",
|
|
222
|
-
"error-messages",
|
|
223
|
-
"error",
|
|
224
|
-
"model-value",
|
|
225
|
-
"onUpdate:modelValue"
|
|
226
|
-
])) : a("", !0),
|
|
227
|
-
c.inputProps.type === "autocomplete" || c.inputProps.type === "autocompletemultiple" ? (f(), i(T, u({
|
|
228
|
-
key: 6,
|
|
229
|
-
id: c.inputProps.id,
|
|
230
|
-
clearable: c.inputProps.type === "autocomplete",
|
|
231
|
-
multiple: c.inputProps.type === "autocompletemultiple",
|
|
232
|
-
required: c.inputProps.required,
|
|
233
|
-
name: c.field.name,
|
|
234
|
-
label: c.inputProps.label,
|
|
235
|
-
items: c.inputProps.options,
|
|
236
|
-
"error-messages": c.inputProps.errorMessages,
|
|
237
|
-
error: c.inputProps.error,
|
|
238
|
-
chips: c.inputProps.type === "autocompletemultiple"
|
|
239
|
-
}, t.$attrs, {
|
|
240
|
-
"model-value": c.state.value,
|
|
241
|
-
onClear: r[6] ||= (e) => c.field.handleChange(void 0),
|
|
242
|
-
"onUpdate:modelValue": c.field.handleChange
|
|
243
|
-
}), s({ _: 2 }, [t.$slots.label ? {
|
|
244
|
-
name: "label",
|
|
245
|
-
fn: y(() => [m(t.$slots, "label", d(l({
|
|
246
|
-
required: c.inputProps.required,
|
|
247
|
-
id: c.inputProps.id,
|
|
248
|
-
label: c.inputProps.label
|
|
249
|
-
})))]),
|
|
250
|
-
key: "0"
|
|
251
|
-
} : void 0]), 1040, [
|
|
252
|
-
"id",
|
|
253
|
-
"clearable",
|
|
254
|
-
"multiple",
|
|
255
|
-
"required",
|
|
256
|
-
"name",
|
|
257
|
-
"label",
|
|
258
|
-
"items",
|
|
259
|
-
"error-messages",
|
|
260
|
-
"error",
|
|
261
|
-
"chips",
|
|
262
|
-
"model-value",
|
|
263
|
-
"onUpdate:modelValue"
|
|
264
|
-
])) : a("", !0),
|
|
265
|
-
x.value ? (f(), i(v, u({
|
|
266
|
-
key: 7,
|
|
267
|
-
id: c.inputProps.id,
|
|
268
|
-
required: c.inputProps.required,
|
|
269
|
-
type: _(e)(c.inputProps.type),
|
|
270
|
-
name: c.field.name,
|
|
271
|
-
label: c.inputProps.label,
|
|
272
|
-
"error-messages": c.inputProps.errorMessages,
|
|
273
|
-
error: c.inputProps.error
|
|
274
|
-
}, t.$attrs, {
|
|
275
|
-
"model-value": c.state.value,
|
|
276
|
-
"onUpdate:modelValue": r[7] ||= (e) => c.field.handleChange(e)
|
|
277
|
-
}), s({ _: 2 }, [t.$slots.label ? {
|
|
278
|
-
name: "label",
|
|
279
|
-
fn: y(() => [m(t.$slots, "label", d(l({
|
|
280
|
-
required: c.inputProps.required,
|
|
281
|
-
id: c.inputProps.id,
|
|
282
|
-
label: c.inputProps.label
|
|
283
|
-
})))]),
|
|
284
|
-
key: "0"
|
|
285
|
-
} : void 0]), 1040, [
|
|
286
|
-
"id",
|
|
287
|
-
"required",
|
|
288
|
-
"type",
|
|
289
|
-
"name",
|
|
290
|
-
"label",
|
|
291
|
-
"error-messages",
|
|
292
|
-
"error",
|
|
293
|
-
"model-value"
|
|
294
|
-
])) : a("", !0)
|
|
295
|
-
], 32);
|
|
296
|
-
};
|
|
297
|
-
}
|
|
298
|
-
});
|
|
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-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-5278f8d3"]]);
|
|
299
8
|
//#endregion
|
|
300
|
-
export {
|
|
9
|
+
export { n as default };
|
|
@@ -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 };
|