@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
|
@@ -1,27 +1,10 @@
|
|
|
1
1
|
import { useFormKitSchema } from "./useFormKitSchema.mjs";
|
|
2
2
|
import { useInputEditor } from "./useInputEditor.mjs";
|
|
3
|
+
import { useFormKitRepeater } from "./useFormKitRepeater.mjs";
|
|
3
4
|
export function useInputEditorSchema() {
|
|
4
|
-
const {
|
|
5
|
+
const { addList, addListGroup } = useFormKitSchema();
|
|
6
|
+
const { addInsertButton, addGroupButtons } = useFormKitRepeater();
|
|
5
7
|
const { primeInputNames, primeOutputNames } = useInputEditor();
|
|
6
|
-
function addFlexElement(children) {
|
|
7
|
-
return addElement("div", children, { style: "max-width: 40rem;display: flex;gap: 1rem;" });
|
|
8
|
-
}
|
|
9
|
-
function addGridElement(children) {
|
|
10
|
-
return addElement("div", children, { style: "display: grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap: 1rem;" });
|
|
11
|
-
}
|
|
12
|
-
function addGroupButtons() {
|
|
13
|
-
const addButtonComponent = (onClick = "", label = "", icon = "", severity = "", render = "true", styleClass = "p-button-sm", style = "margin-left: 0.5rem;") => {
|
|
14
|
-
return addComponent("Button", { onClick, label, icon, class: styleClass, style, severity }, render);
|
|
15
|
-
};
|
|
16
|
-
return addElement("div", [
|
|
17
|
-
addButtonComponent("$removeNode($node, $index)", "", "pi pi-times", "danger"),
|
|
18
|
-
addButtonComponent("$copyNode($node, $index)", "", "pi pi-plus"),
|
|
19
|
-
addButtonComponent("$moveNodeUp($node, $index)", "", "pi pi-arrow-up", "secondary", "$index != 0"),
|
|
20
|
-
addElement("span", [], { style: "margin-left: 0.5rem;margin-right: 2.5rem;" }, "$index == 0"),
|
|
21
|
-
addButtonComponent("$moveNodeDown($node, $index)", "", "pi pi-arrow-down", "secondary", "$index < $node.value.length -1"),
|
|
22
|
-
addElement("span", [], { style: "margin-left: 0.5rem;margin-right: 2.5rem;" }, "$index == $node.value.length -1")
|
|
23
|
-
], { style: "padding-top: 1.5rem;" });
|
|
24
|
-
}
|
|
25
8
|
function primeInputOptions(list) {
|
|
26
9
|
return list.map((name) => {
|
|
27
10
|
return { label: name, value: `prime${name}` };
|
|
@@ -30,6 +13,7 @@ export function useInputEditorSchema() {
|
|
|
30
13
|
const selectOptions = [
|
|
31
14
|
{ label: "Base", value: "showBasic" },
|
|
32
15
|
{ label: "Display", value: "showDisplay" },
|
|
16
|
+
{ label: "Style", value: "showStyle" },
|
|
33
17
|
{ label: "Validation", value: "showValidation" },
|
|
34
18
|
{ label: "Options", value: "showOptions" },
|
|
35
19
|
{ label: "Prime", value: "showPrime" }
|
|
@@ -40,32 +24,46 @@ export function useInputEditorSchema() {
|
|
|
40
24
|
{ label: "Dirty", value: "dirty" },
|
|
41
25
|
{ label: "Submit", value: "submit" }
|
|
42
26
|
];
|
|
27
|
+
const colOptions = [
|
|
28
|
+
{ label: "Col-1", value: "col-1" },
|
|
29
|
+
{ label: "Col-2", value: "col-2" },
|
|
30
|
+
{ label: "Col-3", value: "col-3" },
|
|
31
|
+
{ label: "Col-4", value: "col-4" },
|
|
32
|
+
{ label: "Col-5", value: "col-5" },
|
|
33
|
+
{ label: "Col-6", value: "col-6" },
|
|
34
|
+
{ label: "Col-7", value: "col-7" },
|
|
35
|
+
{ label: "Col-8", value: "col-8" },
|
|
36
|
+
{ label: "Col-9", value: "col-9" },
|
|
37
|
+
{ label: "Col-10", value: "col-10" },
|
|
38
|
+
{ label: "Col-11", value: "col-11" },
|
|
39
|
+
{ label: "Col-12", value: "col-12" }
|
|
40
|
+
];
|
|
43
41
|
function editorSchema(inputOptions = primeInputOptions([...primeInputNames, ...primeOutputNames])) {
|
|
44
42
|
return [
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
43
|
+
{
|
|
44
|
+
$formkit: "primeSelect",
|
|
45
|
+
id: "inputSelection",
|
|
46
|
+
name: "_dollar_formkit",
|
|
47
|
+
label: "Prime Input",
|
|
48
|
+
value: "primeInputText",
|
|
49
|
+
optionLabel: "label",
|
|
50
|
+
optionValue: "value",
|
|
51
|
+
options: inputOptions,
|
|
52
|
+
filter: true,
|
|
53
|
+
key: "schema_inputSelection",
|
|
54
|
+
outerClass: "col-6",
|
|
55
|
+
preserve: true
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
$formkit: "primeInputText",
|
|
59
|
+
name: "name",
|
|
60
|
+
label: "Field Name",
|
|
61
|
+
validation: "required",
|
|
62
|
+
validationVisibility: "live",
|
|
63
|
+
key: "schema_name",
|
|
64
|
+
outerClass: "col-6",
|
|
65
|
+
preserve: true
|
|
66
|
+
},
|
|
69
67
|
{
|
|
70
68
|
$formkit: "primeSelectButton",
|
|
71
69
|
id: "selectButton",
|
|
@@ -94,65 +92,173 @@ export function useInputEditorSchema() {
|
|
|
94
92
|
key: "schema_help",
|
|
95
93
|
preserve: true
|
|
96
94
|
},
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
95
|
+
{
|
|
96
|
+
$formkit: "primeInputText",
|
|
97
|
+
if: "$get(selectButton).value === 'showBasic'",
|
|
98
|
+
name: "value",
|
|
99
|
+
label: "Input Value",
|
|
100
|
+
key: "schema_value",
|
|
101
|
+
outerClass: "col-6",
|
|
102
|
+
preserve: true
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
$formkit: "primeInputText",
|
|
106
|
+
if: "$get(selectButton).value === 'showBasic'",
|
|
107
|
+
name: "format",
|
|
108
|
+
label: "Value Format",
|
|
109
|
+
key: "schema_format",
|
|
110
|
+
outerClass: "col-6",
|
|
111
|
+
preserve: true
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
$formkit: "primeInputText",
|
|
115
|
+
if: "$get(selectButton).value === 'showBasic'",
|
|
116
|
+
name: "id",
|
|
117
|
+
label: "Input ID",
|
|
118
|
+
key: "schema_id",
|
|
119
|
+
outerClass: "col-6",
|
|
120
|
+
preserve: true
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
$formkit: "primeInputText",
|
|
124
|
+
if: "$get(selectButton).value === 'showBasic'",
|
|
125
|
+
name: "key",
|
|
126
|
+
label: "Input Key",
|
|
127
|
+
key: "schema_key",
|
|
128
|
+
outerClass: "col-6",
|
|
129
|
+
preserve: true
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
$formkit: "primeInputText",
|
|
133
|
+
if: "$get(selectButton).value === 'showBasic'",
|
|
134
|
+
name: "tabindex",
|
|
135
|
+
label: "Tab Index",
|
|
136
|
+
key: "schema_tabindex",
|
|
137
|
+
outerClass: "col-6",
|
|
138
|
+
preserve: true
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
$formkit: "primeCheckbox",
|
|
142
|
+
if: "$get(selectButton).value === 'showBasic'",
|
|
143
|
+
name: "preserve",
|
|
144
|
+
label: "Preserve",
|
|
145
|
+
key: "schema_preserve",
|
|
146
|
+
value: false,
|
|
147
|
+
suffix: "Input Preserve",
|
|
148
|
+
outerClass: "col-3",
|
|
149
|
+
preserve: true
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
$formkit: "primeInputText",
|
|
153
|
+
if: "$get(selectButton).value === 'showDisplay'",
|
|
154
|
+
name: "class",
|
|
155
|
+
label: "Input StyleClass",
|
|
156
|
+
key: "schema_class",
|
|
157
|
+
outerClass: "col-6",
|
|
158
|
+
preserve: true
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
$formkit: "primeInputText",
|
|
162
|
+
if: "$get(selectButton).value === 'showDisplay'",
|
|
163
|
+
name: "style",
|
|
164
|
+
label: "Input Style",
|
|
165
|
+
key: "schema_style",
|
|
166
|
+
outerClass: "col-6",
|
|
167
|
+
preserve: true
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
$formkit: "primeInputText",
|
|
171
|
+
if: "$get(selectButton).value === 'showDisplay'",
|
|
172
|
+
name: "if",
|
|
173
|
+
label: "Should Render (if-Expression)",
|
|
174
|
+
key: "schema_if",
|
|
175
|
+
preserve: true
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
$formkit: "primeInputText",
|
|
179
|
+
if: "$get(selectButton).value === 'showDisplay'",
|
|
180
|
+
name: "prefixIcon",
|
|
181
|
+
label: "Prefix Icon",
|
|
182
|
+
key: "schema_prefix_icon",
|
|
183
|
+
outerClass: "col-6",
|
|
184
|
+
preserve: true
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
$formkit: "primeInputText",
|
|
188
|
+
if: "$get(selectButton).value === 'showDisplay'",
|
|
189
|
+
name: "prefix",
|
|
190
|
+
label: "Prefix",
|
|
191
|
+
key: "schema_prefix",
|
|
192
|
+
outerClass: "col-6",
|
|
193
|
+
preserve: true
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
$formkit: "primeInputText",
|
|
197
|
+
if: "$get(selectButton).value === 'showDisplay'",
|
|
198
|
+
name: "suffix",
|
|
199
|
+
label: "Suffix",
|
|
200
|
+
key: "schema_suffix",
|
|
201
|
+
outerClass: "col-6",
|
|
202
|
+
preserve: true
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
$formkit: "primeInputText",
|
|
206
|
+
if: "$get(selectButton).value === 'showDisplay'",
|
|
207
|
+
name: "suffixIcon",
|
|
208
|
+
label: "Suffix Icon",
|
|
209
|
+
key: "schema_suffix_icon",
|
|
210
|
+
outerClass: "col-6",
|
|
211
|
+
preserve: true
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
$formkit: "primeCheckbox",
|
|
215
|
+
if: "$get(selectButton).value === 'showDisplay'",
|
|
216
|
+
name: "disabled",
|
|
217
|
+
label: "Input Disabled",
|
|
218
|
+
key: "schema_disabled",
|
|
219
|
+
value: false,
|
|
220
|
+
outerClass: "col-3",
|
|
221
|
+
preserve: true
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
$formkit: "primeCheckbox",
|
|
225
|
+
if: "$get(selectButton).value === 'showDisplay'",
|
|
226
|
+
name: "readonly",
|
|
227
|
+
label: "Input Read Only",
|
|
228
|
+
key: "schema_readonly",
|
|
229
|
+
value: false,
|
|
230
|
+
outerClass: "col-3",
|
|
231
|
+
preserve: true
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
$formkit: "primeInputText",
|
|
235
|
+
if: "$get(selectButton).value === 'showStyle'",
|
|
236
|
+
name: "outerClass",
|
|
237
|
+
label: "Outer Class",
|
|
238
|
+
key: "schema_outerClass",
|
|
239
|
+
outerClass: "col-6",
|
|
240
|
+
preserve: true
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
$formkit: "primeSelect",
|
|
244
|
+
if: "$get(selectButton).value === 'showStyle'",
|
|
245
|
+
name: "outerClassGrid",
|
|
246
|
+
value: "col-12",
|
|
247
|
+
label: "Grid Options",
|
|
248
|
+
optionLabel: "label",
|
|
249
|
+
optionValue: "value",
|
|
250
|
+
options: colOptions,
|
|
251
|
+
key: "schema_outer-class-grid",
|
|
252
|
+
outerClass: "col-6",
|
|
253
|
+
preserve: true
|
|
254
|
+
},
|
|
150
255
|
{
|
|
151
256
|
$formkit: "primeInputText",
|
|
152
257
|
if: "$get(selectButton).value === 'showValidation'",
|
|
153
258
|
name: "validation",
|
|
154
259
|
label: "Field Validation",
|
|
155
260
|
key: "schema_validation",
|
|
261
|
+
outerClass: "col-6",
|
|
156
262
|
preserve: true
|
|
157
263
|
},
|
|
158
264
|
{
|
|
@@ -165,6 +271,7 @@ export function useInputEditorSchema() {
|
|
|
165
271
|
optionValue: "value",
|
|
166
272
|
options: validationOptions,
|
|
167
273
|
key: "schema_validation-visibility",
|
|
274
|
+
outerClass: "col-6",
|
|
168
275
|
preserve: true
|
|
169
276
|
},
|
|
170
277
|
{
|
|
@@ -175,125 +282,43 @@ export function useInputEditorSchema() {
|
|
|
175
282
|
key: "schema_validation-label",
|
|
176
283
|
preserve: true
|
|
177
284
|
},
|
|
178
|
-
addGridElement([
|
|
179
|
-
{
|
|
180
|
-
$formkit: "primeInputText",
|
|
181
|
-
if: "$get(selectButton).value === 'showDisplay'",
|
|
182
|
-
name: "class",
|
|
183
|
-
label: "Input StyleClass",
|
|
184
|
-
key: "schema_class",
|
|
185
|
-
preserve: true
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
$formkit: "primeInputText",
|
|
189
|
-
if: "$get(selectButton).value === 'showDisplay'",
|
|
190
|
-
name: "style",
|
|
191
|
-
label: "Input Style",
|
|
192
|
-
key: "schema_style",
|
|
193
|
-
preserve: true
|
|
194
|
-
}
|
|
195
|
-
]),
|
|
196
|
-
{
|
|
197
|
-
$formkit: "primeInputText",
|
|
198
|
-
if: "$get(selectButton).value === 'showDisplay'",
|
|
199
|
-
name: "if",
|
|
200
|
-
label: "Should Render (if-Expression)",
|
|
201
|
-
key: "schema_if",
|
|
202
|
-
preserve: true
|
|
203
|
-
},
|
|
204
|
-
addGridElement([
|
|
205
|
-
{
|
|
206
|
-
$formkit: "primeInputText",
|
|
207
|
-
if: "$get(selectButton).value === 'showDisplay'",
|
|
208
|
-
name: "prefixIcon",
|
|
209
|
-
label: "Prefix Icon",
|
|
210
|
-
key: "schema_prefix_icon",
|
|
211
|
-
preserve: true
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
$formkit: "primeInputText",
|
|
215
|
-
if: "$get(selectButton).value === 'showDisplay'",
|
|
216
|
-
name: "prefix",
|
|
217
|
-
label: "Prefix",
|
|
218
|
-
key: "schema_prefix",
|
|
219
|
-
preserve: true
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
$formkit: "primeInputText",
|
|
223
|
-
if: "$get(selectButton).value === 'showDisplay'",
|
|
224
|
-
name: "suffix",
|
|
225
|
-
label: "Suffix",
|
|
226
|
-
key: "schema_suffix",
|
|
227
|
-
preserve: true
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
$formkit: "primeInputText",
|
|
231
|
-
if: "$get(selectButton).value === 'showDisplay'",
|
|
232
|
-
name: "suffixIcon",
|
|
233
|
-
label: "Suffix Icon",
|
|
234
|
-
key: "schema_suffix_icon",
|
|
235
|
-
preserve: true
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
$formkit: "primeCheckbox",
|
|
239
|
-
if: "$get(selectButton).value === 'showDisplay'",
|
|
240
|
-
name: "disabled",
|
|
241
|
-
label: "Input Disabled",
|
|
242
|
-
key: "schema_disabled",
|
|
243
|
-
value: false,
|
|
244
|
-
preserve: true
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
$formkit: "primeCheckbox",
|
|
248
|
-
if: "$get(selectButton).value === 'showDisplay'",
|
|
249
|
-
name: "readonly",
|
|
250
|
-
label: "Input Read Only",
|
|
251
|
-
key: "schema_readonly",
|
|
252
|
-
value: false,
|
|
253
|
-
preserve: true
|
|
254
|
-
}
|
|
255
|
-
]),
|
|
256
285
|
addList("options", [
|
|
257
|
-
|
|
258
|
-
addComponent("Button", { onClick: "$addNode($node)", label: "Add Option", class: "p-button-sm", style: "margin-bottom: 2rem;", icon: "pi pi-plus" }, "$node.value.length == 0")
|
|
259
|
-
]),
|
|
286
|
+
addInsertButton("Add Option"),
|
|
260
287
|
addListGroup(
|
|
261
288
|
[
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
289
|
+
{
|
|
290
|
+
$formkit: "primeInputText",
|
|
291
|
+
label: "Label",
|
|
292
|
+
name: "label",
|
|
293
|
+
outerClass: "col-4"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
$formkit: "primeInputText",
|
|
297
|
+
label: "Value",
|
|
298
|
+
name: "value",
|
|
299
|
+
outerClass: "col-4"
|
|
300
|
+
},
|
|
301
|
+
addGroupButtons()
|
|
275
302
|
]
|
|
276
303
|
)
|
|
277
304
|
], true, "$get(selectButton).value === 'showOptions'", { key: "schema_options", preserve: true }),
|
|
278
305
|
addList("prime", [
|
|
279
|
-
|
|
280
|
-
addComponent("Button", { onClick: "$addNode($node)", label: "Add PrimeVue Attribute", class: "p-button-sm", style: "margin-bottom: 2rem;", icon: "pi pi-plus" }, "$node.value.length == 0")
|
|
281
|
-
]),
|
|
306
|
+
addInsertButton("Add PrimeVue Attribute"),
|
|
282
307
|
addListGroup(
|
|
283
308
|
[
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
309
|
+
{
|
|
310
|
+
$formkit: "primeInputText",
|
|
311
|
+
label: "PrimeVue Property",
|
|
312
|
+
name: "prime_key",
|
|
313
|
+
outerClass: "col-3"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
$formkit: "primeInputText",
|
|
317
|
+
label: "Value",
|
|
318
|
+
name: "prime_value",
|
|
319
|
+
outerClass: "col-3"
|
|
320
|
+
},
|
|
321
|
+
addGroupButtons()
|
|
297
322
|
]
|
|
298
323
|
)
|
|
299
324
|
], true, "$get(selectButton).value === 'showPrime'", { key: "schema_prime", preserve: true })
|
|
@@ -30,73 +30,73 @@ var _PrimeTreeSelect = _interopRequireDefault(require("../components/PrimeTreeSe
|
|
|
30
30
|
var _PrimeSelectButton = _interopRequireDefault(require("../components/PrimeSelectButton.vue"));
|
|
31
31
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
32
32
|
const primeAutoCompleteDefinition = exports.primeAutoCompleteDefinition = (0, _vue.createInput)(_PrimeAutoComplete.default, {
|
|
33
|
-
props: ["pt", "ptOptions", "unstyled", "Select", "multiple", "typeahead"
|
|
33
|
+
props: ["pt", "ptOptions", "unstyled", "Select", "multiple", "typeahead"]
|
|
34
34
|
});
|
|
35
35
|
const primeInputTextDefinition = exports.primeInputTextDefinition = (0, _vue.createInput)(_PrimeInputText.default, {
|
|
36
|
-
props: ["pt", "ptOptions", "unstyled", "placeholder", "icon"
|
|
36
|
+
props: ["pt", "ptOptions", "unstyled", "placeholder", "icon"]
|
|
37
37
|
});
|
|
38
38
|
const primeInputNumberDefinition = exports.primeInputNumberDefinition = (0, _vue.createInput)(_PrimeInputNumber.default, {
|
|
39
|
-
props: ["useGrouping", "min", "max", "minFractionDigits", "maxFractionDigits", "locale", "mode", "currency", "prefix", "suffix", "showButtons", "buttonLayout", "step", "pt", "ptOptions", "unstyled", "placeholder"
|
|
39
|
+
props: ["useGrouping", "min", "max", "minFractionDigits", "maxFractionDigits", "locale", "mode", "currency", "prefix", "suffix", "showButtons", "buttonLayout", "step", "pt", "ptOptions", "unstyled", "placeholder"]
|
|
40
40
|
});
|
|
41
41
|
const primeInputMaskDefinition = exports.primeInputMaskDefinition = (0, _vue.createInput)(_PrimeInputMask.default, {
|
|
42
|
-
props: ["mask", "slotChar", "autoClear", "unmask", "pt", "ptOptions", "unstyled", "invalid", "variant", "iconLeft", "iconRight"
|
|
42
|
+
props: ["mask", "slotChar", "autoClear", "unmask", "pt", "ptOptions", "unstyled", "invalid", "variant", "iconLeft", "iconRight"]
|
|
43
43
|
});
|
|
44
44
|
const primePasswordDefinition = exports.primePasswordDefinition = (0, _vue.createInput)(_PrimePassword.default, {
|
|
45
|
-
props: ["mediumRegex", "strongRegex", "promptLabel", "weakLabel", "mediumLabel", "strongLabel", "hideIcon", "showIcon", "pt", "ptOptions", "unstyled", "placeholder", "feedback", "toggleMask"
|
|
45
|
+
props: ["mediumRegex", "strongRegex", "promptLabel", "weakLabel", "mediumLabel", "strongLabel", "hideIcon", "showIcon", "pt", "ptOptions", "unstyled", "placeholder", "feedback", "toggleMask"]
|
|
46
46
|
});
|
|
47
47
|
const primeTextareaDefinition = exports.primeTextareaDefinition = (0, _vue.createInput)(_PrimeTextarea.default, {
|
|
48
|
-
props: ["pt", "ptOptions", "unstyled", "autoResize", "rows", "placeholder"
|
|
48
|
+
props: ["pt", "ptOptions", "unstyled", "autoResize", "rows", "placeholder"]
|
|
49
49
|
});
|
|
50
50
|
const primeCheckboxDefinition = exports.primeCheckboxDefinition = (0, _vue.createInput)(_PrimeCheckbox.default, {
|
|
51
|
-
props: ["binary", "trueValue", "falseValue", "pt", "ptOptions", "unstyled", "indeterminate", "variant", "
|
|
51
|
+
props: ["binary", "trueValue", "falseValue", "pt", "ptOptions", "unstyled", "indeterminate", "variant", "prefix", "suffix"]
|
|
52
52
|
});
|
|
53
53
|
const primeToggleSwitchDefinition = exports.primeToggleSwitchDefinition = (0, _vue.createInput)(_PrimeToggleSwitch.default, {
|
|
54
|
-
props: ["trueValue", "falseValue", "pt", "ptOptions", "unstyled", "
|
|
54
|
+
props: ["trueValue", "falseValue", "pt", "ptOptions", "unstyled", "prefix", "suffix"]
|
|
55
55
|
});
|
|
56
56
|
const primeInputOtpDefinition = exports.primeInputOtpDefinition = (0, _vue.createInput)(_PrimeInputOtp.default, {
|
|
57
|
-
props: ["length", "variant", "mask", "integerOnly", "pt", "ptOptions", "unstyled"
|
|
57
|
+
props: ["length", "variant", "mask", "integerOnly", "pt", "ptOptions", "unstyled"]
|
|
58
58
|
});
|
|
59
59
|
const primeEditorDefinition = exports.primeEditorDefinition = (0, _vue.createInput)(_PrimeEditor.default, {
|
|
60
|
-
props: ["placeholder", "formats", "modules", "pt", "ptOptions", "unstyled"
|
|
60
|
+
props: ["placeholder", "formats", "modules", "pt", "ptOptions", "unstyled"]
|
|
61
61
|
});
|
|
62
62
|
const primeSelectDefinition = exports.primeSelectDefinition = (0, _vue.createInput)(_PrimeSelect.default, {
|
|
63
|
-
props: ["options", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "scrollHeight", "filter", "filterPlaceholder", "filterLocale", "filterMatchMode", "filterFields", "filterInputProps", "editable", "placeholder", "dataKey", "showClear", "panelStyle", "panelClass", "panelProps", "appendTo", "resetFilterOnHide", "virtualScrollerOptions", "autoOptionFocus", "selectOnFocus", "filterMessage", "selectionMessage", "emptySelectionMessage", "emptyFilterMessage", "emptyMessage", "pt", "ptOptions", "unstyled"
|
|
63
|
+
props: ["options", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "scrollHeight", "filter", "filterPlaceholder", "filterLocale", "filterMatchMode", "filterFields", "filterInputProps", "editable", "placeholder", "dataKey", "showClear", "panelStyle", "panelClass", "panelProps", "appendTo", "resetFilterOnHide", "virtualScrollerOptions", "autoOptionFocus", "selectOnFocus", "filterMessage", "selectionMessage", "emptySelectionMessage", "emptyFilterMessage", "emptyMessage", "pt", "ptOptions", "unstyled"]
|
|
64
64
|
});
|
|
65
65
|
const primeMultiSelectDefinition = exports.primeMultiSelectDefinition = (0, _vue.createInput)(_PrimeMultiSelect.default, {
|
|
66
|
-
props: ["options", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "scrollHeight", "inputProps", "closeButtonProps", "dataKey", "filter", "filterPlaceholder", "filterLocale", "filterMatchMode", "filterFields", "appendTo", "display", "maxSelectedLabels", "selectedItemsLabel", "selectionLimit", "showToggleAll", "loading", "selectAll", "resetFilterOnHide", "virtualScrollerOptions", "autoOptionFocus", "autoFilterFocus", "filterMessage", "selectionMessage", "emptySelectionMessage", "emptyFilterMessage", "emptyMessage", "pt", "placeholder", "ptOptions", "unstyled"
|
|
66
|
+
props: ["options", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "scrollHeight", "inputProps", "closeButtonProps", "dataKey", "filter", "filterPlaceholder", "filterLocale", "filterMatchMode", "filterFields", "appendTo", "display", "maxSelectedLabels", "selectedItemsLabel", "selectionLimit", "showToggleAll", "loading", "selectAll", "resetFilterOnHide", "virtualScrollerOptions", "autoOptionFocus", "autoFilterFocus", "filterMessage", "selectionMessage", "emptySelectionMessage", "emptyFilterMessage", "emptyMessage", "pt", "placeholder", "ptOptions", "unstyled"]
|
|
67
67
|
});
|
|
68
68
|
const primeListboxDefinition = exports.primeListboxDefinition = (0, _vue.createInput)(_PrimeListbox.default, {
|
|
69
|
-
props: ["pt", "ptOptions", "unstyled", "options", "optionLabel", "optionValue", "multiple", "filter", "filterIcon", "filterPlaceholder", "filterLocale", "filterMatchMode", "autoOptionFocus", "selectOnFocus"
|
|
69
|
+
props: ["pt", "ptOptions", "unstyled", "options", "optionLabel", "optionValue", "multiple", "filter", "filterIcon", "filterPlaceholder", "filterLocale", "filterMatchMode", "autoOptionFocus", "selectOnFocus"]
|
|
70
70
|
});
|
|
71
71
|
const primeDatePickerDefinition = exports.primeDatePickerDefinition = (0, _vue.createInput)(_PrimeDatePicker.default, {
|
|
72
|
-
props: ["dateFormat", "placeholder", "selectionMode", "inline", "icon", "showOtherMonths", "selectOtherMonths", "showIcon", "previousIcon", "nextIcon", "incrementIcon", "decrementIcon", "numberOfMonths", "responsiveOptions", "view", "touchUI", "minDate", "maxDate", "disabledDates", "disabledDays", "maxDateCount", "showOnFocus", "autoZIndex", "baseZIndex", "showButtonBar", "showTime", "timeOnly", "shortYearCutoff", "hourFormat", "stepHour", "stepMinute", "stepSecond", "showSeconds", "hideOnDateTimeSelect", "hideOnRangeSelection", "timeSeparator", "showWeek", "manualInput", "appendTo", "panelStyle", "panelClass", "pt", "ptOptions", "unstyled"
|
|
72
|
+
props: ["dateFormat", "placeholder", "selectionMode", "inline", "icon", "showOtherMonths", "selectOtherMonths", "showIcon", "previousIcon", "nextIcon", "incrementIcon", "decrementIcon", "numberOfMonths", "responsiveOptions", "view", "touchUI", "minDate", "maxDate", "disabledDates", "disabledDays", "maxDateCount", "showOnFocus", "autoZIndex", "baseZIndex", "showButtonBar", "showTime", "timeOnly", "shortYearCutoff", "hourFormat", "stepHour", "stepMinute", "stepSecond", "showSeconds", "hideOnDateTimeSelect", "hideOnRangeSelection", "timeSeparator", "showWeek", "manualInput", "appendTo", "panelStyle", "panelClass", "pt", "ptOptions", "unstyled"]
|
|
73
73
|
});
|
|
74
74
|
const primeSliderDefinition = exports.primeSliderDefinition = (0, _vue.createInput)(_PrimeSlider.default, {
|
|
75
|
-
props: ["pt", "ptOptions", "unstyled", "min", "max", "step", "range", "orientation"
|
|
75
|
+
props: ["pt", "ptOptions", "unstyled", "min", "max", "step", "range", "orientation"]
|
|
76
76
|
});
|
|
77
77
|
const primeRatingDefinition = exports.primeRatingDefinition = (0, _vue.createInput)(_PrimeRating.default, {
|
|
78
|
-
props: ["unstyled", "stars", "cancel", "onIcon", "offIcon", "cancelIcon", "ptOptions", "pt"
|
|
78
|
+
props: ["unstyled", "stars", "cancel", "onIcon", "offIcon", "cancelIcon", "ptOptions", "pt"]
|
|
79
79
|
});
|
|
80
80
|
const primeRadioButtonDefinition = exports.primeRadioButtonDefinition = (0, _vue.createInput)(_PrimeRadioButton.default, {
|
|
81
|
-
props: ["pt", "ptOptions", "unstyled", "options", "
|
|
81
|
+
props: ["pt", "ptOptions", "unstyled", "options", "optionsClass", "optionClass"]
|
|
82
82
|
});
|
|
83
83
|
const primeKnobDefinition = exports.primeKnobDefinition = (0, _vue.createInput)(_PrimeKnob.default, {
|
|
84
|
-
props: ["pt", "ptOptions", "unstyled", "min", "max", "step", "size", "strokeWidth", "showValue", "valueColor", "rangeColor", "textColor", "valueTemplate"
|
|
84
|
+
props: ["pt", "ptOptions", "unstyled", "min", "max", "step", "size", "strokeWidth", "showValue", "valueColor", "rangeColor", "textColor", "valueTemplate"]
|
|
85
85
|
});
|
|
86
86
|
const primeColorPickerDefinition = exports.primeColorPickerDefinition = (0, _vue.createInput)(_PrimeColorPicker.default, {
|
|
87
|
-
props: ["defaultColor", "inline", "format", "pt", "ptOptions", "unstyled"
|
|
87
|
+
props: ["defaultColor", "inline", "format", "pt", "ptOptions", "unstyled"]
|
|
88
88
|
});
|
|
89
89
|
const primeToggleButtonDefinition = exports.primeToggleButtonDefinition = (0, _vue.createInput)(_PrimeToggleButton.default, {
|
|
90
|
-
props: ["pt", "ptOptions", "unstyled", "onLabel", "offLabel", "onIcon", "offIcon", "iconPos"
|
|
90
|
+
props: ["pt", "ptOptions", "unstyled", "onLabel", "offLabel", "onIcon", "offIcon", "iconPos"]
|
|
91
91
|
});
|
|
92
92
|
const primeSelectButtonDefinition = exports.primeSelectButtonDefinition = (0, _vue.createInput)(_PrimeSelectButton.default, {
|
|
93
|
-
props: ["pt", "ptOptions", "unstyled", "optionLabel", "optionValue", "optionDisabled", "multiple", "unselectable", "dataKey", "options"
|
|
93
|
+
props: ["pt", "ptOptions", "unstyled", "optionLabel", "optionValue", "optionDisabled", "multiple", "unselectable", "dataKey", "options"]
|
|
94
94
|
});
|
|
95
95
|
const primeCascadeSelectDefinition = exports.primeCascadeSelectDefinition = (0, _vue.createInput)(_PrimeCascadeSelect.default, {
|
|
96
|
-
props: ["options", "optionLabel", "optionValue", "optionGroupLabel", "optionGroupChildren", "placeholder", "pt", "ptOptions", "unstyled"
|
|
96
|
+
props: ["options", "optionLabel", "optionValue", "optionGroupLabel", "optionGroupChildren", "placeholder", "pt", "ptOptions", "unstyled"]
|
|
97
97
|
});
|
|
98
98
|
const primeTreeSelectDefinition = exports.primeTreeSelectDefinition = (0, _vue.createInput)(_PrimeTreeSelect.default, {
|
|
99
|
-
props: ["options", "placeholder", "selectionMode", "pt", "ptOptions", "unstyled", "emptyMessage", "display", "metaKeySelection", "appendTo", "scrollHeight", "panelClass", "variant"
|
|
99
|
+
props: ["options", "placeholder", "selectionMode", "pt", "ptOptions", "unstyled", "emptyMessage", "display", "metaKeySelection", "appendTo", "scrollHeight", "panelClass", "variant"]
|
|
100
100
|
});
|
|
101
101
|
const primeInputs = exports.primeInputs = {
|
|
102
102
|
primeAutoComplete: primeAutoCompleteDefinition,
|