@effect-app/vue-components 1.4.2 → 1.5.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.
- package/dist/types/components/OmegaForm/blockDialog.d.ts +12 -0
- package/dist/types/components/OmegaForm/index.d.ts +1 -0
- package/dist/types/components/OmegaForm/onMountedWithCleanup.d.ts +6 -0
- package/dist/types/components/OmegaForm/useOmegaForm.d.ts +1 -0
- package/dist/vue-components.es.js +21 -18
- package/dist/vue-components.es10.js +30 -10
- package/dist/vue-components.es11.js +10 -5
- package/dist/vue-components.es12.js +5 -54
- package/dist/vue-components.es13.js +49 -63
- package/dist/vue-components.es14.js +68 -6
- package/dist/vue-components.es15.js +5 -5
- package/dist/vue-components.es16.js +6 -3
- package/dist/vue-components.es17.js +3 -3
- package/dist/vue-components.es18.js +3 -2
- package/dist/vue-components.es19.js +1 -1
- package/dist/vue-components.es2.js +12 -9
- package/dist/vue-components.es20.js +2 -135
- package/dist/vue-components.es21.js +19 -0
- package/dist/vue-components.es22.js +11 -42
- package/dist/vue-components.es23.js +135 -2
- package/dist/vue-components.es25.js +41 -89
- package/dist/vue-components.es27.js +2 -7
- package/dist/vue-components.es28.js +86 -27
- package/dist/vue-components.es30.js +7 -4
- package/dist/vue-components.es31.js +31 -23
- package/dist/vue-components.es33.js +4 -21
- package/dist/vue-components.es34.js +20 -27
- package/dist/vue-components.es35.js +5 -22
- package/dist/vue-components.es36.js +15 -6
- package/dist/vue-components.es37.js +30 -5
- package/dist/vue-components.es38.js +22 -19
- package/dist/vue-components.es39.js +12 -9
- package/dist/vue-components.es4.js +1 -1
- package/dist/vue-components.es40.js +5 -31
- package/dist/vue-components.es41.js +19 -48
- package/dist/vue-components.es42.js +9 -26
- package/dist/vue-components.es43.js +31 -11
- package/dist/vue-components.es44.js +37 -54
- package/dist/vue-components.es45.js +21 -51
- package/dist/vue-components.es46.js +10 -16
- package/dist/vue-components.es47.js +64 -32
- package/dist/vue-components.es48.js +55 -28
- package/dist/vue-components.es49.js +16 -41
- package/dist/vue-components.es5.js +44 -44
- package/dist/vue-components.es50.js +33 -2
- package/dist/vue-components.es51.js +28 -43
- package/dist/vue-components.es52.js +42 -2
- package/dist/vue-components.es53.js +4 -0
- package/dist/vue-components.es54.js +46 -0
- package/dist/vue-components.es55.js +4 -0
- package/dist/vue-components.es7.js +45 -44
- package/dist/vue-components.es8.js +29 -355
- package/dist/vue-components.es9.js +352 -26
- package/package.json +5 -4
- package/src/components/OmegaForm/OmegaInternalInput.vue +6 -4
- package/src/components/OmegaForm/blockDialog.ts +56 -0
- package/src/components/OmegaForm/index.ts +2 -0
- package/src/components/OmegaForm/onMountedWithCleanup.ts +22 -0
- package/src/components/OmegaForm/useOmegaForm.ts +7 -0
- package/dist/vue-components.es32.js +0 -7
- /package/dist/{vue-components.es24.js → vue-components.es26.js} +0 -0
|
@@ -1,58 +1,28 @@
|
|
|
1
|
-
import { getGlobal as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
for (; (e === void 0 || e-- > 0) && !(o = t.next()).done; ) a.push(o.value);
|
|
8
|
-
} catch (s) {
|
|
9
|
-
g = { error: s };
|
|
10
|
-
} finally {
|
|
11
|
-
try {
|
|
12
|
-
o && !o.done && (r = t.return) && r.call(t);
|
|
13
|
-
} finally {
|
|
14
|
-
if (g) throw g.error;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
}, l = function(n, e, r) {
|
|
19
|
-
if (r || arguments.length === 2) for (var t = 0, o = e.length, a; t < o; t++)
|
|
20
|
-
(a || !(t in e)) && (a || (a = Array.prototype.slice.call(e, 0, t)), a[t] = e[t]);
|
|
21
|
-
return n.concat(a || Array.prototype.slice.call(e));
|
|
22
|
-
}, i = (
|
|
1
|
+
import { registerGlobal as a, getGlobal as p, unregisterGlobal as s } from "./vue-components.es50.js";
|
|
2
|
+
import { ProxyTracerProvider as i } from "./vue-components.es38.js";
|
|
3
|
+
import { wrapSpanContext as c, isSpanContextValid as h } from "./vue-components.es41.js";
|
|
4
|
+
import { deleteSpan as g, getSpan as S, getActiveSpan as x, getSpanContext as d, setSpan as f, setSpanContext as l } from "./vue-components.es51.js";
|
|
5
|
+
import { DiagAPI as o } from "./vue-components.es47.js";
|
|
6
|
+
var n = "trace", y = (
|
|
23
7
|
/** @class */
|
|
24
8
|
(function() {
|
|
25
|
-
function
|
|
26
|
-
this.
|
|
9
|
+
function t() {
|
|
10
|
+
this._proxyTracerProvider = new i(), this.wrapSpanContext = c, this.isSpanContextValid = h, this.deleteSpan = g, this.getSpan = S, this.getActiveSpan = x, this.getSpanContext = d, this.setSpan = f, this.setSpanContext = l;
|
|
27
11
|
}
|
|
28
|
-
return
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}, n.prototype.warn = function() {
|
|
41
|
-
for (var e = [], r = 0; r < arguments.length; r++)
|
|
42
|
-
e[r] = arguments[r];
|
|
43
|
-
return u("warn", this._namespace, e);
|
|
44
|
-
}, n.prototype.verbose = function() {
|
|
45
|
-
for (var e = [], r = 0; r < arguments.length; r++)
|
|
46
|
-
e[r] = arguments[r];
|
|
47
|
-
return u("verbose", this._namespace, e);
|
|
48
|
-
}, n;
|
|
12
|
+
return t.getInstance = function() {
|
|
13
|
+
return this._instance || (this._instance = new t()), this._instance;
|
|
14
|
+
}, t.prototype.setGlobalTracerProvider = function(r) {
|
|
15
|
+
var e = a(n, this._proxyTracerProvider, o.instance());
|
|
16
|
+
return e && this._proxyTracerProvider.setDelegate(r), e;
|
|
17
|
+
}, t.prototype.getTracerProvider = function() {
|
|
18
|
+
return p(n) || this._proxyTracerProvider;
|
|
19
|
+
}, t.prototype.getTracer = function(r, e) {
|
|
20
|
+
return this.getTracerProvider().getTracer(r, e);
|
|
21
|
+
}, t.prototype.disable = function() {
|
|
22
|
+
s(n, o.instance()), this._proxyTracerProvider = new i();
|
|
23
|
+
}, t;
|
|
49
24
|
})()
|
|
50
25
|
);
|
|
51
|
-
function u(n, e, r) {
|
|
52
|
-
var t = f("diag");
|
|
53
|
-
if (t)
|
|
54
|
-
return r.unshift(e), t[n].apply(t, l([], p(r), !1));
|
|
55
|
-
}
|
|
56
26
|
export {
|
|
57
|
-
|
|
27
|
+
y as TraceAPI
|
|
58
28
|
};
|
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
error: i("error", r.ERROR),
|
|
11
|
-
warn: i("warn", r.WARN),
|
|
12
|
-
info: i("info", r.INFO),
|
|
13
|
-
debug: i("debug", r.DEBUG),
|
|
14
|
-
verbose: i("verbose", r.VERBOSE)
|
|
15
|
-
};
|
|
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 : {});
|
|
16
10
|
}
|
|
17
11
|
export {
|
|
18
|
-
c as
|
|
12
|
+
c as getOmegaStore
|
|
19
13
|
};
|
|
@@ -1,35 +1,67 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { DiagComponentLogger as m } from "./vue-components.es48.js";
|
|
2
|
+
import { createLogLevelDiagLogger as y } from "./vue-components.es49.js";
|
|
3
|
+
import { DiagLogLevel as d } from "./vue-components.es35.js";
|
|
4
|
+
import { unregisterGlobal as p, getGlobal as v, registerGlobal as w } from "./vue-components.es50.js";
|
|
5
|
+
var b = function(i, n) {
|
|
6
|
+
var r = typeof Symbol == "function" && i[Symbol.iterator];
|
|
7
|
+
if (!r) return i;
|
|
8
|
+
var t = r.call(i), a, e = [], o;
|
|
9
|
+
try {
|
|
10
|
+
for (; (n === void 0 || n-- > 0) && !(a = t.next()).done; ) e.push(a.value);
|
|
11
|
+
} catch (l) {
|
|
12
|
+
o = { error: l };
|
|
13
|
+
} finally {
|
|
14
|
+
try {
|
|
15
|
+
a && !a.done && (r = t.return) && r.call(t);
|
|
16
|
+
} finally {
|
|
17
|
+
if (o) throw o.error;
|
|
18
|
+
}
|
|
14
19
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
20
|
+
return e;
|
|
21
|
+
}, _ = function(i, n, r) {
|
|
22
|
+
if (r || arguments.length === 2) for (var t = 0, a = n.length, e; t < a; t++)
|
|
23
|
+
(e || !(t in n)) && (e || (e = Array.prototype.slice.call(n, 0, t)), e[t] = n[t]);
|
|
24
|
+
return i.concat(e || Array.prototype.slice.call(n));
|
|
25
|
+
}, h = "diag", P = (
|
|
26
|
+
/** @class */
|
|
27
|
+
(function() {
|
|
28
|
+
function i() {
|
|
29
|
+
function n(a) {
|
|
30
|
+
return function() {
|
|
31
|
+
for (var e = [], o = 0; o < arguments.length; o++)
|
|
32
|
+
e[o] = arguments[o];
|
|
33
|
+
var l = v("diag");
|
|
34
|
+
if (l)
|
|
35
|
+
return l[a].apply(l, _([], b(e), !1));
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
var r = this, t = function(a, e) {
|
|
39
|
+
var o, l, g;
|
|
40
|
+
if (e === void 0 && (e = { logLevel: d.INFO }), a === r) {
|
|
41
|
+
var u = new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");
|
|
42
|
+
return r.error((o = u.stack) !== null && o !== void 0 ? o : u.message), !1;
|
|
43
|
+
}
|
|
44
|
+
typeof e == "number" && (e = {
|
|
45
|
+
logLevel: e
|
|
46
|
+
});
|
|
47
|
+
var f = v("diag"), s = y((l = e.logLevel) !== null && l !== void 0 ? l : d.INFO, a);
|
|
48
|
+
if (f && !e.suppressOverrideMessage) {
|
|
49
|
+
var c = (g = new Error().stack) !== null && g !== void 0 ? g : "<failed to generate stacktrace>";
|
|
50
|
+
f.warn("Current logger will be overwritten from " + c), s.warn("Current logger will overwrite one already registered from " + c);
|
|
51
|
+
}
|
|
52
|
+
return w("diag", s, r, !0);
|
|
53
|
+
};
|
|
54
|
+
r.setLogger = t, r.disable = function() {
|
|
55
|
+
p(h, r);
|
|
56
|
+
}, r.createComponentLogger = function(a) {
|
|
57
|
+
return new m(a);
|
|
58
|
+
}, r.verbose = n("verbose"), r.debug = n("debug"), r.info = n("info"), r.warn = n("warn"), r.error = n("error");
|
|
59
|
+
}
|
|
60
|
+
return i.instance = function() {
|
|
61
|
+
return this._instance || (this._instance = new i()), this._instance;
|
|
62
|
+
}, i;
|
|
63
|
+
})()
|
|
64
|
+
);
|
|
31
65
|
export {
|
|
32
|
-
|
|
33
|
-
d as registerGlobal,
|
|
34
|
-
_ as unregisterGlobal
|
|
66
|
+
P as DiagAPI
|
|
35
67
|
};
|
|
@@ -1,31 +1,58 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import { getGlobal as f } from "./vue-components.es50.js";
|
|
2
|
+
var p = function(n, e) {
|
|
3
|
+
var r = typeof Symbol == "function" && n[Symbol.iterator];
|
|
4
|
+
if (!r) return n;
|
|
5
|
+
var t = r.call(n), o, a = [], g;
|
|
6
|
+
try {
|
|
7
|
+
for (; (e === void 0 || e-- > 0) && !(o = t.next()).done; ) a.push(o.value);
|
|
8
|
+
} catch (s) {
|
|
9
|
+
g = { error: s };
|
|
10
|
+
} finally {
|
|
11
|
+
try {
|
|
12
|
+
o && !o.done && (r = t.return) && r.call(t);
|
|
13
|
+
} finally {
|
|
14
|
+
if (g) throw g.error;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
}, l = function(n, e, r) {
|
|
19
|
+
if (r || arguments.length === 2) for (var t = 0, o = e.length, a; t < o; t++)
|
|
20
|
+
(a || !(t in e)) && (a || (a = Array.prototype.slice.call(e, 0, t)), a[t] = e[t]);
|
|
21
|
+
return n.concat(a || Array.prototype.slice.call(e));
|
|
22
|
+
}, i = (
|
|
23
|
+
/** @class */
|
|
24
|
+
(function() {
|
|
25
|
+
function n(e) {
|
|
26
|
+
this._namespace = e.namespace || "DiagComponentLogger";
|
|
27
|
+
}
|
|
28
|
+
return n.prototype.debug = function() {
|
|
29
|
+
for (var e = [], r = 0; r < arguments.length; r++)
|
|
30
|
+
e[r] = arguments[r];
|
|
31
|
+
return u("debug", this._namespace, e);
|
|
32
|
+
}, n.prototype.error = function() {
|
|
33
|
+
for (var e = [], r = 0; r < arguments.length; r++)
|
|
34
|
+
e[r] = arguments[r];
|
|
35
|
+
return u("error", this._namespace, e);
|
|
36
|
+
}, n.prototype.info = function() {
|
|
37
|
+
for (var e = [], r = 0; r < arguments.length; r++)
|
|
38
|
+
e[r] = arguments[r];
|
|
39
|
+
return u("info", this._namespace, e);
|
|
40
|
+
}, n.prototype.warn = function() {
|
|
41
|
+
for (var e = [], r = 0; r < arguments.length; r++)
|
|
42
|
+
e[r] = arguments[r];
|
|
43
|
+
return u("warn", this._namespace, e);
|
|
44
|
+
}, n.prototype.verbose = function() {
|
|
45
|
+
for (var e = [], r = 0; r < arguments.length; r++)
|
|
46
|
+
e[r] = arguments[r];
|
|
47
|
+
return u("verbose", this._namespace, e);
|
|
48
|
+
}, n;
|
|
49
|
+
})()
|
|
50
|
+
);
|
|
51
|
+
function u(n, e, r) {
|
|
52
|
+
var t = f("diag");
|
|
53
|
+
if (t)
|
|
54
|
+
return r.unshift(e), t[n].apply(t, l([], p(r), !1));
|
|
23
55
|
}
|
|
24
56
|
export {
|
|
25
|
-
|
|
26
|
-
S as getActiveSpan,
|
|
27
|
-
r as getSpan,
|
|
28
|
-
m as getSpanContext,
|
|
29
|
-
i as setSpan,
|
|
30
|
-
d as setSpanContext
|
|
57
|
+
i as DiagComponentLogger
|
|
31
58
|
};
|
|
@@ -1,44 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} catch (i) {
|
|
9
|
-
u = { error: i };
|
|
10
|
-
} finally {
|
|
11
|
-
try {
|
|
12
|
-
a && !a.done && (n = e.return) && n.call(e);
|
|
13
|
-
} finally {
|
|
14
|
-
if (u) throw u.error;
|
|
15
|
-
}
|
|
1
|
+
import { DiagLogLevel as r } from "./vue-components.es35.js";
|
|
2
|
+
function c(n, o) {
|
|
3
|
+
n < r.NONE ? n = r.NONE : n > r.ALL && (n = r.ALL), o = o || {};
|
|
4
|
+
function i(t, f) {
|
|
5
|
+
var e = o[t];
|
|
6
|
+
return typeof e == "function" && n >= f ? e.bind(o) : function() {
|
|
7
|
+
};
|
|
16
8
|
}
|
|
17
|
-
return
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
function t() {
|
|
26
|
-
}
|
|
27
|
-
return t.prototype.active = function() {
|
|
28
|
-
return l;
|
|
29
|
-
}, t.prototype.with = function(o, n, e) {
|
|
30
|
-
for (var a = [], r = 3; r < arguments.length; r++)
|
|
31
|
-
a[r - 3] = arguments[r];
|
|
32
|
-
return n.call.apply(n, p([e], c(a), !1));
|
|
33
|
-
}, t.prototype.bind = function(o, n) {
|
|
34
|
-
return n;
|
|
35
|
-
}, t.prototype.enable = function() {
|
|
36
|
-
return this;
|
|
37
|
-
}, t.prototype.disable = function() {
|
|
38
|
-
return this;
|
|
39
|
-
}, t;
|
|
40
|
-
})()
|
|
41
|
-
);
|
|
9
|
+
return {
|
|
10
|
+
error: i("error", r.ERROR),
|
|
11
|
+
warn: i("warn", r.WARN),
|
|
12
|
+
info: i("info", r.INFO),
|
|
13
|
+
debug: i("debug", r.DEBUG),
|
|
14
|
+
verbose: i("verbose", r.VERBOSE)
|
|
15
|
+
};
|
|
16
|
+
}
|
|
42
17
|
export {
|
|
43
|
-
|
|
18
|
+
c as createLogLevelDiagLogger
|
|
44
19
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
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
|
|
3
|
-
import { useStore as
|
|
4
|
-
import
|
|
2
|
+
import { defineComponent as N, getCurrentInstance as V, useId as _, computed as r, onMounted as v, ref as $, watchEffect as B, watch as I, onUnmounted as k, renderSlot as q, normalizeProps as D, guardReactiveProps as L, createElementVNode as O, normalizeClass as P, createBlock as F, createCommentVNode as M, unref as S, openBlock as U, mergeProps as z } from "vue";
|
|
3
|
+
import { useStore as A } from "@tanstack/vue-form";
|
|
4
|
+
import R from "./vue-components.es23.js";
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const J = /* @__PURE__ */ N({
|
|
7
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "OmegaInternalInput",
|
|
9
9
|
props: {
|
|
@@ -14,48 +14,48 @@ const H = /* @__PURE__ */ x({
|
|
|
14
14
|
type: {},
|
|
15
15
|
validators: {}
|
|
16
16
|
},
|
|
17
|
-
setup(
|
|
18
|
-
const e =
|
|
17
|
+
setup(g) {
|
|
18
|
+
const e = g, h = V()?.appContext.components.VTextField, a = _(), o = e.field, n = A(o.store, (t) => t), m = r(() => e.type ? e.type : e.meta?.type === "string" ? e.meta.format === "email" ? "email" : "string" : e.meta?.type || "unknown"), f = r(() => n.value.value), p = r(() => n.value.meta.errors ?? []), y = r(
|
|
19
19
|
() => (
|
|
20
20
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
21
|
-
|
|
21
|
+
p.value.map((t) => t?.message).filter(Boolean)
|
|
22
22
|
)
|
|
23
|
-
),
|
|
24
|
-
|
|
23
|
+
), b = (t) => t == null || t === !1 || t === "" || Number.isNaN(t), C = (t) => {
|
|
24
|
+
b(t) && e.meta?.type !== "boolean" ? e.field.handleChange(
|
|
25
25
|
e.meta?.nullableOrUndefined === "undefined" ? void 0 : null
|
|
26
26
|
) : e.field.handleChange(t);
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
if (!
|
|
30
|
-
const t =
|
|
31
|
-
|
|
28
|
+
v(() => {
|
|
29
|
+
if (!f.value && !e.meta?.required && e.meta?.nullableOrUndefined === "null") {
|
|
30
|
+
const t = n.value.meta.isDirty;
|
|
31
|
+
o.setValue(null), o.setMeta((l) => ({ ...l, isDirty: t }));
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
|
-
const { mapError:
|
|
34
|
+
const { mapError: E, removeError: d, showErrors: w, showErrorsOn: x } = e.field.form.errorContext, s = $(!1);
|
|
35
35
|
B(() => {
|
|
36
|
-
(
|
|
36
|
+
(w.value || x === "onChange") && (s.value = !0);
|
|
37
37
|
});
|
|
38
|
-
const
|
|
39
|
-
|
|
38
|
+
const i = () => {
|
|
39
|
+
s.value = !0;
|
|
40
40
|
};
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
v(() => {
|
|
42
|
+
f.value && i();
|
|
43
43
|
});
|
|
44
|
-
const
|
|
44
|
+
const c = r(() => !s.value && m.value !== "select" ? [] : y.value);
|
|
45
45
|
I(
|
|
46
|
-
|
|
47
|
-
() => {
|
|
48
|
-
|
|
49
|
-
inputId:
|
|
50
|
-
errors:
|
|
46
|
+
p,
|
|
47
|
+
(t) => {
|
|
48
|
+
t.length ? E({
|
|
49
|
+
inputId: a,
|
|
50
|
+
errors: n.value.meta.errors.map((l) => l.message).filter(Boolean),
|
|
51
51
|
label: e.label
|
|
52
|
-
}) :
|
|
52
|
+
}) : d(a);
|
|
53
53
|
}
|
|
54
|
-
),
|
|
55
|
-
|
|
54
|
+
), k(() => {
|
|
55
|
+
d(a);
|
|
56
56
|
});
|
|
57
|
-
const
|
|
58
|
-
id:
|
|
57
|
+
const u = r(() => ({
|
|
58
|
+
id: a,
|
|
59
59
|
required: e.meta?.required,
|
|
60
60
|
minLength: e.meta?.type === "string" && e.meta?.minLength,
|
|
61
61
|
maxLength: e.meta?.type === "string" && e.meta?.maxLength,
|
|
@@ -63,30 +63,30 @@ const H = /* @__PURE__ */ x({
|
|
|
63
63
|
min: e.meta?.type === "number" && e.meta?.minimum,
|
|
64
64
|
name: e.field.name,
|
|
65
65
|
modelValue: e.field.state.value,
|
|
66
|
-
handleChange:
|
|
67
|
-
errorMessages:
|
|
68
|
-
error: !!
|
|
66
|
+
handleChange: C,
|
|
67
|
+
errorMessages: c.value,
|
|
68
|
+
error: !!c.value.length,
|
|
69
69
|
field: e.field,
|
|
70
|
-
setRealDirty:
|
|
71
|
-
type:
|
|
70
|
+
setRealDirty: i,
|
|
71
|
+
type: m.value,
|
|
72
72
|
label: `${e.label}${e.meta?.required ? " *" : ""}`,
|
|
73
73
|
options: e.options
|
|
74
74
|
}));
|
|
75
|
-
return (t,
|
|
76
|
-
|
|
77
|
-
class:
|
|
78
|
-
onFocusout:
|
|
75
|
+
return (t, l) => q(t.$slots, "default", D(L(u.value)), () => [
|
|
76
|
+
O("div", {
|
|
77
|
+
class: P(t.$attrs.class),
|
|
78
|
+
onFocusout: i
|
|
79
79
|
}, [
|
|
80
|
-
|
|
80
|
+
S(h) ? (U(), F(R, z({
|
|
81
81
|
key: 0,
|
|
82
|
-
"input-props":
|
|
82
|
+
"input-props": u.value
|
|
83
83
|
}, t.$attrs, {
|
|
84
|
-
"vuetify-value":
|
|
85
|
-
}), null, 16, ["input-props", "vuetify-value"])) :
|
|
84
|
+
"vuetify-value": u.value.field.state.value
|
|
85
|
+
}), null, 16, ["input-props", "vuetify-value"])) : M("", !0)
|
|
86
86
|
], 34)
|
|
87
87
|
]);
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
export {
|
|
91
|
-
|
|
91
|
+
J as default
|
|
92
92
|
};
|
|
@@ -1,4 +1,35 @@
|
|
|
1
|
-
|
|
1
|
+
import { VERSION as t } from "./vue-components.es53.js";
|
|
2
|
+
import { isCompatible as f } from "./vue-components.es54.js";
|
|
3
|
+
import { _globalThis as m } from "./vue-components.es55.js";
|
|
4
|
+
var u = t.split(".")[0], n = Symbol.for("opentelemetry.js.api." + u), l = m;
|
|
5
|
+
function d(r, o, e, i) {
|
|
6
|
+
var v;
|
|
7
|
+
i === void 0 && (i = !1);
|
|
8
|
+
var s = l[n] = (v = l[n]) !== null && v !== void 0 ? v : {
|
|
9
|
+
version: t
|
|
10
|
+
};
|
|
11
|
+
if (!i && s[r]) {
|
|
12
|
+
var a = new Error("@opentelemetry/api: Attempted duplicate registration of API: " + r);
|
|
13
|
+
return e.error(a.stack || a.message), !1;
|
|
14
|
+
}
|
|
15
|
+
if (s.version !== t) {
|
|
16
|
+
var a = new Error("@opentelemetry/api: Registration of version v" + s.version + " for " + r + " does not match previously registered API v" + t);
|
|
17
|
+
return e.error(a.stack || a.message), !1;
|
|
18
|
+
}
|
|
19
|
+
return s[r] = o, e.debug("@opentelemetry/api: Registered a global for " + r + " v" + t + "."), !0;
|
|
20
|
+
}
|
|
21
|
+
function E(r) {
|
|
22
|
+
var o, e, i = (o = l[n]) === null || o === void 0 ? void 0 : o.version;
|
|
23
|
+
if (!(!i || !f(i)))
|
|
24
|
+
return (e = l[n]) === null || e === void 0 ? void 0 : e[r];
|
|
25
|
+
}
|
|
26
|
+
function _(r, o) {
|
|
27
|
+
o.debug("@opentelemetry/api: Unregistering a global for " + r + " v" + t + ".");
|
|
28
|
+
var e = l[n];
|
|
29
|
+
e && delete e[r];
|
|
30
|
+
}
|
|
2
31
|
export {
|
|
3
|
-
|
|
32
|
+
E as getGlobal,
|
|
33
|
+
d as registerGlobal,
|
|
34
|
+
_ as unregisterGlobal
|
|
4
35
|
};
|
|
@@ -1,46 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return m.add(n), !0;
|
|
24
|
-
}
|
|
25
|
-
return function(r) {
|
|
26
|
-
if (m.has(r))
|
|
27
|
-
return !0;
|
|
28
|
-
if (f.has(r))
|
|
29
|
-
return !1;
|
|
30
|
-
var i = r.match(h);
|
|
31
|
-
if (!i)
|
|
32
|
-
return a(r);
|
|
33
|
-
var u = {
|
|
34
|
-
major: +i[1],
|
|
35
|
-
minor: +i[2],
|
|
36
|
-
patch: +i[3],
|
|
37
|
-
prerelease: i[4]
|
|
38
|
-
};
|
|
39
|
-
return u.prerelease != null || e.major !== u.major ? a(r) : e.major === 0 ? e.minor === u.minor && e.patch <= u.patch ? p(r) : a(r) : e.minor <= u.minor ? p(r) : a(r);
|
|
40
|
-
};
|
|
1
|
+
import { createContextKey as o } from "./vue-components.es34.js";
|
|
2
|
+
import { NonRecordingSpan as a } from "./vue-components.es43.js";
|
|
3
|
+
import { ContextAPI as u } from "./vue-components.es44.js";
|
|
4
|
+
var n = o("OpenTelemetry Context Key SPAN");
|
|
5
|
+
function r(e) {
|
|
6
|
+
return e.getValue(n) || void 0;
|
|
7
|
+
}
|
|
8
|
+
function S() {
|
|
9
|
+
return r(u.getInstance().active());
|
|
10
|
+
}
|
|
11
|
+
function i(e, t) {
|
|
12
|
+
return e.setValue(n, t);
|
|
13
|
+
}
|
|
14
|
+
function l(e) {
|
|
15
|
+
return e.deleteValue(n);
|
|
16
|
+
}
|
|
17
|
+
function d(e, t) {
|
|
18
|
+
return i(e, new a(t));
|
|
19
|
+
}
|
|
20
|
+
function m(e) {
|
|
21
|
+
var t;
|
|
22
|
+
return (t = r(e)) === null || t === void 0 ? void 0 : t.spanContext();
|
|
41
23
|
}
|
|
42
|
-
var v = s(d);
|
|
43
24
|
export {
|
|
44
|
-
|
|
45
|
-
|
|
25
|
+
l as deleteSpan,
|
|
26
|
+
S as getActiveSpan,
|
|
27
|
+
r as getSpan,
|
|
28
|
+
m as getSpanContext,
|
|
29
|
+
i as setSpan,
|
|
30
|
+
d as setSpanContext
|
|
46
31
|
};
|