@effect-app/vue-components 0.27.15 → 1.0.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/types/components/OmegaForm/OmegaArray.vue.d.ts +1 -1
  2. package/dist/types/components/OmegaForm/OmegaErrorsContext.d.ts +4 -4
  3. package/dist/types/components/OmegaForm/OmegaErrorsInternal.vue.d.ts +22 -0
  4. package/dist/types/components/OmegaForm/OmegaWrapper.vue.d.ts +8 -38
  5. package/dist/types/components/OmegaForm/index.d.ts +1 -7
  6. package/dist/types/components/OmegaForm/useOmegaForm.d.ts +68 -4
  7. package/dist/types/utils/index.d.ts +9 -0
  8. package/dist/vue-components.es.js +16 -25
  9. package/dist/vue-components.es10.js +5 -333
  10. package/dist/vue-components.es11.js +54 -6
  11. package/dist/vue-components.es12.js +71 -6
  12. package/dist/vue-components.es13.js +6 -2
  13. package/dist/vue-components.es14.js +6 -2
  14. package/dist/vue-components.es15.js +3 -86
  15. package/dist/vue-components.es16.js +5 -0
  16. package/dist/vue-components.es17.js +90 -7
  17. package/dist/vue-components.es18.js +42 -2
  18. package/dist/vue-components.es19.js +1 -1
  19. package/dist/vue-components.es2.js +10 -20
  20. package/dist/vue-components.es20.js +2 -126
  21. package/dist/vue-components.es21.js +92 -0
  22. package/dist/vue-components.es23.js +7 -5
  23. package/dist/vue-components.es24.js +31 -3
  24. package/dist/vue-components.es26.js +2 -90
  25. package/dist/vue-components.es28.js +22 -41
  26. package/dist/vue-components.es29.js +5 -2
  27. package/dist/vue-components.es3.js +12 -8
  28. package/dist/vue-components.es30.js +18 -20
  29. package/dist/vue-components.es31.js +30 -5
  30. package/dist/vue-components.es32.js +17 -16
  31. package/dist/vue-components.es33.js +7 -25
  32. package/dist/vue-components.es34.js +5 -22
  33. package/dist/vue-components.es35.js +19 -12
  34. package/dist/vue-components.es36.js +9 -5
  35. package/dist/vue-components.es37.js +31 -19
  36. package/dist/vue-components.es38.js +48 -9
  37. package/dist/vue-components.es39.js +20 -25
  38. package/dist/vue-components.es4.js +40 -43
  39. package/dist/vue-components.es40.js +114 -47
  40. package/dist/vue-components.es42.js +4 -65
  41. package/dist/vue-components.es43.js +54 -45
  42. package/dist/vue-components.es44.js +54 -15
  43. package/dist/vue-components.es45.js +15 -31
  44. package/dist/vue-components.es46.js +30 -26
  45. package/dist/vue-components.es47.js +29 -42
  46. package/dist/vue-components.es48.js +41 -114
  47. package/dist/vue-components.es49.js +4 -0
  48. package/dist/vue-components.es5.js +29 -70
  49. package/dist/vue-components.es50.js +44 -4
  50. package/dist/vue-components.es51.js +2 -2
  51. package/dist/vue-components.es6.js +211 -31
  52. package/dist/vue-components.es7.js +331 -49
  53. package/dist/vue-components.es8.js +2 -29
  54. package/dist/vue-components.es9.js +10 -148
  55. package/package.json +2 -2
  56. package/src/components/OmegaForm/OmegaAutoGen.vue +1 -3
  57. package/src/components/OmegaForm/OmegaErrorsContext.ts +10 -8
  58. package/src/components/OmegaForm/{OmegaErrors.vue → OmegaErrorsInternal.vue} +11 -5
  59. package/src/components/OmegaForm/OmegaFormStuff.ts +5 -6
  60. package/src/components/OmegaForm/OmegaWrapper.vue +21 -246
  61. package/src/components/OmegaForm/index.ts +1 -7
  62. package/src/components/OmegaForm/useOmegaForm.ts +230 -10
  63. package/src/utils/index.ts +16 -0
  64. package/dist/types/components/OmegaForm/OmegaErrors.vue.d.ts +0 -15
  65. package/dist/vue-components.es22.js +0 -12
  66. package/dist/vue-components.es25.js +0 -5
  67. package/dist/vue-components.es41.js +0 -28
  68. package/dist/vue-components.es52.js +0 -46
  69. package/dist/vue-components.es53.js +0 -4
@@ -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
- import { isFunction as c } from "./vue-components.es28.js";
2
- const s = c, t = (o) => typeof o == "object" && o !== null, i = (o) => t(o) || s(o);
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 isFunction,
5
- i as isObject,
6
- t as isRecordOrArray
8
+ s as default
7
9
  };
@@ -1,5 +1,33 @@
1
- import { TraceAPI as r } from "./vue-components.es41.js";
2
- var t = r.getInstance();
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.es27.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
- t as trace
32
+ V as default
5
33
  };
@@ -1,92 +1,4 @@
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 { defineComponent as w, getCurrentInstance as x, useId as C, computed as a, watch as f, nextTick as N, onMounted as d, ref as $, watchEffect as k, renderSlot as B, normalizeProps as I, guardReactiveProps as O, createElementVNode as _, normalizeClass as q, createBlock as L, createCommentVNode as P, unref as F, openBlock as S, mergeProps as T } from "vue";
3
- import { useStore as z } from "@tanstack/vue-form";
4
- import { useOmegaErrors as A } from "./vue-components.es8.js";
5
- import D from "./vue-components.es48.js";
6
-
7
- const J = /* @__PURE__ */ w({
8
- inheritAttrs: !1,
9
- __name: "OmegaInternalInput",
10
- props: {
11
- field: {},
12
- meta: {},
13
- label: {},
14
- options: {},
15
- type: {},
16
- validators: {}
17
- },
18
- setup(c) {
19
- const e = c, v = x()?.appContext.components.VTextField, l = C(), o = e.field, r = z(o.store, (t) => t), m = a(() => e.type ? e.type : e.meta?.type === "string" ? e.meta.format === "email" ? "email" : "string" : e.meta?.type || "unknown"), n = a(() => r.value.value), g = a(
20
- () => (
21
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
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
+ import f from "./vue-components.es17.js";
90
2
  export {
91
- J as default
3
+ f as default
92
4
  };
@@ -1,44 +1,25 @@
1
- const f = (c) => typeof c == "function", a = function(c, r) {
2
- switch (c) {
3
- case 0:
4
- case 1:
5
- throw new RangeError(`Invalid arity ${c}`);
6
- case 2:
7
- return function(n, t) {
8
- return arguments.length >= 2 ? r(n, t) : function(e) {
9
- return r(e, n);
10
- };
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;
11
17
  };
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
- };
18
+ }
19
+ return t;
20
+ })()
21
+ ), x = new c();
41
22
  export {
42
- a as dual,
43
- f as isFunction
23
+ x as ROOT_CONTEXT,
24
+ a as createContextKey
44
25
  };
@@ -1,4 +1,7 @@
1
- import f from "./vue-components.es26.js";
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 = {}));
2
5
  export {
3
- f as default
6
+ R as DiagLogLevel
4
7
  };
@@ -1,12 +1,16 @@
1
- import { provide as n, inject as o } from "vue";
2
- const e = Symbol(), s = () => {
3
- const t = o(e);
4
- if (!t)
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 t();
7
- }, i = (t) => n(e, t);
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
- i as provideIntl,
12
+ e as getTransformationFrom,
13
+ u as provideIntl,
10
14
  s as useIntl,
11
- e as useIntlKey
15
+ n as useIntlKey
12
16
  };
@@ -1,25 +1,23 @@
1
- function a(t) {
2
- return Symbol.for(t);
3
- }
4
- var c = (
1
+ import { NoopTracer as o } from "./vue-components.es31.js";
2
+ var s = new o(), c = (
5
3
  /** @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
- };
4
+ (function() {
5
+ function r(t, e, n, a) {
6
+ this._provider = t, this.name = e, this.version = n, this.options = a;
18
7
  }
19
- return 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;
20
19
  })()
21
- ), x = new c();
20
+ );
22
21
  export {
23
- x as ROOT_CONTEXT,
24
- a as createContextKey
22
+ c as ProxyTracer
25
23
  };
@@ -1,7 +1,32 @@
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 = {}));
1
+ import { ContextAPI as l } from "./vue-components.es38.js";
2
+ import { getSpanContext as m, setSpan as d } from "./vue-components.es47.js";
3
+ import { NonRecordingSpan as p } from "./vue-components.es37.js";
4
+ import { isSpanContextValid as S } from "./vue-components.es35.js";
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
+ }
5
30
  export {
6
- R as DiagLogLevel
31
+ I as NoopTracer
7
32
  };
@@ -1,23 +1,24 @@
1
- import { NoopTracer as o } from "./vue-components.es33.js";
2
- var s = new o(), c = (
1
+ import { ProxyTracer as i } from "./vue-components.es30.js";
2
+ import { NoopTracerProvider as n } from "./vue-components.es33.js";
3
+ var c = new n(), g = (
3
4
  /** @class */
4
5
  (function() {
5
- function r(t, e, n, a) {
6
- this._provider = t, this.name = e, this.version = n, this.options = a;
6
+ function t() {
7
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;
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;
19
20
  })()
20
21
  );
21
22
  export {
22
- c as ProxyTracer
23
+ g as ProxyTracerProvider
23
24
  };
@@ -1,32 +1,14 @@
1
- import { ContextAPI as l } from "./vue-components.es40.js";
2
- import { getSpanContext as m, setSpan as d } from "./vue-components.es46.js";
3
- import { NonRecordingSpan as p } from "./vue-components.es39.js";
4
- import { isSpanContextValid as S } from "./vue-components.es37.js";
5
- var f = l.getInstance(), I = (
1
+ import { NoopTracer as o } from "./vue-components.es31.js";
2
+ var p = (
6
3
  /** @class */
7
4
  (function() {
8
- function t() {
5
+ function r() {
9
6
  }
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;
7
+ return r.prototype.getTracer = function(e, n, t) {
8
+ return new o();
9
+ }, r;
25
10
  })()
26
11
  );
27
- function g(t) {
28
- return typeof t == "object" && typeof t.spanId == "string" && typeof t.traceId == "string" && typeof t.traceFlags == "number";
29
- }
30
12
  export {
31
- I as NoopTracer
13
+ p as NoopTracerProvider
32
14
  };
@@ -1,24 +1,7 @@
1
- import { ProxyTracer as i } from "./vue-components.es32.js";
2
- import { NoopTracerProvider as n } from "./vue-components.es35.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
- );
1
+ var N;
2
+ (function(E) {
3
+ E[E.NONE = 0] = "NONE", E[E.SAMPLED = 1] = "SAMPLED";
4
+ })(N || (N = {}));
22
5
  export {
23
- g as ProxyTracerProvider
6
+ N as TraceFlags
24
7
  };
@@ -1,14 +1,21 @@
1
- import { NoopTracer as o } from "./vue-components.es33.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
- );
1
+ import { INVALID_TRACEID as r, INVALID_SPANID as t } from "./vue-components.es36.js";
2
+ import { NonRecordingSpan as i } from "./vue-components.es37.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
+ }
12
16
  export {
13
- p as NoopTracerProvider
17
+ A as isSpanContextValid,
18
+ e as isValidSpanId,
19
+ I as isValidTraceId,
20
+ D as wrapSpanContext
14
21
  };
@@ -1,7 +1,11 @@
1
- var N;
2
- (function(E) {
3
- E[E.NONE = 0] = "NONE", E[E.SAMPLED = 1] = "SAMPLED";
4
- })(N || (N = {}));
1
+ import { TraceFlags as I } from "./vue-components.es34.js";
2
+ var a = "0000000000000000", r = "00000000000000000000000000000000", A = {
3
+ traceId: r,
4
+ spanId: a,
5
+ traceFlags: I.NONE
6
+ };
5
7
  export {
6
- N as TraceFlags
8
+ a as INVALID_SPANID,
9
+ A as INVALID_SPAN_CONTEXT,
10
+ r as INVALID_TRACEID
7
11
  };
@@ -1,21 +1,33 @@
1
- import { INVALID_TRACEID as r, INVALID_SPANID as t } from "./vue-components.es38.js";
2
- import { NonRecordingSpan as i } from "./vue-components.es39.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
- }
1
+ import { INVALID_SPAN_CONTEXT as o } from "./vue-components.es36.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
+ );
16
31
  export {
17
- A as isSpanContextValid,
18
- e as isValidSpanId,
19
- I as isValidTraceId,
20
- D as wrapSpanContext
32
+ i as NonRecordingSpan
21
33
  };