@fastkit/vui 0.16.85 → 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/dist/vui.d.ts +124 -124
- package/dist/vui.mjs +11 -11
- package/dist/vui.mjs.map +1 -1
- package/package.json +13 -13
- package/src/components/VFormControl/VFormControl.tsx +8 -8
- package/src/components/VSelect/VSelect.tsx +4 -4
- package/src/components/VTextField/VTextField.tsx +10 -10
- package/src/components/VTextarea/VTextarea.tsx +8 -8
- package/src/composables/form-selector.tsx +4 -4
- package/src/service.tsx +5 -2
package/dist/vui.mjs
CHANGED
|
@@ -20,7 +20,7 @@ import { VAppContainer, VueAppLayout, VAppLayout, installVueAppLayout } from '@f
|
|
|
20
20
|
export * from '@fastkit/vue-app-layout';
|
|
21
21
|
import { colorSchemeProps, useColorClasses, useScopeColorClass, toScopeColorClass, useInjectTheme, VueColorSchemePlugin } from '@fastkit/vue-color-scheme';
|
|
22
22
|
export * from '@fastkit/vue-color-scheme';
|
|
23
|
-
import {
|
|
23
|
+
import { createFormNodeWrapperSettings, useFormNodeWrapper, useParentFormNode, createFormSelectorItemSettings, useFormSelectorItemControl, createFormSelectorItemGroupProps, useFormSelectorItemGroupControl, createFormSelectorSettings, createFormNodeWrapperProps, useFormSelectorControl, createTextInputNodeSettings, useTextInputNodeControl, createTextareaNodeSettings, useTextareaNodeControl, createFormGroupSettings, useFormGroup, createFormSettings, useForm, installVueFormPlugin } from '@fastkit/vue-form-control';
|
|
24
24
|
export * from '@fastkit/vue-form-control';
|
|
25
25
|
import { VScroller, getDocumentScroller } from '@fastkit/vue-scroller';
|
|
26
26
|
export * from '@fastkit/vue-scroller';
|
|
@@ -400,7 +400,7 @@ var VTooltip = defineComponent({
|
|
|
400
400
|
var {
|
|
401
401
|
props,
|
|
402
402
|
emits
|
|
403
|
-
} =
|
|
403
|
+
} = createFormNodeWrapperSettings();
|
|
404
404
|
function createRequiredChipRenderer(required, props12, vui = useVui()) {
|
|
405
405
|
return () => {
|
|
406
406
|
if (!required())
|
|
@@ -436,7 +436,7 @@ var VFormControl = defineComponent({
|
|
|
436
436
|
emits,
|
|
437
437
|
setup(props12, ctx) {
|
|
438
438
|
const vui = useVui();
|
|
439
|
-
const control =
|
|
439
|
+
const control = useFormNodeWrapper(props12, ctx, {
|
|
440
440
|
hinttipPrepend: () => createVNode(VIcon, {
|
|
441
441
|
"class": "v-form-control__label__hinttip__icon",
|
|
442
442
|
"name": vui.icon("hinttip")
|
|
@@ -532,7 +532,7 @@ function defineFormSelectorComponent(opts) {
|
|
|
532
532
|
name: opts.name,
|
|
533
533
|
props: {
|
|
534
534
|
...props12,
|
|
535
|
-
...
|
|
535
|
+
...createFormNodeWrapperProps(),
|
|
536
536
|
...createControlProps(),
|
|
537
537
|
stacked: {
|
|
538
538
|
type: Boolean,
|
|
@@ -2709,7 +2709,7 @@ var VSelect = defineComponent({
|
|
|
2709
2709
|
name: "VSelect",
|
|
2710
2710
|
props: {
|
|
2711
2711
|
...props7,
|
|
2712
|
-
...
|
|
2712
|
+
...createFormNodeWrapperProps(),
|
|
2713
2713
|
...createControlFieldProps(),
|
|
2714
2714
|
...createControlFieldProviderProps(),
|
|
2715
2715
|
...createControlProps(),
|
|
@@ -3043,12 +3043,12 @@ var VSelect = defineComponent({
|
|
|
3043
3043
|
var {
|
|
3044
3044
|
props: props8,
|
|
3045
3045
|
emits: emits8
|
|
3046
|
-
} =
|
|
3046
|
+
} = createTextInputNodeSettings();
|
|
3047
3047
|
var slots9 = defineSlots();
|
|
3048
3048
|
function createTextFieldProps() {
|
|
3049
3049
|
return {
|
|
3050
3050
|
...props8,
|
|
3051
|
-
...
|
|
3051
|
+
...createFormNodeWrapperProps(),
|
|
3052
3052
|
...createControlFieldProps(),
|
|
3053
3053
|
...createControlFieldProviderProps(),
|
|
3054
3054
|
...createControlProps(),
|
|
@@ -3061,7 +3061,7 @@ var VTextField = defineComponent({
|
|
|
3061
3061
|
emits: emits8,
|
|
3062
3062
|
slots: slots9,
|
|
3063
3063
|
setup(props12, ctx) {
|
|
3064
|
-
const inputControl =
|
|
3064
|
+
const inputControl = useTextInputNodeControl(props12, ctx, {
|
|
3065
3065
|
nodeType: VUI_TEXT_FIELD_SYMBOL
|
|
3066
3066
|
});
|
|
3067
3067
|
const control = useControl(props12);
|
|
@@ -3177,13 +3177,13 @@ var VNumberField = defineComponent({
|
|
|
3177
3177
|
var {
|
|
3178
3178
|
props: props9,
|
|
3179
3179
|
emits: emits9
|
|
3180
|
-
} =
|
|
3180
|
+
} = createTextareaNodeSettings();
|
|
3181
3181
|
var slots10 = defineSlots();
|
|
3182
3182
|
var VTextarea = defineComponent({
|
|
3183
3183
|
name: "VTextarea",
|
|
3184
3184
|
props: {
|
|
3185
3185
|
...props9,
|
|
3186
|
-
...
|
|
3186
|
+
...createFormNodeWrapperProps(),
|
|
3187
3187
|
...createControlFieldProps(),
|
|
3188
3188
|
...createControlFieldProviderProps(),
|
|
3189
3189
|
...createControlProps(),
|
|
@@ -3192,7 +3192,7 @@ var VTextarea = defineComponent({
|
|
|
3192
3192
|
emits: emits9,
|
|
3193
3193
|
setup(props12, ctx) {
|
|
3194
3194
|
const vui = useVui();
|
|
3195
|
-
const inputControl =
|
|
3195
|
+
const inputControl = useTextareaNodeControl(props12, ctx, {
|
|
3196
3196
|
nodeType: VUI_TEXTAREA_SYMBOL,
|
|
3197
3197
|
defaultRows: vui.textareaRows
|
|
3198
3198
|
});
|