Skip to content

Commit 4f4f640

Browse files
committed
fix(components): remove wrapperClass because of clash with fromkit class handling
1 parent 95b06e3 commit 4f4f640

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+94
-154
lines changed

dev/components/app/AppTopbar.vue

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ const items = ref([
7878
label: 'More',
7979
icon: 'pi pi-box',
8080
class: 'ml-2',
81-
8281
items: [
8382
[
8483
{
@@ -127,18 +126,14 @@ const items = ref([
127126
<router-link to="/" class="">
128127
<span class="text-3xl">Formkit PrimeVue Demo</span>
129128
</router-link>
130-
</template>
131-
132-
<template #center>
129+
</template> <template #center>
133130
<div class="text-lg">
134131
<span class="text-yellow-600 font-bold">New: </span>
135132
<router-link to="/samples/formEditor" class="">
136133
<span class="">Form Editor</span>
137134
</router-link>
138135
</div>
139-
</template>
140-
141-
<template #end>
136+
</template> <template #end>
142137
<Button label="FormKit" class="mr-2" @click="redirectToFormKit" />
143138
<Button icon="pi pi-prime" label="PrimeVue" class="mr-2" @click="redirectToPrimeVue" />
144139
<Button icon="pi pi-book" label="Docs" class="mr-2" @click="redirectToDocs" />

dev/components/demo/PrimeSchemaEditor.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ function copyObject() {
9999
<pre>{{ schemaResult }}</pre>
100100
<Button v-if="isSupported" label="Copy as JSON" class="mr-4" @click="copyJson" />
101101
<Button v-if="isSupported" label="Copy as Object" @click="copyObject" />
102-
103102
<h3>Generated Formkit Data</h3>
104103
<pre>{{ data }}</pre>
105104
</div>

dev/pages/inputs/AutoComplete.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const schema
2424
multiple: true,
2525
typeahead: false,
2626
label: 'Chips Replacement',
27-
wrapperClass: 'myClass',
2827
},
2928
]
3029

dev/pages/inputs/InputText.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ const schema
1010
label: 'Basic',
1111
help: 'Required.',
1212
validation: 'required',
13-
wrapperClass: 'myClass',
1413
},
15-
1614
{
1715
$formkit: 'primeInputText',
1816
id: 'icon',

dev/pages/outputs/OutputDate.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ const schema
88
$formkit: 'primeOutputDate',
99
name: 'date1',
1010
label: 'Basic',
11-
wrapperClass: 'myClass',
1211
},
13-
1412
{
1513
$formkit: 'primeOutputDate',
1614
id: 'date2',

dev/pages/outputs/OutputNumber.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ const schema
99
name: 'mumber1',
1010
format: 'decimal',
1111
label: 'Basic',
12-
wrapperClass: 'myClass',
1312
},
14-
1513
{
1614
$formkit: 'primeOutputNumber',
1715
name: 'number2',

dev/pages/outputs/OutputText.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ const schema
88
$formkit: 'primeOutputText',
99
name: 'name',
1010
label: 'Basic',
11-
wrapperClass: 'myClass',
1211
},
13-
1412
{
1513
$formkit: 'primeOutputText',
1614
id: 'icon',

dev/pages/samples/FormEditor.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ const schemaResult = computed(() => editorDataToSchema(formData.value))
5858
<Button v-if="false" icon="pi pi-plus" class="mr-2" severity="secondary" text />
5959
<Button v-if="false" icon="pi pi-print" class="mr-2" severity="secondary" text />
6060
<Button v-if="false" icon="pi pi-upload" severity="secondary" text />
61-
</template>
62-
63-
<template #center>
61+
</template> <template #center>
6462
Form Editor
6563
</template>
6664
<template #end />
@@ -95,7 +93,6 @@ const schemaResult = computed(() => editorDataToSchema(formData.value))
9593
</div>
9694
<div v-if="formData" class="mt-4">
9795
<FormKit
98-
9996
v-model="formData"
10097
type="form"
10198
:submit-attrs="{

dev/pages/samples/Grid.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ const schema
1717
$formkit: 'primeInputText',
1818
name: 'name2',
1919
label: 'Col 2',
20-
2120
},
2221
], { class: 'flex gap-4' }),
2322
]

src/components/PrimeAutoComplete.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export interface FormKitPrimeAutoCompleteProps {
1212
dropdown?: AutoCompleteProps['dropdown']
1313
multiple?: AutoCompleteProps['multiple']
1414
typeahead?: AutoCompleteProps['typeahead']
15-
wrapperClass?: string
1615
}
1716
1817
const props = defineProps({
@@ -22,7 +21,7 @@ const props = defineProps({
2221
},
2322
})
2423
25-
const { styleClass, wrapperClass, handleInput, handleBlur } = useFormKitInput(props.context)
24+
const { styleClass, handleInput, handleBlur } = useFormKitInput(props.context)
2625
2726
const suggestions = ref([])
2827
@@ -32,7 +31,7 @@ function search(event: AutoCompleteCompleteEvent) {
3231
</script>
3332

3433
<template>
35-
<div :class="wrapperClass">
34+
<div class="p-formkit">
3635
<AutoComplete
3736
:id="context.id"
3837
v-model="context._value"

0 commit comments

Comments
 (0)