@effect-app/vue-components 1.2.0 → 1.3.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/OmegaArray.vue.d.ts +5 -4
- package/dist/types/components/OmegaForm/OmegaAutoGen.vue.d.ts +5 -4
- package/dist/types/components/OmegaForm/OmegaErrorsInternal.vue.d.ts +3 -2
- package/dist/types/components/OmegaForm/OmegaFormInput.vue.d.ts +5 -4
- package/dist/types/components/OmegaForm/OmegaInput.vue.d.ts +4 -3
- package/dist/types/components/OmegaForm/OmegaInputVuetify.vue.d.ts +8 -7
- package/dist/types/components/OmegaForm/OmegaInternalInput.vue.d.ts +5 -4
- package/dist/types/components/OmegaForm/OmegaWrapper.vue.d.ts +5 -4
- package/dist/vue-components.es12.js +15 -15
- package/dist/vue-components.es13.js +36 -39
- package/dist/vue-components.es16.js +1 -1
- package/dist/vue-components.es17.js +1 -1
- package/dist/vue-components.es20.js +41 -41
- package/dist/vue-components.es25.js +41 -41
- package/dist/vue-components.es28.js +15 -15
- package/dist/vue-components.es31.js +22 -10
- package/dist/vue-components.es32.js +5 -23
- package/dist/vue-components.es33.js +21 -5
- package/dist/vue-components.es34.js +25 -16
- package/dist/vue-components.es35.js +15 -23
- package/dist/vue-components.es36.js +7 -17
- package/dist/vue-components.es37.js +5 -12
- package/dist/vue-components.es38.js +19 -5
- package/dist/vue-components.es39.js +9 -19
- package/dist/vue-components.es4.js +12 -12
- package/dist/vue-components.es40.js +31 -9
- package/dist/vue-components.es41.js +42 -25
- package/dist/vue-components.es42.js +16 -38
- package/dist/vue-components.es43.js +11 -26
- package/dist/vue-components.es44.js +1 -1
- package/dist/vue-components.es46.js +1 -1
- package/dist/vue-components.es48.js +3 -3
- package/dist/vue-components.es49.js +1 -1
- package/package.json +15 -15
- package/src/components/OmegaForm/OmegaArray.vue +4 -2
- package/src/components/OmegaForm/OmegaAutoGen.vue +4 -2
- package/src/components/OmegaForm/OmegaFormInput.vue +4 -2
- package/src/components/OmegaForm/OmegaInput.vue +4 -2
- package/src/components/OmegaForm/OmegaWrapper.vue +4 -2
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { mdiLink as
|
|
3
|
-
import { useIntl as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as _, getCurrentInstance as y, computed as B, createBlock as n, openBlock as e, Transition as C, withCtx as o, createElementBlock as d, createCommentVNode as w, renderSlot as x, normalizeProps as b, guardReactiveProps as I, resolveDynamicComponent as l, unref as a, normalizeClass as V, createElementVNode as c, toDisplayString as u, Fragment as p, renderList as k, createTextVNode as E } from "vue";
|
|
2
|
+
import { mdiLink as N } from "@mdi/js";
|
|
3
|
+
import { useIntl as z } from "./vue-components.es3.js";
|
|
4
|
+
const D = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "error-alert"
|
|
7
|
-
},
|
|
7
|
+
}, G = { class: "text-h6 mb-3" }, L = { class: "font-weight-medium" }, M = { class: "error-message" }, O = ["href"], P = { key: 1 }, A = /* @__PURE__ */ _({
|
|
8
8
|
__name: "OmegaErrorsInternal",
|
|
9
9
|
props: {
|
|
10
10
|
errors: {},
|
|
11
11
|
generalErrors: {},
|
|
12
12
|
showErrors: { type: Boolean }
|
|
13
13
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
16
|
-
(
|
|
17
|
-
(
|
|
18
|
-
(
|
|
19
|
-
).map((
|
|
14
|
+
setup(t) {
|
|
15
|
+
const m = y()?.appContext.components.VAlert, h = t, { trans: g } = z(), f = B(() => h.generalErrors ? h.generalErrors.filter((i) => !!i).flatMap(
|
|
16
|
+
(i) => Object.values(i).filter((s) => !!s).flatMap(
|
|
17
|
+
(s) => s.filter(
|
|
18
|
+
(r) => !!r?.message
|
|
19
|
+
).map((r) => r.message)
|
|
20
20
|
)
|
|
21
21
|
) : []);
|
|
22
|
-
return (
|
|
23
|
-
default:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
(
|
|
27
|
-
class:
|
|
22
|
+
return (i, s) => (e(), n(C, null, {
|
|
23
|
+
default: o(() => [
|
|
24
|
+
t.showErrors && (t.errors.length || f.value.length) ? (e(), d("div", D, [
|
|
25
|
+
x(i.$slots, "default", b(I({ errors: t.errors, showedGeneralErrors: f.value })), () => [
|
|
26
|
+
(e(), n(l(a(m) ? "v-alert" : "div"), {
|
|
27
|
+
class: V([a(m) ? "mb-4" : "error-alert-content", "mb-4"]),
|
|
28
28
|
type: "error",
|
|
29
29
|
variant: "tonal",
|
|
30
30
|
role: "alert",
|
|
31
31
|
"aria-live": "polite"
|
|
32
32
|
}, {
|
|
33
|
-
default:
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
default: o(() => [
|
|
34
|
+
c("div", G, u(a(g)("form.includes_error")) + ": ", 1),
|
|
35
|
+
t.errors.length ? (e(), n(l(t.errors.length > 1 ? "ul" : "div"), {
|
|
36
36
|
key: 0,
|
|
37
37
|
class: "error-list"
|
|
38
38
|
}, {
|
|
39
|
-
default:
|
|
40
|
-
(
|
|
41
|
-
key:
|
|
39
|
+
default: o(() => [
|
|
40
|
+
(e(!0), d(p, null, k(t.errors, (r) => (e(), n(l(t.errors.length > 1 ? "li" : "div"), {
|
|
41
|
+
key: r.inputId,
|
|
42
42
|
class: "error-item"
|
|
43
43
|
}, {
|
|
44
|
-
default:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
(
|
|
48
|
-
default:
|
|
49
|
-
(
|
|
50
|
-
default:
|
|
51
|
-
|
|
44
|
+
default: o(() => [
|
|
45
|
+
c("div", L, u(r.label), 1),
|
|
46
|
+
c("div", M, [
|
|
47
|
+
(e(), n(l(r.errors.length > 1 ? "ul" : "div"), { class: "error-list" }, {
|
|
48
|
+
default: o(() => [
|
|
49
|
+
(e(!0), d(p, null, k(r.errors, (v) => (e(), n(l(r.errors.length > 1 ? "li" : "span"), { key: v }, {
|
|
50
|
+
default: o(() => [
|
|
51
|
+
E(u(v), 1)
|
|
52
52
|
]),
|
|
53
53
|
_: 2
|
|
54
54
|
}, 1024))), 128))
|
|
@@ -56,27 +56,27 @@ const G = {
|
|
|
56
56
|
_: 2
|
|
57
57
|
}, 1024))
|
|
58
58
|
]),
|
|
59
|
-
|
|
60
|
-
href: `#${
|
|
59
|
+
c("a", {
|
|
60
|
+
href: `#${r.inputId}`,
|
|
61
61
|
class: "error-link"
|
|
62
62
|
}, [
|
|
63
|
-
(
|
|
64
|
-
icon: a(
|
|
63
|
+
(e(), n(l(a(m) ? "v-icon" : "i"), {
|
|
64
|
+
icon: a(N),
|
|
65
65
|
"aria-hidden": "true"
|
|
66
66
|
}, {
|
|
67
|
-
default:
|
|
68
|
-
|
|
67
|
+
default: o(() => [...s[0] || (s[0] = [
|
|
68
|
+
c("i", null, "🔗", -1)
|
|
69
69
|
])]),
|
|
70
70
|
_: 1
|
|
71
71
|
}, 8, ["icon"])),
|
|
72
|
-
|
|
73
|
-
], 8,
|
|
72
|
+
E(" " + u(a(g)("form.fix_input")), 1)
|
|
73
|
+
], 8, O)
|
|
74
74
|
]),
|
|
75
75
|
_: 2
|
|
76
76
|
}, 1024))), 128))
|
|
77
77
|
]),
|
|
78
78
|
_: 1
|
|
79
|
-
})) : (
|
|
79
|
+
})) : (e(), d("span", P, u(f.value[0]), 1))
|
|
80
80
|
]),
|
|
81
81
|
_: 1
|
|
82
82
|
}, 8, ["class"]))
|
|
@@ -88,5 +88,5 @@ const G = {
|
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
export {
|
|
91
|
-
|
|
91
|
+
A as default
|
|
92
92
|
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { defineComponent as m, createElementBlock as d, openBlock as a, withModifiers as l, createElementVNode as u, unref as
|
|
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
|
|
4
|
-
const
|
|
3
|
+
import { getOmegaStore as c } from "./vue-components.es43.js";
|
|
4
|
+
const p = ["disabled"], V = /* @__PURE__ */ m({
|
|
5
5
|
__name: "OmegaWrapper",
|
|
6
6
|
props: {
|
|
7
7
|
form: {},
|
|
8
8
|
disabled: { type: Boolean },
|
|
9
9
|
subscribe: {}
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
(
|
|
15
|
-
), n =
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
setup(e) {
|
|
12
|
+
const t = e, i = f(
|
|
13
|
+
t.form.store,
|
|
14
|
+
(o) => o.isSubmitting
|
|
15
|
+
), n = c(
|
|
16
|
+
t.form,
|
|
17
|
+
t.subscribe
|
|
18
18
|
);
|
|
19
|
-
return (
|
|
19
|
+
return (o, r) => (a(), d("form", {
|
|
20
20
|
novalidate: "",
|
|
21
|
-
onSubmit:
|
|
21
|
+
onSubmit: r[0] || (r[0] = l((S) => e.form.handleSubmit(), ["prevent", "stop"]))
|
|
22
22
|
}, [
|
|
23
23
|
u("fieldset", {
|
|
24
|
-
disabled:
|
|
24
|
+
disabled: s(i) || e.disabled
|
|
25
25
|
}, [
|
|
26
|
-
b(
|
|
27
|
-
], 8,
|
|
26
|
+
b(o.$slots, "default", { subscribedValues: s(n) }, void 0, !0)
|
|
27
|
+
], 8, p)
|
|
28
28
|
], 32));
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -1,13 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 : {});
|
|
1
|
+
function a(t) {
|
|
2
|
+
return Symbol.for(t);
|
|
10
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();
|
|
11
22
|
export {
|
|
12
|
-
|
|
23
|
+
x as ROOT_CONTEXT,
|
|
24
|
+
a as createContextKey
|
|
13
25
|
};
|
|
@@ -1,25 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
+
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 = {}));
|
|
22
5
|
export {
|
|
23
|
-
|
|
24
|
-
a as createContextKey
|
|
6
|
+
R as DiagLogLevel
|
|
25
7
|
};
|
|
@@ -1,7 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
(
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { NoopTracer as o } from "./vue-components.es34.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
|
+
);
|
|
5
21
|
export {
|
|
6
|
-
|
|
22
|
+
c as ProxyTracer
|
|
7
23
|
};
|
|
@@ -1,23 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { ContextAPI as l } from "./vue-components.es41.js";
|
|
2
|
+
import { getSpanContext as m, setSpan as d } from "./vue-components.es48.js";
|
|
3
|
+
import { NonRecordingSpan as p } from "./vue-components.es40.js";
|
|
4
|
+
import { isSpanContextValid as S } from "./vue-components.es38.js";
|
|
5
|
+
var f = l.getInstance(), I = (
|
|
3
6
|
/** @class */
|
|
4
7
|
(function() {
|
|
5
|
-
function
|
|
6
|
-
this._provider = t, this.name = e, this.version = n, this.options = a;
|
|
8
|
+
function t() {
|
|
7
9
|
}
|
|
8
|
-
return
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var
|
|
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
|
+
}
|
|
24
|
+
}, t;
|
|
19
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
30
|
export {
|
|
22
|
-
|
|
31
|
+
I as NoopTracer
|
|
23
32
|
};
|
|
@@ -1,32 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { isSpanContextValid as S } from "./vue-components.es39.js";
|
|
5
|
-
var f = l.getInstance(), I = (
|
|
1
|
+
import { ProxyTracer as i } from "./vue-components.es33.js";
|
|
2
|
+
import { NoopTracerProvider as n } from "./vue-components.es36.js";
|
|
3
|
+
var c = new n(), g = (
|
|
6
4
|
/** @class */
|
|
7
5
|
(function() {
|
|
8
6
|
function t() {
|
|
9
7
|
}
|
|
10
|
-
return t.prototype.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
}
|
|
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);
|
|
24
19
|
}, t;
|
|
25
20
|
})()
|
|
26
21
|
);
|
|
27
|
-
function g(t) {
|
|
28
|
-
return typeof t == "object" && typeof t.spanId == "string" && typeof t.traceId == "string" && typeof t.traceFlags == "number";
|
|
29
|
-
}
|
|
30
22
|
export {
|
|
31
|
-
|
|
23
|
+
g as ProxyTracerProvider
|
|
32
24
|
};
|
|
@@ -1,24 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
var c = new n(), g = (
|
|
1
|
+
import { NoopTracer as o } from "./vue-components.es34.js";
|
|
2
|
+
var p = (
|
|
4
3
|
/** @class */
|
|
5
4
|
(function() {
|
|
6
|
-
function
|
|
5
|
+
function r() {
|
|
7
6
|
}
|
|
8
|
-
return
|
|
9
|
-
|
|
10
|
-
|
|
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;
|
|
7
|
+
return r.prototype.getTracer = function(e, n, t) {
|
|
8
|
+
return new o();
|
|
9
|
+
}, r;
|
|
20
10
|
})()
|
|
21
11
|
);
|
|
22
12
|
export {
|
|
23
|
-
|
|
13
|
+
p as NoopTracerProvider
|
|
24
14
|
};
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
function r() {
|
|
6
|
-
}
|
|
7
|
-
return r.prototype.getTracer = function(e, n, t) {
|
|
8
|
-
return new o();
|
|
9
|
-
}, r;
|
|
10
|
-
})()
|
|
11
|
-
);
|
|
1
|
+
var N;
|
|
2
|
+
(function(E) {
|
|
3
|
+
E[E.NONE = 0] = "NONE", E[E.SAMPLED = 1] = "SAMPLED";
|
|
4
|
+
})(N || (N = {}));
|
|
12
5
|
export {
|
|
13
|
-
|
|
6
|
+
N as TraceFlags
|
|
14
7
|
};
|
|
@@ -1,7 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { INVALID_TRACEID as r, INVALID_SPANID as t } from "./vue-components.es39.js";
|
|
2
|
+
import { NonRecordingSpan as i } from "./vue-components.es40.js";
|
|
3
|
+
var a = /^([0-9a-f]{32})$/i, o = /^[0-9a-f]{16}$/i;
|
|
4
|
+
function I(n) {
|
|
5
|
+
return a.test(n) && n !== r;
|
|
6
|
+
}
|
|
7
|
+
function e(n) {
|
|
8
|
+
return o.test(n) && n !== t;
|
|
9
|
+
}
|
|
10
|
+
function A(n) {
|
|
11
|
+
return I(n.traceId) && e(n.spanId);
|
|
12
|
+
}
|
|
13
|
+
function D(n) {
|
|
14
|
+
return new i(n);
|
|
15
|
+
}
|
|
5
16
|
export {
|
|
6
|
-
|
|
17
|
+
A as isSpanContextValid,
|
|
18
|
+
e as isValidSpanId,
|
|
19
|
+
I as isValidTraceId,
|
|
20
|
+
D as wrapSpanContext
|
|
7
21
|
};
|
|
@@ -1,21 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
function e(n) {
|
|
8
|
-
return o.test(n) && n !== t;
|
|
9
|
-
}
|
|
10
|
-
function A(n) {
|
|
11
|
-
return I(n.traceId) && e(n.spanId);
|
|
12
|
-
}
|
|
13
|
-
function D(n) {
|
|
14
|
-
return new i(n);
|
|
15
|
-
}
|
|
1
|
+
import { TraceFlags as I } from "./vue-components.es37.js";
|
|
2
|
+
var a = "0000000000000000", r = "00000000000000000000000000000000", A = {
|
|
3
|
+
traceId: r,
|
|
4
|
+
spanId: a,
|
|
5
|
+
traceFlags: I.NONE
|
|
6
|
+
};
|
|
16
7
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
D as wrapSpanContext
|
|
8
|
+
a as INVALID_SPANID,
|
|
9
|
+
A as INVALID_SPAN_CONTEXT,
|
|
10
|
+
r as INVALID_TRACEID
|
|
21
11
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as y, inject as h, computed as
|
|
1
|
+
import { defineComponent as y, inject as h, computed as s, createBlock as i, openBlock as u, resolveDynamicComponent as M, withCtx as c, createCommentVNode as $, mergeProps as b, renderSlot as C, normalizeProps as k, guardReactiveProps as F } from "vue";
|
|
2
2
|
import { useIntl as A } from "./vue-components.es3.js";
|
|
3
3
|
import { generateInputStandardSchemaFromFieldMeta as w } from "./vue-components.es8.js";
|
|
4
4
|
import I from "./vue-components.es5.js";
|
|
@@ -13,33 +13,33 @@ const z = /* @__PURE__ */ y({
|
|
|
13
13
|
options: {},
|
|
14
14
|
type: {}
|
|
15
15
|
},
|
|
16
|
-
setup(
|
|
17
|
-
const e =
|
|
16
|
+
setup(a) {
|
|
17
|
+
const e = a, r = h(
|
|
18
18
|
"getMetaFromArray",
|
|
19
19
|
null
|
|
20
|
-
), t =
|
|
20
|
+
), t = s(() => r?.value && r.value(e.name) ? r.value(e.name) : e.form.meta[e.name]), f = s(() => {
|
|
21
21
|
if (!t.value)
|
|
22
22
|
throw console.log(e.name, Object.keys(e.form.meta), e.form.meta), new Error("Meta is undefined");
|
|
23
23
|
return w(t.value);
|
|
24
|
-
}), { formatMessage: o } = A(), d = (
|
|
25
|
-
return (
|
|
24
|
+
}), { formatMessage: o } = A(), d = (n) => n.replace(/([A-Z])/g, " $1").replace(/^./, (l) => l.toUpperCase()).trim(), m = () => o({ id: `general.fields.${e.name}`, defaultMessage: d(e.name) }), p = () => e.form.i18nNamespace ? o({ id: `${e.form.i18nNamespace}.fields.${e.name}`, defaultMessage: m() }) : m();
|
|
25
|
+
return (n, l) => (u(), i(M(a.form.Field), {
|
|
26
26
|
name: a.name,
|
|
27
27
|
validators: {
|
|
28
28
|
onChange: f.value,
|
|
29
29
|
...a.validators
|
|
30
30
|
}
|
|
31
31
|
}, {
|
|
32
|
-
default:
|
|
33
|
-
t.value ? (
|
|
32
|
+
default: c(({ field: v }) => [
|
|
33
|
+
t.value ? (u(), i(I, b({
|
|
34
34
|
key: 0,
|
|
35
35
|
field: v,
|
|
36
|
-
label: a.label ??
|
|
36
|
+
label: a.label ?? p(),
|
|
37
37
|
options: a.options,
|
|
38
38
|
meta: t.value,
|
|
39
39
|
type: a.type
|
|
40
|
-
},
|
|
41
|
-
default:
|
|
42
|
-
C(
|
|
40
|
+
}, n.$attrs), {
|
|
41
|
+
default: c((g) => [
|
|
42
|
+
C(n.$slots, "default", k(F(g)))
|
|
43
43
|
]),
|
|
44
44
|
_: 3
|
|
45
45
|
}, 16, ["field", "label", "options", "meta", "type"])) : $("", !0)
|
|
@@ -1,11 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { INVALID_SPAN_CONTEXT as o } from "./vue-components.es39.js";
|
|
2
|
+
var i = (
|
|
3
|
+
/** @class */
|
|
4
|
+
(function() {
|
|
5
|
+
function t(n) {
|
|
6
|
+
n === void 0 && (n = o), this._spanContext = n;
|
|
7
|
+
}
|
|
8
|
+
return t.prototype.spanContext = function() {
|
|
9
|
+
return this._spanContext;
|
|
10
|
+
}, t.prototype.setAttribute = function(n, e) {
|
|
11
|
+
return this;
|
|
12
|
+
}, t.prototype.setAttributes = function(n) {
|
|
13
|
+
return this;
|
|
14
|
+
}, t.prototype.addEvent = function(n, e) {
|
|
15
|
+
return this;
|
|
16
|
+
}, t.prototype.addLink = function(n) {
|
|
17
|
+
return this;
|
|
18
|
+
}, t.prototype.addLinks = function(n) {
|
|
19
|
+
return this;
|
|
20
|
+
}, t.prototype.setStatus = function(n) {
|
|
21
|
+
return this;
|
|
22
|
+
}, t.prototype.updateName = function(n) {
|
|
23
|
+
return this;
|
|
24
|
+
}, t.prototype.end = function(n) {
|
|
25
|
+
}, t.prototype.isRecording = function() {
|
|
26
|
+
return !1;
|
|
27
|
+
}, t.prototype.recordException = function(n, e) {
|
|
28
|
+
}, t;
|
|
29
|
+
})()
|
|
30
|
+
);
|
|
7
31
|
export {
|
|
8
|
-
|
|
9
|
-
A as INVALID_SPAN_CONTEXT,
|
|
10
|
-
r as INVALID_TRACEID
|
|
32
|
+
i as NonRecordingSpan
|
|
11
33
|
};
|