@fastkit/vui 0.7.49 → 0.7.50
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 +8 -4
- package/dist/vui.cjs.prod.js +8 -4
- package/dist/vui.d.ts +38 -0
- package/dist/vui.mjs +8 -5
- package/package.json +6 -6
- package/src/components/VForm/VForm.tsx +8 -4
package/dist/vui.cjs.js
CHANGED
|
@@ -3160,13 +3160,16 @@ const {
|
|
|
3160
3160
|
} = vueKit.createFormSettings({
|
|
3161
3161
|
nodeType: VUI_FORM_SYMBOL
|
|
3162
3162
|
});
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
props: { ...props,
|
|
3163
|
+
function createVFormProps() {
|
|
3164
|
+
return { ...props,
|
|
3166
3165
|
...createControlProps(),
|
|
3167
3166
|
...vueKit.defineSlotsProps() // disableAutoScroll: Boolean,
|
|
3168
3167
|
|
|
3169
|
-
}
|
|
3168
|
+
};
|
|
3169
|
+
}
|
|
3170
|
+
const VForm = vue.defineComponent({
|
|
3171
|
+
name: 'VForm',
|
|
3172
|
+
props: createVFormProps(),
|
|
3170
3173
|
emits,
|
|
3171
3174
|
|
|
3172
3175
|
setup(props, ctx) {
|
|
@@ -5007,6 +5010,7 @@ exports.createNavigationItemProps = createNavigationItemProps;
|
|
|
5007
5010
|
exports.createPaperBaseProps = createPaperBaseProps;
|
|
5008
5011
|
exports.createPaperProps = createPaperProps;
|
|
5009
5012
|
exports.createRequiredChipRenderer = createRequiredChipRenderer;
|
|
5013
|
+
exports.createVFormProps = createVFormProps;
|
|
5010
5014
|
exports.defineFormSelectorComponent = defineFormSelectorComponent;
|
|
5011
5015
|
exports.iconProps = iconProps;
|
|
5012
5016
|
exports.installVuiPlugin = installVuiPlugin;
|
package/dist/vui.cjs.prod.js
CHANGED
|
@@ -3160,13 +3160,16 @@ const {
|
|
|
3160
3160
|
} = vueKit.createFormSettings({
|
|
3161
3161
|
nodeType: VUI_FORM_SYMBOL
|
|
3162
3162
|
});
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
props: { ...props,
|
|
3163
|
+
function createVFormProps() {
|
|
3164
|
+
return { ...props,
|
|
3166
3165
|
...createControlProps(),
|
|
3167
3166
|
...vueKit.defineSlotsProps() // disableAutoScroll: Boolean,
|
|
3168
3167
|
|
|
3169
|
-
}
|
|
3168
|
+
};
|
|
3169
|
+
}
|
|
3170
|
+
const VForm = vue.defineComponent({
|
|
3171
|
+
name: 'VForm',
|
|
3172
|
+
props: createVFormProps(),
|
|
3170
3173
|
emits,
|
|
3171
3174
|
|
|
3172
3175
|
setup(props, ctx) {
|
|
@@ -5007,6 +5010,7 @@ exports.createNavigationItemProps = createNavigationItemProps;
|
|
|
5007
5010
|
exports.createPaperBaseProps = createPaperBaseProps;
|
|
5008
5011
|
exports.createPaperProps = createPaperProps;
|
|
5009
5012
|
exports.createRequiredChipRenderer = createRequiredChipRenderer;
|
|
5013
|
+
exports.createVFormProps = createVFormProps;
|
|
5010
5014
|
exports.defineFormSelectorComponent = defineFormSelectorComponent;
|
|
5011
5015
|
exports.iconProps = iconProps;
|
|
5012
5016
|
exports.installVuiPlugin = installVuiPlugin;
|
package/dist/vui.d.ts
CHANGED
|
@@ -998,6 +998,44 @@ declare function createTextFieldProps(): {
|
|
|
998
998
|
errorMessages: PropType<string | string[]>;
|
|
999
999
|
};
|
|
1000
1000
|
|
|
1001
|
+
export declare function createVFormProps(): {
|
|
1002
|
+
'v-slots': PropType<ResolveRawSlots<VFormSlots>>;
|
|
1003
|
+
size: {
|
|
1004
|
+
type: PropType<"sm" | "md" | "lg">;
|
|
1005
|
+
validator: (value: any) => boolean;
|
|
1006
|
+
};
|
|
1007
|
+
action: PropType<FormAction>;
|
|
1008
|
+
autoValidate: {
|
|
1009
|
+
type: BooleanConstructor;
|
|
1010
|
+
default: boolean;
|
|
1011
|
+
};
|
|
1012
|
+
submiting: BooleanConstructor;
|
|
1013
|
+
disableAutoScroll: BooleanConstructor;
|
|
1014
|
+
name: StringConstructor;
|
|
1015
|
+
modelValue: Prop<unknown, unknown>;
|
|
1016
|
+
tabindex: {
|
|
1017
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
1018
|
+
default: number;
|
|
1019
|
+
};
|
|
1020
|
+
autofocus: BooleanConstructor;
|
|
1021
|
+
disabled: BooleanConstructor;
|
|
1022
|
+
readonly: BooleanConstructor;
|
|
1023
|
+
spellcheck: BooleanConstructor;
|
|
1024
|
+
viewonly: BooleanConstructor;
|
|
1025
|
+
required: BooleanConstructor;
|
|
1026
|
+
clearable: BooleanConstructor;
|
|
1027
|
+
validateTiming: {
|
|
1028
|
+
type: PropType<ValidateTiming>;
|
|
1029
|
+
default: ValidateTiming;
|
|
1030
|
+
};
|
|
1031
|
+
rules: {
|
|
1032
|
+
type: PropType<RecursiveArray<Rule<any>>>;
|
|
1033
|
+
default: () => never[];
|
|
1034
|
+
};
|
|
1035
|
+
error: BooleanConstructor;
|
|
1036
|
+
errorMessages: PropType<string | string[]>;
|
|
1037
|
+
};
|
|
1038
|
+
|
|
1001
1039
|
declare const DATA_TABLE_DEFAULTS: {
|
|
1002
1040
|
itemKey: string;
|
|
1003
1041
|
pageQuery: string;
|
package/dist/vui.mjs
CHANGED
|
@@ -3155,13 +3155,16 @@ const {
|
|
|
3155
3155
|
} = createFormSettings({
|
|
3156
3156
|
nodeType: VUI_FORM_SYMBOL
|
|
3157
3157
|
});
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
props: { ...props,
|
|
3158
|
+
function createVFormProps() {
|
|
3159
|
+
return { ...props,
|
|
3161
3160
|
...createControlProps(),
|
|
3162
3161
|
...defineSlotsProps() // disableAutoScroll: Boolean,
|
|
3163
3162
|
|
|
3164
|
-
}
|
|
3163
|
+
};
|
|
3164
|
+
}
|
|
3165
|
+
const VForm = defineComponent({
|
|
3166
|
+
name: 'VForm',
|
|
3167
|
+
props: createVFormProps(),
|
|
3165
3168
|
emits,
|
|
3166
3169
|
|
|
3167
3170
|
setup(props, ctx) {
|
|
@@ -4912,4 +4915,4 @@ function installVuiPlugin(app, opts) {
|
|
|
4912
4915
|
return app.use(VuiPlugin, opts);
|
|
4913
4916
|
}
|
|
4914
4917
|
|
|
4915
|
-
export { AVATAR_SIZES, CHIP_SIZES, CONTROL_FIELD_VARIANTS, CONTROL_SIZES, PAGINATION_ALIGNS, VApp, VAvatar, VBreadcrumbs, VBusyImage, VButton, VButtonGroup, VCard, VCardActions, VCardContent, VCheckbox, VCheckboxGroup, VChip, VContentSwitcher, VDataTable, VDrawerLayout, VForm, VFormControl, VGridContainer, VGridItem, VHero, VIcon, VListTile, VNavigation, VNavigationItem, VOption, VOptionGroup, VPagination, VPaper, VRadio, VRadioGroup, VSelect, VSkeltonLoaderBone, 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, createAvatarProps, createCardProps, createChipProps, createControlFieldProviderProps, createControlProps, createElevationProps, createListTileProps, createNavigationItemProps, createPaperBaseProps, createPaperProps, createRequiredChipRenderer, defineFormSelectorComponent, iconProps, installVuiPlugin, listTileEmits, mergeVuiPluginOptions, mergeVuiServiceIconSettings, mergeVuiServiceOptions, mergeVuiServiceUISettings, paginationProps, rawIconProp, renderNavigationItemInput, resolveNavigationItemInput, resolveRawIconProp, resolveRawWysiwygEditorTools, splitAttrs, useControl, useControlField, useElevation, useVui, useVuiColorProvider, vueButtonProps };
|
|
4918
|
+
export { AVATAR_SIZES, CHIP_SIZES, CONTROL_FIELD_VARIANTS, CONTROL_SIZES, PAGINATION_ALIGNS, VApp, VAvatar, VBreadcrumbs, VBusyImage, VButton, VButtonGroup, VCard, VCardActions, VCardContent, VCheckbox, VCheckboxGroup, VChip, VContentSwitcher, VDataTable, VDrawerLayout, VForm, VFormControl, VGridContainer, VGridItem, VHero, VIcon, VListTile, VNavigation, VNavigationItem, VOption, VOptionGroup, VPagination, VPaper, VRadio, VRadioGroup, VSelect, VSkeltonLoaderBone, 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, createAvatarProps, createCardProps, createChipProps, createControlFieldProviderProps, createControlProps, createElevationProps, createListTileProps, createNavigationItemProps, createPaperBaseProps, createPaperProps, createRequiredChipRenderer, createVFormProps, defineFormSelectorComponent, iconProps, installVuiPlugin, listTileEmits, mergeVuiPluginOptions, mergeVuiServiceIconSettings, mergeVuiServiceOptions, mergeVuiServiceUISettings, paginationProps, rawIconProp, renderNavigationItemInput, resolveNavigationItemInput, resolveRawIconProp, resolveRawWysiwygEditorTools, splitAttrs, 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.
|
|
3
|
+
"version": "0.7.50",
|
|
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.
|
|
36
|
-
"@fastkit/icon-font": "0.7.
|
|
37
|
-
"@fastkit/tiny-logger": "0.7.
|
|
38
|
-
"@fastkit/vite-kit": "0.7.
|
|
39
|
-
"@fastkit/vue-kit": "0.7.
|
|
35
|
+
"@fastkit/color-scheme": "0.7.50",
|
|
36
|
+
"@fastkit/icon-font": "0.7.50",
|
|
37
|
+
"@fastkit/tiny-logger": "0.7.50",
|
|
38
|
+
"@fastkit/vite-kit": "0.7.50",
|
|
39
|
+
"@fastkit/vue-kit": "0.7.50",
|
|
40
40
|
"@tiptap/extension-link": "^2.0.0-beta.36",
|
|
41
41
|
"@tiptap/extension-underline": "^2.0.0-beta.23",
|
|
42
42
|
"@tiptap/starter-kit": "^2.0.0-beta.183",
|
|
@@ -18,14 +18,18 @@ export interface VFormSlots {
|
|
|
18
18
|
default: VueForm;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
export
|
|
22
|
-
|
|
23
|
-
props: {
|
|
21
|
+
export function createVFormProps() {
|
|
22
|
+
return {
|
|
24
23
|
...props,
|
|
25
24
|
...createControlProps(),
|
|
26
25
|
...defineSlotsProps<VFormSlots>(),
|
|
27
26
|
// disableAutoScroll: Boolean,
|
|
28
|
-
}
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export const VForm = defineComponent({
|
|
31
|
+
name: 'VForm',
|
|
32
|
+
props: createVFormProps(),
|
|
29
33
|
emits,
|
|
30
34
|
setup(props, ctx) {
|
|
31
35
|
const vui = useVui();
|