@effect-app/vue-components 1.8.9 → 1.8.10
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/OmegaErrorsInternal.vue.d.ts +4 -6
- package/dist/types/components/OmegaForm/OmegaFormStuff.d.ts +0 -1
- package/dist/types/components/OmegaForm/useOmegaForm.d.ts +1 -2
- package/dist/vue-components.es10.js +10 -10
- package/dist/vue-components.es16.js +2 -2
- package/dist/vue-components.es18.js +1 -1
- package/dist/vue-components.es19.js +1 -1
- package/dist/vue-components.es29.js +38 -48
- package/dist/vue-components.es34.js +4 -23
- 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 -4
- package/dist/vue-components.es48.js +1 -1
- package/dist/vue-components.es50.js +1 -1
- package/dist/vue-components.es52.js +3 -3
- package/dist/vue-components.es53.js +1 -1
- package/dist/vue-components.es7.js +99 -88
- package/package.json +2 -2
- package/src/components/OmegaForm/OmegaErrorsInternal.vue +6 -24
- package/src/components/OmegaForm/OmegaFormStuff.ts +0 -2
- package/src/components/OmegaForm/createUseFormWithCustomInput.ts +1 -1
- package/src/components/OmegaForm/useOmegaForm.ts +24 -11
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { StandardSchemaV1Issue } from "@tanstack/vue-form";
|
|
2
|
+
import { type OmegaError } from "./OmegaFormStuff";
|
|
2
3
|
type __VLS_Props = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
id: string;
|
|
6
|
-
label: string;
|
|
7
|
-
}>;
|
|
4
|
+
generalErrors: (Record<string, StandardSchemaV1Issue[]> | undefined)[];
|
|
5
|
+
errors: OmegaError[];
|
|
8
6
|
};
|
|
9
7
|
declare var __VLS_6: {
|
|
10
8
|
errors: OmegaError[];
|
|
@@ -3,7 +3,6 @@ import { type DeepKeys, type FieldAsyncValidateOrFn, type FieldValidateOrFn, typ
|
|
|
3
3
|
import { type RuntimeFiber } from "effect/Fiber";
|
|
4
4
|
import { type OmegaFieldInternalApi } from "./InputProps";
|
|
5
5
|
import { type OF, type OmegaFormReturn } from "./useOmegaForm";
|
|
6
|
-
export type ShowErrorsOn = "onChange" | "onBlur" | "onSubmit";
|
|
7
6
|
export type BaseProps<From, TName extends DeepKeys<From>> = {
|
|
8
7
|
/** Will fallback to i18n when not specified */
|
|
9
8
|
label?: string;
|
|
@@ -2,7 +2,7 @@ import { type DeepKeys, DeepValue, StandardSchemaV1Issue, ValidationError, Valid
|
|
|
2
2
|
import { Effect, Order, S } from "effect-app";
|
|
3
3
|
import { ComputedRef, type InjectionKey } from "vue";
|
|
4
4
|
import { MergedInputProps } from "./InputProps";
|
|
5
|
-
import { BaseProps, DefaultTypeProps, type FormProps, type MetaRecord, type NestedKeyOf, OmegaAutoGenMeta, OmegaError, type OmegaFormApi, OmegaFormState, OmegaInputProps
|
|
5
|
+
import { BaseProps, DefaultTypeProps, type FormProps, type MetaRecord, type NestedKeyOf, OmegaAutoGenMeta, OmegaError, type OmegaFormApi, OmegaFormState, OmegaInputProps } from "./OmegaFormStuff";
|
|
6
6
|
type keysRule<T> = {
|
|
7
7
|
keys?: NestedKeyOf<T>[];
|
|
8
8
|
banKeys?: "You should only use one of banKeys or keys, not both, moron";
|
|
@@ -26,7 +26,6 @@ export declare class FormErrors<From> extends FormErrors_base<{
|
|
|
26
26
|
}
|
|
27
27
|
export type OmegaConfig<T> = {
|
|
28
28
|
i18nNamespace?: string;
|
|
29
|
-
showErrorsOn?: ShowErrorsOn;
|
|
30
29
|
persistency?: {
|
|
31
30
|
/** Order of importance:
|
|
32
31
|
* - "querystring": Highest priority when persisting
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { h as
|
|
1
|
+
import { h as r } from "vue";
|
|
2
2
|
import i from "./vue-components.es5.js";
|
|
3
3
|
import { useOmegaForm as f } from "./vue-components.es7.js";
|
|
4
|
-
const g = (
|
|
5
|
-
const [
|
|
4
|
+
const g = (e) => (...o) => {
|
|
5
|
+
const [n, m, p] = o;
|
|
6
6
|
return f(
|
|
7
|
-
o,
|
|
8
7
|
n,
|
|
8
|
+
m,
|
|
9
9
|
{
|
|
10
|
-
...
|
|
10
|
+
...p,
|
|
11
11
|
input: {
|
|
12
12
|
name: "WrappedInput",
|
|
13
13
|
inheritAttrs: !1,
|
|
14
|
-
setup(
|
|
15
|
-
return () =>
|
|
16
|
-
...
|
|
17
|
-
...
|
|
14
|
+
setup(s, { attrs: t }) {
|
|
15
|
+
return () => r(i, {
|
|
16
|
+
...s,
|
|
17
|
+
...t
|
|
18
18
|
}, {
|
|
19
19
|
// Override the default slot that OmegaInternalInput provides
|
|
20
|
-
default: ({ field:
|
|
20
|
+
default: ({ field: u, ...a }) => r(e, { ...t, field: u, inputProps: a })
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");if(a.appendChild(document.createTextNode(".v-enter-from[data-v-
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");if(a.appendChild(document.createTextNode(".v-enter-from[data-v-d4ffe76f],.v-leave-to[data-v-d4ffe76f]{max-height:0px;grid-template-rows:0fr;opacity:0}.v-enter-active[data-v-d4ffe76f],.v-leave-active[data-v-d4ffe76f]{display:grid;transition:all .15s}.v-enter-to[data-v-d4ffe76f],.v-leave-from[data-v-d4ffe76f]{grid-template-rows:1fr;max-height:50vh;opacity:1}.error-alert[data-v-d4ffe76f]{transition-behavior:allow-discrete;display:grid;overflow:hidden;min-height:0}.error-alert>*[data-v-d4ffe76f]{min-height:0}.error-list[data-v-d4ffe76f]{list-style-position:inside}div.error-list[data-v-d4ffe76f]{container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;gap:1.5em;align-items:start}@container (max-width: 27.125rem){div.error-list[data-v-d4ffe76f]{grid-template-columns:auto 1fr}.error-link[data-v-d4ffe76f]{grid-column:1 / -1;justify-self:end}}@container (max-width: 17.75rem){div.error-list[data-v-d4ffe76f]{grid-template-columns:1fr}.error-message[data-v-d4ffe76f]{grid-column:1 / -1}}.error-item[data-v-d4ffe76f]{display:contents}a[data-v-d4ffe76f]{min-width:min-content}.error-link[data-v-d4ffe76f]{align-items:center;color:inherit;display:inline-flex;flex-wrap:wrap;gap:.25em;padding-bottom:1em;text-decoration:none}")),document.head.appendChild(a),window.customElements){const e=window.customElements.define;window.customElements.define=function(r,t){const i=t.prototype.connectedCallback;return t.prototype.connectedCallback=function(){if(i&&i.call(this),this.shadowRoot){const d=document.createElement("style");d.appendChild(document.createTextNode(".v-enter-from[data-v-d4ffe76f],.v-leave-to[data-v-d4ffe76f]{max-height:0px;grid-template-rows:0fr;opacity:0}.v-enter-active[data-v-d4ffe76f],.v-leave-active[data-v-d4ffe76f]{display:grid;transition:all .15s}.v-enter-to[data-v-d4ffe76f],.v-leave-from[data-v-d4ffe76f]{grid-template-rows:1fr;max-height:50vh;opacity:1}.error-alert[data-v-d4ffe76f]{transition-behavior:allow-discrete;display:grid;overflow:hidden;min-height:0}.error-alert>*[data-v-d4ffe76f]{min-height:0}.error-list[data-v-d4ffe76f]{list-style-position:inside}div.error-list[data-v-d4ffe76f]{container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;gap:1.5em;align-items:start}@container (max-width: 27.125rem){div.error-list[data-v-d4ffe76f]{grid-template-columns:auto 1fr}.error-link[data-v-d4ffe76f]{grid-column:1 / -1;justify-self:end}}@container (max-width: 17.75rem){div.error-list[data-v-d4ffe76f]{grid-template-columns:1fr}.error-message[data-v-d4ffe76f]{grid-column:1 / -1}}.error-item[data-v-d4ffe76f]{display:contents}a[data-v-d4ffe76f]{min-width:min-content}.error-link[data-v-d4ffe76f]{align-items:center;color:inherit;display:inline-flex;flex-wrap:wrap;gap:.25em;padding-bottom:1em;text-decoration:none}")),this.shadowRoot.appendChild(d)}},e.call(window.customElements,r,t)}}}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
2
|
import r from "./vue-components.es29.js";
|
|
3
3
|
|
|
4
4
|
import o from "./vue-components.es31.js";
|
|
5
|
-
const e = /* @__PURE__ */ o(r, [["__scopeId", "data-v-
|
|
5
|
+
const e = /* @__PURE__ */ o(r, [["__scopeId", "data-v-d4ffe76f"]]);
|
|
6
6
|
export {
|
|
7
7
|
e as default
|
|
8
8
|
};
|
|
@@ -1,63 +1,53 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { mdiLink as
|
|
3
|
-
import {
|
|
4
|
-
import { useIntl as A } from "./vue-components.es3.js";
|
|
1
|
+
import { defineComponent as y, getCurrentInstance as E, computed as C, createBlock as n, openBlock as e, Transition as x, withCtx as o, createElementBlock as d, createCommentVNode as B, renderSlot as b, normalizeProps as I, guardReactiveProps as w, resolveDynamicComponent as s, unref as a, normalizeClass as V, createElementVNode as c, toDisplayString as u, Fragment as p, renderList as _, createTextVNode as k } from "vue";
|
|
2
|
+
import { mdiLink as N } from "@mdi/js";
|
|
3
|
+
import { useIntl as z } from "./vue-components.es3.js";
|
|
5
4
|
const D = {
|
|
6
5
|
key: 0,
|
|
7
6
|
class: "error-alert"
|
|
8
|
-
}, G = { class: "text-h6 mb-3" }, L = { class: "font-weight-medium" },
|
|
7
|
+
}, G = { class: "text-h6 mb-3" }, L = { class: "font-weight-medium" }, M = { class: "error-message" }, O = ["href"], P = { key: 1 }, A = /* @__PURE__ */ y({
|
|
9
8
|
__name: "OmegaErrorsInternal",
|
|
10
9
|
props: {
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
generalErrors: {},
|
|
11
|
+
errors: {}
|
|
13
12
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
16
|
-
() =>
|
|
17
|
-
Object.entries(C.value),
|
|
18
|
-
([e, l]) => (l.errors ?? []).length && u.fieldMap.get(e)?.id ? y.some({
|
|
19
|
-
label: u.fieldMap.get(e).label,
|
|
20
|
-
inputId: u.fieldMap.get(e).id,
|
|
21
|
-
errors: (l.errors ?? []).map((r) => r.message).filter(Boolean)
|
|
22
|
-
}) : y.none()
|
|
23
|
-
)
|
|
24
|
-
), { trans: _ } = A(), p = h(() => v.value ? v.value.filter((e) => !!e).flatMap(
|
|
25
|
-
(e) => Object.values(e).filter((l) => !!l).flatMap(
|
|
13
|
+
setup(t) {
|
|
14
|
+
const m = E()?.appContext.components.VAlert, h = t, { trans: g } = z(), f = C(() => h.generalErrors ? h.generalErrors.filter((i) => !!i).flatMap(
|
|
15
|
+
(i) => Object.values(i).filter((l) => !!l).flatMap(
|
|
26
16
|
(l) => l.filter(
|
|
27
17
|
(r) => !!r?.message
|
|
28
18
|
).map((r) => r.message)
|
|
29
19
|
)
|
|
30
20
|
) : []);
|
|
31
|
-
return (
|
|
32
|
-
default:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
(
|
|
36
|
-
class:
|
|
21
|
+
return (i, l) => (e(), n(x, null, {
|
|
22
|
+
default: o(() => [
|
|
23
|
+
t.errors.length || f.value.length ? (e(), d("div", D, [
|
|
24
|
+
b(i.$slots, "default", I(w({ errors: t.errors, showedGeneralErrors: f.value })), () => [
|
|
25
|
+
(e(), n(s(a(m) ? "v-alert" : "div"), {
|
|
26
|
+
class: V([a(m) ? "mb-4" : "error-alert-content", "mb-4"]),
|
|
37
27
|
type: "error",
|
|
38
28
|
variant: "tonal",
|
|
39
29
|
role: "alert",
|
|
40
30
|
"aria-live": "polite"
|
|
41
31
|
}, {
|
|
42
|
-
default:
|
|
43
|
-
|
|
44
|
-
|
|
32
|
+
default: o(() => [
|
|
33
|
+
c("div", G, u(a(g)("form.includes_error")) + ": ", 1),
|
|
34
|
+
t.errors.length ? (e(), n(s(t.errors.length > 1 ? "ul" : "div"), {
|
|
45
35
|
key: 0,
|
|
46
36
|
class: "error-list"
|
|
47
37
|
}, {
|
|
48
|
-
default:
|
|
49
|
-
(
|
|
38
|
+
default: o(() => [
|
|
39
|
+
(e(!0), d(p, null, _(t.errors, (r) => (e(), n(s(t.errors.length > 1 ? "li" : "div"), {
|
|
50
40
|
key: r.inputId,
|
|
51
41
|
class: "error-item"
|
|
52
42
|
}, {
|
|
53
|
-
default:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
(
|
|
57
|
-
default:
|
|
58
|
-
(
|
|
59
|
-
default:
|
|
60
|
-
k(
|
|
43
|
+
default: o(() => [
|
|
44
|
+
c("div", L, u(r.label), 1),
|
|
45
|
+
c("div", M, [
|
|
46
|
+
(e(), n(s(r.errors.length > 1 ? "ul" : "div"), { class: "error-list" }, {
|
|
47
|
+
default: o(() => [
|
|
48
|
+
(e(!0), d(p, null, _(r.errors, (v) => (e(), n(s(r.errors.length > 1 ? "li" : "span"), { key: v }, {
|
|
49
|
+
default: o(() => [
|
|
50
|
+
k(u(v), 1)
|
|
61
51
|
]),
|
|
62
52
|
_: 2
|
|
63
53
|
}, 1024))), 128))
|
|
@@ -65,37 +55,37 @@ const D = {
|
|
|
65
55
|
_: 2
|
|
66
56
|
}, 1024))
|
|
67
57
|
]),
|
|
68
|
-
|
|
58
|
+
c("a", {
|
|
69
59
|
href: `#${r.inputId}`,
|
|
70
60
|
class: "error-link"
|
|
71
61
|
}, [
|
|
72
|
-
(
|
|
73
|
-
icon:
|
|
62
|
+
(e(), n(s(a(m) ? "v-icon" : "i"), {
|
|
63
|
+
icon: a(N),
|
|
74
64
|
"aria-hidden": "true"
|
|
75
65
|
}, {
|
|
76
|
-
default:
|
|
77
|
-
|
|
66
|
+
default: o(() => [...l[0] || (l[0] = [
|
|
67
|
+
c("i", null, "🔗", -1)
|
|
78
68
|
])]),
|
|
79
69
|
_: 1
|
|
80
70
|
}, 8, ["icon"])),
|
|
81
|
-
k(" " +
|
|
82
|
-
], 8,
|
|
71
|
+
k(" " + u(a(g)("form.fix_input")), 1)
|
|
72
|
+
], 8, O)
|
|
83
73
|
]),
|
|
84
74
|
_: 2
|
|
85
75
|
}, 1024))), 128))
|
|
86
76
|
]),
|
|
87
77
|
_: 1
|
|
88
|
-
})) : (
|
|
78
|
+
})) : (e(), d("span", P, u(f.value[0]), 1))
|
|
89
79
|
]),
|
|
90
80
|
_: 1
|
|
91
81
|
}, 8, ["class"]))
|
|
92
82
|
], !0)
|
|
93
|
-
])) :
|
|
83
|
+
])) : B("", !0)
|
|
94
84
|
]),
|
|
95
85
|
_: 3
|
|
96
86
|
}));
|
|
97
87
|
}
|
|
98
88
|
});
|
|
99
89
|
export {
|
|
100
|
-
|
|
90
|
+
A as default
|
|
101
91
|
};
|
|
@@ -1,25 +1,6 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
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
|
+
(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.es24.js";
|
|
3
|
+
|
|
22
4
|
export {
|
|
23
|
-
|
|
24
|
-
a as createContextKey
|
|
5
|
+
o as default
|
|
25
6
|
};
|
|
@@ -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.es52.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
|
};
|
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
}
|
|
1
|
+
var N;
|
|
2
|
+
(function(E) {
|
|
3
|
+
E[E.NONE = 0] = "NONE", E[E.SAMPLED = 1] = "SAMPLED";
|
|
4
|
+
})(N || (N = {}));
|
|
16
5
|
export {
|
|
17
|
-
|
|
18
|
-
e as isValidSpanId,
|
|
19
|
-
I as isValidTraceId,
|
|
20
|
-
D as wrapSpanContext
|
|
6
|
+
N as TraceFlags
|
|
21
7
|
};
|
|
@@ -1,11 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
1
|
+
import { INVALID_TRACEID as r, INVALID_SPANID as t } from "./vue-components.es43.js";
|
|
2
|
+
import { NonRecordingSpan as i } from "./vue-components.es44.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
|
+
}
|
|
7
16
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
17
|
+
A as isSpanContextValid,
|
|
18
|
+
e as isValidSpanId,
|
|
19
|
+
I as isValidTraceId,
|
|
20
|
+
D as wrapSpanContext
|
|
11
21
|
};
|
|
@@ -1,33 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
);
|
|
1
|
+
import { TraceFlags as I } from "./vue-components.es41.js";
|
|
2
|
+
var a = "0000000000000000", r = "00000000000000000000000000000000", A = {
|
|
3
|
+
traceId: r,
|
|
4
|
+
spanId: a,
|
|
5
|
+
traceFlags: I.NONE
|
|
6
|
+
};
|
|
31
7
|
export {
|
|
32
|
-
|
|
8
|
+
a as INVALID_SPANID,
|
|
9
|
+
A as INVALID_SPAN_CONTEXT,
|
|
10
|
+
r as INVALID_TRACEID
|
|
33
11
|
};
|