@fastkit/vui 0.18.10 → 0.18.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fastkit/vui",
3
- "version": "0.18.10",
3
+ "version": "0.18.11",
4
4
  "description": "A simple, extensible UI kit for Vue applications.",
5
5
  "keywords": [
6
6
  "fastkit",
@@ -45,30 +45,30 @@
45
45
  ],
46
46
  "dependencies": {
47
47
  "@fastkit/color-scheme": "1.0.14",
48
- "@fastkit/dom": "0.1.7",
49
48
  "@fastkit/color-scheme-gen": "0.13.14",
50
49
  "@fastkit/helpers": "0.13.7",
51
- "@fastkit/icon-font": "1.0.9",
50
+ "@fastkit/dom": "0.1.7",
52
51
  "@fastkit/media-match": "1.0.9",
53
- "@fastkit/rules": "0.13.8",
52
+ "@fastkit/icon-font": "1.0.9",
54
53
  "@fastkit/media-match-gen": "0.13.14",
55
- "@fastkit/stylebase": "0.13.1",
54
+ "@fastkit/rules": "0.13.8",
56
55
  "@fastkit/tiny-logger": "0.13.7",
56
+ "@fastkit/stylebase": "0.13.1",
57
+ "@fastkit/vue-body-scroll-lock": "0.1.16",
57
58
  "@fastkit/vue-action": "0.2.17",
58
- "@fastkit/vue-app-layout": "0.14.19",
59
+ "@fastkit/vue-form-control": "0.19.6",
59
60
  "@fastkit/vue-click-outside": "0.1.17",
60
- "@fastkit/vue-body-scroll-lock": "0.1.16",
61
+ "@fastkit/vue-app-layout": "0.14.19",
61
62
  "@fastkit/vue-color-scheme": "0.14.16",
62
- "@fastkit/vue-keyboard": "0.1.7",
63
63
  "@fastkit/vue-loading": "0.14.17",
64
- "@fastkit/vue-form-control": "0.19.5",
64
+ "@fastkit/vue-keyboard": "0.1.7",
65
65
  "@fastkit/vue-location": "0.1.23",
66
- "@fastkit/vue-media-match": "0.13.14",
67
66
  "@fastkit/vue-resize": "0.1.16",
67
+ "@fastkit/vue-media-match": "0.13.14",
68
68
  "@fastkit/vue-scroller": "0.14.18",
69
69
  "@fastkit/vue-stack": "0.15.43",
70
- "@fastkit/vue-transitions": "0.1.20",
71
- "@fastkit/vue-utils": "0.14.14"
70
+ "@fastkit/vue-utils": "0.14.14",
71
+ "@fastkit/vue-transitions": "0.1.20"
72
72
  },
73
73
  "peerDependencies": {
74
74
  "vue": "^3.3.0",
@@ -2,13 +2,16 @@ import './VCheckable.scss';
2
2
  import { computed, defineComponent } from 'vue';
3
3
  import { defineSlots } from '@fastkit/vue-utils';
4
4
  import { useVuiColorProvider } from '../../injections';
5
+ import { FormNodeErrorSlotsSource } from '@fastkit/vue-form-control';
5
6
 
6
- const slots = defineSlots<{
7
- input?: () => any;
8
- faux?: () => any;
9
- icon?: () => any;
10
- label?: () => any;
11
- }>();
7
+ export const CHECKABLE_SLOTS = defineSlots<
8
+ {
9
+ input?: () => any;
10
+ faux?: () => any;
11
+ icon?: () => any;
12
+ label?: () => any;
13
+ } & FormNodeErrorSlotsSource
14
+ >();
12
15
 
13
16
  export const VCheckable = defineComponent({
14
17
  name: 'VCheckable',
@@ -17,10 +20,10 @@ export const VCheckable = defineComponent({
17
20
  disabled: Boolean,
18
21
  readonly: Boolean,
19
22
  checked: Boolean,
20
- ...slots(),
23
+ ...CHECKABLE_SLOTS(),
21
24
  // autoWidth: Boolean,
22
25
  },
23
- slots,
26
+ slots: CHECKABLE_SLOTS,
24
27
  setup(props, ctx) {
25
28
  const colorProvider = useVuiColorProvider();
26
29
  const invalid = computed(() => props.invalid);
@@ -55,12 +55,7 @@ export const VForm = defineComponent({
55
55
  });
56
56
 
57
57
  return () => (
58
- <form
59
- ref={nodeControl.formRef()}
60
- class={classes.value}
61
- action={nodeControl.nativeAction}
62
- spellcheck={nodeControl.spellcheck}
63
- onSubmit={nodeControl.handleSubmit}>
58
+ <form class={classes.value} {...nodeControl.formAttrs}>
64
59
  {ctx.slots.default?.(nodeControl)}
65
60
  </form>
66
61
  );
@@ -3,6 +3,7 @@ import {
3
3
  FormGroupControl,
4
4
  createFormGroupSettings,
5
5
  useFormGroup,
6
+ FormNodeErrorSlotsSource,
6
7
  } from '@fastkit/vue-form-control';
7
8
  import { DefineSlotsType, defineSlots } from '@fastkit/vue-utils';
8
9
  import { createControlProps, useControl } from '../../composables';
@@ -14,7 +15,9 @@ export type VFormGroupSlots = DefineSlotsType<{
14
15
  default?: (form: FormGroupControl) => any;
15
16
  }>;
16
17
 
17
- export const formGroupSlots = defineSlots<VFormGroupSlots>();
18
+ export const formGroupSlots = defineSlots<
19
+ VFormGroupSlots & FormNodeErrorSlotsSource
20
+ >();
18
21
 
19
22
  export function createVFormGroupProps() {
20
23
  return {