@effect-app/vue-components 1.7.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/types/components/Dialog.vue.d.ts +28 -0
  2. package/dist/types/components/index.d.ts +1 -0
  3. package/dist/vue-components.es.js +25 -23
  4. package/dist/vue-components.es10.js +352 -23
  5. package/dist/vue-components.es11.js +27 -10
  6. package/dist/vue-components.es12.js +2 -5
  7. package/dist/vue-components.es13.js +10 -54
  8. package/dist/vue-components.es14.js +5 -68
  9. package/dist/vue-components.es15.js +54 -6
  10. package/dist/vue-components.es16.js +68 -6
  11. package/dist/vue-components.es17.js +6 -3
  12. package/dist/vue-components.es18.js +6 -3
  13. package/dist/vue-components.es19.js +3 -2
  14. package/dist/vue-components.es2.js +21 -19
  15. package/dist/vue-components.es20.js +3 -2
  16. package/dist/vue-components.es21.js +2 -17
  17. package/dist/vue-components.es22.js +2 -11
  18. package/dist/vue-components.es23.js +17 -135
  19. package/dist/vue-components.es24.js +13 -0
  20. package/dist/vue-components.es25.js +134 -41
  21. package/dist/vue-components.es27.js +42 -2
  22. package/dist/vue-components.es28.js +2 -90
  23. package/dist/vue-components.es29.js +4 -0
  24. package/dist/vue-components.es30.js +90 -7
  25. package/dist/vue-components.es32.js +9 -0
  26. package/dist/vue-components.es33.js +31 -4
  27. package/dist/vue-components.es35.js +4 -23
  28. package/dist/vue-components.es36.js +23 -5
  29. package/dist/vue-components.es37.js +5 -21
  30. package/dist/vue-components.es38.js +16 -25
  31. package/dist/vue-components.es39.js +23 -15
  32. package/dist/vue-components.es4.js +45 -45
  33. package/dist/vue-components.es40.js +17 -7
  34. package/dist/vue-components.es41.js +12 -5
  35. package/dist/vue-components.es42.js +5 -19
  36. package/dist/vue-components.es43.js +19 -9
  37. package/dist/vue-components.es44.js +9 -31
  38. package/dist/vue-components.es45.js +25 -42
  39. package/dist/vue-components.es46.js +38 -16
  40. package/dist/vue-components.es47.js +21 -60
  41. package/dist/vue-components.es48.js +10 -55
  42. package/dist/vue-components.es49.js +64 -16
  43. package/dist/vue-components.es5.js +40 -85
  44. package/dist/vue-components.es50.js +54 -31
  45. package/dist/vue-components.es51.js +16 -28
  46. package/dist/vue-components.es52.js +32 -41
  47. package/dist/vue-components.es53.js +29 -2
  48. package/dist/vue-components.es54.js +41 -43
  49. package/dist/vue-components.es55.js +2 -2
  50. package/dist/vue-components.es56.js +46 -0
  51. package/dist/vue-components.es57.js +4 -0
  52. package/dist/vue-components.es6.js +90 -29
  53. package/dist/vue-components.es7.js +27 -211
  54. package/dist/vue-components.es8.js +211 -28
  55. package/dist/vue-components.es9.js +29 -355
  56. package/package.json +3 -3
  57. package/src/components/Dialog.vue +50 -0
  58. package/src/components/OmegaForm/OmegaInternalInput.vue +0 -1
  59. package/src/components/index.ts +1 -0
  60. package/dist/vue-components.es26.js +0 -4
  61. package/dist/vue-components.es31.js +0 -33
  62. package/dist/vue-components.es34.js +0 -13
@@ -1,4 +1,44 @@
1
- import f from "./vue-components.es14.js";
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
+ };
2
41
  export {
3
- f as default
42
+ a as dual,
43
+ f as isFunction
4
44
  };
@@ -1,92 +1,4 @@
1
- import { defineComponent as _, getCurrentInstance as y, computed as B, createBlock as n, openBlock as e, Transition as C, withCtx as o, createElementBlock as d, createCommentVNode as w, renderSlot as x, normalizeProps as b, guardReactiveProps as I, resolveDynamicComponent as l, unref as a, normalizeClass as V, createElementVNode as c, toDisplayString as u, Fragment as p, renderList as k, createTextVNode as E } from "vue";
2
- import { mdiLink as N } from "@mdi/js";
3
- import { useIntl as z } from "./vue-components.es3.js";
4
- const D = {
5
- key: 0,
6
- class: "error-alert"
7
- }, G = { class: "text-h6 mb-3" }, L = { class: "font-weight-medium" }, M = { class: "error-message" }, O = ["href"], P = { key: 1 }, A = /* @__PURE__ */ _({
8
- __name: "OmegaErrorsInternal",
9
- props: {
10
- errors: {},
11
- generalErrors: {},
12
- showErrors: { type: Boolean }
13
- },
14
- setup(t) {
15
- const m = y()?.appContext.components.VAlert, h = t, { trans: g } = z(), f = B(() => h.generalErrors ? h.generalErrors.filter((i) => !!i).flatMap(
16
- (i) => Object.values(i).filter((s) => !!s).flatMap(
17
- (s) => s.filter(
18
- (r) => !!r?.message
19
- ).map((r) => r.message)
20
- )
21
- ) : []);
22
- return (i, s) => (e(), n(C, null, {
23
- default: o(() => [
24
- t.showErrors && (t.errors.length || f.value.length) ? (e(), d("div", D, [
25
- x(i.$slots, "default", b(I({ errors: t.errors, showedGeneralErrors: f.value })), () => [
26
- (e(), n(l(a(m) ? "v-alert" : "div"), {
27
- class: V([a(m) ? "mb-4" : "error-alert-content", "mb-4"]),
28
- type: "error",
29
- variant: "tonal",
30
- role: "alert",
31
- "aria-live": "polite"
32
- }, {
33
- default: o(() => [
34
- c("div", G, u(a(g)("form.includes_error")) + ": ", 1),
35
- t.errors.length ? (e(), n(l(t.errors.length > 1 ? "ul" : "div"), {
36
- key: 0,
37
- class: "error-list"
38
- }, {
39
- default: o(() => [
40
- (e(!0), d(p, null, k(t.errors, (r) => (e(), n(l(t.errors.length > 1 ? "li" : "div"), {
41
- key: r.inputId,
42
- class: "error-item"
43
- }, {
44
- default: o(() => [
45
- c("div", L, u(r.label), 1),
46
- c("div", M, [
47
- (e(), n(l(r.errors.length > 1 ? "ul" : "div"), { class: "error-list" }, {
48
- default: o(() => [
49
- (e(!0), d(p, null, k(r.errors, (v) => (e(), n(l(r.errors.length > 1 ? "li" : "span"), { key: v }, {
50
- default: o(() => [
51
- E(u(v), 1)
52
- ]),
53
- _: 2
54
- }, 1024))), 128))
55
- ]),
56
- _: 2
57
- }, 1024))
58
- ]),
59
- c("a", {
60
- href: `#${r.inputId}`,
61
- class: "error-link"
62
- }, [
63
- (e(), n(l(a(m) ? "v-icon" : "i"), {
64
- icon: a(N),
65
- "aria-hidden": "true"
66
- }, {
67
- default: o(() => [...s[0] || (s[0] = [
68
- c("i", null, "🔗", -1)
69
- ])]),
70
- _: 1
71
- }, 8, ["icon"])),
72
- E(" " + u(a(g)("form.fix_input")), 1)
73
- ], 8, O)
74
- ]),
75
- _: 2
76
- }, 1024))), 128))
77
- ]),
78
- _: 1
79
- })) : (e(), d("span", P, u(f.value[0]), 1))
80
- ]),
81
- _: 1
82
- }, 8, ["class"]))
83
- ], !0)
84
- ])) : w("", !0)
85
- ]),
86
- _: 3
87
- }));
88
- }
89
- });
1
+ import f from "./vue-components.es15.js";
90
2
  export {
91
- A as default
3
+ f as default
92
4
  };
@@ -0,0 +1,4 @@
1
+ import f from "./vue-components.es16.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,9 +1,92 @@
1
- const s = (t, e) => {
2
- const o = t.__vccOpts || t;
3
- for (const [r, c] of e)
4
- o[r] = c;
5
- return o;
6
- };
1
+ import { defineComponent as _, getCurrentInstance as y, computed as B, createBlock as n, openBlock as e, Transition as C, withCtx as o, createElementBlock as d, createCommentVNode as w, renderSlot as x, normalizeProps as b, guardReactiveProps as I, resolveDynamicComponent as l, unref as a, normalizeClass as V, createElementVNode as c, toDisplayString as u, Fragment as p, renderList as k, createTextVNode as E } from "vue";
2
+ import { mdiLink as N } from "@mdi/js";
3
+ import { useIntl as z } from "./vue-components.es3.js";
4
+ const D = {
5
+ key: 0,
6
+ class: "error-alert"
7
+ }, G = { class: "text-h6 mb-3" }, L = { class: "font-weight-medium" }, M = { class: "error-message" }, O = ["href"], P = { key: 1 }, A = /* @__PURE__ */ _({
8
+ __name: "OmegaErrorsInternal",
9
+ props: {
10
+ errors: {},
11
+ generalErrors: {},
12
+ showErrors: { type: Boolean }
13
+ },
14
+ setup(t) {
15
+ const m = y()?.appContext.components.VAlert, h = t, { trans: g } = z(), f = B(() => h.generalErrors ? h.generalErrors.filter((i) => !!i).flatMap(
16
+ (i) => Object.values(i).filter((s) => !!s).flatMap(
17
+ (s) => s.filter(
18
+ (r) => !!r?.message
19
+ ).map((r) => r.message)
20
+ )
21
+ ) : []);
22
+ return (i, s) => (e(), n(C, null, {
23
+ default: o(() => [
24
+ t.showErrors && (t.errors.length || f.value.length) ? (e(), d("div", D, [
25
+ x(i.$slots, "default", b(I({ errors: t.errors, showedGeneralErrors: f.value })), () => [
26
+ (e(), n(l(a(m) ? "v-alert" : "div"), {
27
+ class: V([a(m) ? "mb-4" : "error-alert-content", "mb-4"]),
28
+ type: "error",
29
+ variant: "tonal",
30
+ role: "alert",
31
+ "aria-live": "polite"
32
+ }, {
33
+ default: o(() => [
34
+ c("div", G, u(a(g)("form.includes_error")) + ": ", 1),
35
+ t.errors.length ? (e(), n(l(t.errors.length > 1 ? "ul" : "div"), {
36
+ key: 0,
37
+ class: "error-list"
38
+ }, {
39
+ default: o(() => [
40
+ (e(!0), d(p, null, k(t.errors, (r) => (e(), n(l(t.errors.length > 1 ? "li" : "div"), {
41
+ key: r.inputId,
42
+ class: "error-item"
43
+ }, {
44
+ default: o(() => [
45
+ c("div", L, u(r.label), 1),
46
+ c("div", M, [
47
+ (e(), n(l(r.errors.length > 1 ? "ul" : "div"), { class: "error-list" }, {
48
+ default: o(() => [
49
+ (e(!0), d(p, null, k(r.errors, (v) => (e(), n(l(r.errors.length > 1 ? "li" : "span"), { key: v }, {
50
+ default: o(() => [
51
+ E(u(v), 1)
52
+ ]),
53
+ _: 2
54
+ }, 1024))), 128))
55
+ ]),
56
+ _: 2
57
+ }, 1024))
58
+ ]),
59
+ c("a", {
60
+ href: `#${r.inputId}`,
61
+ class: "error-link"
62
+ }, [
63
+ (e(), n(l(a(m) ? "v-icon" : "i"), {
64
+ icon: a(N),
65
+ "aria-hidden": "true"
66
+ }, {
67
+ default: o(() => [...s[0] || (s[0] = [
68
+ c("i", null, "🔗", -1)
69
+ ])]),
70
+ _: 1
71
+ }, 8, ["icon"])),
72
+ E(" " + u(a(g)("form.fix_input")), 1)
73
+ ], 8, O)
74
+ ]),
75
+ _: 2
76
+ }, 1024))), 128))
77
+ ]),
78
+ _: 1
79
+ })) : (e(), d("span", P, u(f.value[0]), 1))
80
+ ]),
81
+ _: 1
82
+ }, 8, ["class"]))
83
+ ], !0)
84
+ ])) : w("", !0)
85
+ ]),
86
+ _: 3
87
+ }));
88
+ }
89
+ });
7
90
  export {
8
- s as default
91
+ A as default
9
92
  };
@@ -0,0 +1,9 @@
1
+ const s = (t, e) => {
2
+ const o = t.__vccOpts || t;
3
+ for (const [r, c] of e)
4
+ o[r] = c;
5
+ return o;
6
+ };
7
+ export {
8
+ s as default
9
+ };
@@ -1,6 +1,33 @@
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 o from "./vue-components.es23.js";
3
-
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
+ import { useStore as f } from "@tanstack/vue-form";
3
+ import { getOmegaStore as c } from "./vue-components.es48.js";
4
+ const p = ["disabled"], V = /* @__PURE__ */ m({
5
+ __name: "OmegaWrapper",
6
+ props: {
7
+ form: {},
8
+ disabled: { type: Boolean },
9
+ subscribe: {}
10
+ },
11
+ setup(e) {
12
+ const t = e, i = f(
13
+ t.form.store,
14
+ (o) => o.isSubmitting
15
+ ), n = c(
16
+ t.form,
17
+ t.subscribe
18
+ );
19
+ return (o, r) => (a(), d("form", {
20
+ novalidate: "",
21
+ onSubmit: r[0] || (r[0] = l((S) => e.form.handleSubmit(), ["prevent", "stop"]))
22
+ }, [
23
+ u("fieldset", {
24
+ disabled: s(i) || e.disabled
25
+ }, [
26
+ b(o.$slots, "default", { subscribedValues: s(n) }, void 0, !0)
27
+ ], 8, p)
28
+ ], 32));
29
+ }
30
+ });
4
31
  export {
5
- o as default
32
+ V as default
6
33
  };
@@ -1,25 +1,6 @@
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
+ (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 o from "./vue-components.es25.js";
3
+
22
4
  export {
23
- x as ROOT_CONTEXT,
24
- a as createContextKey
5
+ o as default
25
6
  };
@@ -1,7 +1,25 @@
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
+ 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();
5
22
  export {
6
- R as DiagLogLevel
23
+ x as ROOT_CONTEXT,
24
+ a as createContextKey
7
25
  };
@@ -1,23 +1,7 @@
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
- );
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 = {}));
21
5
  export {
22
- c as ProxyTracer
6
+ R as DiagLogLevel
23
7
  };
@@ -1,32 +1,23 @@
1
- import { ContextAPI as l } from "./vue-components.es45.js";
2
- import { getSpanContext as m, setSpan as d } from "./vue-components.es51.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 = (
1
+ import { NoopTracer as o } from "./vue-components.es39.js";
2
+ var s = new o(), c = (
6
3
  /** @class */
7
4
  (function() {
8
- function t() {
5
+ function r(t, e, n, a) {
6
+ this._provider = t, this.name = e, this.version = n, this.options = a;
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
- }
24
- }, t;
8
+ return r.prototype.startSpan = function(t, e, n) {
9
+ return this._getTracer().startSpan(t, e, n);
10
+ }, r.prototype.startActiveSpan = function(t, e, n, a) {
11
+ var i = this._getTracer();
12
+ return Reflect.apply(i.startActiveSpan, i, arguments);
13
+ }, r.prototype._getTracer = function() {
14
+ if (this._delegate)
15
+ return this._delegate;
16
+ var t = this._provider.getDelegateTracer(this.name, this.version, this.options);
17
+ return t ? (this._delegate = t, this._delegate) : s;
18
+ }, r;
25
19
  })()
26
20
  );
27
- function g(t) {
28
- return typeof t == "object" && typeof t.spanId == "string" && typeof t.traceId == "string" && typeof t.traceFlags == "number";
29
- }
30
21
  export {
31
- I as NoopTracer
22
+ c as ProxyTracer
32
23
  };
@@ -1,24 +1,32 @@
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 = (
1
+ import { ContextAPI as l } from "./vue-components.es46.js";
2
+ import { getSpanContext as m, setSpan as d } from "./vue-components.es53.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 = (
4
6
  /** @class */
5
7
  (function() {
6
8
  function t() {
7
9
  }
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);
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
+ }
19
24
  }, t;
20
25
  })()
21
26
  );
27
+ function g(t) {
28
+ return typeof t == "object" && typeof t.spanId == "string" && typeof t.traceId == "string" && typeof t.traceFlags == "number";
29
+ }
22
30
  export {
23
- g as ProxyTracerProvider
31
+ I as NoopTracer
24
32
  };
@@ -1,49 +1,49 @@
1
- import { defineComponent as h, inject as $, computed as s, createBlock as i, openBlock as u, resolveDynamicComponent as M, withCtx as f, createCommentVNode as b, mergeProps as C, renderSlot as k, normalizeProps as y, guardReactiveProps as F } from "vue";
2
- import { useIntl as A } from "./vue-components.es3.js";
3
- import { generateInputStandardSchemaFromFieldMeta as w } from "./vue-components.es9.js";
4
- import I from "./vue-components.es5.js";
5
- const z = /* @__PURE__ */ h({
6
- inheritAttrs: !1,
7
- __name: "OmegaInput",
8
- props: {
9
- form: {},
10
- label: {},
11
- validators: {},
12
- name: {}
13
- },
14
- setup(a) {
15
- const e = a, n = $(
16
- "getMetaFromArray",
17
- null
18
- ), r = s(() => n?.value && n.value(e.name) ? n.value(e.name) : e.form.meta[e.name]), c = s(() => {
19
- if (!r.value)
20
- throw console.log(e.name, Object.keys(e.form.meta), e.form.meta), new Error("Meta is undefined");
21
- return w(r.value);
22
- }), { formatMessage: o } = A(), d = (t) => t.replace(/([A-Z])/g, " $1").replace(/^./, (l) => l.toUpperCase()).trim(), m = () => o({ id: `general.fields.${e.name}`, defaultMessage: d(e.name) }), p = () => e.form.i18nNamespace ? o({ id: `${e.form.i18nNamespace}.fields.${e.name}`, defaultMessage: m() }) : m();
23
- return (t, l) => (u(), i(M(a.form.Field), {
24
- name: a.name,
25
- validators: {
26
- onChange: c.value,
27
- ...a.validators
28
- }
29
- }, {
30
- default: f(({ field: v }) => [
31
- r.value ? (u(), i(I, C({
32
- key: 0,
33
- field: v,
34
- label: a.label ?? p(),
35
- meta: r.value
36
- }, { ...t.$attrs, ...t.$props }), {
37
- default: f((g) => [
38
- k(t.$slots, "default", y(F(g)))
39
- ]),
40
- _: 3
41
- }, 16, ["field", "label", "meta"])) : b("", !0)
42
- ]),
43
- _: 3
44
- }, 8, ["name", "validators"]));
1
+ import { defineComponent as c, mergeModels as f, useModel as v, resolveComponent as C, createBlock as k, openBlock as V, unref as a, createSlots as g, withCtx as d, renderSlot as u, renderList as y, normalizeProps as B, guardReactiveProps as E } from "vue";
2
+ import { useOnClose as M } from "./vue-components.es9.js";
3
+ import { onMountedWithCleanup as _ } from "./vue-components.es24.js";
4
+ const P = /* @__PURE__ */ c({
5
+ __name: "Dialog",
6
+ props: /* @__PURE__ */ f({
7
+ persistent: { type: Boolean }
8
+ }, {
9
+ modelValue: { type: Boolean },
10
+ modelModifiers: {}
11
+ }),
12
+ emits: ["update:modelValue"],
13
+ setup(s) {
14
+ const i = s, o = v(s, "modelValue"), l = M(() => o.value = !1);
15
+ return _(() => {
16
+ const e = (t) => {
17
+ o.value && !i.persistent && t.code === "Escape" && l();
18
+ };
19
+ return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
20
+ }), (e, t) => {
21
+ const p = C("v-dialog");
22
+ return V(), k(p, {
23
+ modelValue: o.value,
24
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => o.value = n),
25
+ persistent: "",
26
+ "onClick:outside": a(l)
27
+ }, g({
28
+ default: d(({ isActive: n }) => [
29
+ u(e.$slots, "default", {
30
+ open: o.value,
31
+ cancel: a(l),
32
+ isActive: n
33
+ })
34
+ ]),
35
+ _: 2
36
+ }, [
37
+ y(e.$slots, (n, r) => ({
38
+ name: r,
39
+ fn: d((m) => [
40
+ u(e.$slots, r, B(E(m)))
41
+ ])
42
+ }))
43
+ ]), 1032, ["modelValue", "onClick:outside"]);
44
+ };
45
45
  }
46
46
  });
47
47
  export {
48
- z as default
48
+ P as default
49
49
  };
@@ -1,14 +1,24 @@
1
- import { NoopTracer as o } from "./vue-components.es38.js";
2
- var p = (
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 = (
3
4
  /** @class */
4
5
  (function() {
5
- function r() {
6
+ function t() {
6
7
  }
7
- return r.prototype.getTracer = function(e, n, t) {
8
- return new o();
9
- }, r;
8
+ return t.prototype.getTracer = function(e, o, a) {
9
+ var r;
10
+ return (r = this.getDelegateTracer(e, o, a)) !== null && r !== void 0 ? r : new i(this, e, o, a);
11
+ }, t.prototype.getDelegate = function() {
12
+ var e;
13
+ return (e = this._delegate) !== null && e !== void 0 ? e : c;
14
+ }, t.prototype.setDelegate = function(e) {
15
+ this._delegate = e;
16
+ }, t.prototype.getDelegateTracer = function(e, o, a) {
17
+ var r;
18
+ return (r = this._delegate) === null || r === void 0 ? void 0 : r.getTracer(e, o, a);
19
+ }, t;
10
20
  })()
11
21
  );
12
22
  export {
13
- p as NoopTracerProvider
23
+ g as ProxyTracerProvider
14
24
  };
@@ -1,7 +1,14 @@
1
- var N;
2
- (function(E) {
3
- E[E.NONE = 0] = "NONE", E[E.SAMPLED = 1] = "SAMPLED";
4
- })(N || (N = {}));
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
+ );
5
12
  export {
6
- N as TraceFlags
13
+ p as NoopTracerProvider
7
14
  };