@effect-app/vue-components 0.27.8 → 0.27.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 (42) hide show
  1. package/dist/types/components/OmegaForm/InputProps.d.ts +2 -1
  2. package/dist/types/components/OmegaForm/OmegaFormStuff.d.ts +1 -1
  3. package/dist/types/components/OmegaForm/OmegaInput.vue.d.ts +1 -1
  4. package/dist/types/components/OmegaForm/OmegaInternalInput.vue.d.ts +1 -1
  5. package/dist/vue-components.es20.js +1 -1
  6. package/dist/vue-components.es22.js +1 -1
  7. package/dist/vue-components.es23.js +1 -1
  8. package/dist/vue-components.es24.js +1 -1
  9. package/dist/vue-components.es25.js +1 -1
  10. package/dist/vue-components.es26.js +41 -89
  11. package/dist/vue-components.es27.js +90 -11
  12. package/dist/vue-components.es28.js +11 -42
  13. package/dist/vue-components.es29.js +23 -2
  14. package/dist/vue-components.es30.js +5 -23
  15. package/dist/vue-components.es31.js +21 -5
  16. package/dist/vue-components.es32.js +25 -16
  17. package/dist/vue-components.es33.js +15 -23
  18. package/dist/vue-components.es34.js +7 -17
  19. package/dist/vue-components.es35.js +5 -12
  20. package/dist/vue-components.es36.js +19 -5
  21. package/dist/vue-components.es37.js +9 -19
  22. package/dist/vue-components.es38.js +31 -9
  23. package/dist/vue-components.es39.js +42 -25
  24. package/dist/vue-components.es40.js +16 -38
  25. package/dist/vue-components.es41.js +2 -26
  26. package/dist/vue-components.es42.js +64 -114
  27. package/dist/vue-components.es43.js +58 -0
  28. package/dist/vue-components.es44.js +16 -64
  29. package/dist/vue-components.es45.js +31 -54
  30. package/dist/vue-components.es46.js +28 -16
  31. package/dist/vue-components.es47.js +41 -32
  32. package/dist/vue-components.es48.js +2 -29
  33. package/dist/vue-components.es49.js +43 -41
  34. package/dist/vue-components.es50.js +2 -4
  35. package/dist/vue-components.es51.js +115 -2
  36. package/dist/vue-components.es53.js +4 -2
  37. package/dist/vue-components.es7.js +1 -1
  38. package/package.json +1 -1
  39. package/src/components/OmegaForm/InputProps.ts +2 -1
  40. package/src/components/OmegaForm/OmegaFormStuff.ts +2 -0
  41. package/src/components/OmegaForm/OmegaInputVuetify.vue +1 -1
  42. package/dist/vue-components.es52.js +0 -46
@@ -1,4 +1,5 @@
1
1
  import type { DeepKeys, DeepValue, FieldApi, FieldAsyncValidateOrFn, FieldValidateAsyncFn, FieldValidateFn, FieldValidateOrFn, FormAsyncValidateOrFn, FormValidateOrFn, StandardSchemaV1 } from "@tanstack/vue-form";
2
+ import { type TypeOverride } from "./OmegaFormStuff";
2
3
  export type OmegaFieldInternalApi<From extends Record<PropertyKey, any>, TName extends DeepKeys<From>> = FieldApi<From, TName, DeepValue<From, TName>, FieldValidateOrFn<From, TName, DeepValue<From, TName>> | undefined, StandardSchemaV1<DeepValue<From, TName>, unknown> | FieldValidateFn<From, TName>, StandardSchemaV1<DeepValue<From, TName>, unknown> | FieldValidateAsyncFn<From, TName>, FieldValidateOrFn<From, TName, DeepValue<From, TName>>, FieldAsyncValidateOrFn<From, TName, DeepValue<From, TName>>, FieldValidateOrFn<From, TName, DeepValue<From, TName>> | undefined, FieldAsyncValidateOrFn<From, TName, DeepValue<From, TName>> | undefined, FieldValidateOrFn<From, TName, DeepValue<From, TName>> | undefined, FieldAsyncValidateOrFn<From, TName, DeepValue<From, TName>> | undefined, FormValidateOrFn<From> | undefined, FormValidateOrFn<From> | undefined, any, FormValidateOrFn<From> | undefined, FormAsyncValidateOrFn<From> | undefined, FormValidateOrFn<From> | undefined, FormAsyncValidateOrFn<From> | undefined, FormValidateOrFn<From> | undefined, FormAsyncValidateOrFn<From> | undefined, FormAsyncValidateOrFn<From> | undefined, Record<string, any> | undefined>;
3
4
  export type InputProps<From extends Record<PropertyKey, any>, TName extends DeepKeys<From>> = {
4
5
  id: string;
@@ -13,7 +14,7 @@ export type InputProps<From extends Record<PropertyKey, any>, TName extends Deep
13
14
  error: boolean;
14
15
  field: OmegaFieldInternalApi<From, TName>;
15
16
  setRealDirty: () => void;
16
- type: string;
17
+ type: TypeOverride | "unknown";
17
18
  label: string;
18
19
  options?: {
19
20
  title: string;
@@ -18,7 +18,7 @@ export type OmegaInputProps<From extends Record<PropertyKey, any>, To extends Re
18
18
  }[];
19
19
  type?: TypeOverride;
20
20
  };
21
- export type TypeOverride = "string" | "text" | "number" | "select" | "multiple" | "boolean" | "autocomplete" | "autocompletemultiple" | "switch" | "range";
21
+ export type TypeOverride = "string" | "text" | "number" | "select" | "multiple" | "boolean" | "autocomplete" | "autocompletemultiple" | "switch" | "range" | "password" | "email";
22
22
  export interface OmegaError {
23
23
  label: string;
24
24
  inputId: string;
@@ -17,7 +17,7 @@ declare const _default: <From extends Record<PropertyKey, any>, To extends Recor
17
17
  error: boolean;
18
18
  field: import("./InputProps").OmegaFieldInternalApi<From, any>;
19
19
  setRealDirty: () => void;
20
- type: string;
20
+ type: import("./OmegaFormStuff").TypeOverride | "unknown";
21
21
  label: string;
22
22
  options?: {
23
23
  title: string;
@@ -29,7 +29,7 @@ declare const _default: <From extends Record<PropertyKey, any>, Name extends Dee
29
29
  error: boolean;
30
30
  field: OmegaFieldInternalApi<From, Name>;
31
31
  setRealDirty: () => void;
32
- type: string;
32
+ type: TypeOverride | "unknown";
33
33
  label: string;
34
34
  options?: {
35
35
  title: string;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as B, getCurrentInstance as F, computed as u, onBeforeMount as L, watch as S, createElementBlock as O, openBlock as h, withModifiers as C, createElementVNode as V, unref as m, renderSlot as p, createCommentVNode as k, Fragment as _ } from "vue";
2
2
  import { useStore as y } from "@tanstack/vue-form";
3
- import { getOmegaStore as $ } from "./vue-components.es27.js";
3
+ import { getOmegaStore as $ } from "./vue-components.es28.js";
4
4
  import { provideOmegaErrors as A } from "./vue-components.es8.js";
5
5
  import { useOmegaForm as K } from "./vue-components.es9.js";
6
6
  const W = ["disabled"], H = /* @__PURE__ */ B({
@@ -1,5 +1,5 @@
1
1
  import { Exit as c, Runtime as s } from "effect";
2
- import { dual as n, isFunction as m } from "./vue-components.es28.js";
2
+ import { dual as n, isFunction as m } from "./vue-components.es26.js";
3
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
4
  n(2, (e, t) => u(e, { ...e, ...m(t) ? t(e) : t }));
5
5
  const b = (e) => new Promise((t, r) => e.addObserver((o) => {
@@ -1,4 +1,4 @@
1
- import { isFunction as c } from "./vue-components.es28.js";
1
+ import { isFunction as c } from "./vue-components.es26.js";
2
2
  const s = c, t = (o) => typeof o == "object" && o !== null, i = (o) => t(o) || s(o);
3
3
  export {
4
4
  s as isFunction,
@@ -1,4 +1,4 @@
1
- import { TraceAPI as r } from "./vue-components.es41.js";
1
+ import { TraceAPI as r } from "./vue-components.es40.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.es40.js";
1
+ import { ContextAPI as t } from "./vue-components.es39.js";
2
2
  var o = t.getInstance();
3
3
  export {
4
4
  o as context
@@ -1,92 +1,44 @@
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.es42.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
- ]);
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
+ };
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
+ };
88
39
  }
89
- });
40
+ };
90
41
  export {
91
- J as default
42
+ a as dual,
43
+ f as isFunction
92
44
  };
@@ -1,13 +1,92 @@
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 : {});
10
- }
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.es51.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
+ });
11
90
  export {
12
- c as getOmegaStore
91
+ J as default
13
92
  };
@@ -1,44 +1,13 @@
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
- };
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
+ 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 : {});
10
+ }
41
11
  export {
42
- a as dual,
43
- f as isFunction
12
+ c as getOmegaStore
44
13
  };
@@ -1,4 +1,25 @@
1
- import f from "./vue-components.es26.js";
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();
2
22
  export {
3
- f as default
23
+ x as ROOT_CONTEXT,
24
+ a as createContextKey
4
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.es32.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.es33.js";
2
- var s = new o(), c = (
1
+ import { ContextAPI as l } from "./vue-components.es39.js";
2
+ import { getSpanContext as m, setSpan as d } from "./vue-components.es46.js";
3
+ import { NonRecordingSpan as p } from "./vue-components.es38.js";
4
+ import { isSpanContextValid as S } from "./vue-components.es36.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.es40.js";
2
- import { getSpanContext as m, setSpan as d } from "./vue-components.es48.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 { ProxyTracer as i } from "./vue-components.es31.js";
2
+ import { NoopTracerProvider as n } from "./vue-components.es34.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.es32.js";
2
- import { NoopTracerProvider as n } from "./vue-components.es35.js";
3
- var c = new n(), g = (
1
+ import { NoopTracer as o } from "./vue-components.es32.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.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
+ 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
  };