@sfxcode/formkit-primevue 3.3.0 → 3.3.1
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/README.md +13 -138
- package/dist/PrimeTreeSelect-Dksx7tL-.js +1881 -0
- package/dist/components/index.d.ts +2 -24
- package/dist/components/index.js +4 -167
- package/dist/components-HJnJ39cU.js +255 -0
- package/dist/composables/index.d.ts +2 -9
- package/dist/composables/index.js +2 -61
- package/dist/composables-CZ6f1QYe.js +820 -0
- package/dist/definitions/index.d.ts +37 -32
- package/dist/definitions/index.js +4 -42
- package/dist/definitions-BHwWaom7.js +1196 -0
- package/dist/index-Ch3MtT1C.d.ts +266 -0
- package/dist/index-EJ8M51RO.d.ts +917 -0
- package/dist/index.d.ts +146 -143
- package/dist/index.js +5 -62
- package/dist/plugins/index.d.ts +7 -3
- package/dist/plugins/index.js +45 -57
- package/dist/sass/formkit-primevue.scss +99 -101
- package/package.json +32 -117
- package/LICENSE +0 -21
- package/components.d.ts +0 -1
- package/dist/components/FormKitDataDebug.d.vue.ts +0 -24
- package/dist/components/FormKitDataDebug.vue +0 -23
- package/dist/components/FormKitDataDebug.vue.d.ts +0 -24
- package/dist/components/FormKitDataEdit.d.vue.ts +0 -180
- package/dist/components/FormKitDataEdit.vue +0 -126
- package/dist/components/FormKitDataEdit.vue.d.ts +0 -180
- package/dist/components/FormKitDataView.d.vue.ts +0 -73
- package/dist/components/FormKitDataView.vue +0 -58
- package/dist/components/FormKitDataView.vue.d.ts +0 -73
- package/dist/components/FormKitIcon.d.vue.ts +0 -39
- package/dist/components/FormKitIcon.vue +0 -25
- package/dist/components/FormKitIcon.vue.d.ts +0 -39
- package/dist/components/FormKitPrefix.d.vue.ts +0 -7
- package/dist/components/FormKitPrefix.vue +0 -11
- package/dist/components/FormKitPrefix.vue.d.ts +0 -7
- package/dist/components/FormKitSuffix.d.vue.ts +0 -7
- package/dist/components/FormKitSuffix.vue +0 -11
- package/dist/components/FormKitSuffix.vue.d.ts +0 -7
- package/dist/components/PrimeAutoComplete.d.vue.ts +0 -31
- package/dist/components/PrimeAutoComplete.vue +0 -140
- package/dist/components/PrimeAutoComplete.vue.d.ts +0 -31
- package/dist/components/PrimeCascadeSelect.d.vue.ts +0 -28
- package/dist/components/PrimeCascadeSelect.vue +0 -62
- package/dist/components/PrimeCascadeSelect.vue.d.ts +0 -28
- package/dist/components/PrimeCheckbox.d.vue.ts +0 -27
- package/dist/components/PrimeCheckbox.vue +0 -71
- package/dist/components/PrimeCheckbox.vue.d.ts +0 -27
- package/dist/components/PrimeColorPicker.d.vue.ts +0 -24
- package/dist/components/PrimeColorPicker.vue +0 -48
- package/dist/components/PrimeColorPicker.vue.d.ts +0 -24
- package/dist/components/PrimeDatePicker.d.vue.ts +0 -63
- package/dist/components/PrimeDatePicker.vue +0 -153
- package/dist/components/PrimeDatePicker.vue.d.ts +0 -63
- package/dist/components/PrimeInputMask.d.vue.ts +0 -28
- package/dist/components/PrimeInputMask.vue +0 -88
- package/dist/components/PrimeInputMask.vue.d.ts +0 -28
- package/dist/components/PrimeInputNumber.d.vue.ts +0 -36
- package/dist/components/PrimeInputNumber.vue +0 -110
- package/dist/components/PrimeInputNumber.vue.d.ts +0 -36
- package/dist/components/PrimeInputOtp.d.vue.ts +0 -26
- package/dist/components/PrimeInputOtp.vue +0 -59
- package/dist/components/PrimeInputOtp.vue.d.ts +0 -26
- package/dist/components/PrimeInputText.d.vue.ts +0 -24
- package/dist/components/PrimeInputText.vue +0 -80
- package/dist/components/PrimeInputText.vue.d.ts +0 -24
- package/dist/components/PrimeKnob.d.vue.ts +0 -31
- package/dist/components/PrimeKnob.vue +0 -75
- package/dist/components/PrimeKnob.vue.d.ts +0 -31
- package/dist/components/PrimeListbox.d.vue.ts +0 -42
- package/dist/components/PrimeListbox.vue +0 -86
- package/dist/components/PrimeListbox.vue.d.ts +0 -42
- package/dist/components/PrimeMultiSelect.d.vue.ts +0 -53
- package/dist/components/PrimeMultiSelect.vue +0 -115
- package/dist/components/PrimeMultiSelect.vue.d.ts +0 -53
- package/dist/components/PrimeOutputBoolean.d.vue.ts +0 -16
- package/dist/components/PrimeOutputBoolean.vue +0 -41
- package/dist/components/PrimeOutputBoolean.vue.d.ts +0 -16
- package/dist/components/PrimeOutputDate.d.vue.ts +0 -16
- package/dist/components/PrimeOutputDate.vue +0 -51
- package/dist/components/PrimeOutputDate.vue.d.ts +0 -16
- package/dist/components/PrimeOutputDuration.d.vue.ts +0 -16
- package/dist/components/PrimeOutputDuration.vue +0 -32
- package/dist/components/PrimeOutputDuration.vue.d.ts +0 -16
- package/dist/components/PrimeOutputLink.d.vue.ts +0 -16
- package/dist/components/PrimeOutputLink.vue +0 -50
- package/dist/components/PrimeOutputLink.vue.d.ts +0 -16
- package/dist/components/PrimeOutputList.d.vue.ts +0 -19
- package/dist/components/PrimeOutputList.vue +0 -75
- package/dist/components/PrimeOutputList.vue.d.ts +0 -19
- package/dist/components/PrimeOutputNumber.d.vue.ts +0 -16
- package/dist/components/PrimeOutputNumber.vue +0 -59
- package/dist/components/PrimeOutputNumber.vue.d.ts +0 -16
- package/dist/components/PrimeOutputReference.d.vue.ts +0 -16
- package/dist/components/PrimeOutputReference.vue +0 -62
- package/dist/components/PrimeOutputReference.vue.d.ts +0 -16
- package/dist/components/PrimeOutputText.d.vue.ts +0 -22
- package/dist/components/PrimeOutputText.vue +0 -72
- package/dist/components/PrimeOutputText.vue.d.ts +0 -22
- package/dist/components/PrimePassword.d.vue.ts +0 -33
- package/dist/components/PrimePassword.vue +0 -73
- package/dist/components/PrimePassword.vue.d.ts +0 -33
- package/dist/components/PrimeRadioButton.d.vue.ts +0 -28
- package/dist/components/PrimeRadioButton.vue +0 -58
- package/dist/components/PrimeRadioButton.vue.d.ts +0 -28
- package/dist/components/PrimeRating.d.vue.ts +0 -24
- package/dist/components/PrimeRating.vue +0 -55
- package/dist/components/PrimeRating.vue.d.ts +0 -24
- package/dist/components/PrimeSelect.d.vue.ts +0 -50
- package/dist/components/PrimeSelect.vue +0 -113
- package/dist/components/PrimeSelect.vue.d.ts +0 -50
- package/dist/components/PrimeSelectButton.d.vue.ts +0 -28
- package/dist/components/PrimeSelectButton.vue +0 -64
- package/dist/components/PrimeSelectButton.vue.d.ts +0 -28
- package/dist/components/PrimeSlider.d.vue.ts +0 -26
- package/dist/components/PrimeSlider.vue +0 -60
- package/dist/components/PrimeSlider.vue.d.ts +0 -26
- package/dist/components/PrimeTextarea.d.vue.ts +0 -25
- package/dist/components/PrimeTextarea.vue +0 -53
- package/dist/components/PrimeTextarea.vue.d.ts +0 -25
- package/dist/components/PrimeToggleButton.d.vue.ts +0 -26
- package/dist/components/PrimeToggleButton.vue +0 -60
- package/dist/components/PrimeToggleButton.vue.d.ts +0 -26
- package/dist/components/PrimeToggleSwitch.d.vue.ts +0 -23
- package/dist/components/PrimeToggleSwitch.vue +0 -57
- package/dist/components/PrimeToggleSwitch.vue.d.ts +0 -23
- package/dist/components/PrimeTreeSelect.d.vue.ts +0 -32
- package/dist/components/PrimeTreeSelect.vue +0 -71
- package/dist/components/PrimeTreeSelect.vue.d.ts +0 -32
- package/dist/components/index.mjs +0 -48
- package/dist/composables/index.mjs +0 -18
- package/dist/composables/useFormKitInput.d.ts +0 -11
- package/dist/composables/useFormKitInput.js +0 -58
- package/dist/composables/useFormKitInput.mjs +0 -45
- package/dist/composables/useFormKitRepeater.d.ts +0 -15
- package/dist/composables/useFormKitRepeater.js +0 -74
- package/dist/composables/useFormKitRepeater.mjs +0 -54
- package/dist/composables/useFormKitSchema.d.ts +0 -36
- package/dist/composables/useFormKitSchema.js +0 -83
- package/dist/composables/useFormKitSchema.mjs +0 -58
- package/dist/composables/useFormKitSection.d.ts +0 -7
- package/dist/composables/useFormKitSection.js +0 -31
- package/dist/composables/useFormKitSection.mjs +0 -19
- package/dist/composables/useInputEditor.d.ts +0 -8
- package/dist/composables/useInputEditor.js +0 -148
- package/dist/composables/useInputEditor.mjs +0 -143
- package/dist/composables/useInputEditorSchema.d.ts +0 -163
- package/dist/composables/useInputEditorSchema.js +0 -313
- package/dist/composables/useInputEditorSchema.mjs +0 -315
- package/dist/composables/useOutputDuration.d.ts +0 -4
- package/dist/composables/useOutputDuration.js +0 -40
- package/dist/composables/useOutputDuration.mjs +0 -35
- package/dist/composables/usePrimeInputs.d.ts +0 -3
- package/dist/composables/usePrimeInputs.js +0 -62
- package/dist/composables/usePrimeInputs.mjs +0 -53
- package/dist/definitions/index.mjs +0 -68
- package/dist/definitions/input.d.ts +0 -47
- package/dist/definitions/input.js +0 -142
- package/dist/definitions/input.mjs +0 -135
- package/dist/definitions/output.d.ts +0 -9
- package/dist/definitions/output.js +0 -46
- package/dist/definitions/output.mjs +0 -39
- package/dist/index.mjs +0 -14
- package/dist/plugins/index.mjs +0 -55
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { FormKitFrameworkContext } from '@formkit/core';
|
|
2
|
-
import type { ToggleButtonProps } from 'primevue/togglebutton';
|
|
3
|
-
import type { PropType } from 'vue';
|
|
4
|
-
export interface FormKitPrimeToggleButtonProps {
|
|
5
|
-
pt?: ToggleButtonProps['pt'];
|
|
6
|
-
ptOptions?: ToggleButtonProps['ptOptions'];
|
|
7
|
-
unstyled?: ToggleButtonProps['unstyled'];
|
|
8
|
-
onLabel?: ToggleButtonProps['onLabel'];
|
|
9
|
-
offLabel?: ToggleButtonProps['offLabel'];
|
|
10
|
-
onIcon?: ToggleButtonProps['onIcon'];
|
|
11
|
-
offIcon?: ToggleButtonProps['offIcon'];
|
|
12
|
-
size?: ToggleButtonProps['size'];
|
|
13
|
-
}
|
|
14
|
-
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
15
|
-
context: {
|
|
16
|
-
type: PropType<FormKitFrameworkContext & FormKitPrimeToggleButtonProps>;
|
|
17
|
-
required: true;
|
|
18
|
-
};
|
|
19
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
-
context: {
|
|
21
|
-
type: PropType<FormKitFrameworkContext & FormKitPrimeToggleButtonProps>;
|
|
22
|
-
required: true;
|
|
23
|
-
};
|
|
24
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
25
|
-
declare const _default: typeof __VLS_export;
|
|
26
|
-
export default _default;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { FormKitFrameworkContext } from '@formkit/core';
|
|
2
|
-
import type { ToggleSwitchProps } from 'primevue/toggleswitch';
|
|
3
|
-
import type { PropType } from 'vue';
|
|
4
|
-
export interface FormKitPrimeToggleSwitchProps {
|
|
5
|
-
trueValue?: ToggleSwitchProps['trueValue'];
|
|
6
|
-
falseValue?: ToggleSwitchProps['falseValue'];
|
|
7
|
-
pt?: ToggleSwitchProps['pt'];
|
|
8
|
-
ptOptions?: ToggleSwitchProps['ptOptions'];
|
|
9
|
-
unstyled?: ToggleSwitchProps['unstyled'];
|
|
10
|
-
}
|
|
11
|
-
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
12
|
-
context: {
|
|
13
|
-
type: PropType<FormKitFrameworkContext & FormKitPrimeToggleSwitchProps>;
|
|
14
|
-
required: true;
|
|
15
|
-
};
|
|
16
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
-
context: {
|
|
18
|
-
type: PropType<FormKitFrameworkContext & FormKitPrimeToggleSwitchProps>;
|
|
19
|
-
required: true;
|
|
20
|
-
};
|
|
21
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
22
|
-
declare const _default: typeof __VLS_export;
|
|
23
|
-
export default _default;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
<script setup lang='ts'>
|
|
2
|
-
import type { FormKitFrameworkContext } from '@formkit/core'
|
|
3
|
-
import type { ToggleSwitchProps } from 'primevue/toggleswitch'
|
|
4
|
-
|
|
5
|
-
import type { PropType } from 'vue'
|
|
6
|
-
import { useFormKitInput, useFormKitSection } from '../composables'
|
|
7
|
-
|
|
8
|
-
export interface FormKitPrimeToggleSwitchProps {
|
|
9
|
-
trueValue?: ToggleSwitchProps['trueValue']
|
|
10
|
-
falseValue?: ToggleSwitchProps['falseValue']
|
|
11
|
-
pt?: ToggleSwitchProps['pt']
|
|
12
|
-
ptOptions?: ToggleSwitchProps['ptOptions']
|
|
13
|
-
unstyled?: ToggleSwitchProps['unstyled']
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
const props = defineProps({
|
|
17
|
-
context: {
|
|
18
|
-
type: Object as PropType<FormKitFrameworkContext & FormKitPrimeToggleSwitchProps>,
|
|
19
|
-
required: true,
|
|
20
|
-
},
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
const { hasPrefix, hasSuffix } = useFormKitSection(props.context)
|
|
24
|
-
|
|
25
|
-
const { unstyled, isInvalid, handleInput, handleBlur, modelValue } = useFormKitInput(props.context)
|
|
26
|
-
</script>
|
|
27
|
-
|
|
28
|
-
<template>
|
|
29
|
-
<div class="p-formkit">
|
|
30
|
-
<span v-if="hasPrefix" class="formkit-prefix">
|
|
31
|
-
{{ context?.prefix }}
|
|
32
|
-
</span>
|
|
33
|
-
<ToggleSwitch
|
|
34
|
-
v-model="modelValue"
|
|
35
|
-
v-bind="context?.attrs"
|
|
36
|
-
:input-id="context.id"
|
|
37
|
-
:disabled="!!context?.disabled"
|
|
38
|
-
:readonly="context?.attrs.readonly ?? false"
|
|
39
|
-
:input-style="context?.attrs.style"
|
|
40
|
-
:input-class="context?.attrs?.class"
|
|
41
|
-
:invalid="isInvalid"
|
|
42
|
-
:tabindex="context?.attrs.tabindex"
|
|
43
|
-
:aria-label="context?.attrs.ariaLabel"
|
|
44
|
-
:aria-labelledby="context?.attrs.ariaLabelledby"
|
|
45
|
-
:true-value="context.trueValue ?? undefined"
|
|
46
|
-
:false-value="context.falseValue ?? undefined"
|
|
47
|
-
:pt="context.pt"
|
|
48
|
-
:pt-options="context.ptOptions"
|
|
49
|
-
:unstyled="unstyled"
|
|
50
|
-
@change="handleInput"
|
|
51
|
-
@blur="handleBlur"
|
|
52
|
-
/>
|
|
53
|
-
<span v-if="hasSuffix" class="formkit-suffix">
|
|
54
|
-
{{ context?.suffix }}
|
|
55
|
-
</span>
|
|
56
|
-
</div>
|
|
57
|
-
</template>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { FormKitFrameworkContext } from '@formkit/core';
|
|
2
|
-
import type { ToggleSwitchProps } from 'primevue/toggleswitch';
|
|
3
|
-
import type { PropType } from 'vue';
|
|
4
|
-
export interface FormKitPrimeToggleSwitchProps {
|
|
5
|
-
trueValue?: ToggleSwitchProps['trueValue'];
|
|
6
|
-
falseValue?: ToggleSwitchProps['falseValue'];
|
|
7
|
-
pt?: ToggleSwitchProps['pt'];
|
|
8
|
-
ptOptions?: ToggleSwitchProps['ptOptions'];
|
|
9
|
-
unstyled?: ToggleSwitchProps['unstyled'];
|
|
10
|
-
}
|
|
11
|
-
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
12
|
-
context: {
|
|
13
|
-
type: PropType<FormKitFrameworkContext & FormKitPrimeToggleSwitchProps>;
|
|
14
|
-
required: true;
|
|
15
|
-
};
|
|
16
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
-
context: {
|
|
18
|
-
type: PropType<FormKitFrameworkContext & FormKitPrimeToggleSwitchProps>;
|
|
19
|
-
required: true;
|
|
20
|
-
};
|
|
21
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
22
|
-
declare const _default: typeof __VLS_export;
|
|
23
|
-
export default _default;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { FormKitFrameworkContext } from '@formkit/core';
|
|
2
|
-
import type { TreeSelectProps } from 'primevue/treeselect';
|
|
3
|
-
import type { PropType } from 'vue';
|
|
4
|
-
export interface FormKitPrimeTreeSelectProps {
|
|
5
|
-
options?: TreeSelectProps['options'];
|
|
6
|
-
placeholder?: TreeSelectProps['placeholder'];
|
|
7
|
-
selectionMode?: TreeSelectProps['selectionMode'];
|
|
8
|
-
pt?: TreeSelectProps['pt'];
|
|
9
|
-
ptOptions?: TreeSelectProps['ptOptions'];
|
|
10
|
-
unstyled?: TreeSelectProps['unstyled'];
|
|
11
|
-
emptyMessage?: TreeSelectProps['emptyMessage'];
|
|
12
|
-
display?: TreeSelectProps['display'];
|
|
13
|
-
metaKeySelection?: TreeSelectProps['metaKeySelection'];
|
|
14
|
-
appendTo?: TreeSelectProps['appendTo'];
|
|
15
|
-
scrollHeight?: TreeSelectProps['scrollHeight'];
|
|
16
|
-
panelClass?: TreeSelectProps['panelClass'];
|
|
17
|
-
variant?: TreeSelectProps['variant'];
|
|
18
|
-
size?: TreeSelectProps['size'];
|
|
19
|
-
}
|
|
20
|
-
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
21
|
-
context: {
|
|
22
|
-
type: PropType<FormKitFrameworkContext & FormKitPrimeTreeSelectProps>;
|
|
23
|
-
required: true;
|
|
24
|
-
};
|
|
25
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
-
context: {
|
|
27
|
-
type: PropType<FormKitFrameworkContext & FormKitPrimeTreeSelectProps>;
|
|
28
|
-
required: true;
|
|
29
|
-
};
|
|
30
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
31
|
-
declare const _default: typeof __VLS_export;
|
|
32
|
-
export default _default;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
<script setup lang='ts'>
|
|
2
|
-
import type { FormKitFrameworkContext } from '@formkit/core'
|
|
3
|
-
import type { TreeSelectProps } from 'primevue/treeselect'
|
|
4
|
-
|
|
5
|
-
import type { PropType } from 'vue'
|
|
6
|
-
import { useFormKitInput } from '../composables'
|
|
7
|
-
|
|
8
|
-
export interface FormKitPrimeTreeSelectProps {
|
|
9
|
-
options?: TreeSelectProps['options']
|
|
10
|
-
placeholder?: TreeSelectProps['placeholder']
|
|
11
|
-
selectionMode?: TreeSelectProps['selectionMode']
|
|
12
|
-
pt?: TreeSelectProps['pt']
|
|
13
|
-
ptOptions?: TreeSelectProps['ptOptions']
|
|
14
|
-
unstyled?: TreeSelectProps['unstyled']
|
|
15
|
-
emptyMessage?: TreeSelectProps['emptyMessage']
|
|
16
|
-
display?: TreeSelectProps['display']
|
|
17
|
-
metaKeySelection?: TreeSelectProps['metaKeySelection']
|
|
18
|
-
appendTo?: TreeSelectProps['appendTo']
|
|
19
|
-
scrollHeight?: TreeSelectProps['scrollHeight']
|
|
20
|
-
panelClass?: TreeSelectProps['panelClass']
|
|
21
|
-
variant?: TreeSelectProps['variant']
|
|
22
|
-
size?: TreeSelectProps['size']
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const props = defineProps({
|
|
26
|
-
context: {
|
|
27
|
-
type: Object as PropType<FormKitFrameworkContext & FormKitPrimeTreeSelectProps>,
|
|
28
|
-
required: true,
|
|
29
|
-
},
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
const { validSlotNames, unstyled, isInvalid, handleInput, handleBlur, modelValue } = useFormKitInput(props.context)
|
|
33
|
-
</script>
|
|
34
|
-
|
|
35
|
-
<template>
|
|
36
|
-
<div class="p-formkit">
|
|
37
|
-
<TreeSelect
|
|
38
|
-
v-model="modelValue"
|
|
39
|
-
v-bind="context?.attrs"
|
|
40
|
-
:input-id="context.id"
|
|
41
|
-
:disabled="!!context?.disabled"
|
|
42
|
-
:readonly="context?.attrs.readonly ?? false"
|
|
43
|
-
:input-style="context?.attrs.style"
|
|
44
|
-
:input-class="context?.attrs?.class"
|
|
45
|
-
:invalid="isInvalid"
|
|
46
|
-
:tabindex="context?.attrs.tabindex"
|
|
47
|
-
:aria-label="context?.attrs.ariaLabel"
|
|
48
|
-
:aria-labelledby="context?.attrs.ariaLabelledby"
|
|
49
|
-
:size="context?.size ?? undefined"
|
|
50
|
-
:options="context?.options"
|
|
51
|
-
:placeholder="context.placeholder"
|
|
52
|
-
:selection-mode="context.selectionMode"
|
|
53
|
-
:pt="context.pt"
|
|
54
|
-
:empty-message="context.emptyMessage"
|
|
55
|
-
:display="context.display"
|
|
56
|
-
:meta-key-selection="context.metaKeySelection"
|
|
57
|
-
:append-to="context.appendTo"
|
|
58
|
-
:scroll-height="context.scrollHeight"
|
|
59
|
-
:panel-class="context.panelClass"
|
|
60
|
-
:variant="context.variant"
|
|
61
|
-
:pt-options="context.ptOptions"
|
|
62
|
-
:unstyled="unstyled"
|
|
63
|
-
@change="handleInput"
|
|
64
|
-
@blur="handleBlur"
|
|
65
|
-
>
|
|
66
|
-
<template v-for="slotName in validSlotNames" :key="slotName" #[slotName]="slotProps">
|
|
67
|
-
<component :is="context?.slots[slotName]" v-bind="{ ...context, ...slotProps }" />
|
|
68
|
-
</template>
|
|
69
|
-
</TreeSelect>
|
|
70
|
-
</div>
|
|
71
|
-
</template>
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { FormKitFrameworkContext } from '@formkit/core';
|
|
2
|
-
import type { TreeSelectProps } from 'primevue/treeselect';
|
|
3
|
-
import type { PropType } from 'vue';
|
|
4
|
-
export interface FormKitPrimeTreeSelectProps {
|
|
5
|
-
options?: TreeSelectProps['options'];
|
|
6
|
-
placeholder?: TreeSelectProps['placeholder'];
|
|
7
|
-
selectionMode?: TreeSelectProps['selectionMode'];
|
|
8
|
-
pt?: TreeSelectProps['pt'];
|
|
9
|
-
ptOptions?: TreeSelectProps['ptOptions'];
|
|
10
|
-
unstyled?: TreeSelectProps['unstyled'];
|
|
11
|
-
emptyMessage?: TreeSelectProps['emptyMessage'];
|
|
12
|
-
display?: TreeSelectProps['display'];
|
|
13
|
-
metaKeySelection?: TreeSelectProps['metaKeySelection'];
|
|
14
|
-
appendTo?: TreeSelectProps['appendTo'];
|
|
15
|
-
scrollHeight?: TreeSelectProps['scrollHeight'];
|
|
16
|
-
panelClass?: TreeSelectProps['panelClass'];
|
|
17
|
-
variant?: TreeSelectProps['variant'];
|
|
18
|
-
size?: TreeSelectProps['size'];
|
|
19
|
-
}
|
|
20
|
-
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
21
|
-
context: {
|
|
22
|
-
type: PropType<FormKitFrameworkContext & FormKitPrimeTreeSelectProps>;
|
|
23
|
-
required: true;
|
|
24
|
-
};
|
|
25
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
-
context: {
|
|
27
|
-
type: PropType<FormKitFrameworkContext & FormKitPrimeTreeSelectProps>;
|
|
28
|
-
required: true;
|
|
29
|
-
};
|
|
30
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
31
|
-
declare const _default: typeof __VLS_export;
|
|
32
|
-
export default _default;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import FormKitDataEdit from "./FormKitDataEdit.vue";
|
|
2
|
-
import FormKitDataView from "./FormKitDataView.vue";
|
|
3
|
-
import PrimeAutoComplete from "./PrimeAutoComplete.vue";
|
|
4
|
-
import PrimeCascadeSelect from "./PrimeCascadeSelect.vue";
|
|
5
|
-
import PrimeCheckbox from "./PrimeCheckbox.vue";
|
|
6
|
-
import PrimeColorPicker from "./PrimeColorPicker.vue";
|
|
7
|
-
import PrimeDatePicker from "./PrimeDatePicker.vue";
|
|
8
|
-
import PrimeInputMask from "./PrimeInputMask.vue";
|
|
9
|
-
import PrimeInputNumber from "./PrimeInputNumber.vue";
|
|
10
|
-
import PrimeInputText from "./PrimeInputText.vue";
|
|
11
|
-
import PrimeKnob from "./PrimeKnob.vue";
|
|
12
|
-
import PrimeListbox from "./PrimeListbox.vue";
|
|
13
|
-
import PrimeMultiSelect from "./PrimeMultiSelect.vue";
|
|
14
|
-
import PrimePassword from "./PrimePassword.vue";
|
|
15
|
-
import PrimeRadioButton from "./PrimeRadioButton.vue";
|
|
16
|
-
import PrimeRating from "./PrimeRating.vue";
|
|
17
|
-
import PrimeSelect from "./PrimeSelect.vue";
|
|
18
|
-
import PrimeSelectButton from "./PrimeSelectButton.vue";
|
|
19
|
-
import PrimeSlider from "./PrimeSlider.vue";
|
|
20
|
-
import PrimeTextarea from "./PrimeTextarea.vue";
|
|
21
|
-
import PrimeToggleButton from "./PrimeToggleButton.vue";
|
|
22
|
-
import PrimeInputSwitch from "./PrimeToggleSwitch.vue";
|
|
23
|
-
import PrimeTreeSelect from "./PrimeTreeSelect.vue";
|
|
24
|
-
export {
|
|
25
|
-
FormKitDataEdit,
|
|
26
|
-
FormKitDataView,
|
|
27
|
-
PrimeAutoComplete,
|
|
28
|
-
PrimeCascadeSelect,
|
|
29
|
-
PrimeCheckbox,
|
|
30
|
-
PrimeColorPicker,
|
|
31
|
-
PrimeDatePicker,
|
|
32
|
-
PrimeInputMask,
|
|
33
|
-
PrimeInputNumber,
|
|
34
|
-
PrimeInputSwitch,
|
|
35
|
-
PrimeInputText,
|
|
36
|
-
PrimeKnob,
|
|
37
|
-
PrimeListbox,
|
|
38
|
-
PrimeMultiSelect,
|
|
39
|
-
PrimePassword,
|
|
40
|
-
PrimeRadioButton,
|
|
41
|
-
PrimeRating,
|
|
42
|
-
PrimeSelect,
|
|
43
|
-
PrimeSelectButton,
|
|
44
|
-
PrimeSlider,
|
|
45
|
-
PrimeTextarea,
|
|
46
|
-
PrimeToggleButton,
|
|
47
|
-
PrimeTreeSelect
|
|
48
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { useFormKitInput } from "./useFormKitInput.mjs";
|
|
2
|
-
import { useFormKitRepeater } from "./useFormKitRepeater.mjs";
|
|
3
|
-
import { useFormKitSchema } from "./useFormKitSchema.mjs";
|
|
4
|
-
import { useFormKitSection } from "./useFormKitSection.mjs";
|
|
5
|
-
import { useInputEditor } from "./useInputEditor.mjs";
|
|
6
|
-
import { useInputEditorSchema } from "./useInputEditorSchema.mjs";
|
|
7
|
-
import { useOutputDuration } from "./useOutputDuration.mjs";
|
|
8
|
-
import { usePrimeInputs } from "./usePrimeInputs.mjs";
|
|
9
|
-
export {
|
|
10
|
-
useFormKitInput,
|
|
11
|
-
useFormKitRepeater,
|
|
12
|
-
useFormKitSchema,
|
|
13
|
-
useFormKitSection,
|
|
14
|
-
useInputEditor,
|
|
15
|
-
useInputEditorSchema,
|
|
16
|
-
useOutputDuration,
|
|
17
|
-
usePrimeInputs
|
|
18
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare function useFormKitInput(context: any): {
|
|
2
|
-
isInvalid: import("vue").ComputedRef<any>;
|
|
3
|
-
validSlotNames: import("vue").ComputedRef<string[]>;
|
|
4
|
-
styleClass: import("vue").ComputedRef<any>;
|
|
5
|
-
unstyled: import("vue").ComputedRef<any>;
|
|
6
|
-
handleBlur: (event: Event) => void;
|
|
7
|
-
handleChange: (_: any) => void;
|
|
8
|
-
handleInput: (_: any) => void;
|
|
9
|
-
handleSelect: (e: any) => void;
|
|
10
|
-
modelValue: import("vue").WritableComputedRef<any, any>;
|
|
11
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useFormKitInput = useFormKitInput;
|
|
7
|
-
var _config = require("primevue/config");
|
|
8
|
-
var _vue = require("vue");
|
|
9
|
-
function useFormKitInput(context) {
|
|
10
|
-
const isInvalid = (0, _vue.computed)(() => {
|
|
11
|
-
return context?.state?.validationVisible && !context?.state?.valid;
|
|
12
|
-
});
|
|
13
|
-
const styleClass = (0, _vue.computed)(() => {
|
|
14
|
-
return context?.state?.validationVisible && !context?.state?.valid ? `${context?.attrs?.class || ""} p-invalid` : context?.attrs?.class || "";
|
|
15
|
-
});
|
|
16
|
-
function isGlobalUnstyledMode() {
|
|
17
|
-
let result = false;
|
|
18
|
-
try {
|
|
19
|
-
const primevue = (0, _config.usePrimeVue)();
|
|
20
|
-
result = primevue?.config?.unstyled || false;
|
|
21
|
-
} catch (e) {}
|
|
22
|
-
return result;
|
|
23
|
-
}
|
|
24
|
-
const unstyled = (0, _vue.computed)(() => {
|
|
25
|
-
return context?.unstyled ?? isGlobalUnstyledMode();
|
|
26
|
-
});
|
|
27
|
-
const formKitCreateInputSlots = /* @__PURE__ */new Set(["label", "help", "messages", "message", "input"]);
|
|
28
|
-
const validSlotNames = (0, _vue.computed)(() => Object.keys(context?.slots || {}).filter(slotName => !formKitCreateInputSlots.has(slotName)));
|
|
29
|
-
function handleBlur(event) {
|
|
30
|
-
context?.handlers?.blur?.(event);
|
|
31
|
-
}
|
|
32
|
-
function handleChange(_) {
|
|
33
|
-
context?.node?.input?.(context?._value);
|
|
34
|
-
}
|
|
35
|
-
function handleInput(_) {
|
|
36
|
-
context?.node?.input?.(context?._value);
|
|
37
|
-
}
|
|
38
|
-
function handleSelect(e) {
|
|
39
|
-
context?.node?.input?.(e);
|
|
40
|
-
}
|
|
41
|
-
const modelValue = (0, _vue.computed)({
|
|
42
|
-
get: () => context._value,
|
|
43
|
-
set: value => {
|
|
44
|
-
context.node.input(value);
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
return {
|
|
48
|
-
isInvalid,
|
|
49
|
-
validSlotNames,
|
|
50
|
-
styleClass,
|
|
51
|
-
unstyled,
|
|
52
|
-
handleBlur,
|
|
53
|
-
handleChange,
|
|
54
|
-
handleInput,
|
|
55
|
-
handleSelect,
|
|
56
|
-
modelValue
|
|
57
|
-
};
|
|
58
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { usePrimeVue } from "primevue/config";
|
|
2
|
-
import { computed } from "vue";
|
|
3
|
-
export function useFormKitInput(context) {
|
|
4
|
-
const isInvalid = computed(() => {
|
|
5
|
-
return context?.state?.validationVisible && !context?.state?.valid;
|
|
6
|
-
});
|
|
7
|
-
const styleClass = computed(() => {
|
|
8
|
-
return context?.state?.validationVisible && !context?.state?.valid ? `${context?.attrs?.class || ""} p-invalid` : context?.attrs?.class || "";
|
|
9
|
-
});
|
|
10
|
-
function isGlobalUnstyledMode() {
|
|
11
|
-
let result = false;
|
|
12
|
-
try {
|
|
13
|
-
const primevue = usePrimeVue();
|
|
14
|
-
result = primevue?.config?.unstyled || false;
|
|
15
|
-
} catch (e) {
|
|
16
|
-
}
|
|
17
|
-
return result;
|
|
18
|
-
}
|
|
19
|
-
const unstyled = computed(() => {
|
|
20
|
-
return context?.unstyled ?? isGlobalUnstyledMode();
|
|
21
|
-
});
|
|
22
|
-
const formKitCreateInputSlots = /* @__PURE__ */ new Set(["label", "help", "messages", "message", "input"]);
|
|
23
|
-
const validSlotNames = computed(
|
|
24
|
-
() => Object.keys(context?.slots || {}).filter((slotName) => !formKitCreateInputSlots.has(slotName))
|
|
25
|
-
);
|
|
26
|
-
function handleBlur(event) {
|
|
27
|
-
context?.handlers?.blur?.(event);
|
|
28
|
-
}
|
|
29
|
-
function handleChange(_) {
|
|
30
|
-
context?.node?.input?.(context?._value);
|
|
31
|
-
}
|
|
32
|
-
function handleInput(_) {
|
|
33
|
-
context?.node?.input?.(context?._value);
|
|
34
|
-
}
|
|
35
|
-
function handleSelect(e) {
|
|
36
|
-
context?.node?.input?.(e);
|
|
37
|
-
}
|
|
38
|
-
const modelValue = computed({
|
|
39
|
-
get: () => context._value,
|
|
40
|
-
set: (value) => {
|
|
41
|
-
context.node.input(value);
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
return { isInvalid, validSlotNames, styleClass, unstyled, handleBlur, handleChange, handleInput, handleSelect, modelValue };
|
|
45
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare function useFormKitRepeater(): {
|
|
2
|
-
addInsertButton: (label?: string, innerClass?: string, outerClass?: string, buttonClass?: string, iconClass?: string) => {
|
|
3
|
-
$el: string;
|
|
4
|
-
if: string;
|
|
5
|
-
attrs: object;
|
|
6
|
-
children: string | any[];
|
|
7
|
-
};
|
|
8
|
-
addGroupButtons: (innerClass?: string, outerClass?: string, label?: string, help?: string, render?: string) => {
|
|
9
|
-
$el: string;
|
|
10
|
-
if: string;
|
|
11
|
-
attrs: object;
|
|
12
|
-
children: string | any[];
|
|
13
|
-
};
|
|
14
|
-
addListGroupFunctions: (data: any, addNodeDefaultObject?: object) => void;
|
|
15
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useFormKitRepeater = useFormKitRepeater;
|
|
7
|
-
var _useFormKitSchema = require("./useFormKitSchema");
|
|
8
|
-
function useFormKitRepeater() {
|
|
9
|
-
const {
|
|
10
|
-
addElement,
|
|
11
|
-
addComponent,
|
|
12
|
-
addElementsInOuterDiv
|
|
13
|
-
} = (0, _useFormKitSchema.useFormKitSchema)();
|
|
14
|
-
function addInsertButton(label = "Add", innerClass = "", outerClass = "", buttonClass = "p-button-sm", iconClass = "pi pi-plus") {
|
|
15
|
-
return addElementsInOuterDiv([addComponent("Button", {
|
|
16
|
-
onClick: "$addNode($node)",
|
|
17
|
-
label,
|
|
18
|
-
class: buttonClass,
|
|
19
|
-
icon: iconClass
|
|
20
|
-
}, "$node.children.length == 0")], innerClass, outerClass);
|
|
21
|
-
}
|
|
22
|
-
function addListGroupFunctions(data, addNodeDefaultObject = {}) {
|
|
23
|
-
const swapElements = (array, index1, index2) => {
|
|
24
|
-
const newArray = [...array];
|
|
25
|
-
const temp = newArray[index1];
|
|
26
|
-
newArray[index1] = newArray[index2];
|
|
27
|
-
newArray[index2] = temp;
|
|
28
|
-
return newArray;
|
|
29
|
-
};
|
|
30
|
-
data.addNode = parentNode => () => {
|
|
31
|
-
const newArray = [...parentNode.value, addNodeDefaultObject];
|
|
32
|
-
parentNode.input(newArray, false);
|
|
33
|
-
};
|
|
34
|
-
data.removeNode = (parentNode, index) => () => {
|
|
35
|
-
parentNode.input(parentNode._value.filter((_, i) => i !== index), false);
|
|
36
|
-
};
|
|
37
|
-
data.moveNodeUp = (parentNode, index) => () => {
|
|
38
|
-
const array = [...parentNode.value];
|
|
39
|
-
if (index > 0) parentNode.input(swapElements(array, index - 1, index), false);
|
|
40
|
-
};
|
|
41
|
-
data.moveNodeDown = (parentNode, index) => () => {
|
|
42
|
-
const array = [...parentNode.value];
|
|
43
|
-
if (index < array.length - 1) parentNode.input(swapElements(array, index, index + 1), false);
|
|
44
|
-
};
|
|
45
|
-
data.copyNode = (parentNode, index) => () => {
|
|
46
|
-
const obj = parentNode.value[index];
|
|
47
|
-
const newArray = [...parentNode.value, {
|
|
48
|
-
...obj
|
|
49
|
-
}];
|
|
50
|
-
parentNode.input(newArray, false);
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
function addGroupButtons(innerClass = "", outerClass = "col-4", label = "Actions", help = "", render = "true") {
|
|
54
|
-
const addButtonComponent = (onClick = "", label2 = "", icon = "", severity = "", render2 = "true", styleClass = "p-button-sm") => {
|
|
55
|
-
return addComponent("Button", {
|
|
56
|
-
onClick,
|
|
57
|
-
label: label2,
|
|
58
|
-
icon,
|
|
59
|
-
class: styleClass,
|
|
60
|
-
severity
|
|
61
|
-
}, render2);
|
|
62
|
-
};
|
|
63
|
-
return addElementsInOuterDiv([addButtonComponent("$removeNode($node.parent, $index)", "", "pi pi-times", "danger"), addButtonComponent("$copyNode($node.parent, $index)", "", "pi pi-plus"), addButtonComponent("$moveNodeUp($node.parent, $index)", "", "pi pi-arrow-up", "secondary", "$index != 0"), addElement("span", [], {
|
|
64
|
-
class: "p-space"
|
|
65
|
-
}, "$index == 0"), addButtonComponent("$moveNodeDown($node.parent, $index)", "", "pi pi-arrow-down", "secondary", "$index < $node.parent.value.length -1"), addElement("span", [], {
|
|
66
|
-
class: "p-space"
|
|
67
|
-
}, "$index == $node.parent.value.length -1")], `p-action-buttons ${innerClass}`, outerClass, label, help, render);
|
|
68
|
-
}
|
|
69
|
-
return {
|
|
70
|
-
addInsertButton,
|
|
71
|
-
addGroupButtons,
|
|
72
|
-
addListGroupFunctions
|
|
73
|
-
};
|
|
74
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { useFormKitSchema } from "./useFormKitSchema.mjs";
|
|
2
|
-
export function useFormKitRepeater() {
|
|
3
|
-
const { addElement, addComponent, addElementsInOuterDiv } = useFormKitSchema();
|
|
4
|
-
function addInsertButton(label = "Add", innerClass = "", outerClass = "", buttonClass = "p-button-sm", iconClass = "pi pi-plus") {
|
|
5
|
-
return addElementsInOuterDiv([
|
|
6
|
-
addComponent("Button", { onClick: "$addNode($node)", label, class: buttonClass, icon: iconClass }, "$node.children.length == 0")
|
|
7
|
-
], innerClass, outerClass);
|
|
8
|
-
}
|
|
9
|
-
function addListGroupFunctions(data, addNodeDefaultObject = {}) {
|
|
10
|
-
const swapElements = (array, index1, index2) => {
|
|
11
|
-
const newArray = [...array];
|
|
12
|
-
const temp = newArray[index1];
|
|
13
|
-
newArray[index1] = newArray[index2];
|
|
14
|
-
newArray[index2] = temp;
|
|
15
|
-
return newArray;
|
|
16
|
-
};
|
|
17
|
-
data.addNode = (parentNode) => () => {
|
|
18
|
-
const newArray = [...parentNode.value, addNodeDefaultObject];
|
|
19
|
-
parentNode.input(newArray, false);
|
|
20
|
-
};
|
|
21
|
-
data.removeNode = (parentNode, index) => () => {
|
|
22
|
-
parentNode.input(parentNode._value.filter((_, i) => i !== index), false);
|
|
23
|
-
};
|
|
24
|
-
data.moveNodeUp = (parentNode, index) => () => {
|
|
25
|
-
const array = [...parentNode.value];
|
|
26
|
-
if (index > 0)
|
|
27
|
-
parentNode.input(swapElements(array, index - 1, index), false);
|
|
28
|
-
};
|
|
29
|
-
data.moveNodeDown = (parentNode, index) => () => {
|
|
30
|
-
const array = [...parentNode.value];
|
|
31
|
-
if (index < array.length - 1)
|
|
32
|
-
parentNode.input(swapElements(array, index, index + 1), false);
|
|
33
|
-
};
|
|
34
|
-
data.copyNode = (parentNode, index) => () => {
|
|
35
|
-
const obj = parentNode.value[index];
|
|
36
|
-
const newArray = [...parentNode.value, { ...obj }];
|
|
37
|
-
parentNode.input(newArray, false);
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function addGroupButtons(innerClass = "", outerClass = "col-4", label = "Actions", help = "", render = "true") {
|
|
41
|
-
const addButtonComponent = (onClick = "", label2 = "", icon = "", severity = "", render2 = "true", styleClass = "p-button-sm") => {
|
|
42
|
-
return addComponent("Button", { onClick, label: label2, icon, class: styleClass, severity }, render2);
|
|
43
|
-
};
|
|
44
|
-
return addElementsInOuterDiv([
|
|
45
|
-
addButtonComponent("$removeNode($node.parent, $index)", "", "pi pi-times", "danger"),
|
|
46
|
-
addButtonComponent("$copyNode($node.parent, $index)", "", "pi pi-plus"),
|
|
47
|
-
addButtonComponent("$moveNodeUp($node.parent, $index)", "", "pi pi-arrow-up", "secondary", "$index != 0"),
|
|
48
|
-
addElement("span", [], { class: "p-space" }, "$index == 0"),
|
|
49
|
-
addButtonComponent("$moveNodeDown($node.parent, $index)", "", "pi pi-arrow-down", "secondary", "$index < $node.parent.value.length -1"),
|
|
50
|
-
addElement("span", [], { class: "p-space" }, "$index == $node.parent.value.length -1")
|
|
51
|
-
], `p-action-buttons ${innerClass}`, outerClass, label, help, render);
|
|
52
|
-
}
|
|
53
|
-
return { addInsertButton, addGroupButtons, addListGroupFunctions };
|
|
54
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export declare function useFormKitSchema(): {
|
|
2
|
-
addComponent: (component?: string, props?: object, render?: string | boolean, formKitAttrs?: object) => object;
|
|
3
|
-
addElement: (element?: string, children?: any[] | string, attrs?: object, render?: string | boolean, formKitAttrs?: object) => {
|
|
4
|
-
$el: string;
|
|
5
|
-
if: string;
|
|
6
|
-
attrs: object;
|
|
7
|
-
children: string | any[];
|
|
8
|
-
};
|
|
9
|
-
addGroup: (name: string, children?: object[], render?: string | boolean, formKitAttrs?: object) => {
|
|
10
|
-
$formkit: string;
|
|
11
|
-
if: string;
|
|
12
|
-
name: string;
|
|
13
|
-
children: object[];
|
|
14
|
-
};
|
|
15
|
-
addList: (name: string, children?: object[], dynamic?: boolean, render?: string | boolean, formKitAttrs?: object) => {
|
|
16
|
-
$formkit: string;
|
|
17
|
-
if: string;
|
|
18
|
-
name: string;
|
|
19
|
-
dynamic: boolean;
|
|
20
|
-
children: object[];
|
|
21
|
-
};
|
|
22
|
-
addListGroup: (children?: object[], render?: string | boolean, formKitAttrs?: object) => {
|
|
23
|
-
$formkit: string;
|
|
24
|
-
if: string;
|
|
25
|
-
for: string[];
|
|
26
|
-
key: string;
|
|
27
|
-
index: string;
|
|
28
|
-
children: object[];
|
|
29
|
-
};
|
|
30
|
-
addElementsInOuterDiv: (children?: object[], innerClass?: string, outerClass?: string, label?: string, help?: string, render?: string | boolean) => {
|
|
31
|
-
$el: string;
|
|
32
|
-
if: string;
|
|
33
|
-
attrs: object;
|
|
34
|
-
children: string | any[];
|
|
35
|
-
};
|
|
36
|
-
};
|