@effect-app/vue-components 1.8.8 → 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.
Files changed (34) hide show
  1. package/dist/types/components/OmegaForm/OmegaErrorsInternal.vue.d.ts +4 -6
  2. package/dist/types/components/OmegaForm/OmegaFormStuff.d.ts +0 -1
  3. package/dist/types/components/OmegaForm/useOmegaForm.d.ts +1 -2
  4. package/dist/vue-components.es10.js +10 -10
  5. package/dist/vue-components.es12.js +7 -7
  6. package/dist/vue-components.es16.js +2 -2
  7. package/dist/vue-components.es18.js +1 -1
  8. package/dist/vue-components.es19.js +1 -1
  9. package/dist/vue-components.es29.js +38 -48
  10. package/dist/vue-components.es32.js +1 -1
  11. package/dist/vue-components.es35.js +22 -10
  12. package/dist/vue-components.es36.js +5 -23
  13. package/dist/vue-components.es37.js +21 -5
  14. package/dist/vue-components.es38.js +25 -16
  15. package/dist/vue-components.es39.js +15 -23
  16. package/dist/vue-components.es40.js +7 -17
  17. package/dist/vue-components.es41.js +5 -12
  18. package/dist/vue-components.es42.js +19 -5
  19. package/dist/vue-components.es43.js +9 -19
  20. package/dist/vue-components.es44.js +31 -9
  21. package/dist/vue-components.es45.js +42 -25
  22. package/dist/vue-components.es46.js +16 -38
  23. package/dist/vue-components.es47.js +11 -26
  24. package/dist/vue-components.es48.js +1 -1
  25. package/dist/vue-components.es50.js +1 -1
  26. package/dist/vue-components.es52.js +3 -3
  27. package/dist/vue-components.es53.js +1 -1
  28. package/dist/vue-components.es7.js +99 -88
  29. package/dist/vue-components.es9.js +27 -28
  30. package/package.json +4 -4
  31. package/src/components/OmegaForm/OmegaErrorsInternal.vue +6 -24
  32. package/src/components/OmegaForm/OmegaFormStuff.ts +0 -4
  33. package/src/components/OmegaForm/createUseFormWithCustomInput.ts +1 -1
  34. package/src/components/OmegaForm/useOmegaForm.ts +24 -11
@@ -1,10 +1,8 @@
1
- import { type OmegaError, type OmegaFormApi } from "./OmegaFormStuff";
1
+ import type { StandardSchemaV1Issue } from "@tanstack/vue-form";
2
+ import { type OmegaError } from "./OmegaFormStuff";
2
3
  type __VLS_Props = {
3
- form: OmegaFormApi<any, any>;
4
- fieldMap: Map<string, {
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, ShowErrorsOn } from "./OmegaFormStuff";
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 t } from "vue";
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 = (r) => (...e) => {
5
- const [o, n, m] = e;
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
- ...m,
10
+ ...p,
11
11
  input: {
12
12
  name: "WrappedInput",
13
13
  inheritAttrs: !1,
14
- setup(p, { attrs: s }) {
15
- return () => t(i, {
16
- ...p,
17
- ...s
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: a, ...u }) => t(r, { field: a, inputProps: u })
20
+ default: ({ field: u, ...a }) => r(e, { ...t, field: u, inputProps: a })
21
21
  });
22
22
  }
23
23
  }
@@ -1,12 +1,12 @@
1
- import { Exit as c, Runtime as s } from "effect";
1
+ import { Exit as c, Runtime as u } from "effect";
2
2
  import { dual as n, isFunction as m } from "./vue-components.es26.js";
3
- const i = Symbol.for("clone-trait"), u = n(2, (e, t) => i in e ? e[i](t) : Object.setPrototypeOf(t, Object.getPrototypeOf(e)));
4
- n(2, (e, t) => u(e, { ...e, ...m(t) ? t(e) : t }));
5
- const b = (e) => new Promise((t, r) => e.addObserver((o) => {
6
- c.isSuccess(o) ? t(o.value) : r(s.makeFiberFailure(o.cause));
3
+ const i = Symbol.for("clone-trait"), a = n(2, (e, t) => i in e ? e[i](t) : Object.setPrototypeOf(t, Object.getPrototypeOf(e)));
4
+ n(2, (e, t) => a(e, { ...e, ...m(t) ? t(e) : t }));
5
+ const p = (e, t) => new Promise((o, s) => e.addObserver((r) => {
6
+ c.isSuccess(r) ? o(r.value) : s(u.makeFiberFailure(r.cause));
7
7
  }));
8
8
  export {
9
- u as clone,
9
+ a as clone,
10
10
  i as cloneTrait,
11
- b as runtimeFiberAsPromise
11
+ p as runtimeFiberAsPromise
12
12
  };
@@ -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-6dbb0b00],.v-leave-to[data-v-6dbb0b00]{max-height:0px;grid-template-rows:0fr;opacity:0}.v-enter-active[data-v-6dbb0b00],.v-leave-active[data-v-6dbb0b00]{display:grid;transition:all .15s}.v-enter-to[data-v-6dbb0b00],.v-leave-from[data-v-6dbb0b00]{grid-template-rows:1fr;max-height:50vh;opacity:1}.error-alert[data-v-6dbb0b00]{transition-behavior:allow-discrete;display:grid;overflow:hidden;min-height:0}.error-alert>*[data-v-6dbb0b00]{min-height:0}.error-list[data-v-6dbb0b00]{list-style-position:inside}div.error-list[data-v-6dbb0b00]{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-6dbb0b00]{grid-template-columns:auto 1fr}.error-link[data-v-6dbb0b00]{grid-column:1 / -1;justify-self:end}}@container (max-width: 17.75rem){div.error-list[data-v-6dbb0b00]{grid-template-columns:1fr}.error-message[data-v-6dbb0b00]{grid-column:1 / -1}}.error-item[data-v-6dbb0b00]{display:contents}a[data-v-6dbb0b00]{min-width:min-content}.error-link[data-v-6dbb0b00]{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-6dbb0b00],.v-leave-to[data-v-6dbb0b00]{max-height:0px;grid-template-rows:0fr;opacity:0}.v-enter-active[data-v-6dbb0b00],.v-leave-active[data-v-6dbb0b00]{display:grid;transition:all .15s}.v-enter-to[data-v-6dbb0b00],.v-leave-from[data-v-6dbb0b00]{grid-template-rows:1fr;max-height:50vh;opacity:1}.error-alert[data-v-6dbb0b00]{transition-behavior:allow-discrete;display:grid;overflow:hidden;min-height:0}.error-alert>*[data-v-6dbb0b00]{min-height:0}.error-list[data-v-6dbb0b00]{list-style-position:inside}div.error-list[data-v-6dbb0b00]{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-6dbb0b00]{grid-template-columns:auto 1fr}.error-link[data-v-6dbb0b00]{grid-column:1 / -1;justify-self:end}}@container (max-width: 17.75rem){div.error-list[data-v-6dbb0b00]{grid-template-columns:1fr}.error-message[data-v-6dbb0b00]{grid-column:1 / -1}}.error-item[data-v-6dbb0b00]{display:contents}a[data-v-6dbb0b00]{min-width:min-content}.error-link[data-v-6dbb0b00]{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)}})();
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-6dbb0b00"]]);
5
+ const e = /* @__PURE__ */ o(r, [["__scopeId", "data-v-d4ffe76f"]]);
6
6
  export {
7
7
  e as default
8
8
  };
@@ -1,4 +1,4 @@
1
- import { TraceAPI as r } from "./vue-components.es47.js";
1
+ import { TraceAPI as r } from "./vue-components.es46.js";
2
2
  var t = r.getInstance();
3
3
  export {
4
4
  t as trace
@@ -1,4 +1,4 @@
1
- import { ContextAPI as t } from "./vue-components.es46.js";
1
+ import { ContextAPI as t } from "./vue-components.es45.js";
2
2
  var o = t.getInstance();
3
3
  export {
4
4
  o as context
@@ -1,63 +1,53 @@
1
- import { defineComponent as x, getCurrentInstance as E, computed as h, createBlock as o, openBlock as t, Transition as I, withCtx as a, createElementBlock as m, createCommentVNode as w, renderSlot as O, normalizeProps as S, guardReactiveProps as V, resolveDynamicComponent as s, unref as i, normalizeClass as N, createElementVNode as d, toDisplayString as c, Fragment as M, renderList as b, createTextVNode as k } from "vue";
2
- import { mdiLink as j } from "@mdi/js";
3
- import { Array as z, Option as y } from "effect-app";
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" }, P = { class: "error-message" }, T = ["href"], $ = { key: 1 }, K = /* @__PURE__ */ x({
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
- form: {},
12
- fieldMap: {}
10
+ generalErrors: {},
11
+ errors: {}
13
12
  },
14
- setup(B) {
15
- const f = E()?.appContext.components.VAlert, u = B, v = u.form.useStore((e) => e.errors), C = u.form.useStore((e) => e.fieldMeta), n = h(
16
- () => z.filterMap(
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 (e, l) => (t(), o(I, null, {
32
- default: a(() => [
33
- n.value.length || p.value.length ? (t(), m("div", D, [
34
- O(e.$slots, "default", S(V({ errors: n.value, showedGeneralErrors: p.value })), () => [
35
- (t(), o(s(i(f) ? "v-alert" : "div"), {
36
- class: N([i(f) ? "mb-4" : "error-alert-content", "mb-4"]),
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: a(() => [
43
- d("div", G, c(i(_)("form.includes_error")) + ": ", 1),
44
- n.value.length ? (t(), o(s(n.value.length > 1 ? "ul" : "div"), {
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: a(() => [
49
- (t(!0), m(M, null, b(n.value, (r) => (t(), o(s(n.value.length > 1 ? "li" : "div"), {
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: a(() => [
54
- d("div", L, c(r.label), 1),
55
- d("div", P, [
56
- (t(), o(s(r.errors.length > 1 ? "ul" : "div"), { class: "error-list" }, {
57
- default: a(() => [
58
- (t(!0), m(M, null, b(r.errors, (g) => (t(), o(s(r.errors.length > 1 ? "li" : "span"), { key: g }, {
59
- default: a(() => [
60
- k(c(g), 1)
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
- d("a", {
58
+ c("a", {
69
59
  href: `#${r.inputId}`,
70
60
  class: "error-link"
71
61
  }, [
72
- (t(), o(s(i(f) ? "v-icon" : "i"), {
73
- icon: i(j),
62
+ (e(), n(s(a(m) ? "v-icon" : "i"), {
63
+ icon: a(N),
74
64
  "aria-hidden": "true"
75
65
  }, {
76
- default: a(() => [...l[0] || (l[0] = [
77
- d("i", null, "🔗", -1)
66
+ default: o(() => [...l[0] || (l[0] = [
67
+ c("i", null, "🔗", -1)
78
68
  ])]),
79
69
  _: 1
80
70
  }, 8, ["icon"])),
81
- k(" " + c(i(_)("form.fix_input")), 1)
82
- ], 8, T)
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
- })) : (t(), m("span", $, c(p.value[0]), 1))
78
+ })) : (e(), d("span", P, u(f.value[0]), 1))
89
79
  ]),
90
80
  _: 1
91
81
  }, 8, ["class"]))
92
82
  ], !0)
93
- ])) : w("", !0)
83
+ ])) : B("", !0)
94
84
  ]),
95
85
  _: 3
96
86
  }));
97
87
  }
98
88
  });
99
89
  export {
100
- K as default
90
+ A as default
101
91
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as m, createElementBlock as d, openBlock as a, withModifiers as l, createElementVNode as u, unref as s, renderSlot as b } from "vue";
2
2
  import { useStore as f } from "@tanstack/vue-form";
3
- import { getOmegaStore as c } from "./vue-components.es35.js";
3
+ import { getOmegaStore as c } from "./vue-components.es47.js";
4
4
  const p = ["disabled"], V = /* @__PURE__ */ m({
5
5
  __name: "OmegaWrapper",
6
6
  props: {
@@ -1,13 +1,25 @@
1
- import { useStore as u } from "@tanstack/vue-form";
2
- import { computed as f } from "vue";
3
- function c(o, t) {
4
- return f(() => t ? u(o.store, (n) => {
5
- const r = {};
6
- for (const e of t)
7
- r[e] = n[e];
8
- return r;
9
- }).value : {});
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
- c as getOmegaStore
23
+ x as ROOT_CONTEXT,
24
+ a as createContextKey
13
25
  };
@@ -1,25 +1,7 @@
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();
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
- x as ROOT_CONTEXT,
24
- a as createContextKey
6
+ R as DiagLogLevel
25
7
  };
@@ -1,7 +1,23 @@
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 { NoopTracer as o } from "./vue-components.es38.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
- R as DiagLogLevel
22
+ c as ProxyTracer
7
23
  };
@@ -1,23 +1,32 @@
1
- import { NoopTracer as o } from "./vue-components.es39.js";
2
- var s = new o(), c = (
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 = (
3
6
  /** @class */
4
7
  (function() {
5
- function r(t, e, n, a) {
6
- this._provider = t, this.name = e, this.version = n, this.options = a;
8
+ function t() {
7
9
  }
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;
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
- c as ProxyTracer
31
+ I as NoopTracer
23
32
  };
@@ -1,32 +1,24 @@
1
- import { ContextAPI as l } from "./vue-components.es46.js";
2
- import { getSpanContext as m, setSpan as d } from "./vue-components.es52.js";
3
- import { NonRecordingSpan as p } from "./vue-components.es45.js";
4
- import { isSpanContextValid as S } from "./vue-components.es43.js";
5
- var f = l.getInstance(), I = (
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 = (
6
4
  /** @class */
7
5
  (function() {
8
6
  function t() {
9
7
  }
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
- }
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
- I as NoopTracer
23
+ g as ProxyTracerProvider
32
24
  };
@@ -1,24 +1,14 @@
1
- import { ProxyTracer as i } from "./vue-components.es38.js";
2
- import { NoopTracerProvider as n } from "./vue-components.es41.js";
3
- var c = new n(), g = (
1
+ import { NoopTracer as o } from "./vue-components.es38.js";
2
+ var p = (
4
3
  /** @class */
5
4
  (function() {
6
- function t() {
5
+ function r() {
7
6
  }
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;
7
+ return r.prototype.getTracer = function(e, n, t) {
8
+ return new o();
9
+ }, r;
20
10
  })()
21
11
  );
22
12
  export {
23
- g as ProxyTracerProvider
13
+ p as NoopTracerProvider
24
14
  };
@@ -1,14 +1,7 @@
1
- import { NoopTracer as o } from "./vue-components.es39.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
+ var N;
2
+ (function(E) {
3
+ E[E.NONE = 0] = "NONE", E[E.SAMPLED = 1] = "SAMPLED";
4
+ })(N || (N = {}));
12
5
  export {
13
- p as NoopTracerProvider
6
+ N as TraceFlags
14
7
  };
@@ -1,7 +1,21 @@
1
- var N;
2
- (function(E) {
3
- E[E.NONE = 0] = "NONE", E[E.SAMPLED = 1] = "SAMPLED";
4
- })(N || (N = {}));
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
+ }
5
16
  export {
6
- N as TraceFlags
17
+ A as isSpanContextValid,
18
+ e as isValidSpanId,
19
+ I as isValidTraceId,
20
+ D as wrapSpanContext
7
21
  };
@@ -1,21 +1,11 @@
1
- import { INVALID_TRACEID as r, INVALID_SPANID as t } from "./vue-components.es44.js";
2
- import { NonRecordingSpan as i } from "./vue-components.es45.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 { 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
+ };
16
7
  export {
17
- A as isSpanContextValid,
18
- e as isValidSpanId,
19
- I as isValidTraceId,
20
- D as wrapSpanContext
8
+ a as INVALID_SPANID,
9
+ A as INVALID_SPAN_CONTEXT,
10
+ r as INVALID_TRACEID
21
11
  };