@effect-app/vue-components 1.5.0 → 1.6.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.
- package/dist/types/components/OmegaForm/InputProps.d.ts +18 -18
- package/dist/types/components/OmegaForm/OmegaFormInput.vue.d.ts +2 -2
- package/dist/types/components/OmegaForm/OmegaInput.vue.d.ts +1 -4
- package/dist/types/components/OmegaForm/OmegaInputVuetify.vue.d.ts +1 -4
- package/dist/types/components/OmegaForm/OmegaInternalInput.vue.d.ts +1 -4
- package/dist/vue-components.es10.js +12 -13
- package/dist/vue-components.es17.js +1 -1
- package/dist/vue-components.es18.js +1 -1
- package/dist/vue-components.es23.js +50 -50
- package/dist/vue-components.es31.js +1 -1
- package/dist/vue-components.es34.js +10 -22
- package/dist/vue-components.es35.js +23 -5
- package/dist/vue-components.es36.js +5 -21
- package/dist/vue-components.es37.js +16 -25
- package/dist/vue-components.es38.js +23 -15
- package/dist/vue-components.es39.js +17 -7
- package/dist/vue-components.es40.js +12 -5
- package/dist/vue-components.es41.js +5 -19
- package/dist/vue-components.es42.js +19 -9
- package/dist/vue-components.es43.js +9 -31
- package/dist/vue-components.es44.js +25 -42
- package/dist/vue-components.es45.js +38 -16
- package/dist/vue-components.es46.js +26 -11
- package/dist/vue-components.es47.js +1 -1
- package/dist/vue-components.es49.js +1 -1
- package/dist/vue-components.es5.js +53 -52
- package/dist/vue-components.es51.js +3 -3
- package/dist/vue-components.es52.js +1 -1
- package/package.json +3 -3
- package/src/components/OmegaForm/InputProps.ts +18 -15
- package/src/components/OmegaForm/OmegaFormInput.vue +2 -2
- package/src/components/OmegaForm/OmegaInputVuetify.vue +25 -28
- package/src/components/OmegaForm/OmegaInternalInput.vue +32 -21
- package/src/components/OmegaForm/createUseFormWithCustomInput.ts +1 -2
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import type { DeepKeys, DeepValue, FieldApi, FieldAsyncValidateOrFn, FieldValidateAsyncFn, FieldValidateFn, FieldValidateOrFn, FormAsyncValidateOrFn, FormValidateOrFn, StandardSchemaV1 } from "@tanstack/vue-form";
|
|
2
2
|
export type OmegaFieldInternalApi<From extends Record<PropertyKey, any>, TName extends DeepKeys<From>> = FieldApi<From, TName, DeepValue<From, TName>, FieldValidateOrFn<From, TName, DeepValue<From, TName>> | undefined, StandardSchemaV1<DeepValue<From, TName>, unknown> | FieldValidateFn<From, TName>, StandardSchemaV1<DeepValue<From, TName>, unknown> | FieldValidateAsyncFn<From, TName>, FieldValidateOrFn<From, TName, DeepValue<From, TName>>, FieldAsyncValidateOrFn<From, TName, DeepValue<From, TName>>, FieldValidateOrFn<From, TName, DeepValue<From, TName>> | undefined, FieldAsyncValidateOrFn<From, TName, DeepValue<From, TName>> | undefined, FieldValidateOrFn<From, TName, DeepValue<From, TName>> | undefined, FieldAsyncValidateOrFn<From, TName, DeepValue<From, TName>> | undefined, FormValidateOrFn<From> | undefined, FormValidateOrFn<From> | undefined, any, FormValidateOrFn<From> | undefined, FormAsyncValidateOrFn<From> | undefined, FormValidateOrFn<From> | undefined, FormAsyncValidateOrFn<From> | undefined, FormValidateOrFn<From> | undefined, FormAsyncValidateOrFn<From> | undefined, FormAsyncValidateOrFn<From> | undefined, Record<string, any> | undefined>;
|
|
3
3
|
export type InputProps<From extends Record<PropertyKey, any>, TName extends DeepKeys<From>> = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
inputProps: {
|
|
5
|
+
id: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
minLength?: number | false;
|
|
8
|
+
maxLength?: number | false;
|
|
9
|
+
max?: number | false;
|
|
10
|
+
min?: number | false;
|
|
11
|
+
errorMessages: string[];
|
|
12
|
+
error: boolean;
|
|
13
|
+
setRealDirty: () => void;
|
|
14
|
+
type: string;
|
|
15
|
+
label: string;
|
|
16
|
+
options?: {
|
|
17
|
+
title: string;
|
|
18
|
+
value: string;
|
|
19
|
+
}[];
|
|
20
|
+
};
|
|
15
21
|
field: OmegaFieldInternalApi<From, TName>;
|
|
16
|
-
setRealDirty: () => void;
|
|
17
|
-
type: string;
|
|
18
|
-
label: string;
|
|
19
|
-
options?: {
|
|
20
|
-
title: string;
|
|
21
|
-
value: string;
|
|
22
|
-
}[];
|
|
23
22
|
};
|
|
23
|
+
export type MergedInputProps<From extends Record<PropertyKey, any>, TName extends DeepKeys<From>> = InputProps<From, TName>["inputProps"] & Pick<InputProps<From, TName>, "field">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type DeepKeys } from "@tanstack/vue-form";
|
|
2
|
-
import type {
|
|
2
|
+
import type { MergedInputProps } from "./InputProps";
|
|
3
3
|
import type { DefaultInputProps } from "./OmegaFormStuff";
|
|
4
4
|
declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, Name extends DeepKeys<From>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<{
|
|
@@ -8,7 +8,7 @@ declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends R
|
|
|
8
8
|
expose: (exposed: {}) => void;
|
|
9
9
|
attrs: any;
|
|
10
10
|
slots: {
|
|
11
|
-
default(props:
|
|
11
|
+
default(props: MergedInputProps<From, Name>): void;
|
|
12
12
|
};
|
|
13
13
|
emit: {};
|
|
14
14
|
}>) => import("vue").VNode & {
|
|
@@ -5,18 +5,15 @@ declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends R
|
|
|
5
5
|
attrs: any;
|
|
6
6
|
slots: {
|
|
7
7
|
default?: (props: {
|
|
8
|
+
field: import("./InputProps").OmegaFieldInternalApi<From, any>;
|
|
8
9
|
id: string;
|
|
9
10
|
required?: boolean;
|
|
10
11
|
minLength?: number | false;
|
|
11
12
|
maxLength?: number | false;
|
|
12
13
|
max?: number | false;
|
|
13
14
|
min?: number | false;
|
|
14
|
-
name: string;
|
|
15
|
-
modelValue: import("@tanstack/vue-form").DeepValue<From, any>;
|
|
16
|
-
handleChange: (value: import("@tanstack/vue-form").DeepValue<From, any>) => void;
|
|
17
15
|
errorMessages: string[];
|
|
18
16
|
error: boolean;
|
|
19
|
-
field: import("./InputProps").OmegaFieldInternalApi<From, any>;
|
|
20
17
|
setRealDirty: () => void;
|
|
21
18
|
type: string;
|
|
22
19
|
label: string;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { type DeepKeys } from "@tanstack/vue-form";
|
|
2
2
|
import type { InputProps } from "./InputProps";
|
|
3
3
|
declare const __VLS_export: <From extends Record<PropertyKey, any>, Name extends DeepKeys<From>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
-
props: __VLS_PrettifyLocal<{
|
|
5
|
-
inputProps: InputProps<From, Name>;
|
|
6
|
-
vuetifyValue: unknown;
|
|
7
|
-
} & {
|
|
4
|
+
props: __VLS_PrettifyLocal<InputProps<From, Name> & {
|
|
8
5
|
onBlur?: ((event: Event) => any) | undefined;
|
|
9
6
|
onFocus?: ((event: Event) => any) | undefined;
|
|
10
7
|
}> & import("vue").PublicProps;
|
|
@@ -17,18 +17,15 @@ declare const __VLS_export: <From extends Record<PropertyKey, any>, Name extends
|
|
|
17
17
|
attrs: any;
|
|
18
18
|
slots: {
|
|
19
19
|
default?: (props: {
|
|
20
|
+
field: OmegaFieldInternalApi<From, Name>;
|
|
20
21
|
id: string;
|
|
21
22
|
required?: boolean;
|
|
22
23
|
minLength?: number | false;
|
|
23
24
|
maxLength?: number | false;
|
|
24
25
|
max?: number | false;
|
|
25
26
|
min?: number | false;
|
|
26
|
-
name: string;
|
|
27
|
-
modelValue: import("@tanstack/vue-form").DeepValue<From, Name>;
|
|
28
|
-
handleChange: (value: import("@tanstack/vue-form").DeepValue<From, Name>) => void;
|
|
29
27
|
errorMessages: string[];
|
|
30
28
|
error: boolean;
|
|
31
|
-
field: OmegaFieldInternalApi<From, Name>;
|
|
32
29
|
setRealDirty: () => void;
|
|
33
30
|
type: string;
|
|
34
31
|
label: string;
|
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
import { h as
|
|
1
|
+
import { h as r } from "vue";
|
|
2
2
|
import s from "./vue-components.es4.js";
|
|
3
|
-
import { useOmegaForm as
|
|
4
|
-
const W = (
|
|
5
|
-
const [m,
|
|
6
|
-
return
|
|
3
|
+
import { useOmegaForm as i } from "./vue-components.es7.js";
|
|
4
|
+
const W = (e) => (...n) => {
|
|
5
|
+
const [m, o, a] = n;
|
|
6
|
+
return i(
|
|
7
7
|
m,
|
|
8
|
-
|
|
8
|
+
o,
|
|
9
9
|
{
|
|
10
|
-
...
|
|
10
|
+
...a,
|
|
11
11
|
input: {
|
|
12
12
|
name: "WrappedInput",
|
|
13
13
|
inheritAttrs: !1,
|
|
14
|
-
setup(f, { attrs: u, slots:
|
|
15
|
-
return () =>
|
|
14
|
+
setup(f, { attrs: u, slots: p }) {
|
|
15
|
+
return () => r(s, {
|
|
16
16
|
...f,
|
|
17
17
|
...u
|
|
18
18
|
}, {
|
|
19
19
|
// Override the default slot that OmegaInternalInput provides
|
|
20
|
-
default: (t) => t && "field" in t ? e
|
|
21
|
-
inputProps: t
|
|
22
|
-
|
|
23
|
-
}) : i.default?.(t)
|
|
20
|
+
default: (t) => t && "field" in t ? r(e, {
|
|
21
|
+
inputProps: t
|
|
22
|
+
}) : p.default?.(t)
|
|
24
23
|
});
|
|
25
24
|
}
|
|
26
25
|
}
|
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getInputType as
|
|
3
|
-
const U = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as y, resolveComponent as o, createElementBlock as m, openBlock as n, createBlock as a, createCommentVNode as i, resolveDynamicComponent as d, mergeProps as u, unref as b, withCtx as h, Fragment as c, renderList as C } from "vue";
|
|
2
|
+
import { getInputType as q } from "./vue-components.es9.js";
|
|
3
|
+
const U = /* @__PURE__ */ y({
|
|
4
4
|
inheritAttrs: !1,
|
|
5
5
|
__name: "OmegaInputVuetify",
|
|
6
6
|
props: {
|
|
7
7
|
inputProps: {},
|
|
8
|
-
|
|
8
|
+
field: {}
|
|
9
9
|
},
|
|
10
10
|
emits: ["focus", "blur"],
|
|
11
11
|
setup(e) {
|
|
12
|
-
return (
|
|
13
|
-
const
|
|
14
|
-
return
|
|
12
|
+
return (r, l) => {
|
|
13
|
+
const s = o("v-text-field"), P = o("v-textarea"), g = o("v-radio"), v = o("v-radio-group"), p = o("v-select"), f = o("v-autocomplete");
|
|
14
|
+
return n(), m("div", {
|
|
15
15
|
class: "omega-input",
|
|
16
|
-
onFocusout:
|
|
17
|
-
onFocusin:
|
|
16
|
+
onFocusout: l[4] || (l[4] = (t) => r.$emit("blur", t)),
|
|
17
|
+
onFocusin: l[5] || (l[5] = (t) => r.$emit("focus", t))
|
|
18
18
|
}, [
|
|
19
|
-
e.inputProps.type === "boolean" || e.inputProps.type === "switch" ? (
|
|
19
|
+
e.inputProps.type === "boolean" || e.inputProps.type === "switch" ? (n(), a(d(e.inputProps.type === "boolean" ? "v-checkbox" : "v-switch"), u({
|
|
20
20
|
key: 0,
|
|
21
21
|
id: e.inputProps.id,
|
|
22
|
-
name: e.
|
|
22
|
+
name: e.field.name,
|
|
23
23
|
label: e.inputProps.label,
|
|
24
24
|
"error-messages": e.inputProps.errorMessages,
|
|
25
25
|
error: e.inputProps.error,
|
|
26
26
|
ripple: ""
|
|
27
|
-
},
|
|
28
|
-
"model-value": e.
|
|
29
|
-
onChange:
|
|
27
|
+
}, r.$attrs, {
|
|
28
|
+
"model-value": e.field.state.value,
|
|
29
|
+
onChange: l[0] || (l[0] = (t) => e.field.handleChange(t.target.checked))
|
|
30
30
|
}), null, 16, ["id", "name", "label", "error-messages", "error", "model-value"])) : i("", !0),
|
|
31
|
-
e.inputProps.type === "email" || e.inputProps.type === "string" || e.inputProps.type === "password" ? (
|
|
31
|
+
e.inputProps.type === "email" || e.inputProps.type === "string" || e.inputProps.type === "password" ? (n(), a(s, u({
|
|
32
32
|
key: 1,
|
|
33
33
|
id: e.inputProps.id,
|
|
34
34
|
required: e.inputProps.required,
|
|
35
35
|
"min-length": e.inputProps.minLength,
|
|
36
36
|
"max-length": e.inputProps.maxLength,
|
|
37
|
-
type:
|
|
38
|
-
name: e.
|
|
37
|
+
type: b(q)(e.inputProps.type),
|
|
38
|
+
name: e.field.name,
|
|
39
39
|
label: e.inputProps.label,
|
|
40
40
|
"error-messages": e.inputProps.errorMessages,
|
|
41
41
|
error: e.inputProps.error
|
|
42
|
-
},
|
|
43
|
-
"model-value": e.
|
|
44
|
-
"onUpdate:modelValue": e.
|
|
42
|
+
}, r.$attrs, {
|
|
43
|
+
"model-value": e.field.state.value,
|
|
44
|
+
"onUpdate:modelValue": e.field.handleChange
|
|
45
45
|
}), null, 16, ["id", "required", "min-length", "max-length", "type", "name", "label", "error-messages", "error", "model-value", "onUpdate:modelValue"])) : i("", !0),
|
|
46
|
-
e.inputProps.type === "text" ? (
|
|
46
|
+
e.inputProps.type === "text" ? (n(), a(P, u({
|
|
47
47
|
key: 2,
|
|
48
48
|
id: e.inputProps.id,
|
|
49
49
|
required: e.inputProps.required,
|
|
50
50
|
"min-length": e.inputProps.minLength,
|
|
51
51
|
"max-length": e.inputProps.maxLength,
|
|
52
|
-
name: e.
|
|
52
|
+
name: e.field.name,
|
|
53
53
|
label: e.inputProps.label,
|
|
54
54
|
"error-messages": e.inputProps.errorMessages,
|
|
55
55
|
error: e.inputProps.error
|
|
56
|
-
},
|
|
57
|
-
"model-value": e.
|
|
58
|
-
"onUpdate:modelValue": e.
|
|
56
|
+
}, r.$attrs, {
|
|
57
|
+
"model-value": e.field.state.value,
|
|
58
|
+
"onUpdate:modelValue": e.field.handleChange
|
|
59
59
|
}), null, 16, ["id", "required", "min-length", "max-length", "name", "label", "error-messages", "error", "model-value", "onUpdate:modelValue"])) : i("", !0),
|
|
60
|
-
e.inputProps.type === "number" || e.inputProps.type === "range" ? (
|
|
60
|
+
e.inputProps.type === "number" || e.inputProps.type === "range" ? (n(), a(d(e.inputProps.type === "range" ? "v-slider" : "v-text-field"), u({
|
|
61
61
|
key: 3,
|
|
62
62
|
id: e.inputProps.id,
|
|
63
63
|
required: e.inputProps.required,
|
|
64
64
|
min: e.inputProps.min,
|
|
65
65
|
max: e.inputProps.max,
|
|
66
66
|
type: e.inputProps.type,
|
|
67
|
-
name: e.
|
|
67
|
+
name: e.field.name,
|
|
68
68
|
label: e.inputProps.label,
|
|
69
69
|
"error-messages": e.inputProps.errorMessages,
|
|
70
70
|
error: e.inputProps.error
|
|
71
|
-
},
|
|
72
|
-
"model-value": e.
|
|
73
|
-
"onUpdate:modelValue":
|
|
74
|
-
t || t === 0 ? e.
|
|
71
|
+
}, r.$attrs, {
|
|
72
|
+
"model-value": e.field.state.value,
|
|
73
|
+
"onUpdate:modelValue": l[1] || (l[1] = (t) => {
|
|
74
|
+
t || t === 0 ? e.field.handleChange(Number(t)) : e.field.handleChange(void 0);
|
|
75
75
|
})
|
|
76
76
|
}), null, 16, ["id", "required", "min", "max", "type", "name", "label", "error-messages", "error", "model-value"])) : i("", !0),
|
|
77
|
-
e.inputProps.type === "radio" ? (
|
|
77
|
+
e.inputProps.type === "radio" ? (n(), a(v, u({
|
|
78
78
|
key: 4,
|
|
79
79
|
id: e.inputProps.id,
|
|
80
|
-
name: e.
|
|
80
|
+
name: e.field.name,
|
|
81
81
|
label: e.inputProps.label,
|
|
82
82
|
"error-messages": e.inputProps.errorMessages,
|
|
83
83
|
error: e.inputProps.error
|
|
84
|
-
},
|
|
85
|
-
"model-value": e.
|
|
86
|
-
"onUpdate:modelValue": e.
|
|
84
|
+
}, r.$attrs, {
|
|
85
|
+
"model-value": e.field.state.value,
|
|
86
|
+
"onUpdate:modelValue": e.field.handleChange
|
|
87
87
|
}), {
|
|
88
|
-
default:
|
|
89
|
-
(
|
|
88
|
+
default: h(() => [
|
|
89
|
+
(n(!0), m(c, null, C(e.inputProps.options, (t) => (n(), a(g, {
|
|
90
90
|
key: t.value,
|
|
91
91
|
label: t.title,
|
|
92
92
|
value: t.value
|
|
@@ -94,39 +94,39 @@ const U = /* @__PURE__ */ b({
|
|
|
94
94
|
]),
|
|
95
95
|
_: 1
|
|
96
96
|
}, 16, ["id", "name", "label", "error-messages", "error", "model-value", "onUpdate:modelValue"])) : i("", !0),
|
|
97
|
-
e.inputProps.type === "select" || e.inputProps.type === "multiple" ? (
|
|
97
|
+
e.inputProps.type === "select" || e.inputProps.type === "multiple" ? (n(), a(p, u({
|
|
98
98
|
key: 5,
|
|
99
99
|
id: e.inputProps.id,
|
|
100
100
|
clearable: e.inputProps.type === "select",
|
|
101
101
|
required: e.inputProps.required,
|
|
102
102
|
multiple: e.inputProps.type === "multiple",
|
|
103
103
|
chips: e.inputProps.type === "multiple",
|
|
104
|
-
name: e.
|
|
104
|
+
name: e.field.name,
|
|
105
105
|
label: e.inputProps.label,
|
|
106
106
|
items: e.inputProps.options,
|
|
107
107
|
"error-messages": e.inputProps.errorMessages,
|
|
108
108
|
error: e.inputProps.error
|
|
109
|
-
},
|
|
110
|
-
"model-value": e.
|
|
111
|
-
onClear:
|
|
112
|
-
"onUpdate:modelValue": e.
|
|
109
|
+
}, r.$attrs, {
|
|
110
|
+
"model-value": e.field.state.value,
|
|
111
|
+
onClear: l[2] || (l[2] = (t) => e.field.handleChange(void 0)),
|
|
112
|
+
"onUpdate:modelValue": e.field.handleChange
|
|
113
113
|
}), null, 16, ["id", "clearable", "required", "multiple", "chips", "name", "label", "items", "error-messages", "error", "model-value", "onUpdate:modelValue"])) : i("", !0),
|
|
114
|
-
e.inputProps.type === "autocomplete" || e.inputProps.type === "autocompletemultiple" ? (
|
|
114
|
+
e.inputProps.type === "autocomplete" || e.inputProps.type === "autocompletemultiple" ? (n(), a(f, u({
|
|
115
115
|
key: 6,
|
|
116
116
|
id: e.inputProps.id,
|
|
117
117
|
clearable: e.inputProps.type === "autocomplete",
|
|
118
118
|
multiple: e.inputProps.type === "autocompletemultiple",
|
|
119
119
|
required: e.inputProps.required,
|
|
120
|
-
name: e.
|
|
120
|
+
name: e.field.name,
|
|
121
121
|
label: e.inputProps.label,
|
|
122
122
|
items: e.inputProps.options,
|
|
123
123
|
"error-messages": e.inputProps.errorMessages,
|
|
124
124
|
error: e.inputProps.error,
|
|
125
125
|
chips: e.inputProps.type === "autocompletemultiple"
|
|
126
|
-
},
|
|
127
|
-
"model-value": e.
|
|
128
|
-
onClear:
|
|
129
|
-
"onUpdate:modelValue": e.
|
|
126
|
+
}, r.$attrs, {
|
|
127
|
+
"model-value": e.field.state.value,
|
|
128
|
+
onClear: l[3] || (l[3] = (t) => e.field.handleChange(void 0)),
|
|
129
|
+
"onUpdate:modelValue": e.field.handleChange
|
|
130
130
|
}), null, 16, ["id", "clearable", "multiple", "required", "name", "label", "items", "error-messages", "error", "chips", "model-value", "onUpdate:modelValue"])) : i("", !0)
|
|
131
131
|
], 32);
|
|
132
132
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as m, createElementBlock as d, openBlock as a, withModifiers as l, createElementVNode as u, unref as s, renderSlot as b } from "vue";
|
|
2
2
|
import { useStore as f } from "@tanstack/vue-form";
|
|
3
|
-
import { getOmegaStore as c } from "./vue-components.
|
|
3
|
+
import { getOmegaStore as c } from "./vue-components.es34.js";
|
|
4
4
|
const p = ["disabled"], V = /* @__PURE__ */ m({
|
|
5
5
|
__name: "OmegaWrapper",
|
|
6
6
|
props: {
|
|
@@ -1,25 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { useStore as u } from "@tanstack/vue-form";
|
|
2
|
+
import { computed as f } from "vue";
|
|
3
|
+
function c(o, t) {
|
|
4
|
+
return f(() => t ? u(o.store, (n) => {
|
|
5
|
+
const r = {};
|
|
6
|
+
for (const e of t)
|
|
7
|
+
r[e] = n[e];
|
|
8
|
+
return r;
|
|
9
|
+
}).value : {});
|
|
3
10
|
}
|
|
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();
|
|
22
11
|
export {
|
|
23
|
-
|
|
24
|
-
a as createContextKey
|
|
12
|
+
c as getOmegaStore
|
|
25
13
|
};
|
|
@@ -1,7 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
(
|
|
3
|
-
|
|
4
|
-
|
|
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();
|
|
5
22
|
export {
|
|
6
|
-
|
|
23
|
+
x as ROOT_CONTEXT,
|
|
24
|
+
a as createContextKey
|
|
7
25
|
};
|
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
+
var R;
|
|
2
|
+
(function(E) {
|
|
3
|
+
E[E.NONE = 0] = "NONE", E[E.ERROR = 30] = "ERROR", E[E.WARN = 50] = "WARN", E[E.INFO = 60] = "INFO", E[E.DEBUG = 70] = "DEBUG", E[E.VERBOSE = 80] = "VERBOSE", E[E.ALL = 9999] = "ALL";
|
|
4
|
+
})(R || (R = {}));
|
|
21
5
|
export {
|
|
22
|
-
|
|
6
|
+
R as DiagLogLevel
|
|
23
7
|
};
|
|
@@ -1,32 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { NonRecordingSpan as p } from "./vue-components.es43.js";
|
|
4
|
-
import { isSpanContextValid as S } from "./vue-components.es41.js";
|
|
5
|
-
var f = l.getInstance(), I = (
|
|
1
|
+
import { NoopTracer as o } from "./vue-components.es38.js";
|
|
2
|
+
var s = new o(), c = (
|
|
6
3
|
/** @class */
|
|
7
4
|
(function() {
|
|
8
|
-
function t
|
|
5
|
+
function r(t, e, n, a) {
|
|
6
|
+
this._provider = t, this.name = e, this.version = n, this.options = a;
|
|
9
7
|
}
|
|
10
|
-
return
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
|
|
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;
|
|
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;
|
|
25
19
|
})()
|
|
26
20
|
);
|
|
27
|
-
function g(t) {
|
|
28
|
-
return typeof t == "object" && typeof t.spanId == "string" && typeof t.traceId == "string" && typeof t.traceFlags == "number";
|
|
29
|
-
}
|
|
30
21
|
export {
|
|
31
|
-
|
|
22
|
+
c as ProxyTracer
|
|
32
23
|
};
|
|
@@ -1,24 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { ContextAPI as l } from "./vue-components.es45.js";
|
|
2
|
+
import { getSpanContext as m, setSpan as d } from "./vue-components.es51.js";
|
|
3
|
+
import { NonRecordingSpan as p } from "./vue-components.es44.js";
|
|
4
|
+
import { isSpanContextValid as S } from "./vue-components.es42.js";
|
|
5
|
+
var f = l.getInstance(), I = (
|
|
4
6
|
/** @class */
|
|
5
7
|
(function() {
|
|
6
8
|
function t() {
|
|
7
9
|
}
|
|
8
|
-
return t.prototype.
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
+
}
|
|
19
24
|
}, t;
|
|
20
25
|
})()
|
|
21
26
|
);
|
|
27
|
+
function g(t) {
|
|
28
|
+
return typeof t == "object" && typeof t.spanId == "string" && typeof t.traceId == "string" && typeof t.traceFlags == "number";
|
|
29
|
+
}
|
|
22
30
|
export {
|
|
23
|
-
|
|
31
|
+
I as NoopTracer
|
|
24
32
|
};
|
|
@@ -1,14 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { ProxyTracer as i } from "./vue-components.es37.js";
|
|
2
|
+
import { NoopTracerProvider as n } from "./vue-components.es40.js";
|
|
3
|
+
var c = new n(), g = (
|
|
3
4
|
/** @class */
|
|
4
5
|
(function() {
|
|
5
|
-
function
|
|
6
|
+
function t() {
|
|
6
7
|
}
|
|
7
|
-
return
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
return t.prototype.getTracer = function(e, o, a) {
|
|
9
|
+
var r;
|
|
10
|
+
return (r = this.getDelegateTracer(e, o, a)) !== null && r !== void 0 ? r : new i(this, e, o, a);
|
|
11
|
+
}, t.prototype.getDelegate = function() {
|
|
12
|
+
var e;
|
|
13
|
+
return (e = this._delegate) !== null && e !== void 0 ? e : c;
|
|
14
|
+
}, t.prototype.setDelegate = function(e) {
|
|
15
|
+
this._delegate = e;
|
|
16
|
+
}, t.prototype.getDelegateTracer = function(e, o, a) {
|
|
17
|
+
var r;
|
|
18
|
+
return (r = this._delegate) === null || r === void 0 ? void 0 : r.getTracer(e, o, a);
|
|
19
|
+
}, t;
|
|
10
20
|
})()
|
|
11
21
|
);
|
|
12
22
|
export {
|
|
13
|
-
|
|
23
|
+
g as ProxyTracerProvider
|
|
14
24
|
};
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
(
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NoopTracer as o } from "./vue-components.es38.js";
|
|
2
|
+
var p = (
|
|
3
|
+
/** @class */
|
|
4
|
+
(function() {
|
|
5
|
+
function r() {
|
|
6
|
+
}
|
|
7
|
+
return r.prototype.getTracer = function(e, n, t) {
|
|
8
|
+
return new o();
|
|
9
|
+
}, r;
|
|
10
|
+
})()
|
|
11
|
+
);
|
|
5
12
|
export {
|
|
6
|
-
|
|
13
|
+
p as NoopTracerProvider
|
|
7
14
|
};
|