@effect-app/vue-components 4.0.0-beta.4 → 4.0.0-beta.40
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/README.md +24 -0
- package/dist/reset.css +51 -0
- package/dist/types/components/OmegaForm/OmegaAutoGen.vue.d.ts +1 -1
- package/dist/types/components/OmegaForm/OmegaFormStuff.d.ts +22 -15
- package/dist/types/components/OmegaForm/useOmegaForm.d.ts +3 -5
- package/dist/types/utils/index.d.ts +3 -4
- package/dist/vue-components.es.js +8 -7
- package/dist/vue-components.es10.js +138 -135
- package/dist/vue-components.es11.js +2 -2
- package/dist/vue-components.es12.js +430 -344
- package/dist/vue-components.es16.js +4 -11
- package/dist/vue-components.es17.js +11 -723
- package/dist/vue-components.es18.js +52 -138
- package/dist/vue-components.es19.js +54 -4
- package/dist/vue-components.es2.js +15 -14
- package/dist/vue-components.es20.js +6 -11
- package/dist/vue-components.es21.js +6 -3
- package/dist/vue-components.es22.js +3 -24
- package/dist/vue-components.es23.js +3 -4
- package/dist/vue-components.es24.js +2 -8
- package/dist/vue-components.es25.js +2 -55
- package/dist/vue-components.es26.js +2 -69
- package/dist/vue-components.es27.js +2 -6
- package/dist/vue-components.es28.js +17 -6
- package/dist/vue-components.es29.js +11 -3
- package/dist/vue-components.es3.js +11 -10
- package/dist/vue-components.es30.js +192 -3
- package/dist/vue-components.es32.js +29 -2
- package/dist/vue-components.es33.js +4 -2
- package/dist/vue-components.es34.js +1 -1
- package/dist/vue-components.es35.js +2 -17
- package/dist/vue-components.es36.js +107 -188
- package/dist/vue-components.es38.js +7 -4
- package/dist/vue-components.es39.js +30 -36
- package/dist/vue-components.es41.js +4 -83
- package/dist/vue-components.es42.js +22 -51
- package/dist/vue-components.es43.js +5 -561
- package/dist/vue-components.es44.js +20 -40
- package/dist/vue-components.es45.js +29 -26
- package/dist/vue-components.es46.js +22 -5
- package/dist/vue-components.es47.js +12 -40
- package/dist/vue-components.es48.js +5 -314
- package/dist/vue-components.es49.js +16 -28
- package/dist/vue-components.es5.js +1 -1
- package/dist/vue-components.es50.js +9 -4
- package/dist/vue-components.es51.js +31 -24
- package/dist/vue-components.es52.js +46 -73
- package/dist/vue-components.es53.js +25 -98
- package/dist/vue-components.es54.js +11 -2
- package/dist/vue-components.es55.js +61 -314
- package/dist/vue-components.es56.js +55 -63
- package/dist/vue-components.es57.js +17 -2
- package/dist/vue-components.es58.js +33 -2
- package/dist/vue-components.es59.js +29 -111
- package/dist/{vue-components.es97.js → vue-components.es60.js} +1 -1
- package/dist/vue-components.es61.js +2 -7
- package/dist/vue-components.es62.js +43 -31
- package/dist/vue-components.es7.js +37 -37
- package/package.json +17 -13
- package/src/components/OmegaForm/OmegaAutoGen.vue +25 -30
- package/src/components/OmegaForm/OmegaErrorsInternal.vue +2 -3
- package/src/components/OmegaForm/OmegaFormStuff.ts +499 -326
- package/src/components/OmegaForm/OmegaInternalInput.vue +9 -5
- package/src/components/OmegaForm/useOmegaForm.ts +39 -36
- package/src/reset.css +51 -0
- package/src/utils/index.ts +4 -8
- package/dist/vue-components.es31.js +0 -4
- package/dist/vue-components.es40.js +0 -6
- package/dist/vue-components.es64.js +0 -103
- package/dist/vue-components.es65.js +0 -4
- package/dist/vue-components.es66.js +0 -23
- package/dist/vue-components.es67.js +0 -84
- package/dist/vue-components.es68.js +0 -14
- package/dist/vue-components.es69.js +0 -115
- package/dist/vue-components.es70.js +0 -5
- package/dist/vue-components.es71.js +0 -34
- package/dist/vue-components.es72.js +0 -4
- package/dist/vue-components.es73.js +0 -4
- package/dist/vue-components.es74.js +0 -17
- package/dist/vue-components.es75.js +0 -72
- package/dist/vue-components.es76.js +0 -25
- package/dist/vue-components.es77.js +0 -7
- package/dist/vue-components.es78.js +0 -23
- package/dist/vue-components.es79.js +0 -32
- package/dist/vue-components.es80.js +0 -24
- package/dist/vue-components.es81.js +0 -14
- package/dist/vue-components.es82.js +0 -7
- package/dist/vue-components.es83.js +0 -21
- package/dist/vue-components.es84.js +0 -11
- package/dist/vue-components.es85.js +0 -33
- package/dist/vue-components.es86.js +0 -50
- package/dist/vue-components.es87.js +0 -28
- package/dist/vue-components.es88.js +0 -17
- package/dist/vue-components.es89.js +0 -18
- package/dist/vue-components.es90.js +0 -10
- package/dist/vue-components.es91.js +0 -13
- package/dist/vue-components.es92.js +0 -67
- package/dist/vue-components.es93.js +0 -58
- package/dist/vue-components.es94.js +0 -19
- package/dist/vue-components.es95.js +0 -35
- package/dist/vue-components.es96.js +0 -31
- package/dist/vue-components.es98.js +0 -4
- package/dist/vue-components.es99.js +0 -46
- /package/dist/{vue-components.es100.js → vue-components.es63.js} +0 -0
|
@@ -1,40 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import { defineComponent as m, createElementBlock as d, openBlock as u, withModifiers as f, createElementVNode as l, unref as s, renderSlot as a } from "vue";
|
|
2
|
+
import { useStore as b } from "@tanstack/vue-form";
|
|
3
|
+
import { usePreventClose as p } from "./vue-components.es11.js";
|
|
4
|
+
import { getOmegaStore as c } from "./vue-components.es54.js";
|
|
5
|
+
const S = ["disabled"], V = /* @__PURE__ */ m({
|
|
6
|
+
__name: "OmegaWrapper",
|
|
7
|
+
props: {
|
|
8
|
+
form: {},
|
|
9
|
+
disabled: { type: Boolean },
|
|
10
|
+
subscribe: {}
|
|
11
|
+
},
|
|
12
|
+
setup(o) {
|
|
13
|
+
const e = o, i = b(
|
|
14
|
+
e.form.store,
|
|
15
|
+
(t) => t.isSubmitting
|
|
16
|
+
), n = c(
|
|
17
|
+
e.form,
|
|
18
|
+
e.subscribe
|
|
19
|
+
);
|
|
20
|
+
return e.form.ignorePreventCloseEvents || p(() => e.form.useStore((t) => t.isDirty)), (t, r) => (u(), d("form", {
|
|
21
|
+
novalidate: "",
|
|
22
|
+
onSubmit: r[0] || (r[0] = f((v) => o.form.handleSubmit(), ["prevent", "stop"]))
|
|
23
|
+
}, [
|
|
24
|
+
l("fieldset", {
|
|
25
|
+
disabled: s(i) || o.disabled
|
|
26
|
+
}, [
|
|
27
|
+
a(t.$slots, "default", { subscribedValues: s(n) }, void 0, !0)
|
|
28
|
+
], 8, S)
|
|
29
|
+
], 32));
|
|
23
30
|
}
|
|
24
|
-
return [];
|
|
25
31
|
});
|
|
26
32
|
export {
|
|
27
|
-
|
|
28
|
-
w as append,
|
|
29
|
-
d as appendAll,
|
|
30
|
-
N as dedupeWith,
|
|
31
|
-
a as fromIterable,
|
|
32
|
-
h as getUnsafe,
|
|
33
|
-
A as headNonEmpty,
|
|
34
|
-
x as isArrayNonEmpty,
|
|
35
|
-
m as isOutOfBounds,
|
|
36
|
-
u as isReadonlyArrayNonEmpty,
|
|
37
|
-
E as tailNonEmpty,
|
|
38
|
-
I as union,
|
|
39
|
-
l as unionWith
|
|
33
|
+
V as default
|
|
40
34
|
};
|
|
@@ -1,85 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
const c = i?.space ?? 0, s = /* @__PURE__ */ new WeakSet(), a = c ? typeof c == "number" ? " ".repeat(c) : c : "", o = (t) => a.repeat(t), g = (t, r) => {
|
|
5
|
-
const e = t?.constructor;
|
|
6
|
-
return e && e !== Object.prototype.constructor && e.name ? `${e.name}(${r})` : r;
|
|
7
|
-
}, $ = (t) => {
|
|
8
|
-
try {
|
|
9
|
-
return Reflect.ownKeys(t);
|
|
10
|
-
} catch {
|
|
11
|
-
return ["[ownKeys threw]"];
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
function f(t, r = 0) {
|
|
15
|
-
if (Array.isArray(t)) {
|
|
16
|
-
if (s.has(t)) return m;
|
|
17
|
-
if (s.add(t), !a || t.length <= 1) return `[${t.map((u) => f(u, r)).join(",")}]`;
|
|
18
|
-
const e = t.map((u) => f(u, r + 1)).join(`,
|
|
19
|
-
` + o(r + 1));
|
|
20
|
-
return `[
|
|
21
|
-
${o(r + 1)}${e}
|
|
22
|
-
${o(r)}]`;
|
|
23
|
-
}
|
|
24
|
-
if (t instanceof Date) return d(t);
|
|
25
|
-
if (!i?.ignoreToString && b(t, "toString") && typeof t.toString == "function" && t.toString !== Object.prototype.toString && t.toString !== Array.prototype.toString) {
|
|
26
|
-
const e = O(t);
|
|
27
|
-
return t instanceof Error && t.cause ? `${e} (cause: ${f(t.cause, r)})` : e;
|
|
28
|
-
}
|
|
29
|
-
if (typeof t == "string") return JSON.stringify(t);
|
|
30
|
-
if (typeof t == "number" || t == null || typeof t == "boolean" || typeof t == "symbol") return String(t);
|
|
31
|
-
if (typeof t == "bigint") return String(t) + "n";
|
|
32
|
-
if (typeof t == "object" || typeof t == "function") {
|
|
33
|
-
if (s.has(t)) return m;
|
|
34
|
-
if (s.add(t), h in t) return w(l(t));
|
|
35
|
-
if (Symbol.iterator in t)
|
|
36
|
-
return `${t.constructor.name}(${f(Array.from(t), r)})`;
|
|
37
|
-
const e = $(t);
|
|
38
|
-
if (!a || e.length <= 1) {
|
|
39
|
-
const y = `{${e.map((S) => `${p(S)}:${f(t[S], r)}`).join(",")}}`;
|
|
40
|
-
return g(t, y);
|
|
41
|
-
}
|
|
42
|
-
const u = `{
|
|
43
|
-
${e.map((y) => `${o(r + 1)}${p(y)}: ${f(t[y], r + 1)}`).join(`,
|
|
44
|
-
`)}
|
|
45
|
-
${o(r)}}`;
|
|
46
|
-
return g(t, u);
|
|
47
|
-
}
|
|
48
|
-
return String(t);
|
|
49
|
-
}
|
|
50
|
-
return f(n, 0);
|
|
51
|
-
}
|
|
52
|
-
const m = "[Circular]";
|
|
53
|
-
function p(n) {
|
|
54
|
-
return typeof n == "string" ? JSON.stringify(n) : String(n);
|
|
55
|
-
}
|
|
56
|
-
function J(n) {
|
|
57
|
-
return n.map((i) => `[${p(i)}]`).join("");
|
|
58
|
-
}
|
|
59
|
-
function d(n) {
|
|
60
|
-
try {
|
|
61
|
-
return n.toISOString();
|
|
62
|
-
} catch {
|
|
63
|
-
return "Invalid Date";
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
function O(n) {
|
|
67
|
-
try {
|
|
68
|
-
const i = n.toString();
|
|
69
|
-
return typeof i == "string" ? i : String(i);
|
|
70
|
-
} catch {
|
|
71
|
-
return "[toString threw]";
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
function K(n, i) {
|
|
75
|
-
let c = [];
|
|
76
|
-
const s = JSON.stringify(n, (a, o) => typeof o == "object" && o !== null ? c.includes(o) ? void 0 : c.push(o) && j(o) : o, i?.space);
|
|
77
|
-
return c = void 0, s;
|
|
78
|
-
}
|
|
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.es30.js";
|
|
3
|
+
|
|
79
4
|
export {
|
|
80
|
-
|
|
81
|
-
d as formatDate,
|
|
82
|
-
K as formatJson,
|
|
83
|
-
J as formatPath,
|
|
84
|
-
p as formatPropertyKey
|
|
5
|
+
o as default
|
|
85
6
|
};
|
|
@@ -1,54 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (typeof e == "function")
|
|
4
|
-
return function() {
|
|
5
|
-
return e(arguments) ? n.apply(this, arguments) : (t) => n(t, ...arguments);
|
|
6
|
-
};
|
|
7
|
-
switch (e) {
|
|
8
|
-
case 0:
|
|
9
|
-
case 1:
|
|
10
|
-
throw new RangeError(`Invalid arity ${e}`);
|
|
11
|
-
case 2:
|
|
12
|
-
return function(t, r) {
|
|
13
|
-
return arguments.length >= 2 ? n(t, r) : function(u) {
|
|
14
|
-
return n(u, t);
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
case 3:
|
|
18
|
-
return function(t, r, u) {
|
|
19
|
-
return arguments.length >= 3 ? n(t, r, u) : function(s) {
|
|
20
|
-
return n(s, t, r);
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
default:
|
|
24
|
-
return function() {
|
|
25
|
-
if (arguments.length >= e)
|
|
26
|
-
return n.apply(this, arguments);
|
|
27
|
-
const t = arguments;
|
|
28
|
-
return function(r) {
|
|
29
|
-
return n(r, ...t);
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
}, g = (e) => e, i = (e) => () => e, o = /* @__PURE__ */ i(void 0), m = o;
|
|
34
|
-
function p(e, ...n) {
|
|
35
|
-
return c(e, n);
|
|
36
|
-
}
|
|
37
|
-
function h(e) {
|
|
38
|
-
const n = /* @__PURE__ */ new WeakMap();
|
|
39
|
-
return (t) => {
|
|
40
|
-
if (n.has(t))
|
|
41
|
-
return n.get(t);
|
|
42
|
-
const r = e(t);
|
|
43
|
-
return n.set(t, r), r;
|
|
44
|
-
};
|
|
1
|
+
function a(t) {
|
|
2
|
+
return Symbol.for(t);
|
|
45
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();
|
|
46
22
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
i as constant,
|
|
50
|
-
a as dual,
|
|
51
|
-
g as identity,
|
|
52
|
-
h as memoize,
|
|
53
|
-
p as pipe
|
|
23
|
+
x as ROOT_CONTEXT,
|
|
24
|
+
a as createContextKey
|
|
54
25
|
};
|