@effect-app/vue-components 0.27.16 → 1.0.0-next.1
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 +2 -3
- package/dist/types/components/OmegaForm/OmegaErrorsContext.d.ts +4 -4
- package/dist/types/components/OmegaForm/OmegaErrorsInternal.vue.d.ts +22 -0
- package/dist/types/components/OmegaForm/OmegaInput.vue.d.ts +1 -2
- package/dist/types/components/OmegaForm/OmegaWrapper.vue.d.ts +7 -37
- package/dist/types/components/OmegaForm/index.d.ts +1 -7
- package/dist/types/components/OmegaForm/useOmegaForm.d.ts +65 -1
- package/dist/types/utils/index.d.ts +9 -0
- package/dist/vue-components.es.js +16 -25
- package/dist/vue-components.es10.js +5 -333
- package/dist/vue-components.es11.js +54 -6
- package/dist/vue-components.es12.js +71 -6
- package/dist/vue-components.es13.js +6 -2
- package/dist/vue-components.es14.js +6 -2
- package/dist/vue-components.es15.js +3 -86
- package/dist/vue-components.es16.js +5 -0
- package/dist/vue-components.es17.js +89 -7
- package/dist/vue-components.es18.js +42 -2
- package/dist/vue-components.es19.js +1 -1
- package/dist/vue-components.es2.js +10 -20
- package/dist/vue-components.es20.js +2 -126
- package/dist/vue-components.es21.js +92 -0
- package/dist/vue-components.es23.js +7 -5
- package/dist/vue-components.es24.js +31 -3
- package/dist/vue-components.es26.js +2 -11
- package/dist/vue-components.es27.js +23 -90
- package/dist/vue-components.es28.js +5 -42
- package/dist/vue-components.es29.js +21 -2
- package/dist/vue-components.es3.js +12 -8
- package/dist/vue-components.es30.js +27 -20
- package/dist/vue-components.es31.js +22 -5
- package/dist/vue-components.es32.js +6 -15
- package/dist/vue-components.es33.js +5 -30
- package/dist/vue-components.es34.js +19 -22
- package/dist/vue-components.es35.js +9 -12
- package/dist/vue-components.es36.js +31 -5
- package/dist/vue-components.es37.js +48 -19
- package/dist/vue-components.es38.js +26 -9
- package/dist/vue-components.es39.js +11 -31
- package/dist/vue-components.es4.js +47 -47
- package/dist/vue-components.es40.js +114 -47
- package/dist/vue-components.es42.js +1 -1
- package/dist/vue-components.es44.js +1 -1
- package/dist/vue-components.es45.js +3 -3
- package/dist/vue-components.es46.js +3 -3
- package/dist/vue-components.es47.js +1 -1
- package/dist/vue-components.es48.js +4 -115
- package/dist/vue-components.es49.js +4 -0
- package/dist/vue-components.es5.js +29 -70
- package/dist/vue-components.es50.js +44 -2
- package/dist/vue-components.es51.js +2 -44
- package/dist/vue-components.es6.js +209 -31
- package/dist/vue-components.es7.js +331 -49
- package/dist/vue-components.es8.js +2 -29
- package/dist/vue-components.es9.js +10 -148
- package/package.json +2 -2
- package/src/components/OmegaForm/OmegaArray.vue +4 -2
- package/src/components/OmegaForm/OmegaAutoGen.vue +5 -5
- package/src/components/OmegaForm/OmegaErrorsContext.ts +10 -8
- package/src/components/OmegaForm/{OmegaErrors.vue → OmegaErrorsInternal.vue} +11 -5
- package/src/components/OmegaForm/OmegaFormInput.vue +4 -2
- package/src/components/OmegaForm/OmegaFormStuff.ts +5 -6
- package/src/components/OmegaForm/OmegaInput.vue +6 -5
- package/src/components/OmegaForm/OmegaInternalInput.vue +1 -2
- package/src/components/OmegaForm/OmegaWrapper.vue +23 -247
- package/src/components/OmegaForm/index.ts +1 -7
- package/src/components/OmegaForm/useOmegaForm.ts +239 -7
- package/src/utils/index.ts +16 -0
- package/dist/types/components/OmegaForm/OmegaErrors.vue.d.ts +0 -15
- package/dist/vue-components.es22.js +0 -12
- package/dist/vue-components.es25.js +0 -5
- package/dist/vue-components.es41.js +0 -28
- package/dist/vue-components.es52.js +0 -4
- package/dist/vue-components.es53.js +0 -6
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
}));
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
export {
|
|
91
|
+
F as default
|
|
92
|
+
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
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
|
+
};
|
|
3
7
|
export {
|
|
4
|
-
s as
|
|
5
|
-
i as isObject,
|
|
6
|
-
t as isRecordOrArray
|
|
8
|
+
s as default
|
|
7
9
|
};
|
|
@@ -1,5 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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.es39.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
|
+
});
|
|
3
31
|
export {
|
|
4
|
-
|
|
32
|
+
V as default
|
|
5
33
|
};
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import
|
|
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 : {});
|
|
10
|
-
}
|
|
1
|
+
import f from "./vue-components.es17.js";
|
|
11
2
|
export {
|
|
12
|
-
|
|
3
|
+
f as default
|
|
13
4
|
};
|
|
@@ -1,92 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
r.value.meta.errors.map((t) => t?.message).filter(Boolean)
|
|
23
|
-
)
|
|
24
|
-
), y = (t) => t == null || t === !1 || t === "" || Number.isNaN(t);
|
|
25
|
-
f(
|
|
26
|
-
() => !!n.value,
|
|
27
|
-
() => {
|
|
28
|
-
y(n.value) && e.meta?.type !== "boolean" && N(() => {
|
|
29
|
-
o.setValue(
|
|
30
|
-
e.meta?.nullableOrUndefined === "undefined" ? void 0 : null
|
|
31
|
-
);
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
), d(() => {
|
|
35
|
-
!n.value && !e.meta?.required && e.meta?.nullableOrUndefined === "null" && o.setValue(null);
|
|
36
|
-
});
|
|
37
|
-
const { addError: h, removeError: b, showErrors: E, showErrorsOn: V } = A(), s = $(!1);
|
|
38
|
-
k(() => {
|
|
39
|
-
(E.value || V === "onChange") && (s.value = !0);
|
|
40
|
-
});
|
|
41
|
-
const u = () => {
|
|
42
|
-
s.value = !0;
|
|
43
|
-
};
|
|
44
|
-
d(() => {
|
|
45
|
-
n.value && u();
|
|
46
|
-
});
|
|
47
|
-
const p = a(() => !s.value && m.value !== "select" ? [] : g.value);
|
|
48
|
-
f(
|
|
49
|
-
() => r.value.meta.errors,
|
|
50
|
-
() => {
|
|
51
|
-
r.value.meta.errors.length ? h({
|
|
52
|
-
inputId: l,
|
|
53
|
-
errors: r.value.meta.errors.map((t) => t.message).filter(Boolean),
|
|
54
|
-
label: e.label
|
|
55
|
-
}) : b(l);
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
const i = a(() => ({
|
|
59
|
-
id: l,
|
|
60
|
-
required: e.meta?.required,
|
|
61
|
-
minLength: e.meta?.type === "string" && e.meta?.minLength,
|
|
62
|
-
maxLength: e.meta?.type === "string" && e.meta?.maxLength,
|
|
63
|
-
max: e.meta?.type === "number" && e.meta?.maximum,
|
|
64
|
-
min: e.meta?.type === "number" && e.meta?.minimum,
|
|
65
|
-
name: e.field.name,
|
|
66
|
-
modelValue: e.field.state.value,
|
|
67
|
-
errorMessages: p.value,
|
|
68
|
-
error: !!p.value.length,
|
|
69
|
-
field: e.field,
|
|
70
|
-
setRealDirty: u,
|
|
71
|
-
type: m.value,
|
|
72
|
-
label: `${e.label}${e.meta?.required ? " *" : ""}`,
|
|
73
|
-
options: e.options
|
|
74
|
-
}));
|
|
75
|
-
return (t, R) => B(t.$slots, "default", I(O(i.value)), () => [
|
|
76
|
-
_("div", {
|
|
77
|
-
class: q(t.$attrs.class),
|
|
78
|
-
onFocusout: u
|
|
79
|
-
}, [
|
|
80
|
-
F(v) ? (S(), L(D, T({
|
|
81
|
-
key: 0,
|
|
82
|
-
"input-props": i.value
|
|
83
|
-
}, t.$attrs, {
|
|
84
|
-
"vuetify-value": i.value.field.state.value
|
|
85
|
-
}), null, 16, ["input-props", "vuetify-value"])) : P("", !0)
|
|
86
|
-
], 34)
|
|
87
|
-
]);
|
|
88
|
-
}
|
|
89
|
-
});
|
|
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();
|
|
90
22
|
export {
|
|
91
|
-
|
|
23
|
+
x as ROOT_CONTEXT,
|
|
24
|
+
a as createContextKey
|
|
92
25
|
};
|
|
@@ -1,44 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
+
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 = {}));
|
|
41
5
|
export {
|
|
42
|
-
|
|
43
|
-
f as isFunction
|
|
6
|
+
R as DiagLogLevel
|
|
44
7
|
};
|
|
@@ -1,4 +1,23 @@
|
|
|
1
|
-
import
|
|
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
|
+
);
|
|
2
21
|
export {
|
|
3
|
-
|
|
22
|
+
c as ProxyTracer
|
|
4
23
|
};
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import { provide as
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
if (!
|
|
1
|
+
import { provide as t, inject as o } from "vue";
|
|
2
|
+
const n = Symbol(), s = () => {
|
|
3
|
+
const r = o(n);
|
|
4
|
+
if (!r)
|
|
5
5
|
throw new Error("useIntl must be used within a IntlProvider");
|
|
6
|
-
return
|
|
7
|
-
},
|
|
6
|
+
return r();
|
|
7
|
+
}, u = (r) => t(n, r);
|
|
8
|
+
function e(r) {
|
|
9
|
+
return r._tag === "Transformation" ? e(r.from) : r;
|
|
10
|
+
}
|
|
8
11
|
export {
|
|
9
|
-
|
|
12
|
+
e as getTransformationFrom,
|
|
13
|
+
u as provideIntl,
|
|
10
14
|
s as useIntl,
|
|
11
|
-
|
|
15
|
+
n as useIntlKey
|
|
12
16
|
};
|
|
@@ -1,25 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
|
|
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 = (
|
|
5
6
|
/** @class */
|
|
6
|
-
|
|
7
|
-
function t(
|
|
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
|
-
};
|
|
7
|
+
(function() {
|
|
8
|
+
function t() {
|
|
18
9
|
}
|
|
19
|
-
return t
|
|
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;
|
|
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
|
-
|
|
24
|
-
a as createContextKey
|
|
31
|
+
I as NoopTracer
|
|
25
32
|
};
|
|
@@ -1,7 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ProxyTracer as i } from "./vue-components.es29.js";
|
|
2
|
+
import { NoopTracerProvider as n } from "./vue-components.es32.js";
|
|
3
|
+
var c = new n(), g = (
|
|
4
|
+
/** @class */
|
|
5
|
+
(function() {
|
|
6
|
+
function t() {
|
|
7
|
+
}
|
|
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;
|
|
20
|
+
})()
|
|
21
|
+
);
|
|
5
22
|
export {
|
|
6
|
-
|
|
23
|
+
g as ProxyTracerProvider
|
|
7
24
|
};
|
|
@@ -1,23 +1,14 @@
|
|
|
1
|
-
import { NoopTracer as o } from "./vue-components.
|
|
2
|
-
var
|
|
1
|
+
import { NoopTracer as o } from "./vue-components.es30.js";
|
|
2
|
+
var p = (
|
|
3
3
|
/** @class */
|
|
4
4
|
(function() {
|
|
5
|
-
function r(
|
|
6
|
-
this._provider = t, this.name = e, this.version = n, this.options = a;
|
|
5
|
+
function r() {
|
|
7
6
|
}
|
|
8
|
-
return r.prototype.
|
|
9
|
-
return
|
|
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;
|
|
7
|
+
return r.prototype.getTracer = function(e, n, t) {
|
|
8
|
+
return new o();
|
|
18
9
|
}, r;
|
|
19
10
|
})()
|
|
20
11
|
);
|
|
21
12
|
export {
|
|
22
|
-
|
|
13
|
+
p as NoopTracerProvider
|
|
23
14
|
};
|
|
@@ -1,32 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var f = l.getInstance(), I = (
|
|
6
|
-
/** @class */
|
|
7
|
-
(function() {
|
|
8
|
-
function t() {
|
|
9
|
-
}
|
|
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;
|
|
25
|
-
})()
|
|
26
|
-
);
|
|
27
|
-
function g(t) {
|
|
28
|
-
return typeof t == "object" && typeof t.spanId == "string" && typeof t.traceId == "string" && typeof t.traceFlags == "number";
|
|
29
|
-
}
|
|
1
|
+
var N;
|
|
2
|
+
(function(E) {
|
|
3
|
+
E[E.NONE = 0] = "NONE", E[E.SAMPLED = 1] = "SAMPLED";
|
|
4
|
+
})(N || (N = {}));
|
|
30
5
|
export {
|
|
31
|
-
|
|
6
|
+
N as TraceFlags
|
|
32
7
|
};
|
|
@@ -1,24 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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;
|
|
20
|
-
})()
|
|
21
|
-
);
|
|
1
|
+
import { INVALID_TRACEID as r, INVALID_SPANID as t } from "./vue-components.es35.js";
|
|
2
|
+
import { NonRecordingSpan as i } from "./vue-components.es36.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
|
+
}
|
|
22
16
|
export {
|
|
23
|
-
|
|
17
|
+
A as isSpanContextValid,
|
|
18
|
+
e as isValidSpanId,
|
|
19
|
+
I as isValidTraceId,
|
|
20
|
+
D as wrapSpanContext
|
|
24
21
|
};
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return r.prototype.getTracer = function(e, n, t) {
|
|
8
|
-
return new o();
|
|
9
|
-
}, r;
|
|
10
|
-
})()
|
|
11
|
-
);
|
|
1
|
+
import { TraceFlags as I } from "./vue-components.es33.js";
|
|
2
|
+
var a = "0000000000000000", r = "00000000000000000000000000000000", A = {
|
|
3
|
+
traceId: r,
|
|
4
|
+
spanId: a,
|
|
5
|
+
traceFlags: I.NONE
|
|
6
|
+
};
|
|
12
7
|
export {
|
|
13
|
-
|
|
8
|
+
a as INVALID_SPANID,
|
|
9
|
+
A as INVALID_SPAN_CONTEXT,
|
|
10
|
+
r as INVALID_TRACEID
|
|
14
11
|
};
|
|
@@ -1,7 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
(
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { INVALID_SPAN_CONTEXT as o } from "./vue-components.es35.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
|
+
);
|
|
5
31
|
export {
|
|
6
|
-
|
|
32
|
+
i as NonRecordingSpan
|
|
7
33
|
};
|