@sfxcode/nuxt-ui-formkit 1.0.7 → 1.1.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/module.json +1 -1
- package/dist/runtime/components/inputs/FUCheckbox.d.vue.ts +2 -0
- package/dist/runtime/components/inputs/FUCheckbox.vue +2 -0
- package/dist/runtime/components/inputs/FUCheckbox.vue.d.ts +2 -0
- package/dist/runtime/components/inputs/FUInputMenu.d.vue.ts +4 -0
- package/dist/runtime/components/inputs/FUInputMenu.vue +4 -0
- package/dist/runtime/components/inputs/FUInputMenu.vue.d.ts +4 -0
- package/dist/runtime/components/inputs/FUInputNumber.d.vue.ts +1 -0
- package/dist/runtime/components/inputs/FUInputNumber.vue +2 -0
- package/dist/runtime/components/inputs/FUInputNumber.vue.d.ts +1 -0
- package/dist/runtime/components/inputs/FUInputTags.d.vue.ts +1 -1
- package/dist/runtime/components/inputs/FUInputTags.vue +1 -1
- package/dist/runtime/components/inputs/FUInputTags.vue.d.ts +1 -1
- package/dist/runtime/components/inputs/FUListbox.d.vue.ts +1 -0
- package/dist/runtime/components/inputs/FUListbox.vue +3 -2
- package/dist/runtime/components/inputs/FUListbox.vue.d.ts +1 -0
- package/dist/runtime/components/inputs/FUPinInput.d.vue.ts +2 -0
- package/dist/runtime/components/inputs/FUPinInput.vue +2 -0
- package/dist/runtime/components/inputs/FUPinInput.vue.d.ts +2 -0
- package/dist/runtime/components/inputs/FUSelect.d.vue.ts +1 -0
- package/dist/runtime/components/inputs/FUSelect.vue +1 -0
- package/dist/runtime/components/inputs/FUSelect.vue.d.ts +1 -0
- package/dist/runtime/components/inputs/FUSelectMenu.d.vue.ts +2 -0
- package/dist/runtime/components/inputs/FUSelectMenu.vue +2 -0
- package/dist/runtime/components/inputs/FUSelectMenu.vue.d.ts +2 -0
- package/dist/runtime/components/inputs/FUSwitch.d.vue.ts +2 -0
- package/dist/runtime/components/inputs/FUSwitch.vue +2 -0
- package/dist/runtime/components/inputs/FUSwitch.vue.d.ts +2 -0
- package/dist/runtime/components/output/FUOutputText.d.vue.ts +1 -1
- package/dist/runtime/components/output/FUOutputText.vue +15 -0
- package/dist/runtime/components/output/FUOutputText.vue.d.ts +1 -1
- package/dist/runtime/formkit/definitions/input.js +10 -10
- package/dist/runtime/formkit/definitions/input.mjs +10 -10
- package/package.json +30 -21
package/dist/module.json
CHANGED
|
@@ -9,6 +9,8 @@ export interface FormKitCheckboxProps {
|
|
|
9
9
|
indicator?: 'start' | 'end' | 'hidden';
|
|
10
10
|
icon?: string;
|
|
11
11
|
indeterminateIcon?: string;
|
|
12
|
+
trueValue?: unknown;
|
|
13
|
+
falseValue?: unknown;
|
|
12
14
|
autofocus?: false | true | 'true' | 'false';
|
|
13
15
|
ui?: Record<string, unknown>;
|
|
14
16
|
}
|
|
@@ -25,6 +25,8 @@ const { handleInput, handleChange, styleClass, modelValue, color, validSlotNames
|
|
|
25
25
|
:indicator="context.indicator"
|
|
26
26
|
:icon="context.icon"
|
|
27
27
|
:indeterminate-icon="context.indeterminateIcon"
|
|
28
|
+
:true-value="context.trueValue"
|
|
29
|
+
:false-value="context.falseValue"
|
|
28
30
|
:autofocus="context.autofocus"
|
|
29
31
|
:ui="context.ui"
|
|
30
32
|
@change="handleChange"
|
|
@@ -9,6 +9,8 @@ export interface FormKitCheckboxProps {
|
|
|
9
9
|
indicator?: 'start' | 'end' | 'hidden';
|
|
10
10
|
icon?: string;
|
|
11
11
|
indeterminateIcon?: string;
|
|
12
|
+
trueValue?: unknown;
|
|
13
|
+
falseValue?: unknown;
|
|
12
14
|
autofocus?: false | true | 'true' | 'false';
|
|
13
15
|
ui?: Record<string, unknown>;
|
|
14
16
|
}
|
|
@@ -28,6 +28,10 @@ export interface FormKitInputMenuProps {
|
|
|
28
28
|
arrow?: boolean;
|
|
29
29
|
portal?: boolean;
|
|
30
30
|
virtualize?: boolean;
|
|
31
|
+
content?: Record<string, unknown>;
|
|
32
|
+
mode?: 'combobox' | 'autocomplete';
|
|
33
|
+
by?: string | ((a: unknown, b: unknown) => boolean);
|
|
34
|
+
open?: boolean;
|
|
31
35
|
valueKey?: string;
|
|
32
36
|
labelKey?: string;
|
|
33
37
|
descriptionKey?: string;
|
|
@@ -35,6 +35,10 @@ const { handleInput, handleChange, isInvalid, styleClass, color, modelValue, ite
|
|
|
35
35
|
:arrow="context.arrow"
|
|
36
36
|
:portal="context.portal"
|
|
37
37
|
:virtualize="context.virtualize"
|
|
38
|
+
:content="context.content"
|
|
39
|
+
:mode="context.mode"
|
|
40
|
+
:by="context.by"
|
|
41
|
+
:open="context.open"
|
|
38
42
|
:value-key="context.valueKey"
|
|
39
43
|
:label-key="context.labelKey"
|
|
40
44
|
:description-key="context.descriptionKey"
|
|
@@ -28,6 +28,10 @@ export interface FormKitInputMenuProps {
|
|
|
28
28
|
arrow?: boolean;
|
|
29
29
|
portal?: boolean;
|
|
30
30
|
virtualize?: boolean;
|
|
31
|
+
content?: Record<string, unknown>;
|
|
32
|
+
mode?: 'combobox' | 'autocomplete';
|
|
33
|
+
by?: string | ((a: unknown, b: unknown) => boolean);
|
|
34
|
+
open?: boolean;
|
|
31
35
|
valueKey?: string;
|
|
32
36
|
labelKey?: string;
|
|
33
37
|
descriptionKey?: string;
|
|
@@ -16,6 +16,7 @@ const { handleInput, handleChange, isInvalid, styleClass, color, modelValue, val
|
|
|
16
16
|
v-bind="{ ...context?.attrs }"
|
|
17
17
|
:class="styleClass"
|
|
18
18
|
:disabled="!!context?.disabled"
|
|
19
|
+
:readonly="context?.attrs.readonly ?? false"
|
|
19
20
|
:style="context?.attrs.style"
|
|
20
21
|
:color="color"
|
|
21
22
|
:size="context.size ?? 'md'"
|
|
@@ -39,6 +40,7 @@ const { handleInput, handleChange, isInvalid, styleClass, color, modelValue, val
|
|
|
39
40
|
:disable-wheel-change="context.disableWheelChange"
|
|
40
41
|
:invert-wheel-change="context.invertWheelChange"
|
|
41
42
|
:focus-on-change="context.focusOnChange"
|
|
43
|
+
:locale="context.locale"
|
|
42
44
|
:placeholder="context.placeholder"
|
|
43
45
|
:list="context.list"
|
|
44
46
|
:autocomplete="context.autocomplete"
|
|
@@ -16,7 +16,7 @@ export interface FormKitInputTagsProps {
|
|
|
16
16
|
addOnTab?: boolean;
|
|
17
17
|
addOnBlur?: boolean;
|
|
18
18
|
duplicate?: boolean;
|
|
19
|
-
|
|
19
|
+
delimiter?: string | RegExp;
|
|
20
20
|
max: number;
|
|
21
21
|
convertValue?: (value: string) => string;
|
|
22
22
|
displayValue?: (value: string) => string;
|
|
@@ -32,7 +32,7 @@ const { handleInput, handleChange, isInvalid, styleClass, color, modelValue, val
|
|
|
32
32
|
:add-on-tab="context.addOnTab"
|
|
33
33
|
:add-on-blur="context.addOnBlur"
|
|
34
34
|
:duplicate="context.duplicate"
|
|
35
|
-
:
|
|
35
|
+
:delimiter="context.delimiter"
|
|
36
36
|
:max="context.max"
|
|
37
37
|
:convert-value="context.convertValue"
|
|
38
38
|
:display-value="context.displayValue"
|
|
@@ -16,7 +16,7 @@ export interface FormKitInputTagsProps {
|
|
|
16
16
|
addOnTab?: boolean;
|
|
17
17
|
addOnBlur?: boolean;
|
|
18
18
|
duplicate?: boolean;
|
|
19
|
-
|
|
19
|
+
delimiter?: string | RegExp;
|
|
20
20
|
max: number;
|
|
21
21
|
convertValue?: (value: string) => string;
|
|
22
22
|
displayValue?: (value: string) => string;
|
|
@@ -16,6 +16,7 @@ export interface ListboxItem {
|
|
|
16
16
|
export interface FormKitListboxProps {
|
|
17
17
|
options?: string[] | ListboxItem[] | ListboxItem[][];
|
|
18
18
|
as?: string;
|
|
19
|
+
color?: 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'error' | 'neutral';
|
|
19
20
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
20
21
|
by?: string | ((a: unknown, b: unknown) => boolean);
|
|
21
22
|
displayMode?: 'single' | 'transfer';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { computed } from "vue";
|
|
2
|
+
import { computed, ref, watch } from "vue";
|
|
3
3
|
import { useFormKitInput } from "../../utils/useFormKitInput";
|
|
4
4
|
const props = defineProps({
|
|
5
5
|
context: {
|
|
@@ -7,7 +7,7 @@ const props = defineProps({
|
|
|
7
7
|
required: true
|
|
8
8
|
}
|
|
9
9
|
});
|
|
10
|
-
const { handleInput, handleChange, isInvalid, styleClass, modelValue, items, validSlotNames } = useFormKitInput(props.context);
|
|
10
|
+
const { handleInput, handleChange, isInvalid, styleClass, color, modelValue, items, validSlotNames } = useFormKitInput(props.context);
|
|
11
11
|
const targetItems = ref(modelValue.value || []);
|
|
12
12
|
const sourceSelection = ref([]);
|
|
13
13
|
const targetSelection = ref([]);
|
|
@@ -50,6 +50,7 @@ watch(targetItems, (newVal) => {
|
|
|
50
50
|
:class="styleClass"
|
|
51
51
|
:style="context?.attrs.style"
|
|
52
52
|
:as="context.as"
|
|
53
|
+
:color="color"
|
|
53
54
|
:size="context.size ?? 'md'"
|
|
54
55
|
:items="items"
|
|
55
56
|
:by="context.by"
|
|
@@ -16,6 +16,7 @@ export interface ListboxItem {
|
|
|
16
16
|
export interface FormKitListboxProps {
|
|
17
17
|
options?: string[] | ListboxItem[] | ListboxItem[][];
|
|
18
18
|
as?: string;
|
|
19
|
+
color?: 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'error' | 'neutral';
|
|
19
20
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
20
21
|
by?: string | ((a: unknown, b: unknown) => boolean);
|
|
21
22
|
displayMode?: 'single' | 'transfer';
|
|
@@ -29,6 +29,8 @@ const { handleInput, handleChange, isInvalid, styleClass, color, modelValue } =
|
|
|
29
29
|
:fixed="context.fixed"
|
|
30
30
|
:mask="context.mask"
|
|
31
31
|
:otp="context.otp"
|
|
32
|
+
:separator="context.separator"
|
|
33
|
+
:type="context.type ?? 'text'"
|
|
32
34
|
:placeholder="context.placeholder"
|
|
33
35
|
:ui="context.ui"
|
|
34
36
|
@change="handleChange"
|
|
@@ -34,6 +34,7 @@ const { handleInput, handleChange, isInvalid, color, styleClass, modelValue, ite
|
|
|
34
34
|
:loading-icon="context.loadingIcon"
|
|
35
35
|
:arrow="context.arrow"
|
|
36
36
|
:portal="context.portal"
|
|
37
|
+
:content="context.content"
|
|
37
38
|
:value-key="context.valueKey"
|
|
38
39
|
:label-key="context.labelKey"
|
|
39
40
|
:description-key="context.descriptionKey"
|
|
@@ -37,6 +37,8 @@ export interface FormKitSelectMenuProps {
|
|
|
37
37
|
arrow?: boolean;
|
|
38
38
|
portal?: boolean;
|
|
39
39
|
virtualize?: boolean;
|
|
40
|
+
content?: Record<string, unknown>;
|
|
41
|
+
by?: string | ((a: unknown, b: unknown) => boolean);
|
|
40
42
|
valueKey?: string;
|
|
41
43
|
labelKey?: string;
|
|
42
44
|
descriptionKey?: string;
|
|
@@ -38,6 +38,8 @@ const { handleInput, handleChange, isInvalid, styleClass, color, modelValue, ite
|
|
|
38
38
|
:arrow="context.arrow"
|
|
39
39
|
:portal="context.portal"
|
|
40
40
|
:virtualize="context.virtualize"
|
|
41
|
+
:content="context.content"
|
|
42
|
+
:by="context.by"
|
|
41
43
|
:value-key="context.valueKey"
|
|
42
44
|
:label-key="context.labelKey"
|
|
43
45
|
:description-key="context.descriptionKey"
|
|
@@ -37,6 +37,8 @@ export interface FormKitSelectMenuProps {
|
|
|
37
37
|
arrow?: boolean;
|
|
38
38
|
portal?: boolean;
|
|
39
39
|
virtualize?: boolean;
|
|
40
|
+
content?: Record<string, unknown>;
|
|
41
|
+
by?: string | ((a: unknown, b: unknown) => boolean);
|
|
40
42
|
valueKey?: string;
|
|
41
43
|
labelKey?: string;
|
|
42
44
|
descriptionKey?: string;
|
|
@@ -26,6 +26,8 @@ const { handleInput, handleChange, styleClass, color, modelValue, validSlotNames
|
|
|
26
26
|
:label="context.label"
|
|
27
27
|
:description="context.description"
|
|
28
28
|
:default-value="context.defaultValue"
|
|
29
|
+
:true-value="context.trueValue"
|
|
30
|
+
:false-value="context.falseValue"
|
|
29
31
|
:autofocus="context.autofocus"
|
|
30
32
|
:ui="context.ui"
|
|
31
33
|
@change="handleChange"
|
|
@@ -10,7 +10,7 @@ export interface FormKitOutputTextProps {
|
|
|
10
10
|
trailing?: boolean;
|
|
11
11
|
trailingIcon?: string;
|
|
12
12
|
variant?: 'outline' | 'soft' | 'subtle' | 'ghost' | 'none';
|
|
13
|
-
outputType?: 'text' | 'email' | 'url' | 'tel' | 'color' | 'duration';
|
|
13
|
+
outputType?: 'text' | 'email' | 'url' | 'tel' | 'color' | 'duration' | 'i18n';
|
|
14
14
|
}
|
|
15
15
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
16
16
|
context: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { computed } from "vue";
|
|
3
|
+
import { useI18n } from "vue-i18n";
|
|
3
4
|
import { useFormKitOutput } from "../../utils/useFormKitOutput";
|
|
4
5
|
import { convertColorToHex } from "../../utils/colorConverter";
|
|
5
6
|
import { formattedDuration } from "../../utils/durationConverter";
|
|
@@ -11,10 +12,24 @@ const props = defineProps({
|
|
|
11
12
|
}
|
|
12
13
|
});
|
|
13
14
|
const outputType = computed(() => props.context.outputType ?? "text");
|
|
15
|
+
let translate;
|
|
16
|
+
try {
|
|
17
|
+
translate = useI18n().t;
|
|
18
|
+
} catch {
|
|
19
|
+
translate = void 0;
|
|
20
|
+
}
|
|
14
21
|
const displayValue = computed(() => {
|
|
15
22
|
let result = props.context._value ?? "";
|
|
16
23
|
if (outputType.value === "duration") {
|
|
17
24
|
result = formattedDuration(result);
|
|
25
|
+
} else if (outputType.value === "i18n") {
|
|
26
|
+
const key = String(result ?? "");
|
|
27
|
+
if (key && translate) {
|
|
28
|
+
const translated = translate(key);
|
|
29
|
+
result = typeof translated === "string" && translated.length > 0 ? translated : key;
|
|
30
|
+
} else {
|
|
31
|
+
result = key;
|
|
32
|
+
}
|
|
18
33
|
}
|
|
19
34
|
return result;
|
|
20
35
|
});
|
|
@@ -10,7 +10,7 @@ export interface FormKitOutputTextProps {
|
|
|
10
10
|
trailing?: boolean;
|
|
11
11
|
trailingIcon?: string;
|
|
12
12
|
variant?: 'outline' | 'soft' | 'subtle' | 'ghost' | 'none';
|
|
13
|
-
outputType?: 'text' | 'email' | 'url' | 'tel' | 'color' | 'duration';
|
|
13
|
+
outputType?: 'text' | 'email' | 'url' | 'tel' | 'color' | 'duration' | 'i18n';
|
|
14
14
|
}
|
|
15
15
|
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
16
16
|
context: {
|
|
@@ -17,11 +17,11 @@ import FUSlider from "../../../runtime/components/inputs/FUSlider.vue";
|
|
|
17
17
|
import FUSwitch from "../../../runtime/components/inputs/FUSwitch.vue";
|
|
18
18
|
import FUTextarea from "../../../runtime/components/inputs/FUTextarea.vue";
|
|
19
19
|
export const nuxtUICheckboxDefinition = createInput(FUCheckbox, {
|
|
20
|
-
props: ["label", "description", "color", "variant", "size", "indicator", "icon", "indeterminateIcon", "autofocus", "ui"],
|
|
20
|
+
props: ["label", "description", "color", "variant", "size", "indicator", "icon", "indeterminateIcon", "trueValue", "falseValue", "autofocus", "ui"],
|
|
21
21
|
family: "NuxtUIInput"
|
|
22
22
|
});
|
|
23
23
|
export const nuxtUICheckboxGroupDefinition = createInput(FUCheckboxGroup, {
|
|
24
|
-
props: ["options", "legend", "valueKey", "labelKey", "descriptionKey", "size", "variant", "orientation", "loop", "color", "indicator", "icon", "ui", "items"],
|
|
24
|
+
props: ["options", "legend", "valueKey", "labelKey", "descriptionKey", "size", "variant", "orientation", "loop", "name", "color", "indicator", "icon", "ui", "items"],
|
|
25
25
|
family: "NuxtUIInput"
|
|
26
26
|
});
|
|
27
27
|
export const nuxtUIColorPickerDefinition = createInput(FUColorPicker, {
|
|
@@ -37,15 +37,15 @@ export const nuxtUIInputDateDefinition = createInput(FUInputDate, {
|
|
|
37
37
|
family: "NuxtUIInput"
|
|
38
38
|
});
|
|
39
39
|
export const nuxtUIInputMenuDefinition = createInput(FUInputMenu, {
|
|
40
|
-
props: ["options", "inputType", "placeholder", "color", "variant", "size", "autofocus", "autofocusDelay", "trailingIcon", "selectedIcon", "deleteIcon", "clear", "clearIcon", "arrow", "portal", "virtualize", "valueKey", "labelKey", "descriptionKey", "multiple", "highlight", "fixed", "createItem", "filterFields", "ignoreFilter", "defaultOpen", "resetSearchTermOnBlur", "resetSearchTermOnSelect", "resetModelValueOnClear", "highlightOnHover", "openOnClick", "openOnFocus", "icon", "leading", "leadingIcon", "trailing", "loading", "loadingIcon", "list", "autocomplete", "searchTerm", "ui"],
|
|
40
|
+
props: ["options", "inputType", "placeholder", "color", "variant", "size", "autofocus", "autofocusDelay", "trailingIcon", "selectedIcon", "deleteIcon", "clear", "clearIcon", "arrow", "portal", "virtualize", "content", "mode", "by", "open", "valueKey", "labelKey", "descriptionKey", "multiple", "highlight", "fixed", "createItem", "filterFields", "ignoreFilter", "defaultOpen", "resetSearchTermOnBlur", "resetSearchTermOnSelect", "resetModelValueOnClear", "highlightOnHover", "openOnClick", "openOnFocus", "icon", "leading", "leadingIcon", "trailing", "loading", "loadingIcon", "list", "autocomplete", "searchTerm", "ui"],
|
|
41
41
|
family: "NuxtUIInput"
|
|
42
42
|
});
|
|
43
43
|
export const nuxtUIInputNumberDefinition = createInput(FUInputNumber, {
|
|
44
|
-
props: ["placeholder", "color", "variant", "size", "highlight", "fixed", "orientation", "increment", "incrementIcon", "incrementDisabled", "decrement", "decrementIcon", "decrementDisabled", "autofocus", "autofocusDelay", "min", "max", "step", "stepSnapping", "formatOptions", "disableWheelChange", "invertWheelChange", "focusOnChange", "list", "autocomplete", "ui"],
|
|
44
|
+
props: ["placeholder", "color", "variant", "size", "highlight", "fixed", "orientation", "increment", "incrementIcon", "incrementDisabled", "decrement", "decrementIcon", "decrementDisabled", "autofocus", "autofocusDelay", "min", "max", "step", "stepSnapping", "formatOptions", "disableWheelChange", "invertWheelChange", "focusOnChange", "locale", "list", "autocomplete", "ui"],
|
|
45
45
|
family: "NuxtUIInput"
|
|
46
46
|
});
|
|
47
47
|
export const nuxtUIInputTagsDefinition = createInput(FUInputTags, {
|
|
48
|
-
props: ["placeholder", "maxLength", "color", "variant", "size", "autofocus", "autofocusDelay", "deleteIcon", "highlight", "fixed", "addOnPaste", "addOnTab", "addOnBlur", "duplicate", "
|
|
48
|
+
props: ["placeholder", "maxLength", "color", "variant", "size", "autofocus", "autofocusDelay", "deleteIcon", "highlight", "fixed", "addOnPaste", "addOnTab", "addOnBlur", "duplicate", "delimiter", "max", "convertValue", "displayValue", "icon", "avatar", "leading", "leadingIcon", "trailing", "trailingIcon", "loading", "loadingIcon", "list", "autocomplete", "ui"],
|
|
49
49
|
family: "NuxtUIInput"
|
|
50
50
|
});
|
|
51
51
|
export const nuxtUIInputTimeDefinition = createInput(FUInputTime, {
|
|
@@ -53,11 +53,11 @@ export const nuxtUIInputTimeDefinition = createInput(FUInputTime, {
|
|
|
53
53
|
family: "NuxtUIInput"
|
|
54
54
|
});
|
|
55
55
|
export const nuxtUIListboxDefinition = createInput(FUListbox, {
|
|
56
|
-
props: ["options", "as", "size", "by", "orientation", "selectionBehavior", "disabled", "defaultValue", "multiple", "valueKey", "labelKey", "descriptionKey", "loading", "loadingIcon", "filter", "filterFields", "ignoreFilter", "selectedIcon", "virtualize", "highlight", "highlightOnHover", "autofocus", "autofocusDelay", "searchTerm", "ui", "displayMode", "transferLeftHeaderText", "transferRightHeaderText", "transferAll", "transferHeaderClass"],
|
|
56
|
+
props: ["options", "as", "color", "size", "by", "orientation", "selectionBehavior", "disabled", "defaultValue", "multiple", "valueKey", "labelKey", "descriptionKey", "loading", "loadingIcon", "filter", "filterFields", "ignoreFilter", "selectedIcon", "virtualize", "highlight", "highlightOnHover", "autofocus", "autofocusDelay", "searchTerm", "ui", "displayMode", "transferLeftHeaderText", "transferRightHeaderText", "transferAll", "transferHeaderClass"],
|
|
57
57
|
family: "NuxtUIInput"
|
|
58
58
|
});
|
|
59
59
|
export const nuxtUIPinInputDefinition = createInput(FUPinInput, {
|
|
60
|
-
props: ["color", "variant", "size", "length", "autofocus", "autofocusDelay", "highlight", "fixed", "defaultValue", "mask", "otp", "placeholder", "ui"],
|
|
60
|
+
props: ["color", "variant", "size", "length", "autofocus", "autofocusDelay", "highlight", "fixed", "defaultValue", "mask", "otp", "separator", "type", "placeholder", "ui"],
|
|
61
61
|
family: "NuxtUIInput"
|
|
62
62
|
});
|
|
63
63
|
export const nuxtUIRadioGroupDefinition = createInput(FURadioGroup, {
|
|
@@ -65,11 +65,11 @@ export const nuxtUIRadioGroupDefinition = createInput(FURadioGroup, {
|
|
|
65
65
|
family: "NuxtUIInput"
|
|
66
66
|
});
|
|
67
67
|
export const nuxtUISelectDefinition = createInput(FUSelect, {
|
|
68
|
-
props: ["options", "placeholder", "color", "variant", "size", "selectedIcon", "arrow", "portal", "valueKey", "labelKey", "descriptionKey", "defaultValue", "multiple", "highlight", "fixed", "autofocus", "autofocusDelay", "open", "defaultOpen", "autocomplete", "icon", "avatar", "leading", "leadingIcon", "trailing", "trailingIcon", "loading", "loadingIcon", "ui"],
|
|
68
|
+
props: ["options", "placeholder", "color", "variant", "size", "selectedIcon", "arrow", "portal", "content", "valueKey", "labelKey", "descriptionKey", "defaultValue", "multiple", "highlight", "fixed", "autofocus", "autofocusDelay", "open", "defaultOpen", "autocomplete", "icon", "avatar", "leading", "leadingIcon", "trailing", "trailingIcon", "loading", "loadingIcon", "ui"],
|
|
69
69
|
family: "NuxtUIInput"
|
|
70
70
|
});
|
|
71
71
|
export const nuxtUISelectMenuDefinition = createInput(FUSelectMenu, {
|
|
72
|
-
props: ["options", "placeholder", "searchInput", "color", "variant", "icon", "avatar", "leading", "leadingIcon", "trailing", "trailingIcon", "loading", "loadingIcon", "selectedIcon", "clear", "clearIcon", "arrow", "portal", "virtualize", "valueKey", "labelKey", "descriptionKey", "defaultValue", "multiple", "highlight", "fixed", "createItem", "filterFields", "ignoreFilter", "autofocus", "autofocusDelay", "open", "defaultOpen", "resetSearchTermOnBlur", "resetSearchTermOnSelect", "resetModelValueOnClear", "highlightOnHover", "searchTerm", "ui"],
|
|
72
|
+
props: ["options", "placeholder", "searchInput", "color", "variant", "size", "icon", "avatar", "leading", "leadingIcon", "trailing", "trailingIcon", "loading", "loadingIcon", "selectedIcon", "clear", "clearIcon", "arrow", "portal", "virtualize", "content", "by", "valueKey", "labelKey", "descriptionKey", "defaultValue", "multiple", "highlight", "fixed", "createItem", "filterFields", "ignoreFilter", "autofocus", "autofocusDelay", "open", "defaultOpen", "resetSearchTermOnBlur", "resetSearchTermOnSelect", "resetModelValueOnClear", "highlightOnHover", "searchTerm", "ui"],
|
|
73
73
|
family: "NuxtUIInput"
|
|
74
74
|
});
|
|
75
75
|
export const nuxtUISliderDefinition = createInput(FUSlider, {
|
|
@@ -77,7 +77,7 @@ export const nuxtUISliderDefinition = createInput(FUSlider, {
|
|
|
77
77
|
family: "NuxtUIInput"
|
|
78
78
|
});
|
|
79
79
|
export const nuxtUISwitchDefinition = createInput(FUSwitch, {
|
|
80
|
-
props: ["color", "size", "loading", "loadingIcon", "checkedIcon", "uncheckedIcon", "label", "description", "defaultValue", "autofocus", "ui"],
|
|
80
|
+
props: ["color", "size", "loading", "loadingIcon", "checkedIcon", "uncheckedIcon", "label", "description", "defaultValue", "trueValue", "falseValue", "autofocus", "ui"],
|
|
81
81
|
family: "NuxtUIInput"
|
|
82
82
|
});
|
|
83
83
|
export const nuxtUITextareaDefinition = createInput(FUTextarea, {
|
|
@@ -17,11 +17,11 @@ import FUSlider from "../../../runtime/components/inputs/FUSlider.vue";
|
|
|
17
17
|
import FUSwitch from "../../../runtime/components/inputs/FUSwitch.vue";
|
|
18
18
|
import FUTextarea from "../../../runtime/components/inputs/FUTextarea.vue";
|
|
19
19
|
export const nuxtUICheckboxDefinition = createInput(FUCheckbox, {
|
|
20
|
-
props: ["label", "description", "color", "variant", "size", "indicator", "icon", "indeterminateIcon", "autofocus", "ui"],
|
|
20
|
+
props: ["label", "description", "color", "variant", "size", "indicator", "icon", "indeterminateIcon", "trueValue", "falseValue", "autofocus", "ui"],
|
|
21
21
|
family: "NuxtUIInput"
|
|
22
22
|
});
|
|
23
23
|
export const nuxtUICheckboxGroupDefinition = createInput(FUCheckboxGroup, {
|
|
24
|
-
props: ["options", "legend", "valueKey", "labelKey", "descriptionKey", "size", "variant", "orientation", "loop", "color", "indicator", "icon", "ui", "items"],
|
|
24
|
+
props: ["options", "legend", "valueKey", "labelKey", "descriptionKey", "size", "variant", "orientation", "loop", "name", "color", "indicator", "icon", "ui", "items"],
|
|
25
25
|
family: "NuxtUIInput"
|
|
26
26
|
});
|
|
27
27
|
export const nuxtUIColorPickerDefinition = createInput(FUColorPicker, {
|
|
@@ -37,15 +37,15 @@ export const nuxtUIInputDateDefinition = createInput(FUInputDate, {
|
|
|
37
37
|
family: "NuxtUIInput"
|
|
38
38
|
});
|
|
39
39
|
export const nuxtUIInputMenuDefinition = createInput(FUInputMenu, {
|
|
40
|
-
props: ["options", "inputType", "placeholder", "color", "variant", "size", "autofocus", "autofocusDelay", "trailingIcon", "selectedIcon", "deleteIcon", "clear", "clearIcon", "arrow", "portal", "virtualize", "valueKey", "labelKey", "descriptionKey", "multiple", "highlight", "fixed", "createItem", "filterFields", "ignoreFilter", "defaultOpen", "resetSearchTermOnBlur", "resetSearchTermOnSelect", "resetModelValueOnClear", "highlightOnHover", "openOnClick", "openOnFocus", "icon", "leading", "leadingIcon", "trailing", "loading", "loadingIcon", "list", "autocomplete", "searchTerm", "ui"],
|
|
40
|
+
props: ["options", "inputType", "placeholder", "color", "variant", "size", "autofocus", "autofocusDelay", "trailingIcon", "selectedIcon", "deleteIcon", "clear", "clearIcon", "arrow", "portal", "virtualize", "content", "mode", "by", "open", "valueKey", "labelKey", "descriptionKey", "multiple", "highlight", "fixed", "createItem", "filterFields", "ignoreFilter", "defaultOpen", "resetSearchTermOnBlur", "resetSearchTermOnSelect", "resetModelValueOnClear", "highlightOnHover", "openOnClick", "openOnFocus", "icon", "leading", "leadingIcon", "trailing", "loading", "loadingIcon", "list", "autocomplete", "searchTerm", "ui"],
|
|
41
41
|
family: "NuxtUIInput"
|
|
42
42
|
});
|
|
43
43
|
export const nuxtUIInputNumberDefinition = createInput(FUInputNumber, {
|
|
44
|
-
props: ["placeholder", "color", "variant", "size", "highlight", "fixed", "orientation", "increment", "incrementIcon", "incrementDisabled", "decrement", "decrementIcon", "decrementDisabled", "autofocus", "autofocusDelay", "min", "max", "step", "stepSnapping", "formatOptions", "disableWheelChange", "invertWheelChange", "focusOnChange", "list", "autocomplete", "ui"],
|
|
44
|
+
props: ["placeholder", "color", "variant", "size", "highlight", "fixed", "orientation", "increment", "incrementIcon", "incrementDisabled", "decrement", "decrementIcon", "decrementDisabled", "autofocus", "autofocusDelay", "min", "max", "step", "stepSnapping", "formatOptions", "disableWheelChange", "invertWheelChange", "focusOnChange", "locale", "list", "autocomplete", "ui"],
|
|
45
45
|
family: "NuxtUIInput"
|
|
46
46
|
});
|
|
47
47
|
export const nuxtUIInputTagsDefinition = createInput(FUInputTags, {
|
|
48
|
-
props: ["placeholder", "maxLength", "color", "variant", "size", "autofocus", "autofocusDelay", "deleteIcon", "highlight", "fixed", "addOnPaste", "addOnTab", "addOnBlur", "duplicate", "
|
|
48
|
+
props: ["placeholder", "maxLength", "color", "variant", "size", "autofocus", "autofocusDelay", "deleteIcon", "highlight", "fixed", "addOnPaste", "addOnTab", "addOnBlur", "duplicate", "delimiter", "max", "convertValue", "displayValue", "icon", "avatar", "leading", "leadingIcon", "trailing", "trailingIcon", "loading", "loadingIcon", "list", "autocomplete", "ui"],
|
|
49
49
|
family: "NuxtUIInput"
|
|
50
50
|
});
|
|
51
51
|
export const nuxtUIInputTimeDefinition = createInput(FUInputTime, {
|
|
@@ -53,11 +53,11 @@ export const nuxtUIInputTimeDefinition = createInput(FUInputTime, {
|
|
|
53
53
|
family: "NuxtUIInput"
|
|
54
54
|
});
|
|
55
55
|
export const nuxtUIListboxDefinition = createInput(FUListbox, {
|
|
56
|
-
props: ["options", "as", "size", "by", "orientation", "selectionBehavior", "disabled", "defaultValue", "multiple", "valueKey", "labelKey", "descriptionKey", "loading", "loadingIcon", "filter", "filterFields", "ignoreFilter", "selectedIcon", "virtualize", "highlight", "highlightOnHover", "autofocus", "autofocusDelay", "searchTerm", "ui", "displayMode", "transferLeftHeaderText", "transferRightHeaderText", "transferAll", "transferHeaderClass"],
|
|
56
|
+
props: ["options", "as", "color", "size", "by", "orientation", "selectionBehavior", "disabled", "defaultValue", "multiple", "valueKey", "labelKey", "descriptionKey", "loading", "loadingIcon", "filter", "filterFields", "ignoreFilter", "selectedIcon", "virtualize", "highlight", "highlightOnHover", "autofocus", "autofocusDelay", "searchTerm", "ui", "displayMode", "transferLeftHeaderText", "transferRightHeaderText", "transferAll", "transferHeaderClass"],
|
|
57
57
|
family: "NuxtUIInput"
|
|
58
58
|
});
|
|
59
59
|
export const nuxtUIPinInputDefinition = createInput(FUPinInput, {
|
|
60
|
-
props: ["color", "variant", "size", "length", "autofocus", "autofocusDelay", "highlight", "fixed", "defaultValue", "mask", "otp", "placeholder", "ui"],
|
|
60
|
+
props: ["color", "variant", "size", "length", "autofocus", "autofocusDelay", "highlight", "fixed", "defaultValue", "mask", "otp", "separator", "type", "placeholder", "ui"],
|
|
61
61
|
family: "NuxtUIInput"
|
|
62
62
|
});
|
|
63
63
|
export const nuxtUIRadioGroupDefinition = createInput(FURadioGroup, {
|
|
@@ -65,11 +65,11 @@ export const nuxtUIRadioGroupDefinition = createInput(FURadioGroup, {
|
|
|
65
65
|
family: "NuxtUIInput"
|
|
66
66
|
});
|
|
67
67
|
export const nuxtUISelectDefinition = createInput(FUSelect, {
|
|
68
|
-
props: ["options", "placeholder", "color", "variant", "size", "selectedIcon", "arrow", "portal", "valueKey", "labelKey", "descriptionKey", "defaultValue", "multiple", "highlight", "fixed", "autofocus", "autofocusDelay", "open", "defaultOpen", "autocomplete", "icon", "avatar", "leading", "leadingIcon", "trailing", "trailingIcon", "loading", "loadingIcon", "ui"],
|
|
68
|
+
props: ["options", "placeholder", "color", "variant", "size", "selectedIcon", "arrow", "portal", "content", "valueKey", "labelKey", "descriptionKey", "defaultValue", "multiple", "highlight", "fixed", "autofocus", "autofocusDelay", "open", "defaultOpen", "autocomplete", "icon", "avatar", "leading", "leadingIcon", "trailing", "trailingIcon", "loading", "loadingIcon", "ui"],
|
|
69
69
|
family: "NuxtUIInput"
|
|
70
70
|
});
|
|
71
71
|
export const nuxtUISelectMenuDefinition = createInput(FUSelectMenu, {
|
|
72
|
-
props: ["options", "placeholder", "searchInput", "color", "variant", "icon", "avatar", "leading", "leadingIcon", "trailing", "trailingIcon", "loading", "loadingIcon", "selectedIcon", "clear", "clearIcon", "arrow", "portal", "virtualize", "valueKey", "labelKey", "descriptionKey", "defaultValue", "multiple", "highlight", "fixed", "createItem", "filterFields", "ignoreFilter", "autofocus", "autofocusDelay", "open", "defaultOpen", "resetSearchTermOnBlur", "resetSearchTermOnSelect", "resetModelValueOnClear", "highlightOnHover", "searchTerm", "ui"],
|
|
72
|
+
props: ["options", "placeholder", "searchInput", "color", "variant", "size", "icon", "avatar", "leading", "leadingIcon", "trailing", "trailingIcon", "loading", "loadingIcon", "selectedIcon", "clear", "clearIcon", "arrow", "portal", "virtualize", "content", "by", "valueKey", "labelKey", "descriptionKey", "defaultValue", "multiple", "highlight", "fixed", "createItem", "filterFields", "ignoreFilter", "autofocus", "autofocusDelay", "open", "defaultOpen", "resetSearchTermOnBlur", "resetSearchTermOnSelect", "resetModelValueOnClear", "highlightOnHover", "searchTerm", "ui"],
|
|
73
73
|
family: "NuxtUIInput"
|
|
74
74
|
});
|
|
75
75
|
export const nuxtUISliderDefinition = createInput(FUSlider, {
|
|
@@ -77,7 +77,7 @@ export const nuxtUISliderDefinition = createInput(FUSlider, {
|
|
|
77
77
|
family: "NuxtUIInput"
|
|
78
78
|
});
|
|
79
79
|
export const nuxtUISwitchDefinition = createInput(FUSwitch, {
|
|
80
|
-
props: ["color", "size", "loading", "loadingIcon", "checkedIcon", "uncheckedIcon", "label", "description", "defaultValue", "autofocus", "ui"],
|
|
80
|
+
props: ["color", "size", "loading", "loadingIcon", "checkedIcon", "uncheckedIcon", "label", "description", "defaultValue", "trueValue", "falseValue", "autofocus", "ui"],
|
|
81
81
|
family: "NuxtUIInput"
|
|
82
82
|
});
|
|
83
83
|
export const nuxtUITextareaDefinition = createInput(FUTextarea, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/nuxt-ui-formkit",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "FormKit integration for Nuxt UI - Seamlessly connect FormKit form handling with Nuxt UI components",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Tom",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"dev": "npm run dev:prepare && nuxi dev playground",
|
|
79
79
|
"dev:build": "nuxi build playground",
|
|
80
80
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
81
|
-
"release": "npm run lint && npm run test && npm run prepack && changelogen --
|
|
81
|
+
"release": "npm run lint && npm run test && npm run prepack && changelogen --minor --release && npm publish --access=public && git push --follow-tags",
|
|
82
82
|
"lint": "eslint .",
|
|
83
83
|
"test": "vitest run",
|
|
84
84
|
"test:watch": "vitest watch",
|
|
@@ -88,40 +88,49 @@
|
|
|
88
88
|
"docs:preview": "vitepress preview docs"
|
|
89
89
|
},
|
|
90
90
|
"dependencies": {
|
|
91
|
-
"@formkit/addons": "^2.
|
|
92
|
-
"@formkit/nuxt": "^2.
|
|
93
|
-
"@nuxt/kit": "4.4.
|
|
94
|
-
"@nuxt/ui": "^4.
|
|
95
|
-
"@vue/compiler-dom": "^3.5.
|
|
91
|
+
"@formkit/addons": "^2.1.0",
|
|
92
|
+
"@formkit/nuxt": "^2.1.0",
|
|
93
|
+
"@nuxt/kit": "4.4.8",
|
|
94
|
+
"@nuxt/ui": "^4.9.0",
|
|
95
|
+
"@vue/compiler-dom": "^3.5.38"
|
|
96
|
+
},
|
|
97
|
+
"peerDependencies": {
|
|
98
|
+
"vue-i18n": "^11.0.0"
|
|
99
|
+
},
|
|
100
|
+
"peerDependenciesMeta": {
|
|
101
|
+
"vue-i18n": {
|
|
102
|
+
"optional": true
|
|
103
|
+
}
|
|
96
104
|
},
|
|
97
105
|
"devDependencies": {
|
|
106
|
+
"@codemirror/lang-json": "^6.0.2",
|
|
107
|
+
"@codemirror/state": "^6.6.0",
|
|
108
|
+
"@codemirror/theme-one-dark": "^6.1.3",
|
|
109
|
+
"@codemirror/view": "^6.43.1",
|
|
98
110
|
"@iconify-json/heroicons": "^1.2.3",
|
|
99
|
-
"@iconify-json/lucide": "^1.2.
|
|
100
|
-
"@iconify-json/simple-icons": "^1.2.
|
|
111
|
+
"@iconify-json/lucide": "^1.2.114",
|
|
112
|
+
"@iconify-json/simple-icons": "^1.2.86",
|
|
101
113
|
"@nuxt/devtools": "4.0.0-alpha.7",
|
|
102
|
-
"@nuxt/eslint-config": "^1.
|
|
114
|
+
"@nuxt/eslint-config": "^1.16.0",
|
|
103
115
|
"@nuxt/module-builder": "^1.0.2",
|
|
104
|
-
"@nuxt/schema": "4.4.
|
|
116
|
+
"@nuxt/schema": "4.4.8",
|
|
105
117
|
"@nuxt/test-utils": "^4.0.3",
|
|
106
118
|
"@types/node": "latest",
|
|
107
119
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
108
120
|
"changelogen": "^0.6.2",
|
|
109
|
-
"
|
|
121
|
+
"codemirror": "^6.0.2",
|
|
122
|
+
"eslint": "^10.5.0",
|
|
110
123
|
"jsdom": "^29.1.1",
|
|
111
124
|
"mkdist": "^2.4.1",
|
|
112
|
-
"nuxt": "4.4.
|
|
125
|
+
"nuxt": "4.4.8",
|
|
113
126
|
"sass-embedded": "^1.100.0",
|
|
114
127
|
"typescript": "~6.0.3",
|
|
115
128
|
"unbuild": "^3.6.1",
|
|
116
129
|
"vitepress": "2.0.0-alpha.17",
|
|
117
|
-
"vitest": "^4.1.
|
|
118
|
-
"vue": "^3.5.
|
|
119
|
-
"vue-
|
|
120
|
-
"
|
|
121
|
-
"@codemirror/state": "^6.6.0",
|
|
122
|
-
"@codemirror/theme-one-dark": "^6.1.3",
|
|
123
|
-
"@codemirror/view": "^6.43.0",
|
|
124
|
-
"codemirror": "^6.0.2"
|
|
130
|
+
"vitest": "^4.1.9",
|
|
131
|
+
"vue": "^3.5.38",
|
|
132
|
+
"vue-i18n": "^11.4.6",
|
|
133
|
+
"vue-tsc": "^3.3.5"
|
|
125
134
|
},
|
|
126
135
|
"packageManager": "pnpm@11.1.2+sha512.415a1cc25974731e75455c1468371be74c5aa5fb7621b50d4056d222451609f11412f23fd602e6169f1e060466641f798597e1be961a10688836a67b16569499"
|
|
127
136
|
}
|