@effect-app/vue-components 0.19.11 → 0.19.12
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/OmegaArray.vue.d.ts +1 -1
- package/dist/vue-components.es4.js +6 -3
- package/dist/vue-components.es45.js +3 -3
- package/dist/vue-components.es50.js +4 -2
- package/dist/vue-components.es51.js +2 -44
- package/dist/vue-components.es52.js +44 -2
- package/dist/vue-components.es53.js +2 -4
- package/package.json +6 -4
- package/src/components/OmegaForm/OmegaArray.vue +5 -2
|
@@ -2,7 +2,7 @@ import { type DeepKeys, type DeepValue } from "@tanstack/vue-form";
|
|
|
2
2
|
import { type OmegaInputProps } from "./OmegaFormStuff";
|
|
3
3
|
declare const _default: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & (Omit<OmegaInputProps<From, To>, "label" | "type" | "options" | "validators" | "items"> & {
|
|
5
|
-
defaultItems?: DeepValue<
|
|
5
|
+
defaultItems?: DeepValue<From, DeepKeys<From>>;
|
|
6
6
|
items?: "please use `defaultItems` instead";
|
|
7
7
|
}) & {}> & import("vue").PublicProps;
|
|
8
8
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
@@ -13,8 +13,8 @@ const N = /* @__PURE__ */ F({
|
|
|
13
13
|
const e = t.name.replace(/\[/g, ".").replace(/\]/g, "");
|
|
14
14
|
try {
|
|
15
15
|
return e.split(".").reduce((a, r) => a[r], y.value);
|
|
16
|
-
} catch {
|
|
17
|
-
return [];
|
|
16
|
+
} catch (a) {
|
|
17
|
+
return console.error(a), [];
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
M(async () => {
|
|
@@ -29,7 +29,10 @@ const N = /* @__PURE__ */ F({
|
|
|
29
29
|
o(e.$slots, "pre-array", s(l({ field: r, state: p }))),
|
|
30
30
|
(m(!0), k(A, null, b(u.value, (C, n) => (m(), f(i(e.form.Field), {
|
|
31
31
|
key: `${e.name}[${Number(n)}]`,
|
|
32
|
-
name:
|
|
32
|
+
name: (
|
|
33
|
+
// eslint-disable-next-line
|
|
34
|
+
`${e.name}[${Number(n)}]`
|
|
35
|
+
)
|
|
33
36
|
}, {
|
|
34
37
|
default: c(({ field: v, state: h }) => [
|
|
35
38
|
o(e.$slots, "default", B({ ref_for: !0 }, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { VERSION as t } from "./vue-components.
|
|
2
|
-
import { isCompatible as f } from "./vue-components.
|
|
3
|
-
import { _globalThis as m } from "./vue-components.
|
|
1
|
+
import { VERSION as t } from "./vue-components.es51.js";
|
|
2
|
+
import { isCompatible as f } from "./vue-components.es52.js";
|
|
3
|
+
import { _globalThis as m } from "./vue-components.es53.js";
|
|
4
4
|
var u = t.split(".")[0], n = Symbol.for("opentelemetry.js.api." + u), l = m;
|
|
5
5
|
function d(r, o, e, i) {
|
|
6
6
|
var v;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
var
|
|
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.es48.js";
|
|
3
|
+
|
|
2
4
|
export {
|
|
3
|
-
|
|
5
|
+
o as default
|
|
4
6
|
};
|
|
@@ -1,46 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var h = /^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;
|
|
3
|
-
function s(c) {
|
|
4
|
-
var m = /* @__PURE__ */ new Set([c]), f = /* @__PURE__ */ new Set(), t = c.match(h);
|
|
5
|
-
if (!t)
|
|
6
|
-
return function() {
|
|
7
|
-
return !1;
|
|
8
|
-
};
|
|
9
|
-
var e = {
|
|
10
|
-
major: +t[1],
|
|
11
|
-
minor: +t[2],
|
|
12
|
-
patch: +t[3],
|
|
13
|
-
prerelease: t[4]
|
|
14
|
-
};
|
|
15
|
-
if (e.prerelease != null)
|
|
16
|
-
return function(r) {
|
|
17
|
-
return r === c;
|
|
18
|
-
};
|
|
19
|
-
function a(n) {
|
|
20
|
-
return f.add(n), !1;
|
|
21
|
-
}
|
|
22
|
-
function p(n) {
|
|
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
|
-
};
|
|
41
|
-
}
|
|
42
|
-
var v = s(d);
|
|
1
|
+
var r = "1.9.0";
|
|
43
2
|
export {
|
|
44
|
-
|
|
45
|
-
v as isCompatible
|
|
3
|
+
r as VERSION
|
|
46
4
|
};
|
|
@@ -1,4 +1,46 @@
|
|
|
1
|
-
|
|
1
|
+
import { VERSION as d } from "./vue-components.es51.js";
|
|
2
|
+
var h = /^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;
|
|
3
|
+
function s(c) {
|
|
4
|
+
var m = /* @__PURE__ */ new Set([c]), f = /* @__PURE__ */ new Set(), t = c.match(h);
|
|
5
|
+
if (!t)
|
|
6
|
+
return function() {
|
|
7
|
+
return !1;
|
|
8
|
+
};
|
|
9
|
+
var e = {
|
|
10
|
+
major: +t[1],
|
|
11
|
+
minor: +t[2],
|
|
12
|
+
patch: +t[3],
|
|
13
|
+
prerelease: t[4]
|
|
14
|
+
};
|
|
15
|
+
if (e.prerelease != null)
|
|
16
|
+
return function(r) {
|
|
17
|
+
return r === c;
|
|
18
|
+
};
|
|
19
|
+
function a(n) {
|
|
20
|
+
return f.add(n), !1;
|
|
21
|
+
}
|
|
22
|
+
function p(n) {
|
|
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
|
+
};
|
|
41
|
+
}
|
|
42
|
+
var v = s(d);
|
|
2
43
|
export {
|
|
3
|
-
|
|
44
|
+
s as _makeCompatibilityCheck,
|
|
45
|
+
v as isCompatible
|
|
4
46
|
};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import o from "./vue-components.es48.js";
|
|
3
|
-
|
|
1
|
+
var o = typeof globalThis == "object" ? globalThis : typeof self == "object" ? self : typeof window == "object" ? window : typeof global == "object" ? global : {};
|
|
4
2
|
export {
|
|
5
|
-
o as
|
|
3
|
+
o as _globalThis
|
|
6
4
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-app/vue-components",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.12",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@mdi/js": "^7.4.47",
|
|
6
6
|
"@tanstack/vue-form": "1.2.4",
|
|
@@ -36,7 +36,9 @@
|
|
|
36
36
|
"vite": "^7.1.4",
|
|
37
37
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
38
38
|
"vitepress": "^1.6.4",
|
|
39
|
-
"vue-tsc": "^3.0.6"
|
|
39
|
+
"vue-tsc": "^3.0.6",
|
|
40
|
+
"vitest": "^3.2.4",
|
|
41
|
+
"@effect-app/eslint-shared-config": "0.0.2"
|
|
40
42
|
},
|
|
41
43
|
"files": [
|
|
42
44
|
"src",
|
|
@@ -54,8 +56,8 @@
|
|
|
54
56
|
"@opentelemetry/api": "^1.9.0",
|
|
55
57
|
"highlight.js": "^11.11.1",
|
|
56
58
|
"vue3-highlightjs": "^1.0.5",
|
|
57
|
-
"@effect-app/vue": "2.59.
|
|
58
|
-
"effect-app": "3.3.
|
|
59
|
+
"@effect-app/vue": "2.59.2",
|
|
60
|
+
"effect-app": "3.3.6"
|
|
59
61
|
},
|
|
60
62
|
"scripts": {
|
|
61
63
|
"build": "pnpm build:run",
|
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
:is="form.Field"
|
|
13
13
|
v-for="(_, i) of items"
|
|
14
14
|
:key="`${name}[${Number(i)}]`"
|
|
15
|
-
:name="
|
|
15
|
+
:name="// eslint-disable-next-line
|
|
16
|
+
`${name}[${Number(i)}]` as DeepKeys<From>
|
|
17
|
+
"
|
|
16
18
|
>
|
|
17
19
|
<template #default="{ field: subField, state: subState }">
|
|
18
20
|
<slot
|
|
@@ -54,7 +56,7 @@ const props = defineProps<
|
|
|
54
56
|
OmegaInputProps<From, To>,
|
|
55
57
|
"validators" | "options" | "label" | "type" | "items"
|
|
56
58
|
> & {
|
|
57
|
-
defaultItems?: DeepValue<
|
|
59
|
+
defaultItems?: DeepValue<From, DeepKeys<From>>
|
|
58
60
|
// deprecated items, caused bugs in state update, use defaultItems instead. It's not a simple Never, because Volar explodes
|
|
59
61
|
items?: "please use `defaultItems` instead"
|
|
60
62
|
}
|
|
@@ -72,6 +74,7 @@ const items = computed(() => {
|
|
|
72
74
|
return acc[curr] as typeof store.value
|
|
73
75
|
}, store.value)
|
|
74
76
|
} catch (e) {
|
|
77
|
+
console.error(e)
|
|
75
78
|
return []
|
|
76
79
|
}
|
|
77
80
|
})
|