@fastkit/vui 0.17.0 → 0.18.0

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.17.0",
3
+ "version": "0.18.0",
4
4
  "description": "A simple, extensible UI kit for Vue applications.",
5
5
  "keywords": [
6
6
  "fastkit",
@@ -44,31 +44,31 @@
44
44
  "src"
45
45
  ],
46
46
  "dependencies": {
47
+ "@fastkit/dom": "0.1.7",
47
48
  "@fastkit/color-scheme": "1.0.14",
48
- "@fastkit/color-scheme-gen": "0.13.14",
49
49
  "@fastkit/helpers": "0.13.7",
50
+ "@fastkit/color-scheme-gen": "0.13.14",
50
51
  "@fastkit/icon-font": "1.0.9",
51
- "@fastkit/dom": "0.1.7",
52
52
  "@fastkit/media-match": "1.0.9",
53
53
  "@fastkit/media-match-gen": "0.13.14",
54
54
  "@fastkit/rules": "0.13.8",
55
- "@fastkit/stylebase": "0.13.1",
56
55
  "@fastkit/tiny-logger": "0.13.7",
57
- "@fastkit/vue-app-layout": "0.14.17",
56
+ "@fastkit/stylebase": "0.13.1",
58
57
  "@fastkit/vue-action": "0.2.15",
59
58
  "@fastkit/vue-click-outside": "0.1.15",
59
+ "@fastkit/vue-app-layout": "0.14.17",
60
60
  "@fastkit/vue-color-scheme": "0.14.14",
61
- "@fastkit/vue-form-control": "0.18.0",
62
61
  "@fastkit/vue-body-scroll-lock": "0.1.14",
62
+ "@fastkit/vue-form-control": "0.19.0",
63
63
  "@fastkit/vue-keyboard": "0.1.7",
64
+ "@fastkit/vue-media-match": "0.13.14",
64
65
  "@fastkit/vue-loading": "0.14.15",
65
66
  "@fastkit/vue-location": "0.1.21",
66
- "@fastkit/vue-media-match": "0.13.14",
67
- "@fastkit/vue-scroller": "0.14.16",
68
67
  "@fastkit/vue-resize": "0.1.14",
68
+ "@fastkit/vue-scroller": "0.14.16",
69
+ "@fastkit/vue-transitions": "0.1.15",
69
70
  "@fastkit/vue-stack": "0.15.36",
70
- "@fastkit/vue-utils": "0.14.12",
71
- "@fastkit/vue-transitions": "0.1.15"
71
+ "@fastkit/vue-utils": "0.14.12"
72
72
  },
73
73
  "peerDependencies": {
74
74
  "vue": "^3.3.0",
@@ -1,10 +1,10 @@
1
1
  import './VFormControl.scss';
2
2
  import { computed, defineComponent, VNodeChild } from 'vue';
3
3
  import {
4
- createFormControlSettings,
5
- useFormControl,
6
- FormControlSlots,
7
- FormControl,
4
+ createFormNodeWrapperSettings,
5
+ useFormNodeWrapper,
6
+ FormNodeWrapperSlots,
7
+ FormNodeWrapper,
8
8
  RequiredChipSource,
9
9
  } from '@fastkit/vue-form-control';
10
10
  import { defineSlots } from '@fastkit/vue-utils';
@@ -13,7 +13,7 @@ import type { VuiService } from '../../service';
13
13
  import { VIcon } from '../VIcon';
14
14
  import { VTooltip } from '../VTooltip';
15
15
 
16
- const { props, emits } = createFormControlSettings();
16
+ const { props, emits } = createFormNodeWrapperSettings();
17
17
 
18
18
  export function createRequiredChipRenderer(
19
19
  required: () => boolean,
@@ -42,8 +42,8 @@ export function createRequiredChipRenderer(
42
42
  }
43
43
 
44
44
  const slots = defineSlots<
45
- FormControlSlots & {
46
- default?: (form: FormControl) => any;
45
+ FormNodeWrapperSlots & {
46
+ default?: (formNodeWrapper: FormNodeWrapper) => any;
47
47
  }
48
48
  >();
49
49
 
@@ -58,7 +58,7 @@ export const VFormControl = defineComponent({
58
58
  emits,
59
59
  setup(props, ctx) {
60
60
  const vui = useVui();
61
- const control = useFormControl(props, ctx, {
61
+ const control = useFormNodeWrapper(props, ctx, {
62
62
  hinttipPrepend: () => (
63
63
  <VIcon
64
64
  class="v-form-control__label__hinttip__icon"
@@ -11,8 +11,8 @@ import {
11
11
  import {
12
12
  createFormSelectorSettings,
13
13
  useFormSelectorControl,
14
- createFormControlProps,
15
- FormControlSlots,
14
+ createFormNodeWrapperProps,
15
+ FormNodeWrapperSlots,
16
16
  FormSelectorItemControl,
17
17
  } from '@fastkit/vue-form-control';
18
18
  import {
@@ -57,7 +57,7 @@ const { props, emits } = createFormSelectorSettings({
57
57
  });
58
58
 
59
59
  const slots = defineSlots<
60
- FormControlSlots &
60
+ FormNodeWrapperSlots &
61
61
  InputBoxSlots & {
62
62
  selection?: (ctx: {
63
63
  item: FormSelectorItemControl;
@@ -70,7 +70,7 @@ export const VSelect = defineComponent({
70
70
  name: 'VSelect',
71
71
  props: {
72
72
  ...props,
73
- ...createFormControlProps(),
73
+ ...createFormNodeWrapperProps(),
74
74
  ...createControlFieldProps(),
75
75
  ...createControlFieldProviderProps(),
76
76
  ...createControlProps(),
@@ -3,8 +3,8 @@ import { defineComponent, computed } from 'vue';
3
3
  import {
4
4
  createTextInputNodeSettings,
5
5
  useTextInputNodeControl,
6
- createFormControlProps,
7
- FormControlSlots,
6
+ createFormNodeWrapperProps,
7
+ FormNodeWrapperSlots,
8
8
  TextInputNodeEmits,
9
9
  } from '@fastkit/vue-form-control';
10
10
  import { defineSlots, ExtractPropInput } from '@fastkit/vue-utils';
@@ -25,12 +25,12 @@ import { VUI_TEXT_FIELD_SYMBOL } from '../../injections';
25
25
 
26
26
  const { props, emits } = createTextInputNodeSettings();
27
27
 
28
- const slots = defineSlots<FormControlSlots & InputBoxSlots>();
28
+ const slots = defineSlots<FormNodeWrapperSlots & InputBoxSlots>();
29
29
 
30
30
  function createTextFieldProps() {
31
31
  return {
32
32
  ...props,
33
- ...createFormControlProps(),
33
+ ...createFormNodeWrapperProps(),
34
34
  ...createControlFieldProps(),
35
35
  ...createControlFieldProviderProps(),
36
36
  ...createControlProps(),
@@ -3,8 +3,8 @@ import { defineComponent } from 'vue';
3
3
  import {
4
4
  createTextareaNodeSettings,
5
5
  useTextareaNodeControl,
6
- createFormControlProps,
7
- FormControlSlots,
6
+ createFormNodeWrapperProps,
7
+ FormNodeWrapperSlots,
8
8
  } from '@fastkit/vue-form-control';
9
9
  import { defineSlots } from '@fastkit/vue-utils';
10
10
  import { VFormControl } from '../VFormControl';
@@ -24,13 +24,13 @@ import { VUI_TEXTAREA_SYMBOL, useVui } from '../../injections';
24
24
 
25
25
  const { props, emits } = createTextareaNodeSettings();
26
26
 
27
- const slots = defineSlots<FormControlSlots & InputBoxSlots>();
27
+ const slots = defineSlots<FormNodeWrapperSlots & InputBoxSlots>();
28
28
 
29
29
  export const VTextarea = defineComponent({
30
30
  name: 'VTextarea',
31
31
  props: {
32
32
  ...props,
33
- ...createFormControlProps(),
33
+ ...createFormNodeWrapperProps(),
34
34
  ...createControlFieldProps(),
35
35
  ...createControlFieldProviderProps(),
36
36
  ...createControlProps(),
@@ -1,9 +1,9 @@
1
1
  import './form-selector.scss';
2
2
  import { VNodeChild, defineComponent, PropType, computed } from 'vue';
3
3
  import {
4
- createFormControlProps,
4
+ createFormNodeWrapperProps,
5
5
  createFormSelectorSettings,
6
- FormControlSlots,
6
+ FormNodeWrapperSlots,
7
7
  useFormSelectorControl,
8
8
  FormSelectorControl,
9
9
  ResolvedFormSelectorItem,
@@ -40,7 +40,7 @@ export interface DefineFormSelectorComponentOptions {
40
40
  }
41
41
 
42
42
  const slots = defineSlots<
43
- FormControlSlots & {
43
+ FormNodeWrapperSlots & {
44
44
  default?: () => any;
45
45
  }
46
46
  >();
@@ -57,7 +57,7 @@ export function defineFormSelectorComponent(
57
57
  name: opts.name,
58
58
  props: {
59
59
  ...props,
60
- ...createFormControlProps(),
60
+ ...createFormNodeWrapperProps(),
61
61
  ...createControlProps(),
62
62
  stacked: {
63
63
  type: Boolean,
package/src/service.tsx CHANGED
@@ -20,7 +20,10 @@ import { setDefaultRouterLink } from '@fastkit/vue-action';
20
20
  import { LocationService } from '@fastkit/vue-location';
21
21
  import { VForm } from './components/VForm';
22
22
  import { VTextField, TextFieldInput } from './components/VTextField';
23
- import { VueForm, FormControlHinttipDelay } from '@fastkit/vue-form-control';
23
+ import {
24
+ VueForm,
25
+ FormNodeWrapperHinttipDelay,
26
+ } from '@fastkit/vue-form-control';
24
27
  import { getDocumentScroller, UseScroller } from '@fastkit/vue-scroller';
25
28
  import { ControlSize } from './schemes';
26
29
  import { VButton } from './components/VButton';
@@ -74,7 +77,7 @@ export interface VuiServiceUISettings {
74
77
  color?: ScopeName;
75
78
  variant?: ColorVariant;
76
79
  };
77
- hinttipDelay?: FormControlHinttipDelay;
80
+ hinttipDelay?: FormNodeWrapperHinttipDelay;
78
81
  noDataMessage?: VNodeChildOrSlot;
79
82
  noResultsMessage?: VNodeChildOrSlot;
80
83
  loadingMessage?: VNodeChildOrSlot;