@effect-app/vue-components 2.10.3 → 2.10.5
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.
|
@@ -1,32 +1,36 @@
|
|
|
1
|
-
import { h as
|
|
2
|
-
import
|
|
3
|
-
import { useOmegaForm as
|
|
1
|
+
import { h as o } from "vue";
|
|
2
|
+
import d from "./vue-components.es6.js";
|
|
3
|
+
import { useOmegaForm as s } from "./vue-components.es10.js";
|
|
4
4
|
const j = (m) => (...p) => {
|
|
5
|
-
const [
|
|
6
|
-
return
|
|
5
|
+
const [f, l, u] = p;
|
|
6
|
+
return s(
|
|
7
|
+
f,
|
|
7
8
|
l,
|
|
8
|
-
c,
|
|
9
9
|
{
|
|
10
|
-
...
|
|
10
|
+
...u,
|
|
11
11
|
input: {
|
|
12
12
|
name: "WrappedInput",
|
|
13
13
|
inheritAttrs: !1,
|
|
14
|
-
setup(
|
|
15
|
-
return () =>
|
|
16
|
-
...
|
|
17
|
-
...
|
|
14
|
+
setup(c, { attrs: a, slots: e }) {
|
|
15
|
+
return () => o(d, {
|
|
16
|
+
...c,
|
|
17
|
+
...a
|
|
18
18
|
}, {
|
|
19
19
|
// Override the default slot that OmegaInternalInput provides
|
|
20
|
-
default: ({ field: r, state:
|
|
21
|
-
const
|
|
22
|
-
Object.entries(
|
|
23
|
-
([t]) => !Object.prototype.hasOwnProperty.call(
|
|
20
|
+
default: ({ field: r, state: i, ...n }) => {
|
|
21
|
+
const b = Object.fromEntries(
|
|
22
|
+
Object.entries(a).filter(
|
|
23
|
+
([t]) => !Object.prototype.hasOwnProperty.call(n, t) && t !== "form"
|
|
24
24
|
)
|
|
25
25
|
);
|
|
26
|
-
return
|
|
26
|
+
return o(m, { ...b, field: r, state: i, inputProps: n }, {
|
|
27
27
|
// Pass through label slot if it exists
|
|
28
28
|
...e.label && {
|
|
29
29
|
label: (t) => e.label(t)
|
|
30
|
+
},
|
|
31
|
+
// Pass through default slot if it exists
|
|
32
|
+
...e.default && {
|
|
33
|
+
default: (t) => e.default(t)
|
|
30
34
|
}
|
|
31
35
|
});
|
|
32
36
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-app/vue-components",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.5",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@mdi/js": "^7.4.47",
|
|
6
6
|
"effect": "^3.19.3",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"highlight.js": "^11.11.1",
|
|
54
54
|
"mitt": "^3.0.1",
|
|
55
55
|
"vue3-highlightjs": "^1.0.5",
|
|
56
|
-
"@effect-app/vue": "2.93.
|
|
56
|
+
"@effect-app/vue": "2.93.5",
|
|
57
57
|
"effect-app": "3.15.0"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
@@ -39,6 +39,10 @@ export const createUseFormWithCustomInput = <
|
|
|
39
39
|
// Pass through label slot if it exists
|
|
40
40
|
...(slots.label && {
|
|
41
41
|
label: (labelProps: any) => slots.label(labelProps)
|
|
42
|
+
}),
|
|
43
|
+
// Pass through default slot if it exists
|
|
44
|
+
...(slots.default && {
|
|
45
|
+
default: (slotProps: any) => slots.default(slotProps)
|
|
42
46
|
})
|
|
43
47
|
})
|
|
44
48
|
},
|