@sfxcode/formkit-primevue 3.2.10 → 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 -162
- 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 -71
- 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 -53
- 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 -10
- package/dist/composables/useFormKitInput.js +0 -51
- package/dist/composables/useFormKitInput.mjs +0 -39
- 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
package/README.md
CHANGED
|
@@ -1,148 +1,23 @@
|
|
|
1
|
-
#
|
|
1
|
+
# tsdown-starter
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A starter for creating a TypeScript package.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Development
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
- Install dependencies:
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Actual PrimeVue Version of the main branch is *4.x.*
|
|
12
|
-
|
|
13
|
-
PrimeVue 3 is in the prime3 branch, but future development will only focus on PrimeVue 4
|
|
14
|
-
|
|
15
|
-
## Build
|
|
16
|
-
|
|
17
|
-
[](https://github.com/sfxcode/formkit-primevue/actions/workflows/deploy.yml)
|
|
18
|
-
|
|
19
|
-
[](https://app.netlify.com/sites/formkit-primevue/deploys)
|
|
20
|
-
|
|
21
|
-
## Docs
|
|
22
|
-
|
|
23
|
-
[Docs](https://sfxcode.github.io/formkit-primevue/)
|
|
24
|
-
|
|
25
|
-
[Demo/Playground](https://formkit-primevue.netlify.app/)
|
|
26
|
-
|
|
27
|
-
## Usage
|
|
28
|
-
|
|
29
|
-
### Configuration
|
|
30
|
-
|
|
31
|
-
Add *formkit.config.ts*
|
|
32
|
-
|
|
33
|
-
```typescript
|
|
34
|
-
import { defaultConfig, plugin } from '@formkit/vue'
|
|
35
|
-
import { primeInputs } from '@sfxcode/formkit-primevue'
|
|
36
|
-
|
|
37
|
-
app.use(plugin, defaultConfig({
|
|
38
|
-
locales: { de, en },
|
|
39
|
-
// Define the active locale
|
|
40
|
-
locale: 'en',
|
|
41
|
-
inputs: primeInputs,
|
|
42
|
-
}))
|
|
9
|
+
```bash
|
|
10
|
+
npm install
|
|
43
11
|
```
|
|
44
12
|
|
|
45
|
-
|
|
13
|
+
- Run the unit tests:
|
|
46
14
|
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
import { primeInputs, primeOutputs } from '@sfxcode/formkit-primevue'
|
|
50
|
-
|
|
51
|
-
app.use(plugin, defaultConfig({
|
|
52
|
-
locales: { de, en },
|
|
53
|
-
// Define the active locale
|
|
54
|
-
locale: 'en',
|
|
55
|
-
inputs: { ...primeInputs, ...primeOutputs },
|
|
56
|
-
}))
|
|
15
|
+
```bash
|
|
16
|
+
npm run test
|
|
57
17
|
```
|
|
58
18
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
### Nuxt
|
|
62
|
-
|
|
63
|
-
[FormKit-PrimeVue-Nuxt](https://github.com/sfxcode/formkit-primevue-nuxt) module available.
|
|
64
|
-
|
|
65
|
-
Features:
|
|
66
|
-
|
|
67
|
-
- add PrimeVue Nuxt Module
|
|
68
|
-
- add FormKit Nuxt Module
|
|
69
|
-
- add i18n Nuxt Module
|
|
70
|
-
- Default Configuration for FormKit (with PrimeVue components) is provided (can be disabled if needed)
|
|
71
|
-
- AutoImport of PrimeVue Form Components
|
|
72
|
-
- PrimeIcons are loaded by Default
|
|
73
|
-
- FormKit Styling of this package is loaded by default
|
|
74
|
-
- AutoImport of Composables
|
|
75
|
-
- AutoImport of Components
|
|
76
|
-
|
|
77
|
-
## Limitations
|
|
78
|
-
|
|
79
|
-
Prefixing of the PrimeVue component names is not supported.
|
|
19
|
+
- Build the library:
|
|
80
20
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
[useInputEditorSchema](https://github.com/sfxcode/formkit-primevue/blob/main/src/composables/useInputEditorSchema.ts) provide functions for a component schema generation builder
|
|
86
|
-
|
|
87
|
-
### Basic Styling
|
|
88
|
-
|
|
89
|
-
Basic styling is provided with the [formkit-primevue.scss](https://github.com/sfxcode/formkit-primevue/blob/main/src/sass/formkit-primevue.scss) file or the corresponding css file in the package.
|
|
90
|
-
|
|
91
|
-
Features:
|
|
92
|
-
|
|
93
|
-
- Width of all text and dropdown elements is set to 100%
|
|
94
|
-
- Error Color by variable (--formkit-error-color)
|
|
95
|
-
- Some margins, font sizes ...
|
|
96
|
-
|
|
97
|
-
You can use it or take it as base for your own styling.
|
|
98
|
-
|
|
99
|
-
### Extended Styling
|
|
100
|
-
|
|
101
|
-
- Styling outerClas, innerClass .... is provided by FormKit
|
|
102
|
-
- All inputs, outputs are wrapped in a div with a **p-formkit** class
|
|
103
|
-
- Most of the Prime Input Components have access to class / styles attributes
|
|
104
|
-
- PT and PTOptions are available ([https://primevue.org/passthrough/](https://primevue.org/passthrough/))
|
|
105
|
-
- [Styling](https://formkit-primevue.netlify.app/styling/base) and [PT](https://formkit-primevue.netlify.app/styling/passThrough) demo available
|
|
106
|
-
- [Grid](https://formkit-primevue.netlify.app/styling/grid) Demo of the provided grid styling (col-[1-12])
|
|
107
|
-
|
|
108
|
-
### Samples
|
|
109
|
-
|
|
110
|
-
Some samples for common tasks are available
|
|
111
|
-
|
|
112
|
-
- [Repeater](https://formkit-primevue.netlify.app/samples/repeater) Use Repeater composable for using repeating values in your schema
|
|
113
|
-
- [Input Editor](https://formkit-primevue.netlify.app/samples/inputEditor) Edit FormKit schema on the based on a provided composable
|
|
114
|
-
- [Form Editor](https://formkit-primevue.netlify.app/samples/formEditor) Basic demo as starter to create Forms visually
|
|
115
|
-
|
|
116
|
-
## Showcases
|
|
117
|
-
|
|
118
|
-
[Demo Application](https://formkit-primevue.netlify.app/)
|
|
119
|
-
|
|
120
|
-
[Nuxt 3 PrimeVue Starter](https://github.com/sfxcode/nuxt3-primevue-starter) and [Vite PrimeVue Starter](https://github.com/sfxcode/vite-primevue-starter) with Formkit support available.
|
|
121
|
-
|
|
122
|
-
## Supported Inputs for PrimeVue 4
|
|
123
|
-
|
|
124
|
-
- AutoComplete
|
|
125
|
-
- CascadeSelect
|
|
126
|
-
- Checkbox
|
|
127
|
-
- ColorPicker
|
|
128
|
-
- DatePicker
|
|
129
|
-
- Editor (HTML Editor - if you register the editor component, make sure to import quill)
|
|
130
|
-
- InputMask
|
|
131
|
-
- InputNumber
|
|
132
|
-
- InputOtp
|
|
133
|
-
- InputText
|
|
134
|
-
- Knob
|
|
135
|
-
- Listbox
|
|
136
|
-
- MultiSelect
|
|
137
|
-
- Password
|
|
138
|
-
- RadioButton
|
|
139
|
-
- Rating
|
|
140
|
-
- Select
|
|
141
|
-
- SelectButton
|
|
142
|
-
- Slider
|
|
143
|
-
- Textarea
|
|
144
|
-
- ToggleButton
|
|
145
|
-
- ToggleSwitch
|
|
146
|
-
- TreeSelect
|
|
147
|
-
|
|
148
|
-

|
|
21
|
+
```bash
|
|
22
|
+
npm run build
|
|
23
|
+
```
|