@effect-app/vue-components 4.0.0-beta.2 → 4.0.0-beta.21
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/OmegaAutoGen.vue.d.ts +1 -1
- package/dist/types/components/OmegaForm/OmegaFormStuff.d.ts +11 -11
- package/dist/types/components/OmegaForm/useOmegaForm.d.ts +2 -4
- package/dist/types/utils/index.d.ts +3 -4
- package/dist/vue-components.es.js +14 -13
- package/dist/vue-components.es10.js +131 -129
- package/dist/vue-components.es11.js +2 -2
- package/dist/vue-components.es12.js +382 -340
- package/dist/vue-components.es16.js +4 -723
- package/dist/vue-components.es17.js +10 -140
- package/dist/vue-components.es18.js +55 -4
- package/dist/vue-components.es19.js +54 -11
- package/dist/vue-components.es2.js +18 -17
- package/dist/vue-components.es20.js +6 -3
- package/dist/vue-components.es21.js +6 -24
- package/dist/vue-components.es22.js +3 -4
- package/dist/vue-components.es23.js +3 -8
- package/dist/vue-components.es24.js +2 -55
- package/dist/vue-components.es25.js +2 -69
- package/dist/vue-components.es26.js +2 -6
- package/dist/vue-components.es27.js +2 -6
- package/dist/vue-components.es28.js +17 -3
- package/dist/vue-components.es29.js +11 -3
- package/dist/vue-components.es3.js +11 -10
- package/dist/vue-components.es30.js +29 -2
- package/dist/vue-components.es31.js +4 -2
- package/dist/vue-components.es32.js +1 -1
- package/dist/vue-components.es33.js +1 -1
- package/dist/vue-components.es34.js +111 -17
- package/dist/vue-components.es36.js +7 -318
- package/dist/vue-components.es37.js +31 -560
- package/dist/vue-components.es39.js +190 -50
- package/dist/vue-components.es41.js +4 -4
- package/dist/vue-components.es42.js +23 -4
- package/dist/vue-components.es43.js +5 -24
- package/dist/vue-components.es44.js +20 -74
- package/dist/vue-components.es45.js +29 -39
- package/dist/vue-components.es46.js +21 -313
- package/dist/vue-components.es47.js +11 -98
- package/dist/vue-components.es48.js +5 -31
- package/dist/vue-components.es49.js +19 -2
- package/dist/vue-components.es5.js +1 -1
- package/dist/vue-components.es50.js +9 -2
- package/dist/vue-components.es51.js +31 -2
- package/dist/vue-components.es52.js +47 -110
- package/dist/{vue-components.es75.js → vue-components.es53.js} +5 -5
- package/dist/vue-components.es54.js +11 -7
- package/dist/vue-components.es55.js +64 -31
- package/dist/{vue-components.es93.js → vue-components.es56.js} +1 -1
- package/dist/vue-components.es57.js +15 -190
- package/dist/{vue-components.es95.js → vue-components.es58.js} +3 -3
- package/dist/vue-components.es59.js +28 -37
- package/dist/vue-components.es60.js +39 -80
- package/dist/vue-components.es61.js +2 -41
- package/dist/vue-components.es62.js +44 -5
- package/dist/vue-components.es63.js +2 -4
- package/dist/vue-components.es7.js +35 -35
- package/package.json +10 -10
- package/src/components/OmegaForm/OmegaAutoGen.vue +25 -30
- package/src/components/OmegaForm/OmegaErrorsInternal.vue +2 -3
- package/src/components/OmegaForm/OmegaFormStuff.ts +311 -301
- package/src/components/OmegaForm/OmegaInternalInput.vue +3 -1
- package/src/components/OmegaForm/useOmegaForm.ts +30 -32
- package/src/utils/index.ts +4 -8
- package/dist/vue-components.es100.js +0 -4
- package/dist/vue-components.es35.js +0 -13
- package/dist/vue-components.es38.js +0 -29
- package/dist/vue-components.es40.js +0 -66
- package/dist/vue-components.es64.js +0 -25
- package/dist/vue-components.es65.js +0 -7
- package/dist/vue-components.es66.js +0 -23
- package/dist/vue-components.es67.js +0 -32
- package/dist/vue-components.es68.js +0 -24
- package/dist/vue-components.es69.js +0 -14
- package/dist/vue-components.es70.js +0 -7
- package/dist/vue-components.es71.js +0 -21
- package/dist/vue-components.es72.js +0 -11
- package/dist/vue-components.es73.js +0 -33
- package/dist/vue-components.es74.js +0 -50
- package/dist/vue-components.es76.js +0 -103
- package/dist/vue-components.es77.js +0 -84
- package/dist/vue-components.es78.js +0 -23
- package/dist/vue-components.es79.js +0 -14
- package/dist/vue-components.es80.js +0 -115
- package/dist/vue-components.es81.js +0 -5
- package/dist/vue-components.es82.js +0 -34
- package/dist/vue-components.es83.js +0 -4
- package/dist/vue-components.es84.js +0 -4
- package/dist/vue-components.es85.js +0 -18
- package/dist/vue-components.es86.js +0 -17
- package/dist/vue-components.es87.js +0 -72
- package/dist/vue-components.es88.js +0 -10
- package/dist/vue-components.es89.js +0 -4
- package/dist/vue-components.es90.js +0 -17
- package/dist/vue-components.es91.js +0 -13
- package/dist/vue-components.es92.js +0 -67
- package/dist/vue-components.es94.js +0 -19
- package/dist/vue-components.es96.js +0 -31
- package/dist/vue-components.es97.js +0 -44
- package/dist/vue-components.es98.js +0 -4
- package/dist/vue-components.es99.js +0 -46
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<slot v-bind="{ ...inputProps.inputProps, field: inputProps.field, state: inputProps.state }">
|
|
3
|
-
<div :class="
|
|
3
|
+
<div :class="rootClass">
|
|
4
4
|
<OmegaInputVuetify
|
|
5
5
|
v-if="vuetified"
|
|
6
6
|
v-bind="{ ...attrsWithoutClass, ...inputProps, class: props.inputClass }"
|
|
@@ -78,6 +78,8 @@ const attrsWithoutClass = computed(() => {
|
|
|
78
78
|
return rest
|
|
79
79
|
})
|
|
80
80
|
|
|
81
|
+
const rootClass = computed(() => attrs.class as any)
|
|
82
|
+
|
|
81
83
|
const id = useId()
|
|
82
84
|
|
|
83
85
|
const fieldApi = props.field
|
|
@@ -3,13 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
import * as api from "@opentelemetry/api"
|
|
5
5
|
import { type DeepKeys, DeepValue, type FormAsyncValidateOrFn, type FormValidateOrFn, type StandardSchemaV1, StandardSchemaV1Issue, useForm, ValidationError, ValidationErrorMap } from "@tanstack/vue-form"
|
|
6
|
+
import { Array, Data, Effect, Fiber, Option, Order, S } from "effect-app"
|
|
6
7
|
import { runtimeFiberAsPromise, UnionToTuples } from "effect-app/utils"
|
|
7
|
-
import * as Data from "effect/Data"
|
|
8
|
-
import * as Effect from "effect/Effect"
|
|
9
|
-
import * as Fiber from "effect/Fiber"
|
|
10
|
-
import * as Option from "effect/Option"
|
|
11
|
-
import * as Order from "effect/Order"
|
|
12
|
-
import * as S from "effect/Schema"
|
|
13
8
|
import { Component, computed, ComputedRef, ConcreteComponent, h, type InjectionKey, onBeforeUnmount, onMounted, onUnmounted, Ref, ref, watch } from "vue"
|
|
14
9
|
import { useIntl } from "../../utils"
|
|
15
10
|
import { MergedInputProps } from "./InputProps"
|
|
@@ -107,26 +102,25 @@ const eHoc = (errorProps: {
|
|
|
107
102
|
|
|
108
103
|
const errors = computed(() => {
|
|
109
104
|
// Collect errors from fieldMeta (field-level errors for registered fields)
|
|
110
|
-
const fieldErrors = Object
|
|
111
|
-
|
|
112
|
-
.
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
return acc
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
const fieldInfo = fieldMap.value.get(key)
|
|
119
|
-
if (!fieldInfo) {
|
|
120
|
-
return acc
|
|
121
|
-
}
|
|
105
|
+
const fieldErrors = Object.entries(fieldMeta.value).reduce<OmegaError[]>((acc, [key, m]) => {
|
|
106
|
+
const fieldErrors = (m as { errors?: Array<{ message?: string }> } | undefined)?.errors ?? []
|
|
107
|
+
if (!fieldErrors.length) {
|
|
108
|
+
return acc
|
|
109
|
+
}
|
|
122
110
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
inputId: fieldInfo.id,
|
|
126
|
-
errors: [fieldErrors[0]?.message].filter(Boolean) as string[]
|
|
127
|
-
})
|
|
111
|
+
const fieldInfo = fieldMap.value.get(key)
|
|
112
|
+
if (!fieldInfo) {
|
|
128
113
|
return acc
|
|
129
|
-
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
acc.push({
|
|
117
|
+
label: fieldInfo.label,
|
|
118
|
+
inputId: fieldInfo.id,
|
|
119
|
+
errors: [fieldErrors[0]?.message].filter(Boolean) as string[]
|
|
120
|
+
})
|
|
121
|
+
|
|
122
|
+
return acc
|
|
123
|
+
}, [])
|
|
130
124
|
|
|
131
125
|
// Collect errors from errorMap.onSubmit ONLY for fields that are NOT registered
|
|
132
126
|
// (registered fields already have their errors in fieldMeta)
|
|
@@ -687,7 +681,7 @@ export const useOmegaForm = <
|
|
|
687
681
|
): OmegaFormReturn<From, To, TypeProps> => {
|
|
688
682
|
if (!schema) throw new Error("Schema is required")
|
|
689
683
|
const standardSchema = S.toStandardSchemaV1(schema)
|
|
690
|
-
const decode = S.
|
|
684
|
+
const decode = S.decodeUnknownEffect(schema)
|
|
691
685
|
|
|
692
686
|
const { meta, unionMeta } = generateMetaFromSchema(schema)
|
|
693
687
|
|
|
@@ -803,10 +797,13 @@ export const useOmegaForm = <
|
|
|
803
797
|
value: parsedValue
|
|
804
798
|
})
|
|
805
799
|
if (Fiber.isFiber(r)) {
|
|
806
|
-
return await runtimeFiberAsPromise(r
|
|
800
|
+
return await runtimeFiberAsPromise(r)
|
|
807
801
|
}
|
|
808
802
|
if (Effect.isEffect(r)) {
|
|
809
|
-
|
|
803
|
+
const effectResult = await Effect.runPromise(r)
|
|
804
|
+
return Fiber.isFiber(effectResult)
|
|
805
|
+
? await runtimeFiberAsPromise(effectResult)
|
|
806
|
+
: effectResult
|
|
810
807
|
}
|
|
811
808
|
return r
|
|
812
809
|
})
|
|
@@ -836,11 +833,12 @@ export const useOmegaForm = <
|
|
|
836
833
|
|
|
837
834
|
const persistFilter = (persistency: OmegaConfig<From>["persistency"]) => {
|
|
838
835
|
if (!persistency) return
|
|
839
|
-
|
|
840
|
-
|
|
836
|
+
const { banKeys, keys } = persistency
|
|
837
|
+
if (Array.isArray(keys)) {
|
|
838
|
+
return createNestedObjectFromPaths(keys as string[])
|
|
841
839
|
}
|
|
842
|
-
if (Array.isArray(
|
|
843
|
-
const subs = Object.keys(meta).filter((metakey) =>
|
|
840
|
+
if (Array.isArray(banKeys)) {
|
|
841
|
+
const subs = Object.keys(meta).filter((metakey) => banKeys.includes(metakey as any))
|
|
844
842
|
return createNestedObjectFromPaths(subs)
|
|
845
843
|
}
|
|
846
844
|
return form.store.state.values
|
|
@@ -939,7 +937,7 @@ export const useOmegaForm = <
|
|
|
939
937
|
? handleSubmitEffect_(options?.meta).pipe(Effect.flatMap(Effect.fnUntraced(function*() {
|
|
940
938
|
const errors = form.getAllErrors()
|
|
941
939
|
if (Object.keys(errors.fields).length || errors.form.errors.length) {
|
|
942
|
-
return yield* new FormErrors({ form: errors.form, fields: errors.fields })
|
|
940
|
+
return yield* Effect.fail(new FormErrors({ form: errors.form, fields: errors.fields }))
|
|
943
941
|
}
|
|
944
942
|
})))
|
|
945
943
|
: handleSubmitEffect_(options?.meta)
|
package/src/utils/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type makeIntl } from "@effect-app/vue"
|
|
2
|
-
import {
|
|
2
|
+
import { S } from "effect-app"
|
|
3
3
|
import { inject, type InjectionKey, provide } from "vue"
|
|
4
4
|
|
|
5
5
|
export const useIntlKey = Symbol() as InjectionKey<
|
|
@@ -18,15 +18,11 @@ export const provideIntl = (
|
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Recursively extracts the source AST from a transformation chain.
|
|
21
|
-
*
|
|
22
|
-
* This function returns the encoded form if an encoding chain exists, otherwise returns the AST itself.
|
|
21
|
+
* If the provided AST is a transformation, it follows the chain to find the original source AST.
|
|
23
22
|
*
|
|
24
23
|
* @param ast - The AST node to extract the transformation source from
|
|
25
|
-
* @returns The source AST
|
|
24
|
+
* @returns The source AST at the end of the transformation chain
|
|
26
25
|
*/
|
|
27
26
|
export function getTransformationFrom(ast: S.AST.AST) {
|
|
28
|
-
|
|
29
|
-
// The encoding chain points to the encoded (wire) form via ast.encoding
|
|
30
|
-
// For most metadata extraction purposes, we want the decoded form, so just return the ast
|
|
31
|
-
return ast
|
|
27
|
+
return S.AST.toType(ast)
|
|
32
28
|
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { dual as o } from "./vue-components.es39.js";
|
|
2
|
-
function i(n) {
|
|
3
|
-
return typeof n == "string";
|
|
4
|
-
}
|
|
5
|
-
function f(n) {
|
|
6
|
-
return typeof n == "number";
|
|
7
|
-
}
|
|
8
|
-
function c(n) {
|
|
9
|
-
return typeof n == "boolean";
|
|
10
|
-
}
|
|
11
|
-
function r(n) {
|
|
12
|
-
return typeof n == "function";
|
|
13
|
-
}
|
|
14
|
-
function s(n) {
|
|
15
|
-
return !0;
|
|
16
|
-
}
|
|
17
|
-
function e(n) {
|
|
18
|
-
return typeof n == "object" && n !== null || r(n);
|
|
19
|
-
}
|
|
20
|
-
const y = /* @__PURE__ */ o(2, (n, t) => e(n) && t in n);
|
|
21
|
-
export {
|
|
22
|
-
y as hasProperty,
|
|
23
|
-
c as isBoolean,
|
|
24
|
-
r as isFunction,
|
|
25
|
-
f as isNumber,
|
|
26
|
-
e as isObjectKeyword,
|
|
27
|
-
i as isString,
|
|
28
|
-
s as isUnknown
|
|
29
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { symbol as r, equals as c } from "./vue-components.es76.js";
|
|
2
|
-
import { format as m } from "./vue-components.es60.js";
|
|
3
|
-
import { symbol as n, hash as o, combine as u } from "./vue-components.es77.js";
|
|
4
|
-
import { toJson as l } from "./vue-components.es86.js";
|
|
5
|
-
import { hasProperty as p } from "./vue-components.es38.js";
|
|
6
|
-
import { YieldableProto as _, PipeInspectableProto as f, exitFail as g, NoSuchElementError as b, exitSucceed as O } from "./vue-components.es36.js";
|
|
7
|
-
const s = "~effect/data/Option", a = {
|
|
8
|
-
[s]: {
|
|
9
|
-
_A: (t) => t
|
|
10
|
-
},
|
|
11
|
-
...f,
|
|
12
|
-
..._
|
|
13
|
-
}, S = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(a), {
|
|
14
|
-
_tag: "Some",
|
|
15
|
-
_op: "Some",
|
|
16
|
-
[r](t) {
|
|
17
|
-
return i(t) && P(t) && c(this.value, t.value);
|
|
18
|
-
},
|
|
19
|
-
[n]() {
|
|
20
|
-
return u(o(this._tag))(o(this.value));
|
|
21
|
-
},
|
|
22
|
-
toString() {
|
|
23
|
-
return `some(${m(this.value)})`;
|
|
24
|
-
},
|
|
25
|
-
toJSON() {
|
|
26
|
-
return {
|
|
27
|
-
_id: "Option",
|
|
28
|
-
_tag: this._tag,
|
|
29
|
-
value: l(this.value)
|
|
30
|
-
};
|
|
31
|
-
},
|
|
32
|
-
asEffect() {
|
|
33
|
-
return O(this.value);
|
|
34
|
-
}
|
|
35
|
-
}), h = /* @__PURE__ */ o("None"), N = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(a), {
|
|
36
|
-
_tag: "None",
|
|
37
|
-
_op: "None",
|
|
38
|
-
[r](t) {
|
|
39
|
-
return i(t) && v(t);
|
|
40
|
-
},
|
|
41
|
-
[n]() {
|
|
42
|
-
return h;
|
|
43
|
-
},
|
|
44
|
-
toString() {
|
|
45
|
-
return "none()";
|
|
46
|
-
},
|
|
47
|
-
toJSON() {
|
|
48
|
-
return {
|
|
49
|
-
_id: "Option",
|
|
50
|
-
_tag: this._tag
|
|
51
|
-
};
|
|
52
|
-
},
|
|
53
|
-
asEffect() {
|
|
54
|
-
return g(new b());
|
|
55
|
-
}
|
|
56
|
-
}), i = (t) => p(t, s), v = (t) => t._tag === "None", P = (t) => t._tag === "Some", I = /* @__PURE__ */ Object.create(N), $ = (t) => {
|
|
57
|
-
const e = Object.create(S);
|
|
58
|
-
return e.value = t, e;
|
|
59
|
-
};
|
|
60
|
-
export {
|
|
61
|
-
v as isNone,
|
|
62
|
-
i as isOption,
|
|
63
|
-
P as isSome,
|
|
64
|
-
I as none,
|
|
65
|
-
$ as some
|
|
66
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
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();
|
|
22
|
-
export {
|
|
23
|
-
x as ROOT_CONTEXT,
|
|
24
|
-
a as createContextKey
|
|
25
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { NoopTracer as o } from "./vue-components.es67.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
|
-
);
|
|
21
|
-
export {
|
|
22
|
-
c as ProxyTracer
|
|
23
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ContextAPI as l } from "./vue-components.es74.js";
|
|
2
|
-
import { getSpanContext as m, setSpan as d } from "./vue-components.es96.js";
|
|
3
|
-
import { NonRecordingSpan as p } from "./vue-components.es73.js";
|
|
4
|
-
import { isSpanContextValid as S } from "./vue-components.es71.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
|
-
}
|
|
30
|
-
export {
|
|
31
|
-
I as NoopTracer
|
|
32
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ProxyTracer as i } from "./vue-components.es66.js";
|
|
2
|
-
import { NoopTracerProvider as n } from "./vue-components.es69.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
|
-
);
|
|
22
|
-
export {
|
|
23
|
-
g as ProxyTracerProvider
|
|
24
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { NoopTracer as o } from "./vue-components.es67.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
|
-
);
|
|
12
|
-
export {
|
|
13
|
-
p as NoopTracerProvider
|
|
14
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { INVALID_TRACEID as r, INVALID_SPANID as t } from "./vue-components.es72.js";
|
|
2
|
-
import { NonRecordingSpan as i } from "./vue-components.es73.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
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
A as isSpanContextValid,
|
|
18
|
-
e as isValidSpanId,
|
|
19
|
-
I as isValidTraceId,
|
|
20
|
-
D as wrapSpanContext
|
|
21
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TraceFlags as I } from "./vue-components.es70.js";
|
|
2
|
-
var a = "0000000000000000", r = "00000000000000000000000000000000", A = {
|
|
3
|
-
traceId: r,
|
|
4
|
-
spanId: a,
|
|
5
|
-
traceFlags: I.NONE
|
|
6
|
-
};
|
|
7
|
-
export {
|
|
8
|
-
a as INVALID_SPANID,
|
|
9
|
-
A as INVALID_SPAN_CONTEXT,
|
|
10
|
-
r as INVALID_TRACEID
|
|
11
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { INVALID_SPAN_CONTEXT as o } from "./vue-components.es72.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
|
-
);
|
|
31
|
-
export {
|
|
32
|
-
i as NonRecordingSpan
|
|
33
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { NoopContextManager as f } from "./vue-components.es97.js";
|
|
2
|
-
import { registerGlobal as s, getGlobal as p, unregisterGlobal as g } from "./vue-components.es95.js";
|
|
3
|
-
import { DiagAPI as u } from "./vue-components.es92.js";
|
|
4
|
-
var y = function(t, e) {
|
|
5
|
-
var a = typeof Symbol == "function" && t[Symbol.iterator];
|
|
6
|
-
if (!a) return t;
|
|
7
|
-
var n = a.call(t), o, r = [], i;
|
|
8
|
-
try {
|
|
9
|
-
for (; (e === void 0 || e-- > 0) && !(o = n.next()).done; ) r.push(o.value);
|
|
10
|
-
} catch (c) {
|
|
11
|
-
i = { error: c };
|
|
12
|
-
} finally {
|
|
13
|
-
try {
|
|
14
|
-
o && !o.done && (a = n.return) && a.call(n);
|
|
15
|
-
} finally {
|
|
16
|
-
if (i) throw i.error;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return r;
|
|
20
|
-
}, d = function(t, e, a) {
|
|
21
|
-
if (a || arguments.length === 2) for (var n = 0, o = e.length, r; n < o; n++)
|
|
22
|
-
(r || !(n in e)) && (r || (r = Array.prototype.slice.call(e, 0, n)), r[n] = e[n]);
|
|
23
|
-
return t.concat(r || Array.prototype.slice.call(e));
|
|
24
|
-
}, l = "context", _ = new f(), A = (
|
|
25
|
-
/** @class */
|
|
26
|
-
(function() {
|
|
27
|
-
function t() {
|
|
28
|
-
}
|
|
29
|
-
return t.getInstance = function() {
|
|
30
|
-
return this._instance || (this._instance = new t()), this._instance;
|
|
31
|
-
}, t.prototype.setGlobalContextManager = function(e) {
|
|
32
|
-
return s(l, e, u.instance());
|
|
33
|
-
}, t.prototype.active = function() {
|
|
34
|
-
return this._getContextManager().active();
|
|
35
|
-
}, t.prototype.with = function(e, a, n) {
|
|
36
|
-
for (var o, r = [], i = 3; i < arguments.length; i++)
|
|
37
|
-
r[i - 3] = arguments[i];
|
|
38
|
-
return (o = this._getContextManager()).with.apply(o, d([e, a, n], y(r), !1));
|
|
39
|
-
}, t.prototype.bind = function(e, a) {
|
|
40
|
-
return this._getContextManager().bind(e, a);
|
|
41
|
-
}, t.prototype._getContextManager = function() {
|
|
42
|
-
return p(l) || _;
|
|
43
|
-
}, t.prototype.disable = function() {
|
|
44
|
-
this._getContextManager().disable(), g(l, u.instance());
|
|
45
|
-
}, t;
|
|
46
|
-
})()
|
|
47
|
-
);
|
|
48
|
-
export {
|
|
49
|
-
A as ContextAPI
|
|
50
|
-
};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { hash as p } from "./vue-components.es77.js";
|
|
2
|
-
import { byReferenceInstances as m, getAllObjectKeys as g } from "./vue-components.es85.js";
|
|
3
|
-
import { hasProperty as M } from "./vue-components.es38.js";
|
|
4
|
-
const S = "~effect/interfaces/Equal";
|
|
5
|
-
function b() {
|
|
6
|
-
return arguments.length === 1 ? (e) => i(e, arguments[0]) : i(arguments[0], arguments[1]);
|
|
7
|
-
}
|
|
8
|
-
function i(e, r) {
|
|
9
|
-
if (e === r) return !0;
|
|
10
|
-
if (e == null || r == null) return !1;
|
|
11
|
-
const n = typeof e;
|
|
12
|
-
return n !== typeof r ? !1 : n === "number" && e !== e && r !== r ? !0 : n !== "object" && n !== "function" || m.has(e) || m.has(r) ? !1 : w(e, r, E);
|
|
13
|
-
}
|
|
14
|
-
function q(e, r, n) {
|
|
15
|
-
const t = a.has(e), o = c.has(r);
|
|
16
|
-
if (t && o)
|
|
17
|
-
return !0;
|
|
18
|
-
if (t || o)
|
|
19
|
-
return !1;
|
|
20
|
-
a.add(e), c.add(r);
|
|
21
|
-
const u = n();
|
|
22
|
-
return a.delete(e), c.delete(r), u;
|
|
23
|
-
}
|
|
24
|
-
const a = /* @__PURE__ */ new WeakSet(), c = /* @__PURE__ */ new WeakSet();
|
|
25
|
-
function E(e, r) {
|
|
26
|
-
if (p(e) !== p(r))
|
|
27
|
-
return !1;
|
|
28
|
-
if (e instanceof Date)
|
|
29
|
-
return r instanceof Date ? e.toISOString() === r.toISOString() : !1;
|
|
30
|
-
if (e instanceof RegExp)
|
|
31
|
-
return r instanceof RegExp ? e.toString() === r.toString() : !1;
|
|
32
|
-
const n = y(e), t = y(r);
|
|
33
|
-
if (n !== t) return !1;
|
|
34
|
-
const o = n && t;
|
|
35
|
-
return typeof e == "function" && !o ? !1 : q(e, r, () => o ? e[S](r) : Array.isArray(e) ? !Array.isArray(r) || e.length !== r.length ? !1 : z(e, r) : e instanceof Map ? !(r instanceof Map) || e.size !== r.size ? !1 : I(e, r) : e instanceof Set ? !(r instanceof Set) || e.size !== r.size ? !1 : V(e, r) : A(e, r));
|
|
36
|
-
}
|
|
37
|
-
function w(e, r, n) {
|
|
38
|
-
let t = s.get(e);
|
|
39
|
-
if (!t)
|
|
40
|
-
t = /* @__PURE__ */ new WeakMap(), s.set(e, t);
|
|
41
|
-
else if (t.has(r))
|
|
42
|
-
return t.get(r);
|
|
43
|
-
const o = n(e, r);
|
|
44
|
-
t.set(r, o);
|
|
45
|
-
let u = s.get(r);
|
|
46
|
-
return u || (u = /* @__PURE__ */ new WeakMap(), s.set(r, u)), u.set(e, o), o;
|
|
47
|
-
}
|
|
48
|
-
const s = /* @__PURE__ */ new WeakMap();
|
|
49
|
-
function z(e, r) {
|
|
50
|
-
for (let n = 0; n < e.length; n++)
|
|
51
|
-
if (!i(e[n], r[n]))
|
|
52
|
-
return !1;
|
|
53
|
-
return !0;
|
|
54
|
-
}
|
|
55
|
-
function A(e, r) {
|
|
56
|
-
const n = g(e), t = g(r);
|
|
57
|
-
if (n.size !== t.size)
|
|
58
|
-
return !1;
|
|
59
|
-
for (const o of n)
|
|
60
|
-
if (!t.has(o) || !i(e[o], r[o]))
|
|
61
|
-
return !1;
|
|
62
|
-
return !0;
|
|
63
|
-
}
|
|
64
|
-
function R(e, r) {
|
|
65
|
-
return function(t, o) {
|
|
66
|
-
for (const [u, f] of t) {
|
|
67
|
-
let l = !1;
|
|
68
|
-
for (const [d, k] of o)
|
|
69
|
-
if (e(u, d) && r(f, k)) {
|
|
70
|
-
l = !0;
|
|
71
|
-
break;
|
|
72
|
-
}
|
|
73
|
-
if (!l)
|
|
74
|
-
return !1;
|
|
75
|
-
}
|
|
76
|
-
return !0;
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
const I = /* @__PURE__ */ R(i, i);
|
|
80
|
-
function K(e) {
|
|
81
|
-
return function(n, t) {
|
|
82
|
-
for (const o of n) {
|
|
83
|
-
let u = !1;
|
|
84
|
-
for (const f of t)
|
|
85
|
-
if (e(o, f)) {
|
|
86
|
-
u = !0;
|
|
87
|
-
break;
|
|
88
|
-
}
|
|
89
|
-
if (!u)
|
|
90
|
-
return !1;
|
|
91
|
-
}
|
|
92
|
-
return !0;
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
const V = /* @__PURE__ */ K(i), y = (e) => M(e, S), j = () => b;
|
|
96
|
-
export {
|
|
97
|
-
j as asEquivalence,
|
|
98
|
-
b as equals,
|
|
99
|
-
y as isEqual,
|
|
100
|
-
R as makeCompareMap,
|
|
101
|
-
K as makeCompareSet,
|
|
102
|
-
S as symbol
|
|
103
|
-
};
|