@effect-app/vue-components 4.0.0-beta.271 → 4.0.0-beta.273

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.
@@ -9,8 +9,10 @@ declare var __VLS_11: {
9
9
  open: boolean;
10
10
  cancel: () => void;
11
11
  isActive: any;
12
- };
12
+ }, __VLS_15: string, __VLS_16: any;
13
13
  type __VLS_Slots = {} & {
14
+ [K in NonNullable<typeof __VLS_15>]?: (props: typeof __VLS_16) => any;
15
+ } & {
14
16
  default?: (props: typeof __VLS_11) => any;
15
17
  };
16
18
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -15,10 +15,10 @@ var _ = /*@__PURE__*/ o({
15
15
  let y = p("v-text-field"), b = p("v-textarea"), x = p("v-radio"), S = p("v-radio-group"), C = p("v-select"), w = p("v-autocomplete");
16
16
  return u(), i("div", {
17
17
  class: "omega-input",
18
- onFocusout: v[4] ||= (e) => {
18
+ onFocusout: v[7] ||= (e) => {
19
19
  _.$emit("blur", e), o.field.handleBlur();
20
20
  },
21
- onFocusin: v[5] ||= (e) => _.$emit("focus", e)
21
+ onFocusin: v[8] ||= (e) => _.$emit("focus", e)
22
22
  }, [
23
23
  o.inputProps.type === "boolean" || o.inputProps.type === "switch" ? (u(), n(m(o.inputProps.type === "boolean" ? "v-checkbox" : "v-switch"), c({
24
24
  key: 0,
@@ -60,7 +60,7 @@ var _ = /*@__PURE__*/ o({
60
60
  error: o.inputProps.error
61
61
  }, _.$attrs, {
62
62
  "model-value": o.state.value,
63
- "onUpdate:modelValue": o.field.handleChange
63
+ "onUpdate:modelValue": v[1] ||= (e) => o.field.handleChange(e)
64
64
  }), a({ _: 2 }, [_.$slots.label ? {
65
65
  name: "label",
66
66
  fn: g(() => [f(_.$slots, "label", l(s({
@@ -79,8 +79,7 @@ var _ = /*@__PURE__*/ o({
79
79
  "label",
80
80
  "error-messages",
81
81
  "error",
82
- "model-value",
83
- "onUpdate:modelValue"
82
+ "model-value"
84
83
  ])) : r("", !0),
85
84
  o.inputProps.type === "text" ? (u(), n(b, c({
86
85
  key: 2,
@@ -94,7 +93,7 @@ var _ = /*@__PURE__*/ o({
94
93
  error: o.inputProps.error
95
94
  }, _.$attrs, {
96
95
  "model-value": o.state.value,
97
- "onUpdate:modelValue": o.field.handleChange
96
+ "onUpdate:modelValue": v[2] ||= (e) => o.field.handleChange(e)
98
97
  }), a({ _: 2 }, [_.$slots.label ? {
99
98
  name: "label",
100
99
  fn: g(() => [f(_.$slots, "label", l(s({
@@ -112,8 +111,7 @@ var _ = /*@__PURE__*/ o({
112
111
  "label",
113
112
  "error-messages",
114
113
  "error",
115
- "model-value",
116
- "onUpdate:modelValue"
114
+ "model-value"
117
115
  ])) : r("", !0),
118
116
  o.inputProps.type === "number" || o.inputProps.type === "range" ? (u(), n(m(o.inputProps.type === "range" ? "v-slider" : "v-text-field"), c({
119
117
  key: 3,
@@ -128,7 +126,7 @@ var _ = /*@__PURE__*/ o({
128
126
  error: o.inputProps.error
129
127
  }, _.$attrs, {
130
128
  "model-value": o.state.value,
131
- "onUpdate:modelValue": v[1] ||= (e) => {
129
+ "onUpdate:modelValue": v[3] ||= (e) => {
132
130
  e || e === 0 ? o.field.handleChange(Number(e)) : o.field.handleChange(void 0);
133
131
  }
134
132
  }), a({ _: 2 }, [_.$slots.label ? {
@@ -160,7 +158,7 @@ var _ = /*@__PURE__*/ o({
160
158
  error: o.inputProps.error
161
159
  }, _.$attrs, {
162
160
  "model-value": o.state.value,
163
- "onUpdate:modelValue": o.field.handleChange
161
+ "onUpdate:modelValue": v[4] ||= (e) => o.field.handleChange(e)
164
162
  }), a({
165
163
  default: g(() => [(u(!0), i(t, null, d(o.inputProps.options, (e) => (u(), n(x, {
166
164
  key: e.value,
@@ -182,8 +180,7 @@ var _ = /*@__PURE__*/ o({
182
180
  "label",
183
181
  "error-messages",
184
182
  "error",
185
- "model-value",
186
- "onUpdate:modelValue"
183
+ "model-value"
187
184
  ])) : r("", !0),
188
185
  o.inputProps.type === "select" || o.inputProps.type === "multiple" ? (u(), n(C, c({
189
186
  key: 5,
@@ -199,7 +196,7 @@ var _ = /*@__PURE__*/ o({
199
196
  error: o.inputProps.error
200
197
  }, _.$attrs, {
201
198
  "model-value": o.state.value,
202
- onClear: v[2] ||= (e) => o.field.handleChange(void 0),
199
+ onClear: v[5] ||= (e) => o.field.handleChange(void 0),
203
200
  "onUpdate:modelValue": o.field.handleChange
204
201
  }), a({ _: 2 }, [_.$slots.label ? {
205
202
  name: "label",
@@ -237,7 +234,7 @@ var _ = /*@__PURE__*/ o({
237
234
  chips: o.inputProps.type === "autocompletemultiple"
238
235
  }, _.$attrs, {
239
236
  "model-value": o.state.value,
240
- onClear: v[3] ||= (e) => o.field.handleChange(void 0),
237
+ onClear: v[6] ||= (e) => o.field.handleChange(void 0),
241
238
  "onUpdate:modelValue": o.field.handleChange
242
239
  }), a({ _: 2 }, [_.$slots.label ? {
243
240
  name: "label",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effect-app/vue-components",
3
- "version": "4.0.0-beta.271",
3
+ "version": "4.0.0-beta.273",
4
4
  "peerDependencies": {
5
5
  "@mdi/js": "^7.4.47",
6
6
  "effect": "^4.0.0-beta.84",
@@ -33,13 +33,12 @@
33
33
  "vue-toastification": "^2.0.0-rc.5",
34
34
  "vue-tsc": "^3.3.3",
35
35
  "vuetify": "^4.0.8",
36
- "@effect-app/eslint-shared-config": "0.6.0-beta.32"
36
+ "@effect-app/eslint-shared-config": "0.6.0-beta.34"
37
37
  },
38
38
  "files": [
39
39
  "src",
40
40
  "dist"
41
41
  ],
42
- "module": "./dist/vue-components.es.js",
43
42
  "exports": {
44
43
  ".": {
45
44
  "types": "./dist/types/index.d.ts",
@@ -57,13 +56,13 @@
57
56
  "highlight.js": "^11.11.1",
58
57
  "mitt": "^3.0.1",
59
58
  "vue3-highlightjs": "^1.0.5",
60
- "@effect-app/vue": "4.0.0-beta.271",
61
- "effect-app": "4.0.0-beta.271"
59
+ "@effect-app/vue": "4.0.0-beta.273",
60
+ "effect-app": "4.0.0-beta.273"
62
61
  },
63
62
  "scripts": {
64
63
  "check": "vue-tsc",
65
64
  "build": "pnpm build:run",
66
- "build:run": "rimraf dist && vue-tsc && vite build && cp src/reset.css dist/reset.css",
65
+ "build:run": "rimraf dist && vue-tsc -p tsconfig.build.json && vite build && cp src/reset.css dist/reset.css",
67
66
  "docs:dev": "vitepress dev docs",
68
67
  "docs:build": "vitepress build docs",
69
68
  "docs:serve": "vitepress serve docs",
@@ -76,5 +75,6 @@
76
75
  "test": "vitest",
77
76
  "test:run": "vitest run",
78
77
  "test:watch": "vitest watch"
79
- }
78
+ },
79
+ "module": "./dist/vue-components.es.js"
80
80
  }
@@ -12,7 +12,6 @@
12
12
  />
13
13
  </template>
14
14
  <!-- pass down slots -->
15
- <!-- @vue-skip -->
16
15
  <template
17
16
  v-for="(_, name) in otherSlots"
18
17
  #[name]="slotData"
@@ -46,7 +46,7 @@
46
46
  :error="inputProps.error"
47
47
  v-bind="$attrs"
48
48
  :model-value="state.value"
49
- @update:model-value="field.handleChange"
49
+ @update:model-value="(v: any) => field.handleChange(v)"
50
50
  >
51
51
  <template
52
52
  v-if="$slots.label"
@@ -70,7 +70,7 @@
70
70
  :error="inputProps.error"
71
71
  v-bind="$attrs"
72
72
  :model-value="state.value"
73
- @update:model-value="field.handleChange"
73
+ @update:model-value="(v: any) => field.handleChange(v)"
74
74
  >
75
75
  <template
76
76
  v-if="$slots.label"
@@ -123,7 +123,7 @@
123
123
  :error="inputProps.error"
124
124
  v-bind="$attrs"
125
125
  :model-value="state.value"
126
- @update:model-value="field.handleChange"
126
+ @update:model-value="(v: any) => field.handleChange(v)"
127
127
  >
128
128
  <template
129
129
  v-if="$slots.label"
@@ -136,7 +136,7 @@
136
136
  </template>
137
137
  <v-radio
138
138
  v-for="option in inputProps.options"
139
- :key="option.value"
139
+ :key="option.value as PropertyKey"
140
140
  :label="option.title"
141
141
  :value="option.value"
142
142
  />
@@ -87,7 +87,7 @@ const id = useId()
87
87
  const fieldApi = props.field
88
88
 
89
89
  // Subscribed for side-effect: keeps component reactive to fieldApi.store changes
90
- const _fieldState = useStore(fieldApi.store, (state) => state)
90
+ useStore(fieldApi.store, (state) => state)
91
91
 
92
92
  // Get errors from form-level fieldMeta (persists across Field re-mounts)
93
93
  const formFieldMeta = useStore(fieldApi.form.store, (state) => state.fieldMeta)