@effect-app/vue-components 1.0.0 → 1.0.1

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 (36) hide show
  1. package/dist/vue-components.es10.js +1 -1
  2. package/dist/vue-components.es11.js +1 -1
  3. package/dist/vue-components.es14.js +2 -2
  4. package/dist/vue-components.es15.js +2 -2
  5. package/dist/vue-components.es16.js +1 -1
  6. package/dist/vue-components.es17.js +1 -1
  7. package/dist/vue-components.es19.js +41 -134
  8. package/dist/vue-components.es20.js +4 -0
  9. package/dist/vue-components.es21.js +2 -42
  10. package/dist/vue-components.es22.js +90 -2
  11. package/dist/vue-components.es24.js +7 -90
  12. package/dist/vue-components.es25.js +33 -0
  13. package/dist/vue-components.es27.js +23 -31
  14. package/dist/vue-components.es28.js +7 -0
  15. package/dist/vue-components.es29.js +21 -4
  16. package/dist/vue-components.es30.js +27 -20
  17. package/dist/vue-components.es31.js +22 -5
  18. package/dist/vue-components.es32.js +6 -15
  19. package/dist/vue-components.es33.js +5 -30
  20. package/dist/vue-components.es34.js +19 -22
  21. package/dist/vue-components.es35.js +9 -12
  22. package/dist/vue-components.es36.js +31 -5
  23. package/dist/vue-components.es37.js +48 -19
  24. package/dist/vue-components.es38.js +26 -9
  25. package/dist/vue-components.es39.js +135 -31
  26. package/dist/vue-components.es4.js +1 -1
  27. package/dist/vue-components.es41.js +11 -26
  28. package/dist/vue-components.es42.js +4 -11
  29. package/dist/vue-components.es43.js +1 -1
  30. package/dist/vue-components.es45.js +1 -1
  31. package/dist/vue-components.es47.js +3 -3
  32. package/dist/vue-components.es48.js +1 -1
  33. package/package.json +2 -2
  34. package/dist/vue-components.es23.js +0 -4
  35. package/dist/vue-components.es26.js +0 -9
  36. package/dist/vue-components.es40.js +0 -50
@@ -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.es21.js";
2
+ import { dual as n, isFunction as m } from "./vue-components.es19.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.es21.js";
1
+ import { isFunction as c } from "./vue-components.es19.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,7 +1,7 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");if(t.appendChild(document.createTextNode(".v-enter-from[data-v-193816ae],.v-leave-to[data-v-193816ae]{max-height:0px;grid-template-rows:0fr;opacity:0}.v-enter-active[data-v-193816ae],.v-leave-active[data-v-193816ae]{display:grid;transition:all .15s}.v-enter-to[data-v-193816ae],.v-leave-from[data-v-193816ae]{grid-template-rows:1fr;max-height:50vh;opacity:1}.error-alert[data-v-193816ae]{transition-behavior:allow-discrete;display:grid;overflow:hidden;min-height:0}.error-alert>*[data-v-193816ae]{min-height:0}.error-list[data-v-193816ae]{list-style-position:inside}div.error-list[data-v-193816ae]{container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;gap:1.5em;align-items:start}@container (max-width: 27.125rem){div.error-list[data-v-193816ae]{grid-template-columns:auto 1fr}.error-link[data-v-193816ae]{grid-column:1 / -1;justify-self:end}}@container (max-width: 17.75rem){div.error-list[data-v-193816ae]{grid-template-columns:1fr}.error-message[data-v-193816ae]{grid-column:1 / -1}}.error-item[data-v-193816ae]{display:contents}a[data-v-193816ae]{min-width:min-content}.error-link[data-v-193816ae]{align-items:center;color:inherit;display:inline-flex;flex-wrap:wrap;gap:.25em;padding-bottom:1em;text-decoration:none}")),document.head.appendChild(t),window.customElements){const e=window.customElements.define;window.customElements.define=function(n,a){const i=a.prototype.connectedCallback;return a.prototype.connectedCallback=function(){if(i&&i.call(this),this.shadowRoot){const r=document.createElement("style");r.appendChild(document.createTextNode(".v-enter-from[data-v-193816ae],.v-leave-to[data-v-193816ae]{max-height:0px;grid-template-rows:0fr;opacity:0}.v-enter-active[data-v-193816ae],.v-leave-active[data-v-193816ae]{display:grid;transition:all .15s}.v-enter-to[data-v-193816ae],.v-leave-from[data-v-193816ae]{grid-template-rows:1fr;max-height:50vh;opacity:1}.error-alert[data-v-193816ae]{transition-behavior:allow-discrete;display:grid;overflow:hidden;min-height:0}.error-alert>*[data-v-193816ae]{min-height:0}.error-list[data-v-193816ae]{list-style-position:inside}div.error-list[data-v-193816ae]{container-type:inline-size;display:grid;grid-template-columns:auto 1fr auto;gap:1.5em;align-items:start}@container (max-width: 27.125rem){div.error-list[data-v-193816ae]{grid-template-columns:auto 1fr}.error-link[data-v-193816ae]{grid-column:1 / -1;justify-self:end}}@container (max-width: 17.75rem){div.error-list[data-v-193816ae]{grid-template-columns:1fr}.error-message[data-v-193816ae]{grid-column:1 / -1}}.error-item[data-v-193816ae]{display:contents}a[data-v-193816ae]{min-width:min-content}.error-link[data-v-193816ae]{align-items:center;color:inherit;display:inline-flex;flex-wrap:wrap;gap:.25em;padding-bottom:1em;text-decoration:none}")),this.shadowRoot.appendChild(r)}},e.call(window.customElements,n,a)}}}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- import r from "./vue-components.es24.js";
2
+ import r from "./vue-components.es22.js";
3
3
 
4
- import o from "./vue-components.es26.js";
4
+ import o from "./vue-components.es24.js";
5
5
  const m = /* @__PURE__ */ o(r, [["__scopeId", "data-v-193816ae"]]);
6
6
  export {
7
7
  m as default
@@ -1,7 +1,7 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var n=document.createElement("style");if(n.appendChild(document.createTextNode("fieldset[data-v-440e1a59]{display:contents}fieldset[disabled][data-v-440e1a59]>*{pointer-events:none}")),document.head.appendChild(n),window.customElements){const e=window.customElements.define;window.customElements.define=function(i,t){const d=t.prototype.connectedCallback;return t.prototype.connectedCallback=function(){if(d&&d.call(this),this.shadowRoot){const o=document.createElement("style");o.appendChild(document.createTextNode("fieldset[data-v-440e1a59]{display:contents}fieldset[disabled][data-v-440e1a59]>*{pointer-events:none}")),this.shadowRoot.appendChild(o)}},e.call(window.customElements,i,t)}}}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- import o from "./vue-components.es27.js";
2
+ import o from "./vue-components.es25.js";
3
3
 
4
- import m from "./vue-components.es26.js";
4
+ import m from "./vue-components.es24.js";
5
5
  const e = /* @__PURE__ */ m(o, [["__scopeId", "data-v-440e1a59"]]);
6
6
  export {
7
7
  e as default
@@ -1,4 +1,4 @@
1
- import { TraceAPI as r } from "./vue-components.es41.js";
1
+ import { TraceAPI as r } from "./vue-components.es38.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.es37.js";
2
2
  var o = t.getInstance();
3
3
  export {
4
4
  o as context
@@ -1,137 +1,44 @@
1
- import { defineComponent as y, resolveComponent as s, createElementBlock as u, openBlock as o, createBlock as n, createCommentVNode as l, resolveDynamicComponent as a, mergeProps as i, unref as b, withCtx as f, Fragment as h, renderList as V } from "vue";
2
- import { getInputType as C } from "./vue-components.es8.js";
3
- const $ = /* @__PURE__ */ y({
4
- inheritAttrs: !1,
5
- __name: "OmegaInputVuetify",
6
- props: {
7
- inputProps: {},
8
- vuetifyValue: {}
9
- },
10
- emits: ["focus", "blur"],
11
- setup(q) {
12
- return (e, p) => {
13
- const t = s("v-text-field"), m = s("v-textarea"), d = s("v-radio"), P = s("v-radio-group"), g = s("v-select"), v = s("v-autocomplete");
14
- return o(), u("div", {
15
- class: "omega-input",
16
- onFocusout: p[4] || (p[4] = (r) => e.$emit("blur", r)),
17
- onFocusin: p[5] || (p[5] = (r) => e.$emit("focus", r))
18
- }, [
19
- e.inputProps.type === "boolean" || e.inputProps.type === "switch" ? (o(), n(a(e.inputProps.type === "boolean" ? "v-checkbox" : "v-switch"), i({
20
- key: 0,
21
- id: e.inputProps.id,
22
- name: e.inputProps.name,
23
- label: e.inputProps.label,
24
- "error-messages": e.inputProps.errorMessages,
25
- error: e.inputProps.error,
26
- ripple: ""
27
- }, e.$attrs, {
28
- "model-value": e.vuetifyValue,
29
- onChange: p[0] || (p[0] = (r) => e.inputProps.field.handleChange(r.target.checked))
30
- }), null, 16, ["id", "name", "label", "error-messages", "error", "model-value"])) : l("", !0),
31
- e.inputProps.type === "email" || e.inputProps.type === "string" || e.inputProps.type === "password" ? (o(), n(t, i({
32
- key: 1,
33
- id: e.inputProps.id,
34
- required: e.inputProps.required,
35
- "min-length": e.inputProps.minLength,
36
- "max-length": e.inputProps.maxLength,
37
- type: b(C)(e.inputProps.type),
38
- name: e.inputProps.name,
39
- label: e.inputProps.label,
40
- "error-messages": e.inputProps.errorMessages,
41
- error: e.inputProps.error
42
- }, e.$attrs, {
43
- "model-value": e.vuetifyValue,
44
- "onUpdate:modelValue": e.inputProps.field.handleChange
45
- }), null, 16, ["id", "required", "min-length", "max-length", "type", "name", "label", "error-messages", "error", "model-value", "onUpdate:modelValue"])) : l("", !0),
46
- e.inputProps.type === "text" ? (o(), n(m, i({
47
- key: 2,
48
- id: e.inputProps.id,
49
- required: e.inputProps.required,
50
- "min-length": e.inputProps.minLength,
51
- "max-length": e.inputProps.maxLength,
52
- name: e.inputProps.name,
53
- label: e.inputProps.label,
54
- "error-messages": e.inputProps.errorMessages,
55
- error: e.inputProps.error
56
- }, e.$attrs, {
57
- "model-value": e.vuetifyValue,
58
- "onUpdate:modelValue": e.inputProps.field.handleChange
59
- }), null, 16, ["id", "required", "min-length", "max-length", "name", "label", "error-messages", "error", "model-value", "onUpdate:modelValue"])) : l("", !0),
60
- e.inputProps.type === "number" || e.inputProps.type === "range" ? (o(), n(a(e.inputProps.type === "range" ? "v-slider" : "v-text-field"), i({
61
- key: 3,
62
- id: e.inputProps.id,
63
- required: e.inputProps.required,
64
- min: e.inputProps.min,
65
- max: e.inputProps.max,
66
- type: e.inputProps.type,
67
- name: e.inputProps.name,
68
- label: e.inputProps.label,
69
- "error-messages": e.inputProps.errorMessages,
70
- error: e.inputProps.error
71
- }, e.$attrs, {
72
- "model-value": e.vuetifyValue,
73
- "onUpdate:modelValue": p[1] || (p[1] = (r) => {
74
- r || r === 0 ? e.inputProps.field.handleChange(Number(r)) : e.inputProps.field.handleChange(void 0);
75
- })
76
- }), null, 16, ["id", "required", "min", "max", "type", "name", "label", "error-messages", "error", "model-value"])) : l("", !0),
77
- e.inputProps.type === "radio" ? (o(), n(P, i({
78
- key: 4,
79
- id: e.inputProps.id,
80
- name: e.inputProps.name,
81
- label: e.inputProps.label,
82
- "error-messages": e.inputProps.errorMessages,
83
- error: e.inputProps.error
84
- }, e.$attrs, {
85
- "model-value": e.vuetifyValue,
86
- "onUpdate:modelValue": e.inputProps.field.handleChange
87
- }), {
88
- default: f(() => [
89
- (o(!0), u(h, null, V(e.inputProps.options, (r) => (o(), n(d, {
90
- key: r.value,
91
- label: r.title,
92
- value: r.value
93
- }, null, 8, ["label", "value"]))), 128))
94
- ]),
95
- _: 1
96
- }, 16, ["id", "name", "label", "error-messages", "error", "model-value", "onUpdate:modelValue"])) : l("", !0),
97
- e.inputProps.type === "select" || e.inputProps.type === "multiple" ? (o(), n(g, i({
98
- key: 5,
99
- id: e.inputProps.id,
100
- clearable: e.inputProps.type === "select",
101
- required: e.inputProps.required,
102
- multiple: e.inputProps.type === "multiple",
103
- chips: e.inputProps.type === "multiple",
104
- name: e.inputProps.name,
105
- label: e.inputProps.label,
106
- items: e.inputProps.options,
107
- "error-messages": e.inputProps.errorMessages,
108
- error: e.inputProps.error
109
- }, e.$attrs, {
110
- "model-value": e.vuetifyValue,
111
- onClear: p[2] || (p[2] = (r) => e.inputProps.field.handleChange(void 0)),
112
- "onUpdate:modelValue": e.inputProps.field.handleChange
113
- }), null, 16, ["id", "clearable", "required", "multiple", "chips", "name", "label", "items", "error-messages", "error", "model-value", "onUpdate:modelValue"])) : l("", !0),
114
- e.inputProps.type === "autocomplete" || e.inputProps.type === "autocompletemultiple" ? (o(), n(v, i({
115
- key: 6,
116
- id: e.inputProps.id,
117
- clearable: e.inputProps.type === "autocomplete",
118
- multiple: e.inputProps.type === "autocompletemultiple",
119
- required: e.inputProps.required,
120
- name: e.inputProps.name,
121
- label: e.inputProps.label,
122
- items: e.inputProps.options,
123
- "error-messages": e.inputProps.errorMessages,
124
- error: e.inputProps.error,
125
- chips: e.inputProps.type === "autocompletemultiple"
126
- }, e.$attrs, {
127
- "model-value": e.vuetifyValue,
128
- onClear: p[3] || (p[3] = (r) => e.inputProps.field.handleChange(void 0)),
129
- "onUpdate:modelValue": e.inputProps.field.handleChange
130
- }), null, 16, ["id", "clearable", "multiple", "required", "name", "label", "items", "error-messages", "error", "chips", "model-value", "onUpdate:modelValue"])) : l("", !0)
131
- ], 32);
132
- };
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
+ };
133
39
  }
134
- });
40
+ };
135
41
  export {
136
- $ as default
42
+ a as dual,
43
+ f as isFunction
137
44
  };
@@ -0,0 +1,4 @@
1
+ import f from "./vue-components.es12.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,44 +1,4 @@
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 f from "./vue-components.es13.js";
41
2
  export {
42
- a as dual,
43
- f as isFunction
3
+ f as default
44
4
  };
@@ -1,4 +1,92 @@
1
- import f from "./vue-components.es12.js";
1
+ import { defineComponent as E, getCurrentInstance as y, computed as B, createBlock as o, openBlock as r, Transition as C, withCtx as s, createElementBlock as d, createCommentVNode as w, renderSlot as b, normalizeProps as I, guardReactiveProps as V, resolveDynamicComponent as l, unref as a, normalizeClass as N, createElementVNode as i, toDisplayString as u, Fragment as g, renderList as v, createTextVNode as _ } from "vue";
2
+ import { mdiLink as z } from "@mdi/js";
3
+ import { useIntl as D } from "./vue-components.es3.js";
4
+ const G = {
5
+ key: 0,
6
+ class: "error-alert"
7
+ }, L = { class: "text-h6 mb-3" }, M = { class: "font-weight-medium" }, O = { class: "error-message" }, P = ["href"], S = { key: 1 }, F = /* @__PURE__ */ E({
8
+ __name: "OmegaErrorsInternal",
9
+ props: {
10
+ errors: {},
11
+ generalErrors: {},
12
+ showErrors: { type: Boolean }
13
+ },
14
+ setup(k) {
15
+ const c = y()?.appContext.components.VAlert, p = k, { trans: f } = D(), m = B(() => p.generalErrors ? p.generalErrors.filter((e) => !!e).flatMap(
16
+ (e) => Object.values(e).filter((n) => !!n).flatMap(
17
+ (n) => n.filter(
18
+ (t) => !!t?.message
19
+ ).map((t) => t.message)
20
+ )
21
+ ) : []);
22
+ return (e, n) => (r(), o(C, null, {
23
+ default: s(() => [
24
+ e.showErrors && (e.errors.length || m.value.length) ? (r(), d("div", G, [
25
+ b(e.$slots, "default", I(V({ errors: e.errors, showedGeneralErrors: m.value })), () => [
26
+ (r(), o(l(a(c) ? "v-alert" : "div"), {
27
+ class: N([a(c) ? "mb-4" : "error-alert-content", "mb-4"]),
28
+ type: "error",
29
+ variant: "tonal",
30
+ role: "alert",
31
+ "aria-live": "polite"
32
+ }, {
33
+ default: s(() => [
34
+ i("div", L, u(a(f)("form.includes_error")) + ": ", 1),
35
+ e.errors.length ? (r(), o(l(e.errors.length > 1 ? "ul" : "div"), {
36
+ key: 0,
37
+ class: "error-list"
38
+ }, {
39
+ default: s(() => [
40
+ (r(!0), d(g, null, v(e.errors, (t) => (r(), o(l(e.errors.length > 1 ? "li" : "div"), {
41
+ key: t.inputId,
42
+ class: "error-item"
43
+ }, {
44
+ default: s(() => [
45
+ i("div", M, u(t.label), 1),
46
+ i("div", O, [
47
+ (r(), o(l(t.errors.length > 1 ? "ul" : "div"), { class: "error-list" }, {
48
+ default: s(() => [
49
+ (r(!0), d(g, null, v(t.errors, (h) => (r(), o(l(t.errors.length > 1 ? "li" : "span"), { key: h }, {
50
+ default: s(() => [
51
+ _(u(h), 1)
52
+ ]),
53
+ _: 2
54
+ }, 1024))), 128))
55
+ ]),
56
+ _: 2
57
+ }, 1024))
58
+ ]),
59
+ i("a", {
60
+ href: `#${t.inputId}`,
61
+ class: "error-link"
62
+ }, [
63
+ (r(), o(l(a(c) ? "v-icon" : "i"), {
64
+ icon: a(z),
65
+ "aria-hidden": "true"
66
+ }, {
67
+ default: s(() => [...n[0] || (n[0] = [
68
+ i("i", null, "🔗", -1)
69
+ ])]),
70
+ _: 1
71
+ }, 8, ["icon"])),
72
+ _(" " + u(a(f)("form.fix_input")), 1)
73
+ ], 8, P)
74
+ ]),
75
+ _: 2
76
+ }, 1024))), 128))
77
+ ]),
78
+ _: 1
79
+ })) : (r(), d("span", S, u(m.value[0]), 1))
80
+ ]),
81
+ _: 1
82
+ }, 8, ["class"]))
83
+ ], !0)
84
+ ])) : w("", !0)
85
+ ]),
86
+ _: 3
87
+ }));
88
+ }
89
+ });
2
90
  export {
3
- f as default
91
+ F as default
4
92
  };
@@ -1,92 +1,9 @@
1
- import { defineComponent as E, getCurrentInstance as y, computed as B, createBlock as o, openBlock as r, Transition as C, withCtx as s, createElementBlock as d, createCommentVNode as w, renderSlot as b, normalizeProps as I, guardReactiveProps as V, resolveDynamicComponent as l, unref as a, normalizeClass as N, createElementVNode as i, toDisplayString as u, Fragment as g, renderList as v, createTextVNode as _ } from "vue";
2
- import { mdiLink as z } from "@mdi/js";
3
- import { useIntl as D } from "./vue-components.es3.js";
4
- const G = {
5
- key: 0,
6
- class: "error-alert"
7
- }, L = { class: "text-h6 mb-3" }, M = { class: "font-weight-medium" }, O = { class: "error-message" }, P = ["href"], S = { key: 1 }, F = /* @__PURE__ */ E({
8
- __name: "OmegaErrorsInternal",
9
- props: {
10
- errors: {},
11
- generalErrors: {},
12
- showErrors: { type: Boolean }
13
- },
14
- setup(k) {
15
- const c = y()?.appContext.components.VAlert, p = k, { trans: f } = D(), m = B(() => p.generalErrors ? p.generalErrors.filter((e) => !!e).flatMap(
16
- (e) => Object.values(e).filter((n) => !!n).flatMap(
17
- (n) => n.filter(
18
- (t) => !!t?.message
19
- ).map((t) => t.message)
20
- )
21
- ) : []);
22
- return (e, n) => (r(), o(C, null, {
23
- default: s(() => [
24
- e.showErrors && (e.errors.length || m.value.length) ? (r(), d("div", G, [
25
- b(e.$slots, "default", I(V({ errors: e.errors, showedGeneralErrors: m.value })), () => [
26
- (r(), o(l(a(c) ? "v-alert" : "div"), {
27
- class: N([a(c) ? "mb-4" : "error-alert-content", "mb-4"]),
28
- type: "error",
29
- variant: "tonal",
30
- role: "alert",
31
- "aria-live": "polite"
32
- }, {
33
- default: s(() => [
34
- i("div", L, u(a(f)("form.includes_error")) + ": ", 1),
35
- e.errors.length ? (r(), o(l(e.errors.length > 1 ? "ul" : "div"), {
36
- key: 0,
37
- class: "error-list"
38
- }, {
39
- default: s(() => [
40
- (r(!0), d(g, null, v(e.errors, (t) => (r(), o(l(e.errors.length > 1 ? "li" : "div"), {
41
- key: t.inputId,
42
- class: "error-item"
43
- }, {
44
- default: s(() => [
45
- i("div", M, u(t.label), 1),
46
- i("div", O, [
47
- (r(), o(l(t.errors.length > 1 ? "ul" : "div"), { class: "error-list" }, {
48
- default: s(() => [
49
- (r(!0), d(g, null, v(t.errors, (h) => (r(), o(l(t.errors.length > 1 ? "li" : "span"), { key: h }, {
50
- default: s(() => [
51
- _(u(h), 1)
52
- ]),
53
- _: 2
54
- }, 1024))), 128))
55
- ]),
56
- _: 2
57
- }, 1024))
58
- ]),
59
- i("a", {
60
- href: `#${t.inputId}`,
61
- class: "error-link"
62
- }, [
63
- (r(), o(l(a(c) ? "v-icon" : "i"), {
64
- icon: a(z),
65
- "aria-hidden": "true"
66
- }, {
67
- default: s(() => [...n[0] || (n[0] = [
68
- i("i", null, "🔗", -1)
69
- ])]),
70
- _: 1
71
- }, 8, ["icon"])),
72
- _(" " + u(a(f)("form.fix_input")), 1)
73
- ], 8, P)
74
- ]),
75
- _: 2
76
- }, 1024))), 128))
77
- ]),
78
- _: 1
79
- })) : (r(), d("span", S, u(m.value[0]), 1))
80
- ]),
81
- _: 1
82
- }, 8, ["class"]))
83
- ], !0)
84
- ])) : w("", !0)
85
- ]),
86
- _: 3
87
- }));
88
- }
89
- });
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
+ };
90
7
  export {
91
- F as default
8
+ s as default
92
9
  };
@@ -0,0 +1,33 @@
1
+ import { defineComponent as m, createElementBlock as d, openBlock as a, withModifiers as l, createElementVNode as u, unref as r, renderSlot as b } from "vue";
2
+ import { useStore as f } from "@tanstack/vue-form";
3
+ import { getOmegaStore as p } from "./vue-components.es41.js";
4
+ const c = ["disabled"], V = /* @__PURE__ */ m({
5
+ __name: "OmegaWrapper",
6
+ props: {
7
+ form: {},
8
+ disabled: { type: Boolean },
9
+ subscribe: {}
10
+ },
11
+ setup(s) {
12
+ const o = s, i = f(
13
+ o.form.store,
14
+ (e) => e.isSubmitting
15
+ ), n = p(
16
+ o.form,
17
+ o.subscribe
18
+ );
19
+ return (e, t) => (a(), d("form", {
20
+ novalidate: "",
21
+ onSubmit: t[0] || (t[0] = l((S) => e.form.handleSubmit(), ["prevent", "stop"]))
22
+ }, [
23
+ u("fieldset", {
24
+ disabled: r(i) || e.disabled
25
+ }, [
26
+ b(e.$slots, "default", { subscribedValues: r(n) }, void 0, !0)
27
+ ], 8, c)
28
+ ], 32));
29
+ }
30
+ });
31
+ export {
32
+ V as default
33
+ };
@@ -1,33 +1,25 @@
1
- import { defineComponent as m, createElementBlock as d, openBlock as a, withModifiers as l, createElementVNode as u, unref as r, renderSlot as b } from "vue";
2
- import { useStore as f } from "@tanstack/vue-form";
3
- import { getOmegaStore as p } from "./vue-components.es42.js";
4
- const c = ["disabled"], V = /* @__PURE__ */ m({
5
- __name: "OmegaWrapper",
6
- props: {
7
- form: {},
8
- disabled: { type: Boolean },
9
- subscribe: {}
10
- },
11
- setup(s) {
12
- const o = s, i = f(
13
- o.form.store,
14
- (e) => e.isSubmitting
15
- ), n = p(
16
- o.form,
17
- o.subscribe
18
- );
19
- return (e, t) => (a(), d("form", {
20
- novalidate: "",
21
- onSubmit: t[0] || (t[0] = l((S) => e.form.handleSubmit(), ["prevent", "stop"]))
22
- }, [
23
- u("fieldset", {
24
- disabled: r(i) || e.disabled
25
- }, [
26
- b(e.$slots, "default", { subscribedValues: r(n) }, void 0, !0)
27
- ], 8, c)
28
- ], 32));
29
- }
30
- });
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();
31
22
  export {
32
- V as default
23
+ x as ROOT_CONTEXT,
24
+ a as createContextKey
33
25
  };
@@ -0,0 +1,7 @@
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 = {}));
5
+ export {
6
+ R as DiagLogLevel
7
+ };
@@ -1,6 +1,23 @@
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.es19.js";
3
-
1
+ import { NoopTracer as o } from "./vue-components.es30.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
+ );
4
21
  export {
5
- o as default
22
+ c as ProxyTracer
6
23
  };