@sfxcode/formkit-primevue 3.3.5 → 3.3.7
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/LICENSE +21 -0
- package/README.md +138 -13
- package/components.d.ts +1 -0
- package/dist/components/FormKitDataDebug.d.vue.ts +24 -0
- package/dist/components/FormKitDataDebug.vue +9 -5
- package/dist/components/FormKitDataDebug.vue.d.ts +24 -0
- package/dist/components/FormKitDataEdit.d.vue.ts +180 -0
- package/dist/components/FormKitDataEdit.vue +46 -53
- package/dist/components/FormKitDataEdit.vue.d.ts +180 -0
- package/dist/components/FormKitDataView.d.vue.ts +73 -0
- package/dist/components/FormKitDataView.vue +27 -20
- package/dist/components/FormKitDataView.vue.d.ts +73 -0
- package/dist/components/FormKitIcon.d.vue.ts +39 -0
- package/dist/components/FormKitIcon.vue +13 -6
- package/dist/components/FormKitIcon.vue.d.ts +39 -0
- package/dist/components/FormKitPrefix.d.vue.ts +7 -0
- package/dist/components/FormKitPrefix.vue +3 -3
- package/dist/components/FormKitPrefix.vue.d.ts +7 -0
- package/dist/components/FormKitSuffix.d.vue.ts +7 -0
- package/dist/components/FormKitSuffix.vue +3 -3
- package/dist/components/FormKitSuffix.vue.d.ts +7 -0
- package/dist/components/PrimeAutoComplete.d.vue.ts +31 -0
- package/dist/components/PrimeAutoComplete.vue +86 -41
- package/dist/components/PrimeAutoComplete.vue.d.ts +31 -0
- package/dist/components/PrimeCascadeSelect.d.vue.ts +28 -0
- package/dist/components/PrimeCascadeSelect.vue +26 -7
- package/dist/components/PrimeCascadeSelect.vue.d.ts +28 -0
- package/dist/components/PrimeCheckbox.d.vue.ts +27 -0
- package/dist/components/PrimeCheckbox.vue +29 -9
- package/dist/components/PrimeCheckbox.vue.d.ts +27 -0
- package/dist/components/PrimeColorPicker.d.vue.ts +24 -0
- package/dist/components/PrimeColorPicker.vue +22 -7
- package/dist/components/PrimeColorPicker.vue.d.ts +24 -0
- package/dist/components/PrimeDatePicker.d.vue.ts +63 -0
- package/dist/components/PrimeDatePicker.vue +73 -17
- package/dist/components/PrimeDatePicker.vue.d.ts +63 -0
- package/dist/components/PrimeInputMask.d.vue.ts +28 -0
- package/dist/components/PrimeInputMask.vue +29 -10
- package/dist/components/PrimeInputMask.vue.d.ts +28 -0
- package/dist/components/PrimeInputNumber.d.vue.ts +36 -0
- package/dist/components/PrimeInputNumber.vue +56 -21
- package/dist/components/PrimeInputNumber.vue.d.ts +36 -0
- package/dist/components/PrimeInputOtp.d.vue.ts +26 -0
- package/dist/components/PrimeInputOtp.vue +24 -7
- package/dist/components/PrimeInputOtp.vue.d.ts +26 -0
- package/dist/components/PrimeInputText.d.vue.ts +24 -0
- package/dist/components/PrimeInputText.vue +25 -10
- package/dist/components/PrimeInputText.vue.d.ts +24 -0
- package/dist/components/PrimeKnob.d.vue.ts +31 -0
- package/dist/components/PrimeKnob.vue +37 -12
- package/dist/components/PrimeKnob.vue.d.ts +31 -0
- package/dist/components/PrimeListbox.d.vue.ts +42 -0
- package/dist/components/PrimeListbox.vue +39 -7
- package/dist/components/PrimeListbox.vue.d.ts +42 -0
- package/dist/components/PrimeMultiSelect.d.vue.ts +53 -0
- package/dist/components/PrimeMultiSelect.vue +52 -7
- package/dist/components/PrimeMultiSelect.vue.d.ts +53 -0
- package/dist/components/PrimeOutputBoolean.d.vue.ts +16 -0
- package/dist/components/PrimeOutputBoolean.vue +27 -28
- package/dist/components/PrimeOutputBoolean.vue.d.ts +16 -0
- package/dist/components/PrimeOutputDate.d.vue.ts +16 -0
- package/dist/components/PrimeOutputDate.vue +33 -33
- package/dist/components/PrimeOutputDate.vue.d.ts +16 -0
- package/dist/components/PrimeOutputDuration.d.vue.ts +16 -0
- package/dist/components/PrimeOutputDuration.vue +19 -23
- package/dist/components/PrimeOutputDuration.vue.d.ts +16 -0
- package/dist/components/PrimeOutputLink.d.vue.ts +16 -0
- package/dist/components/PrimeOutputLink.vue +27 -29
- package/dist/components/PrimeOutputLink.vue.d.ts +16 -0
- package/dist/components/PrimeOutputList.d.vue.ts +23 -0
- package/dist/components/PrimeOutputList.vue +42 -26
- package/dist/components/PrimeOutputList.vue.d.ts +23 -0
- package/dist/components/PrimeOutputNumber.d.vue.ts +16 -0
- package/dist/components/PrimeOutputNumber.vue +39 -36
- package/dist/components/PrimeOutputNumber.vue.d.ts +16 -0
- package/dist/components/PrimeOutputReference.d.vue.ts +16 -0
- package/dist/components/PrimeOutputReference.vue +30 -32
- package/dist/components/PrimeOutputReference.vue.d.ts +16 -0
- package/dist/components/PrimeOutputText.d.vue.ts +22 -0
- package/dist/components/PrimeOutputText.vue +53 -53
- package/dist/components/PrimeOutputText.vue.d.ts +22 -0
- package/dist/components/PrimePassword.d.vue.ts +33 -0
- package/dist/components/PrimePassword.vue +32 -11
- package/dist/components/PrimePassword.vue.d.ts +33 -0
- package/dist/components/PrimeRadioButton.d.vue.ts +28 -0
- package/dist/components/PrimeRadioButton.vue +29 -19
- package/dist/components/PrimeRadioButton.vue.d.ts +28 -0
- package/dist/components/PrimeRating.d.vue.ts +24 -0
- package/dist/components/PrimeRating.vue +22 -7
- package/dist/components/PrimeRating.vue.d.ts +24 -0
- package/dist/components/PrimeSelect.d.vue.ts +50 -0
- package/dist/components/PrimeSelect.vue +49 -7
- package/dist/components/PrimeSelect.vue.d.ts +50 -0
- package/dist/components/PrimeSelectButton.d.vue.ts +28 -0
- package/dist/components/PrimeSelectButton.vue +27 -7
- package/dist/components/PrimeSelectButton.vue.d.ts +28 -0
- package/dist/components/PrimeSlider.d.vue.ts +26 -0
- package/dist/components/PrimeSlider.vue +28 -10
- package/dist/components/PrimeSlider.vue.d.ts +26 -0
- package/dist/components/PrimeTextarea.d.vue.ts +25 -0
- package/dist/components/PrimeTextarea.vue +23 -7
- package/dist/components/PrimeTextarea.vue.d.ts +25 -0
- package/dist/components/PrimeToggleButton.d.vue.ts +26 -0
- package/dist/components/PrimeToggleButton.vue +25 -7
- package/dist/components/PrimeToggleButton.vue.d.ts +26 -0
- package/dist/components/PrimeToggleSwitch.d.vue.ts +23 -0
- package/dist/components/PrimeToggleSwitch.vue +23 -8
- package/dist/components/PrimeToggleSwitch.vue.d.ts +23 -0
- package/dist/components/PrimeTreeSelect.d.vue.ts +32 -0
- package/dist/components/PrimeTreeSelect.vue +30 -7
- package/dist/components/PrimeTreeSelect.vue.d.ts +32 -0
- package/dist/components/index.d.ts +23 -23
- package/dist/composables/index.d.ts +8 -8
- package/dist/composables/index.js +8 -8
- package/dist/composables/index.mjs +8 -8
- package/dist/composables/useFormKitInput.js +1 -5
- package/dist/composables/useFormKitInput.mjs +1 -13
- package/dist/composables/useFormKitRepeater.js +1 -1
- package/dist/composables/useFormKitRepeater.mjs +17 -45
- package/dist/composables/useFormKitSchema.mjs +2 -10
- package/dist/composables/useInputEditor.js +4 -4
- package/dist/composables/useInputEditor.mjs +24 -52
- package/dist/composables/useInputEditorSchema.js +3 -3
- package/dist/composables/useInputEditorSchema.mjs +17 -25
- package/dist/composables/useOutputDuration.mjs +6 -3
- package/dist/definitions/index.js +2 -2
- package/dist/definitions/index.mjs +2 -2
- package/dist/definitions/input.d.ts +1 -1
- package/dist/definitions/input.mjs +15 -301
- package/dist/definitions/output.d.ts +1 -1
- package/dist/index.d.ts +48 -48
- package/dist/index.js +12 -12
- package/dist/index.mjs +3 -9
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.mjs +27 -31
- package/dist/sass/formkit-primevue.scss +101 -99
- package/package.json +80 -45
- package/dist/vue.d.ts +0 -5
package/dist/plugins/index.mjs
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
export function addPrimeAsteriskPlugin(node) {
|
|
2
|
-
if (!node.props.type.startsWith("prime") || node.props.type.startsWith("primeOutput"))
|
|
2
|
+
if (!node.props.type.startsWith("prime") || node.props.type.startsWith("primeOutput"))
|
|
3
|
+
return;
|
|
3
4
|
node.on("created", () => {
|
|
4
5
|
if (node.props.definition?.schema) {
|
|
5
6
|
const schemaFn = node.props.definition?.schema;
|
|
6
7
|
node.props.definition.schema = (sectionsSchema = {}) => {
|
|
7
8
|
sectionsSchema.label = {
|
|
8
|
-
children: [
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
children: ["*"]
|
|
17
|
-
}
|
|
18
|
-
]
|
|
9
|
+
children: ["$label", {
|
|
10
|
+
$el: "span",
|
|
11
|
+
if: "$state.required",
|
|
12
|
+
attrs: {
|
|
13
|
+
class: "p-formkit-asterisk"
|
|
14
|
+
},
|
|
15
|
+
children: ["*"]
|
|
16
|
+
}]
|
|
19
17
|
};
|
|
20
18
|
return schemaFn(sectionsSchema);
|
|
21
19
|
};
|
|
@@ -23,31 +21,29 @@ export function addPrimeAsteriskPlugin(node) {
|
|
|
23
21
|
});
|
|
24
22
|
}
|
|
25
23
|
export function addLabelPlugin(node) {
|
|
26
|
-
if (!node.props.type.startsWith("prime"))
|
|
24
|
+
if (!node.props.type.startsWith("prime"))
|
|
25
|
+
return;
|
|
27
26
|
node.on("created", () => {
|
|
28
27
|
if (node.props.definition?.schema) {
|
|
29
28
|
const schemaFn = node.props.definition?.schema;
|
|
30
29
|
node.props.definition.schema = (sectionsSchema = {}) => {
|
|
31
30
|
sectionsSchema.label = {
|
|
32
|
-
children: [
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
31
|
+
children: [{
|
|
32
|
+
$el: "span",
|
|
33
|
+
attrs: {
|
|
34
|
+
title: "$help",
|
|
35
|
+
class: "p-formkit-label"
|
|
36
|
+
},
|
|
37
|
+
children: ["$label"]
|
|
38
|
+
}, {
|
|
39
|
+
$el: "span",
|
|
40
|
+
if: "$state.required",
|
|
41
|
+
attrs: {
|
|
42
|
+
class: "p-formkit-required",
|
|
43
|
+
title: "$help"
|
|
40
44
|
},
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
if: "$state.required",
|
|
44
|
-
attrs: {
|
|
45
|
-
class: "p-formkit-required",
|
|
46
|
-
title: "$help"
|
|
47
|
-
},
|
|
48
|
-
children: ["*"]
|
|
49
|
-
}
|
|
50
|
-
]
|
|
45
|
+
children: ["*"]
|
|
46
|
+
}]
|
|
51
47
|
};
|
|
52
48
|
sectionsSchema.help = {
|
|
53
49
|
children: []
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
@use
|
|
2
|
-
@use
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use 'sass:map';
|
|
3
3
|
|
|
4
4
|
$gutter-width: 0.5rem;
|
|
5
5
|
|
|
6
6
|
// Breakpoints e.g. https://tailwindcss.com/docs/responsive-design
|
|
7
7
|
$grid-breakpoints: (
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
sm: 640px,
|
|
9
|
+
md: 768px,
|
|
10
|
+
lg: 1024px,
|
|
11
|
+
xl: 1280px,
|
|
12
|
+
xxl: 1536px
|
|
13
13
|
) !default;
|
|
14
14
|
|
|
15
15
|
@function breakpoint-min($name, $breakpoints: $grid-breakpoints) {
|
|
@@ -69,12 +69,7 @@ $grid-breakpoints: (
|
|
|
69
69
|
width: 100%;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
.p-inputtext,
|
|
73
|
-
.p-textarea,
|
|
74
|
-
.p-password,
|
|
75
|
-
.p-multiselect,
|
|
76
|
-
.p-select,
|
|
77
|
-
.p-editor {
|
|
72
|
+
.p-inputtext, .p-textarea, .p-password, .p-multiselect, .p-select, .p-editor {
|
|
78
73
|
box-sizing: border-box;
|
|
79
74
|
width: 100%;
|
|
80
75
|
|
|
@@ -82,6 +77,7 @@ $grid-breakpoints: (
|
|
|
82
77
|
width: 2rem;
|
|
83
78
|
}
|
|
84
79
|
}
|
|
80
|
+
|
|
85
81
|
}
|
|
86
82
|
}
|
|
87
83
|
|
|
@@ -90,6 +86,7 @@ $grid-breakpoints: (
|
|
|
90
86
|
font-size: 0.8rem;
|
|
91
87
|
color: var(--text-color-secondary);
|
|
92
88
|
}
|
|
89
|
+
|
|
93
90
|
}
|
|
94
91
|
|
|
95
92
|
// Label for single form element
|
|
@@ -106,8 +103,7 @@ $grid-breakpoints: (
|
|
|
106
103
|
> * {
|
|
107
104
|
margin-right: 0.5rem;
|
|
108
105
|
|
|
109
|
-
&:last-child,
|
|
110
|
-
&:only-child {
|
|
106
|
+
&:last-child, &:only-child {
|
|
111
107
|
margin-right: 0;
|
|
112
108
|
}
|
|
113
109
|
}
|
|
@@ -119,7 +115,7 @@ $grid-breakpoints: (
|
|
|
119
115
|
flex-wrap: wrap;
|
|
120
116
|
gap: 0.5rem;
|
|
121
117
|
|
|
122
|
-
.p-formkit-option
|
|
118
|
+
.p-formkit-option {
|
|
123
119
|
display: flex;
|
|
124
120
|
align-items: center;
|
|
125
121
|
label {
|
|
@@ -159,9 +155,10 @@ $grid-breakpoints: (
|
|
|
159
155
|
button {
|
|
160
156
|
margin-right: 0.5rem;
|
|
161
157
|
}
|
|
158
|
+
|
|
162
159
|
}
|
|
163
160
|
|
|
164
|
-
.p-action-buttons
|
|
161
|
+
.p-action-buttons {
|
|
165
162
|
margin-top: 0.25rem;
|
|
166
163
|
.p-button {
|
|
167
164
|
margin-right: 0.5rem;
|
|
@@ -184,117 +181,117 @@ $grid-breakpoints: (
|
|
|
184
181
|
|
|
185
182
|
// data view only
|
|
186
183
|
.p-formkit-data-view {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
184
|
+
.formkit-outer {
|
|
185
|
+
padding-bottom: 0.5rem;
|
|
186
|
+
}
|
|
190
187
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
188
|
+
&.form-horizontal {
|
|
189
|
+
padding-bottom: 0.8rem;
|
|
190
|
+
}
|
|
194
191
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
192
|
+
.formkit-help {
|
|
193
|
+
padding-top: 0.25rem;
|
|
194
|
+
margin: 0;
|
|
195
|
+
}
|
|
199
196
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
}
|
|
197
|
+
ul, ol {
|
|
198
|
+
padding-inline-start: 1rem;
|
|
199
|
+
margin-block-start: 0;
|
|
200
|
+
margin-block-end: 0;
|
|
201
|
+
}
|
|
206
202
|
}
|
|
207
203
|
|
|
208
204
|
// data edit only
|
|
209
205
|
.p-formkit-data-edit {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
206
|
+
.formkit-label {
|
|
207
|
+
//font-weight: normal;
|
|
208
|
+
}
|
|
213
209
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
210
|
+
// specific checkbox stylings
|
|
211
|
+
.formkit-outer[data-type="primeCheckbox"] {
|
|
212
|
+
//padding-left: 0;
|
|
217
213
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
214
|
+
.formkit-wrapper {
|
|
215
|
+
display: flex;
|
|
216
|
+
flex-wrap: wrap;
|
|
221
217
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
218
|
+
.formkit-inner {
|
|
219
|
+
width: auto !important;
|
|
220
|
+
}
|
|
225
221
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
222
|
+
label {
|
|
223
|
+
width: auto;
|
|
224
|
+
order: 2;
|
|
225
|
+
padding: 0.125rem 0;
|
|
230
226
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
227
|
+
&:after {
|
|
228
|
+
content: "";
|
|
229
|
+
}
|
|
234
230
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
231
|
+
// styling of output when label is used in schema
|
|
232
|
+
+ .formkit-inner {
|
|
233
|
+
margin-left: 0 !important;
|
|
234
|
+
order: 1;
|
|
235
|
+
flex-basis: 2rem;
|
|
236
|
+
flex-grow: 0;
|
|
237
|
+
flex-shrink: 0;
|
|
238
|
+
overflow: hidden;
|
|
239
|
+
// styling of suffix when suffix is used in addition to label
|
|
240
|
+
&:has( label) {
|
|
241
|
+
flex-grow: 1;
|
|
242
|
+
flex-basis: 100%;
|
|
243
|
+
}
|
|
247
244
|
}
|
|
248
245
|
}
|
|
249
|
-
}
|
|
250
246
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
}
|
|
247
|
+
// styling when both prefix and suffix are used in schema
|
|
248
|
+
label:first-child:nth-last-child(3), label:first-child:nth-last-child(3) ~ label {
|
|
249
|
+
width: auto;
|
|
250
|
+
}
|
|
256
251
|
|
|
257
|
-
|
|
258
|
-
|
|
252
|
+
label:first-child:nth-last-child(3) {
|
|
253
|
+
order: 1;
|
|
259
254
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
255
|
+
+ div.p-checkbox {
|
|
256
|
+
order: 2;
|
|
257
|
+
width: auto;
|
|
258
|
+
}
|
|
263
259
|
}
|
|
264
|
-
}
|
|
265
260
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
261
|
+
label:first-child:nth-last-child(3) ~ label {
|
|
262
|
+
order: 3
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
// end styling when both prefix and suffix are used in schema
|
|
269
266
|
|
|
270
|
-
// end styling when both prefix and suffix are used in schema
|
|
271
267
|
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
268
|
+
// styling of output when only suffix is used in schema
|
|
269
|
+
.formkit-inner:first-child {
|
|
270
|
+
margin-left: 0 !important;
|
|
275
271
|
|
|
276
|
-
|
|
277
|
-
|
|
272
|
+
.p-formkit {
|
|
273
|
+
display: flex;
|
|
274
|
+
}
|
|
278
275
|
}
|
|
279
|
-
}
|
|
280
276
|
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
277
|
+
.p-checkbox:not(:only-child) {
|
|
278
|
+
width: 2rem;
|
|
279
|
+
overflow: hidden;
|
|
280
|
+
}
|
|
284
281
|
}
|
|
285
|
-
}
|
|
286
282
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
283
|
+
.formkit-help {
|
|
284
|
+
width: auto !important;
|
|
285
|
+
//padding-left: 2rem;
|
|
286
|
+
}
|
|
290
287
|
}
|
|
291
|
-
}
|
|
292
288
|
}
|
|
293
289
|
|
|
290
|
+
|
|
291
|
+
|
|
294
292
|
// Debug
|
|
295
293
|
.p-formkit-data-debug {
|
|
296
|
-
pre,
|
|
297
|
-
span {
|
|
294
|
+
pre, span {
|
|
298
295
|
font-size: 0.75rem;
|
|
299
296
|
line-height: 1rem;
|
|
300
297
|
}
|
|
@@ -325,7 +322,9 @@ $grid-breakpoints: (
|
|
|
325
322
|
|
|
326
323
|
@include media-breakpoint-up(md) {
|
|
327
324
|
.formkit-form {
|
|
325
|
+
|
|
328
326
|
&.form-horizontal {
|
|
327
|
+
|
|
329
328
|
.formkit-wrapper {
|
|
330
329
|
display: flex;
|
|
331
330
|
|
|
@@ -347,6 +346,7 @@ $grid-breakpoints: (
|
|
|
347
346
|
}
|
|
348
347
|
}
|
|
349
348
|
}
|
|
349
|
+
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
.p-formkit-data-view & {
|
|
@@ -358,7 +358,9 @@ $grid-breakpoints: (
|
|
|
358
358
|
}
|
|
359
359
|
|
|
360
360
|
.p-formkit-data-edit & {
|
|
361
|
+
|
|
361
362
|
&.form-horizontal {
|
|
363
|
+
|
|
362
364
|
.formkit-outer {
|
|
363
365
|
width: 100%;
|
|
364
366
|
|
|
@@ -378,7 +380,7 @@ $grid-breakpoints: (
|
|
|
378
380
|
margin-left: auto;
|
|
379
381
|
|
|
380
382
|
.p-formkit {
|
|
381
|
-
display: flex
|
|
383
|
+
display: flex
|
|
382
384
|
}
|
|
383
385
|
|
|
384
386
|
label {
|
|
@@ -388,8 +390,7 @@ $grid-breakpoints: (
|
|
|
388
390
|
}
|
|
389
391
|
}
|
|
390
392
|
|
|
391
|
-
.formkit-help,
|
|
392
|
-
.formkit-messages {
|
|
393
|
+
.formkit-help, .formkit-messages {
|
|
393
394
|
width: calc((8 / 12) * 100%);
|
|
394
395
|
margin-left: auto;
|
|
395
396
|
}
|
|
@@ -397,3 +398,4 @@ $grid-breakpoints: (
|
|
|
397
398
|
}
|
|
398
399
|
}
|
|
399
400
|
}
|
|
401
|
+
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/formkit-primevue",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "3.3.7",
|
|
5
|
+
"packageManager": "pnpm@10.30.3+sha512.c961d1e0a2d8e354ecaa5166b822516668b7f44cb5bd95122d590dd81922f606f5473b6d23ec4a5be05e7fcd18e8488d47d978bbe981872f1145d06e9a740017",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Tom",
|
|
8
8
|
"email": "tom@sfxcode.com"
|
|
@@ -10,30 +10,12 @@
|
|
|
10
10
|
"contributors": [
|
|
11
11
|
"sfxcode <tom@sfxcode.com>"
|
|
12
12
|
],
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"homepage": "https://github.com/sfxcode/formkit-primevue",
|
|
13
15
|
"repository": {
|
|
14
16
|
"type": "git",
|
|
15
17
|
"url": "git+https://github.com/sfxcode/formkit-primevue.git"
|
|
16
18
|
},
|
|
17
|
-
"files": [
|
|
18
|
-
"*.css",
|
|
19
|
-
"*.scss",
|
|
20
|
-
"components.d.ts",
|
|
21
|
-
"dist"
|
|
22
|
-
],
|
|
23
|
-
"type": "module",
|
|
24
|
-
"main": "./dist/index.js",
|
|
25
|
-
"module": "./dist/index.mjs",
|
|
26
|
-
"types": "./dist/index.d.ts",
|
|
27
|
-
"typesVersions": {
|
|
28
|
-
"*": {
|
|
29
|
-
"*": [
|
|
30
|
-
"*",
|
|
31
|
-
"dist/*",
|
|
32
|
-
"dist/*.d.ts",
|
|
33
|
-
"dist/*/index.d.ts"
|
|
34
|
-
]
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
19
|
"exports": {
|
|
38
20
|
".": {
|
|
39
21
|
"types": "./dist/index.d.ts",
|
|
@@ -69,15 +51,43 @@
|
|
|
69
51
|
"require": "./dist/style.css"
|
|
70
52
|
}
|
|
71
53
|
},
|
|
54
|
+
"main": "./dist/index.js",
|
|
55
|
+
"module": "./dist/index.mjs",
|
|
56
|
+
"types": "./dist/index.d.ts",
|
|
57
|
+
"typesVersions": {
|
|
58
|
+
"*": {
|
|
59
|
+
"*": [
|
|
60
|
+
"*",
|
|
61
|
+
"dist/*",
|
|
62
|
+
"dist/*.d.ts",
|
|
63
|
+
"dist/*/index.d.ts"
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"files": [
|
|
68
|
+
"*.css",
|
|
69
|
+
"*.scss",
|
|
70
|
+
"components.d.ts",
|
|
71
|
+
"dist"
|
|
72
|
+
],
|
|
72
73
|
"scripts": {
|
|
73
74
|
"build": "vue-tsc --build --force && unbuild",
|
|
74
|
-
"dev": "
|
|
75
|
+
"dev": "vite serve dev",
|
|
75
76
|
"dev:build": "vite build dev",
|
|
76
77
|
"dev:preview": "vite preview dev",
|
|
77
|
-
"release": "npm run build && changelogen --patch --release && npm publish --access public && git push --follow-tags",
|
|
78
|
+
"release": "npm run lint && npm run build && changelogen --patch --release && npm publish --access public && git push --follow-tags",
|
|
78
79
|
"lint": "eslint .",
|
|
79
80
|
"lint:fix": "eslint . --fix",
|
|
80
|
-
"prepublishOnly": "pnpm build"
|
|
81
|
+
"prepublishOnly": "pnpm build",
|
|
82
|
+
"docs:dev": "vitepress dev docs",
|
|
83
|
+
"docs:build": "vitepress build docs",
|
|
84
|
+
"docs:serve": "vitepress serve docs",
|
|
85
|
+
"test": "vitest",
|
|
86
|
+
"test:ui": "vitest --ui",
|
|
87
|
+
"coverage": "vitest run --coverage"
|
|
88
|
+
},
|
|
89
|
+
"peerDependencies": {
|
|
90
|
+
"vue": "^3.4.0"
|
|
81
91
|
},
|
|
82
92
|
"dependencies": {
|
|
83
93
|
"@formkit/addons": "^1.7.2",
|
|
@@ -88,26 +98,51 @@
|
|
|
88
98
|
"@intlify/core": "^11.3.0",
|
|
89
99
|
"primeicons": "^7.0.0",
|
|
90
100
|
"primevue": "^4.5.4",
|
|
91
|
-
"vue-i18n": "^11.3.0"
|
|
92
|
-
"consola": "3.4.2"
|
|
101
|
+
"vue-i18n": "^11.3.0"
|
|
93
102
|
},
|
|
94
103
|
"devDependencies": {
|
|
95
|
-
"@
|
|
96
|
-
"@
|
|
97
|
-
"@
|
|
98
|
-
"@
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
104
|
+
"@antfu/eslint-config": "^7.7.2",
|
|
105
|
+
"@formkit/core": "^1.6.9",
|
|
106
|
+
"@formkit/drag-and-drop": "^0.5.3",
|
|
107
|
+
"@primeuix/themes": "^2.0.3",
|
|
108
|
+
"@types/node": "^25.5.0",
|
|
109
|
+
"@unocss/preset-icons": "66.6.6",
|
|
110
|
+
"@unocss/preset-uno": "66.6.6",
|
|
111
|
+
"@vitejs/plugin-vue": "^6.0.5",
|
|
112
|
+
"@vitest/coverage-v8": "^4.1.0",
|
|
113
|
+
"@vitest/ui": "^4.1.0",
|
|
114
|
+
"@vue/compiler-sfc": "^3.5.30",
|
|
115
|
+
"@vue/server-renderer": "^3.5.30",
|
|
116
|
+
"@vue/test-utils": "^2.4.6",
|
|
117
|
+
"@vue/tsconfig": "^0.9.0",
|
|
118
|
+
"@vueuse/core": "^14.2.1",
|
|
119
|
+
"@vueuse/head": "^2.0.0",
|
|
120
|
+
"changelogen": "^0.6.2",
|
|
121
|
+
"chart.js": "^4.5.1",
|
|
122
|
+
"consola": "^3.4.2",
|
|
123
|
+
"cookie": "^1.1.1",
|
|
124
|
+
"esbuild": "^0.27.4",
|
|
125
|
+
"eslint": "^10.0.3",
|
|
126
|
+
"happy-dom": "^20.8.4",
|
|
127
|
+
"json-editor-vue": "^0.18.1",
|
|
128
|
+
"mkdist": "^2.4.1",
|
|
129
|
+
"sass": "^1.98.0",
|
|
130
|
+
"tslib": "^2.8.1",
|
|
131
|
+
"typescript": "^5.9.3",
|
|
132
|
+
"unbuild": "^3.6.1",
|
|
133
|
+
"unocss": "66.6.6",
|
|
134
|
+
"unplugin-auto-import": "^21.0.0",
|
|
135
|
+
"unplugin-vue-components": "^31.0.0",
|
|
136
|
+
"vite": "^8.0.0",
|
|
137
|
+
"vite-plugin-dts": "^4.5.4",
|
|
138
|
+
"vite-plugin-eslint": "^1.8.1",
|
|
139
|
+
"vite-plugin-pages": "^0.33.3",
|
|
140
|
+
"vite-ssg": "^28.3.0",
|
|
141
|
+
"vitepress": "2.0.0-alpha.16",
|
|
142
|
+
"vitest": "^4.1.0",
|
|
143
|
+
"vue": "^3.5.30",
|
|
144
|
+
"vue-demi": "^0.14.10",
|
|
145
|
+
"vue-router": "^5.0.3",
|
|
146
|
+
"vue-tsc": "^3.2.5"
|
|
112
147
|
}
|
|
113
148
|
}
|