@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 a } from "vue";
2
- import b from "./vue-components.es6.js";
3
- import { useOmegaForm as O } from "./vue-components.es10.js";
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 [l, c, f] = p;
6
- return O(
5
+ const [f, l, u] = p;
6
+ return s(
7
+ f,
7
8
  l,
8
- c,
9
9
  {
10
- ...f,
10
+ ...u,
11
11
  input: {
12
12
  name: "WrappedInput",
13
13
  inheritAttrs: !1,
14
- setup(i, { attrs: n, slots: e }) {
15
- return () => a(b, {
16
- ...i,
17
- ...n
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: u, ...o }) => {
21
- const s = Object.fromEntries(
22
- Object.entries(n).filter(
23
- ([t]) => !Object.prototype.hasOwnProperty.call(o, t) && t !== "form"
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 a(m, { ...s, field: r, state: u, inputProps: o }, {
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",
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.4",
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
  },