Skip to content

Commit 0e25c05

Browse files
committed
chore: use linting
1 parent 1ed1a69 commit 0e25c05

File tree

6 files changed

+50
-63
lines changed

6 files changed

+50
-63
lines changed

docs/guide/composables.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,11 @@ To simplify the build of a repeater you can use:
5656
- addListGroupFunctions
5757

5858
```vue
59-
6059
<script setup lang='ts'>
6160
import { useFormKitRepeater } from '@sfxcode/formkit-primevue/comosables'
6261
6362
const { addInsertButton, addGroupButtons, addListGroupFunctions } = useFormKitRepeater()
64-
6563
</script>
66-
6764
```
6865

6966
A working example can be found in the [repeater demo](https://github.com/sfxcode/formkit-primevue/blob/main/dev/pages/samples/Repeater.vue).

docs/guide/data.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Data
22

3-
For the simple usage with schema and data values FormKitDataEdit and FormKitDataView (and FormkitDebug) components ars available.
3+
For the simple usage with schema and data values FormKitDataEdit and FormKitDataView (and FormkitDebug) components ars available.
44

55
## Usage
66

@@ -9,29 +9,28 @@ To use the components there must be an import or global registration.
99
### FormKitDataEdit
1010

1111
```vue
12-
1312
<script setup lang='ts'>
13+
import { FormKitDataEdit } from '@sfxcode/formkit-primevue/components'
1414
15-
import { FormKitDataEdit } from '@sfxcode/formkit-primevue/components'
16-
17-
const formSchema = ref({}) // some schema should be provided
18-
const formData = ref({}) // some data
15+
const formSchema = ref({}) // some schema should be provided
16+
const formData = ref({}) // some data
1917
20-
async function submitHandler(data: any) {
21-
// some action on form submit
22-
}
18+
async function submitHandler(data: any) {
19+
// some action on form submit
20+
}
2321
</script>
2422
2523
<template>
2624
<div>
27-
<FormKitDataEdit :schema="formSchema" :data="formData"
28-
:debug-schema="false" :debug-data="true"
29-
@data-saved="submitHandler" />
25+
<FormKitDataEdit
26+
:schema="formSchema" :data="formData"
27+
:debug-schema="false" :debug-data="true"
28+
@data-saved="submitHandler"
29+
/>
3030
</div>
3131
</template>
32-
3332
```
3433

3534
### FormKitDataView
3635

37-
Same as FormKitDataEdit but without Submit button and action.
36+
Same as FormKitDataEdit but without Submit button and action.

docs/guide/history.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Only some topics are mentioned ....
44

55
## 0.x to 1.0.0 (2023-03-08)
66

7-
- First version of this framework with PrimeVue 3
7+
- First version of this framework with PrimeVue 3
88

99
## 1.1.x
1010

@@ -18,7 +18,6 @@ Only some topics are mentioned ....
1818

1919
- **FormKit 1.0**
2020

21-
2221
## 1.4.x
2322

2423
- more styling by sass
@@ -30,7 +29,7 @@ Only some topics are mentioned ....
3029
- add missing props to some components
3130
- **FormKit 1.5**
3231

33-
## 1.6.x
32+
## 1.6.x
3433

3534
- Better Option Handling
3635
- Provide simple option usage
@@ -73,4 +72,4 @@ Only some topics are mentioned ....
7372

7473
## 2.4.x
7574

76-
- change to iconPrefix/iconSuffix
75+
- change to iconPrefix/iconSuffix

docs/guide/outputs.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@ numberFormats / datetimeFormats from vue-i18n are used to display the values acc
1515
### OutputNumber
1616

1717
```ts
18-
const formkitItem = {
19-
$formkit: 'primeOutputNumber',
20-
name: 'mumber',
21-
format: 'decimal', // vue-i18n format
22-
}
18+
const formkitItem = {
19+
$formkit: 'primeOutputNumber',
20+
name: 'mumber',
21+
format: 'decimal', // vue-i18n format
22+
}
2323
```
2424

25-
26-
2725
## Naming in FormKit
2826
Outputs are used in schema with **prime** as prefix and the **output name** as suffix.
2927

docs/guide/prefix.md

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ To prevent the behavior for this framework the property names are switched to **
1111
## Sample Definition
1212

1313
```ts
14-
1514
export const primeOutputTextDefinition: FormKitTypeDefinition = createInput(PrimeOutputText, {
16-
props: ['prefix', 'suffix', 'iconPrefix', 'iconSuffix'],
15+
props: ['prefix', 'suffix', 'iconPrefix', 'iconSuffix'],
1716
})
18-
1917
```
2018

2119
Icons are rendered in an i-Tag and requires a class and text in a span-Tag.
@@ -25,18 +23,14 @@ Icons are rendered in an i-Tag and requires a class and text in a span-Tag.
2523
```ts
2624
const schema
2725
= [
28-
{
29-
$formkit: 'primeOutputBoolean',
30-
name: 'falseValue',
31-
label: 'False',
32-
prefix: 'prefix',
33-
iconPrefix: 'pi pi-check',
34-
suffix: 'suffix',
35-
iconSuffix: 'pi pi-times',
36-
}
26+
{
27+
$formkit: 'primeOutputBoolean',
28+
name: 'falseValue',
29+
label: 'False',
30+
prefix: 'prefix',
31+
iconPrefix: 'pi pi-check',
32+
suffix: 'suffix',
33+
iconSuffix: 'pi pi-times',
34+
}
3735
]
38-
3936
```
40-
41-
42-

docs/guide/styling.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,25 @@ Make sure to add a class selector for **p-invalid**.
2525
For example to place 2 elements side by side give both of them the **outerClass** value **col-6**.
2626

2727
```ts
28-
const formkitItems = [
29-
{
30-
$formkit: 'primePassword',
31-
name: 'password',
32-
label: 'Password',
33-
help: 'Enter your new password.',
34-
validation: 'required|length:5,16',
35-
feedback: true,
36-
outerClass: 'col-6',
37-
},
38-
{
39-
$formkit: 'primePassword',
40-
name: 'password_confirm',
41-
label: 'Confirm password',
42-
help: 'Enter your new password again.',
43-
validation: 'required|confirm',
44-
validationLabel: 'password confirmation',
45-
outerClass: 'col-6',
46-
},
28+
const formkitItems = [
29+
{
30+
$formkit: 'primePassword',
31+
name: 'password',
32+
label: 'Password',
33+
help: 'Enter your new password.',
34+
validation: 'required|length:5,16',
35+
feedback: true,
36+
outerClass: 'col-6',
37+
},
38+
{
39+
$formkit: 'primePassword',
40+
name: 'password_confirm',
41+
label: 'Confirm password',
42+
help: 'Enter your new password again.',
43+
validation: 'required|confirm',
44+
validationLabel: 'password confirmation',
45+
outerClass: 'col-6',
46+
},
4747
]
4848
```
4949

0 commit comments

Comments
 (0)