@fastkit/vui 0.7.12 → 0.7.13

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/dist/vui.cjs.js CHANGED
@@ -4288,6 +4288,7 @@ exports.VContentSwitcher = VContentSwitcher;
4288
4288
  exports.VDataTable = VDataTable;
4289
4289
  exports.VDrawerLayout = VDrawerLayout;
4290
4290
  exports.VForm = VForm;
4291
+ exports.VFormControl = VFormControl;
4291
4292
  exports.VGridContainer = VGridContainer;
4292
4293
  exports.VGridItem = VGridItem;
4293
4294
  exports.VHero = VHero;
@@ -4288,6 +4288,7 @@ exports.VContentSwitcher = VContentSwitcher;
4288
4288
  exports.VDataTable = VDataTable;
4289
4289
  exports.VDrawerLayout = VDrawerLayout;
4290
4290
  exports.VForm = VForm;
4291
+ exports.VFormControl = VFormControl;
4291
4292
  exports.VGridContainer = VGridContainer;
4292
4293
  exports.VGridItem = VGridItem;
4293
4294
  exports.VHero = VHero;
package/dist/vui.d.ts CHANGED
@@ -18,6 +18,7 @@ import { ExtractPropTypes } from 'vue';
18
18
  import { FocusPosition } from '@tiptap/vue-3';
19
19
  import { FormAction } from '@fastkit/vue-kit';
20
20
  import { FormAutoCapitalize } from '@fastkit/vue-kit';
21
+ import { FormControl } from '@fastkit/vue-kit';
21
22
  import { FormControlSlots } from '@fastkit/vue-kit';
22
23
  import { FormNodeControl } from '@fastkit/vue-kit';
23
24
  import { FormNodeError } from '@fastkit/vue-kit';
@@ -4626,6 +4627,95 @@ export declare const VForm: DefineComponent<{
4626
4627
  disableAutoScroll: boolean;
4627
4628
  }>;
4628
4629
 
4630
+ export declare const VFormControl: DefineComponent<{
4631
+ 'v-slots': PropType<ResolveRawSlots<FormControlSlots & {
4632
+ default: FormControl;
4633
+ }>>;
4634
+ nodeControl: PropType<FormNodeControl<any, any>>;
4635
+ label: PropType<VNodeChildOrSlot<any>>;
4636
+ hint: PropType<VNodeChildOrSlot<any>>;
4637
+ infoAppends: PropType<VNodeChildOrSlot<any>>;
4638
+ validating: BooleanConstructor;
4639
+ pending: BooleanConstructor;
4640
+ focused: BooleanConstructor;
4641
+ dirty: BooleanConstructor;
4642
+ pristine: BooleanConstructor;
4643
+ errors: {
4644
+ type: PropType<FormNodeError[]>;
4645
+ default: () => FormNodeError[];
4646
+ };
4647
+ disabled: BooleanConstructor;
4648
+ readonly: BooleanConstructor;
4649
+ touched: BooleanConstructor;
4650
+ untouched: BooleanConstructor;
4651
+ required: BooleanConstructor;
4652
+ invalid: BooleanConstructor;
4653
+ valid: BooleanConstructor;
4654
+ hiddenInfo: BooleanConstructor;
4655
+ }, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4656
+ clickLabel: (ev: MouseEvent, formControl: FormControl) => boolean;
4657
+ }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{
4658
+ 'v-slots'?: unknown;
4659
+ nodeControl?: unknown;
4660
+ label?: unknown;
4661
+ hint?: unknown;
4662
+ infoAppends?: unknown;
4663
+ validating?: unknown;
4664
+ pending?: unknown;
4665
+ focused?: unknown;
4666
+ dirty?: unknown;
4667
+ pristine?: unknown;
4668
+ errors?: unknown;
4669
+ disabled?: unknown;
4670
+ readonly?: unknown;
4671
+ touched?: unknown;
4672
+ untouched?: unknown;
4673
+ required?: unknown;
4674
+ invalid?: unknown;
4675
+ valid?: unknown;
4676
+ hiddenInfo?: unknown;
4677
+ } & {
4678
+ validating: boolean;
4679
+ pending: boolean;
4680
+ focused: boolean;
4681
+ dirty: boolean;
4682
+ pristine: boolean;
4683
+ disabled: boolean;
4684
+ readonly: boolean;
4685
+ touched: boolean;
4686
+ untouched: boolean;
4687
+ required: boolean;
4688
+ invalid: boolean;
4689
+ valid: boolean;
4690
+ hiddenInfo: boolean;
4691
+ errors: FormNodeError[];
4692
+ } & {
4693
+ nodeControl?: FormNodeControl<any, any> | undefined;
4694
+ label?: VNodeChildOrSlot<any>;
4695
+ hint?: VNodeChildOrSlot<any>;
4696
+ infoAppends?: VNodeChildOrSlot<any>;
4697
+ "v-slots"?: ResolveRawSlots<FormControlSlots & {
4698
+ default: FormControl;
4699
+ }> | undefined;
4700
+ }> & {
4701
+ onClickLabel?: ((ev: MouseEvent, formControl: FormControl) => any) | undefined;
4702
+ }, {
4703
+ validating: boolean;
4704
+ pending: boolean;
4705
+ focused: boolean;
4706
+ dirty: boolean;
4707
+ pristine: boolean;
4708
+ disabled: boolean;
4709
+ readonly: boolean;
4710
+ touched: boolean;
4711
+ untouched: boolean;
4712
+ required: boolean;
4713
+ invalid: boolean;
4714
+ valid: boolean;
4715
+ hiddenInfo: boolean;
4716
+ errors: FormNodeError[];
4717
+ }>;
4718
+
4629
4719
  export declare interface VFormSlots {
4630
4720
  default: VueForm;
4631
4721
  }
package/dist/vui.mjs CHANGED
@@ -4263,4 +4263,4 @@ function installVuiPlugin(app, opts) {
4263
4263
  return app.use(VuiPlugin, opts);
4264
4264
  }
4265
4265
 
4266
- export { CONTROL_FIELD_VARIANTS, CONTROL_SIZES, PAGINATION_ALIGNS, VApp, VBreadcrumbs, VButton, VButtonGroup, VCard, VCardActions, VCardContent, VCheckbox, VCheckboxGroup, VContentSwitcher, VDataTable, VDrawerLayout, VForm, VGridContainer, VGridItem, VHero, VIcon, VListTile, VNavigation, VNavigationItem, VOption, VOptionGroup, VPagination, VPaper, VRadio, VRadioGroup, VSelect, VSwitch, VSwitchGroup, VTabs, VTextField, VTextarea, VToolbar, VToolbarEdge, VToolbarMenu, VToolbarTitle, VUI_CHECKBOX_GROUP_SYMBOL, VUI_CHECKBOX_SYMBOL, VUI_FORM_SYMBOL, VUI_OPTION_SYMBOL, VUI_RADIO_GROUP_SYMBOL, VUI_RADIO_SYMBOL, VUI_SELECT_SYMBOL, VUI_SWITCH_GROUP_SYMBOL, VUI_SWITCH_SYMBOL, VUI_TEXTAREA_SYMBOL, VUI_TEXT_FIELD_SYMBOL, VUI_WYSIWYG_EDITOR_SYMBOL, VWysiwygEditor, VuiColorProviderInjectionKey, VuiControlFieldInjectionKey, VuiControlInjectionKey, VuiInjectionKey, VuiPlugin, VuiService, WysiwygBulletListTool, WysiwygFormatBoldTool, WysiwygFormatItalicTool, WysiwygFormatUnderlineTool, WysiwygHistoryTool, WysiwygLinkTool, WysiwygOrderedListTool, WysiwygTextColorTool, configureDataTableDefaults, createCardProps, createControlFieldProviderProps, createControlProps, createElevationProps, createListTileProps, createNavigationItemProps, createPaperBaseProps, createPaperProps, defineFormSelectorComponent, iconProps, installVuiPlugin, listTileEmits, paginationProps, rawIconProp, renderNavigationItemInput, resolveNavigationItemInput, resolveRawIconProp, useControl, useControlField, useElevation, useVui, useVuiColorProvider, vueButtonProps };
4266
+ export { CONTROL_FIELD_VARIANTS, CONTROL_SIZES, PAGINATION_ALIGNS, VApp, VBreadcrumbs, VButton, VButtonGroup, VCard, VCardActions, VCardContent, VCheckbox, VCheckboxGroup, VContentSwitcher, VDataTable, VDrawerLayout, VForm, VFormControl, VGridContainer, VGridItem, VHero, VIcon, VListTile, VNavigation, VNavigationItem, VOption, VOptionGroup, VPagination, VPaper, VRadio, VRadioGroup, VSelect, VSwitch, VSwitchGroup, VTabs, VTextField, VTextarea, VToolbar, VToolbarEdge, VToolbarMenu, VToolbarTitle, VUI_CHECKBOX_GROUP_SYMBOL, VUI_CHECKBOX_SYMBOL, VUI_FORM_SYMBOL, VUI_OPTION_SYMBOL, VUI_RADIO_GROUP_SYMBOL, VUI_RADIO_SYMBOL, VUI_SELECT_SYMBOL, VUI_SWITCH_GROUP_SYMBOL, VUI_SWITCH_SYMBOL, VUI_TEXTAREA_SYMBOL, VUI_TEXT_FIELD_SYMBOL, VUI_WYSIWYG_EDITOR_SYMBOL, VWysiwygEditor, VuiColorProviderInjectionKey, VuiControlFieldInjectionKey, VuiControlInjectionKey, VuiInjectionKey, VuiPlugin, VuiService, WysiwygBulletListTool, WysiwygFormatBoldTool, WysiwygFormatItalicTool, WysiwygFormatUnderlineTool, WysiwygHistoryTool, WysiwygLinkTool, WysiwygOrderedListTool, WysiwygTextColorTool, configureDataTableDefaults, createCardProps, createControlFieldProviderProps, createControlProps, createElevationProps, createListTileProps, createNavigationItemProps, createPaperBaseProps, createPaperProps, defineFormSelectorComponent, iconProps, installVuiPlugin, listTileEmits, paginationProps, rawIconProp, renderNavigationItemInput, resolveNavigationItemInput, resolveRawIconProp, useControl, useControlField, useElevation, useVui, useVuiColorProvider, vueButtonProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fastkit/vui",
3
- "version": "0.7.12",
3
+ "version": "0.7.13",
4
4
  "description": "@fastkit/vui",
5
5
  "buildOptions": {
6
6
  "name": "Vui",
@@ -32,11 +32,11 @@
32
32
  "vue": "^3.2.26"
33
33
  },
34
34
  "dependencies": {
35
- "@fastkit/color-scheme": "0.7.12",
36
- "@fastkit/icon-font": "0.7.12",
37
- "@fastkit/tiny-logger": "0.7.12",
38
- "@fastkit/vite-kit": "0.7.12",
39
- "@fastkit/vue-kit": "0.7.12",
35
+ "@fastkit/color-scheme": "0.7.13",
36
+ "@fastkit/icon-font": "0.7.13",
37
+ "@fastkit/tiny-logger": "0.7.13",
38
+ "@fastkit/vite-kit": "0.7.13",
39
+ "@fastkit/vue-kit": "0.7.13",
40
40
  "@tiptap/extension-link": "^2.0.0-beta.35",
41
41
  "@tiptap/extension-underline": "^2.0.0-beta.22",
42
42
  "@tiptap/starter-kit": "^2.0.0-beta.168",
@@ -11,6 +11,7 @@ export * from './VDrawerLayout';
11
11
  export * from './VHero';
12
12
  // export * from './VAccordion';
13
13
  export * from './VNavigation';
14
+ export * from './VFormControl';
14
15
  export * from './VCheckbox';
15
16
  export * from './VCheckboxGroup';
16
17
  export * from './VRadio';