@sfxcode/formkit-primevue 2.3.7 → 2.3.9
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/dist/components/FormKitDataEdit.vue +10 -2
- package/dist/components/FormKitDataView.vue +1 -3
- package/dist/components/PrimeCheckbox.vue +9 -6
- package/dist/components/PrimeOutputBoolean.vue +9 -4
- package/dist/components/PrimeOutputDate.vue +6 -2
- package/dist/components/PrimeOutputDuration.vue +6 -2
- package/dist/components/PrimeOutputLink.vue +7 -2
- package/dist/components/PrimeOutputList.vue +7 -1
- package/dist/components/PrimeOutputNumber.vue +6 -2
- package/dist/components/PrimeOutputText.vue +7 -1
- package/dist/components/PrimeRadioButton.vue +4 -5
- package/dist/components/PrimeToggleSwitch.vue +9 -6
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +5 -5
- package/dist/composables/index.mjs +2 -2
- package/dist/composables/useFormKitRepeater.d.ts +15 -0
- package/dist/composables/useFormKitRepeater.js +71 -0
- package/dist/composables/useFormKitRepeater.mjs +51 -0
- package/dist/composables/useFormKitSchema.d.ts +6 -1
- package/dist/composables/useFormKitSchema.js +20 -29
- package/dist/composables/useFormKitSchema.mjs +8 -29
- package/dist/composables/useFormKitSection.js +2 -2
- package/dist/composables/useFormKitSection.mjs +2 -2
- package/dist/composables/useInputEditor.js +8 -1
- package/dist/composables/useInputEditor.mjs +10 -3
- package/dist/composables/useInputEditorSchema.d.ts +107 -7
- package/dist/composables/useInputEditorSchema.js +129 -84
- package/dist/composables/useInputEditorSchema.mjs +232 -207
- package/dist/definitions/input.js +23 -23
- package/dist/definitions/input.mjs +26 -49
- package/dist/definitions/output.js +7 -7
- package/dist/definitions/output.mjs +7 -7
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -0
- package/dist/index.mjs +2 -1
- package/dist/sass/formkit-primevue.scss +139 -115
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/composables/useFormKitIcon.d.ts +0 -5
- package/dist/composables/useFormKitIcon.js +0 -23
- package/dist/composables/useFormKitIcon.mjs +0 -13
|
@@ -29,8 +29,7 @@ export const primeAutoCompleteDefinition = createInput(PrimeAutoComplete, {
|
|
|
29
29
|
"unstyled",
|
|
30
30
|
"Select",
|
|
31
31
|
"multiple",
|
|
32
|
-
"typeahead"
|
|
33
|
-
"wrapperClass"
|
|
32
|
+
"typeahead"
|
|
34
33
|
]
|
|
35
34
|
});
|
|
36
35
|
export const primeInputTextDefinition = createInput(PrimeInputText, {
|
|
@@ -39,8 +38,7 @@ export const primeInputTextDefinition = createInput(PrimeInputText, {
|
|
|
39
38
|
"ptOptions",
|
|
40
39
|
"unstyled",
|
|
41
40
|
"placeholder",
|
|
42
|
-
"icon"
|
|
43
|
-
"wrapperClass"
|
|
41
|
+
"icon"
|
|
44
42
|
]
|
|
45
43
|
});
|
|
46
44
|
export const primeInputNumberDefinition = createInput(PrimeInputNumber, {
|
|
@@ -61,8 +59,7 @@ export const primeInputNumberDefinition = createInput(PrimeInputNumber, {
|
|
|
61
59
|
"pt",
|
|
62
60
|
"ptOptions",
|
|
63
61
|
"unstyled",
|
|
64
|
-
"placeholder"
|
|
65
|
-
"wrapperClass"
|
|
62
|
+
"placeholder"
|
|
66
63
|
]
|
|
67
64
|
});
|
|
68
65
|
export const primeInputMaskDefinition = createInput(PrimeInputMask, {
|
|
@@ -77,8 +74,7 @@ export const primeInputMaskDefinition = createInput(PrimeInputMask, {
|
|
|
77
74
|
"invalid",
|
|
78
75
|
"variant",
|
|
79
76
|
"iconLeft",
|
|
80
|
-
"iconRight"
|
|
81
|
-
"wrapperClass"
|
|
77
|
+
"iconRight"
|
|
82
78
|
]
|
|
83
79
|
});
|
|
84
80
|
export const primePasswordDefinition = createInput(PrimePassword, {
|
|
@@ -96,8 +92,7 @@ export const primePasswordDefinition = createInput(PrimePassword, {
|
|
|
96
92
|
"unstyled",
|
|
97
93
|
"placeholder",
|
|
98
94
|
"feedback",
|
|
99
|
-
"toggleMask"
|
|
100
|
-
"wrapperClass"
|
|
95
|
+
"toggleMask"
|
|
101
96
|
]
|
|
102
97
|
});
|
|
103
98
|
export const primeTextareaDefinition = createInput(PrimeTextarea, {
|
|
@@ -107,8 +102,7 @@ export const primeTextareaDefinition = createInput(PrimeTextarea, {
|
|
|
107
102
|
"unstyled",
|
|
108
103
|
"autoResize",
|
|
109
104
|
"rows",
|
|
110
|
-
"placeholder"
|
|
111
|
-
"wrapperClass"
|
|
105
|
+
"placeholder"
|
|
112
106
|
]
|
|
113
107
|
});
|
|
114
108
|
export const primeCheckboxDefinition = createInput(PrimeCheckbox, {
|
|
@@ -121,9 +115,8 @@ export const primeCheckboxDefinition = createInput(PrimeCheckbox, {
|
|
|
121
115
|
"unstyled",
|
|
122
116
|
"indeterminate",
|
|
123
117
|
"variant",
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"wrapperClass"
|
|
118
|
+
"prefix",
|
|
119
|
+
"suffix"
|
|
127
120
|
]
|
|
128
121
|
});
|
|
129
122
|
export const primeToggleSwitchDefinition = createInput(PrimeToggleSwitch, {
|
|
@@ -133,9 +126,8 @@ export const primeToggleSwitchDefinition = createInput(PrimeToggleSwitch, {
|
|
|
133
126
|
"pt",
|
|
134
127
|
"ptOptions",
|
|
135
128
|
"unstyled",
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"wrapperClass"
|
|
129
|
+
"prefix",
|
|
130
|
+
"suffix"
|
|
139
131
|
]
|
|
140
132
|
});
|
|
141
133
|
export const primeInputOtpDefinition = createInput(PrimeInputOtp, {
|
|
@@ -146,8 +138,7 @@ export const primeInputOtpDefinition = createInput(PrimeInputOtp, {
|
|
|
146
138
|
"integerOnly",
|
|
147
139
|
"pt",
|
|
148
140
|
"ptOptions",
|
|
149
|
-
"unstyled"
|
|
150
|
-
"wrapperClass"
|
|
141
|
+
"unstyled"
|
|
151
142
|
]
|
|
152
143
|
});
|
|
153
144
|
export const primeEditorDefinition = createInput(PrimeEditor, {
|
|
@@ -157,8 +148,7 @@ export const primeEditorDefinition = createInput(PrimeEditor, {
|
|
|
157
148
|
"modules",
|
|
158
149
|
"pt",
|
|
159
150
|
"ptOptions",
|
|
160
|
-
"unstyled"
|
|
161
|
-
"wrapperClass"
|
|
151
|
+
"unstyled"
|
|
162
152
|
]
|
|
163
153
|
});
|
|
164
154
|
export const primeSelectDefinition = createInput(PrimeSelect, {
|
|
@@ -195,8 +185,7 @@ export const primeSelectDefinition = createInput(PrimeSelect, {
|
|
|
195
185
|
"emptyMessage",
|
|
196
186
|
"pt",
|
|
197
187
|
"ptOptions",
|
|
198
|
-
"unstyled"
|
|
199
|
-
"wrapperClass"
|
|
188
|
+
"unstyled"
|
|
200
189
|
]
|
|
201
190
|
});
|
|
202
191
|
export const primeMultiSelectDefinition = createInput(PrimeMultiSelect, {
|
|
@@ -236,8 +225,7 @@ export const primeMultiSelectDefinition = createInput(PrimeMultiSelect, {
|
|
|
236
225
|
"pt",
|
|
237
226
|
"placeholder",
|
|
238
227
|
"ptOptions",
|
|
239
|
-
"unstyled"
|
|
240
|
-
"wrapperClass"
|
|
228
|
+
"unstyled"
|
|
241
229
|
]
|
|
242
230
|
});
|
|
243
231
|
export const primeListboxDefinition = createInput(PrimeListbox, {
|
|
@@ -255,8 +243,7 @@ export const primeListboxDefinition = createInput(PrimeListbox, {
|
|
|
255
243
|
"filterLocale",
|
|
256
244
|
"filterMatchMode",
|
|
257
245
|
"autoOptionFocus",
|
|
258
|
-
"selectOnFocus"
|
|
259
|
-
"wrapperClass"
|
|
246
|
+
"selectOnFocus"
|
|
260
247
|
]
|
|
261
248
|
});
|
|
262
249
|
export const primeDatePickerDefinition = createInput(PrimeDatePicker, {
|
|
@@ -304,8 +291,7 @@ export const primeDatePickerDefinition = createInput(PrimeDatePicker, {
|
|
|
304
291
|
"panelClass",
|
|
305
292
|
"pt",
|
|
306
293
|
"ptOptions",
|
|
307
|
-
"unstyled"
|
|
308
|
-
"wrapperClass"
|
|
294
|
+
"unstyled"
|
|
309
295
|
]
|
|
310
296
|
});
|
|
311
297
|
export const primeSliderDefinition = createInput(PrimeSlider, {
|
|
@@ -317,8 +303,7 @@ export const primeSliderDefinition = createInput(PrimeSlider, {
|
|
|
317
303
|
"max",
|
|
318
304
|
"step",
|
|
319
305
|
"range",
|
|
320
|
-
"orientation"
|
|
321
|
-
"wrapperClass"
|
|
306
|
+
"orientation"
|
|
322
307
|
]
|
|
323
308
|
});
|
|
324
309
|
export const primeRatingDefinition = createInput(PrimeRating, {
|
|
@@ -330,8 +315,7 @@ export const primeRatingDefinition = createInput(PrimeRating, {
|
|
|
330
315
|
"offIcon",
|
|
331
316
|
"cancelIcon",
|
|
332
317
|
"ptOptions",
|
|
333
|
-
"pt"
|
|
334
|
-
"wrapperClass"
|
|
318
|
+
"pt"
|
|
335
319
|
]
|
|
336
320
|
});
|
|
337
321
|
export const primeRadioButtonDefinition = createInput(PrimeRadioButton, {
|
|
@@ -340,9 +324,8 @@ export const primeRadioButtonDefinition = createInput(PrimeRadioButton, {
|
|
|
340
324
|
"ptOptions",
|
|
341
325
|
"unstyled",
|
|
342
326
|
"options",
|
|
343
|
-
"
|
|
344
|
-
"
|
|
345
|
-
"wrapperClass"
|
|
327
|
+
"optionsClass",
|
|
328
|
+
"optionClass"
|
|
346
329
|
]
|
|
347
330
|
});
|
|
348
331
|
export const primeKnobDefinition = createInput(PrimeKnob, {
|
|
@@ -359,8 +342,7 @@ export const primeKnobDefinition = createInput(PrimeKnob, {
|
|
|
359
342
|
"valueColor",
|
|
360
343
|
"rangeColor",
|
|
361
344
|
"textColor",
|
|
362
|
-
"valueTemplate"
|
|
363
|
-
"wrapperClass"
|
|
345
|
+
"valueTemplate"
|
|
364
346
|
]
|
|
365
347
|
});
|
|
366
348
|
export const primeColorPickerDefinition = createInput(PrimeColorPicker, {
|
|
@@ -370,8 +352,7 @@ export const primeColorPickerDefinition = createInput(PrimeColorPicker, {
|
|
|
370
352
|
"format",
|
|
371
353
|
"pt",
|
|
372
354
|
"ptOptions",
|
|
373
|
-
"unstyled"
|
|
374
|
-
"wrapperClass"
|
|
355
|
+
"unstyled"
|
|
375
356
|
]
|
|
376
357
|
});
|
|
377
358
|
export const primeToggleButtonDefinition = createInput(PrimeToggleButton, {
|
|
@@ -383,8 +364,7 @@ export const primeToggleButtonDefinition = createInput(PrimeToggleButton, {
|
|
|
383
364
|
"offLabel",
|
|
384
365
|
"onIcon",
|
|
385
366
|
"offIcon",
|
|
386
|
-
"iconPos"
|
|
387
|
-
"wrapperClass"
|
|
367
|
+
"iconPos"
|
|
388
368
|
]
|
|
389
369
|
});
|
|
390
370
|
export const primeSelectButtonDefinition = createInput(PrimeSelectButton, {
|
|
@@ -398,8 +378,7 @@ export const primeSelectButtonDefinition = createInput(PrimeSelectButton, {
|
|
|
398
378
|
"multiple",
|
|
399
379
|
"unselectable",
|
|
400
380
|
"dataKey",
|
|
401
|
-
"options"
|
|
402
|
-
"wrapperClass"
|
|
381
|
+
"options"
|
|
403
382
|
]
|
|
404
383
|
});
|
|
405
384
|
export const primeCascadeSelectDefinition = createInput(PrimeCascadeSelect, {
|
|
@@ -412,8 +391,7 @@ export const primeCascadeSelectDefinition = createInput(PrimeCascadeSelect, {
|
|
|
412
391
|
"placeholder",
|
|
413
392
|
"pt",
|
|
414
393
|
"ptOptions",
|
|
415
|
-
"unstyled"
|
|
416
|
-
"wrapperClass"
|
|
394
|
+
"unstyled"
|
|
417
395
|
]
|
|
418
396
|
});
|
|
419
397
|
export const primeTreeSelectDefinition = createInput(PrimeTreeSelect, {
|
|
@@ -430,8 +408,7 @@ export const primeTreeSelectDefinition = createInput(PrimeTreeSelect, {
|
|
|
430
408
|
"appendTo",
|
|
431
409
|
"scrollHeight",
|
|
432
410
|
"panelClass",
|
|
433
|
-
"variant"
|
|
434
|
-
"wrapperClass"
|
|
411
|
+
"variant"
|
|
435
412
|
]
|
|
436
413
|
});
|
|
437
414
|
export const primeInputs = {
|
|
@@ -14,23 +14,23 @@ var _PrimeOutputDuration = _interopRequireDefault(require("../components/PrimeOu
|
|
|
14
14
|
var _PrimeOutputList = _interopRequireDefault(require("../components/PrimeOutputList.vue"));
|
|
15
15
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
16
|
const primeOutputTextDefinition = exports.primeOutputTextDefinition = (0, _vue.createInput)(_PrimeOutputText.default, {
|
|
17
|
-
props: []
|
|
17
|
+
props: ["prefix", "suffix", "prefixIcon", "suffixIcon"]
|
|
18
18
|
});
|
|
19
19
|
const primeOutputDateDefinition = exports.primeOutputDateDefinition = (0, _vue.createInput)(_PrimeOutputDate.default, {
|
|
20
|
-
props: []
|
|
20
|
+
props: ["prefix", "suffix", "prefixIcon", "suffixIcon"]
|
|
21
21
|
});
|
|
22
22
|
const primeOutputNumberDefinition = exports.primeOutputNumberDefinition = (0, _vue.createInput)(_PrimeOutputNumber.default, {
|
|
23
|
-
props: []
|
|
23
|
+
props: ["prefix", "suffix", "prefixIcon", "suffixIcon"]
|
|
24
24
|
});
|
|
25
25
|
const primeOutputLinkDefinition = exports.primeOutputLinkDefinition = (0, _vue.createInput)(_PrimeOutputLink.default, {
|
|
26
|
-
props: []
|
|
26
|
+
props: ["prefix", "suffix", "prefixIcon", "suffixIcon"]
|
|
27
27
|
});
|
|
28
28
|
const primeOutputBooleanDefinition = exports.primeOutputBooleanDefinition = (0, _vue.createInput)(_PrimeOutputBoolean.default, {
|
|
29
|
-
props: []
|
|
29
|
+
props: ["prefix", "suffix", "prefixIcon", "suffixIcon"]
|
|
30
30
|
});
|
|
31
31
|
const primeOutputDurationDefinition = exports.primeOutputDurationDefinition = (0, _vue.createInput)(_PrimeOutputDuration.default, {
|
|
32
|
-
props: []
|
|
32
|
+
props: ["prefix", "suffix", "prefixIcon", "suffixIcon"]
|
|
33
33
|
});
|
|
34
34
|
const primeOutputListDefinition = exports.primeOutputListDefinition = (0, _vue.createInput)(_PrimeOutputList.default, {
|
|
35
|
-
props: []
|
|
35
|
+
props: ["prefix", "suffix", "prefixIcon", "suffixIcon"]
|
|
36
36
|
});
|
|
@@ -7,23 +7,23 @@ import PrimeOutputBoolean from "../components/PrimeOutputBoolean.vue";
|
|
|
7
7
|
import PrimeOutputDuration from "../components/PrimeOutputDuration.vue";
|
|
8
8
|
import PrimeOutputList from "../components/PrimeOutputList.vue";
|
|
9
9
|
export const primeOutputTextDefinition = createInput(PrimeOutputText, {
|
|
10
|
-
props: []
|
|
10
|
+
props: ["prefix", "suffix", "prefixIcon", "suffixIcon"]
|
|
11
11
|
});
|
|
12
12
|
export const primeOutputDateDefinition = createInput(PrimeOutputDate, {
|
|
13
|
-
props: []
|
|
13
|
+
props: ["prefix", "suffix", "prefixIcon", "suffixIcon"]
|
|
14
14
|
});
|
|
15
15
|
export const primeOutputNumberDefinition = createInput(PrimeOutputNumber, {
|
|
16
|
-
props: []
|
|
16
|
+
props: ["prefix", "suffix", "prefixIcon", "suffixIcon"]
|
|
17
17
|
});
|
|
18
18
|
export const primeOutputLinkDefinition = createInput(PrimeOutputLink, {
|
|
19
|
-
props: []
|
|
19
|
+
props: ["prefix", "suffix", "prefixIcon", "suffixIcon"]
|
|
20
20
|
});
|
|
21
21
|
export const primeOutputBooleanDefinition = createInput(PrimeOutputBoolean, {
|
|
22
|
-
props: []
|
|
22
|
+
props: ["prefix", "suffix", "prefixIcon", "suffixIcon"]
|
|
23
23
|
});
|
|
24
24
|
export const primeOutputDurationDefinition = createInput(PrimeOutputDuration, {
|
|
25
|
-
props: []
|
|
25
|
+
props: ["prefix", "suffix", "prefixIcon", "suffixIcon"]
|
|
26
26
|
});
|
|
27
27
|
export const primeOutputListDefinition = createInput(PrimeOutputList, {
|
|
28
|
-
props: []
|
|
28
|
+
props: ["prefix", "suffix", "prefixIcon", "suffixIcon"]
|
|
29
29
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useFormKitSchema, useInputEditor, useInputEditorSchema } from './composables';
|
|
1
|
+
import { useFormKitRepeater, useFormKitSchema, useInputEditor, useInputEditorSchema } from './composables';
|
|
2
2
|
import { primeInputs, primeOutputs } from './definitions';
|
|
3
3
|
import { FormKitDataDebug, FormKitDataEdit, FormKitDataView } from './components';
|
|
4
|
-
export { useFormKitSchema, useInputEditor, useInputEditorSchema, primeInputs, primeOutputs, FormKitDataDebug, FormKitDataEdit, FormKitDataView, };
|
|
4
|
+
export { useFormKitRepeater, useFormKitSchema, useInputEditor, useInputEditorSchema, primeInputs, primeOutputs, FormKitDataDebug, FormKitDataEdit, FormKitDataView, };
|
package/dist/index.js
CHANGED
|
@@ -33,6 +33,12 @@ Object.defineProperty(exports, "primeOutputs", {
|
|
|
33
33
|
return _definitions.primeOutputs;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
+
Object.defineProperty(exports, "useFormKitRepeater", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _composables.useFormKitRepeater;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
36
42
|
Object.defineProperty(exports, "useFormKitSchema", {
|
|
37
43
|
enumerable: true,
|
|
38
44
|
get: function () {
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { useFormKitSchema, useInputEditor, useInputEditorSchema } from "./composables/index.mjs";
|
|
1
|
+
import { useFormKitRepeater, useFormKitSchema, useInputEditor, useInputEditorSchema } from "./composables/index.mjs";
|
|
2
2
|
import { primeInputs, primeOutputs } from "./definitions/index.mjs";
|
|
3
3
|
import { FormKitDataDebug, FormKitDataEdit, FormKitDataView } from "./components/index.mjs";
|
|
4
4
|
export {
|
|
5
|
+
useFormKitRepeater,
|
|
5
6
|
useFormKitSchema,
|
|
6
7
|
useInputEditor,
|
|
7
8
|
useInputEditorSchema,
|
|
@@ -1,151 +1,175 @@
|
|
|
1
|
-
:
|
|
2
|
-
--formkit-error-color: #ef9a9a;
|
|
3
|
-
}
|
|
1
|
+
@use 'sass:math';
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
margin: 4px 0;
|
|
7
|
-
.formkit-message {
|
|
8
|
-
font-size: 0.8rem;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
3
|
+
$gutter-width: 0.5rem;
|
|
11
4
|
|
|
12
|
-
.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
box-sizing: border-box;
|
|
21
|
-
width: 100%;
|
|
22
|
-
&.p-colorpicker-preview {
|
|
23
|
-
width: 2rem;
|
|
24
|
-
}
|
|
25
|
-
}}
|
|
26
|
-
}
|
|
5
|
+
// Breakpoints e.g. https://tailwindcss.com/docs/responsive-design
|
|
6
|
+
$grid-breakpoints: (
|
|
7
|
+
sm: 640px,
|
|
8
|
+
md: 768px,
|
|
9
|
+
lg: 1024px,
|
|
10
|
+
xl: 1280px,
|
|
11
|
+
xxl: 1536px
|
|
12
|
+
) !default;
|
|
27
13
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
.formkit-messages {
|
|
33
|
-
padding: 4px 0 0 0;.formkit-message {
|
|
34
|
-
padding: 0;
|
|
35
|
-
margin: 0;
|
|
36
|
-
color: var(--formkit-error-color);
|
|
37
|
-
list-style: none;
|
|
38
|
-
font-size: 0.8rem;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
14
|
+
@function breakpoint-min($name, $breakpoints: $grid-breakpoints) {
|
|
15
|
+
$min: map-get($breakpoints, $name);
|
|
16
|
+
@return if($min != 0, $min, null);
|
|
41
17
|
}
|
|
42
18
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
margin-right: 10px;
|
|
49
|
-
font-size: 1rem;
|
|
19
|
+
@mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
|
|
20
|
+
$min: breakpoint-min($name, $breakpoints);
|
|
21
|
+
@if $min {
|
|
22
|
+
@media (min-width: $min) {
|
|
23
|
+
@content;
|
|
50
24
|
}
|
|
25
|
+
} @else {
|
|
26
|
+
@content;
|
|
51
27
|
}
|
|
52
28
|
}
|
|
53
29
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
margin: 0;
|
|
57
|
-
padding-bottom: 0.5rem;
|
|
58
|
-
font-weight: bold;
|
|
59
|
-
font-size: 0.8rem;
|
|
30
|
+
:root {
|
|
31
|
+
--formkit-error-color: #ef9a9a;
|
|
60
32
|
}
|
|
61
33
|
|
|
62
|
-
.formkit-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
&:focus-within {
|
|
69
|
-
border: 0;
|
|
34
|
+
.formkit-form {
|
|
35
|
+
// General message item styling
|
|
36
|
+
.formkit-messages {
|
|
37
|
+
margin: 0.125rem 0;
|
|
38
|
+
padding-top: 0.25rem;
|
|
39
|
+
padding-left: 0;
|
|
70
40
|
}
|
|
71
41
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
42
|
+
.formkit-message {
|
|
43
|
+
list-style: none;
|
|
44
|
+
padding: 0;
|
|
45
|
+
margin: 0;
|
|
46
|
+
color: var(--formkit-error-color);
|
|
47
|
+
font-size: 0.8rem;
|
|
75
48
|
}
|
|
76
|
-
}
|
|
77
49
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
padding: 0;
|
|
82
|
-
}
|
|
50
|
+
// Single form element
|
|
51
|
+
.formkit-outer {
|
|
52
|
+
padding-bottom: 0.8rem;
|
|
83
53
|
|
|
84
|
-
.formkit-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
54
|
+
.formkit-inner {
|
|
55
|
+
.p-formkit {
|
|
56
|
+
.p-formkit-icon {
|
|
57
|
+
box-sizing: border-box;
|
|
58
|
+
width: 100%;
|
|
59
|
+
}
|
|
89
60
|
|
|
90
|
-
.
|
|
91
|
-
|
|
92
|
-
|
|
61
|
+
.p-inputtext, .p-textarea, .p-password, .p-multiselect, .p-select, .p-editor {
|
|
62
|
+
box-sizing: border-box;
|
|
63
|
+
width: 100%;
|
|
93
64
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
list-style: none;
|
|
99
|
-
font-size: 0.8rem;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.formkit-actions {
|
|
103
|
-
padding-top: 0.5rem;
|
|
65
|
+
&.p-colorpicker-preview {
|
|
66
|
+
width: 2rem;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
104
69
|
|
|
105
|
-
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
106
72
|
|
|
107
|
-
.
|
|
108
|
-
|
|
109
|
-
|
|
73
|
+
.formkit-help {
|
|
74
|
+
margin: 0.25rem 0 0 0;
|
|
75
|
+
font-size: 0.8rem;
|
|
76
|
+
color: var(--text-color-secondary);
|
|
77
|
+
}
|
|
110
78
|
|
|
111
|
-
|
|
112
|
-
padding-right: 0.5rem;
|
|
113
|
-
}
|
|
79
|
+
}
|
|
114
80
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
81
|
+
// Label for single form element
|
|
82
|
+
.formkit-label {
|
|
83
|
+
display: block;
|
|
84
|
+
margin: 0;
|
|
85
|
+
padding-bottom: 0.5rem;
|
|
86
|
+
font-weight: bold;
|
|
87
|
+
font-size: 0.8rem;
|
|
88
|
+
}
|
|
118
89
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
90
|
+
// Wrapper for input element plus prefix, suffix and icons
|
|
91
|
+
.p-formkit {
|
|
92
|
+
> * {
|
|
93
|
+
margin-right: 0.5rem;
|
|
122
94
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
95
|
+
&:last-child, &:only-child {
|
|
96
|
+
margin-right: 0;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
126
100
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
101
|
+
// Used in Prime RadioButton
|
|
102
|
+
.p-formkit-options {
|
|
103
|
+
display: flex;
|
|
104
|
+
flex-wrap: wrap;
|
|
105
|
+
gap: 0.5rem;
|
|
106
|
+
|
|
107
|
+
.p-formkit-option {
|
|
108
|
+
display: flex;
|
|
109
|
+
align-items: center;
|
|
110
|
+
label {
|
|
111
|
+
margin-left: 0.5rem;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
130
115
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
116
|
+
// Do we need this?
|
|
117
|
+
.formkit-fieldset {
|
|
118
|
+
margin: 0;
|
|
119
|
+
padding: 0;
|
|
120
|
+
border-radius: 0;
|
|
121
|
+
border: 0;
|
|
134
122
|
|
|
123
|
+
&:focus-within {
|
|
124
|
+
border: 0;
|
|
125
|
+
}
|
|
135
126
|
|
|
127
|
+
& > .formkit-help {
|
|
128
|
+
margin-top: 0;
|
|
129
|
+
margin-bottom: 0;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
136
132
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
133
|
+
// Actually not needed
|
|
134
|
+
.formkit-legend {
|
|
135
|
+
display: block;
|
|
136
|
+
margin: 0;
|
|
137
|
+
padding: 0;
|
|
140
138
|
}
|
|
141
|
-
}
|
|
142
139
|
|
|
143
|
-
.
|
|
140
|
+
// Submit button etc.
|
|
144
141
|
.formkit-actions {
|
|
145
|
-
|
|
142
|
+
padding-top: 0.5rem;
|
|
146
143
|
}
|
|
147
|
-
}
|
|
148
144
|
|
|
149
|
-
|
|
145
|
+
// Debug
|
|
146
|
+
.p-formkit-data-debug {
|
|
147
|
+
pre, span {
|
|
148
|
+
font-size: 0.75rem;
|
|
149
|
+
line-height: 1rem;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
150
153
|
|
|
154
|
+
// Change column behaviour in larger views
|
|
155
|
+
@include media-breakpoint-up(lg) {
|
|
156
|
+
.formkit-form {
|
|
157
|
+
display: flex;
|
|
158
|
+
flex-wrap: wrap;
|
|
159
|
+
margin-left: -$gutter-width;
|
|
160
|
+
margin-right: -$gutter-width;
|
|
161
|
+
|
|
162
|
+
& > * {
|
|
163
|
+
flex-shrink: 0;
|
|
164
|
+
width: 100%;
|
|
165
|
+
max-width: 100%;
|
|
166
|
+
padding-left: $gutter-width;
|
|
167
|
+
padding-right: $gutter-width;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
@for $i from 1 through 12 {
|
|
171
|
+
.col-#{$i} {
|
|
172
|
+
width: percentage(math.div($i, 12));
|
|
173
|
+
}
|
|
174
|
+
}
|
|
151
175
|
}
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--formkit-error-color: #ef9a9a}.formkit-form
|
|
1
|
+
:root{--formkit-error-color: #ef9a9a}.formkit-form .formkit-messages{margin:.125rem 0;padding-top:.25rem;padding-left:0}.formkit-form .formkit-message{list-style:none;padding:0;margin:0;color:var(--formkit-error-color);font-size:.8rem}.formkit-form .formkit-outer{padding-bottom:.8rem}.formkit-form .formkit-outer .formkit-inner .p-formkit .p-formkit-icon{box-sizing:border-box;width:100%}.formkit-form .formkit-outer .formkit-inner .p-formkit .p-inputtext,.formkit-form .formkit-outer .formkit-inner .p-formkit .p-textarea,.formkit-form .formkit-outer .formkit-inner .p-formkit .p-password,.formkit-form .formkit-outer .formkit-inner .p-formkit .p-multiselect,.formkit-form .formkit-outer .formkit-inner .p-formkit .p-select,.formkit-form .formkit-outer .formkit-inner .p-formkit .p-editor{box-sizing:border-box;width:100%}.formkit-form .formkit-outer .formkit-inner .p-formkit .p-inputtext.p-colorpicker-preview,.formkit-form .formkit-outer .formkit-inner .p-formkit .p-textarea.p-colorpicker-preview,.formkit-form .formkit-outer .formkit-inner .p-formkit .p-password.p-colorpicker-preview,.formkit-form .formkit-outer .formkit-inner .p-formkit .p-multiselect.p-colorpicker-preview,.formkit-form .formkit-outer .formkit-inner .p-formkit .p-select.p-colorpicker-preview,.formkit-form .formkit-outer .formkit-inner .p-formkit .p-editor.p-colorpicker-preview{width:2rem}.formkit-form .formkit-outer .formkit-help{margin:.25rem 0 0 0;font-size:.8rem;color:var(--text-color-secondary)}.formkit-form .formkit-label{display:block;margin:0;padding-bottom:.5rem;font-weight:bold;font-size:.8rem}.formkit-form .p-formkit>*{margin-right:.5rem}.formkit-form .p-formkit>*:last-child,.formkit-form .p-formkit>*:only-child{margin-right:0}.formkit-form .p-formkit-options{display:flex;flex-wrap:wrap;gap:.5rem}.formkit-form .p-formkit-options .p-formkit-option{display:flex;align-items:center}.formkit-form .p-formkit-options .p-formkit-option label{margin-left:.5rem}.formkit-form .formkit-fieldset{margin:0;padding:0;border-radius:0;border:0}.formkit-form .formkit-fieldset:focus-within{border:0}.formkit-form .formkit-fieldset>.formkit-help{margin-top:0;margin-bottom:0}.formkit-form .formkit-legend{display:block;margin:0;padding:0}.formkit-form .formkit-actions{padding-top:.5rem}.formkit-form .p-formkit-data-debug pre,.formkit-form .p-formkit-data-debug span{font-size:.75rem;line-height:1rem}@media(min-width: 1024px){.formkit-form{display:flex;flex-wrap:wrap;margin-left:-0.5rem;margin-right:-0.5rem}.formkit-form>*{flex-shrink:0;width:100%;max-width:100%;padding-left:.5rem;padding-right:.5rem}.col-1{width:8.3333333333%}.col-2{width:16.6666666667%}.col-3{width:25%}.col-4{width:33.3333333333%}.col-5{width:41.6666666667%}.col-6{width:50%}.col-7{width:58.3333333333%}.col-8{width:66.6666666667%}.col-9{width:75%}.col-10{width:83.3333333333%}.col-11{width:91.6666666667%}.col-12{width:100%}}
|
package/package.json
CHANGED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useFormKitIcon = useFormKitIcon;
|
|
7
|
-
var _vue = require("vue");
|
|
8
|
-
function useFormKitIcon(context) {
|
|
9
|
-
const hasIcon = (0, _vue.computed)(() => {
|
|
10
|
-
return context?.attrs?.icon && context?.attrs?.icon.length > 0;
|
|
11
|
-
});
|
|
12
|
-
const icon = (0, _vue.computed)(() => {
|
|
13
|
-
return context?.attrs?.icon;
|
|
14
|
-
});
|
|
15
|
-
const iconPosition = (0, _vue.computed)(() => {
|
|
16
|
-
return context?.attrs?.iconPosition;
|
|
17
|
-
});
|
|
18
|
-
return {
|
|
19
|
-
hasIcon,
|
|
20
|
-
icon,
|
|
21
|
-
iconPosition
|
|
22
|
-
};
|
|
23
|
-
}
|