@effect-app/vue-components 1.0.0-next.9 → 1.0.0

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.
Files changed (53) hide show
  1. package/dist/types/components/OmegaForm/OmegaFormStuff.d.ts +1 -1
  2. package/dist/types/components/OmegaForm/index.d.ts +1 -0
  3. package/dist/types/components/OmegaForm/useOmegaForm.d.ts +26 -13
  4. package/dist/vue-components.es.js +21 -19
  5. package/dist/vue-components.es10.js +10 -5
  6. package/dist/vue-components.es11.js +5 -54
  7. package/dist/vue-components.es12.js +49 -66
  8. package/dist/vue-components.es13.js +71 -6
  9. package/dist/vue-components.es14.js +5 -5
  10. package/dist/vue-components.es15.js +6 -3
  11. package/dist/vue-components.es16.js +3 -3
  12. package/dist/vue-components.es17.js +3 -89
  13. package/dist/vue-components.es18.js +2 -42
  14. package/dist/vue-components.es19.js +135 -2
  15. package/dist/vue-components.es2.js +10 -8
  16. package/dist/vue-components.es21.js +41 -89
  17. package/dist/vue-components.es23.js +2 -7
  18. package/dist/vue-components.es24.js +86 -27
  19. package/dist/vue-components.es26.js +7 -2
  20. package/dist/vue-components.es27.js +31 -23
  21. package/dist/vue-components.es29.js +4 -21
  22. package/dist/vue-components.es30.js +20 -27
  23. package/dist/vue-components.es31.js +5 -22
  24. package/dist/vue-components.es32.js +15 -6
  25. package/dist/vue-components.es33.js +30 -5
  26. package/dist/vue-components.es34.js +22 -19
  27. package/dist/vue-components.es35.js +12 -9
  28. package/dist/vue-components.es36.js +5 -31
  29. package/dist/vue-components.es37.js +19 -48
  30. package/dist/vue-components.es38.js +9 -26
  31. package/dist/vue-components.es39.js +31 -115
  32. package/dist/vue-components.es4.js +80 -42
  33. package/dist/vue-components.es40.js +50 -0
  34. package/dist/vue-components.es41.js +26 -11
  35. package/dist/vue-components.es42.js +11 -65
  36. package/dist/vue-components.es43.js +54 -45
  37. package/dist/vue-components.es44.js +54 -15
  38. package/dist/vue-components.es45.js +15 -31
  39. package/dist/vue-components.es46.js +30 -26
  40. package/dist/vue-components.es47.js +29 -42
  41. package/dist/vue-components.es48.js +42 -4
  42. package/dist/vue-components.es5.js +51 -29
  43. package/dist/vue-components.es6.js +27 -207
  44. package/dist/vue-components.es7.js +202 -343
  45. package/dist/vue-components.es8.js +350 -2
  46. package/dist/vue-components.es9.js +2 -10
  47. package/package.json +3 -3
  48. package/src/components/OmegaForm/OmegaFormStuff.ts +1 -0
  49. package/src/components/OmegaForm/OmegaInputVuetify.vue +19 -0
  50. package/src/components/OmegaForm/index.ts +2 -0
  51. package/src/components/OmegaForm/useOmegaForm.ts +287 -29
  52. package/dist/vue-components.es28.js +0 -7
  53. /package/dist/{vue-components.es20.js → vue-components.es22.js} +0 -0
@@ -1,44 +1,4 @@
1
- const f = (c) => typeof c == "function", a = function(c, r) {
2
- switch (c) {
3
- case 0:
4
- case 1:
5
- throw new RangeError(`Invalid arity ${c}`);
6
- case 2:
7
- return function(n, t) {
8
- return arguments.length >= 2 ? r(n, t) : function(e) {
9
- return r(e, n);
10
- };
11
- };
12
- case 3:
13
- return function(n, t, e) {
14
- return arguments.length >= 3 ? r(n, t, e) : function(u) {
15
- return r(u, n, t);
16
- };
17
- };
18
- case 4:
19
- return function(n, t, e, u) {
20
- return arguments.length >= 4 ? r(n, t, e, u) : function(i) {
21
- return r(i, n, t, e);
22
- };
23
- };
24
- case 5:
25
- return function(n, t, e, u, i) {
26
- return arguments.length >= 5 ? r(n, t, e, u, i) : function(s) {
27
- return r(s, n, t, e, u);
28
- };
29
- };
30
- default:
31
- return function() {
32
- if (arguments.length >= c)
33
- return r.apply(this, arguments);
34
- const n = arguments;
35
- return function(t) {
36
- return r(t, ...n);
37
- };
38
- };
39
- }
40
- };
1
+ import f from "./vue-components.es4.js";
41
2
  export {
42
- a as dual,
43
- f as isFunction
3
+ f as default
44
4
  };
@@ -1,4 +1,137 @@
1
- import f from "./vue-components.es11.js";
1
+ import { defineComponent as y, resolveComponent as s, createElementBlock as u, openBlock as o, createBlock as n, createCommentVNode as l, resolveDynamicComponent as a, mergeProps as i, unref as b, withCtx as f, Fragment as h, renderList as V } from "vue";
2
+ import { getInputType as C } from "./vue-components.es8.js";
3
+ const $ = /* @__PURE__ */ y({
4
+ inheritAttrs: !1,
5
+ __name: "OmegaInputVuetify",
6
+ props: {
7
+ inputProps: {},
8
+ vuetifyValue: {}
9
+ },
10
+ emits: ["focus", "blur"],
11
+ setup(q) {
12
+ return (e, p) => {
13
+ const t = s("v-text-field"), m = s("v-textarea"), d = s("v-radio"), P = s("v-radio-group"), g = s("v-select"), v = s("v-autocomplete");
14
+ return o(), u("div", {
15
+ class: "omega-input",
16
+ onFocusout: p[4] || (p[4] = (r) => e.$emit("blur", r)),
17
+ onFocusin: p[5] || (p[5] = (r) => e.$emit("focus", r))
18
+ }, [
19
+ e.inputProps.type === "boolean" || e.inputProps.type === "switch" ? (o(), n(a(e.inputProps.type === "boolean" ? "v-checkbox" : "v-switch"), i({
20
+ key: 0,
21
+ id: e.inputProps.id,
22
+ name: e.inputProps.name,
23
+ label: e.inputProps.label,
24
+ "error-messages": e.inputProps.errorMessages,
25
+ error: e.inputProps.error,
26
+ ripple: ""
27
+ }, e.$attrs, {
28
+ "model-value": e.vuetifyValue,
29
+ onChange: p[0] || (p[0] = (r) => e.inputProps.field.handleChange(r.target.checked))
30
+ }), null, 16, ["id", "name", "label", "error-messages", "error", "model-value"])) : l("", !0),
31
+ e.inputProps.type === "email" || e.inputProps.type === "string" || e.inputProps.type === "password" ? (o(), n(t, i({
32
+ key: 1,
33
+ id: e.inputProps.id,
34
+ required: e.inputProps.required,
35
+ "min-length": e.inputProps.minLength,
36
+ "max-length": e.inputProps.maxLength,
37
+ type: b(C)(e.inputProps.type),
38
+ name: e.inputProps.name,
39
+ label: e.inputProps.label,
40
+ "error-messages": e.inputProps.errorMessages,
41
+ error: e.inputProps.error
42
+ }, e.$attrs, {
43
+ "model-value": e.vuetifyValue,
44
+ "onUpdate:modelValue": e.inputProps.field.handleChange
45
+ }), null, 16, ["id", "required", "min-length", "max-length", "type", "name", "label", "error-messages", "error", "model-value", "onUpdate:modelValue"])) : l("", !0),
46
+ e.inputProps.type === "text" ? (o(), n(m, i({
47
+ key: 2,
48
+ id: e.inputProps.id,
49
+ required: e.inputProps.required,
50
+ "min-length": e.inputProps.minLength,
51
+ "max-length": e.inputProps.maxLength,
52
+ name: e.inputProps.name,
53
+ label: e.inputProps.label,
54
+ "error-messages": e.inputProps.errorMessages,
55
+ error: e.inputProps.error
56
+ }, e.$attrs, {
57
+ "model-value": e.vuetifyValue,
58
+ "onUpdate:modelValue": e.inputProps.field.handleChange
59
+ }), null, 16, ["id", "required", "min-length", "max-length", "name", "label", "error-messages", "error", "model-value", "onUpdate:modelValue"])) : l("", !0),
60
+ e.inputProps.type === "number" || e.inputProps.type === "range" ? (o(), n(a(e.inputProps.type === "range" ? "v-slider" : "v-text-field"), i({
61
+ key: 3,
62
+ id: e.inputProps.id,
63
+ required: e.inputProps.required,
64
+ min: e.inputProps.min,
65
+ max: e.inputProps.max,
66
+ type: e.inputProps.type,
67
+ name: e.inputProps.name,
68
+ label: e.inputProps.label,
69
+ "error-messages": e.inputProps.errorMessages,
70
+ error: e.inputProps.error
71
+ }, e.$attrs, {
72
+ "model-value": e.vuetifyValue,
73
+ "onUpdate:modelValue": p[1] || (p[1] = (r) => {
74
+ r || r === 0 ? e.inputProps.field.handleChange(Number(r)) : e.inputProps.field.handleChange(void 0);
75
+ })
76
+ }), null, 16, ["id", "required", "min", "max", "type", "name", "label", "error-messages", "error", "model-value"])) : l("", !0),
77
+ e.inputProps.type === "radio" ? (o(), n(P, i({
78
+ key: 4,
79
+ id: e.inputProps.id,
80
+ name: e.inputProps.name,
81
+ label: e.inputProps.label,
82
+ "error-messages": e.inputProps.errorMessages,
83
+ error: e.inputProps.error
84
+ }, e.$attrs, {
85
+ "model-value": e.vuetifyValue,
86
+ "onUpdate:modelValue": e.inputProps.field.handleChange
87
+ }), {
88
+ default: f(() => [
89
+ (o(!0), u(h, null, V(e.inputProps.options, (r) => (o(), n(d, {
90
+ key: r.value,
91
+ label: r.title,
92
+ value: r.value
93
+ }, null, 8, ["label", "value"]))), 128))
94
+ ]),
95
+ _: 1
96
+ }, 16, ["id", "name", "label", "error-messages", "error", "model-value", "onUpdate:modelValue"])) : l("", !0),
97
+ e.inputProps.type === "select" || e.inputProps.type === "multiple" ? (o(), n(g, i({
98
+ key: 5,
99
+ id: e.inputProps.id,
100
+ clearable: e.inputProps.type === "select",
101
+ required: e.inputProps.required,
102
+ multiple: e.inputProps.type === "multiple",
103
+ chips: e.inputProps.type === "multiple",
104
+ name: e.inputProps.name,
105
+ label: e.inputProps.label,
106
+ items: e.inputProps.options,
107
+ "error-messages": e.inputProps.errorMessages,
108
+ error: e.inputProps.error
109
+ }, e.$attrs, {
110
+ "model-value": e.vuetifyValue,
111
+ onClear: p[2] || (p[2] = (r) => e.inputProps.field.handleChange(void 0)),
112
+ "onUpdate:modelValue": e.inputProps.field.handleChange
113
+ }), null, 16, ["id", "clearable", "required", "multiple", "chips", "name", "label", "items", "error-messages", "error", "model-value", "onUpdate:modelValue"])) : l("", !0),
114
+ e.inputProps.type === "autocomplete" || e.inputProps.type === "autocompletemultiple" ? (o(), n(v, i({
115
+ key: 6,
116
+ id: e.inputProps.id,
117
+ clearable: e.inputProps.type === "autocomplete",
118
+ multiple: e.inputProps.type === "autocompletemultiple",
119
+ required: e.inputProps.required,
120
+ name: e.inputProps.name,
121
+ label: e.inputProps.label,
122
+ items: e.inputProps.options,
123
+ "error-messages": e.inputProps.errorMessages,
124
+ error: e.inputProps.error,
125
+ chips: e.inputProps.type === "autocompletemultiple"
126
+ }, e.$attrs, {
127
+ "model-value": e.vuetifyValue,
128
+ onClear: p[3] || (p[3] = (r) => e.inputProps.field.handleChange(void 0)),
129
+ "onUpdate:modelValue": e.inputProps.field.handleChange
130
+ }), null, 16, ["id", "clearable", "multiple", "required", "name", "label", "items", "error-messages", "error", "chips", "model-value", "onUpdate:modelValue"])) : l("", !0)
131
+ ], 32);
132
+ };
133
+ }
134
+ });
2
135
  export {
3
- f as default
136
+ $ as default
4
137
  };
@@ -1,15 +1,17 @@
1
- import { default as r } from "./vue-components.es4.js";
2
- import * as e from "./vue-components.es5.js";
3
- import { createMeta as o, duplicateSchema as p, generateInputStandardSchemaFromFieldMeta as n, generateMetaFromSchema as u, getInputType as g, nullableInput as l } from "./vue-components.es7.js";
4
- import { useOmegaForm as d } from "./vue-components.es6.js";
1
+ import { default as r } from "./vue-components.es5.js";
2
+ import * as e from "./vue-components.es6.js";
3
+ import { createMeta as o, duplicateSchema as p, generateInputStandardSchemaFromFieldMeta as u, generateMetaFromSchema as n, getInputType as f, nullableInput as g } from "./vue-components.es8.js";
4
+ import { useOmegaForm as d } from "./vue-components.es7.js";
5
+ import { default as c } from "./vue-components.es4.js";
5
6
  export {
6
7
  e as OmegaErrorsContext,
7
8
  r as OmegaInput,
9
+ c as OmegaVuetifyInput,
8
10
  o as createMeta,
9
11
  p as duplicateSchema,
10
- n as generateInputStandardSchemaFromFieldMeta,
11
- u as generateMetaFromSchema,
12
- g as getInputType,
13
- l as nullableInput,
12
+ u as generateInputStandardSchemaFromFieldMeta,
13
+ n as generateMetaFromSchema,
14
+ f as getInputType,
15
+ g as nullableInput,
14
16
  d as useOmegaForm
15
17
  };
@@ -1,92 +1,44 @@
1
- import { defineComponent as E, getCurrentInstance as y, computed as B, createBlock as o, openBlock as r, Transition as C, withCtx as s, createElementBlock as d, createCommentVNode as w, renderSlot as b, normalizeProps as I, guardReactiveProps as V, resolveDynamicComponent as l, unref as a, normalizeClass as N, createElementVNode as i, toDisplayString as u, Fragment as g, renderList as v, createTextVNode as _ } from "vue";
2
- import { mdiLink as z } from "@mdi/js";
3
- import { useIntl as D } from "./vue-components.es3.js";
4
- const G = {
5
- key: 0,
6
- class: "error-alert"
7
- }, L = { class: "text-h6 mb-3" }, M = { class: "font-weight-medium" }, O = { class: "error-message" }, P = ["href"], S = { key: 1 }, F = /* @__PURE__ */ E({
8
- __name: "OmegaErrorsInternal",
9
- props: {
10
- errors: {},
11
- generalErrors: {},
12
- showErrors: { type: Boolean }
13
- },
14
- setup(k) {
15
- const c = y()?.appContext.components.VAlert, p = k, { trans: f } = D(), m = B(() => p.generalErrors ? p.generalErrors.filter((e) => !!e).flatMap(
16
- (e) => Object.values(e).filter((n) => !!n).flatMap(
17
- (n) => n.filter(
18
- (t) => !!t?.message
19
- ).map((t) => t.message)
20
- )
21
- ) : []);
22
- return (e, n) => (r(), o(C, null, {
23
- default: s(() => [
24
- e.showErrors && (e.errors.length || m.value.length) ? (r(), d("div", G, [
25
- b(e.$slots, "default", I(V({ errors: e.errors, showedGeneralErrors: m.value })), () => [
26
- (r(), o(l(a(c) ? "v-alert" : "div"), {
27
- class: N([a(c) ? "mb-4" : "error-alert-content", "mb-4"]),
28
- type: "error",
29
- variant: "tonal",
30
- role: "alert",
31
- "aria-live": "polite"
32
- }, {
33
- default: s(() => [
34
- i("div", L, u(a(f)("form.includes_error")) + ": ", 1),
35
- e.errors.length ? (r(), o(l(e.errors.length > 1 ? "ul" : "div"), {
36
- key: 0,
37
- class: "error-list"
38
- }, {
39
- default: s(() => [
40
- (r(!0), d(g, null, v(e.errors, (t) => (r(), o(l(e.errors.length > 1 ? "li" : "div"), {
41
- key: t.inputId,
42
- class: "error-item"
43
- }, {
44
- default: s(() => [
45
- i("div", M, u(t.label), 1),
46
- i("div", O, [
47
- (r(), o(l(t.errors.length > 1 ? "ul" : "div"), { class: "error-list" }, {
48
- default: s(() => [
49
- (r(!0), d(g, null, v(t.errors, (h) => (r(), o(l(t.errors.length > 1 ? "li" : "span"), { key: h }, {
50
- default: s(() => [
51
- _(u(h), 1)
52
- ]),
53
- _: 2
54
- }, 1024))), 128))
55
- ]),
56
- _: 2
57
- }, 1024))
58
- ]),
59
- i("a", {
60
- href: `#${t.inputId}`,
61
- class: "error-link"
62
- }, [
63
- (r(), o(l(a(c) ? "v-icon" : "i"), {
64
- icon: a(z),
65
- "aria-hidden": "true"
66
- }, {
67
- default: s(() => [...n[0] || (n[0] = [
68
- i("i", null, "🔗", -1)
69
- ])]),
70
- _: 1
71
- }, 8, ["icon"])),
72
- _(" " + u(a(f)("form.fix_input")), 1)
73
- ], 8, P)
74
- ]),
75
- _: 2
76
- }, 1024))), 128))
77
- ]),
78
- _: 1
79
- })) : (r(), d("span", S, u(m.value[0]), 1))
80
- ]),
81
- _: 1
82
- }, 8, ["class"]))
83
- ], !0)
84
- ])) : w("", !0)
85
- ]),
86
- _: 3
87
- }));
1
+ const f = (c) => typeof c == "function", a = function(c, r) {
2
+ switch (c) {
3
+ case 0:
4
+ case 1:
5
+ throw new RangeError(`Invalid arity ${c}`);
6
+ case 2:
7
+ return function(n, t) {
8
+ return arguments.length >= 2 ? r(n, t) : function(e) {
9
+ return r(e, n);
10
+ };
11
+ };
12
+ case 3:
13
+ return function(n, t, e) {
14
+ return arguments.length >= 3 ? r(n, t, e) : function(u) {
15
+ return r(u, n, t);
16
+ };
17
+ };
18
+ case 4:
19
+ return function(n, t, e, u) {
20
+ return arguments.length >= 4 ? r(n, t, e, u) : function(i) {
21
+ return r(i, n, t, e);
22
+ };
23
+ };
24
+ case 5:
25
+ return function(n, t, e, u, i) {
26
+ return arguments.length >= 5 ? r(n, t, e, u, i) : function(s) {
27
+ return r(s, n, t, e, u);
28
+ };
29
+ };
30
+ default:
31
+ return function() {
32
+ if (arguments.length >= c)
33
+ return r.apply(this, arguments);
34
+ const n = arguments;
35
+ return function(t) {
36
+ return r(t, ...n);
37
+ };
38
+ };
88
39
  }
89
- });
40
+ };
90
41
  export {
91
- F as default
42
+ a as dual,
43
+ f as isFunction
92
44
  };
@@ -1,9 +1,4 @@
1
- const s = (t, e) => {
2
- const o = t.__vccOpts || t;
3
- for (const [r, c] of e)
4
- o[r] = c;
5
- return o;
6
- };
1
+ import f from "./vue-components.es13.js";
7
2
  export {
8
- s as default
3
+ f as default
9
4
  };
@@ -1,33 +1,92 @@
1
- import { defineComponent as m, createElementBlock as d, openBlock as a, withModifiers as l, createElementVNode as u, unref as r, renderSlot as b } from "vue";
2
- import { useStore as f } from "@tanstack/vue-form";
3
- import { getOmegaStore as p } from "./vue-components.es41.js";
4
- const c = ["disabled"], V = /* @__PURE__ */ m({
5
- __name: "OmegaWrapper",
1
+ import { defineComponent as E, getCurrentInstance as y, computed as B, createBlock as o, openBlock as r, Transition as C, withCtx as s, createElementBlock as d, createCommentVNode as w, renderSlot as b, normalizeProps as I, guardReactiveProps as V, resolveDynamicComponent as l, unref as a, normalizeClass as N, createElementVNode as i, toDisplayString as u, Fragment as g, renderList as v, createTextVNode as _ } from "vue";
2
+ import { mdiLink as z } from "@mdi/js";
3
+ import { useIntl as D } from "./vue-components.es3.js";
4
+ const G = {
5
+ key: 0,
6
+ class: "error-alert"
7
+ }, L = { class: "text-h6 mb-3" }, M = { class: "font-weight-medium" }, O = { class: "error-message" }, P = ["href"], S = { key: 1 }, F = /* @__PURE__ */ E({
8
+ __name: "OmegaErrorsInternal",
6
9
  props: {
7
- form: {},
8
- disabled: { type: Boolean },
9
- subscribe: {}
10
+ errors: {},
11
+ generalErrors: {},
12
+ showErrors: { type: Boolean }
10
13
  },
11
- setup(s) {
12
- const o = s, i = f(
13
- o.form.store,
14
- (e) => e.isSubmitting
15
- ), n = p(
16
- o.form,
17
- o.subscribe
18
- );
19
- return (e, t) => (a(), d("form", {
20
- novalidate: "",
21
- onSubmit: t[0] || (t[0] = l((S) => e.form.handleSubmit(), ["prevent", "stop"]))
22
- }, [
23
- u("fieldset", {
24
- disabled: r(i) || e.disabled
25
- }, [
26
- b(e.$slots, "default", { subscribedValues: r(n) }, void 0, !0)
27
- ], 8, c)
28
- ], 32));
14
+ setup(k) {
15
+ const c = y()?.appContext.components.VAlert, p = k, { trans: f } = D(), m = B(() => p.generalErrors ? p.generalErrors.filter((e) => !!e).flatMap(
16
+ (e) => Object.values(e).filter((n) => !!n).flatMap(
17
+ (n) => n.filter(
18
+ (t) => !!t?.message
19
+ ).map((t) => t.message)
20
+ )
21
+ ) : []);
22
+ return (e, n) => (r(), o(C, null, {
23
+ default: s(() => [
24
+ e.showErrors && (e.errors.length || m.value.length) ? (r(), d("div", G, [
25
+ b(e.$slots, "default", I(V({ errors: e.errors, showedGeneralErrors: m.value })), () => [
26
+ (r(), o(l(a(c) ? "v-alert" : "div"), {
27
+ class: N([a(c) ? "mb-4" : "error-alert-content", "mb-4"]),
28
+ type: "error",
29
+ variant: "tonal",
30
+ role: "alert",
31
+ "aria-live": "polite"
32
+ }, {
33
+ default: s(() => [
34
+ i("div", L, u(a(f)("form.includes_error")) + ": ", 1),
35
+ e.errors.length ? (r(), o(l(e.errors.length > 1 ? "ul" : "div"), {
36
+ key: 0,
37
+ class: "error-list"
38
+ }, {
39
+ default: s(() => [
40
+ (r(!0), d(g, null, v(e.errors, (t) => (r(), o(l(e.errors.length > 1 ? "li" : "div"), {
41
+ key: t.inputId,
42
+ class: "error-item"
43
+ }, {
44
+ default: s(() => [
45
+ i("div", M, u(t.label), 1),
46
+ i("div", O, [
47
+ (r(), o(l(t.errors.length > 1 ? "ul" : "div"), { class: "error-list" }, {
48
+ default: s(() => [
49
+ (r(!0), d(g, null, v(t.errors, (h) => (r(), o(l(t.errors.length > 1 ? "li" : "span"), { key: h }, {
50
+ default: s(() => [
51
+ _(u(h), 1)
52
+ ]),
53
+ _: 2
54
+ }, 1024))), 128))
55
+ ]),
56
+ _: 2
57
+ }, 1024))
58
+ ]),
59
+ i("a", {
60
+ href: `#${t.inputId}`,
61
+ class: "error-link"
62
+ }, [
63
+ (r(), o(l(a(c) ? "v-icon" : "i"), {
64
+ icon: a(z),
65
+ "aria-hidden": "true"
66
+ }, {
67
+ default: s(() => [...n[0] || (n[0] = [
68
+ i("i", null, "🔗", -1)
69
+ ])]),
70
+ _: 1
71
+ }, 8, ["icon"])),
72
+ _(" " + u(a(f)("form.fix_input")), 1)
73
+ ], 8, P)
74
+ ]),
75
+ _: 2
76
+ }, 1024))), 128))
77
+ ]),
78
+ _: 1
79
+ })) : (r(), d("span", S, u(m.value[0]), 1))
80
+ ]),
81
+ _: 1
82
+ }, 8, ["class"]))
83
+ ], !0)
84
+ ])) : w("", !0)
85
+ ]),
86
+ _: 3
87
+ }));
29
88
  }
30
89
  });
31
90
  export {
32
- V as default
91
+ F as default
33
92
  };
@@ -1,4 +1,9 @@
1
- import f from "./vue-components.es17.js";
1
+ const s = (t, e) => {
2
+ const o = t.__vccOpts || t;
3
+ for (const [r, c] of e)
4
+ o[r] = c;
5
+ return o;
6
+ };
2
7
  export {
3
- f as default
8
+ s as default
4
9
  };
@@ -1,25 +1,33 @@
1
- function a(t) {
2
- return Symbol.for(t);
3
- }
4
- var c = (
5
- /** @class */
6
- /* @__PURE__ */ (function() {
7
- function t(u) {
8
- var e = this;
9
- e._currentContext = u ? new Map(u) : /* @__PURE__ */ new Map(), e.getValue = function(n) {
10
- return e._currentContext.get(n);
11
- }, e.setValue = function(n, r) {
12
- var o = new t(e._currentContext);
13
- return o._currentContext.set(n, r), o;
14
- }, e.deleteValue = function(n) {
15
- var r = new t(e._currentContext);
16
- return r._currentContext.delete(n), r;
17
- };
18
- }
19
- return t;
20
- })()
21
- ), x = new c();
1
+ import { defineComponent as m, createElementBlock as d, openBlock as a, withModifiers as l, createElementVNode as u, unref as r, renderSlot as b } from "vue";
2
+ import { useStore as f } from "@tanstack/vue-form";
3
+ import { getOmegaStore as p } from "./vue-components.es42.js";
4
+ const c = ["disabled"], V = /* @__PURE__ */ m({
5
+ __name: "OmegaWrapper",
6
+ props: {
7
+ form: {},
8
+ disabled: { type: Boolean },
9
+ subscribe: {}
10
+ },
11
+ setup(s) {
12
+ const o = s, i = f(
13
+ o.form.store,
14
+ (e) => e.isSubmitting
15
+ ), n = p(
16
+ o.form,
17
+ o.subscribe
18
+ );
19
+ return (e, t) => (a(), d("form", {
20
+ novalidate: "",
21
+ onSubmit: t[0] || (t[0] = l((S) => e.form.handleSubmit(), ["prevent", "stop"]))
22
+ }, [
23
+ u("fieldset", {
24
+ disabled: r(i) || e.disabled
25
+ }, [
26
+ b(e.$slots, "default", { subscribedValues: r(n) }, void 0, !0)
27
+ ], 8, c)
28
+ ], 32));
29
+ }
30
+ });
22
31
  export {
23
- x as ROOT_CONTEXT,
24
- a as createContextKey
32
+ V as default
25
33
  };
@@ -1,23 +1,6 @@
1
- import { NoopTracer as o } from "./vue-components.es30.js";
2
- var s = new o(), c = (
3
- /** @class */
4
- (function() {
5
- function r(t, e, n, a) {
6
- this._provider = t, this.name = e, this.version = n, this.options = a;
7
- }
8
- return r.prototype.startSpan = function(t, e, n) {
9
- return this._getTracer().startSpan(t, e, n);
10
- }, r.prototype.startActiveSpan = function(t, e, n, a) {
11
- var i = this._getTracer();
12
- return Reflect.apply(i.startActiveSpan, i, arguments);
13
- }, r.prototype._getTracer = function() {
14
- if (this._delegate)
15
- return this._delegate;
16
- var t = this._provider.getDelegateTracer(this.name, this.version, this.options);
17
- return t ? (this._delegate = t, this._delegate) : s;
18
- }, r;
19
- })()
20
- );
1
+ (function(){"use strict";try{if(typeof document<"u"){var i=document.createElement("style");if(i.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){transition:all .2s;overflow:hidden;min-height:0;display:grid;grid-template-rows:1fr}.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;width:auto;appearance:none;box-shadow:none;display:block;min-width:auto;height:auto;padding:.5em .5em .5em 1em}")),document.head.appendChild(i),window.customElements){const e=window.customElements.define;window.customElements.define=function(s,t){const n=t.prototype.connectedCallback;return t.prototype.connectedCallback=function(){if(n&&n.call(this),this.shadowRoot){const a=document.createElement("style");a.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){transition:all .2s;overflow:hidden;min-height:0;display:grid;grid-template-rows:1fr}.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;width:auto;appearance:none;box-shadow:none;display:block;min-width:auto;height:auto;padding:.5em .5em .5em 1em}")),this.shadowRoot.appendChild(a)}},e.call(window.customElements,s,t)}}}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
+ import o from "./vue-components.es19.js";
3
+
21
4
  export {
22
- c as ProxyTracer
5
+ o as default
23
6
  };
@@ -1,32 +1,25 @@
1
- import { ContextAPI as l } from "./vue-components.es37.js";
2
- import { getSpanContext as m, setSpan as d } from "./vue-components.es46.js";
3
- import { NonRecordingSpan as p } from "./vue-components.es36.js";
4
- import { isSpanContextValid as S } from "./vue-components.es34.js";
5
- var f = l.getInstance(), I = (
1
+ function a(t) {
2
+ return Symbol.for(t);
3
+ }
4
+ var c = (
6
5
  /** @class */
7
- (function() {
8
- function t() {
6
+ /* @__PURE__ */ (function() {
7
+ function t(u) {
8
+ var e = this;
9
+ e._currentContext = u ? new Map(u) : /* @__PURE__ */ new Map(), e.getValue = function(n) {
10
+ return e._currentContext.get(n);
11
+ }, e.setValue = function(n, r) {
12
+ var o = new t(e._currentContext);
13
+ return o._currentContext.set(n, r), o;
14
+ }, e.deleteValue = function(n) {
15
+ var r = new t(e._currentContext);
16
+ return r._currentContext.delete(n), r;
17
+ };
9
18
  }
10
- return t.prototype.startSpan = function(u, e, r) {
11
- r === void 0 && (r = f.active());
12
- var i = !!e?.root;
13
- if (i)
14
- return new p();
15
- var n = r && m(r);
16
- return g(n) && S(n) ? new p(n) : new p();
17
- }, t.prototype.startActiveSpan = function(u, e, r, i) {
18
- var n, o, a;
19
- if (!(arguments.length < 2)) {
20
- arguments.length === 2 ? a = e : arguments.length === 3 ? (n = e, a = r) : (n = e, o = r, a = i);
21
- var v = o ?? f.active(), s = this.startSpan(u, n, v), c = d(v, s);
22
- return f.with(c, a, void 0, s);
23
- }
24
- }, t;
19
+ return t;
25
20
  })()
26
- );
27
- function g(t) {
28
- return typeof t == "object" && typeof t.spanId == "string" && typeof t.traceId == "string" && typeof t.traceFlags == "number";
29
- }
21
+ ), x = new c();
30
22
  export {
31
- I as NoopTracer
23
+ x as ROOT_CONTEXT,
24
+ a as createContextKey
32
25
  };