@sfxcode/formkit-primevue 3.2.3 → 3.2.5
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/components/FormKitDataEdit.vue +57 -72
- package/dist/components/FormKitDataView.vue +27 -35
- package/dist/components/FormKitDebug.vue +7 -12
- package/dist/components/FormKitIcon.vue +6 -13
- package/dist/components/FormKitPrefix.vue +3 -3
- package/dist/components/FormKitSuffix.vue +3 -3
- package/dist/components/PrimeAutoComplete.vue +47 -98
- package/dist/components/PrimeCascadeSelect.vue +7 -26
- package/dist/components/PrimeCheckbox.vue +9 -29
- package/dist/components/PrimeColorPicker.vue +7 -22
- package/dist/components/PrimeDatePicker.vue +15 -73
- package/dist/components/PrimeInputMask.vue +10 -29
- package/dist/components/PrimeInputNumber.vue +22 -56
- package/dist/components/PrimeInputOtp.vue +7 -24
- package/dist/components/PrimeInputText.vue +10 -25
- package/dist/components/PrimeKnob.vue +12 -37
- package/dist/components/PrimeListbox.vue +7 -39
- package/dist/components/PrimeMultiSelect.vue +7 -52
- package/dist/components/PrimeOutputBoolean.vue +16 -23
- package/dist/components/PrimeOutputDate.vue +21 -31
- package/dist/components/PrimeOutputDuration.vue +11 -17
- package/dist/components/PrimeOutputLink.vue +17 -24
- package/dist/components/PrimeOutputList.vue +18 -29
- package/dist/components/PrimeOutputNumber.vue +24 -37
- package/dist/components/PrimeOutputReference.vue +21 -28
- package/dist/components/PrimeOutputText.vue +22 -37
- package/dist/components/PrimePassword.vue +7 -31
- package/dist/components/PrimeRadioButton.vue +7 -23
- package/dist/components/PrimeRating.vue +7 -22
- package/dist/components/PrimeSelect.vue +7 -49
- package/dist/components/PrimeSelectButton.vue +7 -27
- package/dist/components/PrimeSlider.vue +10 -28
- package/dist/components/PrimeTextarea.vue +7 -23
- package/dist/components/PrimeToggleButton.vue +7 -25
- package/dist/components/PrimeToggleSwitch.vue +8 -23
- package/dist/components/PrimeTreeSelect.vue +7 -30
- package/dist/sass/formkit-primevue.scss +0 -5
- package/dist/style.css +1 -1
- package/package.json +19 -17
- package/dist/components/FormKitDataEdit.d.vue.ts +0 -180
- package/dist/components/FormKitDataEdit.vue.d.ts +0 -180
- package/dist/components/FormKitDataView.d.vue.ts +0 -73
- package/dist/components/FormKitDataView.vue.d.ts +0 -73
- package/dist/components/FormKitDebug.d.vue.ts +0 -34
- package/dist/components/FormKitDebug.vue.d.ts +0 -34
- package/dist/components/FormKitIcon.d.vue.ts +0 -39
- package/dist/components/FormKitIcon.vue.d.ts +0 -39
- package/dist/components/FormKitPrefix.d.vue.ts +0 -7
- package/dist/components/FormKitPrefix.vue.d.ts +0 -7
- package/dist/components/FormKitSuffix.d.vue.ts +0 -7
- package/dist/components/FormKitSuffix.vue.d.ts +0 -7
- package/dist/components/PrimeAutoComplete.d.vue.ts +0 -31
- package/dist/components/PrimeAutoComplete.vue.d.ts +0 -31
- package/dist/components/PrimeCascadeSelect.d.vue.ts +0 -28
- package/dist/components/PrimeCascadeSelect.vue.d.ts +0 -28
- package/dist/components/PrimeCheckbox.d.vue.ts +0 -27
- package/dist/components/PrimeCheckbox.vue.d.ts +0 -27
- package/dist/components/PrimeColorPicker.d.vue.ts +0 -24
- package/dist/components/PrimeColorPicker.vue.d.ts +0 -24
- package/dist/components/PrimeDatePicker.d.vue.ts +0 -63
- package/dist/components/PrimeDatePicker.vue.d.ts +0 -63
- package/dist/components/PrimeInputMask.d.vue.ts +0 -28
- package/dist/components/PrimeInputMask.vue.d.ts +0 -28
- package/dist/components/PrimeInputNumber.d.vue.ts +0 -36
- package/dist/components/PrimeInputNumber.vue.d.ts +0 -36
- package/dist/components/PrimeInputOtp.d.vue.ts +0 -26
- package/dist/components/PrimeInputOtp.vue.d.ts +0 -26
- package/dist/components/PrimeInputText.d.vue.ts +0 -24
- package/dist/components/PrimeInputText.vue.d.ts +0 -24
- package/dist/components/PrimeKnob.d.vue.ts +0 -31
- package/dist/components/PrimeKnob.vue.d.ts +0 -31
- package/dist/components/PrimeListbox.d.vue.ts +0 -42
- package/dist/components/PrimeListbox.vue.d.ts +0 -42
- package/dist/components/PrimeMultiSelect.d.vue.ts +0 -53
- package/dist/components/PrimeMultiSelect.vue.d.ts +0 -53
- package/dist/components/PrimeOutputBoolean.d.vue.ts +0 -16
- package/dist/components/PrimeOutputBoolean.vue.d.ts +0 -16
- package/dist/components/PrimeOutputDate.d.vue.ts +0 -16
- package/dist/components/PrimeOutputDate.vue.d.ts +0 -16
- package/dist/components/PrimeOutputDuration.d.vue.ts +0 -16
- package/dist/components/PrimeOutputDuration.vue.d.ts +0 -16
- package/dist/components/PrimeOutputLink.d.vue.ts +0 -16
- package/dist/components/PrimeOutputLink.vue.d.ts +0 -16
- package/dist/components/PrimeOutputList.d.vue.ts +0 -19
- package/dist/components/PrimeOutputList.vue.d.ts +0 -19
- package/dist/components/PrimeOutputNumber.d.vue.ts +0 -16
- package/dist/components/PrimeOutputNumber.vue.d.ts +0 -16
- package/dist/components/PrimeOutputReference.d.vue.ts +0 -16
- package/dist/components/PrimeOutputReference.vue.d.ts +0 -16
- package/dist/components/PrimeOutputText.d.vue.ts +0 -21
- package/dist/components/PrimeOutputText.vue.d.ts +0 -21
- package/dist/components/PrimePassword.d.vue.ts +0 -33
- package/dist/components/PrimePassword.vue.d.ts +0 -33
- package/dist/components/PrimeRadioButton.d.vue.ts +0 -28
- package/dist/components/PrimeRadioButton.vue.d.ts +0 -28
- package/dist/components/PrimeRating.d.vue.ts +0 -24
- package/dist/components/PrimeRating.vue.d.ts +0 -24
- package/dist/components/PrimeSelect.d.vue.ts +0 -50
- package/dist/components/PrimeSelect.vue.d.ts +0 -50
- package/dist/components/PrimeSelectButton.d.vue.ts +0 -28
- package/dist/components/PrimeSelectButton.vue.d.ts +0 -28
- package/dist/components/PrimeSlider.d.vue.ts +0 -26
- package/dist/components/PrimeSlider.vue.d.ts +0 -26
- package/dist/components/PrimeTextarea.d.vue.ts +0 -25
- package/dist/components/PrimeTextarea.vue.d.ts +0 -25
- package/dist/components/PrimeToggleButton.d.vue.ts +0 -26
- package/dist/components/PrimeToggleButton.vue.d.ts +0 -26
- package/dist/components/PrimeToggleSwitch.d.vue.ts +0 -23
- package/dist/components/PrimeToggleSwitch.vue.d.ts +0 -23
- package/dist/components/PrimeTreeSelect.d.vue.ts +0 -32
- package/dist/components/PrimeTreeSelect.vue.d.ts +0 -32
|
@@ -1,33 +1,26 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import FormKitIcon from './FormKitIcon.vue'
|
|
8
|
-
import FormKitPrefix from './FormKitPrefix.vue'
|
|
9
|
-
import FormKitSuffix from './FormKitSuffix.vue'
|
|
10
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import { useFormKitSection } from "../composables";
|
|
4
|
+
import FormKitIcon from "./FormKitIcon.vue";
|
|
5
|
+
import FormKitPrefix from "./FormKitPrefix.vue";
|
|
6
|
+
import FormKitSuffix from "./FormKitSuffix.vue";
|
|
11
7
|
const props = defineProps({
|
|
12
8
|
context: {
|
|
13
|
-
type: Object
|
|
14
|
-
required: true
|
|
15
|
-
}
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
const { hasPrefix, hasPrefixIcon, hasSuffix, hasSuffixIcon } = useFormKitSection(props.context)
|
|
19
|
-
|
|
9
|
+
type: Object,
|
|
10
|
+
required: true
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
const { hasPrefix, hasPrefixIcon, hasSuffix, hasSuffixIcon } = useFormKitSection(props.context);
|
|
20
14
|
const url = computed(() => {
|
|
21
15
|
if (props.context?._value)
|
|
22
|
-
return props.context?._value.indexOf(
|
|
16
|
+
return props.context?._value.indexOf("http") > -1 ? props.context?._value : `https://${props.context?._value}`;
|
|
23
17
|
else
|
|
24
|
-
return
|
|
25
|
-
})
|
|
26
|
-
|
|
18
|
+
return "";
|
|
19
|
+
});
|
|
27
20
|
const title = computed(() => {
|
|
28
|
-
const value = props.context?._value ??
|
|
29
|
-
return props.context?.title ?? value
|
|
30
|
-
})
|
|
21
|
+
const value = props.context?._value ?? "";
|
|
22
|
+
return props.context?.title ?? value;
|
|
23
|
+
});
|
|
31
24
|
</script>
|
|
32
25
|
|
|
33
26
|
<template>
|
|
@@ -1,37 +1,26 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import FormKitIcon from './FormKitIcon.vue'
|
|
8
|
-
import FormKitPrefix from './FormKitPrefix.vue'
|
|
9
|
-
import FormKitSuffix from './FormKitSuffix.vue'
|
|
10
|
-
|
|
11
|
-
export interface PrimeOutputListProps {
|
|
12
|
-
convertValue?: (array: []) => []
|
|
13
|
-
}
|
|
14
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import { useFormKitSection } from "../composables";
|
|
4
|
+
import FormKitIcon from "./FormKitIcon.vue";
|
|
5
|
+
import FormKitPrefix from "./FormKitPrefix.vue";
|
|
6
|
+
import FormKitSuffix from "./FormKitSuffix.vue";
|
|
15
7
|
const props = defineProps({
|
|
16
8
|
context: {
|
|
17
|
-
type: Object
|
|
18
|
-
required: true
|
|
19
|
-
}
|
|
20
|
-
})
|
|
21
|
-
|
|
9
|
+
type: Object,
|
|
10
|
+
required: true
|
|
11
|
+
}
|
|
12
|
+
});
|
|
22
13
|
const listStyle = computed(() => {
|
|
23
|
-
return props.context?.listStyle ||
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
const { hasPrefix, hasPrefixIcon, hasSuffix, hasSuffixIcon } = useFormKitSection(props.context)
|
|
27
|
-
|
|
14
|
+
return props.context?.listStyle || "span";
|
|
15
|
+
});
|
|
16
|
+
const { hasPrefix, hasPrefixIcon, hasSuffix, hasSuffixIcon } = useFormKitSection(props.context);
|
|
28
17
|
const getListValues = computed(() => {
|
|
29
|
-
const values = Array.isArray(props.context?._value) ? props.context._value : []
|
|
30
|
-
if (typeof props.context?.convertValue ===
|
|
31
|
-
return props.context.convertValue([...values])
|
|
18
|
+
const values = Array.isArray(props.context?._value) ? props.context._value : [];
|
|
19
|
+
if (typeof props.context?.convertValue === "function") {
|
|
20
|
+
return props.context.convertValue([...values]);
|
|
32
21
|
}
|
|
33
|
-
return values
|
|
34
|
-
})
|
|
22
|
+
return values;
|
|
23
|
+
});
|
|
35
24
|
</script>
|
|
36
25
|
|
|
37
26
|
<template>
|
|
@@ -1,49 +1,36 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { useFormKitSection } from '../composables'
|
|
9
|
-
import FormKitIcon from './FormKitIcon.vue'
|
|
10
|
-
import FormKitPrefix from './FormKitPrefix.vue'
|
|
11
|
-
import FormKitSuffix from './FormKitSuffix.vue'
|
|
12
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import { useI18n } from "vue-i18n";
|
|
4
|
+
import { useFormKitSection } from "../composables";
|
|
5
|
+
import FormKitIcon from "./FormKitIcon.vue";
|
|
6
|
+
import FormKitPrefix from "./FormKitPrefix.vue";
|
|
7
|
+
import FormKitSuffix from "./FormKitSuffix.vue";
|
|
13
8
|
const props = defineProps({
|
|
14
9
|
context: {
|
|
15
|
-
type: Object
|
|
16
|
-
required: true
|
|
17
|
-
}
|
|
18
|
-
})
|
|
19
|
-
|
|
20
|
-
const {
|
|
21
|
-
|
|
22
|
-
const { n } = useI18n()
|
|
23
|
-
|
|
10
|
+
type: Object,
|
|
11
|
+
required: true
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
const { hasPrefix, hasPrefixIcon, hasSuffix, hasSuffixIcon } = useFormKitSection(props.context);
|
|
15
|
+
const { n } = useI18n();
|
|
24
16
|
const converted = computed(() => {
|
|
25
|
-
const value = props?.context?._value
|
|
17
|
+
const value = props?.context?._value;
|
|
26
18
|
if (value) {
|
|
27
|
-
let result =
|
|
28
|
-
const format = props?.context?.attrs?.format ? props?.context?.attrs?.format :
|
|
19
|
+
let result = "";
|
|
20
|
+
const format = props?.context?.attrs?.format ? props?.context?.attrs?.format : "short";
|
|
29
21
|
try {
|
|
30
|
-
result = n(value, format)
|
|
31
|
-
}
|
|
32
|
-
// eslint-disable-next-line unused-imports/no-unused-vars
|
|
33
|
-
catch (e) {
|
|
22
|
+
result = n(value, format);
|
|
23
|
+
} catch (e) {
|
|
34
24
|
try {
|
|
35
|
-
result = n(+value, format)
|
|
36
|
-
}
|
|
37
|
-
// eslint-disable-next-line unused-imports/no-unused-vars
|
|
38
|
-
catch (e) {
|
|
25
|
+
result = n(+value, format);
|
|
26
|
+
} catch (e2) {
|
|
39
27
|
}
|
|
40
28
|
}
|
|
41
|
-
return result
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
return ''
|
|
29
|
+
return result;
|
|
30
|
+
} else {
|
|
31
|
+
return "";
|
|
45
32
|
}
|
|
46
|
-
})
|
|
33
|
+
});
|
|
47
34
|
</script>
|
|
48
35
|
|
|
49
36
|
<template>
|
|
@@ -1,35 +1,28 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import FormKitIcon from './FormKitIcon.vue'
|
|
8
|
-
import FormKitPrefix from './FormKitPrefix.vue'
|
|
9
|
-
import FormKitSuffix from './FormKitSuffix.vue'
|
|
10
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import { useFormKitSection } from "../composables";
|
|
4
|
+
import FormKitIcon from "./FormKitIcon.vue";
|
|
5
|
+
import FormKitPrefix from "./FormKitPrefix.vue";
|
|
6
|
+
import FormKitSuffix from "./FormKitSuffix.vue";
|
|
11
7
|
const props = defineProps({
|
|
12
8
|
context: {
|
|
13
|
-
type: Object
|
|
14
|
-
required: true
|
|
15
|
-
}
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
const { hasPrefix, hasPrefixIcon, hasSuffix, hasSuffixIcon } = useFormKitSection(props.context)
|
|
19
|
-
|
|
9
|
+
type: Object,
|
|
10
|
+
required: true
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
const { hasPrefix, hasPrefixIcon, hasSuffix, hasSuffixIcon } = useFormKitSection(props.context);
|
|
20
14
|
const reference = computed(() => {
|
|
21
|
-
const value = props.context?._value ??
|
|
22
|
-
let result = props.context?.reference ? `${props.context?.reference}` :
|
|
23
|
-
if (!props.context?.internal && !result.includes(
|
|
24
|
-
result = `https://${result}
|
|
25
|
-
return result.replace(/\{\{.*\}\}/, value)
|
|
26
|
-
})
|
|
27
|
-
|
|
15
|
+
const value = props.context?._value ?? "";
|
|
16
|
+
let result = props.context?.reference ? `${props.context?.reference}` : "reference-must-be-set";
|
|
17
|
+
if (!props.context?.internal && !result.includes("http"))
|
|
18
|
+
result = `https://${result}`;
|
|
19
|
+
return result.replace(/\{\{.*\}\}/, value);
|
|
20
|
+
});
|
|
28
21
|
const title = computed(() => {
|
|
29
|
-
const value = props.context?._value ??
|
|
30
|
-
const result = props.context?.title ?? value
|
|
31
|
-
return `${result}`.replace(/\{\{.*\}\}/, value)
|
|
32
|
-
})
|
|
22
|
+
const value = props.context?._value ?? "";
|
|
23
|
+
const result = props.context?.title ?? value;
|
|
24
|
+
return `${result}`.replace(/\{\{.*\}\}/, value);
|
|
25
|
+
});
|
|
33
26
|
</script>
|
|
34
27
|
|
|
35
28
|
<template>
|
|
@@ -1,47 +1,32 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import FormKitIcon from './FormKitIcon.vue'
|
|
9
|
-
import FormKitPrefix from './FormKitPrefix.vue'
|
|
10
|
-
import FormKitSuffix from './FormKitSuffix.vue'
|
|
11
|
-
|
|
12
|
-
export interface FormKitOutputTextProps {
|
|
13
|
-
html?: boolean
|
|
14
|
-
isTranslationKey?: boolean
|
|
15
|
-
convertValue?: (value: string) => string
|
|
16
|
-
}
|
|
17
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import { useI18n } from "vue-i18n";
|
|
4
|
+
import { useFormKitSection } from "../composables";
|
|
5
|
+
import FormKitIcon from "./FormKitIcon.vue";
|
|
6
|
+
import FormKitPrefix from "./FormKitPrefix.vue";
|
|
7
|
+
import FormKitSuffix from "./FormKitSuffix.vue";
|
|
18
8
|
const props = defineProps({
|
|
19
9
|
context: {
|
|
20
|
-
type: Object
|
|
21
|
-
required: true
|
|
22
|
-
}
|
|
23
|
-
})
|
|
24
|
-
|
|
10
|
+
type: Object,
|
|
11
|
+
required: true
|
|
12
|
+
}
|
|
13
|
+
});
|
|
25
14
|
const textValue = computed(() => {
|
|
26
|
-
const value = props.context?._value
|
|
27
|
-
const { t } = useI18n()
|
|
15
|
+
const value = props.context?._value;
|
|
16
|
+
const { t } = useI18n();
|
|
28
17
|
if (value) {
|
|
29
18
|
if (props.context?.isTranslationKey) {
|
|
30
|
-
return t(value)
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
else {
|
|
36
|
-
return value
|
|
19
|
+
return t(value);
|
|
20
|
+
} else if (typeof props.context?.convertValue === "function") {
|
|
21
|
+
return props.context?.convertValue(value);
|
|
22
|
+
} else {
|
|
23
|
+
return value;
|
|
37
24
|
}
|
|
25
|
+
} else {
|
|
26
|
+
return "";
|
|
38
27
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
})
|
|
43
|
-
|
|
44
|
-
const { hasPrefix, hasPrefixIcon, hasSuffix, hasSuffixIcon } = useFormKitSection(props.context)
|
|
28
|
+
});
|
|
29
|
+
const { hasPrefix, hasPrefixIcon, hasSuffix, hasSuffixIcon } = useFormKitSection(props.context);
|
|
45
30
|
</script>
|
|
46
31
|
|
|
47
32
|
<template>
|
|
@@ -1,36 +1,12 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import
|
|
3
|
-
import type { PasswordProps } from 'primevue/password'
|
|
4
|
-
|
|
5
|
-
import type { PropType } from 'vue'
|
|
6
|
-
import { useFormKitInput } from '../composables'
|
|
7
|
-
|
|
8
|
-
export interface FormKitPrimePasswordProps {
|
|
9
|
-
mediumRegex?: PasswordProps['mediumRegex']
|
|
10
|
-
strongRegex?: PasswordProps['strongRegex']
|
|
11
|
-
promptLabel?: PasswordProps['promptLabel']
|
|
12
|
-
weakLabel?: PasswordProps['weakLabel']
|
|
13
|
-
mediumLabel?: PasswordProps['mediumLabel']
|
|
14
|
-
strongLabel?: PasswordProps['strongLabel']
|
|
15
|
-
maskIcon?: PasswordProps['maskIcon']
|
|
16
|
-
unmaskIcon?: PasswordProps['unmaskIcon']
|
|
17
|
-
pt?: PasswordProps['pt']
|
|
18
|
-
ptOptions?: PasswordProps['ptOptions']
|
|
19
|
-
unstyled?: PasswordProps['unstyled']
|
|
20
|
-
placeholder?: PasswordProps['placeholder']
|
|
21
|
-
feedback?: PasswordProps['feedback']
|
|
22
|
-
toggleMask?: PasswordProps['toggleMask']
|
|
23
|
-
size?: PasswordProps['size']
|
|
24
|
-
}
|
|
25
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useFormKitInput } from "../composables";
|
|
26
3
|
const props = defineProps({
|
|
27
4
|
context: {
|
|
28
|
-
type: Object
|
|
29
|
-
required: true
|
|
30
|
-
}
|
|
31
|
-
})
|
|
32
|
-
|
|
33
|
-
const { validSlotNames, unstyled, isInvalid, handleInput, handleBlur } = useFormKitInput(props.context)
|
|
5
|
+
type: Object,
|
|
6
|
+
required: true
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
const { validSlotNames, unstyled, isInvalid, handleInput, handleBlur } = useFormKitInput(props.context);
|
|
34
10
|
</script>
|
|
35
11
|
|
|
36
12
|
<template>
|
|
@@ -1,28 +1,12 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import
|
|
3
|
-
import type { RadioButtonProps } from 'primevue/radiobutton'
|
|
4
|
-
|
|
5
|
-
import type { PropType } from 'vue'
|
|
6
|
-
import { useFormKitInput } from '../composables'
|
|
7
|
-
|
|
8
|
-
export interface FormKitPrimeRadioButtonProps {
|
|
9
|
-
pt?: RadioButtonProps['pt']
|
|
10
|
-
ptOptions?: RadioButtonProps['ptOptions']
|
|
11
|
-
unstyled?: RadioButtonProps['unstyled']
|
|
12
|
-
size?: RadioButtonProps['size']
|
|
13
|
-
options?: { label: string, value: any }[]
|
|
14
|
-
optionsClass?: string
|
|
15
|
-
optionClass?: string
|
|
16
|
-
}
|
|
17
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useFormKitInput } from "../composables";
|
|
18
3
|
const props = defineProps({
|
|
19
4
|
context: {
|
|
20
|
-
type: Object
|
|
21
|
-
required: true
|
|
22
|
-
}
|
|
23
|
-
})
|
|
24
|
-
|
|
25
|
-
const { unstyled, isInvalid, handleChange, handleBlur } = useFormKitInput(props.context)
|
|
5
|
+
type: Object,
|
|
6
|
+
required: true
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
const { unstyled, isInvalid, handleChange, handleBlur } = useFormKitInput(props.context);
|
|
26
10
|
</script>
|
|
27
11
|
|
|
28
12
|
<template>
|
|
@@ -1,27 +1,12 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import
|
|
3
|
-
import type { RatingProps } from 'primevue/rating'
|
|
4
|
-
|
|
5
|
-
import type { PropType } from 'vue'
|
|
6
|
-
import { useFormKitInput } from '../composables'
|
|
7
|
-
|
|
8
|
-
export interface FormKitPrimeRatingProps {
|
|
9
|
-
unstyled?: RatingProps['unstyled']
|
|
10
|
-
stars?: RatingProps['stars']
|
|
11
|
-
onIcon?: RatingProps['onIcon']
|
|
12
|
-
offIcon?: RatingProps['offIcon']
|
|
13
|
-
ptOptions?: RatingProps['ptOptions']
|
|
14
|
-
pt?: RatingProps['pt']
|
|
15
|
-
}
|
|
16
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useFormKitInput } from "../composables";
|
|
17
3
|
const props = defineProps({
|
|
18
4
|
context: {
|
|
19
|
-
type: Object
|
|
20
|
-
required: true
|
|
21
|
-
}
|
|
22
|
-
})
|
|
23
|
-
|
|
24
|
-
const { validSlotNames, unstyled, isInvalid, handleInput, handleBlur } = useFormKitInput(props.context)
|
|
5
|
+
type: Object,
|
|
6
|
+
required: true
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
const { validSlotNames, unstyled, isInvalid, handleInput, handleBlur } = useFormKitInput(props.context);
|
|
25
10
|
</script>
|
|
26
11
|
|
|
27
12
|
<template>
|
|
@@ -1,54 +1,12 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import
|
|
3
|
-
import type { SelectProps } from 'primevue/select'
|
|
4
|
-
|
|
5
|
-
import type { PropType } from 'vue'
|
|
6
|
-
import { useFormKitInput } from '../composables'
|
|
7
|
-
|
|
8
|
-
export interface FormKitPrimeSelectProps {
|
|
9
|
-
options?: SelectProps['options']
|
|
10
|
-
optionLabel?: SelectProps['optionLabel']
|
|
11
|
-
optionValue?: SelectProps['optionValue']
|
|
12
|
-
optionDisabled?: SelectProps['optionDisabled']
|
|
13
|
-
optionGroupLabel?: SelectProps['optionGroupLabel']
|
|
14
|
-
optionGroupChildren?: SelectProps['optionGroupChildren']
|
|
15
|
-
scrollHeight?: SelectProps['scrollHeight']
|
|
16
|
-
filter?: SelectProps['filter']
|
|
17
|
-
filterPlaceholder?: SelectProps['filterPlaceholder']
|
|
18
|
-
filterLocale?: SelectProps['filterLocale']
|
|
19
|
-
filterMatchMode?: SelectProps['filterMatchMode']
|
|
20
|
-
filterFields?: SelectProps['filterFields']
|
|
21
|
-
editable?: SelectProps['editable']
|
|
22
|
-
placeholder?: SelectProps['placeholder']
|
|
23
|
-
dataKey?: SelectProps['dataKey']
|
|
24
|
-
showClear?: SelectProps['showClear']
|
|
25
|
-
overlayStyle?: SelectProps['overlayStyle']
|
|
26
|
-
overlayClass?: SelectProps['overlayClass']
|
|
27
|
-
appendTo?: SelectProps['appendTo']
|
|
28
|
-
resetFilterOnHide?: SelectProps['resetFilterOnHide']
|
|
29
|
-
virtualScrollerOptions?: SelectProps['virtualScrollerOptions']
|
|
30
|
-
autoOptionFocus?: SelectProps['autoOptionFocus']
|
|
31
|
-
selectOnFocus?: SelectProps['selectOnFocus']
|
|
32
|
-
filterMessage?: SelectProps['filterMessage']
|
|
33
|
-
selectionMessage?: SelectProps['selectionMessage']
|
|
34
|
-
emptySelectionMessage?: SelectProps['emptySelectionMessage']
|
|
35
|
-
emptyFilterMessage?: SelectProps['emptyFilterMessage']
|
|
36
|
-
emptyMessage?: SelectProps['emptyMessage']
|
|
37
|
-
pt?: SelectProps['pt']
|
|
38
|
-
ptOptions?: SelectProps['ptOptions']
|
|
39
|
-
unstyled?: SelectProps['unstyled']
|
|
40
|
-
size?: SelectProps['size']
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useFormKitInput } from "../composables";
|
|
44
3
|
const props = defineProps({
|
|
45
4
|
context: {
|
|
46
|
-
type: Object
|
|
47
|
-
required: true
|
|
48
|
-
}
|
|
49
|
-
})
|
|
50
|
-
|
|
51
|
-
const { validSlotNames, unstyled, isInvalid, handleInput, handleBlur } = useFormKitInput(props.context)
|
|
5
|
+
type: Object,
|
|
6
|
+
required: true
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
const { validSlotNames, unstyled, isInvalid, handleInput, handleBlur } = useFormKitInput(props.context);
|
|
52
10
|
</script>
|
|
53
11
|
|
|
54
12
|
<template>
|
|
@@ -1,32 +1,12 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import
|
|
3
|
-
import type { SelectButtonProps } from 'primevue/selectbutton'
|
|
4
|
-
|
|
5
|
-
import type { PropType } from 'vue'
|
|
6
|
-
import { useFormKitInput } from '../composables'
|
|
7
|
-
|
|
8
|
-
export interface FormKitPrimeSelectButtonProps {
|
|
9
|
-
pt?: SelectButtonProps['pt']
|
|
10
|
-
ptOptions?: SelectButtonProps['ptOptions']
|
|
11
|
-
unstyled?: SelectButtonProps['unstyled']
|
|
12
|
-
optionLabel?: SelectButtonProps['optionLabel']
|
|
13
|
-
optionValue?: SelectButtonProps['optionValue']
|
|
14
|
-
optionDisabled?: SelectButtonProps['optionDisabled']
|
|
15
|
-
multiple?: SelectButtonProps['multiple']
|
|
16
|
-
dataKey?: SelectButtonProps['dataKey']
|
|
17
|
-
options?: SelectButtonProps['options']
|
|
18
|
-
size?: SelectButtonProps['size']
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useFormKitInput } from "../composables";
|
|
22
3
|
const props = defineProps({
|
|
23
4
|
context: {
|
|
24
|
-
type: Object
|
|
25
|
-
required: true
|
|
26
|
-
}
|
|
27
|
-
})
|
|
28
|
-
|
|
29
|
-
const { validSlotNames, unstyled, isInvalid, handleChange, handleBlur } = useFormKitInput(props.context)
|
|
5
|
+
type: Object,
|
|
6
|
+
required: true
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
const { validSlotNames, unstyled, isInvalid, handleChange, handleBlur } = useFormKitInput(props.context);
|
|
30
10
|
</script>
|
|
31
11
|
|
|
32
12
|
<template>
|
|
@@ -1,33 +1,15 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import
|
|
3
|
-
import type { SliderProps } from 'primevue/slider'
|
|
4
|
-
|
|
5
|
-
import type { PropType } from 'vue'
|
|
6
|
-
import { useFormKitInput } from '../composables'
|
|
7
|
-
|
|
8
|
-
export interface FormKitPrimeSliderProps {
|
|
9
|
-
pt?: SliderProps['pt']
|
|
10
|
-
ptOptions?: SliderProps['ptOptions']
|
|
11
|
-
unstyled?: SliderProps['unstyled']
|
|
12
|
-
min?: SliderProps['min']
|
|
13
|
-
max?: SliderProps['max']
|
|
14
|
-
step?: SliderProps['step']
|
|
15
|
-
range?: SliderProps['range']
|
|
16
|
-
orientation?: SliderProps['orientation']
|
|
17
|
-
}
|
|
18
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useFormKitInput } from "../composables";
|
|
19
3
|
const props = defineProps({
|
|
20
4
|
context: {
|
|
21
|
-
type: Object
|
|
22
|
-
required: true
|
|
23
|
-
}
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
props.context?.node.input(e)
|
|
30
|
-
props.context?.handlers.blur(e)
|
|
5
|
+
type: Object,
|
|
6
|
+
required: true
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
const { unstyled, isInvalid, handleBlur } = useFormKitInput(props.context);
|
|
10
|
+
function handleInput(e) {
|
|
11
|
+
props.context?.node.input(e);
|
|
12
|
+
props.context?.handlers.blur(e);
|
|
31
13
|
}
|
|
32
14
|
</script>
|
|
33
15
|
|
|
@@ -1,28 +1,12 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import
|
|
3
|
-
import type { TextareaProps } from 'primevue/textarea'
|
|
4
|
-
|
|
5
|
-
import type { PropType } from 'vue'
|
|
6
|
-
import { useFormKitInput } from '../composables'
|
|
7
|
-
|
|
8
|
-
export interface FormKitPrimeTextareaProps {
|
|
9
|
-
pt?: TextareaProps['pt']
|
|
10
|
-
ptOptions?: TextareaProps['ptOptions']
|
|
11
|
-
unstyled?: TextareaProps['unstyled']
|
|
12
|
-
autoResize?: TextareaProps['autoResize']
|
|
13
|
-
size?: TextareaProps['size']
|
|
14
|
-
placeholder?: string
|
|
15
|
-
rows?: number
|
|
16
|
-
}
|
|
17
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useFormKitInput } from "../composables";
|
|
18
3
|
const props = defineProps({
|
|
19
4
|
context: {
|
|
20
|
-
type: Object
|
|
21
|
-
required: true
|
|
22
|
-
}
|
|
23
|
-
})
|
|
24
|
-
|
|
25
|
-
const { unstyled, isInvalid, handleInput, handleBlur } = useFormKitInput(props.context)
|
|
5
|
+
type: Object,
|
|
6
|
+
required: true
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
const { unstyled, isInvalid, handleInput, handleBlur } = useFormKitInput(props.context);
|
|
26
10
|
</script>
|
|
27
11
|
|
|
28
12
|
<template>
|
|
@@ -1,30 +1,12 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import
|
|
3
|
-
import type { ToggleButtonProps } from 'primevue/togglebutton'
|
|
4
|
-
|
|
5
|
-
import type { PropType } from 'vue'
|
|
6
|
-
import { useFormKitInput } from '../composables'
|
|
7
|
-
|
|
8
|
-
export interface FormKitPrimeToggleButtonProps {
|
|
9
|
-
pt?: ToggleButtonProps['pt']
|
|
10
|
-
ptOptions?: ToggleButtonProps['ptOptions']
|
|
11
|
-
unstyled?: ToggleButtonProps['unstyled']
|
|
12
|
-
onLabel?: ToggleButtonProps['onLabel']
|
|
13
|
-
offLabel?: ToggleButtonProps['offLabel']
|
|
14
|
-
onIcon?: ToggleButtonProps['onIcon']
|
|
15
|
-
offIcon?: ToggleButtonProps['offIcon']
|
|
16
|
-
size?: ToggleButtonProps['size']
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useFormKitInput } from "../composables";
|
|
20
3
|
const props = defineProps({
|
|
21
4
|
context: {
|
|
22
|
-
type: Object
|
|
23
|
-
required: true
|
|
24
|
-
}
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
const { validSlotNames, unstyled, isInvalid, handleChange, handleBlur } = useFormKitInput(props.context)
|
|
5
|
+
type: Object,
|
|
6
|
+
required: true
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
const { validSlotNames, unstyled, isInvalid, handleChange, handleBlur } = useFormKitInput(props.context);
|
|
28
10
|
</script>
|
|
29
11
|
|
|
30
12
|
<template>
|